@builder.io/sdk-react 0.2.2 → 0.2.3-0
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/blocks/BaseText.d.ts +2 -0
- package/dist/react/blocks/BaseText.js +1 -0
- package/dist/react/blocks/button/button.d.ts +2 -0
- package/dist/react/blocks/button/button.js +1 -0
- package/dist/react/blocks/button/component-info.d.ts +38 -0
- package/dist/react/blocks/columns/columns.d.ts +2 -0
- package/dist/react/blocks/columns/columns.js +1 -0
- package/dist/react/blocks/columns/component-info.d.ts +176 -0
- package/dist/react/blocks/custom-code/component-info.d.ts +31 -0
- package/dist/react/blocks/custom-code/custom-code.d.ts +2 -0
- package/dist/react/blocks/custom-code/custom-code.js +1 -0
- package/dist/react/blocks/embed/component-info.d.ts +22 -0
- package/dist/react/blocks/embed/embed.d.ts +2 -0
- package/dist/react/blocks/embed/embed.js +1 -0
- package/dist/react/blocks/embed/helpers.d.ts +1 -0
- package/dist/react/blocks/form/component-info.d.ts +235 -0
- package/dist/react/blocks/form/form.d.ts +2 -0
- package/dist/react/blocks/form/form.js +1 -0
- package/dist/react/blocks/fragment/component-info.d.ts +8 -0
- package/dist/react/blocks/fragment/fragment.d.ts +2 -0
- package/dist/react/blocks/fragment/fragment.js +1 -0
- package/dist/react/blocks/image/component-info.d.ts +114 -0
- package/dist/react/blocks/image/image.d.ts +2 -0
- package/dist/react/blocks/image/image.helpers.d.ts +1 -0
- package/dist/react/blocks/image/image.js +1 -0
- package/dist/react/blocks/img/component-info.d.ts +15 -0
- package/dist/react/blocks/img/img.d.ts +2 -0
- package/dist/react/blocks/img/img.js +1 -0
- package/dist/react/blocks/input/component-info.d.ts +66 -0
- package/dist/react/blocks/input/input.d.ts +2 -0
- package/dist/react/blocks/input/input.js +1 -0
- package/dist/react/blocks/raw-text/component-info.d.ts +10 -0
- package/dist/react/blocks/raw-text/raw-text.d.ts +2 -0
- package/dist/react/blocks/raw-text/raw-text.js +1 -0
- package/dist/react/blocks/section/component-info.d.ts +43 -0
- package/dist/react/blocks/section/section.d.ts +2 -0
- package/dist/react/blocks/section/section.js +1 -0
- package/dist/react/blocks/select/component-info.d.ts +61 -0
- package/dist/react/blocks/select/select.d.ts +2 -0
- package/dist/react/blocks/select/select.js +1 -0
- package/dist/react/blocks/submit-button/component-info.d.ts +23 -0
- package/dist/react/blocks/submit-button/submit-button.d.ts +2 -0
- package/dist/react/blocks/submit-button/submit-button.js +1 -0
- package/dist/react/blocks/symbol/component-info.d.ts +35 -0
- package/dist/react/blocks/symbol/symbol.d.ts +2 -0
- package/dist/react/blocks/symbol/symbol.js +1 -0
- package/dist/react/blocks/text/component-info.d.ts +19 -0
- package/dist/react/blocks/text/text.d.ts +2 -0
- package/dist/react/blocks/text/text.js +1 -0
- package/dist/react/blocks/textarea/component-info.d.ts +53 -0
- package/dist/react/blocks/textarea/textarea.d.ts +2 -0
- package/dist/react/blocks/textarea/textarea.js +1 -0
- package/dist/react/blocks/util.d.ts +1 -0
- package/dist/react/blocks/video/component-info.d.ts +80 -0
- package/dist/react/blocks/video/video.d.ts +2 -0
- package/dist/react/blocks/video/video.js +1 -0
- package/dist/react/components/render-block/block-styles.d.ts +2 -0
- package/dist/react/components/render-block/block-styles.js +1 -0
- package/dist/react/components/render-block/render-block.d.ts +2 -0
- package/dist/react/components/render-block/render-block.helpers.d.ts +13 -0
- package/dist/react/components/render-block/render-block.js +1 -0
- package/dist/react/components/render-block/render-component.d.ts +2 -0
- package/dist/react/components/render-block/render-component.js +1 -0
- package/dist/react/components/render-block/render-repeated-block.d.ts +2 -0
- package/dist/react/components/render-block/render-repeated-block.js +1 -0
- package/dist/react/components/render-block/types.d.ts +0 -0
- package/dist/react/components/render-blocks.d.ts +2 -0
- package/dist/react/components/render-blocks.js +1 -0
- package/dist/react/components/render-content/builder-editing.d.ts +2 -0
- package/dist/react/components/render-content/builder-editing.js +1 -0
- package/dist/react/components/render-content/components/render-styles.d.ts +2 -0
- package/dist/react/components/render-content/components/render-styles.helpers.d.ts +7 -0
- package/dist/react/components/render-content/components/render-styles.js +1 -0
- package/dist/react/components/render-content/index.d.ts +2 -0
- package/dist/react/components/render-content/render-content.d.ts +2 -0
- package/dist/react/components/render-content/render-content.helpers.d.ts +9 -0
- package/dist/react/components/render-content/render-content.js +1 -0
- package/dist/react/components/render-content/render-content.types.d.ts +0 -0
- package/dist/react/components/render-inlined-styles.d.ts +2 -0
- package/dist/react/components/render-inlined-styles.js +1 -0
- package/dist/react/constants/builder-registered-components.d.ts +1 -0
- package/dist/react/constants/device-sizes.d.ts +21 -0
- package/dist/react/constants/target.d.ts +1 -0
- package/dist/react/context/builder.context.d.ts +11 -0
- package/dist/react/context/types.d.ts +0 -0
- package/dist/react/functions/camel-to-kebab-case.d.ts +1 -0
- package/dist/react/functions/evaluate.d.ts +7 -0
- package/dist/react/functions/event-handler-name.d.ts +1 -0
- package/dist/react/functions/extract-text-styles.d.ts +1 -0
- package/dist/react/functions/fast-clone.d.ts +1 -0
- package/dist/react/functions/get-block-actions-handler.d.ts +1 -0
- package/dist/react/functions/get-block-actions.d.ts +1 -0
- package/dist/react/functions/get-block-component-options.d.ts +1 -0
- package/dist/react/functions/get-block-properties.d.ts +1 -0
- package/dist/react/functions/get-builder-search-params/fn.test.d.ts +1 -0
- package/dist/react/functions/get-builder-search-params/index.d.ts +4 -0
- package/dist/react/functions/get-content/ab-testing.d.ts +1 -0
- package/dist/react/functions/get-content/generate-content-url.d.ts +1 -0
- package/dist/react/functions/get-content/generate-content-url.test.d.ts +1 -0
- package/dist/react/functions/get-content/index.d.ts +2 -0
- package/dist/react/functions/get-content/index.js +1 -1
- package/dist/react/functions/get-content/types.d.ts +0 -0
- package/dist/react/functions/get-fetch.d.ts +1 -0
- package/dist/react/functions/get-global-this.d.ts +1 -0
- package/dist/react/functions/get-processed-block.d.ts +6 -0
- package/dist/react/functions/get-processed-block.test.d.ts +1 -0
- package/dist/react/functions/get-react-native-block-styles.d.ts +5 -0
- package/dist/react/functions/if-target.d.ts +5 -0
- package/dist/react/functions/is-browser.d.ts +1 -0
- package/dist/react/functions/is-editing.d.ts +1 -0
- package/dist/react/functions/is-iframe.d.ts +1 -0
- package/dist/react/functions/is-previewing.d.ts +1 -0
- package/dist/react/functions/on-change.d.ts +2 -0
- package/dist/react/functions/on-change.test.d.ts +1 -0
- package/dist/react/functions/register-component.d.ts +6 -0
- package/dist/react/functions/register.d.ts +1 -0
- package/dist/react/functions/sanitize-react-native-block-styles.d.ts +1 -0
- package/dist/react/functions/set-editor-settings.d.ts +1 -0
- package/dist/react/functions/set.d.ts +1 -0
- package/dist/react/functions/set.test.d.ts +1 -0
- package/dist/react/functions/track/helpers.d.ts +5 -0
- package/dist/react/functions/track/index.d.ts +2 -0
- package/dist/react/functions/track/interaction.d.ts +14 -0
- package/dist/react/functions/transform-block-properties.d.ts +1 -0
- package/dist/react/functions/transform-block.d.ts +1 -0
- package/dist/react/helpers/ab-tests.d.ts +9 -0
- package/dist/react/helpers/cookie.d.ts +2 -0
- package/dist/react/helpers/css.d.ts +7 -0
- package/dist/react/helpers/flatten.d.ts +1 -0
- package/dist/react/helpers/localStorage.d.ts +9 -0
- package/dist/react/helpers/logger.d.ts +5 -0
- package/dist/react/helpers/nullable.d.ts +1 -0
- package/dist/react/helpers/sessionId.d.ts +6 -0
- package/dist/react/helpers/time.d.ts +1 -0
- package/dist/react/helpers/url.d.ts +1 -0
- package/dist/react/helpers/url.test.d.ts +1 -0
- package/dist/react/helpers/uuid.d.ts +2 -0
- package/dist/react/helpers/visitorId.d.ts +8 -0
- package/dist/react/index-helpers/blocks-exports.d.ts +11 -0
- package/dist/react/index-helpers/top-of-file.d.ts +2 -0
- package/dist/react/index.d.ts +11 -0
- package/dist/react/scripts/init-editing.d.ts +2 -0
- package/dist/react/types/api-version.d.ts +1 -0
- package/dist/react/types/builder-block.d.ts +0 -0
- package/dist/react/types/builder-content.d.ts +0 -0
- package/dist/react/types/can-track.d.ts +0 -0
- package/dist/react/types/components.d.ts +0 -0
- package/dist/react/types/deep-partial.d.ts +0 -0
- package/dist/react/types/element.d.ts +0 -0
- package/dist/react/types/input.d.ts +0 -0
- package/dist/react/types/targets.d.ts +0 -0
- package/dist/react/types/typescript.d.ts +0 -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 +4 -10
- 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
|
@@ -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,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,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,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,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,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 @@
|
|
|
1
|
+
export function serializeFn(fnValue: any): string;
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function getComponent({ block, context }: {
|
|
2
|
+
block: any;
|
|
3
|
+
context: any;
|
|
4
|
+
}): any;
|
|
5
|
+
export function getProxyState(context: any): any;
|
|
6
|
+
export function getRepeatItemData({ block, context }: {
|
|
7
|
+
block: any;
|
|
8
|
+
context: any;
|
|
9
|
+
}): any;
|
|
10
|
+
export function isEmptyHtmlElement(tagName: any): boolean;
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {object} RegisteredComponent
|
|
3
|
+
* @typedef {object} BuilderContent
|
|
4
|
+
* @typedef {(data: {data: object, key: string }) => void} OnUpdateCallback
|
|
5
|
+
* @typedef {{
|
|
6
|
+
* model: string,
|
|
7
|
+
* components?: RegisteredComponent[],
|
|
8
|
+
* children: any,
|
|
9
|
+
* onUpdate?: OnUpdateCallback,
|
|
10
|
+
* }} BuilderEditingProps
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @param {BuilderEditingProps} props
|
|
14
|
+
*/
|
|
15
|
+
export function BuilderEditingWrapper(props: BuilderEditingProps): JSX.Element;
|
|
16
|
+
export type RegisteredComponent = object;
|
|
17
|
+
export type BuilderContent = object;
|
|
18
|
+
export type OnUpdateCallback = (data: {
|
|
19
|
+
data: object;
|
|
20
|
+
key: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
export type BuilderEditingProps = {
|
|
23
|
+
model: string;
|
|
24
|
+
components?: RegisteredComponent[];
|
|
25
|
+
children: any;
|
|
26
|
+
onUpdate?: OnUpdateCallback;
|
|
27
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getDefaultRegisteredComponents(): any[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function getMaxWidthQueryForSize(size: any, sizeValues?: {
|
|
2
|
+
small: {
|
|
3
|
+
min: number;
|
|
4
|
+
default: number;
|
|
5
|
+
max: number;
|
|
6
|
+
};
|
|
7
|
+
medium: {
|
|
8
|
+
min: number;
|
|
9
|
+
default: number;
|
|
10
|
+
max: number;
|
|
11
|
+
};
|
|
12
|
+
large: {
|
|
13
|
+
min: number;
|
|
14
|
+
default: number;
|
|
15
|
+
max: number;
|
|
16
|
+
};
|
|
17
|
+
}): string;
|
|
18
|
+
export function getSizesForBreakpoints({ small, medium }: {
|
|
19
|
+
small: any;
|
|
20
|
+
medium: any;
|
|
21
|
+
}): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const TARGET: "rsc";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { stdin_default as default };
|
|
2
|
+
declare namespace stdin_default {
|
|
3
|
+
const content: null;
|
|
4
|
+
const context: {};
|
|
5
|
+
const state: {};
|
|
6
|
+
function setState(): void;
|
|
7
|
+
const apiKey: null;
|
|
8
|
+
const apiVersion: undefined;
|
|
9
|
+
const registeredComponents: {};
|
|
10
|
+
const inheritedStyles: {};
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function camelToKebabCase(string: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function evaluate(): null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getEventHandlerName(key: any): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function extractTextStyles(styles: any): {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function fastClone(obj: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function createEventHandler(value: any, options: any): (event: any) => null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getBlockActions(options: any): {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getBlockComponentOptions(block: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getBlockProperties(block: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function handleABTesting(_0: any): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function generateContentUrl(options: any): URL;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -59,7 +59,7 @@ function getAllContent(options) {
|
|
|
59
59
|
const res = yield fetch(url.href);
|
|
60
60
|
const content = yield res.json();
|
|
61
61
|
if ("status" in content && !("results" in content)) {
|
|
62
|
-
logger.error("Error fetching data. ", content, options);
|
|
62
|
+
logger.error("Error fetching data. ", { url, content, options });
|
|
63
63
|
return content;
|
|
64
64
|
}
|
|
65
65
|
const canTrack = options.canTrack !== false;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const fetch: typeof globalThis.fetch;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getGlobalThis(): typeof globalThis;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function isBrowser(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function isEditing(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function isIframe(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function isPreviewing(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function register(type: any, info: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function sanitizeReactNativeBlockStyles(styles: any): {};
|