export { GravityBlocksProvider, } from "../context/GravityBlocksProvider.js";
import { backgroundExtension, blockBaseExtension, generalExtension, navigationExtension } from "./index.js";
/** @returns Array of PageConstructorExtension instances for gravity-blocks. */
export const gravityBlocksExtension = ({ wrapperProps = {}, globalDefaults = {}, }) => {
    const { background, navigation, ...generalGlobalDefaults } = globalDefaults;
    const { renderMenu, ...generalWrapperProps } = wrapperProps;
    return [
        generalExtension({
            wrapperProps: generalWrapperProps,
            globalDefaults: generalGlobalDefaults,
        }),
        backgroundExtension({
            globalDefaults: { background },
        }),
        navigationExtension({
            wrapperProps: { renderMenu },
            globalDefaults: { navigation },
        }),
        blockBaseExtension(),
    ];
};
//# sourceMappingURL=GravityBlocksExtension.js.map
