@builder.io/sdk-react 0.2.2 → 0.2.3-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react/cjs/blocks/BaseText.d.ts +2 -0
- package/dist/react/cjs/blocks/BaseText.js +11 -0
- package/dist/react/cjs/blocks/button/button.d.ts +2 -0
- package/dist/react/cjs/blocks/button/button.js +15 -0
- package/dist/react/cjs/blocks/button/component-info.d.ts +38 -0
- package/dist/react/cjs/blocks/button/component-info.js +41 -0
- package/dist/react/cjs/blocks/columns/columns.d.ts +2 -0
- package/dist/react/cjs/blocks/columns/columns.js +133 -0
- package/dist/react/cjs/blocks/columns/component-info.d.ts +176 -0
- package/dist/react/cjs/blocks/columns/component-info.js +243 -0
- package/dist/react/cjs/blocks/custom-code/component-info.d.ts +31 -0
- package/dist/react/cjs/blocks/custom-code/component-info.js +31 -0
- package/dist/react/cjs/blocks/custom-code/custom-code.d.ts +2 -0
- package/dist/react/cjs/blocks/custom-code/custom-code.js +53 -0
- package/dist/react/cjs/blocks/embed/component-info.d.ts +22 -0
- package/dist/react/cjs/blocks/embed/component-info.js +46 -0
- package/dist/react/cjs/blocks/embed/embed.d.ts +2 -0
- package/dist/react/cjs/blocks/embed/embed.js +44 -0
- package/dist/react/cjs/blocks/embed/helpers.d.ts +1 -0
- package/dist/react/cjs/blocks/embed/helpers.js +10 -0
- package/dist/react/cjs/blocks/form/component-info.d.ts +235 -0
- package/dist/react/cjs/blocks/form/component-info.js +262 -0
- package/dist/react/cjs/blocks/form/form.d.ts +2 -0
- package/dist/react/cjs/blocks/form/form.js +205 -0
- package/dist/react/cjs/blocks/fragment/component-info.d.ts +8 -0
- package/dist/react/cjs/blocks/fragment/component-info.js +11 -0
- package/dist/react/cjs/blocks/fragment/fragment.d.ts +2 -0
- package/dist/react/cjs/blocks/fragment/fragment.js +8 -0
- package/dist/react/cjs/blocks/image/component-info.d.ts +114 -0
- package/dist/react/cjs/blocks/image/component-info.js +151 -0
- package/dist/react/cjs/blocks/image/image.d.ts +2 -0
- package/dist/react/cjs/blocks/image/image.helpers.d.ts +1 -0
- package/dist/react/cjs/blocks/image/image.helpers.js +49 -0
- package/dist/react/cjs/blocks/image/image.js +84 -0
- package/dist/react/cjs/blocks/img/component-info.d.ts +15 -0
- package/dist/react/cjs/blocks/img/component-info.js +20 -0
- package/dist/react/cjs/blocks/img/img.d.ts +2 -0
- package/dist/react/cjs/blocks/img/img.js +12 -0
- package/dist/react/cjs/blocks/input/component-info.d.ts +66 -0
- package/dist/react/cjs/blocks/input/component-info.js +74 -0
- package/dist/react/cjs/blocks/input/input.d.ts +2 -0
- package/dist/react/cjs/blocks/input/input.js +9 -0
- package/dist/react/cjs/blocks/raw-text/component-info.d.ts +10 -0
- package/dist/react/cjs/blocks/raw-text/component-info.js +16 -0
- package/dist/react/cjs/blocks/raw-text/raw-text.d.ts +2 -0
- package/dist/react/cjs/blocks/raw-text/raw-text.js +8 -0
- package/dist/react/cjs/blocks/section/component-info.d.ts +43 -0
- package/dist/react/cjs/blocks/section/component-info.js +49 -0
- package/dist/react/cjs/blocks/section/section.d.ts +2 -0
- package/dist/react/cjs/blocks/section/section.js +19 -0
- package/dist/react/cjs/blocks/select/component-info.d.ts +61 -0
- package/dist/react/cjs/blocks/select/component-info.js +59 -0
- package/dist/react/cjs/blocks/select/select.d.ts +2 -0
- package/dist/react/cjs/blocks/select/select.js +9 -0
- package/dist/react/cjs/blocks/submit-button/component-info.d.ts +23 -0
- package/dist/react/cjs/blocks/submit-button/component-info.js +28 -0
- package/dist/react/cjs/blocks/submit-button/submit-button.d.ts +2 -0
- package/dist/react/cjs/blocks/submit-button/submit-button.js +8 -0
- package/dist/react/cjs/blocks/symbol/component-info.d.ts +35 -0
- package/dist/react/cjs/blocks/symbol/component-info.js +43 -0
- package/dist/react/cjs/blocks/symbol/symbol.d.ts +2 -0
- package/dist/react/cjs/blocks/symbol/symbol.js +73 -0
- package/dist/react/cjs/blocks/text/component-info.d.ts +19 -0
- package/dist/react/cjs/blocks/text/component-info.js +24 -0
- package/dist/react/cjs/blocks/text/text.d.ts +2 -0
- package/dist/react/cjs/blocks/text/text.js +10 -0
- package/dist/react/cjs/blocks/textarea/component-info.d.ts +53 -0
- package/dist/react/cjs/blocks/textarea/component-info.js +47 -0
- package/dist/react/cjs/blocks/textarea/textarea.d.ts +2 -0
- package/dist/react/cjs/blocks/textarea/textarea.js +8 -0
- package/dist/react/cjs/blocks/util.d.ts +1 -0
- package/dist/react/cjs/blocks/util.js +9 -0
- package/dist/react/cjs/blocks/video/component-info.d.ts +80 -0
- package/dist/react/cjs/blocks/video/component-info.js +106 -0
- package/dist/react/cjs/blocks/video/video.d.ts +2 -0
- package/dist/react/cjs/blocks/video/video.js +52 -0
- package/dist/react/cjs/components/render-block/block-styles.d.ts +2 -0
- package/dist/react/cjs/components/render-block/block-styles.js +66 -0
- package/dist/react/cjs/components/render-block/render-block.d.ts +2 -0
- package/dist/react/cjs/components/render-block/render-block.helpers.d.ts +13 -0
- package/dist/react/cjs/components/render-block/render-block.helpers.js +125 -0
- package/dist/react/cjs/components/render-block/render-block.js +134 -0
- package/dist/react/cjs/components/render-block/render-component.d.ts +2 -0
- package/dist/react/cjs/components/render-block/render-component.js +14 -0
- package/dist/react/cjs/components/render-block/render-repeated-block.d.ts +2 -0
- package/dist/react/cjs/components/render-block/render-repeated-block.js +20 -0
- package/dist/react/cjs/components/render-block/types.d.ts +0 -0
- package/dist/react/cjs/components/render-blocks.d.ts +2 -0
- package/dist/react/cjs/components/render-blocks.js +49 -0
- package/dist/react/cjs/components/render-content/builder-editing.d.ts +2 -0
- package/dist/react/cjs/components/render-content/builder-editing.js +8 -0
- package/dist/react/cjs/components/render-content/components/render-styles.d.ts +2 -0
- package/dist/react/cjs/components/render-content/components/render-styles.helpers.d.ts +7 -0
- package/dist/react/cjs/components/render-content/components/render-styles.helpers.js +55 -0
- package/dist/react/cjs/components/render-content/components/render-styles.js +34 -0
- package/dist/react/cjs/components/render-content/index.d.ts +2 -0
- package/dist/react/cjs/components/render-content/index.js +5 -0
- package/dist/react/cjs/components/render-content/render-content.d.ts +2 -0
- package/dist/react/cjs/components/render-content/render-content.helpers.d.ts +9 -0
- package/dist/react/cjs/components/render-content/render-content.helpers.js +42 -0
- package/dist/react/cjs/components/render-content/render-content.js +297 -0
- package/dist/react/cjs/components/render-content/render-content.types.d.ts +0 -0
- package/dist/react/cjs/components/render-inlined-styles.d.ts +2 -0
- package/dist/react/cjs/components/render-inlined-styles.js +19 -0
- package/dist/react/cjs/constants/builder-registered-components.d.ts +1 -0
- package/dist/react/cjs/constants/builder-registered-components.js +55 -0
- package/dist/react/cjs/constants/device-sizes.d.ts +21 -0
- package/dist/react/cjs/constants/device-sizes.js +49 -0
- package/dist/react/cjs/constants/target.d.ts +1 -0
- package/dist/react/cjs/constants/target.js +5 -0
- package/dist/react/cjs/context/builder.context.d.ts +11 -0
- package/dist/react/cjs/context/builder.context.js +16 -0
- package/dist/react/cjs/context/types.d.ts +0 -0
- package/dist/react/cjs/functions/camel-to-kebab-case.d.ts +1 -0
- package/dist/react/cjs/functions/camel-to-kebab-case.js +5 -0
- package/dist/react/cjs/functions/evaluate.d.ts +7 -0
- package/dist/react/cjs/functions/evaluate.js +25 -0
- package/dist/react/cjs/functions/event-handler-name.d.ts +1 -0
- package/dist/react/cjs/functions/event-handler-name.js +8 -0
- package/dist/react/cjs/functions/extract-text-styles.d.ts +1 -0
- package/dist/react/cjs/functions/extract-text-styles.js +23 -0
- package/dist/react/cjs/functions/fast-clone.d.ts +1 -0
- package/dist/react/cjs/functions/fast-clone.js +5 -0
- package/dist/react/cjs/functions/get-block-actions-handler.d.ts +1 -0
- package/dist/react/cjs/functions/get-block-actions-handler.js +12 -0
- package/dist/react/cjs/functions/get-block-actions.d.ts +1 -0
- package/dist/react/cjs/functions/get-block-actions.js +19 -0
- package/dist/react/cjs/functions/get-block-component-options.d.ts +1 -0
- package/dist/react/cjs/functions/get-block-component-options.js +29 -0
- package/dist/react/cjs/functions/get-block-properties.d.ts +1 -0
- package/dist/react/cjs/functions/get-block-properties.js +54 -0
- package/dist/react/cjs/functions/get-builder-search-params/fn.test.d.ts +1 -0
- package/dist/react/cjs/functions/get-builder-search-params/fn.test.js +15 -0
- package/dist/react/cjs/functions/get-builder-search-params/index.d.ts +4 -0
- package/dist/react/cjs/functions/get-builder-search-params/index.js +39 -0
- package/dist/react/cjs/functions/get-content/ab-testing.d.ts +1 -0
- package/dist/react/cjs/functions/get-content/ab-testing.js +89 -0
- package/dist/react/cjs/functions/get-content/generate-content-url.d.ts +1 -0
- package/dist/react/cjs/functions/get-content/generate-content-url.js +48 -0
- package/dist/react/cjs/functions/get-content/generate-content-url.test.d.ts +1 -0
- package/dist/react/cjs/functions/get-content/generate-content-url.test.js +84 -0
- package/dist/react/cjs/functions/get-content/index.d.ts +2 -0
- package/dist/react/cjs/functions/get-content/index.js +88 -0
- package/dist/react/cjs/functions/get-content/types.d.ts +0 -0
- package/dist/react/cjs/functions/get-fetch.d.ts +1 -0
- package/dist/react/cjs/functions/get-fetch.js +15 -0
- package/dist/react/cjs/functions/get-global-this.d.ts +1 -0
- package/dist/react/cjs/functions/get-global-this.js +19 -0
- package/dist/react/cjs/functions/get-processed-block.d.ts +6 -0
- package/dist/react/cjs/functions/get-processed-block.js +52 -0
- package/dist/react/cjs/functions/get-processed-block.test.d.ts +1 -0
- package/dist/react/cjs/functions/get-processed-block.test.js +34 -0
- package/dist/react/cjs/functions/get-react-native-block-styles.d.ts +5 -0
- package/dist/react/cjs/functions/get-react-native-block-styles.js +30 -0
- package/dist/react/cjs/functions/if-target.d.ts +5 -0
- package/dist/react/cjs/functions/if-target.js +13 -0
- package/dist/react/cjs/functions/is-browser.d.ts +1 -0
- package/dist/react/cjs/functions/is-browser.js +7 -0
- package/dist/react/cjs/functions/is-editing.d.ts +1 -0
- package/dist/react/cjs/functions/is-editing.js +9 -0
- package/dist/react/cjs/functions/is-iframe.d.ts +1 -0
- package/dist/react/cjs/functions/is-iframe.js +8 -0
- package/dist/react/cjs/functions/is-previewing.d.ts +1 -0
- package/dist/react/cjs/functions/is-previewing.js +15 -0
- package/dist/react/cjs/functions/on-change.d.ts +2 -0
- package/dist/react/cjs/functions/on-change.js +28 -0
- package/dist/react/cjs/functions/on-change.test.d.ts +1 -0
- package/dist/react/cjs/functions/on-change.test.js +21 -0
- package/dist/react/cjs/functions/register-component.d.ts +6 -0
- package/dist/react/cjs/functions/register-component.js +65 -0
- package/dist/react/cjs/functions/register.d.ts +1 -0
- package/dist/react/cjs/functions/register.js +31 -0
- package/dist/react/cjs/functions/sanitize-react-native-block-styles.d.ts +1 -0
- package/dist/react/cjs/functions/sanitize-react-native-block-styles.js +71 -0
- package/dist/react/cjs/functions/set-editor-settings.d.ts +1 -0
- package/dist/react/cjs/functions/set-editor-settings.js +16 -0
- package/dist/react/cjs/functions/set.d.ts +1 -0
- package/dist/react/cjs/functions/set.js +12 -0
- package/dist/react/cjs/functions/set.test.d.ts +1 -0
- package/dist/react/cjs/functions/set.test.js +18 -0
- package/dist/react/cjs/functions/track/helpers.d.ts +5 -0
- package/dist/react/cjs/functions/track/helpers.js +53 -0
- package/dist/react/cjs/functions/track/index.d.ts +2 -0
- package/dist/react/{functions/track.js → cjs/functions/track/index.js} +21 -12
- package/dist/react/cjs/functions/track/interaction.d.ts +14 -0
- package/dist/react/cjs/functions/track/interaction.js +51 -0
- package/dist/react/cjs/functions/transform-block-properties.d.ts +1 -0
- package/dist/react/cjs/functions/transform-block-properties.js +7 -0
- package/dist/react/cjs/functions/transform-block.d.ts +1 -0
- package/dist/react/cjs/functions/transform-block.js +7 -0
- package/dist/react/cjs/helpers/ab-tests.d.ts +9 -0
- package/dist/react/cjs/helpers/ab-tests.js +10 -0
- package/dist/react/cjs/helpers/cookie.d.ts +2 -0
- package/dist/react/cjs/helpers/cookie.js +74 -0
- package/dist/react/cjs/helpers/css.d.ts +7 -0
- package/dist/react/cjs/helpers/css.js +33 -0
- package/dist/react/cjs/helpers/flatten.d.ts +1 -0
- package/dist/react/cjs/helpers/flatten.js +35 -0
- package/dist/react/cjs/helpers/localStorage.d.ts +9 -0
- package/dist/react/cjs/helpers/localStorage.js +31 -0
- package/dist/react/cjs/helpers/logger.d.ts +5 -0
- package/dist/react/cjs/helpers/logger.js +10 -0
- package/dist/react/cjs/helpers/nullable.d.ts +1 -0
- package/dist/react/cjs/helpers/nullable.js +5 -0
- package/dist/react/cjs/helpers/sessionId.d.ts +6 -0
- package/dist/react/cjs/helpers/sessionId.js +51 -0
- package/dist/react/cjs/helpers/time.d.ts +1 -0
- package/dist/react/cjs/helpers/time.js +6 -0
- package/dist/react/cjs/helpers/url.d.ts +1 -0
- package/dist/react/cjs/helpers/url.js +14 -0
- package/dist/react/cjs/helpers/url.test.d.ts +1 -0
- package/dist/react/cjs/helpers/url.test.js +23 -0
- package/dist/react/cjs/helpers/uuid.d.ts +2 -0
- package/dist/react/cjs/helpers/uuid.js +14 -0
- package/dist/react/cjs/helpers/visitorId.d.ts +8 -0
- package/dist/react/cjs/helpers/visitorId.js +33 -0
- package/dist/react/cjs/index-helpers/blocks-exports.js +23 -0
- package/dist/react/cjs/index-helpers/top-of-file.d.ts +2 -0
- package/dist/react/cjs/index-helpers/top-of-file.js +5 -0
- package/dist/react/cjs/index.d.ts +11 -0
- package/dist/react/cjs/index.js +28 -0
- package/dist/react/cjs/scripts/init-editing.d.ts +2 -0
- package/dist/react/cjs/scripts/init-editing.js +97 -0
- package/dist/react/cjs/types/api-version.d.ts +1 -0
- package/dist/react/cjs/types/api-version.js +5 -0
- package/dist/react/cjs/types/builder-block.d.ts +0 -0
- package/dist/react/cjs/types/builder-content.d.ts +0 -0
- package/dist/react/cjs/types/can-track.d.ts +0 -0
- package/dist/react/cjs/types/components.d.ts +0 -0
- package/dist/react/cjs/types/deep-partial.d.ts +0 -0
- package/dist/react/cjs/types/element.d.ts +0 -0
- package/dist/react/cjs/types/input.d.ts +0 -0
- package/dist/react/cjs/types/targets.d.ts +0 -0
- package/dist/react/cjs/types/typescript.d.ts +0 -0
- package/dist/react/esm/blocks/BaseText.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/BaseText.js +1 -0
- package/dist/react/esm/blocks/button/button.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/button/button.js +1 -0
- package/dist/react/esm/blocks/button/component-info.d.ts +38 -0
- package/dist/react/esm/blocks/columns/columns.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/columns/columns.js +1 -0
- package/dist/react/esm/blocks/columns/component-info.d.ts +176 -0
- package/dist/react/esm/blocks/custom-code/component-info.d.ts +31 -0
- package/dist/react/esm/blocks/custom-code/custom-code.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/custom-code/custom-code.js +1 -0
- package/dist/react/esm/blocks/embed/component-info.d.ts +22 -0
- package/dist/react/esm/blocks/embed/embed.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/embed/embed.js +1 -0
- package/dist/react/esm/blocks/embed/helpers.d.ts +1 -0
- package/dist/react/esm/blocks/form/component-info.d.ts +235 -0
- package/dist/react/esm/blocks/form/form.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/form/form.js +1 -0
- package/dist/react/esm/blocks/fragment/component-info.d.ts +8 -0
- package/dist/react/esm/blocks/fragment/fragment.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/fragment/fragment.js +1 -0
- package/dist/react/esm/blocks/image/component-info.d.ts +114 -0
- package/dist/react/esm/blocks/image/image.d.ts +2 -0
- package/dist/react/esm/blocks/image/image.helpers.d.ts +1 -0
- package/dist/react/{blocks → esm/blocks}/image/image.js +1 -0
- package/dist/react/esm/blocks/img/component-info.d.ts +15 -0
- package/dist/react/esm/blocks/img/img.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/img/img.js +1 -0
- package/dist/react/esm/blocks/input/component-info.d.ts +66 -0
- package/dist/react/esm/blocks/input/input.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/input/input.js +1 -0
- package/dist/react/esm/blocks/raw-text/component-info.d.ts +10 -0
- package/dist/react/esm/blocks/raw-text/raw-text.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/raw-text/raw-text.js +1 -0
- package/dist/react/esm/blocks/section/component-info.d.ts +43 -0
- package/dist/react/esm/blocks/section/section.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/section/section.js +1 -0
- package/dist/react/esm/blocks/select/component-info.d.ts +61 -0
- package/dist/react/esm/blocks/select/select.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/select/select.js +1 -0
- package/dist/react/esm/blocks/submit-button/component-info.d.ts +23 -0
- package/dist/react/esm/blocks/submit-button/submit-button.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/submit-button/submit-button.js +1 -0
- package/dist/react/esm/blocks/symbol/component-info.d.ts +35 -0
- package/dist/react/esm/blocks/symbol/symbol.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/symbol/symbol.js +1 -0
- package/dist/react/esm/blocks/text/component-info.d.ts +19 -0
- package/dist/react/esm/blocks/text/text.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/text/text.js +1 -0
- package/dist/react/esm/blocks/textarea/component-info.d.ts +53 -0
- package/dist/react/esm/blocks/textarea/textarea.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/textarea/textarea.js +1 -0
- package/dist/react/esm/blocks/util.d.ts +1 -0
- package/dist/react/esm/blocks/video/component-info.d.ts +80 -0
- package/dist/react/esm/blocks/video/video.d.ts +2 -0
- package/dist/react/{blocks → esm/blocks}/video/video.js +1 -0
- package/dist/react/esm/components/render-block/block-styles.d.ts +2 -0
- package/dist/react/{components → esm/components}/render-block/block-styles.js +1 -0
- package/dist/react/esm/components/render-block/render-block.d.ts +2 -0
- package/dist/react/esm/components/render-block/render-block.helpers.d.ts +13 -0
- package/dist/react/{components → esm/components}/render-block/render-block.js +1 -0
- package/dist/react/esm/components/render-block/render-component.d.ts +2 -0
- package/dist/react/{components → esm/components}/render-block/render-component.js +1 -0
- package/dist/react/esm/components/render-block/render-repeated-block.d.ts +2 -0
- package/dist/react/{components → esm/components}/render-block/render-repeated-block.js +1 -0
- package/dist/react/esm/components/render-block/types.d.ts +0 -0
- package/dist/react/esm/components/render-block/types.js +1 -0
- package/dist/react/esm/components/render-blocks.d.ts +2 -0
- package/dist/react/{components → esm/components}/render-blocks.js +1 -0
- package/dist/react/esm/components/render-content/builder-editing.d.ts +2 -0
- package/dist/react/{components → esm/components}/render-content/builder-editing.js +1 -0
- package/dist/react/esm/components/render-content/components/render-styles.d.ts +2 -0
- package/dist/react/esm/components/render-content/components/render-styles.helpers.d.ts +7 -0
- package/dist/react/{components → esm/components}/render-content/components/render-styles.js +1 -0
- package/dist/react/esm/components/render-content/index.d.ts +2 -0
- package/dist/react/esm/components/render-content/render-content.d.ts +2 -0
- package/dist/react/esm/components/render-content/render-content.helpers.d.ts +9 -0
- package/dist/react/{components → esm/components}/render-content/render-content.js +1 -0
- 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 +1 -0
- package/dist/react/esm/components/render-inlined-styles.d.ts +2 -0
- package/dist/react/{components → esm/components}/render-inlined-styles.js +1 -0
- package/dist/react/esm/constants/builder-registered-components.d.ts +1 -0
- package/dist/react/esm/constants/device-sizes.d.ts +21 -0
- package/dist/react/esm/constants/target.d.ts +1 -0
- package/dist/react/esm/context/builder.context.d.ts +11 -0
- package/dist/react/esm/context/types.d.ts +0 -0
- package/dist/react/esm/context/types.js +1 -0
- package/dist/react/esm/functions/camel-to-kebab-case.d.ts +1 -0
- package/dist/react/esm/functions/evaluate.d.ts +7 -0
- package/dist/react/esm/functions/event-handler-name.d.ts +1 -0
- package/dist/react/esm/functions/extract-text-styles.d.ts +1 -0
- package/dist/react/esm/functions/fast-clone.d.ts +1 -0
- package/dist/react/esm/functions/get-block-actions-handler.d.ts +1 -0
- package/dist/react/esm/functions/get-block-actions.d.ts +1 -0
- package/dist/react/esm/functions/get-block-component-options.d.ts +1 -0
- package/dist/react/esm/functions/get-block-properties.d.ts +1 -0
- package/dist/react/esm/functions/get-builder-search-params/fn.test.d.ts +1 -0
- package/dist/react/esm/functions/get-builder-search-params/index.d.ts +4 -0
- package/dist/react/esm/functions/get-content/ab-testing.d.ts +1 -0
- package/dist/react/esm/functions/get-content/generate-content-url.d.ts +1 -0
- package/dist/react/esm/functions/get-content/generate-content-url.test.d.ts +1 -0
- package/dist/react/esm/functions/get-content/index.d.ts +2 -0
- package/dist/react/{functions → esm/functions}/get-content/index.js +1 -1
- package/dist/react/esm/functions/get-content/types.d.ts +0 -0
- package/dist/react/esm/functions/get-content/types.js +1 -0
- package/dist/react/esm/functions/get-fetch.d.ts +1 -0
- package/dist/react/esm/functions/get-global-this.d.ts +1 -0
- package/dist/react/esm/functions/get-processed-block.d.ts +6 -0
- package/dist/react/esm/functions/get-processed-block.test.d.ts +1 -0
- package/dist/react/esm/functions/get-react-native-block-styles.d.ts +5 -0
- package/dist/react/esm/functions/if-target.d.ts +5 -0
- package/dist/react/esm/functions/is-browser.d.ts +1 -0
- package/dist/react/esm/functions/is-editing.d.ts +1 -0
- package/dist/react/esm/functions/is-iframe.d.ts +1 -0
- package/dist/react/esm/functions/is-previewing.d.ts +1 -0
- package/dist/react/esm/functions/on-change.d.ts +2 -0
- package/dist/react/esm/functions/on-change.test.d.ts +1 -0
- package/dist/react/esm/functions/register-component.d.ts +6 -0
- package/dist/react/esm/functions/register.d.ts +1 -0
- package/dist/react/esm/functions/sanitize-react-native-block-styles.d.ts +1 -0
- package/dist/react/esm/functions/set-editor-settings.d.ts +1 -0
- package/dist/react/esm/functions/set.d.ts +1 -0
- package/dist/react/esm/functions/set.test.d.ts +1 -0
- package/dist/react/esm/functions/track/helpers.d.ts +5 -0
- package/dist/react/esm/functions/track/index.d.ts +2 -0
- package/dist/react/esm/functions/track/interaction.d.ts +14 -0
- package/dist/react/esm/functions/transform-block-properties.d.ts +1 -0
- package/dist/react/esm/functions/transform-block.d.ts +1 -0
- package/dist/react/esm/helpers/ab-tests.d.ts +9 -0
- package/dist/react/esm/helpers/cookie.d.ts +2 -0
- package/dist/react/esm/helpers/css.d.ts +7 -0
- package/dist/react/esm/helpers/flatten.d.ts +1 -0
- package/dist/react/esm/helpers/localStorage.d.ts +9 -0
- package/dist/react/esm/helpers/logger.d.ts +5 -0
- package/dist/react/esm/helpers/nullable.d.ts +1 -0
- package/dist/react/esm/helpers/sessionId.d.ts +6 -0
- package/dist/react/esm/helpers/time.d.ts +1 -0
- package/dist/react/esm/helpers/url.d.ts +1 -0
- package/dist/react/esm/helpers/url.test.d.ts +1 -0
- package/dist/react/esm/helpers/uuid.d.ts +2 -0
- package/dist/react/esm/helpers/visitorId.d.ts +8 -0
- package/dist/react/esm/index-helpers/blocks-exports.d.ts +11 -0
- package/dist/react/esm/index-helpers/blocks-exports.js +11 -0
- package/dist/react/esm/index-helpers/top-of-file.d.ts +2 -0
- package/dist/react/esm/index.d.ts +11 -0
- package/dist/react/esm/scripts/init-editing.d.ts +2 -0
- package/dist/react/esm/types/api-version.d.ts +1 -0
- package/dist/react/esm/types/builder-block.d.ts +0 -0
- package/dist/react/esm/types/builder-block.js +1 -0
- package/dist/react/esm/types/builder-content.d.ts +0 -0
- package/dist/react/esm/types/builder-content.js +1 -0
- package/dist/react/esm/types/can-track.d.ts +0 -0
- package/dist/react/esm/types/can-track.js +1 -0
- package/dist/react/esm/types/components.d.ts +0 -0
- package/dist/react/esm/types/components.js +1 -0
- package/dist/react/esm/types/deep-partial.d.ts +0 -0
- package/dist/react/esm/types/deep-partial.js +1 -0
- package/dist/react/esm/types/element.d.ts +0 -0
- package/dist/react/esm/types/element.js +1 -0
- package/dist/react/esm/types/input.d.ts +0 -0
- package/dist/react/esm/types/input.js +1 -0
- package/dist/react/esm/types/targets.d.ts +0 -0
- package/dist/react/esm/types/targets.js +1 -0
- package/dist/react/esm/types/typescript.d.ts +0 -0
- package/dist/react/esm/types/typescript.js +1 -0
- package/dist/rsc/blocks/BaseText.d.ts +2 -0
- package/dist/rsc/blocks/button/button.d.ts +2 -0
- package/dist/rsc/blocks/button/component-info.d.ts +38 -0
- package/dist/rsc/blocks/columns/columns.d.ts +2 -0
- package/dist/rsc/blocks/columns/component-info.d.ts +176 -0
- package/dist/rsc/blocks/custom-code/component-info.d.ts +31 -0
- package/dist/rsc/blocks/custom-code/custom-code.d.ts +2 -0
- package/dist/rsc/blocks/embed/component-info.d.ts +22 -0
- package/dist/rsc/blocks/embed/embed.d.ts +2 -0
- package/dist/rsc/blocks/embed/helpers.d.ts +1 -0
- package/dist/rsc/blocks/form/component-info.d.ts +235 -0
- package/dist/rsc/blocks/form/form.d.ts +2 -0
- package/dist/rsc/blocks/fragment/component-info.d.ts +8 -0
- package/dist/rsc/blocks/fragment/fragment.d.ts +2 -0
- package/dist/rsc/blocks/image/component-info.d.ts +114 -0
- package/dist/rsc/blocks/image/image.d.ts +2 -0
- package/dist/rsc/blocks/image/image.helpers.d.ts +1 -0
- package/dist/rsc/blocks/img/component-info.d.ts +15 -0
- package/dist/rsc/blocks/img/img.d.ts +2 -0
- package/dist/rsc/blocks/input/component-info.d.ts +66 -0
- package/dist/rsc/blocks/input/input.d.ts +2 -0
- package/dist/rsc/blocks/raw-text/component-info.d.ts +10 -0
- package/dist/rsc/blocks/raw-text/raw-text.d.ts +2 -0
- package/dist/rsc/blocks/section/component-info.d.ts +43 -0
- package/dist/rsc/blocks/section/section.d.ts +2 -0
- package/dist/rsc/blocks/select/component-info.d.ts +61 -0
- package/dist/rsc/blocks/select/select.d.ts +2 -0
- package/dist/rsc/blocks/submit-button/component-info.d.ts +23 -0
- package/dist/rsc/blocks/submit-button/submit-button.d.ts +2 -0
- package/dist/rsc/blocks/symbol/component-info.d.ts +35 -0
- package/dist/rsc/blocks/symbol/symbol.d.ts +2 -0
- package/dist/rsc/blocks/text/component-info.d.ts +19 -0
- package/dist/rsc/blocks/text/text.d.ts +2 -0
- package/dist/rsc/blocks/textarea/component-info.d.ts +53 -0
- package/dist/rsc/blocks/textarea/textarea.d.ts +2 -0
- package/dist/rsc/blocks/util.d.ts +1 -0
- package/dist/rsc/blocks/video/component-info.d.ts +80 -0
- package/dist/rsc/blocks/video/video.d.ts +2 -0
- package/dist/rsc/components/render-block/block-styles.d.ts +2 -0
- package/dist/rsc/components/render-block/render-block.d.ts +2 -0
- package/dist/rsc/components/render-block/render-block.helpers.d.ts +10 -0
- package/dist/rsc/components/render-block/render-component.d.ts +2 -0
- package/dist/rsc/components/render-block/render-repeated-block.d.ts +2 -0
- package/dist/rsc/components/render-block/types.d.ts +0 -0
- package/dist/rsc/components/render-blocks.d.ts +2 -0
- package/dist/rsc/components/render-content/builder-editing.d.ts +27 -0
- package/dist/rsc/components/render-content/components/render-styles.d.ts +2 -0
- package/dist/rsc/components/render-content/components/render-styles.helpers.d.ts +7 -0
- package/dist/rsc/components/render-content/index.d.ts +2 -0
- package/dist/rsc/components/render-content/render-content.d.ts +2 -0
- package/dist/rsc/components/render-content/render-content.helpers.d.ts +9 -0
- package/dist/rsc/components/render-content/render-content.types.d.ts +0 -0
- package/dist/rsc/components/render-inlined-styles.d.ts +2 -0
- package/dist/rsc/constants/builder-registered-components.d.ts +1 -0
- package/dist/rsc/constants/device-sizes.d.ts +21 -0
- package/dist/rsc/constants/target.d.ts +1 -0
- package/dist/rsc/context/builder.context.d.ts +11 -0
- package/dist/rsc/context/types.d.ts +0 -0
- package/dist/rsc/functions/camel-to-kebab-case.d.ts +1 -0
- package/dist/rsc/functions/evaluate.d.ts +1 -0
- package/dist/rsc/functions/event-handler-name.d.ts +1 -0
- package/dist/rsc/functions/extract-text-styles.d.ts +1 -0
- package/dist/rsc/functions/fast-clone.d.ts +1 -0
- package/dist/rsc/functions/get-block-actions-handler.d.ts +1 -0
- package/dist/rsc/functions/get-block-actions.d.ts +1 -0
- package/dist/rsc/functions/get-block-component-options.d.ts +1 -0
- package/dist/rsc/functions/get-block-properties.d.ts +1 -0
- package/dist/rsc/functions/get-builder-search-params/fn.test.d.ts +1 -0
- package/dist/rsc/functions/get-builder-search-params/index.d.ts +4 -0
- package/dist/rsc/functions/get-content/ab-testing.d.ts +1 -0
- package/dist/rsc/functions/get-content/generate-content-url.d.ts +1 -0
- package/dist/rsc/functions/get-content/generate-content-url.test.d.ts +1 -0
- package/dist/rsc/functions/get-content/index.d.ts +2 -0
- package/dist/rsc/functions/get-content/index.js +1 -1
- package/dist/rsc/functions/get-content/types.d.ts +0 -0
- package/dist/rsc/functions/get-fetch.d.ts +1 -0
- package/dist/rsc/functions/get-global-this.d.ts +1 -0
- package/dist/rsc/functions/get-processed-block.d.ts +6 -0
- package/dist/rsc/functions/get-processed-block.test.d.ts +1 -0
- package/dist/rsc/functions/get-react-native-block-styles.d.ts +5 -0
- package/dist/rsc/functions/if-target.d.ts +5 -0
- package/dist/rsc/functions/is-browser.d.ts +1 -0
- package/dist/rsc/functions/is-editing.d.ts +1 -0
- package/dist/rsc/functions/is-iframe.d.ts +1 -0
- package/dist/rsc/functions/is-previewing.d.ts +1 -0
- package/dist/rsc/functions/on-change.d.ts +2 -0
- package/dist/rsc/functions/on-change.test.d.ts +1 -0
- package/dist/rsc/functions/register-component.d.ts +6 -0
- package/dist/rsc/functions/register.d.ts +1 -0
- package/dist/rsc/functions/sanitize-react-native-block-styles.d.ts +1 -0
- package/dist/rsc/functions/set-editor-settings.d.ts +1 -0
- package/dist/rsc/functions/set.d.ts +1 -0
- package/dist/rsc/functions/set.test.d.ts +1 -0
- package/dist/rsc/functions/track/helpers.d.ts +5 -0
- package/dist/rsc/functions/track/index.d.ts +2 -0
- package/dist/rsc/functions/track/interaction.d.ts +14 -0
- package/dist/rsc/functions/transform-block-properties.d.ts +1 -0
- package/dist/rsc/functions/transform-block.d.ts +1 -0
- package/dist/rsc/helpers/ab-tests.d.ts +9 -0
- package/dist/rsc/helpers/cookie.d.ts +2 -0
- package/dist/rsc/helpers/css.d.ts +7 -0
- package/dist/rsc/helpers/flatten.d.ts +1 -0
- package/dist/rsc/helpers/localStorage.d.ts +9 -0
- package/dist/rsc/helpers/logger.d.ts +5 -0
- package/dist/rsc/helpers/nullable.d.ts +1 -0
- package/dist/rsc/helpers/sessionId.d.ts +6 -0
- package/dist/rsc/helpers/time.d.ts +1 -0
- package/dist/rsc/helpers/url.d.ts +1 -0
- package/dist/rsc/helpers/url.test.d.ts +1 -0
- package/dist/rsc/helpers/uuid.d.ts +2 -0
- package/dist/rsc/helpers/visitorId.d.ts +8 -0
- package/dist/rsc/index-helpers/blocks-exports.d.ts +11 -0
- package/dist/rsc/index-helpers/top-of-file.d.ts +2 -0
- package/dist/rsc/index.d.ts +11 -0
- package/dist/rsc/scripts/init-editing.d.ts +2 -0
- package/dist/rsc/types/api-version.d.ts +1 -0
- package/dist/rsc/types/builder-block.d.ts +0 -0
- package/dist/rsc/types/builder-content.d.ts +0 -0
- package/dist/rsc/types/can-track.d.ts +0 -0
- package/dist/rsc/types/components.d.ts +0 -0
- package/dist/rsc/types/deep-partial.d.ts +0 -0
- package/dist/rsc/types/element.d.ts +0 -0
- package/dist/rsc/types/input.d.ts +0 -0
- package/dist/rsc/types/targets.d.ts +0 -0
- package/dist/rsc/types/typescript.d.ts +0 -0
- package/package.json +8 -9
- package/packages/react/src/blocks/BaseText.jsx +1 -0
- package/packages/react/src/blocks/button/button.jsx +1 -0
- package/packages/react/src/blocks/columns/columns.jsx +1 -0
- package/packages/react/src/blocks/custom-code/custom-code.jsx +1 -0
- package/packages/react/src/blocks/embed/embed.jsx +1 -0
- package/packages/react/src/blocks/form/form.jsx +1 -0
- package/packages/react/src/blocks/fragment/fragment.jsx +1 -0
- package/packages/react/src/blocks/image/image.jsx +1 -0
- package/packages/react/src/blocks/img/img.jsx +1 -0
- package/packages/react/src/blocks/input/input.jsx +1 -0
- package/packages/react/src/blocks/raw-text/raw-text.jsx +1 -0
- package/packages/react/src/blocks/section/section.jsx +1 -0
- package/packages/react/src/blocks/select/select.jsx +1 -0
- package/packages/react/src/blocks/submit-button/submit-button.jsx +1 -0
- package/packages/react/src/blocks/symbol/symbol.jsx +1 -0
- package/packages/react/src/blocks/text/text.jsx +1 -0
- package/packages/react/src/blocks/textarea/textarea.jsx +1 -0
- package/packages/react/src/blocks/video/video.jsx +1 -0
- package/packages/react/src/components/render-block/block-styles.jsx +1 -0
- package/packages/react/src/components/render-block/render-block.jsx +1 -0
- package/packages/react/src/components/render-block/render-component.jsx +1 -0
- package/packages/react/src/components/render-block/render-repeated-block.jsx +1 -0
- package/packages/react/src/components/render-blocks.jsx +1 -0
- package/packages/react/src/components/render-content/builder-editing.jsx +1 -0
- package/packages/react/src/components/render-content/components/render-styles.jsx +1 -0
- package/packages/react/src/components/render-content/render-content.jsx +1 -0
- package/packages/react/src/components/render-inlined-styles.jsx +1 -0
- package/packages/react/src/functions/get-content/index.js +1 -1
- package/packages/rsc/src/functions/get-content/index.js +1 -1
- package/tsconfig.base.json +8 -3
- package/tsconfig.react-cjs.json +10 -0
- package/tsconfig.react-esm.json +10 -0
- package/dist/react/components/render-block/render-component-with-context.js +0 -27
- package/dist/react/components/render-content-variants/helpers.js +0 -98
- package/dist/react/components/render-content-variants/render-content-variants.js +0 -45
- package/dist/react/functions/get-block-tag.js +0 -4
- package/tsconfig.react.json +0 -7
- /package/dist/react/{components → cjs/components}/render-block/types.js +0 -0
- /package/dist/react/{components → cjs/components}/render-content/render-content.types.js +0 -0
- /package/dist/react/{context → cjs/context}/types.js +0 -0
- /package/dist/react/{functions → cjs/functions}/get-content/types.js +0 -0
- /package/dist/react/{index-helpers/blocks-exports.js → cjs/index-helpers/blocks-exports.d.ts} +0 -0
- /package/dist/react/{types → cjs/types}/builder-block.js +0 -0
- /package/dist/react/{types → cjs/types}/builder-content.js +0 -0
- /package/dist/react/{types → cjs/types}/can-track.js +0 -0
- /package/dist/react/{types → cjs/types}/components.js +0 -0
- /package/dist/react/{types → cjs/types}/deep-partial.js +0 -0
- /package/dist/react/{types → cjs/types}/element.js +0 -0
- /package/dist/react/{types → cjs/types}/input.js +0 -0
- /package/dist/react/{types → cjs/types}/targets.js +0 -0
- /package/dist/react/{types → cjs/types}/typescript.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/button/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/columns/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/custom-code/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/embed/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/embed/helpers.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/form/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/fragment/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/image/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/image/image.helpers.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/img/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/input/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/raw-text/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/section/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/select/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/submit-button/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/symbol/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/text/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/textarea/component-info.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/util.js +0 -0
- /package/dist/react/{blocks → esm/blocks}/video/component-info.js +0 -0
- /package/dist/react/{components → esm/components}/render-block/render-block.helpers.js +0 -0
- /package/dist/react/{components → esm/components}/render-content/components/render-styles.helpers.js +0 -0
- /package/dist/react/{components → esm/components}/render-content/index.js +0 -0
- /package/dist/react/{components → esm/components}/render-content/render-content.helpers.js +0 -0
- /package/dist/react/{constants → esm/constants}/builder-registered-components.js +0 -0
- /package/dist/react/{constants → esm/constants}/device-sizes.js +0 -0
- /package/dist/react/{constants → esm/constants}/target.js +0 -0
- /package/dist/react/{context → esm/context}/builder.context.js +0 -0
- /package/dist/react/{functions → esm/functions}/camel-to-kebab-case.js +0 -0
- /package/dist/react/{functions → esm/functions}/evaluate.js +0 -0
- /package/dist/react/{functions → esm/functions}/event-handler-name.js +0 -0
- /package/dist/react/{functions → esm/functions}/extract-text-styles.js +0 -0
- /package/dist/react/{functions → esm/functions}/fast-clone.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-block-actions-handler.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-block-actions.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-block-component-options.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-block-properties.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-builder-search-params/fn.test.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-builder-search-params/index.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-content/ab-testing.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-content/generate-content-url.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-content/generate-content-url.test.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-fetch.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-global-this.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-processed-block.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-processed-block.test.js +0 -0
- /package/dist/react/{functions → esm/functions}/get-react-native-block-styles.js +0 -0
- /package/dist/react/{functions → esm/functions}/if-target.js +0 -0
- /package/dist/react/{functions → esm/functions}/is-browser.js +0 -0
- /package/dist/react/{functions → esm/functions}/is-editing.js +0 -0
- /package/dist/react/{functions → esm/functions}/is-iframe.js +0 -0
- /package/dist/react/{functions → esm/functions}/is-previewing.js +0 -0
- /package/dist/react/{functions → esm/functions}/on-change.js +0 -0
- /package/dist/react/{functions → esm/functions}/on-change.test.js +0 -0
- /package/dist/react/{functions → esm/functions}/register-component.js +0 -0
- /package/dist/react/{functions → esm/functions}/register.js +0 -0
- /package/dist/react/{functions → esm/functions}/sanitize-react-native-block-styles.js +0 -0
- /package/dist/react/{functions → esm/functions}/set-editor-settings.js +0 -0
- /package/dist/react/{functions → esm/functions}/set.js +0 -0
- /package/dist/react/{functions → esm/functions}/set.test.js +0 -0
- /package/dist/react/{functions → esm/functions}/track/helpers.js +0 -0
- /package/dist/react/{functions → esm/functions}/track/index.js +0 -0
- /package/dist/react/{functions → esm/functions}/track/interaction.js +0 -0
- /package/dist/react/{functions → esm/functions}/transform-block-properties.js +0 -0
- /package/dist/react/{functions → esm/functions}/transform-block.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/ab-tests.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/cookie.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/css.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/flatten.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/localStorage.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/logger.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/nullable.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/sessionId.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/time.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/url.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/url.test.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/uuid.js +0 -0
- /package/dist/react/{helpers → esm/helpers}/visitorId.js +0 -0
- /package/dist/react/{index-helpers → esm/index-helpers}/top-of-file.js +0 -0
- /package/dist/react/{index.js → esm/index.js} +0 -0
- /package/dist/react/{scripts → esm/scripts}/init-editing.js +0 -0
- /package/dist/react/{types → esm/types}/api-version.js +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const builder_context_js_1 = require("../context/builder.context.js");
|
|
7
|
+
function BaseText(props) {
|
|
8
|
+
const builderContext = (0, react_1.useContext)(builder_context_js_1.default);
|
|
9
|
+
return React.createElement("span", { style: builderContext.inheritedStyles }, props.text);
|
|
10
|
+
}
|
|
11
|
+
exports.default = BaseText;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const React = require("react");
|
|
5
|
+
function Button(props) {
|
|
6
|
+
return (React.createElement(React.Fragment, null,
|
|
7
|
+
props.link ? (React.createElement(React.Fragment, null,
|
|
8
|
+
React.createElement("a", { role: "button", ...props.attributes, href: props.link, target: props.openLinkInNewTab ? "_blank" : undefined }, props.text))) : (React.createElement("button", { className:
|
|
9
|
+
/** * We have to explicitly provide `class` so that Mitosis knows to merge it with `css`. */
|
|
10
|
+
props.attributes.class + " button-5050ef15", ...props.attributes }, props.text)),
|
|
11
|
+
React.createElement("style", null, `.button-5050ef15 {
|
|
12
|
+
all: unset;
|
|
13
|
+
}`)));
|
|
14
|
+
}
|
|
15
|
+
exports.default = Button;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export namespace componentInfo {
|
|
2
|
+
export const name: string;
|
|
3
|
+
export const image: string;
|
|
4
|
+
export namespace defaultStyles {
|
|
5
|
+
const appearance: string;
|
|
6
|
+
const paddingTop: string;
|
|
7
|
+
const paddingBottom: string;
|
|
8
|
+
const paddingLeft: string;
|
|
9
|
+
const paddingRight: string;
|
|
10
|
+
const backgroundColor: string;
|
|
11
|
+
const color: string;
|
|
12
|
+
const borderRadius: string;
|
|
13
|
+
const textAlign: string;
|
|
14
|
+
const cursor: string;
|
|
15
|
+
}
|
|
16
|
+
export const inputs: ({
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
defaultValue: string;
|
|
20
|
+
bubble: boolean;
|
|
21
|
+
friendlyName?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
bubble: boolean;
|
|
26
|
+
defaultValue?: undefined;
|
|
27
|
+
friendlyName?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
name: string;
|
|
30
|
+
type: string;
|
|
31
|
+
defaultValue: boolean;
|
|
32
|
+
friendlyName: string;
|
|
33
|
+
bubble?: undefined;
|
|
34
|
+
})[];
|
|
35
|
+
const _static: boolean;
|
|
36
|
+
export { _static as static };
|
|
37
|
+
export const noWrap: boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Core:Button",
|
|
6
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
7
|
+
defaultStyles: {
|
|
8
|
+
appearance: "none",
|
|
9
|
+
paddingTop: "15px",
|
|
10
|
+
paddingBottom: "15px",
|
|
11
|
+
paddingLeft: "25px",
|
|
12
|
+
paddingRight: "25px",
|
|
13
|
+
backgroundColor: "#000000",
|
|
14
|
+
color: "white",
|
|
15
|
+
borderRadius: "4px",
|
|
16
|
+
textAlign: "center",
|
|
17
|
+
cursor: "pointer"
|
|
18
|
+
},
|
|
19
|
+
inputs: [
|
|
20
|
+
{
|
|
21
|
+
name: "text",
|
|
22
|
+
type: "text",
|
|
23
|
+
defaultValue: "Click me!",
|
|
24
|
+
bubble: true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "link",
|
|
28
|
+
type: "url",
|
|
29
|
+
bubble: true
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "openLinkInNewTab",
|
|
33
|
+
type: "boolean",
|
|
34
|
+
defaultValue: false,
|
|
35
|
+
friendlyName: "Open link in new tab"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
static: true,
|
|
39
|
+
noWrap: true
|
|
40
|
+
};
|
|
41
|
+
exports.componentInfo = componentInfo;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const render_blocks_1 = require("../../components/render-blocks");
|
|
7
|
+
const device_sizes_1 = require("../../constants/device-sizes");
|
|
8
|
+
const render_inlined_styles_1 = require("../../components/render-inlined-styles");
|
|
9
|
+
const target_js_1 = require("../../constants/target.js");
|
|
10
|
+
const builder_context_js_1 = require("../../context/builder.context.js");
|
|
11
|
+
function Columns(props) {
|
|
12
|
+
const [gutterSize, setGutterSize] = (0, react_1.useState)(() => typeof props.space === "number" ? props.space || 0 : 20);
|
|
13
|
+
const [cols, setCols] = (0, react_1.useState)(() => props.columns || []);
|
|
14
|
+
const [stackAt, setStackAt] = (0, react_1.useState)(() => props.stackColumnsAt || "tablet");
|
|
15
|
+
function getWidth(index) {
|
|
16
|
+
return cols[index]?.width || 100 / cols.length;
|
|
17
|
+
}
|
|
18
|
+
function getColumnCssWidth(index) {
|
|
19
|
+
const subtractWidth = (gutterSize * (cols.length - 1)) / cols.length;
|
|
20
|
+
return `calc(${getWidth(index)}% - ${subtractWidth}px)`;
|
|
21
|
+
}
|
|
22
|
+
function getTabletStyle({ stackedStyle, desktopStyle }) {
|
|
23
|
+
return stackAt === "tablet" ? stackedStyle : desktopStyle;
|
|
24
|
+
}
|
|
25
|
+
function getMobileStyle({ stackedStyle, desktopStyle }) {
|
|
26
|
+
return stackAt === "never" ? desktopStyle : stackedStyle;
|
|
27
|
+
}
|
|
28
|
+
const [flexDir, setFlexDir] = (0, react_1.useState)(() => props.stackColumnsAt === "never"
|
|
29
|
+
? "row"
|
|
30
|
+
: props.reverseColumnsWhenStacked
|
|
31
|
+
? "column-reverse"
|
|
32
|
+
: "column");
|
|
33
|
+
function columnsCssVars() {
|
|
34
|
+
if (target_js_1.TARGET === "reactNative") {
|
|
35
|
+
return {
|
|
36
|
+
flexDirection: flexDir,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
"--flex-dir": flexDir,
|
|
41
|
+
"--flex-dir-tablet": getTabletStyle({
|
|
42
|
+
stackedStyle: flexDir,
|
|
43
|
+
desktopStyle: "row",
|
|
44
|
+
}),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function columnCssVars(index) {
|
|
48
|
+
const gutter = index === 0 ? 0 : gutterSize;
|
|
49
|
+
if (target_js_1.TARGET === "reactNative") {
|
|
50
|
+
return {
|
|
51
|
+
marginLeft: props.stackColumnsAt === "never" ? gutter : 0,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const width = getColumnCssWidth(index);
|
|
55
|
+
const gutterPixels = `${gutterSize}px`;
|
|
56
|
+
const mobileWidth = "100%";
|
|
57
|
+
const mobileMarginLeft = 0;
|
|
58
|
+
return {
|
|
59
|
+
width,
|
|
60
|
+
"margin-left": gutterPixels,
|
|
61
|
+
"--column-width-mobile": getMobileStyle({
|
|
62
|
+
stackedStyle: mobileWidth,
|
|
63
|
+
desktopStyle: width,
|
|
64
|
+
}),
|
|
65
|
+
"--column-margin-left-mobile": getMobileStyle({
|
|
66
|
+
stackedStyle: mobileMarginLeft,
|
|
67
|
+
desktopStyle: gutterPixels,
|
|
68
|
+
}),
|
|
69
|
+
"--column-width-tablet": getTabletStyle({
|
|
70
|
+
stackedStyle: mobileWidth,
|
|
71
|
+
desktopStyle: width,
|
|
72
|
+
}),
|
|
73
|
+
"--column-margin-left-tablet": getTabletStyle({
|
|
74
|
+
stackedStyle: mobileMarginLeft,
|
|
75
|
+
desktopStyle: gutterPixels,
|
|
76
|
+
}),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function getWidthForBreakpointSize(size) {
|
|
80
|
+
const breakpointSizes = (0, device_sizes_1.getSizesForBreakpoints)(builderContext.content?.meta?.breakpoints || {});
|
|
81
|
+
return breakpointSizes[size].max;
|
|
82
|
+
}
|
|
83
|
+
function columnsStyles() {
|
|
84
|
+
return `
|
|
85
|
+
@media (max-width: ${getWidthForBreakpointSize("medium")}px) {
|
|
86
|
+
.${props.builderBlock.id}-breakpoints {
|
|
87
|
+
flex-direction: var(--flex-dir-tablet);
|
|
88
|
+
align-items: stretch;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.${props.builderBlock.id}-breakpoints > .builder-column {
|
|
92
|
+
width: var(--column-width-tablet) !important;
|
|
93
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media (max-width: ${getWidthForBreakpointSize("small")}px) {
|
|
98
|
+
.${props.builderBlock.id}-breakpoints {
|
|
99
|
+
flex-direction: var(--flex-dir);
|
|
100
|
+
align-items: stretch;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.${props.builderBlock.id}-breakpoints > .builder-column {
|
|
104
|
+
width: var(--column-width-mobile) !important;
|
|
105
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
`;
|
|
109
|
+
}
|
|
110
|
+
const builderContext = (0, react_1.useContext)(builder_context_js_1.default);
|
|
111
|
+
return (React.createElement(React.Fragment, null,
|
|
112
|
+
React.createElement("div", { className: `builder-columns ${props.builderBlock.id}-breakpoints` +
|
|
113
|
+
" div-f0aded1c", style: columnsCssVars(), dataSet: {
|
|
114
|
+
"builder-block-name": "builder-columns",
|
|
115
|
+
} },
|
|
116
|
+
target_js_1.TARGET !== "reactNative" ? (React.createElement(React.Fragment, null,
|
|
117
|
+
React.createElement(render_inlined_styles_1.default, { styles: columnsStyles() }))) : null,
|
|
118
|
+
props.columns?.map((column, index) => (React.createElement("div", { className: "builder-column div-f0aded1c-2", style: columnCssVars(index), dataSet: {
|
|
119
|
+
"builder-block-name": "builder-column",
|
|
120
|
+
}, key: index },
|
|
121
|
+
React.createElement(render_blocks_1.default, { blocks: column.blocks, path: `component.options.columns.${index}.blocks`, parent: props.builderBlock.id, styleProp: {
|
|
122
|
+
flexGrow: "1",
|
|
123
|
+
} }))))),
|
|
124
|
+
React.createElement("style", null, `.div-f0aded1c {
|
|
125
|
+
display: flex;
|
|
126
|
+
line-height: normal;
|
|
127
|
+
}.div-f0aded1c-2 {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
align-items: stretch;
|
|
131
|
+
}`)));
|
|
132
|
+
}
|
|
133
|
+
exports.default = Columns;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export namespace componentInfo {
|
|
2
|
+
const name: string;
|
|
3
|
+
const inputs: ({
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
broadcast: boolean;
|
|
7
|
+
subFields: ({
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
hideFromUI: boolean;
|
|
11
|
+
defaultValue: ({
|
|
12
|
+
"@type": string;
|
|
13
|
+
responsiveStyles: {
|
|
14
|
+
large: {
|
|
15
|
+
display: string;
|
|
16
|
+
flexDirection: string;
|
|
17
|
+
alignItems: string;
|
|
18
|
+
flexShrink: string;
|
|
19
|
+
position: string;
|
|
20
|
+
marginTop: string;
|
|
21
|
+
textAlign: string;
|
|
22
|
+
lineHeight: string;
|
|
23
|
+
height: string;
|
|
24
|
+
minHeight: string;
|
|
25
|
+
minWidth: string;
|
|
26
|
+
overflow: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
component: {
|
|
30
|
+
name: string;
|
|
31
|
+
options: {
|
|
32
|
+
image: string;
|
|
33
|
+
backgroundPosition: string;
|
|
34
|
+
backgroundSize: string;
|
|
35
|
+
aspectRatio: number;
|
|
36
|
+
text?: undefined;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
} | {
|
|
40
|
+
"@type": string;
|
|
41
|
+
responsiveStyles: {
|
|
42
|
+
large: {
|
|
43
|
+
display: string;
|
|
44
|
+
flexDirection: string;
|
|
45
|
+
alignItems: string;
|
|
46
|
+
flexShrink: string;
|
|
47
|
+
position: string;
|
|
48
|
+
marginTop: string;
|
|
49
|
+
textAlign: string;
|
|
50
|
+
lineHeight: string;
|
|
51
|
+
height: string;
|
|
52
|
+
minHeight?: undefined;
|
|
53
|
+
minWidth?: undefined;
|
|
54
|
+
overflow?: undefined;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
component: {
|
|
58
|
+
name: string;
|
|
59
|
+
options: {
|
|
60
|
+
text: string;
|
|
61
|
+
image?: undefined;
|
|
62
|
+
backgroundPosition?: undefined;
|
|
63
|
+
backgroundSize?: undefined;
|
|
64
|
+
aspectRatio?: undefined;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
})[];
|
|
68
|
+
helperText?: undefined;
|
|
69
|
+
} | {
|
|
70
|
+
name: string;
|
|
71
|
+
type: string;
|
|
72
|
+
hideFromUI: boolean;
|
|
73
|
+
helperText: string;
|
|
74
|
+
defaultValue?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
name: string;
|
|
77
|
+
type: string;
|
|
78
|
+
helperText: string;
|
|
79
|
+
hideFromUI?: undefined;
|
|
80
|
+
defaultValue?: undefined;
|
|
81
|
+
})[];
|
|
82
|
+
defaultValue: {
|
|
83
|
+
blocks: ({
|
|
84
|
+
"@type": string;
|
|
85
|
+
responsiveStyles: {
|
|
86
|
+
large: {
|
|
87
|
+
display: string;
|
|
88
|
+
flexDirection: string;
|
|
89
|
+
alignItems: string;
|
|
90
|
+
flexShrink: string;
|
|
91
|
+
position: string;
|
|
92
|
+
marginTop: string;
|
|
93
|
+
textAlign: string;
|
|
94
|
+
lineHeight: string;
|
|
95
|
+
height: string;
|
|
96
|
+
minHeight: string;
|
|
97
|
+
minWidth: string;
|
|
98
|
+
overflow: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
component: {
|
|
102
|
+
name: string;
|
|
103
|
+
options: {
|
|
104
|
+
image: string;
|
|
105
|
+
backgroundPosition: string;
|
|
106
|
+
backgroundSize: string;
|
|
107
|
+
aspectRatio: number;
|
|
108
|
+
text?: undefined;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
} | {
|
|
112
|
+
"@type": string;
|
|
113
|
+
responsiveStyles: {
|
|
114
|
+
large: {
|
|
115
|
+
display: string;
|
|
116
|
+
flexDirection: string;
|
|
117
|
+
alignItems: string;
|
|
118
|
+
flexShrink: string;
|
|
119
|
+
position: string;
|
|
120
|
+
marginTop: string;
|
|
121
|
+
textAlign: string;
|
|
122
|
+
lineHeight: string;
|
|
123
|
+
height: string;
|
|
124
|
+
minHeight?: undefined;
|
|
125
|
+
minWidth?: undefined;
|
|
126
|
+
overflow?: undefined;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
component: {
|
|
130
|
+
name: string;
|
|
131
|
+
options: {
|
|
132
|
+
text: string;
|
|
133
|
+
image?: undefined;
|
|
134
|
+
backgroundPosition?: undefined;
|
|
135
|
+
backgroundSize?: undefined;
|
|
136
|
+
aspectRatio?: undefined;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
})[];
|
|
140
|
+
}[];
|
|
141
|
+
onChange: string;
|
|
142
|
+
helperText?: undefined;
|
|
143
|
+
advanced?: undefined;
|
|
144
|
+
enum?: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
name: string;
|
|
147
|
+
type: string;
|
|
148
|
+
defaultValue: number;
|
|
149
|
+
helperText: string;
|
|
150
|
+
advanced: boolean;
|
|
151
|
+
broadcast?: undefined;
|
|
152
|
+
subFields?: undefined;
|
|
153
|
+
onChange?: undefined;
|
|
154
|
+
enum?: undefined;
|
|
155
|
+
} | {
|
|
156
|
+
name: string;
|
|
157
|
+
type: string;
|
|
158
|
+
defaultValue: string;
|
|
159
|
+
helperText: string;
|
|
160
|
+
enum: string[];
|
|
161
|
+
advanced: boolean;
|
|
162
|
+
broadcast?: undefined;
|
|
163
|
+
subFields?: undefined;
|
|
164
|
+
onChange?: undefined;
|
|
165
|
+
} | {
|
|
166
|
+
name: string;
|
|
167
|
+
type: string;
|
|
168
|
+
defaultValue: boolean;
|
|
169
|
+
helperText: string;
|
|
170
|
+
advanced: boolean;
|
|
171
|
+
broadcast?: undefined;
|
|
172
|
+
subFields?: undefined;
|
|
173
|
+
onChange?: undefined;
|
|
174
|
+
enum?: undefined;
|
|
175
|
+
})[];
|
|
176
|
+
}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const util_js_1 = require("../util.js");
|
|
5
|
+
const componentInfo = {
|
|
6
|
+
name: "Columns",
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
name: "columns",
|
|
10
|
+
type: "array",
|
|
11
|
+
broadcast: true,
|
|
12
|
+
subFields: [
|
|
13
|
+
{
|
|
14
|
+
name: "blocks",
|
|
15
|
+
type: "array",
|
|
16
|
+
hideFromUI: true,
|
|
17
|
+
defaultValue: [
|
|
18
|
+
{
|
|
19
|
+
"@type": "@builder.io/sdk:Element",
|
|
20
|
+
responsiveStyles: {
|
|
21
|
+
large: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
alignItems: "stretch",
|
|
25
|
+
flexShrink: "0",
|
|
26
|
+
position: "relative",
|
|
27
|
+
marginTop: "30px",
|
|
28
|
+
textAlign: "center",
|
|
29
|
+
lineHeight: "normal",
|
|
30
|
+
height: "auto",
|
|
31
|
+
minHeight: "20px",
|
|
32
|
+
minWidth: "20px",
|
|
33
|
+
overflow: "hidden"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
component: {
|
|
37
|
+
name: "Image",
|
|
38
|
+
options: {
|
|
39
|
+
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
40
|
+
backgroundPosition: "center",
|
|
41
|
+
backgroundSize: "cover",
|
|
42
|
+
aspectRatio: 0.7004048582995948
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"@type": "@builder.io/sdk:Element",
|
|
48
|
+
responsiveStyles: {
|
|
49
|
+
large: {
|
|
50
|
+
display: "flex",
|
|
51
|
+
flexDirection: "column",
|
|
52
|
+
alignItems: "stretch",
|
|
53
|
+
flexShrink: "0",
|
|
54
|
+
position: "relative",
|
|
55
|
+
marginTop: "30px",
|
|
56
|
+
textAlign: "center",
|
|
57
|
+
lineHeight: "normal",
|
|
58
|
+
height: "auto"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
component: {
|
|
62
|
+
name: "Text",
|
|
63
|
+
options: {
|
|
64
|
+
text: "<p>Enter some text...</p>"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "width",
|
|
72
|
+
type: "number",
|
|
73
|
+
hideFromUI: true,
|
|
74
|
+
helperText: "Width %, e.g. set to 50 to fill half of the space"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "link",
|
|
78
|
+
type: "url",
|
|
79
|
+
helperText: "Optionally set a url that clicking this column will link to"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
defaultValue: [
|
|
83
|
+
{
|
|
84
|
+
blocks: [
|
|
85
|
+
{
|
|
86
|
+
"@type": "@builder.io/sdk:Element",
|
|
87
|
+
responsiveStyles: {
|
|
88
|
+
large: {
|
|
89
|
+
display: "flex",
|
|
90
|
+
flexDirection: "column",
|
|
91
|
+
alignItems: "stretch",
|
|
92
|
+
flexShrink: "0",
|
|
93
|
+
position: "relative",
|
|
94
|
+
marginTop: "30px",
|
|
95
|
+
textAlign: "center",
|
|
96
|
+
lineHeight: "normal",
|
|
97
|
+
height: "auto",
|
|
98
|
+
minHeight: "20px",
|
|
99
|
+
minWidth: "20px",
|
|
100
|
+
overflow: "hidden"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
component: {
|
|
104
|
+
name: "Image",
|
|
105
|
+
options: {
|
|
106
|
+
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
107
|
+
backgroundPosition: "center",
|
|
108
|
+
backgroundSize: "cover",
|
|
109
|
+
aspectRatio: 0.7004048582995948
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"@type": "@builder.io/sdk:Element",
|
|
115
|
+
responsiveStyles: {
|
|
116
|
+
large: {
|
|
117
|
+
display: "flex",
|
|
118
|
+
flexDirection: "column",
|
|
119
|
+
alignItems: "stretch",
|
|
120
|
+
flexShrink: "0",
|
|
121
|
+
position: "relative",
|
|
122
|
+
marginTop: "30px",
|
|
123
|
+
textAlign: "center",
|
|
124
|
+
lineHeight: "normal",
|
|
125
|
+
height: "auto"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
component: {
|
|
129
|
+
name: "Text",
|
|
130
|
+
options: {
|
|
131
|
+
text: "<p>Enter some text...</p>"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
blocks: [
|
|
139
|
+
{
|
|
140
|
+
"@type": "@builder.io/sdk:Element",
|
|
141
|
+
responsiveStyles: {
|
|
142
|
+
large: {
|
|
143
|
+
display: "flex",
|
|
144
|
+
flexDirection: "column",
|
|
145
|
+
alignItems: "stretch",
|
|
146
|
+
flexShrink: "0",
|
|
147
|
+
position: "relative",
|
|
148
|
+
marginTop: "30px",
|
|
149
|
+
textAlign: "center",
|
|
150
|
+
lineHeight: "normal",
|
|
151
|
+
height: "auto",
|
|
152
|
+
minHeight: "20px",
|
|
153
|
+
minWidth: "20px",
|
|
154
|
+
overflow: "hidden"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
component: {
|
|
158
|
+
name: "Image",
|
|
159
|
+
options: {
|
|
160
|
+
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
161
|
+
backgroundPosition: "center",
|
|
162
|
+
backgroundSize: "cover",
|
|
163
|
+
aspectRatio: 0.7004048582995948
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"@type": "@builder.io/sdk:Element",
|
|
169
|
+
responsiveStyles: {
|
|
170
|
+
large: {
|
|
171
|
+
display: "flex",
|
|
172
|
+
flexDirection: "column",
|
|
173
|
+
alignItems: "stretch",
|
|
174
|
+
flexShrink: "0",
|
|
175
|
+
position: "relative",
|
|
176
|
+
marginTop: "30px",
|
|
177
|
+
textAlign: "center",
|
|
178
|
+
lineHeight: "normal",
|
|
179
|
+
height: "auto"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
component: {
|
|
183
|
+
name: "Text",
|
|
184
|
+
options: {
|
|
185
|
+
text: "<p>Enter some text...</p>"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
onChange: (0, util_js_1.serializeFn)((options) => {
|
|
193
|
+
function clearWidths() {
|
|
194
|
+
columns.forEach((col) => {
|
|
195
|
+
col.delete("width");
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
const columns = options.get("columns");
|
|
199
|
+
if (Array.isArray(columns)) {
|
|
200
|
+
const containsColumnWithWidth = !!columns.find((col) => col.get("width"));
|
|
201
|
+
if (containsColumnWithWidth) {
|
|
202
|
+
const containsColumnWithoutWidth = !!columns.find((col) => !col.get("width"));
|
|
203
|
+
if (containsColumnWithoutWidth) {
|
|
204
|
+
clearWidths();
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
const sumWidths = columns.reduce((memo, col) => {
|
|
208
|
+
return memo + col.get("width");
|
|
209
|
+
}, 0);
|
|
210
|
+
const widthsDontAddUp = sumWidths !== 100;
|
|
211
|
+
if (widthsDontAddUp) {
|
|
212
|
+
clearWidths();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
})
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: "space",
|
|
221
|
+
type: "number",
|
|
222
|
+
defaultValue: 20,
|
|
223
|
+
helperText: "Size of gap between columns",
|
|
224
|
+
advanced: true
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: "stackColumnsAt",
|
|
228
|
+
type: "string",
|
|
229
|
+
defaultValue: "tablet",
|
|
230
|
+
helperText: "Convert horizontal columns to vertical at what device size",
|
|
231
|
+
enum: ["tablet", "mobile", "never"],
|
|
232
|
+
advanced: true
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: "reverseColumnsWhenStacked",
|
|
236
|
+
type: "boolean",
|
|
237
|
+
defaultValue: false,
|
|
238
|
+
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
239
|
+
advanced: true
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
};
|
|
243
|
+
exports.componentInfo = componentInfo;
|