@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,61 @@
|
|
|
1
|
+
export namespace componentInfo {
|
|
2
|
+
export const name: string;
|
|
3
|
+
export const image: string;
|
|
4
|
+
export namespace defaultStyles {
|
|
5
|
+
const alignSelf: string;
|
|
6
|
+
}
|
|
7
|
+
export const inputs: ({
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
required: boolean;
|
|
11
|
+
subFields: ({
|
|
12
|
+
name: string;
|
|
13
|
+
type: string;
|
|
14
|
+
required: boolean;
|
|
15
|
+
} | {
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
required?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
defaultValue: {
|
|
21
|
+
value: string;
|
|
22
|
+
}[];
|
|
23
|
+
helperText?: undefined;
|
|
24
|
+
advanced?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
required: boolean;
|
|
29
|
+
helperText: string;
|
|
30
|
+
subFields?: undefined;
|
|
31
|
+
defaultValue?: undefined;
|
|
32
|
+
advanced?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
name: string;
|
|
35
|
+
type: string;
|
|
36
|
+
required?: undefined;
|
|
37
|
+
subFields?: undefined;
|
|
38
|
+
defaultValue?: undefined;
|
|
39
|
+
helperText?: undefined;
|
|
40
|
+
advanced?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
name: string;
|
|
43
|
+
type: string;
|
|
44
|
+
advanced: boolean;
|
|
45
|
+
required?: undefined;
|
|
46
|
+
subFields?: undefined;
|
|
47
|
+
defaultValue?: undefined;
|
|
48
|
+
helperText?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
name: string;
|
|
51
|
+
type: string;
|
|
52
|
+
defaultValue: boolean;
|
|
53
|
+
required?: undefined;
|
|
54
|
+
subFields?: undefined;
|
|
55
|
+
helperText?: undefined;
|
|
56
|
+
advanced?: undefined;
|
|
57
|
+
})[];
|
|
58
|
+
const _static: boolean;
|
|
59
|
+
export { _static as static };
|
|
60
|
+
export const noWrap: boolean;
|
|
61
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Form:Select",
|
|
6
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
7
|
+
defaultStyles: {
|
|
8
|
+
alignSelf: "flex-start"
|
|
9
|
+
},
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
name: "options",
|
|
13
|
+
type: "list",
|
|
14
|
+
required: true,
|
|
15
|
+
subFields: [
|
|
16
|
+
{
|
|
17
|
+
name: "value",
|
|
18
|
+
type: "text",
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "name",
|
|
23
|
+
type: "text"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
defaultValue: [
|
|
27
|
+
{
|
|
28
|
+
value: "option 1"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
value: "option 2"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "name",
|
|
37
|
+
type: "string",
|
|
38
|
+
required: true,
|
|
39
|
+
helperText: 'Every select in a form needs a unique name describing what it gets, e.g. "email"'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "defaultValue",
|
|
43
|
+
type: "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "value",
|
|
47
|
+
type: "string",
|
|
48
|
+
advanced: true
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "required",
|
|
52
|
+
type: "boolean",
|
|
53
|
+
defaultValue: false
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
static: true,
|
|
57
|
+
noWrap: true
|
|
58
|
+
};
|
|
59
|
+
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 SelectComponent(props) {
|
|
7
|
+
return (React.createElement("select", { ...props.attributes, value: props.value, key: (0, is_editing_js_1.isEditing)() && props.defaultValue ? props.defaultValue : "default-key", defaultValue: props.defaultValue, name: props.name }, props.options?.map((option) => (React.createElement("option", { value: option.value }, option.name || option.value)))));
|
|
8
|
+
}
|
|
9
|
+
exports.default = SelectComponent;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 cursor: string;
|
|
14
|
+
}
|
|
15
|
+
export const inputs: {
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
}[];
|
|
20
|
+
const _static: boolean;
|
|
21
|
+
export { _static as static };
|
|
22
|
+
export const noWrap: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Form:SubmitButton",
|
|
6
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
7
|
+
defaultStyles: {
|
|
8
|
+
appearance: "none",
|
|
9
|
+
paddingTop: "15px",
|
|
10
|
+
paddingBottom: "15px",
|
|
11
|
+
paddingLeft: "25px",
|
|
12
|
+
paddingRight: "25px",
|
|
13
|
+
backgroundColor: "#3898EC",
|
|
14
|
+
color: "white",
|
|
15
|
+
borderRadius: "4px",
|
|
16
|
+
cursor: "pointer"
|
|
17
|
+
},
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
name: "text",
|
|
21
|
+
type: "text",
|
|
22
|
+
defaultValue: "Click me"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
static: true,
|
|
26
|
+
noWrap: true
|
|
27
|
+
};
|
|
28
|
+
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 SubmitButton(props) {
|
|
6
|
+
return (React.createElement("button", { type: "submit", ...props.attributes }, props.text));
|
|
7
|
+
}
|
|
8
|
+
exports.default = SubmitButton;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export namespace componentInfo {
|
|
2
|
+
export const name: string;
|
|
3
|
+
export const noWrap: boolean;
|
|
4
|
+
const _static: boolean;
|
|
5
|
+
export { _static as static };
|
|
6
|
+
export const inputs: ({
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
helperText?: undefined;
|
|
10
|
+
defaultValue?: undefined;
|
|
11
|
+
advanced?: undefined;
|
|
12
|
+
hideFromUI?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
name: string;
|
|
15
|
+
helperText: string;
|
|
16
|
+
type: string;
|
|
17
|
+
defaultValue: boolean;
|
|
18
|
+
advanced: boolean;
|
|
19
|
+
hideFromUI: boolean;
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
helperText: string;
|
|
23
|
+
type: string;
|
|
24
|
+
defaultValue: boolean;
|
|
25
|
+
advanced: boolean;
|
|
26
|
+
hideFromUI?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
name: string;
|
|
29
|
+
hideFromUI: boolean;
|
|
30
|
+
type: string;
|
|
31
|
+
helperText?: undefined;
|
|
32
|
+
defaultValue?: undefined;
|
|
33
|
+
advanced?: undefined;
|
|
34
|
+
})[];
|
|
35
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Symbol",
|
|
6
|
+
noWrap: true,
|
|
7
|
+
static: true,
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
name: "symbol",
|
|
11
|
+
type: "uiSymbol"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "dataOnly",
|
|
15
|
+
helperText: "Make this a data symbol that doesn't display any UI",
|
|
16
|
+
type: "boolean",
|
|
17
|
+
defaultValue: false,
|
|
18
|
+
advanced: true,
|
|
19
|
+
hideFromUI: true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "inheritState",
|
|
23
|
+
helperText: "Inherit the parent component state and data",
|
|
24
|
+
type: "boolean",
|
|
25
|
+
defaultValue: false,
|
|
26
|
+
advanced: true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "renderToLiquid",
|
|
30
|
+
helperText: "Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",
|
|
31
|
+
type: "boolean",
|
|
32
|
+
defaultValue: false,
|
|
33
|
+
advanced: true,
|
|
34
|
+
hideFromUI: true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "useChildren",
|
|
38
|
+
hideFromUI: true,
|
|
39
|
+
type: "boolean"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
exports.componentInfo = componentInfo;
|
|
@@ -0,0 +1,73 @@
|
|
|
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_content_1 = require("../../components/render-content/render-content");
|
|
7
|
+
const builder_context_js_1 = require("../../context/builder.context.js");
|
|
8
|
+
const index_js_1 = require("../../functions/get-content/index.js");
|
|
9
|
+
const target_1 = require("../../constants/target");
|
|
10
|
+
const logger_1 = require("../../helpers/logger");
|
|
11
|
+
function Symbol(props) {
|
|
12
|
+
const [className, setClassName] = (0, react_1.useState)(() => [
|
|
13
|
+
...(target_1.TARGET === "vue2" || target_1.TARGET === "vue3"
|
|
14
|
+
? Object.keys(props.attributes.class)
|
|
15
|
+
: [props.attributes.class]),
|
|
16
|
+
"builder-symbol",
|
|
17
|
+
props.symbol?.inline ? "builder-inline-symbol" : undefined,
|
|
18
|
+
props.symbol?.dynamic || props.dynamic
|
|
19
|
+
? "builder-dynamic-symbol"
|
|
20
|
+
: undefined,
|
|
21
|
+
]
|
|
22
|
+
.filter(Boolean)
|
|
23
|
+
.join(" "));
|
|
24
|
+
const [contentToUse, setContentToUse] = (0, react_1.useState)(() => props.symbol?.content);
|
|
25
|
+
function fetchContent() {
|
|
26
|
+
/**
|
|
27
|
+
* If:
|
|
28
|
+
* - we have a symbol prop
|
|
29
|
+
* - yet it does not have any content
|
|
30
|
+
* - and we have not already stored content from before
|
|
31
|
+
* - and it has a model name
|
|
32
|
+
*
|
|
33
|
+
* then we want to re-fetch the symbol content.
|
|
34
|
+
*/
|
|
35
|
+
if (!contentToUse &&
|
|
36
|
+
props.symbol?.model &&
|
|
37
|
+
// This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
38
|
+
builderContext?.apiKey) {
|
|
39
|
+
(0, index_js_1.getContent)({
|
|
40
|
+
model: props.symbol.model,
|
|
41
|
+
apiKey: builderContext.apiKey,
|
|
42
|
+
apiVersion: builderContext.apiVersion,
|
|
43
|
+
query: {
|
|
44
|
+
id: props.symbol.entry,
|
|
45
|
+
},
|
|
46
|
+
})
|
|
47
|
+
.then((response) => {
|
|
48
|
+
if (response) {
|
|
49
|
+
setContentToUse(response);
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
.catch((err) => {
|
|
53
|
+
logger_1.logger.error("Could not fetch symbol content: ", err);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const builderContext = (0, react_1.useContext)(builder_context_js_1.default);
|
|
58
|
+
(0, react_1.useEffect)(() => {
|
|
59
|
+
fetchContent();
|
|
60
|
+
}, []);
|
|
61
|
+
(0, react_1.useEffect)(() => {
|
|
62
|
+
fetchContent();
|
|
63
|
+
}, [props.symbol]);
|
|
64
|
+
return (React.createElement("div", { ...props.attributes, dataSet: {
|
|
65
|
+
class: className,
|
|
66
|
+
}, className: className },
|
|
67
|
+
React.createElement(render_content_1.default, { apiVersion: builderContext.apiVersion, apiKey: builderContext.apiKey, context: builderContext.context, customComponents: Object.values(builderContext.registeredComponents), data: {
|
|
68
|
+
...props.symbol?.data,
|
|
69
|
+
...builderContext.state,
|
|
70
|
+
...contentToUse?.data?.state,
|
|
71
|
+
}, model: props.symbol?.model, content: contentToUse })));
|
|
72
|
+
}
|
|
73
|
+
exports.default = Symbol;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
required: boolean;
|
|
10
|
+
autoFocus: boolean;
|
|
11
|
+
bubble: boolean;
|
|
12
|
+
defaultValue: string;
|
|
13
|
+
}[];
|
|
14
|
+
export namespace defaultStyles {
|
|
15
|
+
const lineHeight: string;
|
|
16
|
+
const height: string;
|
|
17
|
+
const textAlign: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Text",
|
|
6
|
+
static: true,
|
|
7
|
+
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
name: "text",
|
|
11
|
+
type: "html",
|
|
12
|
+
required: true,
|
|
13
|
+
autoFocus: true,
|
|
14
|
+
bubble: true,
|
|
15
|
+
defaultValue: "Enter some text..."
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
defaultStyles: {
|
|
19
|
+
lineHeight: "normal",
|
|
20
|
+
height: "auto",
|
|
21
|
+
textAlign: "center"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.componentInfo = componentInfo;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const React = require("react");
|
|
5
|
+
function Text(props) {
|
|
6
|
+
return (React.createElement("span", { className: "builder-text", dangerouslySetInnerHTML: { __html: props.text }, style: {
|
|
7
|
+
outline: "none",
|
|
8
|
+
} }));
|
|
9
|
+
}
|
|
10
|
+
exports.default = Text;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export namespace componentInfo {
|
|
2
|
+
export const name: string;
|
|
3
|
+
export const image: string;
|
|
4
|
+
export const inputs: ({
|
|
5
|
+
advanced: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
required?: undefined;
|
|
9
|
+
helperText?: undefined;
|
|
10
|
+
defaultValue?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
name: string;
|
|
13
|
+
type: string;
|
|
14
|
+
required: boolean;
|
|
15
|
+
helperText: string;
|
|
16
|
+
advanced?: undefined;
|
|
17
|
+
defaultValue?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
type: string;
|
|
21
|
+
advanced?: undefined;
|
|
22
|
+
required?: undefined;
|
|
23
|
+
helperText?: undefined;
|
|
24
|
+
defaultValue?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
defaultValue: string;
|
|
29
|
+
advanced?: undefined;
|
|
30
|
+
required?: undefined;
|
|
31
|
+
helperText?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
name: string;
|
|
34
|
+
type: string;
|
|
35
|
+
defaultValue: boolean;
|
|
36
|
+
advanced?: undefined;
|
|
37
|
+
required?: undefined;
|
|
38
|
+
helperText?: undefined;
|
|
39
|
+
})[];
|
|
40
|
+
export namespace defaultStyles {
|
|
41
|
+
const paddingTop: string;
|
|
42
|
+
const paddingBottom: string;
|
|
43
|
+
const paddingLeft: string;
|
|
44
|
+
const paddingRight: string;
|
|
45
|
+
const borderRadius: string;
|
|
46
|
+
const borderWidth: string;
|
|
47
|
+
const borderStyle: string;
|
|
48
|
+
const borderColor: string;
|
|
49
|
+
}
|
|
50
|
+
const _static: boolean;
|
|
51
|
+
export { _static as static };
|
|
52
|
+
export const noWrap: boolean;
|
|
53
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentInfo = void 0;
|
|
4
|
+
const componentInfo = {
|
|
5
|
+
name: "Form:TextArea",
|
|
6
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
advanced: true,
|
|
10
|
+
name: "value",
|
|
11
|
+
type: "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "name",
|
|
15
|
+
type: "string",
|
|
16
|
+
required: true,
|
|
17
|
+
helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "defaultValue",
|
|
21
|
+
type: "string"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "placeholder",
|
|
25
|
+
type: "string",
|
|
26
|
+
defaultValue: "Hello there"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "required",
|
|
30
|
+
type: "boolean",
|
|
31
|
+
defaultValue: false
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
defaultStyles: {
|
|
35
|
+
paddingTop: "10px",
|
|
36
|
+
paddingBottom: "10px",
|
|
37
|
+
paddingLeft: "10px",
|
|
38
|
+
paddingRight: "10px",
|
|
39
|
+
borderRadius: "3px",
|
|
40
|
+
borderWidth: "1px",
|
|
41
|
+
borderStyle: "solid",
|
|
42
|
+
borderColor: "#ccc"
|
|
43
|
+
},
|
|
44
|
+
static: true,
|
|
45
|
+
noWrap: true
|
|
46
|
+
};
|
|
47
|
+
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 Textarea(props) {
|
|
6
|
+
return (React.createElement("textarea", { ...props.attributes, placeholder: props.placeholder, name: props.name, value: props.value, defaultValue: props.defaultValue }));
|
|
7
|
+
}
|
|
8
|
+
exports.default = Textarea;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function serializeFn(fnValue: any): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serializeFn = void 0;
|
|
4
|
+
const serializeFn = (fnValue) => {
|
|
5
|
+
const fnStr = fnValue.toString().trim();
|
|
6
|
+
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
7
|
+
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
8
|
+
};
|
|
9
|
+
exports.serializeFn = serializeFn;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export namespace componentInfo {
|
|
2
|
+
const name: string;
|
|
3
|
+
const canHaveChildren: boolean;
|
|
4
|
+
namespace defaultStyles {
|
|
5
|
+
const minHeight: string;
|
|
6
|
+
const minWidth: string;
|
|
7
|
+
}
|
|
8
|
+
const image: string;
|
|
9
|
+
const inputs: ({
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
allowedFileTypes: string[];
|
|
13
|
+
bubble: boolean;
|
|
14
|
+
defaultValue: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
helperText?: undefined;
|
|
17
|
+
enum?: undefined;
|
|
18
|
+
advanced?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
allowedFileTypes: string[];
|
|
23
|
+
helperText: string;
|
|
24
|
+
bubble?: undefined;
|
|
25
|
+
defaultValue?: undefined;
|
|
26
|
+
required?: undefined;
|
|
27
|
+
enum?: undefined;
|
|
28
|
+
advanced?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
name: string;
|
|
31
|
+
type: string;
|
|
32
|
+
defaultValue: boolean;
|
|
33
|
+
allowedFileTypes?: undefined;
|
|
34
|
+
bubble?: undefined;
|
|
35
|
+
required?: undefined;
|
|
36
|
+
helperText?: undefined;
|
|
37
|
+
enum?: undefined;
|
|
38
|
+
advanced?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
name: string;
|
|
41
|
+
type: string;
|
|
42
|
+
defaultValue: string;
|
|
43
|
+
enum: string[];
|
|
44
|
+
allowedFileTypes?: undefined;
|
|
45
|
+
bubble?: undefined;
|
|
46
|
+
required?: undefined;
|
|
47
|
+
helperText?: undefined;
|
|
48
|
+
advanced?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
name: string;
|
|
51
|
+
type: string;
|
|
52
|
+
helperText: string;
|
|
53
|
+
defaultValue: boolean;
|
|
54
|
+
advanced: boolean;
|
|
55
|
+
allowedFileTypes?: undefined;
|
|
56
|
+
bubble?: undefined;
|
|
57
|
+
required?: undefined;
|
|
58
|
+
enum?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
name: string;
|
|
61
|
+
type: string;
|
|
62
|
+
advanced: boolean;
|
|
63
|
+
allowedFileTypes?: undefined;
|
|
64
|
+
bubble?: undefined;
|
|
65
|
+
defaultValue?: undefined;
|
|
66
|
+
required?: undefined;
|
|
67
|
+
helperText?: undefined;
|
|
68
|
+
enum?: undefined;
|
|
69
|
+
} | {
|
|
70
|
+
name: string;
|
|
71
|
+
type: string;
|
|
72
|
+
advanced: boolean;
|
|
73
|
+
defaultValue: number;
|
|
74
|
+
allowedFileTypes?: undefined;
|
|
75
|
+
bubble?: undefined;
|
|
76
|
+
required?: undefined;
|
|
77
|
+
helperText?: undefined;
|
|
78
|
+
enum?: undefined;
|
|
79
|
+
})[];
|
|
80
|
+
}
|