How to use the @webiny/app-page-builder/editor/selectors.isPluginActive function in @webiny/app-page-builder

To help you get started, we’ve selected a few @webiny/app-page-builder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / elementSettings / components / Action.js View on Github external
(state, props) => ({
        active: isPluginActive(props.plugin)(state),
        // $FlowFixMe
        slateFocused: getUi(state).slateFocused,
        settingsActive: getActivePlugins("pb-page-element-settings")(state).length > 0
    }),
    { togglePlugin }
github webiny / webiny-js / packages / app-page-builder / src / editor / components / Editor / Content.js View on Github external
const stateToProps = state => ({
    rootElement: state.elements[getContent(state).id],
    layout: get(getPage(state), "settings.general.layout"),
    renderLayout: isPluginActive("pb-editor-toolbar-preview")(state)
});
github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / toolbar / Action.js View on Github external
(state, props) => ({
        active: isPluginActive(props.plugin)(state)
    }),
    { togglePlugin }
github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / elementSettings / advanced / AdvancedSettings.js View on Github external
state => ({
            open: isPluginActive("pb-page-element-settings-advanced")(state)
        }),
        { updateElement, deactivatePlugin }
github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / toolbar / onboarding / Onboarding.js View on Github external
state => ({
            showOnboarding: isPluginActive("pb-editor-toolbar-onboarding")(state)
        }),
        { deactivatePlugin }

@webiny/app-page-builder

[![](https://img.shields.io/npm/dw/@webiny/app-page-builder.svg)](https://www.npmjs.com/package/@webiny/app-page-builder) [![](https://img.shields.io/npm/v/@webiny/app-page-builder.svg)](https://www.npmjs.com/package/@webiny/app-page-builder) [![code sty

MIT
Latest version published 20 days ago

Package Health Score

78 / 100
Full package analysis

Similar packages