@builder.io/sdk-react 0.2.3-3 → 0.2.3
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/dist/sdk/blocks/BaseText.d.ts +6 -0
- package/dist/sdk/blocks/BaseText.js +9 -0
- package/dist/sdk/blocks/button/button.d.ts +9 -0
- package/dist/sdk/blocks/button/button.js +14 -0
- package/dist/sdk/blocks/button/component-info.d.ts +2 -0
- package/dist/sdk/blocks/button/component-info.js +38 -0
- package/dist/sdk/blocks/columns/columns.d.ts +16 -0
- package/dist/sdk/blocks/columns/columns.js +127 -0
- package/dist/sdk/blocks/columns/component-info.d.ts +2 -0
- package/dist/sdk/blocks/columns/component-info.js +240 -0
- package/dist/sdk/blocks/custom-code/component-info.d.ts +2 -0
- package/dist/sdk/blocks/custom-code/component-info.js +27 -0
- package/dist/sdk/blocks/custom-code/custom-code.d.ts +7 -0
- package/dist/sdk/blocks/embed/component-info.d.ts +2 -0
- package/dist/sdk/blocks/embed/component-info.js +46 -0
- package/dist/sdk/blocks/embed/embed.d.ts +6 -0
- package/dist/sdk/blocks/embed/helpers.d.ts +1 -0
- package/dist/sdk/blocks/embed/helpers.js +6 -0
- package/dist/sdk/blocks/form/component-info.d.ts +2 -0
- package/dist/sdk/blocks/form/component-info.js +267 -0
- package/dist/sdk/blocks/form/form.d.ts +40 -0
- package/dist/sdk/blocks/form/form.js +203 -0
- package/dist/sdk/blocks/fragment/component-info.d.ts +2 -0
- package/dist/sdk/blocks/fragment/component-info.js +7 -0
- package/dist/sdk/blocks/fragment/fragment.d.ts +8 -0
- package/dist/sdk/blocks/image/component-info.d.ts +2 -0
- package/dist/sdk/blocks/image/component-info.js +152 -0
- package/dist/sdk/blocks/image/image.d.ts +22 -0
- package/dist/sdk/blocks/image/image.helpers.d.ts +1 -0
- package/dist/sdk/blocks/image/image.helpers.js +56 -0
- package/dist/sdk/blocks/image/image.js +82 -0
- package/dist/sdk/blocks/img/component-info.d.ts +2 -0
- package/dist/sdk/blocks/img/component-info.js +17 -0
- package/dist/sdk/blocks/img/img.d.ts +11 -0
- package/dist/sdk/blocks/input/component-info.d.ts +2 -0
- package/dist/sdk/blocks/input/component-info.js +71 -0
- package/dist/sdk/blocks/input/input.d.ts +12 -0
- package/dist/sdk/blocks/raw-text/component-info.d.ts +2 -0
- package/dist/sdk/blocks/raw-text/component-info.js +12 -0
- package/dist/sdk/blocks/raw-text/raw-text.d.ts +7 -0
- package/dist/sdk/blocks/section/component-info.d.ts +2 -0
- package/dist/sdk/blocks/section/component-info.js +45 -0
- package/dist/sdk/blocks/section/section.d.ts +9 -0
- package/dist/sdk/blocks/select/component-info.d.ts +2 -0
- package/dist/sdk/blocks/select/component-info.js +55 -0
- package/dist/sdk/blocks/select/select.d.ts +13 -0
- package/dist/sdk/blocks/submit-button/component-info.d.ts +2 -0
- package/dist/sdk/blocks/submit-button/component-info.js +28 -0
- package/dist/sdk/blocks/submit-button/submit-button.d.ts +7 -0
- package/dist/sdk/blocks/symbol/component-info.d.ts +2 -0
- package/dist/sdk/blocks/symbol/component-info.js +39 -0
- package/dist/sdk/blocks/symbol/symbol.d.ts +21 -0
- package/dist/sdk/blocks/symbol/symbol.js +69 -0
- package/dist/sdk/blocks/text/component-info.d.ts +2 -0
- package/dist/sdk/blocks/text/component-info.js +20 -0
- package/dist/sdk/blocks/text/text.d.ts +6 -0
- package/dist/sdk/blocks/textarea/component-info.d.ts +2 -0
- package/dist/sdk/blocks/textarea/component-info.js +43 -0
- package/dist/sdk/blocks/textarea/textarea.d.ts +10 -0
- package/dist/sdk/blocks/util.d.ts +4 -0
- package/dist/sdk/blocks/util.js +13 -0
- package/dist/sdk/blocks/video/component-info.d.ts +2 -0
- package/dist/sdk/blocks/video/component-info.js +102 -0
- package/dist/sdk/blocks/video/video.d.ts +19 -0
- package/dist/sdk/components/render-block/block-styles.d.ts +9 -0
- package/dist/sdk/components/render-block/render-block.d.ts +9 -0
- package/dist/sdk/components/render-block/render-block.helpers.d.ts +13 -0
- package/dist/sdk/components/render-block/render-block.helpers.js +98 -0
- package/dist/sdk/components/render-block/render-block.js +133 -0
- package/dist/sdk/components/render-block/render-component.d.ts +17 -0
- package/dist/sdk/components/render-block/render-repeated-block.d.ts +9 -0
- package/dist/sdk/components/render-block/render-repeated-block.js +27 -0
- package/dist/sdk/components/render-block/types.d.ts +6 -0
- package/dist/sdk/components/render-blocks.d.ts +10 -0
- package/dist/sdk/components/render-blocks.js +45 -0
- package/dist/sdk/components/render-content/builder-editing.d.ts +3 -0
- package/dist/sdk/components/render-content/components/render-styles.d.ts +9 -0
- package/dist/sdk/components/render-content/components/render-styles.helpers.d.ts +15 -0
- package/dist/sdk/components/render-content/components/render-styles.helpers.js +59 -0
- package/dist/sdk/components/render-content/components/render-styles.js +32 -0
- package/dist/sdk/components/render-content/index.d.ts +1 -0
- package/dist/sdk/components/render-content/index.js +1 -0
- package/dist/sdk/components/render-content/render-content.d.ts +4 -0
- package/dist/sdk/components/render-content/render-content.helpers.d.ts +7 -0
- package/dist/sdk/components/render-content/render-content.helpers.js +30 -0
- package/dist/sdk/components/render-content/render-content.js +296 -0
- package/dist/sdk/components/render-content/render-content.types.d.ts +29 -0
- package/dist/sdk/components/render-inlined-styles.d.ts +6 -0
- package/dist/sdk/components/render-inlined-styles.js +17 -0
- package/dist/sdk/constants/builder-registered-components.d.ts +6 -0
- package/dist/sdk/constants/builder-registered-components.js +39 -0
- package/dist/sdk/constants/device-sizes.d.ts +13 -0
- package/dist/sdk/constants/device-sizes.js +44 -0
- package/dist/sdk/constants/target.d.ts +2 -0
- package/dist/sdk/constants/target.js +2 -0
- package/dist/sdk/context/builder.context.d.ts +3 -0
- package/dist/sdk/context/builder.context.js +11 -0
- package/dist/sdk/context/types.d.ts +20 -0
- package/dist/sdk/functions/camel-to-kebab-case.d.ts +1 -0
- package/dist/sdk/functions/camel-to-kebab-case.js +1 -0
- package/dist/sdk/functions/evaluate.d.ts +6 -0
- package/dist/sdk/functions/evaluate.js +28 -0
- package/dist/sdk/functions/event-handler-name.d.ts +1 -0
- package/dist/sdk/functions/event-handler-name.js +4 -0
- package/dist/sdk/functions/extract-text-styles.d.ts +4 -0
- package/dist/sdk/functions/extract-text-styles.js +34 -0
- package/dist/sdk/functions/fast-clone.d.ts +4 -0
- package/dist/sdk/functions/fast-clone.js +4 -0
- package/dist/sdk/functions/get-block-actions-handler.d.ts +8 -0
- package/dist/sdk/functions/get-block-actions-handler.js +8 -0
- package/dist/sdk/functions/get-block-actions.d.ts +9 -0
- package/dist/sdk/functions/get-block-actions.js +15 -0
- package/dist/sdk/functions/get-block-component-options.d.ts +2 -0
- package/dist/sdk/functions/get-block-component-options.js +10 -0
- package/dist/sdk/functions/get-block-properties.d.ts +7 -0
- package/dist/sdk/functions/get-block-properties.js +66 -0
- package/dist/sdk/functions/get-builder-search-params/fn.test.js +13 -0
- package/dist/sdk/functions/get-builder-search-params/index.d.ts +6 -0
- package/dist/sdk/functions/get-builder-search-params/index.js +36 -0
- package/dist/sdk/functions/get-content/ab-testing.d.ts +5 -0
- package/dist/sdk/functions/get-content/ab-testing.js +78 -0
- package/dist/sdk/functions/get-content/generate-content-url.d.ts +2 -0
- package/dist/sdk/functions/get-content/generate-content-url.js +31 -0
- package/dist/sdk/functions/get-content/generate-content-url.test.js +82 -0
- package/dist/sdk/functions/get-content/index.d.ts +11 -0
- package/dist/sdk/functions/get-content/index.js +40 -0
- package/dist/sdk/functions/get-content/types.d.ts +45 -0
- package/dist/sdk/functions/get-fetch.d.ts +1 -0
- package/dist/sdk/functions/get-fetch.js +11 -0
- package/dist/sdk/functions/get-global-this.d.ts +4 -0
- package/dist/sdk/functions/get-global-this.js +15 -0
- package/dist/sdk/functions/get-processed-block.d.ts +10 -0
- package/dist/sdk/functions/get-processed-block.js +30 -0
- package/dist/sdk/functions/get-processed-block.test.js +31 -0
- package/dist/sdk/functions/get-react-native-block-styles.d.ts +7 -0
- package/dist/sdk/functions/get-react-native-block-styles.js +17 -0
- package/dist/sdk/functions/if-target.d.ts +7 -0
- package/dist/sdk/functions/if-target.js +10 -0
- package/dist/sdk/functions/is-browser.d.ts +1 -0
- package/dist/sdk/functions/is-browser.js +3 -0
- package/dist/sdk/functions/is-editing.d.ts +1 -0
- package/dist/sdk/functions/is-editing.js +7 -0
- package/dist/sdk/functions/is-iframe.d.ts +1 -0
- package/dist/sdk/functions/is-iframe.js +4 -0
- package/dist/sdk/functions/is-previewing.d.ts +1 -0
- package/dist/sdk/functions/is-previewing.js +11 -0
- package/dist/sdk/functions/on-change.d.ts +7 -0
- package/dist/sdk/functions/on-change.js +28 -0
- package/dist/sdk/functions/on-change.test.js +20 -0
- package/dist/sdk/functions/register-component.d.ts +14 -0
- package/dist/sdk/functions/register-component.js +26 -0
- package/dist/sdk/functions/register.d.ts +16 -0
- package/dist/sdk/functions/register.js +27 -0
- package/dist/sdk/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/dist/sdk/functions/sanitize-react-native-block-styles.js +53 -0
- package/dist/sdk/functions/set-editor-settings.d.ts +4 -0
- package/dist/sdk/functions/set-editor-settings.js +12 -0
- package/dist/sdk/functions/set.d.ts +7 -0
- package/dist/sdk/functions/set.js +21 -0
- package/dist/sdk/functions/set.test.js +16 -0
- package/dist/sdk/functions/track/helpers.d.ts +5 -0
- package/dist/sdk/functions/track/helpers.js +56 -0
- package/dist/sdk/functions/track/index.d.ts +51 -0
- package/dist/sdk/functions/track/index.js +59 -0
- package/dist/sdk/functions/track/interaction.d.ts +13 -0
- package/dist/sdk/functions/track/interaction.js +54 -0
- package/dist/sdk/functions/transform-block-properties.d.ts +1 -0
- package/dist/sdk/functions/transform-block-properties.js +3 -0
- package/dist/sdk/functions/transform-block.d.ts +2 -0
- package/dist/sdk/functions/transform-block.js +4 -0
- package/dist/sdk/helpers/ab-tests.d.ts +8 -0
- package/dist/sdk/helpers/ab-tests.js +5 -0
- package/dist/sdk/helpers/cookie.d.ts +15 -0
- package/dist/sdk/helpers/cookie.js +65 -0
- package/dist/sdk/helpers/css.d.ts +7 -0
- package/dist/sdk/helpers/css.js +27 -0
- package/dist/sdk/helpers/flatten.d.ts +6 -0
- package/dist/sdk/helpers/flatten.js +19 -0
- package/dist/sdk/helpers/localStorage.d.ts +9 -0
- package/dist/sdk/helpers/localStorage.js +24 -0
- package/dist/sdk/helpers/logger.d.ts +5 -0
- package/dist/sdk/helpers/logger.js +6 -0
- package/dist/sdk/helpers/nullable.d.ts +2 -0
- package/dist/sdk/helpers/nullable.js +1 -0
- package/dist/sdk/helpers/sessionId.d.ts +6 -0
- package/dist/sdk/helpers/sessionId.js +23 -0
- package/dist/sdk/helpers/time.d.ts +1 -0
- package/dist/sdk/helpers/time.js +2 -0
- package/dist/sdk/helpers/url.d.ts +6 -0
- package/dist/sdk/helpers/url.js +15 -0
- package/dist/sdk/helpers/url.test.js +21 -0
- package/dist/sdk/helpers/uuid.d.ts +8 -0
- package/dist/sdk/helpers/uuid.js +15 -0
- package/dist/sdk/helpers/visitorId.d.ts +6 -0
- package/dist/sdk/helpers/visitorId.js +27 -0
- package/dist/sdk/index-helpers/blocks-exports.d.ts +10 -0
- package/dist/sdk/index-helpers/blocks-exports.js +10 -0
- package/dist/sdk/index-helpers/top-of-file.d.ts +1 -0
- package/dist/sdk/index-helpers/top-of-file.js +4 -0
- package/dist/sdk/index.d.ts +13 -0
- package/dist/sdk/index.js +10 -0
- package/dist/sdk/scripts/init-editing.d.ts +5 -0
- package/dist/sdk/scripts/init-editing.js +100 -0
- package/dist/sdk/types/api-version.d.ts +2 -0
- package/dist/sdk/types/api-version.js +1 -0
- package/dist/sdk/types/builder-block.d.ts +66 -0
- package/dist/sdk/types/builder-content.d.ts +46 -0
- package/dist/sdk/types/can-track.d.ts +3 -0
- package/dist/sdk/types/components.d.ts +105 -0
- package/dist/sdk/types/deep-partial.d.ts +3 -0
- package/dist/sdk/types/element.d.ts +59 -0
- package/dist/sdk/types/input.d.ts +121 -0
- package/dist/sdk/types/targets.d.ts +3 -0
- package/dist/sdk/types/typescript.d.ts +5 -0
- package/dist/sdk/types/typescript.js +1 -0
- package/dist/server/functions/get-builder-search-params/index.d.ts +6 -0
- package/dist/server/functions/get-builder-search-params/index.js +36 -0
- package/dist/server/functions/get-content/ab-testing.d.ts +5 -0
- package/dist/server/functions/get-content/ab-testing.js +78 -0
- package/dist/server/functions/get-content/generate-content-url.d.ts +2 -0
- package/dist/server/functions/get-content/generate-content-url.js +31 -0
- package/dist/server/functions/get-content/generate-content-url.test.d.ts +1 -0
- package/dist/server/functions/get-content/generate-content-url.test.js +82 -0
- package/dist/server/functions/get-content/index.d.ts +11 -0
- package/dist/server/functions/get-content/index.js +40 -0
- package/dist/server/functions/get-content/types.d.ts +45 -0
- package/dist/server/functions/get-content/types.js +1 -0
- package/dist/server/functions/get-fetch.d.ts +1 -0
- package/dist/server/functions/get-fetch.js +11 -0
- package/dist/server/functions/get-global-this.d.ts +4 -0
- package/dist/server/functions/get-global-this.js +15 -0
- package/dist/server/functions/is-browser.d.ts +1 -0
- package/dist/server/functions/is-browser.js +3 -0
- package/dist/server/helpers/ab-tests.d.ts +8 -0
- package/dist/server/helpers/ab-tests.js +5 -0
- package/dist/server/helpers/cookie.d.ts +15 -0
- package/dist/server/helpers/cookie.js +65 -0
- package/dist/server/helpers/flatten.d.ts +6 -0
- package/dist/server/helpers/flatten.js +19 -0
- package/dist/server/helpers/logger.d.ts +5 -0
- package/dist/server/helpers/logger.js +6 -0
- package/dist/server/helpers/nullable.d.ts +2 -0
- package/dist/server/helpers/nullable.js +1 -0
- package/dist/server/helpers/url.d.ts +6 -0
- package/dist/server/helpers/url.js +15 -0
- package/dist/server/types/api-version.d.ts +2 -0
- package/dist/server/types/api-version.js +1 -0
- package/dist/server/types/builder-block.d.ts +66 -0
- package/dist/server/types/builder-block.js +1 -0
- package/dist/server/types/builder-content.d.ts +46 -0
- package/dist/server/types/builder-content.js +1 -0
- package/dist/server/types/can-track.d.ts +3 -0
- package/dist/server/types/can-track.js +1 -0
- package/dist/server/types/input.d.ts +121 -0
- package/dist/server/types/input.js +1 -0
- package/dist/server/types/typescript.d.ts +5 -0
- package/dist/server/types/typescript.js +1 -0
- package/package.json +15 -13
- package/CHANGELOG.md +0 -25
- package/dist/react/cjs/blocks/BaseText.d.ts +0 -2
- package/dist/react/cjs/blocks/BaseText.js +0 -11
- package/dist/react/cjs/blocks/button/button.d.ts +0 -2
- package/dist/react/cjs/blocks/button/button.js +0 -15
- package/dist/react/cjs/blocks/button/component-info.d.ts +0 -38
- package/dist/react/cjs/blocks/button/component-info.js +0 -41
- package/dist/react/cjs/blocks/columns/columns.d.ts +0 -2
- package/dist/react/cjs/blocks/columns/columns.js +0 -133
- package/dist/react/cjs/blocks/columns/component-info.d.ts +0 -176
- package/dist/react/cjs/blocks/columns/component-info.js +0 -243
- package/dist/react/cjs/blocks/custom-code/component-info.d.ts +0 -31
- package/dist/react/cjs/blocks/custom-code/component-info.js +0 -31
- package/dist/react/cjs/blocks/custom-code/custom-code.d.ts +0 -2
- package/dist/react/cjs/blocks/custom-code/custom-code.js +0 -53
- package/dist/react/cjs/blocks/embed/component-info.d.ts +0 -22
- package/dist/react/cjs/blocks/embed/component-info.js +0 -46
- package/dist/react/cjs/blocks/embed/embed.d.ts +0 -2
- package/dist/react/cjs/blocks/embed/embed.js +0 -44
- package/dist/react/cjs/blocks/embed/helpers.d.ts +0 -1
- package/dist/react/cjs/blocks/embed/helpers.js +0 -10
- package/dist/react/cjs/blocks/form/component-info.d.ts +0 -235
- package/dist/react/cjs/blocks/form/component-info.js +0 -262
- package/dist/react/cjs/blocks/form/form.d.ts +0 -2
- package/dist/react/cjs/blocks/form/form.js +0 -205
- package/dist/react/cjs/blocks/fragment/component-info.d.ts +0 -8
- package/dist/react/cjs/blocks/fragment/component-info.js +0 -11
- package/dist/react/cjs/blocks/fragment/fragment.d.ts +0 -2
- package/dist/react/cjs/blocks/fragment/fragment.js +0 -8
- package/dist/react/cjs/blocks/image/component-info.d.ts +0 -114
- package/dist/react/cjs/blocks/image/component-info.js +0 -151
- package/dist/react/cjs/blocks/image/image.d.ts +0 -2
- package/dist/react/cjs/blocks/image/image.helpers.d.ts +0 -1
- package/dist/react/cjs/blocks/image/image.helpers.js +0 -49
- package/dist/react/cjs/blocks/image/image.js +0 -84
- package/dist/react/cjs/blocks/img/component-info.d.ts +0 -15
- package/dist/react/cjs/blocks/img/component-info.js +0 -20
- package/dist/react/cjs/blocks/img/img.d.ts +0 -2
- package/dist/react/cjs/blocks/img/img.js +0 -12
- package/dist/react/cjs/blocks/input/component-info.d.ts +0 -66
- package/dist/react/cjs/blocks/input/component-info.js +0 -74
- package/dist/react/cjs/blocks/input/input.d.ts +0 -2
- package/dist/react/cjs/blocks/input/input.js +0 -9
- package/dist/react/cjs/blocks/raw-text/component-info.d.ts +0 -10
- package/dist/react/cjs/blocks/raw-text/component-info.js +0 -16
- package/dist/react/cjs/blocks/raw-text/raw-text.d.ts +0 -2
- package/dist/react/cjs/blocks/raw-text/raw-text.js +0 -8
- package/dist/react/cjs/blocks/section/component-info.d.ts +0 -43
- package/dist/react/cjs/blocks/section/component-info.js +0 -49
- package/dist/react/cjs/blocks/section/section.d.ts +0 -2
- package/dist/react/cjs/blocks/section/section.js +0 -19
- package/dist/react/cjs/blocks/select/component-info.d.ts +0 -61
- package/dist/react/cjs/blocks/select/component-info.js +0 -59
- package/dist/react/cjs/blocks/select/select.d.ts +0 -2
- package/dist/react/cjs/blocks/select/select.js +0 -9
- package/dist/react/cjs/blocks/submit-button/component-info.d.ts +0 -23
- package/dist/react/cjs/blocks/submit-button/component-info.js +0 -28
- package/dist/react/cjs/blocks/submit-button/submit-button.d.ts +0 -2
- package/dist/react/cjs/blocks/submit-button/submit-button.js +0 -8
- package/dist/react/cjs/blocks/symbol/component-info.d.ts +0 -35
- package/dist/react/cjs/blocks/symbol/component-info.js +0 -43
- package/dist/react/cjs/blocks/symbol/symbol.d.ts +0 -2
- package/dist/react/cjs/blocks/symbol/symbol.js +0 -73
- package/dist/react/cjs/blocks/text/component-info.d.ts +0 -19
- package/dist/react/cjs/blocks/text/component-info.js +0 -24
- package/dist/react/cjs/blocks/text/text.d.ts +0 -2
- package/dist/react/cjs/blocks/text/text.js +0 -10
- package/dist/react/cjs/blocks/textarea/component-info.d.ts +0 -53
- package/dist/react/cjs/blocks/textarea/component-info.js +0 -47
- package/dist/react/cjs/blocks/textarea/textarea.d.ts +0 -2
- package/dist/react/cjs/blocks/textarea/textarea.js +0 -8
- package/dist/react/cjs/blocks/util.d.ts +0 -1
- package/dist/react/cjs/blocks/util.js +0 -9
- package/dist/react/cjs/blocks/video/component-info.d.ts +0 -80
- package/dist/react/cjs/blocks/video/component-info.js +0 -106
- package/dist/react/cjs/blocks/video/video.d.ts +0 -2
- package/dist/react/cjs/blocks/video/video.js +0 -52
- package/dist/react/cjs/components/render-block/block-styles.d.ts +0 -2
- package/dist/react/cjs/components/render-block/block-styles.js +0 -66
- package/dist/react/cjs/components/render-block/render-block.d.ts +0 -2
- package/dist/react/cjs/components/render-block/render-block.helpers.d.ts +0 -13
- package/dist/react/cjs/components/render-block/render-block.helpers.js +0 -125
- package/dist/react/cjs/components/render-block/render-block.js +0 -134
- package/dist/react/cjs/components/render-block/render-component.d.ts +0 -2
- package/dist/react/cjs/components/render-block/render-component.js +0 -14
- package/dist/react/cjs/components/render-block/render-repeated-block.d.ts +0 -2
- package/dist/react/cjs/components/render-block/render-repeated-block.js +0 -20
- package/dist/react/cjs/components/render-block/types.d.ts +0 -0
- package/dist/react/cjs/components/render-block/types.js +0 -1
- package/dist/react/cjs/components/render-blocks.d.ts +0 -2
- package/dist/react/cjs/components/render-blocks.js +0 -49
- package/dist/react/cjs/components/render-content/builder-editing.d.ts +0 -2
- package/dist/react/cjs/components/render-content/builder-editing.js +0 -8
- package/dist/react/cjs/components/render-content/components/render-styles.d.ts +0 -2
- package/dist/react/cjs/components/render-content/components/render-styles.helpers.d.ts +0 -7
- package/dist/react/cjs/components/render-content/components/render-styles.helpers.js +0 -55
- package/dist/react/cjs/components/render-content/components/render-styles.js +0 -34
- package/dist/react/cjs/components/render-content/index.d.ts +0 -2
- package/dist/react/cjs/components/render-content/index.js +0 -5
- package/dist/react/cjs/components/render-content/render-content.d.ts +0 -2
- package/dist/react/cjs/components/render-content/render-content.helpers.d.ts +0 -9
- package/dist/react/cjs/components/render-content/render-content.helpers.js +0 -42
- package/dist/react/cjs/components/render-content/render-content.js +0 -297
- package/dist/react/cjs/components/render-content/render-content.types.d.ts +0 -0
- package/dist/react/cjs/components/render-content/render-content.types.js +0 -1
- package/dist/react/cjs/components/render-inlined-styles.d.ts +0 -2
- package/dist/react/cjs/components/render-inlined-styles.js +0 -19
- package/dist/react/cjs/constants/builder-registered-components.d.ts +0 -1
- package/dist/react/cjs/constants/builder-registered-components.js +0 -55
- package/dist/react/cjs/constants/device-sizes.d.ts +0 -21
- package/dist/react/cjs/constants/device-sizes.js +0 -49
- package/dist/react/cjs/constants/target.d.ts +0 -1
- package/dist/react/cjs/constants/target.js +0 -5
- package/dist/react/cjs/context/builder.context.d.ts +0 -11
- package/dist/react/cjs/context/builder.context.js +0 -16
- package/dist/react/cjs/context/types.d.ts +0 -0
- package/dist/react/cjs/context/types.js +0 -1
- package/dist/react/cjs/functions/camel-to-kebab-case.d.ts +0 -1
- package/dist/react/cjs/functions/camel-to-kebab-case.js +0 -5
- package/dist/react/cjs/functions/evaluate.d.ts +0 -7
- package/dist/react/cjs/functions/evaluate.js +0 -25
- package/dist/react/cjs/functions/event-handler-name.d.ts +0 -1
- package/dist/react/cjs/functions/event-handler-name.js +0 -8
- package/dist/react/cjs/functions/extract-text-styles.d.ts +0 -1
- package/dist/react/cjs/functions/extract-text-styles.js +0 -23
- package/dist/react/cjs/functions/fast-clone.d.ts +0 -1
- package/dist/react/cjs/functions/fast-clone.js +0 -5
- package/dist/react/cjs/functions/get-block-actions-handler.d.ts +0 -1
- package/dist/react/cjs/functions/get-block-actions-handler.js +0 -12
- package/dist/react/cjs/functions/get-block-actions.d.ts +0 -1
- package/dist/react/cjs/functions/get-block-actions.js +0 -19
- package/dist/react/cjs/functions/get-block-component-options.d.ts +0 -1
- package/dist/react/cjs/functions/get-block-component-options.js +0 -29
- package/dist/react/cjs/functions/get-block-properties.d.ts +0 -1
- package/dist/react/cjs/functions/get-block-properties.js +0 -54
- package/dist/react/cjs/functions/get-builder-search-params/fn.test.js +0 -15
- package/dist/react/cjs/functions/get-builder-search-params/index.d.ts +0 -4
- package/dist/react/cjs/functions/get-builder-search-params/index.js +0 -39
- package/dist/react/cjs/functions/get-content/ab-testing.d.ts +0 -1
- package/dist/react/cjs/functions/get-content/ab-testing.js +0 -89
- package/dist/react/cjs/functions/get-content/generate-content-url.d.ts +0 -1
- package/dist/react/cjs/functions/get-content/generate-content-url.js +0 -48
- package/dist/react/cjs/functions/get-content/generate-content-url.test.js +0 -84
- package/dist/react/cjs/functions/get-content/index.cjs +0 -88
- package/dist/react/cjs/functions/get-content/index.d.ts +0 -2
- package/dist/react/cjs/functions/get-content/index.js +0 -88
- package/dist/react/cjs/functions/get-content/types.d.ts +0 -0
- package/dist/react/cjs/functions/get-content/types.js +0 -1
- package/dist/react/cjs/functions/get-fetch.d.ts +0 -1
- package/dist/react/cjs/functions/get-fetch.js +0 -15
- package/dist/react/cjs/functions/get-global-this.d.ts +0 -1
- package/dist/react/cjs/functions/get-global-this.js +0 -19
- package/dist/react/cjs/functions/get-processed-block.d.ts +0 -6
- package/dist/react/cjs/functions/get-processed-block.js +0 -52
- package/dist/react/cjs/functions/get-processed-block.test.js +0 -34
- package/dist/react/cjs/functions/get-react-native-block-styles.d.ts +0 -5
- package/dist/react/cjs/functions/get-react-native-block-styles.js +0 -30
- package/dist/react/cjs/functions/if-target.d.ts +0 -5
- package/dist/react/cjs/functions/if-target.js +0 -13
- package/dist/react/cjs/functions/is-browser.d.ts +0 -1
- package/dist/react/cjs/functions/is-browser.js +0 -7
- package/dist/react/cjs/functions/is-editing.d.ts +0 -1
- package/dist/react/cjs/functions/is-editing.js +0 -9
- package/dist/react/cjs/functions/is-iframe.d.ts +0 -1
- package/dist/react/cjs/functions/is-iframe.js +0 -8
- package/dist/react/cjs/functions/is-previewing.d.ts +0 -1
- package/dist/react/cjs/functions/is-previewing.js +0 -15
- package/dist/react/cjs/functions/on-change.d.ts +0 -2
- package/dist/react/cjs/functions/on-change.js +0 -28
- package/dist/react/cjs/functions/on-change.test.js +0 -21
- package/dist/react/cjs/functions/register-component.d.ts +0 -6
- package/dist/react/cjs/functions/register-component.js +0 -65
- package/dist/react/cjs/functions/register.d.ts +0 -1
- package/dist/react/cjs/functions/register.js +0 -31
- package/dist/react/cjs/functions/sanitize-react-native-block-styles.d.ts +0 -1
- package/dist/react/cjs/functions/sanitize-react-native-block-styles.js +0 -71
- package/dist/react/cjs/functions/set-editor-settings.d.ts +0 -1
- package/dist/react/cjs/functions/set-editor-settings.js +0 -16
- package/dist/react/cjs/functions/set.d.ts +0 -1
- package/dist/react/cjs/functions/set.js +0 -12
- package/dist/react/cjs/functions/set.test.js +0 -18
- package/dist/react/cjs/functions/track/helpers.d.ts +0 -5
- package/dist/react/cjs/functions/track/helpers.js +0 -53
- package/dist/react/cjs/functions/track/index.d.ts +0 -2
- package/dist/react/cjs/functions/track/index.js +0 -125
- package/dist/react/cjs/functions/track/interaction.d.ts +0 -14
- package/dist/react/cjs/functions/track/interaction.js +0 -51
- package/dist/react/cjs/functions/transform-block-properties.d.ts +0 -1
- package/dist/react/cjs/functions/transform-block-properties.js +0 -7
- package/dist/react/cjs/functions/transform-block.d.ts +0 -1
- package/dist/react/cjs/functions/transform-block.js +0 -7
- package/dist/react/cjs/helpers/ab-tests.d.ts +0 -9
- package/dist/react/cjs/helpers/ab-tests.js +0 -10
- package/dist/react/cjs/helpers/cookie.d.ts +0 -2
- package/dist/react/cjs/helpers/cookie.js +0 -74
- package/dist/react/cjs/helpers/css.d.ts +0 -7
- package/dist/react/cjs/helpers/css.js +0 -33
- package/dist/react/cjs/helpers/flatten.d.ts +0 -1
- package/dist/react/cjs/helpers/flatten.js +0 -35
- package/dist/react/cjs/helpers/localStorage.d.ts +0 -9
- package/dist/react/cjs/helpers/localStorage.js +0 -31
- package/dist/react/cjs/helpers/logger.d.ts +0 -5
- package/dist/react/cjs/helpers/logger.js +0 -10
- package/dist/react/cjs/helpers/nullable.d.ts +0 -1
- package/dist/react/cjs/helpers/nullable.js +0 -5
- package/dist/react/cjs/helpers/sessionId.d.ts +0 -6
- package/dist/react/cjs/helpers/sessionId.js +0 -51
- package/dist/react/cjs/helpers/time.d.ts +0 -1
- package/dist/react/cjs/helpers/time.js +0 -6
- package/dist/react/cjs/helpers/url.d.ts +0 -1
- package/dist/react/cjs/helpers/url.js +0 -14
- package/dist/react/cjs/helpers/url.test.js +0 -23
- package/dist/react/cjs/helpers/uuid.d.ts +0 -2
- package/dist/react/cjs/helpers/uuid.js +0 -14
- package/dist/react/cjs/helpers/visitorId.d.ts +0 -8
- package/dist/react/cjs/helpers/visitorId.js +0 -33
- package/dist/react/cjs/index-helpers/blocks-exports.d.ts +0 -11
- package/dist/react/cjs/index-helpers/blocks-exports.js +0 -23
- package/dist/react/cjs/index-helpers/top-of-file.d.ts +0 -2
- package/dist/react/cjs/index-helpers/top-of-file.js +0 -5
- package/dist/react/cjs/index.cjs +0 -28
- package/dist/react/cjs/index.d.ts +0 -11
- package/dist/react/cjs/index.js +0 -28
- package/dist/react/cjs/scripts/init-editing.d.ts +0 -2
- package/dist/react/cjs/scripts/init-editing.js +0 -97
- package/dist/react/cjs/types/api-version.d.ts +0 -1
- package/dist/react/cjs/types/api-version.js +0 -5
- package/dist/react/cjs/types/builder-block.d.ts +0 -0
- package/dist/react/cjs/types/builder-block.js +0 -1
- package/dist/react/cjs/types/builder-content.d.ts +0 -0
- package/dist/react/cjs/types/builder-content.js +0 -1
- package/dist/react/cjs/types/can-track.d.ts +0 -0
- package/dist/react/cjs/types/can-track.js +0 -1
- package/dist/react/cjs/types/components.d.ts +0 -0
- package/dist/react/cjs/types/components.js +0 -1
- package/dist/react/cjs/types/deep-partial.d.ts +0 -0
- package/dist/react/cjs/types/deep-partial.js +0 -1
- package/dist/react/cjs/types/element.d.ts +0 -0
- package/dist/react/cjs/types/element.js +0 -1
- package/dist/react/cjs/types/input.d.ts +0 -0
- package/dist/react/cjs/types/input.js +0 -1
- package/dist/react/cjs/types/targets.d.ts +0 -0
- package/dist/react/cjs/types/targets.js +0 -1
- package/dist/react/cjs/types/typescript.d.ts +0 -0
- package/dist/react/cjs/types/typescript.js +0 -1
- package/dist/react/esm/blocks/BaseText.d.ts +0 -2
- package/dist/react/esm/blocks/BaseText.js +0 -9
- package/dist/react/esm/blocks/button/button.d.ts +0 -2
- package/dist/react/esm/blocks/button/button.js +0 -13
- package/dist/react/esm/blocks/button/component-info.d.ts +0 -38
- package/dist/react/esm/blocks/button/component-info.js +0 -38
- package/dist/react/esm/blocks/columns/columns.d.ts +0 -2
- package/dist/react/esm/blocks/columns/columns.js +0 -131
- package/dist/react/esm/blocks/columns/component-info.d.ts +0 -176
- package/dist/react/esm/blocks/columns/component-info.js +0 -240
- package/dist/react/esm/blocks/custom-code/component-info.d.ts +0 -31
- package/dist/react/esm/blocks/custom-code/component-info.js +0 -28
- package/dist/react/esm/blocks/custom-code/custom-code.d.ts +0 -2
- package/dist/react/esm/blocks/embed/component-info.d.ts +0 -22
- package/dist/react/esm/blocks/embed/component-info.js +0 -43
- package/dist/react/esm/blocks/embed/embed.d.ts +0 -2
- package/dist/react/esm/blocks/embed/helpers.d.ts +0 -1
- package/dist/react/esm/blocks/embed/helpers.js +0 -7
- package/dist/react/esm/blocks/form/component-info.d.ts +0 -235
- package/dist/react/esm/blocks/form/component-info.js +0 -259
- package/dist/react/esm/blocks/form/form.d.ts +0 -2
- package/dist/react/esm/blocks/form/form.js +0 -203
- package/dist/react/esm/blocks/fragment/component-info.d.ts +0 -8
- package/dist/react/esm/blocks/fragment/component-info.js +0 -8
- package/dist/react/esm/blocks/fragment/fragment.d.ts +0 -2
- package/dist/react/esm/blocks/image/component-info.d.ts +0 -114
- package/dist/react/esm/blocks/image/component-info.js +0 -148
- package/dist/react/esm/blocks/image/image.d.ts +0 -2
- package/dist/react/esm/blocks/image/image.helpers.d.ts +0 -1
- package/dist/react/esm/blocks/image/image.helpers.js +0 -46
- package/dist/react/esm/blocks/image/image.js +0 -82
- package/dist/react/esm/blocks/img/component-info.d.ts +0 -15
- package/dist/react/esm/blocks/img/component-info.js +0 -17
- package/dist/react/esm/blocks/img/img.d.ts +0 -2
- package/dist/react/esm/blocks/input/component-info.d.ts +0 -66
- package/dist/react/esm/blocks/input/component-info.js +0 -71
- package/dist/react/esm/blocks/input/input.d.ts +0 -2
- package/dist/react/esm/blocks/raw-text/component-info.d.ts +0 -10
- package/dist/react/esm/blocks/raw-text/component-info.js +0 -13
- package/dist/react/esm/blocks/raw-text/raw-text.d.ts +0 -2
- package/dist/react/esm/blocks/section/component-info.d.ts +0 -43
- package/dist/react/esm/blocks/section/component-info.js +0 -46
- package/dist/react/esm/blocks/section/section.d.ts +0 -2
- package/dist/react/esm/blocks/select/component-info.d.ts +0 -61
- package/dist/react/esm/blocks/select/component-info.js +0 -56
- package/dist/react/esm/blocks/select/select.d.ts +0 -2
- package/dist/react/esm/blocks/submit-button/component-info.d.ts +0 -23
- package/dist/react/esm/blocks/submit-button/component-info.js +0 -25
- package/dist/react/esm/blocks/submit-button/submit-button.d.ts +0 -2
- package/dist/react/esm/blocks/symbol/component-info.d.ts +0 -35
- package/dist/react/esm/blocks/symbol/component-info.js +0 -40
- package/dist/react/esm/blocks/symbol/symbol.d.ts +0 -2
- package/dist/react/esm/blocks/symbol/symbol.js +0 -71
- package/dist/react/esm/blocks/text/component-info.d.ts +0 -19
- package/dist/react/esm/blocks/text/component-info.js +0 -21
- package/dist/react/esm/blocks/text/text.d.ts +0 -2
- package/dist/react/esm/blocks/textarea/component-info.d.ts +0 -53
- package/dist/react/esm/blocks/textarea/component-info.js +0 -44
- package/dist/react/esm/blocks/textarea/textarea.d.ts +0 -2
- package/dist/react/esm/blocks/util.d.ts +0 -1
- package/dist/react/esm/blocks/util.js +0 -6
- package/dist/react/esm/blocks/video/component-info.d.ts +0 -80
- package/dist/react/esm/blocks/video/component-info.js +0 -103
- package/dist/react/esm/blocks/video/video.d.ts +0 -2
- package/dist/react/esm/components/render-block/block-styles.d.ts +0 -2
- package/dist/react/esm/components/render-block/render-block.d.ts +0 -2
- package/dist/react/esm/components/render-block/render-block.helpers.d.ts +0 -13
- package/dist/react/esm/components/render-block/render-block.helpers.js +0 -119
- package/dist/react/esm/components/render-block/render-block.js +0 -132
- package/dist/react/esm/components/render-block/render-component.d.ts +0 -2
- package/dist/react/esm/components/render-block/render-repeated-block.d.ts +0 -2
- package/dist/react/esm/components/render-block/render-repeated-block.js +0 -18
- package/dist/react/esm/components/render-block/types.d.ts +0 -0
- package/dist/react/esm/components/render-block/types.js +0 -1
- package/dist/react/esm/components/render-blocks.d.ts +0 -2
- package/dist/react/esm/components/render-blocks.js +0 -47
- package/dist/react/esm/components/render-content/builder-editing.d.ts +0 -2
- package/dist/react/esm/components/render-content/components/render-styles.d.ts +0 -2
- package/dist/react/esm/components/render-content/components/render-styles.helpers.d.ts +0 -7
- package/dist/react/esm/components/render-content/components/render-styles.helpers.js +0 -51
- package/dist/react/esm/components/render-content/components/render-styles.js +0 -32
- package/dist/react/esm/components/render-content/index.d.ts +0 -2
- package/dist/react/esm/components/render-content/index.js +0 -2
- package/dist/react/esm/components/render-content/render-content.d.ts +0 -2
- package/dist/react/esm/components/render-content/render-content.helpers.d.ts +0 -9
- package/dist/react/esm/components/render-content/render-content.helpers.js +0 -38
- package/dist/react/esm/components/render-content/render-content.js +0 -295
- package/dist/react/esm/components/render-content/render-content.types.d.ts +0 -0
- package/dist/react/esm/components/render-content/render-content.types.js +0 -1
- package/dist/react/esm/components/render-inlined-styles.d.ts +0 -2
- package/dist/react/esm/components/render-inlined-styles.js +0 -17
- package/dist/react/esm/constants/builder-registered-components.d.ts +0 -1
- package/dist/react/esm/constants/builder-registered-components.js +0 -52
- package/dist/react/esm/constants/device-sizes.d.ts +0 -21
- package/dist/react/esm/constants/device-sizes.js +0 -45
- package/dist/react/esm/constants/target.d.ts +0 -1
- package/dist/react/esm/constants/target.js +0 -2
- package/dist/react/esm/context/builder.context.d.ts +0 -11
- package/dist/react/esm/context/builder.context.js +0 -13
- package/dist/react/esm/context/types.d.ts +0 -0
- package/dist/react/esm/context/types.js +0 -1
- package/dist/react/esm/functions/camel-to-kebab-case.d.ts +0 -1
- package/dist/react/esm/functions/camel-to-kebab-case.js +0 -2
- package/dist/react/esm/functions/evaluate.d.ts +0 -7
- package/dist/react/esm/functions/evaluate.js +0 -22
- package/dist/react/esm/functions/event-handler-name.d.ts +0 -1
- package/dist/react/esm/functions/event-handler-name.js +0 -5
- package/dist/react/esm/functions/extract-text-styles.d.ts +0 -1
- package/dist/react/esm/functions/extract-text-styles.js +0 -20
- package/dist/react/esm/functions/fast-clone.d.ts +0 -1
- package/dist/react/esm/functions/fast-clone.js +0 -2
- package/dist/react/esm/functions/get-block-actions-handler.d.ts +0 -1
- package/dist/react/esm/functions/get-block-actions-handler.js +0 -9
- package/dist/react/esm/functions/get-block-actions.d.ts +0 -1
- package/dist/react/esm/functions/get-block-actions.js +0 -16
- package/dist/react/esm/functions/get-block-component-options.d.ts +0 -1
- package/dist/react/esm/functions/get-block-component-options.js +0 -26
- package/dist/react/esm/functions/get-block-properties.d.ts +0 -1
- package/dist/react/esm/functions/get-block-properties.js +0 -51
- package/dist/react/esm/functions/get-builder-search-params/fn.test.js +0 -13
- package/dist/react/esm/functions/get-builder-search-params/index.d.ts +0 -4
- package/dist/react/esm/functions/get-builder-search-params/index.js +0 -33
- package/dist/react/esm/functions/get-content/ab-testing.d.ts +0 -1
- package/dist/react/esm/functions/get-content/ab-testing.js +0 -86
- package/dist/react/esm/functions/get-content/generate-content-url.d.ts +0 -1
- package/dist/react/esm/functions/get-content/generate-content-url.js +0 -45
- package/dist/react/esm/functions/get-content/generate-content-url.test.js +0 -82
- package/dist/react/esm/functions/get-content/index.d.ts +0 -2
- package/dist/react/esm/functions/get-content/index.js +0 -84
- package/dist/react/esm/functions/get-content/types.d.ts +0 -0
- package/dist/react/esm/functions/get-content/types.js +0 -1
- package/dist/react/esm/functions/get-fetch.d.ts +0 -1
- package/dist/react/esm/functions/get-fetch.js +0 -12
- package/dist/react/esm/functions/get-global-this.d.ts +0 -1
- package/dist/react/esm/functions/get-global-this.js +0 -16
- package/dist/react/esm/functions/get-processed-block.d.ts +0 -6
- package/dist/react/esm/functions/get-processed-block.js +0 -49
- package/dist/react/esm/functions/get-processed-block.test.js +0 -32
- package/dist/react/esm/functions/get-react-native-block-styles.d.ts +0 -5
- package/dist/react/esm/functions/get-react-native-block-styles.js +0 -27
- package/dist/react/esm/functions/if-target.d.ts +0 -5
- package/dist/react/esm/functions/if-target.js +0 -10
- package/dist/react/esm/functions/is-browser.d.ts +0 -1
- package/dist/react/esm/functions/is-browser.js +0 -4
- package/dist/react/esm/functions/is-editing.d.ts +0 -1
- package/dist/react/esm/functions/is-editing.js +0 -6
- package/dist/react/esm/functions/is-iframe.d.ts +0 -1
- package/dist/react/esm/functions/is-iframe.js +0 -5
- package/dist/react/esm/functions/is-previewing.d.ts +0 -1
- package/dist/react/esm/functions/is-previewing.js +0 -12
- package/dist/react/esm/functions/on-change.d.ts +0 -2
- package/dist/react/esm/functions/on-change.js +0 -24
- package/dist/react/esm/functions/on-change.test.js +0 -19
- package/dist/react/esm/functions/register-component.d.ts +0 -6
- package/dist/react/esm/functions/register-component.js +0 -60
- package/dist/react/esm/functions/register.d.ts +0 -1
- package/dist/react/esm/functions/register.js +0 -28
- package/dist/react/esm/functions/sanitize-react-native-block-styles.d.ts +0 -1
- package/dist/react/esm/functions/sanitize-react-native-block-styles.js +0 -68
- package/dist/react/esm/functions/set-editor-settings.d.ts +0 -1
- package/dist/react/esm/functions/set-editor-settings.js +0 -13
- package/dist/react/esm/functions/set.d.ts +0 -1
- package/dist/react/esm/functions/set.js +0 -9
- package/dist/react/esm/functions/set.test.js +0 -16
- package/dist/react/esm/functions/track/helpers.d.ts +0 -5
- package/dist/react/esm/functions/track/helpers.js +0 -50
- package/dist/react/esm/functions/track/index.d.ts +0 -2
- package/dist/react/esm/functions/track/index.js +0 -121
- package/dist/react/esm/functions/track/interaction.d.ts +0 -14
- package/dist/react/esm/functions/track/interaction.js +0 -48
- package/dist/react/esm/functions/transform-block-properties.d.ts +0 -1
- package/dist/react/esm/functions/transform-block-properties.js +0 -4
- package/dist/react/esm/functions/transform-block.d.ts +0 -1
- package/dist/react/esm/functions/transform-block.js +0 -4
- package/dist/react/esm/helpers/ab-tests.d.ts +0 -9
- package/dist/react/esm/helpers/ab-tests.js +0 -6
- package/dist/react/esm/helpers/cookie.d.ts +0 -2
- package/dist/react/esm/helpers/cookie.js +0 -70
- package/dist/react/esm/helpers/css.d.ts +0 -7
- package/dist/react/esm/helpers/css.js +0 -28
- package/dist/react/esm/helpers/flatten.d.ts +0 -1
- package/dist/react/esm/helpers/flatten.js +0 -32
- package/dist/react/esm/helpers/localStorage.d.ts +0 -9
- package/dist/react/esm/helpers/localStorage.js +0 -27
- package/dist/react/esm/helpers/logger.d.ts +0 -5
- package/dist/react/esm/helpers/logger.js +0 -7
- package/dist/react/esm/helpers/nullable.d.ts +0 -1
- package/dist/react/esm/helpers/nullable.js +0 -2
- package/dist/react/esm/helpers/sessionId.d.ts +0 -6
- package/dist/react/esm/helpers/sessionId.js +0 -46
- package/dist/react/esm/helpers/time.d.ts +0 -1
- package/dist/react/esm/helpers/time.js +0 -3
- package/dist/react/esm/helpers/url.d.ts +0 -1
- package/dist/react/esm/helpers/url.js +0 -11
- package/dist/react/esm/helpers/url.test.js +0 -21
- package/dist/react/esm/helpers/uuid.d.ts +0 -2
- package/dist/react/esm/helpers/uuid.js +0 -10
- package/dist/react/esm/helpers/visitorId.d.ts +0 -8
- package/dist/react/esm/helpers/visitorId.js +0 -28
- package/dist/react/esm/index-helpers/blocks-exports.d.ts +0 -11
- package/dist/react/esm/index-helpers/blocks-exports.js +0 -11
- package/dist/react/esm/index-helpers/top-of-file.d.ts +0 -2
- package/dist/react/esm/index-helpers/top-of-file.js +0 -2
- package/dist/react/esm/index.d.ts +0 -11
- package/dist/react/esm/index.js +0 -11
- package/dist/react/esm/scripts/init-editing.d.ts +0 -2
- package/dist/react/esm/scripts/init-editing.js +0 -93
- package/dist/react/esm/types/api-version.d.ts +0 -1
- package/dist/react/esm/types/api-version.js +0 -2
- package/dist/react/esm/types/builder-block.d.ts +0 -0
- package/dist/react/esm/types/builder-block.js +0 -1
- package/dist/react/esm/types/builder-content.d.ts +0 -0
- package/dist/react/esm/types/builder-content.js +0 -1
- package/dist/react/esm/types/can-track.d.ts +0 -0
- package/dist/react/esm/types/can-track.js +0 -1
- package/dist/react/esm/types/components.d.ts +0 -0
- package/dist/react/esm/types/components.js +0 -1
- package/dist/react/esm/types/deep-partial.d.ts +0 -0
- package/dist/react/esm/types/deep-partial.js +0 -1
- package/dist/react/esm/types/element.d.ts +0 -0
- package/dist/react/esm/types/element.js +0 -1
- package/dist/react/esm/types/input.d.ts +0 -0
- package/dist/react/esm/types/input.js +0 -1
- package/dist/react/esm/types/targets.d.ts +0 -0
- package/dist/react/esm/types/targets.js +0 -1
- package/dist/react/esm/types/typescript.d.ts +0 -0
- package/dist/react/esm/types/typescript.js +0 -1
- package/dist/rsc/blocks/BaseText.d.ts +0 -2
- package/dist/rsc/blocks/BaseText.js +0 -8
- package/dist/rsc/blocks/button/button.d.ts +0 -2
- package/dist/rsc/blocks/button/button.js +0 -13
- package/dist/rsc/blocks/button/component-info.d.ts +0 -38
- package/dist/rsc/blocks/button/component-info.js +0 -38
- package/dist/rsc/blocks/columns/columns.d.ts +0 -2
- package/dist/rsc/blocks/columns/columns.js +0 -132
- package/dist/rsc/blocks/columns/component-info.d.ts +0 -176
- package/dist/rsc/blocks/columns/component-info.js +0 -240
- package/dist/rsc/blocks/custom-code/component-info.d.ts +0 -31
- package/dist/rsc/blocks/custom-code/component-info.js +0 -28
- package/dist/rsc/blocks/custom-code/custom-code.d.ts +0 -2
- package/dist/rsc/blocks/custom-code/custom-code.js +0 -46
- package/dist/rsc/blocks/embed/component-info.d.ts +0 -22
- package/dist/rsc/blocks/embed/component-info.js +0 -43
- package/dist/rsc/blocks/embed/embed.d.ts +0 -2
- package/dist/rsc/blocks/embed/embed.js +0 -37
- package/dist/rsc/blocks/embed/helpers.d.ts +0 -1
- package/dist/rsc/blocks/embed/helpers.js +0 -7
- package/dist/rsc/blocks/form/component-info.d.ts +0 -235
- package/dist/rsc/blocks/form/component-info.js +0 -259
- package/dist/rsc/blocks/form/form.d.ts +0 -2
- package/dist/rsc/blocks/form/form.js +0 -205
- package/dist/rsc/blocks/fragment/component-info.d.ts +0 -8
- package/dist/rsc/blocks/fragment/component-info.js +0 -8
- package/dist/rsc/blocks/fragment/fragment.d.ts +0 -2
- package/dist/rsc/blocks/fragment/fragment.js +0 -6
- package/dist/rsc/blocks/image/component-info.d.ts +0 -114
- package/dist/rsc/blocks/image/component-info.js +0 -148
- package/dist/rsc/blocks/image/image.d.ts +0 -2
- package/dist/rsc/blocks/image/image.helpers.d.ts +0 -1
- package/dist/rsc/blocks/image/image.helpers.js +0 -46
- package/dist/rsc/blocks/image/image.js +0 -84
- package/dist/rsc/blocks/img/component-info.d.ts +0 -15
- package/dist/rsc/blocks/img/component-info.js +0 -17
- package/dist/rsc/blocks/img/img.d.ts +0 -2
- package/dist/rsc/blocks/img/img.js +0 -10
- package/dist/rsc/blocks/input/component-info.d.ts +0 -66
- package/dist/rsc/blocks/input/component-info.js +0 -71
- package/dist/rsc/blocks/input/input.d.ts +0 -2
- package/dist/rsc/blocks/input/input.js +0 -7
- package/dist/rsc/blocks/raw-text/component-info.d.ts +0 -10
- package/dist/rsc/blocks/raw-text/component-info.js +0 -13
- package/dist/rsc/blocks/raw-text/raw-text.d.ts +0 -2
- package/dist/rsc/blocks/raw-text/raw-text.js +0 -6
- package/dist/rsc/blocks/section/component-info.d.ts +0 -43
- package/dist/rsc/blocks/section/component-info.js +0 -46
- package/dist/rsc/blocks/section/section.d.ts +0 -2
- package/dist/rsc/blocks/section/section.js +0 -17
- package/dist/rsc/blocks/select/component-info.d.ts +0 -61
- package/dist/rsc/blocks/select/component-info.js +0 -56
- package/dist/rsc/blocks/select/select.d.ts +0 -2
- package/dist/rsc/blocks/select/select.js +0 -7
- package/dist/rsc/blocks/submit-button/component-info.d.ts +0 -23
- package/dist/rsc/blocks/submit-button/component-info.js +0 -25
- package/dist/rsc/blocks/submit-button/submit-button.d.ts +0 -2
- package/dist/rsc/blocks/submit-button/submit-button.js +0 -6
- package/dist/rsc/blocks/symbol/component-info.d.ts +0 -35
- package/dist/rsc/blocks/symbol/component-info.js +0 -40
- package/dist/rsc/blocks/symbol/symbol.d.ts +0 -2
- package/dist/rsc/blocks/symbol/symbol.js +0 -66
- package/dist/rsc/blocks/text/component-info.d.ts +0 -19
- package/dist/rsc/blocks/text/component-info.js +0 -21
- package/dist/rsc/blocks/text/text.d.ts +0 -2
- package/dist/rsc/blocks/text/text.js +0 -8
- package/dist/rsc/blocks/textarea/component-info.d.ts +0 -53
- package/dist/rsc/blocks/textarea/component-info.js +0 -44
- package/dist/rsc/blocks/textarea/textarea.d.ts +0 -2
- package/dist/rsc/blocks/textarea/textarea.js +0 -6
- package/dist/rsc/blocks/util.d.ts +0 -1
- package/dist/rsc/blocks/util.js +0 -6
- package/dist/rsc/blocks/video/component-info.d.ts +0 -80
- package/dist/rsc/blocks/video/component-info.js +0 -103
- package/dist/rsc/blocks/video/video.d.ts +0 -2
- package/dist/rsc/blocks/video/video.js +0 -52
- package/dist/rsc/components/render-block/block-styles.d.ts +0 -2
- package/dist/rsc/components/render-block/block-styles.js +0 -66
- package/dist/rsc/components/render-block/render-block.d.ts +0 -2
- package/dist/rsc/components/render-block/render-block.helpers.d.ts +0 -10
- package/dist/rsc/components/render-block/render-block.helpers.js +0 -119
- package/dist/rsc/components/render-block/render-block.js +0 -135
- package/dist/rsc/components/render-block/render-component-with-context.js +0 -27
- package/dist/rsc/components/render-block/render-component.d.ts +0 -2
- package/dist/rsc/components/render-block/render-component.js +0 -12
- package/dist/rsc/components/render-block/render-repeated-block.d.ts +0 -2
- package/dist/rsc/components/render-block/render-repeated-block.js +0 -17
- package/dist/rsc/components/render-block/types.d.ts +0 -0
- package/dist/rsc/components/render-block/types.js +0 -1
- package/dist/rsc/components/render-blocks.d.ts +0 -2
- package/dist/rsc/components/render-blocks.js +0 -48
- package/dist/rsc/components/render-content/builder-editing.d.ts +0 -27
- package/dist/rsc/components/render-content/builder-editing.js +0 -48
- package/dist/rsc/components/render-content/components/render-styles.d.ts +0 -2
- package/dist/rsc/components/render-content/components/render-styles.helpers.d.ts +0 -7
- package/dist/rsc/components/render-content/components/render-styles.helpers.js +0 -51
- package/dist/rsc/components/render-content/components/render-styles.js +0 -33
- package/dist/rsc/components/render-content/index.d.ts +0 -2
- package/dist/rsc/components/render-content/index.js +0 -2
- package/dist/rsc/components/render-content/render-content.d.ts +0 -2
- package/dist/rsc/components/render-content/render-content.helpers.d.ts +0 -9
- package/dist/rsc/components/render-content/render-content.helpers.js +0 -38
- package/dist/rsc/components/render-content/render-content.js +0 -205
- package/dist/rsc/components/render-content/render-content.types.d.ts +0 -0
- package/dist/rsc/components/render-content/render-content.types.js +0 -1
- package/dist/rsc/components/render-content-variants/helpers.js +0 -99
- package/dist/rsc/components/render-content-variants/render-content-variants.js +0 -45
- package/dist/rsc/components/render-inlined-styles.d.ts +0 -2
- package/dist/rsc/components/render-inlined-styles.js +0 -19
- package/dist/rsc/constants/builder-registered-components.d.ts +0 -1
- package/dist/rsc/constants/builder-registered-components.js +0 -52
- package/dist/rsc/constants/device-sizes.d.ts +0 -21
- package/dist/rsc/constants/device-sizes.js +0 -45
- package/dist/rsc/constants/target.d.ts +0 -1
- package/dist/rsc/constants/target.js +0 -2
- package/dist/rsc/context/builder.context.d.ts +0 -11
- package/dist/rsc/context/builder.context.js +0 -12
- package/dist/rsc/context/types.d.ts +0 -0
- package/dist/rsc/context/types.js +0 -1
- package/dist/rsc/functions/camel-to-kebab-case.d.ts +0 -1
- package/dist/rsc/functions/camel-to-kebab-case.js +0 -2
- package/dist/rsc/functions/evaluate.d.ts +0 -1
- package/dist/rsc/functions/evaluate.js +0 -4
- package/dist/rsc/functions/event-handler-name.d.ts +0 -1
- package/dist/rsc/functions/event-handler-name.js +0 -5
- package/dist/rsc/functions/extract-text-styles.d.ts +0 -1
- package/dist/rsc/functions/extract-text-styles.js +0 -20
- package/dist/rsc/functions/fast-clone.d.ts +0 -1
- package/dist/rsc/functions/fast-clone.js +0 -2
- package/dist/rsc/functions/get-block-actions-handler.d.ts +0 -1
- package/dist/rsc/functions/get-block-actions-handler.js +0 -9
- package/dist/rsc/functions/get-block-actions.d.ts +0 -1
- package/dist/rsc/functions/get-block-actions.js +0 -16
- package/dist/rsc/functions/get-block-component-options.d.ts +0 -1
- package/dist/rsc/functions/get-block-component-options.js +0 -26
- package/dist/rsc/functions/get-block-properties.d.ts +0 -1
- package/dist/rsc/functions/get-block-properties.js +0 -51
- package/dist/rsc/functions/get-block-tag.js +0 -4
- package/dist/rsc/functions/get-builder-search-params/fn.test.js +0 -13
- package/dist/rsc/functions/get-builder-search-params/index.d.ts +0 -4
- package/dist/rsc/functions/get-builder-search-params/index.js +0 -33
- package/dist/rsc/functions/get-content/ab-testing.d.ts +0 -1
- package/dist/rsc/functions/get-content/ab-testing.js +0 -86
- package/dist/rsc/functions/get-content/generate-content-url.d.ts +0 -1
- package/dist/rsc/functions/get-content/generate-content-url.js +0 -45
- package/dist/rsc/functions/get-content/generate-content-url.test.js +0 -82
- package/dist/rsc/functions/get-content/index.d.ts +0 -2
- package/dist/rsc/functions/get-content/index.js +0 -84
- package/dist/rsc/functions/get-content/types.d.ts +0 -0
- package/dist/rsc/functions/get-content/types.js +0 -1
- package/dist/rsc/functions/get-fetch.d.ts +0 -1
- package/dist/rsc/functions/get-fetch.js +0 -12
- package/dist/rsc/functions/get-global-this.d.ts +0 -1
- package/dist/rsc/functions/get-global-this.js +0 -16
- package/dist/rsc/functions/get-processed-block.d.ts +0 -6
- package/dist/rsc/functions/get-processed-block.js +0 -49
- package/dist/rsc/functions/get-processed-block.test.js +0 -32
- package/dist/rsc/functions/get-react-native-block-styles.d.ts +0 -5
- package/dist/rsc/functions/get-react-native-block-styles.js +0 -27
- package/dist/rsc/functions/if-target.d.ts +0 -5
- package/dist/rsc/functions/if-target.js +0 -10
- package/dist/rsc/functions/is-browser.d.ts +0 -1
- package/dist/rsc/functions/is-browser.js +0 -4
- package/dist/rsc/functions/is-editing.d.ts +0 -1
- package/dist/rsc/functions/is-editing.js +0 -6
- package/dist/rsc/functions/is-iframe.d.ts +0 -1
- package/dist/rsc/functions/is-iframe.js +0 -5
- package/dist/rsc/functions/is-previewing.d.ts +0 -1
- package/dist/rsc/functions/is-previewing.js +0 -12
- package/dist/rsc/functions/on-change.d.ts +0 -2
- package/dist/rsc/functions/on-change.js +0 -24
- package/dist/rsc/functions/on-change.test.js +0 -19
- package/dist/rsc/functions/register-component.d.ts +0 -6
- package/dist/rsc/functions/register-component.js +0 -60
- package/dist/rsc/functions/register.d.ts +0 -1
- package/dist/rsc/functions/register.js +0 -28
- package/dist/rsc/functions/sanitize-react-native-block-styles.d.ts +0 -1
- package/dist/rsc/functions/sanitize-react-native-block-styles.js +0 -68
- package/dist/rsc/functions/set-editor-settings.d.ts +0 -1
- package/dist/rsc/functions/set-editor-settings.js +0 -13
- package/dist/rsc/functions/set.d.ts +0 -1
- package/dist/rsc/functions/set.js +0 -9
- package/dist/rsc/functions/set.test.js +0 -16
- package/dist/rsc/functions/track/helpers.d.ts +0 -5
- package/dist/rsc/functions/track/helpers.js +0 -50
- package/dist/rsc/functions/track/index.d.ts +0 -2
- package/dist/rsc/functions/track/index.js +0 -121
- package/dist/rsc/functions/track/interaction.d.ts +0 -14
- package/dist/rsc/functions/track/interaction.js +0 -48
- package/dist/rsc/functions/track.js +0 -116
- package/dist/rsc/functions/transform-block-properties.d.ts +0 -1
- package/dist/rsc/functions/transform-block-properties.js +0 -4
- package/dist/rsc/functions/transform-block.d.ts +0 -1
- package/dist/rsc/functions/transform-block.js +0 -4
- package/dist/rsc/helpers/ab-tests.d.ts +0 -9
- package/dist/rsc/helpers/ab-tests.js +0 -6
- package/dist/rsc/helpers/cookie.d.ts +0 -2
- package/dist/rsc/helpers/cookie.js +0 -70
- package/dist/rsc/helpers/css.d.ts +0 -7
- package/dist/rsc/helpers/css.js +0 -28
- package/dist/rsc/helpers/flatten.d.ts +0 -1
- package/dist/rsc/helpers/flatten.js +0 -32
- package/dist/rsc/helpers/localStorage.d.ts +0 -9
- package/dist/rsc/helpers/localStorage.js +0 -27
- package/dist/rsc/helpers/logger.d.ts +0 -5
- package/dist/rsc/helpers/logger.js +0 -7
- package/dist/rsc/helpers/nullable.d.ts +0 -1
- package/dist/rsc/helpers/nullable.js +0 -2
- package/dist/rsc/helpers/sessionId.d.ts +0 -6
- package/dist/rsc/helpers/sessionId.js +0 -46
- package/dist/rsc/helpers/time.d.ts +0 -1
- package/dist/rsc/helpers/time.js +0 -3
- package/dist/rsc/helpers/url.d.ts +0 -1
- package/dist/rsc/helpers/url.js +0 -11
- package/dist/rsc/helpers/url.test.js +0 -21
- package/dist/rsc/helpers/uuid.d.ts +0 -2
- package/dist/rsc/helpers/uuid.js +0 -10
- package/dist/rsc/helpers/visitorId.d.ts +0 -8
- package/dist/rsc/helpers/visitorId.js +0 -28
- package/dist/rsc/index-helpers/blocks-exports.d.ts +0 -11
- package/dist/rsc/index-helpers/blocks-exports.js +0 -11
- package/dist/rsc/index-helpers/top-of-file.d.ts +0 -2
- package/dist/rsc/index-helpers/top-of-file.js +0 -2
- package/dist/rsc/index.d.ts +0 -11
- package/dist/rsc/index.js +0 -11
- package/dist/rsc/scripts/init-editing.d.ts +0 -2
- package/dist/rsc/scripts/init-editing.js +0 -93
- package/dist/rsc/types/api-version.d.ts +0 -1
- package/dist/rsc/types/api-version.js +0 -2
- package/dist/rsc/types/builder-block.d.ts +0 -0
- package/dist/rsc/types/builder-block.js +0 -1
- package/dist/rsc/types/builder-content.d.ts +0 -0
- package/dist/rsc/types/builder-content.js +0 -1
- package/dist/rsc/types/can-track.d.ts +0 -0
- package/dist/rsc/types/can-track.js +0 -1
- package/dist/rsc/types/components.d.ts +0 -0
- package/dist/rsc/types/components.js +0 -1
- package/dist/rsc/types/deep-partial.d.ts +0 -0
- package/dist/rsc/types/deep-partial.js +0 -1
- package/dist/rsc/types/element.d.ts +0 -0
- package/dist/rsc/types/element.js +0 -1
- package/dist/rsc/types/input.d.ts +0 -0
- package/dist/rsc/types/input.js +0 -1
- package/dist/rsc/types/targets.d.ts +0 -0
- package/dist/rsc/types/targets.js +0 -1
- package/dist/rsc/types/typescript.d.ts +0 -0
- package/dist/rsc/types/typescript.js +0 -1
- package/packages/react/src/blocks/BaseText.jsx +0 -12
- package/packages/react/src/blocks/button/button.jsx +0 -36
- package/packages/react/src/blocks/button/component-info.js +0 -40
- package/packages/react/src/blocks/columns/columns.jsx +0 -181
- package/packages/react/src/blocks/columns/component-info.js +0 -241
- package/packages/react/src/blocks/custom-code/component-info.js +0 -30
- package/packages/react/src/blocks/custom-code/custom-code.jsx +0 -67
- package/packages/react/src/blocks/embed/component-info.js +0 -43
- package/packages/react/src/blocks/embed/embed.jsx +0 -52
- package/packages/react/src/blocks/embed/helpers.js +0 -9
- package/packages/react/src/blocks/form/component-info.js +0 -261
- package/packages/react/src/blocks/form/form.jsx +0 -255
- package/packages/react/src/blocks/fragment/component-info.js +0 -10
- package/packages/react/src/blocks/fragment/fragment.jsx +0 -8
- package/packages/react/src/blocks/image/component-info.js +0 -150
- package/packages/react/src/blocks/image/image.helpers.js +0 -48
- package/packages/react/src/blocks/image/image.jsx +0 -121
- package/packages/react/src/blocks/img/component-info.js +0 -19
- package/packages/react/src/blocks/img/img.jsx +0 -20
- package/packages/react/src/blocks/input/component-info.js +0 -73
- package/packages/react/src/blocks/input/input.jsx +0 -22
- package/packages/react/src/blocks/raw-text/component-info.js +0 -15
- package/packages/react/src/blocks/raw-text/raw-text.jsx +0 -13
- package/packages/react/src/blocks/section/component-info.js +0 -48
- package/packages/react/src/blocks/section/section.jsx +0 -26
- package/packages/react/src/blocks/select/component-info.js +0 -58
- package/packages/react/src/blocks/select/select.jsx +0 -23
- package/packages/react/src/blocks/submit-button/component-info.js +0 -27
- package/packages/react/src/blocks/submit-button/submit-button.jsx +0 -12
- package/packages/react/src/blocks/symbol/component-info.js +0 -42
- package/packages/react/src/blocks/symbol/symbol.jsx +0 -98
- package/packages/react/src/blocks/text/component-info.js +0 -23
- package/packages/react/src/blocks/text/text.jsx +0 -16
- package/packages/react/src/blocks/textarea/component-info.js +0 -46
- package/packages/react/src/blocks/textarea/textarea.jsx +0 -16
- package/packages/react/src/blocks/util.js +0 -8
- package/packages/react/src/blocks/video/component-info.js +0 -105
- package/packages/react/src/blocks/video/video.jsx +0 -61
- package/packages/react/src/components/render-block/block-styles.jsx +0 -87
- package/packages/react/src/components/render-block/render-block.helpers.js +0 -129
- package/packages/react/src/components/render-block/render-block.jsx +0 -204
- package/packages/react/src/components/render-block/render-component.jsx +0 -36
- package/packages/react/src/components/render-block/render-repeated-block.jsx +0 -25
- package/packages/react/src/components/render-block/types.js +0 -0
- package/packages/react/src/components/render-blocks.jsx +0 -92
- package/packages/react/src/components/render-content/builder-editing.jsx +0 -8
- package/packages/react/src/components/render-content/components/render-styles.helpers.js +0 -57
- package/packages/react/src/components/render-content/components/render-styles.jsx +0 -37
- package/packages/react/src/components/render-content/index.js +0 -4
- package/packages/react/src/components/render-content/render-content.helpers.js +0 -48
- package/packages/react/src/components/render-content/render-content.jsx +0 -389
- package/packages/react/src/components/render-content/render-content.types.js +0 -0
- package/packages/react/src/components/render-inlined-styles.jsx +0 -31
- package/packages/react/src/constants/builder-registered-components.js +0 -54
- package/packages/react/src/constants/device-sizes.js +0 -48
- package/packages/react/src/constants/target.js +0 -4
- package/packages/react/src/context/builder.context.js +0 -15
- package/packages/react/src/context/types.js +0 -0
- package/packages/react/src/functions/camel-to-kebab-case.js +0 -4
- package/packages/react/src/functions/evaluate.js +0 -29
- package/packages/react/src/functions/event-handler-name.js +0 -7
- package/packages/react/src/functions/extract-text-styles.js +0 -22
- package/packages/react/src/functions/fast-clone.js +0 -4
- package/packages/react/src/functions/get-block-actions-handler.js +0 -11
- package/packages/react/src/functions/get-block-actions.js +0 -18
- package/packages/react/src/functions/get-block-component-options.js +0 -28
- package/packages/react/src/functions/get-block-properties.js +0 -53
- package/packages/react/src/functions/get-builder-search-params/fn.test.js +0 -13
- package/packages/react/src/functions/get-builder-search-params/index.js +0 -38
- package/packages/react/src/functions/get-content/ab-testing.js +0 -99
- package/packages/react/src/functions/get-content/generate-content-url.js +0 -60
- package/packages/react/src/functions/get-content/generate-content-url.test.js +0 -82
- package/packages/react/src/functions/get-content/index.js +0 -83
- package/packages/react/src/functions/get-content/types.js +0 -0
- package/packages/react/src/functions/get-fetch.js +0 -14
- package/packages/react/src/functions/get-global-this.js +0 -18
- package/packages/react/src/functions/get-processed-block.js +0 -59
- package/packages/react/src/functions/get-processed-block.test.js +0 -32
- package/packages/react/src/functions/get-react-native-block-styles.js +0 -33
- package/packages/react/src/functions/if-target.js +0 -15
- package/packages/react/src/functions/is-browser.js +0 -6
- package/packages/react/src/functions/is-editing.js +0 -8
- package/packages/react/src/functions/is-iframe.js +0 -7
- package/packages/react/src/functions/is-previewing.js +0 -14
- package/packages/react/src/functions/on-change.js +0 -27
- package/packages/react/src/functions/on-change.test.js +0 -19
- package/packages/react/src/functions/register-component.js +0 -68
- package/packages/react/src/functions/register.js +0 -29
- package/packages/react/src/functions/sanitize-react-native-block-styles.js +0 -66
- package/packages/react/src/functions/set-editor-settings.js +0 -15
- package/packages/react/src/functions/set.js +0 -11
- package/packages/react/src/functions/set.test.js +0 -16
- package/packages/react/src/functions/track/helpers.js +0 -50
- package/packages/react/src/functions/track/index.js +0 -129
- package/packages/react/src/functions/track/interaction.js +0 -53
- package/packages/react/src/functions/transform-block-properties.js +0 -6
- package/packages/react/src/functions/transform-block.js +0 -6
- package/packages/react/src/helpers/ab-tests.js +0 -16
- package/packages/react/src/helpers/cookie.js +0 -81
- package/packages/react/src/helpers/css.js +0 -34
- package/packages/react/src/helpers/flatten.js +0 -34
- package/packages/react/src/helpers/localStorage.js +0 -35
- package/packages/react/src/helpers/logger.js +0 -9
- package/packages/react/src/helpers/nullable.js +0 -4
- package/packages/react/src/helpers/sessionId.js +0 -52
- package/packages/react/src/helpers/time.js +0 -5
- package/packages/react/src/helpers/url.js +0 -13
- package/packages/react/src/helpers/url.test.js +0 -21
- package/packages/react/src/helpers/uuid.js +0 -13
- package/packages/react/src/helpers/visitorId.js +0 -34
- package/packages/react/src/index-helpers/blocks-exports.js +0 -22
- package/packages/react/src/index-helpers/top-of-file.js +0 -4
- package/packages/react/src/index.js +0 -13
- package/packages/react/src/scripts/init-editing.js +0 -93
- package/packages/react/src/types/api-version.js +0 -4
- package/packages/react/src/types/builder-block.js +0 -0
- package/packages/react/src/types/builder-content.js +0 -0
- package/packages/react/src/types/can-track.js +0 -0
- package/packages/react/src/types/components.js +0 -0
- package/packages/react/src/types/deep-partial.js +0 -0
- package/packages/react/src/types/element.js +0 -0
- package/packages/react/src/types/input.js +0 -0
- package/packages/react/src/types/targets.js +0 -0
- package/packages/react/src/types/typescript.js +0 -0
- package/packages/rsc/src/blocks/BaseText.jsx +0 -12
- package/packages/rsc/src/blocks/button/button.jsx +0 -37
- package/packages/rsc/src/blocks/button/component-info.js +0 -40
- package/packages/rsc/src/blocks/columns/columns.jsx +0 -172
- package/packages/rsc/src/blocks/columns/component-info.js +0 -241
- package/packages/rsc/src/blocks/custom-code/component-info.js +0 -30
- package/packages/rsc/src/blocks/custom-code/custom-code.jsx +0 -57
- package/packages/rsc/src/blocks/embed/component-info.js +0 -43
- package/packages/rsc/src/blocks/embed/embed.jsx +0 -45
- package/packages/rsc/src/blocks/embed/helpers.js +0 -9
- package/packages/rsc/src/blocks/form/component-info.js +0 -261
- package/packages/rsc/src/blocks/form/form.jsx +0 -260
- package/packages/rsc/src/blocks/fragment/component-info.js +0 -10
- package/packages/rsc/src/blocks/fragment/fragment.jsx +0 -9
- package/packages/rsc/src/blocks/image/component-info.js +0 -150
- package/packages/rsc/src/blocks/image/image.helpers.js +0 -48
- package/packages/rsc/src/blocks/image/image.jsx +0 -122
- package/packages/rsc/src/blocks/img/component-info.js +0 -19
- package/packages/rsc/src/blocks/img/img.jsx +0 -21
- package/packages/rsc/src/blocks/input/component-info.js +0 -73
- package/packages/rsc/src/blocks/input/input.jsx +0 -23
- package/packages/rsc/src/blocks/raw-text/component-info.js +0 -15
- package/packages/rsc/src/blocks/raw-text/raw-text.jsx +0 -14
- package/packages/rsc/src/blocks/section/component-info.js +0 -48
- package/packages/rsc/src/blocks/section/section.jsx +0 -27
- package/packages/rsc/src/blocks/select/component-info.js +0 -58
- package/packages/rsc/src/blocks/select/select.jsx +0 -24
- package/packages/rsc/src/blocks/submit-button/component-info.js +0 -27
- package/packages/rsc/src/blocks/submit-button/submit-button.jsx +0 -13
- package/packages/rsc/src/blocks/symbol/component-info.js +0 -42
- package/packages/rsc/src/blocks/symbol/symbol.jsx +0 -89
- package/packages/rsc/src/blocks/text/component-info.js +0 -23
- package/packages/rsc/src/blocks/text/text.jsx +0 -17
- package/packages/rsc/src/blocks/textarea/component-info.js +0 -46
- package/packages/rsc/src/blocks/textarea/textarea.jsx +0 -17
- package/packages/rsc/src/blocks/util.js +0 -8
- package/packages/rsc/src/blocks/video/component-info.js +0 -105
- package/packages/rsc/src/blocks/video/video.jsx +0 -63
- package/packages/rsc/src/components/render-block/block-styles.jsx +0 -88
- package/packages/rsc/src/components/render-block/render-block.helpers.js +0 -129
- package/packages/rsc/src/components/render-block/render-block.jsx +0 -201
- package/packages/rsc/src/components/render-block/render-component.jsx +0 -39
- package/packages/rsc/src/components/render-block/render-repeated-block.jsx +0 -27
- package/packages/rsc/src/components/render-block/types.js +0 -0
- package/packages/rsc/src/components/render-blocks.jsx +0 -92
- package/packages/rsc/src/components/render-content/builder-editing.jsx +0 -64
- package/packages/rsc/src/components/render-content/components/render-styles.helpers.js +0 -57
- package/packages/rsc/src/components/render-content/components/render-styles.jsx +0 -39
- package/packages/rsc/src/components/render-content/index.js +0 -4
- package/packages/rsc/src/components/render-content/render-content.helpers.js +0 -48
- package/packages/rsc/src/components/render-content/render-content.jsx +0 -253
- package/packages/rsc/src/components/render-content/render-content.types.js +0 -0
- package/packages/rsc/src/components/render-inlined-styles.jsx +0 -33
- package/packages/rsc/src/constants/builder-registered-components.js +0 -54
- package/packages/rsc/src/constants/device-sizes.js +0 -48
- package/packages/rsc/src/constants/target.js +0 -4
- package/packages/rsc/src/context/builder.context.js +0 -14
- package/packages/rsc/src/context/types.js +0 -0
- package/packages/rsc/src/functions/camel-to-kebab-case.js +0 -4
- package/packages/rsc/src/functions/evaluate.js +0 -6
- package/packages/rsc/src/functions/event-handler-name.js +0 -7
- package/packages/rsc/src/functions/extract-text-styles.js +0 -22
- package/packages/rsc/src/functions/fast-clone.js +0 -4
- package/packages/rsc/src/functions/get-block-actions-handler.js +0 -11
- package/packages/rsc/src/functions/get-block-actions.js +0 -18
- package/packages/rsc/src/functions/get-block-component-options.js +0 -28
- package/packages/rsc/src/functions/get-block-properties.js +0 -53
- package/packages/rsc/src/functions/get-builder-search-params/fn.test.js +0 -13
- package/packages/rsc/src/functions/get-builder-search-params/index.js +0 -38
- package/packages/rsc/src/functions/get-content/ab-testing.js +0 -99
- package/packages/rsc/src/functions/get-content/generate-content-url.js +0 -60
- package/packages/rsc/src/functions/get-content/generate-content-url.test.js +0 -82
- package/packages/rsc/src/functions/get-content/index.js +0 -83
- package/packages/rsc/src/functions/get-content/types.js +0 -0
- package/packages/rsc/src/functions/get-fetch.js +0 -14
- package/packages/rsc/src/functions/get-global-this.js +0 -18
- package/packages/rsc/src/functions/get-processed-block.js +0 -59
- package/packages/rsc/src/functions/get-processed-block.test.js +0 -32
- package/packages/rsc/src/functions/get-react-native-block-styles.js +0 -33
- package/packages/rsc/src/functions/if-target.js +0 -15
- package/packages/rsc/src/functions/is-browser.js +0 -6
- package/packages/rsc/src/functions/is-editing.js +0 -8
- package/packages/rsc/src/functions/is-iframe.js +0 -7
- package/packages/rsc/src/functions/is-previewing.js +0 -14
- package/packages/rsc/src/functions/on-change.js +0 -27
- package/packages/rsc/src/functions/on-change.test.js +0 -19
- package/packages/rsc/src/functions/register-component.js +0 -68
- package/packages/rsc/src/functions/register.js +0 -29
- package/packages/rsc/src/functions/sanitize-react-native-block-styles.js +0 -66
- package/packages/rsc/src/functions/set-editor-settings.js +0 -15
- package/packages/rsc/src/functions/set.js +0 -11
- package/packages/rsc/src/functions/set.test.js +0 -16
- package/packages/rsc/src/functions/track/helpers.js +0 -50
- package/packages/rsc/src/functions/track/index.js +0 -129
- package/packages/rsc/src/functions/track/interaction.js +0 -53
- package/packages/rsc/src/functions/transform-block-properties.js +0 -6
- package/packages/rsc/src/functions/transform-block.js +0 -6
- package/packages/rsc/src/helpers/ab-tests.js +0 -16
- package/packages/rsc/src/helpers/cookie.js +0 -81
- package/packages/rsc/src/helpers/css.js +0 -34
- package/packages/rsc/src/helpers/flatten.js +0 -34
- package/packages/rsc/src/helpers/localStorage.js +0 -35
- package/packages/rsc/src/helpers/logger.js +0 -9
- package/packages/rsc/src/helpers/nullable.js +0 -4
- package/packages/rsc/src/helpers/sessionId.js +0 -52
- package/packages/rsc/src/helpers/time.js +0 -5
- package/packages/rsc/src/helpers/url.js +0 -13
- package/packages/rsc/src/helpers/url.test.js +0 -21
- package/packages/rsc/src/helpers/uuid.js +0 -13
- package/packages/rsc/src/helpers/visitorId.js +0 -34
- package/packages/rsc/src/index-helpers/blocks-exports.js +0 -22
- package/packages/rsc/src/index-helpers/top-of-file.js +0 -2
- package/packages/rsc/src/index.js +0 -13
- package/packages/rsc/src/scripts/init-editing.js +0 -93
- package/packages/rsc/src/types/api-version.js +0 -4
- package/packages/rsc/src/types/builder-block.js +0 -0
- package/packages/rsc/src/types/builder-content.js +0 -0
- package/packages/rsc/src/types/can-track.js +0 -0
- package/packages/rsc/src/types/components.js +0 -0
- package/packages/rsc/src/types/deep-partial.js +0 -0
- package/packages/rsc/src/types/element.js +0 -0
- package/packages/rsc/src/types/input.js +0 -0
- package/packages/rsc/src/types/targets.js +0 -0
- package/packages/rsc/src/types/typescript.js +0 -0
- package/tsconfig.base.json +0 -23
- package/tsconfig.react-cjs.json +0 -10
- package/tsconfig.react-esm.json +0 -10
- package/tsconfig.rsc.json +0 -7
- /package/dist/{react/esm → sdk}/blocks/custom-code/custom-code.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/embed/embed.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/fragment/fragment.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/img/img.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/input/input.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/raw-text/raw-text.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/section/section.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/select/select.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/submit-button/submit-button.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/text/text.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/textarea/textarea.js +0 -0
- /package/dist/{react/esm → sdk}/blocks/video/video.js +0 -0
- /package/dist/{react/esm → sdk}/components/render-block/block-styles.js +0 -0
- /package/dist/{react/esm → sdk}/components/render-block/render-component.js +0 -0
- /package/dist/{react/cjs/functions/get-builder-search-params/fn.test.d.ts → sdk/components/render-block/types.js} +0 -0
- /package/dist/{react/esm → sdk}/components/render-content/builder-editing.js +0 -0
- /package/dist/{react/cjs/functions/get-content/generate-content-url.test.d.ts → sdk/components/render-content/render-content.types.js} +0 -0
- /package/dist/{react/cjs/functions/get-processed-block.test.d.ts → sdk/context/types.js} +0 -0
- /package/dist/{react/esm → sdk}/functions/get-builder-search-params/fn.test.d.ts +0 -0
- /package/dist/{react/esm → sdk}/functions/get-content/generate-content-url.test.d.ts +0 -0
- /package/dist/{react/cjs/functions/on-change.test.d.ts → sdk/functions/get-content/types.js} +0 -0
- /package/dist/{react/esm → sdk}/functions/get-processed-block.test.d.ts +0 -0
- /package/dist/{react/esm → sdk}/functions/on-change.test.d.ts +0 -0
- /package/dist/{react/cjs → sdk}/functions/set.test.d.ts +0 -0
- /package/dist/{react/cjs → sdk}/helpers/url.test.d.ts +0 -0
- /package/dist/{react/esm/functions/set.test.d.ts → sdk/types/builder-block.js} +0 -0
- /package/dist/{react/esm/helpers/url.test.d.ts → sdk/types/builder-content.js} +0 -0
- /package/dist/{rsc/functions/get-builder-search-params/fn.test.d.ts → sdk/types/can-track.js} +0 -0
- /package/dist/{rsc/functions/get-content/generate-content-url.test.d.ts → sdk/types/components.js} +0 -0
- /package/dist/{rsc/functions/get-processed-block.test.d.ts → sdk/types/deep-partial.js} +0 -0
- /package/dist/{rsc/functions/on-change.test.d.ts → sdk/types/element.js} +0 -0
- /package/dist/{rsc/functions/set.test.d.ts → sdk/types/input.js} +0 -0
- /package/dist/{rsc/helpers/url.test.d.ts → sdk/types/targets.js} +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const componentInfo = {
|
|
2
|
-
name: "Text",
|
|
3
|
-
static: true,
|
|
4
|
-
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
5
|
-
inputs: [
|
|
6
|
-
{
|
|
7
|
-
name: "text",
|
|
8
|
-
type: "html",
|
|
9
|
-
required: true,
|
|
10
|
-
autoFocus: true,
|
|
11
|
-
bubble: true,
|
|
12
|
-
defaultValue: "Enter some text..."
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
defaultStyles: {
|
|
16
|
-
lineHeight: "normal",
|
|
17
|
-
height: "auto",
|
|
18
|
-
textAlign: "center"
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
componentInfo
|
|
23
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
function Text(props) {
|
|
5
|
-
return (
|
|
6
|
-
<span
|
|
7
|
-
className="builder-text"
|
|
8
|
-
dangerouslySetInnerHTML={{ __html: props.text }}
|
|
9
|
-
style={{
|
|
10
|
-
outline: "none",
|
|
11
|
-
}}
|
|
12
|
-
/>
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default Text;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const componentInfo = {
|
|
2
|
-
name: "Form:TextArea",
|
|
3
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4
|
-
inputs: [
|
|
5
|
-
{
|
|
6
|
-
advanced: true,
|
|
7
|
-
name: "value",
|
|
8
|
-
type: "string"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
name: "name",
|
|
12
|
-
type: "string",
|
|
13
|
-
required: true,
|
|
14
|
-
helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
name: "defaultValue",
|
|
18
|
-
type: "string"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: "placeholder",
|
|
22
|
-
type: "string",
|
|
23
|
-
defaultValue: "Hello there"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: "required",
|
|
27
|
-
type: "boolean",
|
|
28
|
-
defaultValue: false
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
defaultStyles: {
|
|
32
|
-
paddingTop: "10px",
|
|
33
|
-
paddingBottom: "10px",
|
|
34
|
-
paddingLeft: "10px",
|
|
35
|
-
paddingRight: "10px",
|
|
36
|
-
borderRadius: "3px",
|
|
37
|
-
borderWidth: "1px",
|
|
38
|
-
borderStyle: "solid",
|
|
39
|
-
borderColor: "#ccc"
|
|
40
|
-
},
|
|
41
|
-
static: true,
|
|
42
|
-
noWrap: true
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
componentInfo
|
|
46
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
function Textarea(props) {
|
|
5
|
-
return (
|
|
6
|
-
<textarea
|
|
7
|
-
{...props.attributes}
|
|
8
|
-
placeholder={props.placeholder}
|
|
9
|
-
name={props.name}
|
|
10
|
-
value={props.value}
|
|
11
|
-
defaultValue={props.defaultValue}
|
|
12
|
-
/>
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default Textarea;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const serializeFn = (fnValue) => {
|
|
2
|
-
const fnStr = fnValue.toString().trim();
|
|
3
|
-
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
4
|
-
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
5
|
-
};
|
|
6
|
-
export {
|
|
7
|
-
serializeFn
|
|
8
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
const componentInfo = {
|
|
2
|
-
name: "Video",
|
|
3
|
-
canHaveChildren: true,
|
|
4
|
-
defaultStyles: {
|
|
5
|
-
minHeight: "20px",
|
|
6
|
-
minWidth: "20px"
|
|
7
|
-
},
|
|
8
|
-
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",
|
|
9
|
-
inputs: [
|
|
10
|
-
{
|
|
11
|
-
name: "video",
|
|
12
|
-
type: "file",
|
|
13
|
-
allowedFileTypes: ["mp4"],
|
|
14
|
-
bubble: true,
|
|
15
|
-
defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
|
|
16
|
-
required: true
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: "posterImage",
|
|
20
|
-
type: "file",
|
|
21
|
-
allowedFileTypes: ["jpeg", "png"],
|
|
22
|
-
helperText: "Image to show before the video plays"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
name: "autoPlay",
|
|
26
|
-
type: "boolean",
|
|
27
|
-
defaultValue: true
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: "controls",
|
|
31
|
-
type: "boolean",
|
|
32
|
-
defaultValue: false
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: "muted",
|
|
36
|
-
type: "boolean",
|
|
37
|
-
defaultValue: true
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "loop",
|
|
41
|
-
type: "boolean",
|
|
42
|
-
defaultValue: true
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "playsInline",
|
|
46
|
-
type: "boolean",
|
|
47
|
-
defaultValue: true
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: "fit",
|
|
51
|
-
type: "text",
|
|
52
|
-
defaultValue: "cover",
|
|
53
|
-
enum: ["contain", "cover", "fill", "auto"]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: "fitContent",
|
|
57
|
-
type: "boolean",
|
|
58
|
-
helperText: "When child blocks are provided, fit to them instead of using the aspect ratio",
|
|
59
|
-
defaultValue: true,
|
|
60
|
-
advanced: true
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: "position",
|
|
64
|
-
type: "text",
|
|
65
|
-
defaultValue: "center",
|
|
66
|
-
enum: [
|
|
67
|
-
"center",
|
|
68
|
-
"top",
|
|
69
|
-
"left",
|
|
70
|
-
"right",
|
|
71
|
-
"bottom",
|
|
72
|
-
"top left",
|
|
73
|
-
"top right",
|
|
74
|
-
"bottom left",
|
|
75
|
-
"bottom right"
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: "height",
|
|
80
|
-
type: "number",
|
|
81
|
-
advanced: true
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: "width",
|
|
85
|
-
type: "number",
|
|
86
|
-
advanced: true
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: "aspectRatio",
|
|
90
|
-
type: "number",
|
|
91
|
-
advanced: true,
|
|
92
|
-
defaultValue: 0.7004048582995948
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: "lazyLoad",
|
|
96
|
-
type: "boolean",
|
|
97
|
-
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
98
|
-
defaultValue: true,
|
|
99
|
-
advanced: true
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
};
|
|
103
|
-
export {
|
|
104
|
-
componentInfo
|
|
105
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
function Video(props) {
|
|
5
|
-
function videoProps() {
|
|
6
|
-
return {
|
|
7
|
-
...(props.autoPlay === true
|
|
8
|
-
? {
|
|
9
|
-
autoPlay: true,
|
|
10
|
-
}
|
|
11
|
-
: {}),
|
|
12
|
-
...(props.muted === true
|
|
13
|
-
? {
|
|
14
|
-
muted: true,
|
|
15
|
-
}
|
|
16
|
-
: {}),
|
|
17
|
-
...(props.controls === true
|
|
18
|
-
? {
|
|
19
|
-
controls: true,
|
|
20
|
-
}
|
|
21
|
-
: {}),
|
|
22
|
-
...(props.loop === true
|
|
23
|
-
? {
|
|
24
|
-
loop: true,
|
|
25
|
-
}
|
|
26
|
-
: {}),
|
|
27
|
-
...(props.playsInline === true
|
|
28
|
-
? {
|
|
29
|
-
playsInline: true,
|
|
30
|
-
}
|
|
31
|
-
: {}),
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function spreadProps() {
|
|
36
|
-
return {
|
|
37
|
-
...props.attributes,
|
|
38
|
-
...videoProps(),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return (
|
|
43
|
-
<video
|
|
44
|
-
{...spreadProps()}
|
|
45
|
-
style={{
|
|
46
|
-
width: "100%",
|
|
47
|
-
height: "100%",
|
|
48
|
-
...props.attributes?.style,
|
|
49
|
-
objectFit: props.fit,
|
|
50
|
-
objectPosition: props.position,
|
|
51
|
-
// Hack to get object fit to work as expected and
|
|
52
|
-
// not have the video overflow
|
|
53
|
-
borderRadius: 1,
|
|
54
|
-
}}
|
|
55
|
-
src={props.video || "no-src"}
|
|
56
|
-
poster={props.posterImage}
|
|
57
|
-
/>
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export default Video;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import {
|
|
4
|
-
getMaxWidthQueryForSize,
|
|
5
|
-
getSizesForBreakpoints,
|
|
6
|
-
} from "../../constants/device-sizes.js";
|
|
7
|
-
import { TARGET } from "../../constants/target.js";
|
|
8
|
-
import { getProcessedBlock } from "../../functions/get-processed-block.js";
|
|
9
|
-
import { createCssClass } from "../../helpers/css.js";
|
|
10
|
-
import { checkIsDefined } from "../../helpers/nullable.js";
|
|
11
|
-
import RenderInlinedStyles from "../render-inlined-styles";
|
|
12
|
-
|
|
13
|
-
function BlockStyles(props) {
|
|
14
|
-
function useBlock() {
|
|
15
|
-
return getProcessedBlock({
|
|
16
|
-
block: props.block,
|
|
17
|
-
state: props.context.state,
|
|
18
|
-
context: props.context.context,
|
|
19
|
-
shouldEvaluateBindings: true,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function canShowBlock() {
|
|
24
|
-
// only render styles for blocks that are visible
|
|
25
|
-
if (checkIsDefined(useBlock().hide)) {
|
|
26
|
-
return !useBlock().hide;
|
|
27
|
-
}
|
|
28
|
-
if (checkIsDefined(useBlock().show)) {
|
|
29
|
-
return useBlock().show;
|
|
30
|
-
}
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function css() {
|
|
35
|
-
const styles = useBlock().responsiveStyles;
|
|
36
|
-
const content = props.context.content;
|
|
37
|
-
const sizesWithUpdatedBreakpoints = getSizesForBreakpoints(
|
|
38
|
-
content?.meta?.breakpoints || {}
|
|
39
|
-
);
|
|
40
|
-
const largeStyles = styles?.large;
|
|
41
|
-
const mediumStyles = styles?.medium;
|
|
42
|
-
const smallStyles = styles?.small;
|
|
43
|
-
const className = useBlock().id;
|
|
44
|
-
if (!className) {
|
|
45
|
-
return "";
|
|
46
|
-
}
|
|
47
|
-
const largeStylesClass = largeStyles
|
|
48
|
-
? createCssClass({
|
|
49
|
-
className,
|
|
50
|
-
styles: largeStyles,
|
|
51
|
-
})
|
|
52
|
-
: "";
|
|
53
|
-
const mediumStylesClass = mediumStyles
|
|
54
|
-
? createCssClass({
|
|
55
|
-
className,
|
|
56
|
-
styles: mediumStyles,
|
|
57
|
-
mediaQuery: getMaxWidthQueryForSize(
|
|
58
|
-
"medium",
|
|
59
|
-
sizesWithUpdatedBreakpoints
|
|
60
|
-
),
|
|
61
|
-
})
|
|
62
|
-
: "";
|
|
63
|
-
const smallStylesClass = smallStyles
|
|
64
|
-
? createCssClass({
|
|
65
|
-
className,
|
|
66
|
-
styles: smallStyles,
|
|
67
|
-
mediaQuery: getMaxWidthQueryForSize(
|
|
68
|
-
"small",
|
|
69
|
-
sizesWithUpdatedBreakpoints
|
|
70
|
-
),
|
|
71
|
-
})
|
|
72
|
-
: "";
|
|
73
|
-
return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return (
|
|
77
|
-
<>
|
|
78
|
-
{TARGET !== "reactNative" && css() && canShowBlock() ? (
|
|
79
|
-
<>
|
|
80
|
-
<RenderInlinedStyles styles={css()} />
|
|
81
|
-
</>
|
|
82
|
-
) : null}
|
|
83
|
-
</>
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export default BlockStyles;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
import { evaluate } from "../../functions/evaluate";
|
|
33
|
-
import { getProcessedBlock } from "../../functions/get-processed-block";
|
|
34
|
-
const EMPTY_HTML_ELEMENTS = [
|
|
35
|
-
"area",
|
|
36
|
-
"base",
|
|
37
|
-
"br",
|
|
38
|
-
"col",
|
|
39
|
-
"embed",
|
|
40
|
-
"hr",
|
|
41
|
-
"img",
|
|
42
|
-
"input",
|
|
43
|
-
"keygen",
|
|
44
|
-
"link",
|
|
45
|
-
"meta",
|
|
46
|
-
"param",
|
|
47
|
-
"source",
|
|
48
|
-
"track",
|
|
49
|
-
"wbr"
|
|
50
|
-
];
|
|
51
|
-
const isEmptyHtmlElement = (tagName) => {
|
|
52
|
-
return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.includes(tagName.toLowerCase());
|
|
53
|
-
};
|
|
54
|
-
const getComponent = ({
|
|
55
|
-
block,
|
|
56
|
-
context
|
|
57
|
-
}) => {
|
|
58
|
-
var _a;
|
|
59
|
-
const componentName = (_a = getProcessedBlock({
|
|
60
|
-
block,
|
|
61
|
-
state: context.state,
|
|
62
|
-
context: context.context,
|
|
63
|
-
shouldEvaluateBindings: false
|
|
64
|
-
}).component) == null ? void 0 : _a.name;
|
|
65
|
-
if (!componentName) {
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
const ref = context.registeredComponents[componentName];
|
|
69
|
-
if (!ref) {
|
|
70
|
-
console.warn(`
|
|
71
|
-
Could not find a registered component named "${componentName}".
|
|
72
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
73
|
-
return void 0;
|
|
74
|
-
} else {
|
|
75
|
-
return ref;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
const getRepeatItemData = ({
|
|
79
|
-
block,
|
|
80
|
-
context
|
|
81
|
-
}) => {
|
|
82
|
-
const _a = block, { repeat } = _a, blockWithoutRepeat = __objRest(_a, ["repeat"]);
|
|
83
|
-
if (!(repeat == null ? void 0 : repeat.collection)) {
|
|
84
|
-
return void 0;
|
|
85
|
-
}
|
|
86
|
-
const itemsArray = evaluate({
|
|
87
|
-
code: repeat.collection,
|
|
88
|
-
state: context.state,
|
|
89
|
-
context: context.context
|
|
90
|
-
});
|
|
91
|
-
if (!Array.isArray(itemsArray)) {
|
|
92
|
-
return void 0;
|
|
93
|
-
}
|
|
94
|
-
const collectionName = repeat.collection.split(".").pop();
|
|
95
|
-
const itemNameToUse = repeat.itemName || (collectionName ? collectionName + "Item" : "item");
|
|
96
|
-
const repeatArray = itemsArray.map((item, index) => ({
|
|
97
|
-
context: __spreadProps(__spreadValues({}, context), {
|
|
98
|
-
state: __spreadProps(__spreadValues({}, context.state), {
|
|
99
|
-
$index: index,
|
|
100
|
-
$item: item,
|
|
101
|
-
[itemNameToUse]: item,
|
|
102
|
-
[`$${itemNameToUse}Index`]: index
|
|
103
|
-
})
|
|
104
|
-
}),
|
|
105
|
-
block: blockWithoutRepeat
|
|
106
|
-
}));
|
|
107
|
-
return repeatArray;
|
|
108
|
-
};
|
|
109
|
-
const getProxyState = (context) => {
|
|
110
|
-
if (typeof Proxy === "undefined") {
|
|
111
|
-
console.error("no Proxy available in this environment, cannot proxy state.");
|
|
112
|
-
return context.state;
|
|
113
|
-
}
|
|
114
|
-
const useState = new Proxy(context.state, {
|
|
115
|
-
set: (obj, prop, value) => {
|
|
116
|
-
var _a;
|
|
117
|
-
obj[prop] = value;
|
|
118
|
-
(_a = context.setState) == null ? void 0 : _a.call(context, obj);
|
|
119
|
-
return true;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
return useState;
|
|
123
|
-
};
|
|
124
|
-
export {
|
|
125
|
-
getComponent,
|
|
126
|
-
getProxyState,
|
|
127
|
-
getRepeatItemData,
|
|
128
|
-
isEmptyHtmlElement
|
|
129
|
-
};
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { getBlockActions } from "../../functions/get-block-actions.js";
|
|
5
|
-
import { getBlockComponentOptions } from "../../functions/get-block-component-options.js";
|
|
6
|
-
import { getBlockProperties } from "../../functions/get-block-properties.js";
|
|
7
|
-
import { getProcessedBlock } from "../../functions/get-processed-block.js";
|
|
8
|
-
import BlockStyles from "./block-styles";
|
|
9
|
-
import {
|
|
10
|
-
getComponent,
|
|
11
|
-
getProxyState,
|
|
12
|
-
getRepeatItemData,
|
|
13
|
-
isEmptyHtmlElement,
|
|
14
|
-
} from "./render-block.helpers.js";
|
|
15
|
-
import RenderRepeatedBlock from "./render-repeated-block";
|
|
16
|
-
import { TARGET } from "../../constants/target.js";
|
|
17
|
-
import { extractTextStyles } from "../../functions/extract-text-styles.js";
|
|
18
|
-
import RenderComponent from "./render-component";
|
|
19
|
-
import { getReactNativeBlockStyles } from "../../functions/get-react-native-block-styles.js";
|
|
20
|
-
|
|
21
|
-
function RenderBlock(props) {
|
|
22
|
-
const [component, setComponent] = useState(() =>
|
|
23
|
-
getComponent({
|
|
24
|
-
block: props.block,
|
|
25
|
-
context: props.context,
|
|
26
|
-
})
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
const [repeatItemData, setRepeatItemData] = useState(() =>
|
|
30
|
-
getRepeatItemData({
|
|
31
|
-
block: props.block,
|
|
32
|
-
context: props.context,
|
|
33
|
-
})
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
function useBlock() {
|
|
37
|
-
return repeatItemData
|
|
38
|
-
? props.block
|
|
39
|
-
: getProcessedBlock({
|
|
40
|
-
block: props.block,
|
|
41
|
-
state: props.context.state,
|
|
42
|
-
context: props.context.context,
|
|
43
|
-
shouldEvaluateBindings: true,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const [tag, setTag] = useState(() => props.block.tagName || "div");
|
|
48
|
-
|
|
49
|
-
function canShowBlock() {
|
|
50
|
-
if ("hide" in useBlock()) {
|
|
51
|
-
return !useBlock().hide;
|
|
52
|
-
}
|
|
53
|
-
if ("show" in useBlock()) {
|
|
54
|
-
return useBlock().show;
|
|
55
|
-
}
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const [proxyState, setProxyState] = useState(() =>
|
|
60
|
-
getProxyState(props.context)
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
function actions() {
|
|
64
|
-
return getBlockActions({
|
|
65
|
-
block: useBlock(),
|
|
66
|
-
state: TARGET === "qwik" ? props.context.state : proxyState,
|
|
67
|
-
context: props.context.context,
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function attributes() {
|
|
72
|
-
const blockProperties = getBlockProperties(useBlock());
|
|
73
|
-
return {
|
|
74
|
-
...blockProperties,
|
|
75
|
-
...(TARGET === "reactNative"
|
|
76
|
-
? {
|
|
77
|
-
style: getReactNativeBlockStyles({
|
|
78
|
-
block: useBlock(),
|
|
79
|
-
context: props.context,
|
|
80
|
-
blockStyles: blockProperties.style,
|
|
81
|
-
}),
|
|
82
|
-
}
|
|
83
|
-
: {}),
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function childrenWithoutParentComponent() {
|
|
88
|
-
/**
|
|
89
|
-
* When there is no `componentRef`, there might still be children that need to be rendered. In this case,
|
|
90
|
-
* we render them outside of `componentRef`.
|
|
91
|
-
* NOTE: We make sure not to render this if `repeatItemData` is non-null, because that means we are rendering an array of
|
|
92
|
-
* blocks, and the children will be repeated within those blocks.
|
|
93
|
-
*/
|
|
94
|
-
const shouldRenderChildrenOutsideRef =
|
|
95
|
-
!component?.component && !repeatItemData;
|
|
96
|
-
return shouldRenderChildrenOutsideRef ? useBlock().children ?? [] : [];
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function childrenContext() {
|
|
100
|
-
const getInheritedTextStyles = () => {
|
|
101
|
-
if (TARGET !== "reactNative") {
|
|
102
|
-
return {};
|
|
103
|
-
}
|
|
104
|
-
return extractTextStyles(
|
|
105
|
-
getReactNativeBlockStyles({
|
|
106
|
-
block: useBlock(),
|
|
107
|
-
context: props.context,
|
|
108
|
-
blockStyles: attributes().style,
|
|
109
|
-
})
|
|
110
|
-
);
|
|
111
|
-
};
|
|
112
|
-
return {
|
|
113
|
-
apiKey: props.context.apiKey,
|
|
114
|
-
apiVersion: props.context.apiVersion,
|
|
115
|
-
state: props.context.state,
|
|
116
|
-
content: props.context.content,
|
|
117
|
-
context: props.context.context,
|
|
118
|
-
setState: props.context.setState,
|
|
119
|
-
registeredComponents: props.context.registeredComponents,
|
|
120
|
-
inheritedStyles: getInheritedTextStyles(),
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function renderComponentProps() {
|
|
125
|
-
return {
|
|
126
|
-
blockChildren: useBlock().children ?? [],
|
|
127
|
-
componentRef: component?.component,
|
|
128
|
-
componentOptions: {
|
|
129
|
-
...getBlockComponentOptions(useBlock()),
|
|
130
|
-
/**
|
|
131
|
-
* These attributes are passed to the wrapper element when there is one. If `noWrap` is set to true, then
|
|
132
|
-
* they are provided to the component itself directly.
|
|
133
|
-
*/
|
|
134
|
-
...(!component?.noWrap
|
|
135
|
-
? {}
|
|
136
|
-
: {
|
|
137
|
-
attributes: {
|
|
138
|
-
...attributes(),
|
|
139
|
-
...actions(),
|
|
140
|
-
},
|
|
141
|
-
}),
|
|
142
|
-
},
|
|
143
|
-
context: childrenContext(),
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
const TagRef = tag;
|
|
148
|
-
|
|
149
|
-
return (
|
|
150
|
-
<>
|
|
151
|
-
{canShowBlock() ? (
|
|
152
|
-
<>
|
|
153
|
-
{!component?.noWrap ? (
|
|
154
|
-
<>
|
|
155
|
-
{isEmptyHtmlElement(tag) ? (
|
|
156
|
-
<>
|
|
157
|
-
<TagRef {...attributes()} {...actions()} />
|
|
158
|
-
</>
|
|
159
|
-
) : null}
|
|
160
|
-
{!isEmptyHtmlElement(tag) && repeatItemData ? (
|
|
161
|
-
<>
|
|
162
|
-
{repeatItemData?.map((data, index) => (
|
|
163
|
-
<RenderRepeatedBlock
|
|
164
|
-
key={index}
|
|
165
|
-
repeatContext={data.context}
|
|
166
|
-
block={data.block}
|
|
167
|
-
/>
|
|
168
|
-
))}
|
|
169
|
-
</>
|
|
170
|
-
) : null}
|
|
171
|
-
{!isEmptyHtmlElement(tag) && !repeatItemData ? (
|
|
172
|
-
<>
|
|
173
|
-
<TagRef {...attributes()} {...actions()}>
|
|
174
|
-
<RenderComponent {...renderComponentProps()} />
|
|
175
|
-
|
|
176
|
-
{childrenWithoutParentComponent()?.map((child) => (
|
|
177
|
-
<RenderBlock
|
|
178
|
-
key={"render-block-" + child.id}
|
|
179
|
-
block={child}
|
|
180
|
-
context={childrenContext()}
|
|
181
|
-
/>
|
|
182
|
-
))}
|
|
183
|
-
|
|
184
|
-
{childrenWithoutParentComponent()?.map((child) => (
|
|
185
|
-
<BlockStyles
|
|
186
|
-
key={"block-style-" + child.id}
|
|
187
|
-
block={child}
|
|
188
|
-
context={childrenContext()}
|
|
189
|
-
/>
|
|
190
|
-
))}
|
|
191
|
-
</TagRef>
|
|
192
|
-
</>
|
|
193
|
-
) : null}
|
|
194
|
-
</>
|
|
195
|
-
) : (
|
|
196
|
-
<RenderComponent {...renderComponentProps()} />
|
|
197
|
-
)}
|
|
198
|
-
</>
|
|
199
|
-
) : null}
|
|
200
|
-
</>
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export default RenderBlock;
|