@builder.io/sdk-react-nextjs 0.7.1-3 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/USE_CLIENT_BUNDLE-059d1502.cjs +23 -0
- package/lib/{node/USE_CLIENT_BUNDLE-3263fb05.mjs → browser/USE_CLIENT_BUNDLE-b256b942.js} +142 -142
- package/lib/{edge/USE_SERVER_BUNDLE-046e1bfb.mjs → browser/USE_SERVER_BUNDLE-1aa7d195.js} +1 -1
- package/lib/browser/USE_SERVER_BUNDLE-d96aeaff.cjs +1 -0
- package/lib/browser/{bundle-97bfd273.mjs → bundle-0a946b39.js} +953 -928
- package/lib/browser/bundle-3a5994f4.cjs +76 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.d.cts +1 -0
- package/lib/browser/index.d.mts +1 -0
- package/lib/browser/index.mjs +3 -3
- package/lib/edge/USE_CLIENT_BUNDLE-210385b8.cjs +23 -0
- package/lib/{browser/USE_CLIENT_BUNDLE-a0cfd96e.mjs → edge/USE_CLIENT_BUNDLE-736c38f3.js} +142 -142
- package/lib/{node/USE_SERVER_BUNDLE-5a2dbc47.mjs → edge/USE_SERVER_BUNDLE-14516672.js} +1 -1
- package/lib/edge/USE_SERVER_BUNDLE-8c86a267.cjs +1 -0
- package/lib/edge/{bundle-4c987206.mjs → bundle-46eb4735.js} +1237 -1211
- package/lib/edge/{bundle-cb675da6.js → bundle-57428492.cjs} +30 -30
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.d.cts +1 -0
- package/lib/edge/index.d.mts +1 -0
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-bcf2ccc8.mjs → node/USE_CLIENT_BUNDLE-2ae32ced.js} +142 -142
- package/lib/node/USE_CLIENT_BUNDLE-85a396bb.cjs +23 -0
- package/lib/{browser/USE_SERVER_BUNDLE-4b7a745a.mjs → node/USE_SERVER_BUNDLE-cd1f2a07.js} +1 -1
- package/lib/node/USE_SERVER_BUNDLE-e2ad5ce3.cjs +1 -0
- package/lib/node/bundle-3d88f873.cjs +116 -0
- package/lib/node/{bundle-e3f18037.mjs → bundle-d37c53b5.js} +794 -769
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.d.cts +1 -0
- package/lib/node/index.d.mts +1 -0
- package/lib/node/index.mjs +3 -3
- package/package.json +8 -22
- package/types/{blocks → cjs/blocks}/button/button.d.ts +4 -3
- package/types/{blocks → cjs/blocks}/columns/columns.d.ts +2 -2
- package/types/{blocks → cjs/blocks}/custom-code/custom-code.d.ts +2 -2
- package/types/cjs/blocks/embed/embed.d.ts +6 -0
- package/types/{blocks → cjs/blocks}/fragment/fragment.d.ts +2 -2
- package/types/{blocks → cjs/blocks}/image/image.d.ts +2 -2
- package/types/{blocks → cjs/blocks}/img/img.d.ts +4 -3
- package/types/{blocks → cjs/blocks}/section/section.d.ts +4 -3
- package/types/{blocks → cjs/blocks}/symbol/symbol.d.ts +6 -4
- package/types/cjs/blocks/text/text.d.ts +6 -0
- package/types/{blocks → cjs/blocks}/video/video.d.ts +2 -2
- package/types/{components → cjs/components}/block/block.d.ts +2 -2
- package/types/{components → cjs/components}/block/components/block-styles.d.ts +2 -2
- package/types/{components → cjs/components}/block/components/block-wrapper.d.ts +6 -5
- package/types/cjs/components/block/components/component-ref/component-ref.d.ts +4 -0
- package/types/{components → cjs/components}/block/components/component-ref/component-ref.helpers.d.ts +1 -1
- package/types/{components → cjs/components}/block/components/interactive-element.d.ts +2 -2
- package/types/{components → cjs/components}/block/components/repeated-block.d.ts +2 -2
- package/types/{components → cjs/components}/blocks/blocks-wrapper.d.ts +2 -2
- package/types/{components → cjs/components}/blocks/blocks.d.ts +3 -3
- package/types/{components → cjs/components}/content/components/enable-editor.d.ts +2 -2
- package/types/{components → cjs/components}/content/components/styles.d.ts +2 -2
- package/types/cjs/components/content/content.d.ts +4 -0
- package/types/{components → cjs/components}/content-variants/content-variants.d.ts +2 -2
- package/types/cjs/components/inlined-script.d.ts +7 -0
- package/types/cjs/components/inlined-styles.d.ts +7 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -0
- package/types/cjs/helpers/preview-lru-cache/get.d.ts +1 -0
- package/types/{helpers → cjs/helpers}/preview-lru-cache/set.d.ts +1 -1
- package/types/{helpers → cjs/helpers}/preview-lru-cache/types.d.ts +1 -1
- package/types/cjs/index-helpers/blocks-exports.d.ts +19 -0
- package/types/{server-index.d.ts → cjs/server-index.d.ts} +2 -2
- package/types/esm/blocks/button/button.d.ts +12 -0
- package/types/esm/blocks/button/component-info.d.ts +2 -0
- package/types/esm/blocks/columns/columns.d.ts +17 -0
- package/types/esm/blocks/columns/component-info.d.ts +2 -0
- package/types/esm/blocks/custom-code/component-info.d.ts +2 -0
- package/types/esm/blocks/custom-code/custom-code.d.ts +7 -0
- package/types/esm/blocks/embed/component-info.d.ts +2 -0
- package/types/esm/blocks/embed/embed.d.ts +6 -0
- package/types/esm/blocks/embed/helpers.d.ts +1 -0
- package/types/esm/blocks/fragment/component-info.d.ts +2 -0
- package/types/esm/blocks/fragment/fragment.d.ts +8 -0
- package/types/esm/blocks/helpers.d.ts +13 -0
- package/types/esm/blocks/image/component-info.d.ts +2 -0
- package/types/esm/blocks/image/image.d.ts +22 -0
- package/types/esm/blocks/image/image.helpers.d.ts +1 -0
- package/types/esm/blocks/img/component-info.d.ts +2 -0
- package/types/esm/blocks/img/img.d.ts +14 -0
- package/types/esm/blocks/section/component-info.d.ts +2 -0
- package/types/esm/blocks/section/section.d.ts +12 -0
- package/types/esm/blocks/symbol/component-info.d.ts +2 -0
- package/types/esm/blocks/symbol/symbol.d.ts +26 -0
- package/types/esm/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/types/esm/blocks/text/component-info.d.ts +2 -0
- package/types/esm/blocks/text/text.d.ts +6 -0
- package/types/esm/blocks/video/component-info.d.ts +2 -0
- package/types/esm/blocks/video/video.d.ts +20 -0
- package/types/esm/components/block/block.d.ts +10 -0
- package/types/esm/components/block/block.helpers.d.ts +13 -0
- package/types/esm/components/block/components/block-styles.d.ts +9 -0
- package/types/esm/components/block/components/block-wrapper.d.ts +18 -0
- package/types/esm/components/block/components/component-ref/component-ref.d.ts +4 -0
- package/types/esm/components/block/components/component-ref/component-ref.helpers.d.ts +28 -0
- package/types/esm/components/block/components/interactive-element.d.ts +12 -0
- package/types/esm/components/block/components/repeated-block.d.ts +10 -0
- package/types/esm/components/block/types.d.ts +6 -0
- package/types/esm/components/blocks/blocks-wrapper.d.ts +11 -0
- package/types/esm/components/blocks/blocks.d.ts +9 -0
- package/types/esm/components/content/components/enable-editor.d.ts +10 -0
- package/types/esm/components/content/components/styles.d.ts +9 -0
- package/types/esm/components/content/components/styles.helpers.d.ts +15 -0
- package/types/esm/components/content/content.d.ts +4 -0
- package/types/esm/components/content/content.helpers.d.ts +7 -0
- package/types/esm/components/content/content.types.d.ts +24 -0
- package/types/esm/components/content/wrap-component-ref.d.ts +6 -0
- package/types/esm/components/content-variants/content-variants.d.ts +10 -0
- package/types/esm/components/content-variants/content-variants.types.d.ts +20 -0
- package/types/esm/components/content-variants/helpers.d.ts +41 -0
- package/types/esm/components/inlined-script.d.ts +7 -0
- package/types/esm/components/inlined-styles.d.ts +7 -0
- package/types/esm/constants/builder-registered-components.d.ts +6 -0
- package/types/esm/constants/device-sizes.d.ts +13 -0
- package/types/esm/constants/sdk-version.d.ts +1 -0
- package/types/esm/constants/target.d.ts +2 -0
- package/types/esm/context/builder.context.d.ts +3 -0
- package/types/esm/context/components.context.d.ts +3 -0
- package/types/esm/context/types.d.ts +35 -0
- package/types/esm/functions/camel-to-kebab-case.d.ts +1 -0
- package/types/esm/functions/deopt.d.ts +4 -0
- package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/types/esm/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/types/esm/functions/evaluate/choose-eval.d.ts +6 -0
- package/types/esm/functions/evaluate/evaluate.d.ts +2 -0
- package/types/esm/functions/evaluate/helpers.d.ts +24 -0
- package/types/esm/functions/evaluate/index.d.ts +1 -0
- package/types/esm/functions/event-handler-name.d.ts +1 -0
- package/types/esm/functions/extract-text-styles.d.ts +4 -0
- package/types/esm/functions/fast-clone.d.ts +4 -0
- package/types/esm/functions/fetch-builder-props.d.ts +53 -0
- package/types/esm/functions/get-block-actions-handler.d.ts +8 -0
- package/types/esm/functions/get-block-actions.d.ts +10 -0
- package/types/esm/functions/get-block-component-options.d.ts +2 -0
- package/types/esm/functions/get-block-properties.d.ts +6 -0
- package/types/esm/functions/get-builder-search-params/index.d.ts +12 -0
- package/types/esm/functions/get-content/generate-content-url.d.ts +2 -0
- package/types/esm/functions/get-content/index.d.ts +28 -0
- package/types/esm/functions/get-content/types.d.ts +142 -0
- package/types/esm/functions/get-fetch.d.ts +1 -0
- package/types/esm/functions/get-global-this.d.ts +4 -0
- package/types/esm/functions/get-processed-block.d.ts +10 -0
- package/types/esm/functions/get-react-native-block-styles.d.ts +7 -0
- package/types/esm/functions/is-browser.d.ts +1 -0
- package/types/esm/functions/is-editing.d.ts +1 -0
- package/types/esm/functions/is-iframe.d.ts +1 -0
- package/types/esm/functions/is-previewing.d.ts +1 -0
- package/types/esm/functions/register-component.d.ts +15 -0
- package/types/esm/functions/register.d.ts +16 -0
- package/types/esm/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/esm/functions/set-editor-settings.d.ts +4 -0
- package/types/esm/functions/set.d.ts +7 -0
- package/types/esm/functions/track/helpers.d.ts +5 -0
- package/types/esm/functions/track/index.d.ts +51 -0
- package/types/esm/functions/track/interaction.d.ts +13 -0
- package/types/esm/functions/transform-block-properties.d.ts +1 -0
- package/types/esm/functions/transform-block.d.ts +2 -0
- package/types/esm/helpers/ab-tests.d.ts +9 -0
- package/types/esm/helpers/canTrack.d.ts +1 -0
- package/types/esm/helpers/cookie.d.ts +19 -0
- package/types/esm/helpers/css.d.ts +7 -0
- package/types/esm/helpers/flatten.d.ts +6 -0
- package/types/esm/helpers/localStorage.d.ts +9 -0
- package/types/esm/helpers/logger.d.ts +6 -0
- package/types/esm/helpers/nullable.d.ts +2 -0
- package/types/esm/helpers/preview-lru-cache/get.d.ts +1 -0
- package/types/esm/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/types/esm/helpers/preview-lru-cache/init.d.ts +6 -0
- package/types/esm/helpers/preview-lru-cache/set.d.ts +7 -0
- package/types/esm/helpers/preview-lru-cache/types.d.ts +12 -0
- package/types/esm/helpers/sessionId.d.ts +6 -0
- package/types/esm/helpers/url.d.ts +6 -0
- package/types/esm/helpers/uuid.d.ts +8 -0
- package/types/esm/helpers/visitorId.d.ts +6 -0
- package/types/esm/index-helpers/blocks-exports.d.ts +19 -0
- package/types/esm/index-helpers/top-of-file.d.ts +1 -0
- package/types/esm/index.d.ts +7 -0
- package/types/esm/scripts/init-editing.d.ts +6 -0
- package/types/esm/server-index.d.ts +15 -0
- package/types/esm/types/api-version.d.ts +2 -0
- package/types/esm/types/builder-block.d.ts +66 -0
- package/types/esm/types/builder-content.d.ts +44 -0
- package/types/esm/types/builder-props.d.ts +9 -0
- package/types/esm/types/can-track.d.ts +3 -0
- package/types/esm/types/components.d.ts +110 -0
- package/types/esm/types/deep-partial.d.ts +3 -0
- package/types/esm/types/element.d.ts +59 -0
- package/types/esm/types/enforced-partials.d.ts +21 -0
- package/types/esm/types/input.d.ts +121 -0
- package/types/esm/types/targets.d.ts +1 -0
- package/types/esm/types/typescript.d.ts +11 -0
- package/lib/browser/USE_CLIENT_BUNDLE-36991304.js +0 -23
- package/lib/browser/USE_SERVER_BUNDLE-2ca6fbdb.js +0 -1
- package/lib/browser/bundle-55af31a8.js +0 -76
- package/lib/edge/USE_CLIENT_BUNDLE-66349ab4.js +0 -23
- package/lib/edge/USE_SERVER_BUNDLE-02f64ca7.js +0 -1
- package/lib/node/USE_CLIENT_BUNDLE-9a315fd7.js +0 -23
- package/lib/node/USE_SERVER_BUNDLE-ddf14d3b.js +0 -1
- package/lib/node/bundle-b8de5bb9.js +0 -116
- package/types/blocks/embed/embed.d.ts +0 -6
- package/types/blocks/text/text.d.ts +0 -6
- package/types/components/block/components/component-ref/component-ref.d.ts +0 -4
- package/types/components/content/content.d.ts +0 -4
- package/types/components/inlined-script.d.ts +0 -7
- package/types/components/inlined-styles.d.ts +0 -7
- package/types/constants/sdk-version.d.ts +0 -1
- package/types/helpers/preview-lru-cache/get.d.ts +0 -1
- package/types/index-helpers/blocks-exports.d.ts +0 -19
- package/types/{blocks → cjs/blocks}/button/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/columns/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/custom-code/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/embed/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/embed/helpers.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/fragment/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/helpers.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/image/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/image/image.helpers.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/img/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/section/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/symbol/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/symbol/symbol.helpers.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/text/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/video/component-info.d.ts +0 -0
- package/types/{components → cjs/components}/block/block.helpers.d.ts +0 -0
- package/types/{components → cjs/components}/block/types.d.ts +0 -0
- package/types/{components → cjs/components}/content/components/styles.helpers.d.ts +0 -0
- package/types/{components → cjs/components}/content/content.helpers.d.ts +0 -0
- package/types/{components → cjs/components}/content/content.types.d.ts +0 -0
- package/types/{components → cjs/components}/content/wrap-component-ref.d.ts +0 -0
- package/types/{components → cjs/components}/content-variants/content-variants.types.d.ts +0 -0
- package/types/{components → cjs/components}/content-variants/helpers.d.ts +0 -0
- package/types/{constants → cjs/constants}/builder-registered-components.d.ts +0 -0
- package/types/{constants → cjs/constants}/device-sizes.d.ts +0 -0
- package/types/{constants → cjs/constants}/target.d.ts +0 -0
- package/types/{context → cjs/context}/builder.context.d.ts +0 -0
- package/types/{context → cjs/context}/components.context.d.ts +0 -0
- package/types/{context → cjs/context}/types.d.ts +1 -1
- package/types/{functions → cjs/functions}/camel-to-kebab-case.d.ts +0 -0
- package/types/{functions → cjs/functions}/deopt.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/browser-runtime/browser.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/browser-runtime/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/choose-eval.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/evaluate.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/helpers.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/event-handler-name.d.ts +0 -0
- package/types/{functions → cjs/functions}/extract-text-styles.d.ts +0 -0
- package/types/{functions → cjs/functions}/fast-clone.d.ts +0 -0
- package/types/{functions → cjs/functions}/fetch-builder-props.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-block-actions-handler.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-block-actions.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-block-component-options.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-block-properties.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-builder-search-params/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-content/generate-content-url.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-content/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-content/types.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-fetch.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-global-this.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-processed-block.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-react-native-block-styles.d.ts +0 -0
- package/types/{functions → cjs/functions}/is-browser.d.ts +0 -0
- package/types/{functions → cjs/functions}/is-editing.d.ts +0 -0
- package/types/{functions → cjs/functions}/is-iframe.d.ts +0 -0
- package/types/{functions → cjs/functions}/is-previewing.d.ts +0 -0
- package/types/{functions → cjs/functions}/register-component.d.ts +0 -0
- package/types/{functions → cjs/functions}/register.d.ts +0 -0
- package/types/{functions → cjs/functions}/sanitize-react-native-block-styles.d.ts +0 -0
- package/types/{functions → cjs/functions}/set-editor-settings.d.ts +0 -0
- package/types/{functions → cjs/functions}/set.d.ts +0 -0
- package/types/{functions → cjs/functions}/track/helpers.d.ts +0 -0
- package/types/{functions → cjs/functions}/track/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/track/interaction.d.ts +0 -0
- package/types/{functions → cjs/functions}/transform-block-properties.d.ts +0 -0
- package/types/{functions → cjs/functions}/transform-block.d.ts +0 -0
- package/types/{helpers → cjs/helpers}/ab-tests.d.ts +1 -1
- /package/types/{helpers → cjs/helpers}/canTrack.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/cookie.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/css.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/flatten.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/localStorage.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/logger.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/nullable.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/preview-lru-cache/helpers.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/preview-lru-cache/init.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/sessionId.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/url.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/uuid.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/visitorId.d.ts +0 -0
- /package/types/{index-helpers → cjs/index-helpers}/top-of-file.d.ts +0 -0
- /package/types/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/types/{scripts → cjs/scripts}/init-editing.d.ts +0 -0
- /package/types/{types → cjs/types}/api-version.d.ts +0 -0
- /package/types/{types → cjs/types}/builder-block.d.ts +0 -0
- /package/types/{types → cjs/types}/builder-content.d.ts +0 -0
- /package/types/{types → cjs/types}/builder-props.d.ts +0 -0
- /package/types/{types → cjs/types}/can-track.d.ts +0 -0
- /package/types/{types → cjs/types}/components.d.ts +0 -0
- /package/types/{types → cjs/types}/deep-partial.d.ts +0 -0
- /package/types/{types → cjs/types}/element.d.ts +0 -0
- /package/types/{types → cjs/types}/enforced-partials.d.ts +0 -0
- /package/types/{types → cjs/types}/input.d.ts +0 -0
- /package/types/{types → cjs/types}/targets.d.ts +0 -0
- /package/types/{types → cjs/types}/typescript.d.ts +0 -0
package/lib/node/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-3d88f873.cjs"),t=require("./USE_CLIENT_BUNDLE-85a396bb.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-e2ad5ce3.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../types/cjs/index.d.ts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../types/esm/index.d.ts';
|
package/lib/node/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as i, t as m, C as c, R as g, q as p, S as l, T as C,
|
|
2
|
-
import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-
|
|
1
|
+
import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, w as d, m as f, E as u, x as B, n as S, y as E, A as R, z as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-d37c53b5.js";
|
|
2
|
+
import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-2ae32ced.js";
|
|
3
3
|
import "lru-cache";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react";
|
|
6
6
|
import "next/navigation";
|
|
7
|
-
import "./USE_SERVER_BUNDLE-
|
|
7
|
+
import "./USE_SERVER_BUNDLE-cd1f2a07.js";
|
|
8
8
|
export {
|
|
9
9
|
i as Blocks,
|
|
10
10
|
w as Button,
|
package/package.json
CHANGED
|
@@ -1,97 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-react-nextjs",
|
|
3
3
|
"description": "Builder.io RSC SDK for NextJS App Directory",
|
|
4
|
-
"version": "0.7.1
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
7
7
|
"types"
|
|
8
8
|
],
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
9
|
+
"main": "./lib/edge/index.cjs",
|
|
10
|
+
"module": "./lib/edge/index.mjs",
|
|
11
|
+
"type": "module",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"node": {
|
|
15
|
-
"types": "./types/index.d.ts",
|
|
16
15
|
"import": "./lib/node/index.mjs",
|
|
17
16
|
"require": "./lib/node/index.cjs"
|
|
18
17
|
},
|
|
19
18
|
"browser": {
|
|
20
|
-
"types": "./types/index.d.ts",
|
|
21
19
|
"import": "./lib/browser/index.mjs",
|
|
22
20
|
"require": "./lib/browser/index.cjs"
|
|
23
21
|
},
|
|
24
22
|
"edge-routine": {
|
|
25
|
-
"types": "./types/index.d.ts",
|
|
26
23
|
"import": "./lib/edge/index.mjs",
|
|
27
24
|
"require": "./lib/edge/index.cjs"
|
|
28
25
|
},
|
|
29
26
|
"workerd": {
|
|
30
|
-
"types": "./types/index.d.ts",
|
|
31
27
|
"import": "./lib/edge/index.mjs",
|
|
32
28
|
"require": "./lib/edge/index.cjs"
|
|
33
29
|
},
|
|
34
30
|
"deno": {
|
|
35
|
-
"types": "./types/index.d.ts",
|
|
36
31
|
"import": "./lib/edge/index.mjs",
|
|
37
32
|
"require": "./lib/edge/index.cjs"
|
|
38
33
|
},
|
|
39
34
|
"lagon": {
|
|
40
|
-
"types": "./types/index.d.ts",
|
|
41
35
|
"import": "./lib/edge/index.mjs",
|
|
42
36
|
"require": "./lib/edge/index.cjs"
|
|
43
37
|
},
|
|
44
38
|
"netlify": {
|
|
45
|
-
"types": "./types/index.d.ts",
|
|
46
39
|
"import": "./lib/edge/index.mjs",
|
|
47
40
|
"require": "./lib/edge/index.cjs"
|
|
48
41
|
},
|
|
49
42
|
"edge-light": {
|
|
50
|
-
"types": "./types/index.d.ts",
|
|
51
43
|
"import": "./lib/edge/index.mjs",
|
|
52
44
|
"require": "./lib/edge/index.cjs"
|
|
53
45
|
},
|
|
54
46
|
"bun": {
|
|
55
|
-
"types": "./types/index.d.ts",
|
|
56
47
|
"import": "./lib/edge/index.mjs",
|
|
57
48
|
"require": "./lib/edge/index.cjs"
|
|
58
49
|
},
|
|
59
50
|
"react-native": {
|
|
60
|
-
"types": "./types/index.d.ts",
|
|
61
51
|
"import": "./lib/node/index.mjs",
|
|
62
52
|
"require": "./lib/node/index.cjs"
|
|
63
53
|
},
|
|
64
54
|
"electron": {
|
|
65
|
-
"types": "./types/index.d.ts",
|
|
66
55
|
"import": "./lib/node/index.mjs",
|
|
67
56
|
"require": "./lib/node/index.cjs"
|
|
68
57
|
},
|
|
69
58
|
"default": {
|
|
70
|
-
"types": "./types/index.d.ts",
|
|
71
59
|
"import": "./lib/browser/index.mjs",
|
|
72
60
|
"require": "./lib/browser/index.cjs"
|
|
73
61
|
}
|
|
74
62
|
},
|
|
75
63
|
"./edge": {
|
|
76
|
-
"types": "./types/index.d.ts",
|
|
77
64
|
"import": "./lib/edge/index.mjs",
|
|
78
65
|
"require": "./lib/edge/index.cjs"
|
|
79
66
|
},
|
|
80
67
|
"./node": {
|
|
81
|
-
"types": "./types/index.d.ts",
|
|
82
68
|
"import": "./lib/node/index.mjs",
|
|
83
69
|
"require": "./lib/node/index.cjs"
|
|
84
70
|
},
|
|
85
71
|
"./browser": {
|
|
86
|
-
"types": "./types/index.d.ts",
|
|
87
72
|
"import": "./lib/browser/index.mjs",
|
|
88
73
|
"require": "./lib/browser/index.cjs"
|
|
89
74
|
}
|
|
90
75
|
},
|
|
91
76
|
"scripts": {
|
|
92
77
|
"release": "npm publish",
|
|
93
|
-
"types": "tsc",
|
|
94
|
-
"
|
|
78
|
+
"types:cjs": "yarn tsc --p ./tsconfig.cjs.json",
|
|
79
|
+
"types:esm": "yarn tsc --p ./tsconfig.esm.json",
|
|
80
|
+
"build": "nx run-many -p @builder.io/sdk-react-nextjs -t types:cjs types:esm build:node build:edge build:browser",
|
|
95
81
|
"build:node": "SDK_ENV=node vite build --mode lib",
|
|
96
82
|
"build:edge": "SDK_ENV=edge vite build --mode lib",
|
|
97
83
|
"build:browser": "SDK_ENV=browser vite build --mode lib"
|
|
@@ -104,7 +90,7 @@
|
|
|
104
90
|
"devDependencies": {
|
|
105
91
|
"@builder.io/sdks": "workspace:*",
|
|
106
92
|
"@vitejs/plugin-react": "^4.0.4",
|
|
107
|
-
"next": "
|
|
93
|
+
"next": ">=13.4.20",
|
|
108
94
|
"nx": "^16.6.0",
|
|
109
95
|
"nx-cloud": "^16.2.0",
|
|
110
96
|
"react": "^18.2.0",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
-
*/
|
|
4
|
+
*/
|
|
5
|
+
export interface ButtonProps {
|
|
5
6
|
attributes?: any;
|
|
6
7
|
text?: string;
|
|
7
8
|
link?: string;
|
|
8
9
|
openLinkInNewTab?: boolean;
|
|
9
10
|
}
|
|
10
|
-
declare function Button(props: ButtonProps): JSX.Element;
|
|
11
|
+
declare function Button(props: ButtonProps): React.JSX.Element;
|
|
11
12
|
export default Button;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
type Column = {
|
|
3
3
|
blocks: BuilderBlock[];
|
|
4
4
|
width?: number;
|
|
@@ -13,5 +13,5 @@ export interface ColumnProps extends BuilderComponentsProp {
|
|
|
13
13
|
}
|
|
14
14
|
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
15
15
|
import type { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder-props.js";
|
|
16
|
-
declare function Columns(props: PropsWithBuilderData<ColumnProps>): JSX.Element;
|
|
16
|
+
declare function Columns(props: PropsWithBuilderData<ColumnProps>): React.JSX.Element;
|
|
17
17
|
export default Columns;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export interface CustomCodeProps {
|
|
3
3
|
code: string;
|
|
4
4
|
replaceNodes?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare function CustomCode(props: CustomCodeProps): JSX.Element;
|
|
6
|
+
declare function CustomCode(props: CustomCodeProps): React.JSX.Element;
|
|
7
7
|
export default CustomCode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export interface FragmentProps {
|
|
3
3
|
maxWidth?: number;
|
|
4
4
|
attributes?: any;
|
|
5
5
|
children?: any;
|
|
6
6
|
}
|
|
7
|
-
declare function FragmentComponent(props: FragmentProps): JSX.Element;
|
|
7
|
+
declare function FragmentComponent(props: FragmentProps): React.JSX.Element;
|
|
8
8
|
export default FragmentComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export interface ImageProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
image: string;
|
|
@@ -18,5 +18,5 @@ export interface ImageProps {
|
|
|
18
18
|
src?: string;
|
|
19
19
|
}
|
|
20
20
|
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
21
|
-
declare function Image(props: ImageProps): JSX.Element;
|
|
21
|
+
declare function Image(props: ImageProps): React.JSX.Element;
|
|
22
22
|
export default Image;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
-
*/
|
|
4
|
+
*/
|
|
5
|
+
export interface ImgProps {
|
|
5
6
|
attributes?: any;
|
|
6
7
|
imgSrc?: string;
|
|
7
8
|
image?: string;
|
|
@@ -9,5 +10,5 @@
|
|
|
9
10
|
backgroundSize?: "cover" | "contain";
|
|
10
11
|
backgroundPosition?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
|
|
11
12
|
}
|
|
12
|
-
declare function ImgComponent(props: ImgProps): JSX.Element;
|
|
13
|
+
declare function ImgComponent(props: ImgProps): React.JSX.Element;
|
|
13
14
|
export default ImgComponent;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
-
*/
|
|
4
|
+
*/
|
|
5
|
+
export interface SectionProps {
|
|
5
6
|
maxWidth?: number;
|
|
6
7
|
attributes?: any;
|
|
7
8
|
children?: any;
|
|
8
9
|
builderBlock?: any;
|
|
9
10
|
}
|
|
10
|
-
declare function SectionComponent(props: SectionProps): JSX.Element;
|
|
11
|
+
declare function SectionComponent(props: SectionProps): React.JSX.Element;
|
|
11
12
|
export default SectionComponent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
-
*/
|
|
4
|
+
*/
|
|
5
|
+
export interface SymbolInfo {
|
|
5
6
|
model?: string;
|
|
6
7
|
entry?: string;
|
|
7
8
|
data?: any;
|
|
@@ -11,7 +12,8 @@
|
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* This import is used by the Svelte SDK. Do not remove.
|
|
14
|
-
*/
|
|
15
|
+
*/
|
|
16
|
+
export interface SymbolProps extends BuilderComponentsProp {
|
|
15
17
|
symbol?: SymbolInfo;
|
|
16
18
|
dataOnly?: boolean;
|
|
17
19
|
dynamic?: boolean;
|
|
@@ -20,5 +22,5 @@
|
|
|
20
22
|
}
|
|
21
23
|
import type { BuilderContent } from "../../types/builder-content.js";
|
|
22
24
|
import type { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder-props.js";
|
|
23
|
-
declare function Symbol(props: PropsWithBuilderData<SymbolProps>): Promise<JSX.Element>;
|
|
25
|
+
declare function Symbol(props: PropsWithBuilderData<SymbolProps>): Promise<React.JSX.Element>;
|
|
24
26
|
export default Symbol;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export interface VideoProps {
|
|
3
3
|
attributes?: any;
|
|
4
4
|
video?: string;
|
|
@@ -16,5 +16,5 @@ export interface VideoProps {
|
|
|
16
16
|
posterImage?: string;
|
|
17
17
|
lazyLoad?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare function Video(props: VideoProps): JSX.Element;
|
|
19
|
+
declare function Video(props: VideoProps): React.JSX.Element;
|
|
20
20
|
export default Video;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export type BlockProps = {
|
|
3
3
|
block: BuilderBlock;
|
|
4
4
|
context: BuilderContextInterface;
|
|
@@ -6,5 +6,5 @@ export type BlockProps = {
|
|
|
6
6
|
};
|
|
7
7
|
import type { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
|
|
8
8
|
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
9
|
-
declare function Block(props: BlockProps): JSX.Element;
|
|
9
|
+
declare function Block(props: BlockProps): React.JSX.Element;
|
|
10
10
|
export default Block;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export type BlockStylesProps = {
|
|
3
3
|
block: BuilderBlock;
|
|
4
4
|
context: BuilderContextInterface;
|
|
5
5
|
};
|
|
6
6
|
import type { BuilderContextInterface } from "../../../context/types.js";
|
|
7
7
|
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
8
|
-
declare function BlockStyles(props: BlockStylesProps): JSX.Element;
|
|
8
|
+
declare function BlockStyles(props: BlockStylesProps): React.JSX.Element;
|
|
9
9
|
export default BlockStyles;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
-
*/
|
|
4
|
+
*/
|
|
5
|
+
type BlockWrapperProps = {
|
|
5
6
|
Wrapper: string;
|
|
6
7
|
block: BuilderBlock;
|
|
7
8
|
context: BuilderContextInterface;
|
|
@@ -10,8 +11,8 @@
|
|
|
10
11
|
/**
|
|
11
12
|
* This component renders a block's wrapper HTML element (from the block's `tagName` property).
|
|
12
13
|
* It reuses the exact same logic as the `InteractiveElement` component, but we need to have 2 separate components for
|
|
13
|
-
* Svelte's sake, as it needs to know at compile-time whether to use: * - `<svelte:element>` (for HTML element) or * - `<svelte:component>` (for custom components) */ import type {
|
|
14
|
+
* Svelte's sake, as it needs to know at compile-time whether to use: * - `<svelte:element>` (for HTML element) or * - `<svelte:component>` (for custom components) */ import type { BuilderContextInterface } from "../../../context/types.js";
|
|
14
15
|
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
15
|
-
import type {
|
|
16
|
-
declare function BlockWrapper(props: PropsWithChildren<BlockWrapperProps>): JSX.Element;
|
|
16
|
+
import type { PropsWithChildren } from "../../../types/typescript.js";
|
|
17
|
+
declare function BlockWrapper(props: PropsWithChildren<BlockWrapperProps>): React.JSX.Element;
|
|
17
18
|
export default BlockWrapper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BuilderContextInterface, RegisteredComponents } from '../../../../context/types.js';
|
|
2
2
|
import type { BuilderBlock } from '../../../../types/builder-block.js';
|
|
3
3
|
import type { PropsWithBuilderData } from '../../../../types/builder-props.js';
|
|
4
|
-
import type { InteractiveElementProps } from '../interactive-element';
|
|
4
|
+
import type { InteractiveElementProps } from '../interactive-element.js';
|
|
5
5
|
type ComponentOptions = PropsWithBuilderData<{
|
|
6
6
|
[index: string]: any;
|
|
7
7
|
attributes?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export type InteractiveElementProps = {
|
|
3
3
|
Wrapper: any;
|
|
4
4
|
block: BuilderBlock;
|
|
@@ -8,5 +8,5 @@ export type InteractiveElementProps = {
|
|
|
8
8
|
import type { BuilderContextInterface } from "../../../context/types.js";
|
|
9
9
|
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
10
10
|
import type { PropsWithChildren } from "../../../types/typescript.js";
|
|
11
|
-
declare function InteractiveElement(props: PropsWithChildren<InteractiveElementProps>): JSX.Element;
|
|
11
|
+
declare function InteractiveElement(props: PropsWithChildren<InteractiveElementProps>): React.JSX.Element;
|
|
12
12
|
export default InteractiveElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
type Props = {
|
|
3
3
|
block: BuilderBlock;
|
|
4
4
|
repeatContext: BuilderContextInterface;
|
|
@@ -6,5 +6,5 @@ type Props = {
|
|
|
6
6
|
};
|
|
7
7
|
import type { BuilderContextInterface, RegisteredComponents } from "../../../context/types.js";
|
|
8
8
|
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
9
|
-
declare function RepeatedBlock(props: Props): JSX.Element;
|
|
9
|
+
declare function RepeatedBlock(props: Props): React.JSX.Element;
|
|
10
10
|
export default RepeatedBlock;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export type BlocksWrapperProps = {
|
|
3
3
|
blocks: BuilderBlock[] | undefined;
|
|
4
4
|
parent: string | undefined;
|
|
@@ -7,5 +7,5 @@ export type BlocksWrapperProps = {
|
|
|
7
7
|
};
|
|
8
8
|
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
9
9
|
import type { PropsWithChildren } from "../../types/typescript.js";
|
|
10
|
-
declare function BlocksWrapper(props: PropsWithChildren<BlocksWrapperProps>): JSX.Element;
|
|
10
|
+
declare function BlocksWrapper(props: PropsWithChildren<BlocksWrapperProps>): React.JSX.Element;
|
|
11
11
|
export default BlocksWrapper;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export type BlocksProps = Partial<BlocksWrapperProps> & {
|
|
3
3
|
context?: BuilderContextInterface;
|
|
4
4
|
registeredComponents?: RegisteredComponents;
|
|
5
5
|
};
|
|
6
|
-
import type { BlocksWrapperProps } from "./blocks-wrapper";
|
|
7
6
|
import type { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
|
|
8
|
-
|
|
7
|
+
import type { BlocksWrapperProps } from "./blocks-wrapper.js";
|
|
8
|
+
declare function Blocks(props: BlocksProps): React.JSX.Element;
|
|
9
9
|
export default Blocks;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
type BuilderEditorProps = Omit<ContentProps, "customComponents" | "data" | "apiVersion" | "isSsrAbTest"> & {
|
|
3
3
|
builderContextSignal: BuilderContextInterface;
|
|
4
4
|
setBuilderContextSignal?: (signal: any) => any;
|
|
@@ -6,5 +6,5 @@ type BuilderEditorProps = Omit<ContentProps, "customComponents" | "data" | "apiV
|
|
|
6
6
|
};
|
|
7
7
|
import type { BuilderContextInterface } from "../../../context/types.js";
|
|
8
8
|
import type { ContentProps } from "../content.types.js";
|
|
9
|
-
declare function EnableEditor(props: BuilderEditorProps): JSX.Element;
|
|
9
|
+
declare function EnableEditor(props: BuilderEditorProps): React.JSX.Element;
|
|
10
10
|
export default EnableEditor;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
cssCode?: string;
|
|
4
4
|
customFonts?: CustomFont[];
|
|
5
5
|
contentId?: string;
|
|
6
6
|
}
|
|
7
7
|
import type { CustomFont } from "./styles.helpers.js";
|
|
8
|
-
declare function ContentStyles(props: Props): JSX.Element;
|
|
8
|
+
declare function ContentStyles(props: Props): React.JSX.Element;
|
|
9
9
|
export default ContentStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
type VariantsProviderProps = ContentVariantsPrps & {
|
|
3
3
|
/**
|
|
4
4
|
* For internal use only. Do not provide this prop.
|
|
@@ -6,5 +6,5 @@ type VariantsProviderProps = ContentVariantsPrps & {
|
|
|
6
6
|
__isNestedRender?: boolean;
|
|
7
7
|
};
|
|
8
8
|
import type { ContentVariantsPrps } from "./content-variants.types.js";
|
|
9
|
-
declare function ContentVariants(props: VariantsProviderProps): JSX.Element;
|
|
9
|
+
declare function ContentVariants(props: VariantsProviderProps): React.JSX.Element;
|
|
10
10
|
export default ContentVariants;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SDK_VERSION = "0.7.1";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getPreviewContent(searchParams: URLSearchParams): import("../../types/builder-content.js").BuilderContent;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Note: This logic is only used by the NextJS SDK.
|
|
5
5
|
*/
|
|
6
6
|
import type { LRUCache } from 'lru-cache';
|
|
7
|
-
import type { BuilderContent } from '../../types/builder-content';
|
|
7
|
+
import type { BuilderContent } from '../../types/builder-content.js';
|
|
8
8
|
type BuilderLRUCache = LRUCache<string, BuilderContent>;
|
|
9
9
|
export type GlobalWCache = typeof globalThis & {
|
|
10
10
|
_BUILDER_PREVIEW_LRU_CACHE: BuilderLRUCache;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { default as Button } from '../blocks/button/button.js';
|
|
2
|
+
export { default as Columns } from '../blocks/columns/columns.js';
|
|
3
|
+
export { default as Fragment } from '../blocks/fragment/fragment.js';
|
|
4
|
+
export { default as Image } from '../blocks/image/image.js';
|
|
5
|
+
export { default as Section } from '../blocks/section/section.js';
|
|
6
|
+
export { default as Symbol } from '../blocks/symbol/symbol.js';
|
|
7
|
+
export { default as Text } from '../blocks/text/text.js';
|
|
8
|
+
export { default as Video } from '../blocks/video/video.js';
|
|
9
|
+
import { default as Blocks } from '../components/blocks/blocks.js';
|
|
10
|
+
import { default as Content } from '../components/content-variants/content-variants.js';
|
|
11
|
+
export { Blocks, Content };
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Renamed to `Blocks`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const RenderBlocks: typeof Blocks;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Renamed to `Content`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const RenderContent: typeof Content;
|
|
@@ -6,10 +6,10 @@ export { register } from './functions/register.js';
|
|
|
6
6
|
export type { InsertMenuConfig, InsertMenuItem } from './functions/register.js';
|
|
7
7
|
export { setEditorSettings } from './functions/set-editor-settings.js';
|
|
8
8
|
export type { Settings } from './functions/set-editor-settings.js';
|
|
9
|
-
export { fetchEntries, fetchOneEntry, getAllContent, getContent
|
|
9
|
+
export { _processContentResult, fetchEntries, fetchOneEntry, getAllContent, getContent } from './functions/get-content/index.js';
|
|
10
10
|
export { getBuilderSearchParams } from './functions/get-builder-search-params/index.js';
|
|
11
11
|
export { track } from './functions/track/index.js';
|
|
12
|
+
export type { ContentProps } from './components/content/content.types.js';
|
|
12
13
|
export type { RegisteredComponent } from './context/types.js';
|
|
13
14
|
export type { ComponentInfo } from './types/components.js';
|
|
14
|
-
export type { ContentProps } from './components/content/content.types.js';
|
|
15
15
|
export { fetchBuilderProps } from './functions/fetch-builder-props.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
+
*/
|
|
5
|
+
export interface ButtonProps {
|
|
6
|
+
attributes?: any;
|
|
7
|
+
text?: string;
|
|
8
|
+
link?: string;
|
|
9
|
+
openLinkInNewTab?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function Button(props: ButtonProps): React.JSX.Element;
|
|
12
|
+
export default Button;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type Column = {
|
|
3
|
+
blocks: BuilderBlock[];
|
|
4
|
+
width?: number;
|
|
5
|
+
};
|
|
6
|
+
type StackColumnsAt = "tablet" | "mobile" | "never";
|
|
7
|
+
export interface ColumnProps extends BuilderComponentsProp {
|
|
8
|
+
columns?: Column[];
|
|
9
|
+
builderBlock: BuilderBlock;
|
|
10
|
+
space?: number;
|
|
11
|
+
stackColumnsAt?: StackColumnsAt;
|
|
12
|
+
reverseColumnsWhenStacked?: boolean;
|
|
13
|
+
}
|
|
14
|
+
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
15
|
+
import type { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder-props.js";
|
|
16
|
+
declare function Columns(props: PropsWithBuilderData<ColumnProps>): React.JSX.Element;
|
|
17
|
+
export default Columns;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isJsScript: (script: HTMLScriptElement) => boolean;
|