"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.gravityBlocksExtension = exports.GravityBlocksProvider = void 0;
var GravityBlocksProvider_1 = require("../context/GravityBlocksProvider.js");
Object.defineProperty(exports, "GravityBlocksProvider", { enumerable: true, get: function () { return GravityBlocksProvider_1.GravityBlocksProvider; } });
const _1 = require("./index.js");
/** @returns Array of PageConstructorExtension instances for gravity-blocks. */
const gravityBlocksExtension = ({ wrapperProps = {}, globalDefaults = {}, }) => {
    const { background, navigation, ...generalGlobalDefaults } = globalDefaults;
    const { renderMenu, ...generalWrapperProps } = wrapperProps;
    return [
        (0, _1.generalExtension)({
            wrapperProps: generalWrapperProps,
            globalDefaults: generalGlobalDefaults,
        }),
        (0, _1.backgroundExtension)({
            globalDefaults: { background },
        }),
        (0, _1.navigationExtension)({
            wrapperProps: { renderMenu },
            globalDefaults: { navigation },
        }),
        (0, _1.blockBaseExtension)(),
    ];
};
exports.gravityBlocksExtension = gravityBlocksExtension;
//# sourceMappingURL=GravityBlocksExtension.js.map
