@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,151 @@
|
|
|
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: "Image",
|
|
7
|
+
static: true,
|
|
8
|
+
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
9
|
+
defaultStyles: {
|
|
10
|
+
position: "relative",
|
|
11
|
+
minHeight: "20px",
|
|
12
|
+
minWidth: "20px",
|
|
13
|
+
overflow: "hidden"
|
|
14
|
+
},
|
|
15
|
+
canHaveChildren: true,
|
|
16
|
+
inputs: [
|
|
17
|
+
{
|
|
18
|
+
name: "image",
|
|
19
|
+
type: "file",
|
|
20
|
+
bubble: true,
|
|
21
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
22
|
+
required: true,
|
|
23
|
+
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
24
|
+
onChange: (0, util_js_1.serializeFn)((options) => {
|
|
25
|
+
const DEFAULT_ASPECT_RATIO = 0.7041;
|
|
26
|
+
options.delete("srcset");
|
|
27
|
+
options.delete("noWebp");
|
|
28
|
+
function loadImage(url, timeout = 6e4) {
|
|
29
|
+
return new Promise((resolve, reject) => {
|
|
30
|
+
const img = document.createElement("img");
|
|
31
|
+
let loaded = false;
|
|
32
|
+
img.onload = () => {
|
|
33
|
+
loaded = true;
|
|
34
|
+
resolve(img);
|
|
35
|
+
};
|
|
36
|
+
img.addEventListener("error", (event) => {
|
|
37
|
+
console.warn("Image load failed", event.error);
|
|
38
|
+
reject(event.error);
|
|
39
|
+
});
|
|
40
|
+
img.src = url;
|
|
41
|
+
setTimeout(() => {
|
|
42
|
+
if (!loaded) {
|
|
43
|
+
reject(new Error("Image load timed out"));
|
|
44
|
+
}
|
|
45
|
+
}, timeout);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function round(num) {
|
|
49
|
+
return Math.round(num * 1e3) / 1e3;
|
|
50
|
+
}
|
|
51
|
+
const value = options.get("image");
|
|
52
|
+
const aspectRatio = options.get("aspectRatio");
|
|
53
|
+
fetch(value).then((res) => res.blob()).then((blob) => {
|
|
54
|
+
if (blob.type.includes("svg")) {
|
|
55
|
+
options.set("noWebp", true);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
if (value && (!aspectRatio || aspectRatio === DEFAULT_ASPECT_RATIO)) {
|
|
59
|
+
return loadImage(value).then((img) => {
|
|
60
|
+
const possiblyUpdatedAspectRatio = options.get("aspectRatio");
|
|
61
|
+
if (options.get("image") === value && (!possiblyUpdatedAspectRatio || possiblyUpdatedAspectRatio === DEFAULT_ASPECT_RATIO)) {
|
|
62
|
+
if (img.width && img.height) {
|
|
63
|
+
options.set("aspectRatio", round(img.height / img.width));
|
|
64
|
+
options.set("height", img.height);
|
|
65
|
+
options.set("width", img.width);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "backgroundSize",
|
|
74
|
+
type: "text",
|
|
75
|
+
defaultValue: "cover",
|
|
76
|
+
enum: [
|
|
77
|
+
{
|
|
78
|
+
label: "contain",
|
|
79
|
+
value: "contain",
|
|
80
|
+
helperText: "The image should never get cropped"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: "cover",
|
|
84
|
+
value: "cover",
|
|
85
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "backgroundPosition",
|
|
91
|
+
type: "text",
|
|
92
|
+
defaultValue: "center",
|
|
93
|
+
enum: [
|
|
94
|
+
"center",
|
|
95
|
+
"top",
|
|
96
|
+
"left",
|
|
97
|
+
"right",
|
|
98
|
+
"bottom",
|
|
99
|
+
"top left",
|
|
100
|
+
"top right",
|
|
101
|
+
"bottom left",
|
|
102
|
+
"bottom right"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "altText",
|
|
107
|
+
type: "string",
|
|
108
|
+
helperText: "Text to display when the user has images off"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "height",
|
|
112
|
+
type: "number",
|
|
113
|
+
hideFromUI: true
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "width",
|
|
117
|
+
type: "number",
|
|
118
|
+
hideFromUI: true
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "sizes",
|
|
122
|
+
type: "string",
|
|
123
|
+
hideFromUI: true
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "srcset",
|
|
127
|
+
type: "string",
|
|
128
|
+
hideFromUI: true
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: "lazy",
|
|
132
|
+
type: "boolean",
|
|
133
|
+
defaultValue: true,
|
|
134
|
+
hideFromUI: true
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "fitContent",
|
|
138
|
+
type: "boolean",
|
|
139
|
+
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
140
|
+
defaultValue: true
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "aspectRatio",
|
|
144
|
+
type: "number",
|
|
145
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
146
|
+
advanced: true,
|
|
147
|
+
defaultValue: 0.7041
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
};
|
|
151
|
+
exports.componentInfo = componentInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getSrcSet(url: any): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSrcSet = void 0;
|
|
4
|
+
function removeProtocol(path) {
|
|
5
|
+
return path.replace(/http(s)?:/, "");
|
|
6
|
+
}
|
|
7
|
+
function updateQueryParam(uri = "", key, value) {
|
|
8
|
+
const re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
|
|
9
|
+
const separator = uri.indexOf("?") !== -1 ? "&" : "?";
|
|
10
|
+
if (uri.match(re)) {
|
|
11
|
+
return uri.replace(re, "$1" + key + "=" + encodeURIComponent(value) + "$2");
|
|
12
|
+
}
|
|
13
|
+
return uri + separator + key + "=" + encodeURIComponent(value);
|
|
14
|
+
}
|
|
15
|
+
function getShopifyImageUrl(src, size) {
|
|
16
|
+
if (!src || !(src == null ? void 0 : src.match(/cdn\.shopify\.com/)) || !size) {
|
|
17
|
+
return src;
|
|
18
|
+
}
|
|
19
|
+
if (size === "master") {
|
|
20
|
+
return removeProtocol(src);
|
|
21
|
+
}
|
|
22
|
+
const match = src.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
23
|
+
if (match) {
|
|
24
|
+
const prefix = src.split(match[0]);
|
|
25
|
+
const suffix = match[3];
|
|
26
|
+
const useSize = size.match("x") ? size : `${size}x`;
|
|
27
|
+
return removeProtocol(`${prefix[0]}_${useSize}${suffix}`);
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
function getSrcSet(url) {
|
|
32
|
+
if (!url) {
|
|
33
|
+
return url;
|
|
34
|
+
}
|
|
35
|
+
const sizes = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
36
|
+
if (url.match(/builder\.io/)) {
|
|
37
|
+
let srcUrl = url;
|
|
38
|
+
const widthInSrc = Number(url.split("?width=")[1]);
|
|
39
|
+
if (!isNaN(widthInSrc)) {
|
|
40
|
+
srcUrl = `${srcUrl} ${widthInSrc}w`;
|
|
41
|
+
}
|
|
42
|
+
return sizes.filter((size) => size !== widthInSrc).map((size) => `${updateQueryParam(url, "width", size)} ${size}w`).concat([srcUrl]).join(", ");
|
|
43
|
+
}
|
|
44
|
+
if (url.match(/cdn\.shopify\.com/)) {
|
|
45
|
+
return sizes.map((size) => [getShopifyImageUrl(url, `${size}x${size}`), size]).filter(([sizeUrl]) => !!sizeUrl).map(([sizeUrl, size]) => `${sizeUrl} ${size}w`).concat([url]).join(", ");
|
|
46
|
+
}
|
|
47
|
+
return url;
|
|
48
|
+
}
|
|
49
|
+
exports.getSrcSet = getSrcSet;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const image_helpers_js_1 = require("./image.helpers.js");
|
|
6
|
+
function Image(props) {
|
|
7
|
+
function srcSetToUse() {
|
|
8
|
+
const imageToUse = props.image || props.src;
|
|
9
|
+
const url = imageToUse;
|
|
10
|
+
if (!url ||
|
|
11
|
+
// We can auto add srcset for cdn.builder.io and shopify
|
|
12
|
+
// images, otherwise you can supply this prop manually
|
|
13
|
+
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/))) {
|
|
14
|
+
return props.srcset;
|
|
15
|
+
}
|
|
16
|
+
if (props.srcset && props.image?.includes("builder.io/api/v1/image")) {
|
|
17
|
+
if (!props.srcset.includes(props.image.split("?")[0])) {
|
|
18
|
+
console.debug("Removed given srcset");
|
|
19
|
+
return (0, image_helpers_js_1.getSrcSet)(url);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
else if (props.image && !props.srcset) {
|
|
23
|
+
return (0, image_helpers_js_1.getSrcSet)(url);
|
|
24
|
+
}
|
|
25
|
+
return (0, image_helpers_js_1.getSrcSet)(url);
|
|
26
|
+
}
|
|
27
|
+
function webpSrcSet() {
|
|
28
|
+
if (srcSetToUse?.()?.match(/builder\.io/) && !props.noWebp) {
|
|
29
|
+
return srcSetToUse().replace(/\?/g, "?format=webp&");
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return "";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function aspectRatioCss() {
|
|
36
|
+
const aspectRatioStyles = {
|
|
37
|
+
position: "absolute",
|
|
38
|
+
height: "100%",
|
|
39
|
+
width: "100%",
|
|
40
|
+
left: "0px",
|
|
41
|
+
top: "0px",
|
|
42
|
+
};
|
|
43
|
+
const out = props.aspectRatio ? aspectRatioStyles : undefined;
|
|
44
|
+
return out;
|
|
45
|
+
}
|
|
46
|
+
return (React.createElement(React.Fragment, null,
|
|
47
|
+
React.createElement(React.Fragment, null,
|
|
48
|
+
React.createElement("picture", null,
|
|
49
|
+
webpSrcSet() ? (React.createElement(React.Fragment, null,
|
|
50
|
+
React.createElement("source", { type: "image/webp", srcSet: webpSrcSet() }))) : null,
|
|
51
|
+
React.createElement("img", { loading: "lazy", alt: props.altText, role: props.altText ? "presentation" : undefined, style: {
|
|
52
|
+
objectPosition: props.backgroundPosition || "center",
|
|
53
|
+
objectFit: props.backgroundSize || "cover",
|
|
54
|
+
...aspectRatioCss(),
|
|
55
|
+
}, className: "builder-image" +
|
|
56
|
+
(props.className ? " " + props.className : "") +
|
|
57
|
+
" img-23384452", src: props.image, srcSet: srcSetToUse(), sizes: props.sizes })),
|
|
58
|
+
props.aspectRatio &&
|
|
59
|
+
!(props.builderBlock?.children?.length && props.fitContent) ? (React.createElement(React.Fragment, null,
|
|
60
|
+
React.createElement("div", { className: "builder-image-sizer div-23384452", style: {
|
|
61
|
+
paddingTop: props.aspectRatio * 100 + "%",
|
|
62
|
+
} }))) : null,
|
|
63
|
+
props.builderBlock?.children?.length && props.fitContent ? (React.createElement(React.Fragment, null, props.children)) : null,
|
|
64
|
+
!props.fitContent && props.children ? (React.createElement(React.Fragment, null,
|
|
65
|
+
React.createElement("div", { className: "div-23384452-2" }, props.children))) : null),
|
|
66
|
+
React.createElement("style", null, `.img-23384452 {
|
|
67
|
+
opacity: 1;
|
|
68
|
+
transition: opacity 0.2s ease-in-out;
|
|
69
|
+
}.div-23384452 {
|
|
70
|
+
width: 100%;
|
|
71
|
+
pointer-events: none;
|
|
72
|
+
font-size: 0;
|
|
73
|
+
}.div-23384452-2 {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
align-items: stretch;
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
}`)));
|
|
83
|
+
}
|
|
84
|
+
exports.default = Image;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export namespace componentInfo {
|
|
2
|
+
export const name: string;
|
|
3
|
+
export const hideFromInsertMenu: boolean;
|
|
4
|
+
export const image: string;
|
|
5
|
+
export const inputs: {
|
|
6
|
+
name: string;
|
|
7
|
+
bubble: boolean;
|
|
8
|
+
type: string;
|
|
9
|
+
allowedFileTypes: string[];
|
|
10
|
+
required: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
export const noWrap: boolean;
|
|
13
|
+
const _static: boolean;
|
|
14
|
+
export { _static as static };
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Raw:Img",
|
|
6
|
+
hideFromInsertMenu: true,
|
|
7
|
+
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
name: "image",
|
|
11
|
+
bubble: true,
|
|
12
|
+
type: "file",
|
|
13
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
14
|
+
required: true
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
noWrap: true,
|
|
18
|
+
static: true
|
|
19
|
+
};
|
|
20
|
+
exports.componentInfo = componentInfo;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const is_editing_js_1 = require("../../functions/is-editing.js");
|
|
6
|
+
function ImgComponent(props) {
|
|
7
|
+
return (React.createElement("img", { style: {
|
|
8
|
+
objectFit: props.backgroundSize || "cover",
|
|
9
|
+
objectPosition: props.backgroundPosition || "center",
|
|
10
|
+
}, key: ((0, is_editing_js_1.isEditing)() && props.imgSrc) || "default-key", alt: props.altText, src: props.imgSrc || props.image, ...props.attributes }));
|
|
11
|
+
}
|
|
12
|
+
exports.default = ImgComponent;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export namespace componentInfo {
|
|
2
|
+
export const name: string;
|
|
3
|
+
export const image: string;
|
|
4
|
+
export const inputs: ({
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
enum: string[];
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
required?: undefined;
|
|
10
|
+
helperText?: undefined;
|
|
11
|
+
advanced?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
helperText: string;
|
|
17
|
+
enum?: undefined;
|
|
18
|
+
defaultValue?: undefined;
|
|
19
|
+
advanced?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
type: string;
|
|
23
|
+
defaultValue: string;
|
|
24
|
+
helperText: string;
|
|
25
|
+
enum?: undefined;
|
|
26
|
+
required?: undefined;
|
|
27
|
+
advanced?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
name: string;
|
|
30
|
+
type: string;
|
|
31
|
+
enum?: undefined;
|
|
32
|
+
defaultValue?: undefined;
|
|
33
|
+
required?: undefined;
|
|
34
|
+
helperText?: undefined;
|
|
35
|
+
advanced?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
name: string;
|
|
38
|
+
type: string;
|
|
39
|
+
advanced: boolean;
|
|
40
|
+
enum?: undefined;
|
|
41
|
+
defaultValue?: undefined;
|
|
42
|
+
required?: undefined;
|
|
43
|
+
helperText?: undefined;
|
|
44
|
+
} | {
|
|
45
|
+
name: string;
|
|
46
|
+
type: string;
|
|
47
|
+
helperText: string;
|
|
48
|
+
defaultValue: boolean;
|
|
49
|
+
enum?: undefined;
|
|
50
|
+
required?: undefined;
|
|
51
|
+
advanced?: undefined;
|
|
52
|
+
})[];
|
|
53
|
+
export const noWrap: boolean;
|
|
54
|
+
const _static: boolean;
|
|
55
|
+
export { _static as static };
|
|
56
|
+
export namespace defaultStyles {
|
|
57
|
+
const paddingTop: string;
|
|
58
|
+
const paddingBottom: string;
|
|
59
|
+
const paddingLeft: string;
|
|
60
|
+
const paddingRight: string;
|
|
61
|
+
const borderRadius: string;
|
|
62
|
+
const borderWidth: string;
|
|
63
|
+
const borderStyle: string;
|
|
64
|
+
const borderColor: string;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Form:Input",
|
|
6
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
name: "type",
|
|
10
|
+
type: "text",
|
|
11
|
+
enum: [
|
|
12
|
+
"text",
|
|
13
|
+
"number",
|
|
14
|
+
"email",
|
|
15
|
+
"url",
|
|
16
|
+
"checkbox",
|
|
17
|
+
"radio",
|
|
18
|
+
"range",
|
|
19
|
+
"date",
|
|
20
|
+
"datetime-local",
|
|
21
|
+
"search",
|
|
22
|
+
"tel",
|
|
23
|
+
"time",
|
|
24
|
+
"file",
|
|
25
|
+
"month",
|
|
26
|
+
"week",
|
|
27
|
+
"password",
|
|
28
|
+
"color",
|
|
29
|
+
"hidden"
|
|
30
|
+
],
|
|
31
|
+
defaultValue: "text"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "name",
|
|
35
|
+
type: "string",
|
|
36
|
+
required: true,
|
|
37
|
+
helperText: 'Every input in a form needs a unique name describing what it takes, e.g. "email"'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "placeholder",
|
|
41
|
+
type: "string",
|
|
42
|
+
defaultValue: "Hello there",
|
|
43
|
+
helperText: "Text to display when there is no value"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "defaultValue",
|
|
47
|
+
type: "string"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "value",
|
|
51
|
+
type: "string",
|
|
52
|
+
advanced: true
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "required",
|
|
56
|
+
type: "boolean",
|
|
57
|
+
helperText: "Is this input required to be filled out to submit a form",
|
|
58
|
+
defaultValue: false
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
noWrap: true,
|
|
62
|
+
static: true,
|
|
63
|
+
defaultStyles: {
|
|
64
|
+
paddingTop: "10px",
|
|
65
|
+
paddingBottom: "10px",
|
|
66
|
+
paddingLeft: "10px",
|
|
67
|
+
paddingRight: "10px",
|
|
68
|
+
borderRadius: "3px",
|
|
69
|
+
borderWidth: "1px",
|
|
70
|
+
borderStyle: "solid",
|
|
71
|
+
borderColor: "#ccc"
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
exports.componentInfo = componentInfo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const is_editing_js_1 = require("../../functions/is-editing.js");
|
|
6
|
+
function FormInputComponent(props) {
|
|
7
|
+
return (React.createElement("input", { ...props.attributes, key: (0, is_editing_js_1.isEditing)() && props.defaultValue ? props.defaultValue : "default-key", placeholder: props.placeholder, type: props.type, name: props.name, value: props.value, defaultValue: props.defaultValue, required: props.required }));
|
|
8
|
+
}
|
|
9
|
+
exports.default = FormInputComponent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Builder:RawText",
|
|
6
|
+
hideFromInsertMenu: true,
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
name: "text",
|
|
10
|
+
bubble: true,
|
|
11
|
+
type: "longText",
|
|
12
|
+
required: true
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
};
|
|
16
|
+
exports.componentInfo = componentInfo;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const React = require("react");
|
|
5
|
+
function RawText(props) {
|
|
6
|
+
return (React.createElement("span", { className: props.attributes?.class || props.attributes?.className, dangerouslySetInnerHTML: { __html: props.text || "" } }));
|
|
7
|
+
}
|
|
8
|
+
exports.default = RawText;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export namespace componentInfo {
|
|
2
|
+
export const name: string;
|
|
3
|
+
const _static: boolean;
|
|
4
|
+
export { _static as static };
|
|
5
|
+
export const image: string;
|
|
6
|
+
export const inputs: ({
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
defaultValue: number;
|
|
10
|
+
advanced?: undefined;
|
|
11
|
+
description?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
defaultValue: boolean;
|
|
16
|
+
advanced: boolean;
|
|
17
|
+
description: string;
|
|
18
|
+
})[];
|
|
19
|
+
export namespace defaultStyles {
|
|
20
|
+
const paddingLeft: string;
|
|
21
|
+
const paddingRight: string;
|
|
22
|
+
const paddingTop: string;
|
|
23
|
+
const paddingBottom: string;
|
|
24
|
+
const marginTop: string;
|
|
25
|
+
const width: string;
|
|
26
|
+
const marginLeft: string;
|
|
27
|
+
}
|
|
28
|
+
export const canHaveChildren: boolean;
|
|
29
|
+
export const defaultChildren: {
|
|
30
|
+
"@type": string;
|
|
31
|
+
responsiveStyles: {
|
|
32
|
+
large: {
|
|
33
|
+
textAlign: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
component: {
|
|
37
|
+
name: string;
|
|
38
|
+
options: {
|
|
39
|
+
text: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Core:Section",
|
|
6
|
+
static: true,
|
|
7
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
name: "maxWidth",
|
|
11
|
+
type: "number",
|
|
12
|
+
defaultValue: 1200
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "lazyLoad",
|
|
16
|
+
type: "boolean",
|
|
17
|
+
defaultValue: false,
|
|
18
|
+
advanced: true,
|
|
19
|
+
description: "Only render this section when in view"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
defaultStyles: {
|
|
23
|
+
paddingLeft: "20px",
|
|
24
|
+
paddingRight: "20px",
|
|
25
|
+
paddingTop: "50px",
|
|
26
|
+
paddingBottom: "50px",
|
|
27
|
+
marginTop: "0px",
|
|
28
|
+
width: "100vw",
|
|
29
|
+
marginLeft: "calc(50% - 50vw)"
|
|
30
|
+
},
|
|
31
|
+
canHaveChildren: true,
|
|
32
|
+
defaultChildren: [
|
|
33
|
+
{
|
|
34
|
+
"@type": "@builder.io/sdk:Element",
|
|
35
|
+
responsiveStyles: {
|
|
36
|
+
large: {
|
|
37
|
+
textAlign: "center"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
component: {
|
|
41
|
+
name: "Text",
|
|
42
|
+
options: {
|
|
43
|
+
text: "<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
};
|
|
49
|
+
exports.componentInfo = componentInfo;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const React = require("react");
|
|
5
|
+
function SectionComponent(props) {
|
|
6
|
+
return (React.createElement("section", { ...props.attributes, style: {
|
|
7
|
+
width: "100%",
|
|
8
|
+
alignSelf: "stretch",
|
|
9
|
+
flexGrow: 1,
|
|
10
|
+
boxSizing: "border-box",
|
|
11
|
+
maxWidth: props.maxWidth || 1200,
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
alignItems: "stretch",
|
|
15
|
+
marginLeft: "auto",
|
|
16
|
+
marginRight: "auto",
|
|
17
|
+
} }, props.children));
|
|
18
|
+
}
|
|
19
|
+
exports.default = SectionComponent;
|