@builder.io/sdk-vue 0.4.4 → 0.5.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/package.json +1 -1
- package/packages/_vue2/dist/block-styles.6a14fec4.cjs +1 -0
- package/packages/_vue2/dist/block-styles.982735c2.js +77 -0
- package/packages/_vue2/dist/block-wrapper.701626ff.cjs +1 -0
- package/packages/_vue2/dist/block-wrapper.fbaeab1b.js +66 -0
- package/packages/_vue2/dist/block.a18a495f.cjs +3 -0
- package/packages/_vue2/dist/block.e9484073.js +178 -0
- package/packages/_vue2/dist/blocks-wrapper.4afaccc5.js +72 -0
- package/packages/_vue2/dist/blocks-wrapper.e0086c60.cjs +1 -0
- package/packages/_vue2/dist/builder.context.29ec27bd.js +18 -0
- package/packages/_vue2/dist/builder.context.e22f06a0.cjs +1 -0
- package/packages/_vue2/dist/component-ref.8772e5f7.cjs +1 -0
- package/packages/_vue2/dist/component-ref.ad8ecffe.js +98 -0
- package/packages/_vue2/dist/content.697b2fbd.js +905 -0
- package/packages/_vue2/dist/content.fb93079e.cjs +1 -0
- package/packages/_vue2/dist/css.1aff1efe.js +21 -0
- package/packages/_vue2/dist/css.daac46ac.cjs +6 -0
- package/packages/_vue2/dist/enable-editor.12c3716b.cjs +1 -0
- package/packages/_vue2/dist/enable-editor.8d1c24b0.js +428 -0
- package/packages/_vue2/dist/evaluate.b0496c3f.js +4970 -0
- package/packages/_vue2/dist/evaluate.d1bef2c5.cjs +31 -0
- package/packages/_vue2/dist/get-block-actions.88b6dbbf.cjs +1 -0
- package/packages/_vue2/dist/get-block-actions.a39f0f6b.js +36 -0
- package/packages/_vue2/dist/get-block-properties.316bbdf9.js +48 -0
- package/packages/_vue2/dist/get-block-properties.3ab4b67f.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.2c6787e1.js +52 -0
- package/packages/_vue2/dist/get-processed-block.deb6b33a.cjs +1 -0
- package/packages/_vue2/dist/index.051a3d7b.cjs +32 -0
- package/packages/_vue2/dist/index.8352d880.js +1360 -0
- package/packages/_vue2/dist/inlined-script.874c7b5a.cjs +1 -0
- package/packages/_vue2/dist/inlined-script.b4595308.js +23 -0
- package/packages/_vue2/dist/inlined-styles.d8b2af39.cjs +1 -0
- package/packages/_vue2/dist/inlined-styles.dd4a079a.js +23 -0
- package/packages/_vue2/dist/interactive-element.12db10c4.cjs +1 -0
- package/packages/_vue2/dist/interactive-element.e2f7ca88.js +42 -0
- package/packages/_vue2/dist/repeated-block.0343c63e.cjs +1 -0
- package/packages/_vue2/dist/repeated-block.c74334c2.js +39 -0
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +11 -11
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +9 -18
- package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +7 -6
- package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/helpers.d.ts +13 -0
- package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/image/image.vue.d.ts +6 -6
- package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +27 -6
- package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +9 -6
- package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +11 -7
- package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +7 -3
- package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +13 -0
- package/packages/{_vue3/dist/src/components/render-block/render-block.vue.d.ts → _vue2/dist/src/components/block/block.vue.d.ts} +3 -2
- package/packages/_vue2/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
- package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
- package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
- package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +16 -0
- package/packages/_vue2/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
- package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +29 -0
- package/packages/_vue2/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +12 -34
- package/packages/{_vue3/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue2/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
- package/packages/_vue2/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +1 -1
- package/packages/_vue2/dist/src/components/content/content.helpers.d.ts +7 -0
- package/packages/_vue2/dist/src/components/content/content.types.d.ts +24 -0
- package/packages/_vue2/dist/src/components/content/content.vue.d.ts +26 -0
- package/packages/_vue2/dist/src/components/content-variants/content-variants.types.d.ts +20 -0
- package/packages/_vue2/dist/src/components/content-variants/content-variants.vue.d.ts +53 -0
- package/packages/{_vue3/dist/src/components/render-content-variants → _vue2/dist/src/components/content-variants}/helpers.d.ts +6 -5
- package/packages/_vue2/dist/src/components/inlined-script.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue2/dist/src/context/builder.context.d.ts +1 -1
- package/packages/_vue2/dist/src/context/types.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
- package/packages/_vue2/dist/src/functions/evaluate/index.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/evaluate/interpreter.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +10 -0
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -1
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +2 -6
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/is-non-node-server.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/register-component.d.ts +2 -1
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/css.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/visitorId.d.ts +1 -1
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +2 -2
- package/packages/_vue2/dist/src/index.d.ts +2 -2
- package/packages/_vue2/dist/src/types/builder-props.d.ts +9 -0
- package/packages/_vue2/dist/src/types/components.d.ts +8 -2
- package/packages/_vue2/dist/src/types/enforced-partials.d.ts +21 -0
- package/packages/_vue2/dist/src/types/targets.d.ts +1 -3
- package/packages/_vue2/dist/src/types/typescript.d.ts +6 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue2/dist/styles.367c17da.js +89 -0
- package/packages/_vue2/dist/styles.716893e3.cjs +31 -0
- package/packages/_vue3/dist/block-wrapper.0590efed.js +54 -0
- package/packages/_vue3/dist/block-wrapper.caa27b4d.cjs +1 -0
- package/packages/_vue3/dist/component-ref.7c88b254.cjs +1 -0
- package/packages/_vue3/dist/component-ref.9039745a.js +111 -0
- package/packages/_vue3/dist/get-block-actions.a8cbb712.cjs +1 -0
- package/packages/_vue3/dist/get-block-actions.cc5999ea.js +79 -0
- package/packages/_vue3/dist/index.52e5e57e.js +8079 -0
- package/packages/_vue3/dist/index.a789f147.cjs +99 -0
- package/packages/_vue3/dist/repeated-block.1eba0fc4.js +33 -0
- package/packages/_vue3/dist/repeated-block.e0f9db51.cjs +1 -0
- package/packages/_vue3/dist/sdk.cjs +1 -72
- package/packages/_vue3/dist/sdk.js +22 -3251
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +10 -6
- package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +18 -8
- package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +3 -3
- package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/helpers.d.ts +13 -0
- package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +6 -6
- package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +9 -7
- package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +9 -6
- package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +20 -7
- package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +7 -3
- package/packages/_vue3/dist/src/components/block/block.helpers.d.ts +13 -0
- package/packages/{_vue2/dist/src/components/render-block/render-block.vue.d.ts → _vue3/dist/src/components/block/block.vue.d.ts} +3 -2
- package/packages/_vue3/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
- package/packages/_vue3/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
- package/packages/_vue3/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
- package/packages/_vue3/dist/src/components/{render-block/render-repeated-block.vue.d.ts → block/components/repeated-block.vue.d.ts} +3 -0
- package/packages/_vue3/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
- package/packages/_vue3/dist/src/components/blocks/blocks.vue.d.ts +29 -0
- package/packages/_vue3/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +21 -55
- package/packages/{_vue2/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue3/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
- package/packages/_vue3/dist/src/components/content/content.helpers.d.ts +7 -0
- package/packages/_vue3/dist/src/components/content/content.types.d.ts +24 -0
- package/packages/_vue3/dist/src/components/content/content.vue.d.ts +69 -0
- package/packages/_vue3/dist/src/components/content-variants/content-variants.types.d.ts +20 -0
- package/packages/_vue3/dist/src/components/content-variants/content-variants.vue.d.ts +76 -0
- package/packages/_vue3/dist/src/components/content-variants/helpers.d.ts +41 -0
- package/packages/_vue3/dist/src/components/inlined-script.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue3/dist/src/context/builder.context.d.ts +1 -1
- package/packages/_vue3/dist/src/context/types.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
- package/packages/_vue3/dist/src/functions/evaluate/index.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/evaluate/interpreter.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +10 -0
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -1
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +2 -6
- package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/is-non-node-server.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/register-component.d.ts +2 -1
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/css.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/visitorId.d.ts +1 -1
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +2 -2
- package/packages/_vue3/dist/src/index.d.ts +2 -2
- package/packages/_vue3/dist/src/types/builder-props.d.ts +9 -0
- package/packages/_vue3/dist/src/types/components.d.ts +8 -2
- package/packages/_vue3/dist/src/types/enforced-partials.d.ts +21 -0
- package/packages/_vue3/dist/src/types/targets.d.ts +1 -3
- package/packages/_vue3/dist/src/types/typescript.d.ts +6 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.0037defd.cjs +0 -1
- package/packages/_vue2/dist/block-styles.bc8cdc9f.js +0 -76
- package/packages/_vue2/dist/css.5dc54b85.js +0 -75
- package/packages/_vue2/dist/css.91bb94e8.cjs +0 -6
- package/packages/_vue2/dist/evaluate.10e091b0.cjs +0 -4
- package/packages/_vue2/dist/evaluate.f654f563.js +0 -63
- package/packages/_vue2/dist/index.a1dfdaec.js +0 -1374
- package/packages/_vue2/dist/index.a4e21f82.cjs +0 -32
- package/packages/_vue2/dist/render-block.55b40822.cjs +0 -3
- package/packages/_vue2/dist/render-block.df744a97.js +0 -263
- package/packages/_vue2/dist/render-component.9632b476.js +0 -38
- package/packages/_vue2/dist/render-component.baf2d372.cjs +0 -1
- package/packages/_vue2/dist/render-content.30c701ec.js +0 -1358
- package/packages/_vue2/dist/render-content.d464cccb.cjs +0 -1
- package/packages/_vue2/dist/render-inlined-styles.36b7a3a4.js +0 -23
- package/packages/_vue2/dist/render-inlined-styles.469ed053.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.7f4862b2.js +0 -38
- package/packages/_vue2/dist/render-repeated-block.e9bfa3cd.cjs +0 -1
- package/packages/_vue2/dist/render-styles.43e1e2a4.js +0 -87
- package/packages/_vue2/dist/render-styles.ad11935f.cjs +0 -31
- package/packages/_vue2/dist/src/blocks/util.d.ts +0 -4
- package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +0 -16
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +0 -13
- package/packages/_vue2/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
- package/packages/_vue2/dist/src/components/render-content/render-content.types.d.ts +0 -38
- package/packages/_vue2/dist/src/components/render-content-variants/helpers.d.ts +0 -17
- package/packages/_vue2/dist/src/components/render-content-variants/render-content-variants.vue.d.ts +0 -29
- package/packages/_vue3/dist/src/blocks/util.d.ts +0 -4
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +0 -16
- package/packages/_vue3/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
- package/packages/_vue3/dist/src/components/render-content/render-content.types.d.ts +0 -38
- package/packages/_vue3/dist/src/components/render-content-variants/render-content-variants.vue.d.ts +0 -29
- package/packages/_vue2/dist/src/components/{render-block → block}/types.d.ts +0 -0
- package/packages/_vue2/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
- package/packages/_vue2/dist/src/components/{render-inlined-styles.vue.d.ts → inlined-styles.vue.d.ts} +3 -3
- package/packages/_vue3/dist/src/components/{render-block → block}/types.d.ts +0 -0
- package/packages/_vue3/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +0 -0
- package/packages/_vue3/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
- package/packages/_vue3/dist/src/components/{render-inlined-styles.vue.d.ts → inlined-styles.vue.d.ts} +3 -3
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { BlocksWrapperProps } from "./blocks-wrapper.vue";
|
|
2
|
+
import type { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
|
|
3
|
+
export type BlocksProps = Partial<BlocksWrapperProps> & {
|
|
4
|
+
context: BuilderContextInterface;
|
|
5
|
+
registeredComponents: RegisteredComponents;
|
|
6
|
+
};
|
|
7
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
8
|
+
blocks?: any;
|
|
9
|
+
parent?: any;
|
|
10
|
+
path?: any;
|
|
11
|
+
styleProp?: any;
|
|
12
|
+
context?: any;
|
|
13
|
+
registeredComponents?: any;
|
|
14
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
15
|
+
blocks?: any;
|
|
16
|
+
parent?: any;
|
|
17
|
+
path?: any;
|
|
18
|
+
styleProp?: any;
|
|
19
|
+
context?: any;
|
|
20
|
+
registeredComponents?: any;
|
|
21
|
+
}>>>, {
|
|
22
|
+
readonly blocks?: any;
|
|
23
|
+
readonly parent?: any;
|
|
24
|
+
readonly path?: any;
|
|
25
|
+
readonly styleProp?: any;
|
|
26
|
+
readonly context?: any;
|
|
27
|
+
readonly registeredComponents?: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -1,43 +1,23 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Breakpoints, BuilderContent } from "../../types/builder-content.js";
|
|
3
|
-
import type { Nullable } from "../../types/typescript.js";
|
|
1
|
+
import type { BuilderContent } from "../../../types/builder-content.js";
|
|
4
2
|
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
5
3
|
context?: any;
|
|
6
|
-
data?: any;
|
|
7
4
|
content?: any;
|
|
8
5
|
canTrack?: any;
|
|
6
|
+
builderContextSignal?: any;
|
|
9
7
|
model?: any;
|
|
10
8
|
apiKey?: any;
|
|
11
|
-
|
|
12
|
-
locale?: any;
|
|
13
|
-
apiVersion?: any;
|
|
14
|
-
customComponents?: any;
|
|
15
|
-
hideContent?: any;
|
|
9
|
+
showContent?: any;
|
|
16
10
|
classNameProp?: any;
|
|
17
|
-
|
|
11
|
+
locale?: any;
|
|
18
12
|
includeRefs?: any;
|
|
19
13
|
enrich?: any;
|
|
20
14
|
}>, unknown, {
|
|
21
|
-
forceReRenderCount: number;
|
|
22
|
-
overrideContent: null;
|
|
23
|
-
update: number;
|
|
24
15
|
canTrackToUse: any;
|
|
16
|
+
forceReRenderCount: number;
|
|
17
|
+
lastUpdated: number;
|
|
18
|
+
shouldSendResetCookie: boolean;
|
|
25
19
|
httpReqsData: {};
|
|
26
20
|
clicked: boolean;
|
|
27
|
-
scriptStr: string;
|
|
28
|
-
builderContextSignal: {
|
|
29
|
-
content: Nullable<BuilderContent>;
|
|
30
|
-
localState: undefined;
|
|
31
|
-
rootState: {
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
};
|
|
34
|
-
rootSetState: Function;
|
|
35
|
-
context: any;
|
|
36
|
-
apiKey: any;
|
|
37
|
-
apiVersion: any;
|
|
38
|
-
registeredComponents: any;
|
|
39
|
-
inheritedStyles: {};
|
|
40
|
-
};
|
|
41
21
|
builderContext: {
|
|
42
22
|
Builder: {
|
|
43
23
|
content: null;
|
|
@@ -47,36 +27,30 @@ declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
|
47
27
|
rootState: {};
|
|
48
28
|
apiKey: null;
|
|
49
29
|
apiVersion: undefined;
|
|
50
|
-
|
|
30
|
+
componentInfos: {};
|
|
51
31
|
inheritedStyles: {};
|
|
52
32
|
};
|
|
53
33
|
key: symbol;
|
|
54
34
|
};
|
|
55
|
-
TARGET: string;
|
|
56
35
|
}, {
|
|
57
36
|
onUpdateHook0(): {
|
|
58
37
|
0: any;
|
|
59
38
|
};
|
|
60
39
|
onUpdateHook1(): {
|
|
61
|
-
0:
|
|
62
|
-
1: {
|
|
63
|
-
[x: string]: unknown;
|
|
64
|
-
};
|
|
40
|
+
0: boolean;
|
|
65
41
|
};
|
|
66
42
|
onUpdateHook2(): {
|
|
67
|
-
0:
|
|
68
|
-
|
|
69
|
-
} | undefined;
|
|
43
|
+
0: any;
|
|
44
|
+
1: any;
|
|
70
45
|
};
|
|
71
46
|
onUpdateHook3(): {
|
|
72
|
-
0:
|
|
73
|
-
|
|
74
|
-
|
|
47
|
+
0: any;
|
|
48
|
+
};
|
|
49
|
+
onUpdateHook4(): {
|
|
50
|
+
0: any;
|
|
75
51
|
};
|
|
76
52
|
}, {
|
|
77
53
|
mergeNewContent(newContent: BuilderContent): void;
|
|
78
|
-
setBreakpoints(breakpoints: Breakpoints): void;
|
|
79
|
-
contentSetState(newRootState: BuilderRenderState): void;
|
|
80
54
|
processMessage(event: MessageEvent): void;
|
|
81
55
|
evaluateJsCode(): void;
|
|
82
56
|
onClick(event: any): void;
|
|
@@ -90,34 +64,26 @@ declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
|
90
64
|
_classStringToObject(str: string): Record<string, boolean>;
|
|
91
65
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
92
66
|
context?: any;
|
|
93
|
-
data?: any;
|
|
94
67
|
content?: any;
|
|
95
68
|
canTrack?: any;
|
|
69
|
+
builderContextSignal?: any;
|
|
96
70
|
model?: any;
|
|
97
71
|
apiKey?: any;
|
|
98
|
-
|
|
99
|
-
locale?: any;
|
|
100
|
-
apiVersion?: any;
|
|
101
|
-
customComponents?: any;
|
|
102
|
-
hideContent?: any;
|
|
72
|
+
showContent?: any;
|
|
103
73
|
classNameProp?: any;
|
|
104
|
-
|
|
74
|
+
locale?: any;
|
|
105
75
|
includeRefs?: any;
|
|
106
76
|
enrich?: any;
|
|
107
77
|
}>>>, {
|
|
108
78
|
readonly context?: any;
|
|
109
|
-
readonly data?: any;
|
|
110
79
|
readonly content?: any;
|
|
111
80
|
readonly canTrack?: any;
|
|
81
|
+
readonly builderContextSignal?: any;
|
|
112
82
|
readonly model?: any;
|
|
113
83
|
readonly apiKey?: any;
|
|
114
|
-
readonly
|
|
115
|
-
readonly locale?: any;
|
|
116
|
-
readonly apiVersion?: any;
|
|
117
|
-
readonly customComponents?: any;
|
|
118
|
-
readonly hideContent?: any;
|
|
84
|
+
readonly showContent?: any;
|
|
119
85
|
readonly classNameProp?: any;
|
|
120
|
-
readonly
|
|
86
|
+
readonly locale?: any;
|
|
121
87
|
readonly includeRefs?: any;
|
|
122
88
|
readonly enrich?: any;
|
|
123
89
|
}>;
|
|
@@ -9,7 +9,7 @@ export interface CustomFont {
|
|
|
9
9
|
export declare const getFontCss: ({ customFonts }: {
|
|
10
10
|
customFonts?: CustomFont[] | undefined;
|
|
11
11
|
}) => string;
|
|
12
|
-
export declare const getCss: ({ cssCode, contentId
|
|
12
|
+
export declare const getCss: ({ cssCode, contentId }: {
|
|
13
13
|
cssCode?: string | undefined;
|
|
14
14
|
contentId?: string | undefined;
|
|
15
15
|
}) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BuilderContent } from '../../types/builder-content.js';
|
|
2
|
+
import type { Nullable } from '../../types/typescript.js';
|
|
3
|
+
import type { ContentProps } from './content.types.js';
|
|
4
|
+
export declare const getContextStateInitialValue: ({ content, data, locale }: Pick<ContentProps, 'content' | 'data' | 'locale'>) => {
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
};
|
|
7
|
+
export declare const getContentInitialValue: ({ content, data }: Pick<ContentProps, 'content' | 'data'>) => Nullable<BuilderContent>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BuilderRenderState } from '../../context/types.js';
|
|
2
|
+
import type { EnforcePartials } from '../../types/enforced-partials.js';
|
|
3
|
+
import type { ContentVariantsProps } from '../content-variants/content-variants.types.js';
|
|
4
|
+
interface InternalRenderProps {
|
|
5
|
+
/**
|
|
6
|
+
* TO-DO: improve qwik generator to not remap this name for non-HTML tags, then name it `className`
|
|
7
|
+
*/
|
|
8
|
+
classNameProp: string | undefined;
|
|
9
|
+
showContent: boolean;
|
|
10
|
+
isSsrAbTest: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type ContentProps = InternalRenderProps & EnforcePartials<ContentVariantsProps>;
|
|
13
|
+
export interface BuilderComponentStateChange {
|
|
14
|
+
state: BuilderRenderState;
|
|
15
|
+
ref: {
|
|
16
|
+
name?: string;
|
|
17
|
+
props?: {
|
|
18
|
+
builderBlock?: {
|
|
19
|
+
id?: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { BuilderRenderState, RegisteredComponents } from "../../context/types.js";
|
|
2
|
+
import type { ComponentInfo } from "../../types/components.js";
|
|
3
|
+
import type { Dictionary } from "../../types/typescript.js";
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
5
|
+
data?: any;
|
|
6
|
+
context?: any;
|
|
7
|
+
content?: any;
|
|
8
|
+
canTrack?: any;
|
|
9
|
+
model?: any;
|
|
10
|
+
apiKey?: any;
|
|
11
|
+
showContent?: any;
|
|
12
|
+
classNameProp?: any;
|
|
13
|
+
locale?: any;
|
|
14
|
+
includeRefs?: any;
|
|
15
|
+
enrich?: any;
|
|
16
|
+
customComponents?: any;
|
|
17
|
+
apiVersion?: any;
|
|
18
|
+
isSsrAbTest?: any;
|
|
19
|
+
}>, unknown, {
|
|
20
|
+
scriptStr: string;
|
|
21
|
+
registeredComponents: RegisteredComponents;
|
|
22
|
+
builderContextSignal: {
|
|
23
|
+
content: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").BuilderContent>;
|
|
24
|
+
localState: undefined;
|
|
25
|
+
rootState: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
rootSetState: Function;
|
|
29
|
+
context: any;
|
|
30
|
+
apiKey: any;
|
|
31
|
+
apiVersion: any;
|
|
32
|
+
componentInfos: Dictionary<ComponentInfo>;
|
|
33
|
+
inheritedStyles: {};
|
|
34
|
+
};
|
|
35
|
+
TARGET: import("../../types/targets.js").Target;
|
|
36
|
+
}, {}, {
|
|
37
|
+
contentSetState(newRootState: BuilderRenderState): void;
|
|
38
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
39
|
+
data?: any;
|
|
40
|
+
context?: any;
|
|
41
|
+
content?: any;
|
|
42
|
+
canTrack?: any;
|
|
43
|
+
model?: any;
|
|
44
|
+
apiKey?: any;
|
|
45
|
+
showContent?: any;
|
|
46
|
+
classNameProp?: any;
|
|
47
|
+
locale?: any;
|
|
48
|
+
includeRefs?: any;
|
|
49
|
+
enrich?: any;
|
|
50
|
+
customComponents?: any;
|
|
51
|
+
apiVersion?: any;
|
|
52
|
+
isSsrAbTest?: any;
|
|
53
|
+
}>>>, {
|
|
54
|
+
readonly data?: any;
|
|
55
|
+
readonly context?: any;
|
|
56
|
+
readonly content?: any;
|
|
57
|
+
readonly canTrack?: any;
|
|
58
|
+
readonly model?: any;
|
|
59
|
+
readonly apiKey?: any;
|
|
60
|
+
readonly showContent?: any;
|
|
61
|
+
readonly classNameProp?: any;
|
|
62
|
+
readonly locale?: any;
|
|
63
|
+
readonly includeRefs?: any;
|
|
64
|
+
readonly enrich?: any;
|
|
65
|
+
readonly customComponents?: any;
|
|
66
|
+
readonly apiVersion?: any;
|
|
67
|
+
readonly isSsrAbTest?: any;
|
|
68
|
+
}>;
|
|
69
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BuilderRenderContext, RegisteredComponent } from '../../context/types.js';
|
|
2
|
+
import type { ApiVersion } from '../../types/api-version.js';
|
|
3
|
+
import type { BuilderContent } from '../../types/builder-content.js';
|
|
4
|
+
import type { Nullable } from '../../types/typescript.js';
|
|
5
|
+
export interface ContentVariantsProps {
|
|
6
|
+
content?: Nullable<BuilderContent>;
|
|
7
|
+
model?: string;
|
|
8
|
+
data?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
context?: BuilderRenderContext;
|
|
12
|
+
apiKey: string;
|
|
13
|
+
apiVersion?: ApiVersion;
|
|
14
|
+
customComponents?: RegisteredComponent[];
|
|
15
|
+
canTrack?: boolean;
|
|
16
|
+
locale?: string;
|
|
17
|
+
/** @deprecated use `enrich` instead **/
|
|
18
|
+
includeRefs?: boolean;
|
|
19
|
+
enrich?: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
data?: any;
|
|
3
|
+
context?: any;
|
|
4
|
+
content?: any;
|
|
5
|
+
canTrack?: any;
|
|
6
|
+
model?: any;
|
|
7
|
+
apiKey?: any;
|
|
8
|
+
locale?: any;
|
|
9
|
+
includeRefs?: any;
|
|
10
|
+
enrich?: any;
|
|
11
|
+
customComponents?: any;
|
|
12
|
+
apiVersion?: any;
|
|
13
|
+
__isNestedRender?: any;
|
|
14
|
+
}>, unknown, {
|
|
15
|
+
shouldRenderVariants: boolean;
|
|
16
|
+
getScriptString: () => string;
|
|
17
|
+
getVariants: (content: import("../../helpers/nullable.js").Nullable<import("../../types/builder-content.js").BuilderContent>) => {
|
|
18
|
+
testVariationId: string | undefined;
|
|
19
|
+
id: string | undefined;
|
|
20
|
+
data?: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
blocks?: import("../../types/builder-block.js").BuilderBlock[] | undefined;
|
|
24
|
+
inputs?: import("../../types/input.js").Input[] | undefined;
|
|
25
|
+
state?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
} | undefined;
|
|
28
|
+
jsCode?: string | undefined;
|
|
29
|
+
tsCode?: string | undefined;
|
|
30
|
+
httpRequests?: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
testRatio?: number | undefined;
|
|
36
|
+
meta?: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
breakpoints?: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").Breakpoints>;
|
|
39
|
+
} | undefined;
|
|
40
|
+
}[];
|
|
41
|
+
getDefaultCanTrack: (canTrack?: boolean | undefined) => boolean;
|
|
42
|
+
handleABTestingSync: ({ item, canTrack }: {
|
|
43
|
+
item: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").BuilderContent>;
|
|
44
|
+
} & import("../../types/can-track.js").CanTrack) => import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").BuilderContent>;
|
|
45
|
+
TARGET: import("../../types/targets.js").Target;
|
|
46
|
+
}, {
|
|
47
|
+
variantScriptStr(): string;
|
|
48
|
+
hideVariantsStyleString(): string;
|
|
49
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
50
|
+
data?: any;
|
|
51
|
+
context?: any;
|
|
52
|
+
content?: any;
|
|
53
|
+
canTrack?: any;
|
|
54
|
+
model?: any;
|
|
55
|
+
apiKey?: any;
|
|
56
|
+
locale?: any;
|
|
57
|
+
includeRefs?: any;
|
|
58
|
+
enrich?: any;
|
|
59
|
+
customComponents?: any;
|
|
60
|
+
apiVersion?: any;
|
|
61
|
+
__isNestedRender?: any;
|
|
62
|
+
}>>>, {
|
|
63
|
+
readonly data?: any;
|
|
64
|
+
readonly context?: any;
|
|
65
|
+
readonly content?: any;
|
|
66
|
+
readonly canTrack?: any;
|
|
67
|
+
readonly model?: any;
|
|
68
|
+
readonly apiKey?: any;
|
|
69
|
+
readonly locale?: any;
|
|
70
|
+
readonly includeRefs?: any;
|
|
71
|
+
readonly enrich?: any;
|
|
72
|
+
readonly customComponents?: any;
|
|
73
|
+
readonly apiVersion?: any;
|
|
74
|
+
readonly __isNestedRender?: any;
|
|
75
|
+
}>;
|
|
76
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Nullable } from '../../helpers/nullable.js';
|
|
2
|
+
import type { BuilderContent } from '../../types/builder-content.js';
|
|
3
|
+
export declare const getVariants: (content: Nullable<BuilderContent>) => {
|
|
4
|
+
testVariationId: string | undefined;
|
|
5
|
+
id: string | undefined;
|
|
6
|
+
data?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
title?: string | undefined;
|
|
9
|
+
blocks?: import("../../types/builder-block.js").BuilderBlock[] | undefined;
|
|
10
|
+
inputs?: import("../../types/input.js").Input[] | undefined;
|
|
11
|
+
state?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
} | undefined;
|
|
14
|
+
jsCode?: string | undefined;
|
|
15
|
+
tsCode?: string | undefined;
|
|
16
|
+
httpRequests?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
} | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
testRatio?: number | undefined;
|
|
22
|
+
meta?: {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
breakpoints?: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").Breakpoints>;
|
|
25
|
+
} | undefined;
|
|
26
|
+
}[];
|
|
27
|
+
export declare const checkShouldRunVariants: ({ canTrack, content }: {
|
|
28
|
+
canTrack: Nullable<boolean>;
|
|
29
|
+
content: Nullable<BuilderContent>;
|
|
30
|
+
}) => boolean;
|
|
31
|
+
type VariantData = {
|
|
32
|
+
id: string;
|
|
33
|
+
testRatio?: number;
|
|
34
|
+
};
|
|
35
|
+
export declare const getScriptString: () => string;
|
|
36
|
+
export declare const getVariantsScriptString: (variants: VariantData[], contentId: string) => string;
|
|
37
|
+
export declare const getRenderContentScriptString: ({ contentId, variationId }: {
|
|
38
|
+
variationId: string;
|
|
39
|
+
contentId: string;
|
|
40
|
+
}) => string;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
scriptStr?: any;
|
|
3
|
+
id?: any;
|
|
4
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
5
|
+
scriptStr?: any;
|
|
6
|
+
id?: any;
|
|
7
|
+
}>>>, {
|
|
8
|
+
readonly scriptStr?: any;
|
|
9
|
+
readonly id?: any;
|
|
10
|
+
}>;
|
|
11
|
+
export default _sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.0";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This file should be overriden for each framework. Ideally this would be implemented in Mitosis. */
|
|
2
|
-
export declare const TARGET
|
|
2
|
+
export declare const TARGET: import("../types/targets").Target;
|
|
@@ -30,6 +30,6 @@ export interface BuilderContextInterface {
|
|
|
30
30
|
localState: BuilderRenderState | undefined;
|
|
31
31
|
apiKey: string | null;
|
|
32
32
|
apiVersion: ApiVersion | undefined;
|
|
33
|
-
|
|
33
|
+
componentInfos: Dictionary<ComponentInfo>;
|
|
34
34
|
inheritedStyles: Record<string, unknown>;
|
|
35
35
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import type { BuilderContextInterface, BuilderRenderState } from '
|
|
2
|
-
|
|
1
|
+
import type { BuilderContextInterface, BuilderRenderState } from '../../context/types.js';
|
|
2
|
+
import type { ExecutorArgs } from './types.js';
|
|
3
|
+
export declare function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression }: {
|
|
3
4
|
code: string;
|
|
4
5
|
event?: Event;
|
|
5
6
|
isExpression?: boolean;
|
|
6
7
|
} & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>): any;
|
|
8
|
+
export declare const runInBrowser: ({ useCode, builder, context, event, localState, rootSetState, rootState }: ExecutorArgs) => any;
|
|
9
|
+
export declare const runInNode: (args: ExecutorArgs) => any;
|
|
7
10
|
export declare function flattenState(rootState: Record<string | symbol, any>, localState: Record<string | symbol, any> | undefined, rootSetState: ((rootState: BuilderRenderState) => void) | undefined): BuilderRenderState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { evaluate } from './evaluate';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../../context/types';
|
|
2
|
+
export type ExecutorArgs = Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'> & {
|
|
3
|
+
useCode: string;
|
|
4
|
+
builder: {
|
|
5
|
+
isEditing: boolean | undefined;
|
|
6
|
+
isBrowser: boolean | undefined;
|
|
7
|
+
isServer: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
event: Event | undefined;
|
|
10
|
+
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
1
2
|
import type { BuilderBlock } from '../types/builder-block.js';
|
|
2
|
-
export declare function getBlockProperties(block
|
|
3
|
+
export declare function getBlockProperties({ block, context }: {
|
|
4
|
+
block: BuilderBlock;
|
|
5
|
+
context: BuilderContextInterface;
|
|
6
|
+
}): BuilderBlock;
|
|
@@ -4,13 +4,9 @@ export declare function getContent(options: GetContentOptions): Promise<BuilderC
|
|
|
4
4
|
type ContentResults = {
|
|
5
5
|
results: BuilderContent[];
|
|
6
6
|
};
|
|
7
|
-
type ContentResponse = ContentResults | {
|
|
8
|
-
status: number;
|
|
9
|
-
message: string;
|
|
10
|
-
};
|
|
11
7
|
/**
|
|
12
8
|
* Exported only for testing purposes. Should not be used directly.
|
|
13
9
|
*/
|
|
14
|
-
export declare const processContentResult: (options: GetContentOptions, content: ContentResults) => Promise<ContentResults>;
|
|
15
|
-
export declare function getAllContent(options: GetContentOptions): Promise<
|
|
10
|
+
export declare const processContentResult: (options: GetContentOptions, content: ContentResults, url?: URL) => Promise<ContentResults>;
|
|
11
|
+
export declare function getAllContent(options: GetContentOptions): Promise<ContentResults | null>;
|
|
16
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
2
|
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
-
export declare function getProcessedBlock({ block, context, shouldEvaluateBindings, localState, rootState, rootSetState
|
|
3
|
+
export declare function getProcessedBlock({ block, context, shouldEvaluateBindings, localState, rootState, rootSetState }: {
|
|
4
4
|
block: BuilderBlock;
|
|
5
5
|
/**
|
|
6
6
|
* In some cases, we want to avoid evaluating bindings and only want framework-specific block transformation. It is
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
2
|
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
-
export declare function getReactNativeBlockStyles({ block, context, blockStyles
|
|
3
|
+
export declare function getReactNativeBlockStyles({ block, context, blockStyles }: {
|
|
4
4
|
block: BuilderBlock;
|
|
5
5
|
context: BuilderContextInterface;
|
|
6
6
|
blockStyles: any;
|
|
@@ -8,7 +8,8 @@ export declare const components: RegisteredComponent[];
|
|
|
8
8
|
* @deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.
|
|
9
9
|
*/
|
|
10
10
|
export declare function registerComponent(component: any, info: ComponentInfo): void;
|
|
11
|
-
export declare const createRegisterComponentMessage: (
|
|
11
|
+
export declare const createRegisterComponentMessage: (info: ComponentInfo) => {
|
|
12
12
|
type: string;
|
|
13
13
|
data: ComponentInfo;
|
|
14
14
|
};
|
|
15
|
+
export declare const serializeComponentInfo: ({ inputs, ...info }: ComponentInfo) => ComponentInfo;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { CanTrack } from '../types/can-track.js';
|
|
2
2
|
import type { BuilderContent } from '../types/builder-content.js';
|
|
3
3
|
import type { Nullable } from '../types/typescript.js';
|
|
4
|
-
export declare const handleABTestingSync: ({ item, canTrack
|
|
4
|
+
export declare const handleABTestingSync: ({ item, canTrack }: {
|
|
5
5
|
item: Nullable<BuilderContent>;
|
|
6
6
|
} & CanTrack) => Nullable<BuilderContent>;
|
|
7
|
-
export declare const handleABTesting: ({ item, canTrack
|
|
7
|
+
export declare const handleABTesting: ({ item, canTrack }: {
|
|
8
8
|
item: BuilderContent;
|
|
9
9
|
} & CanTrack) => Promise<BuilderContent>;
|
|
@@ -2,7 +2,7 @@ import type { CanTrack } from '../types/can-track.js';
|
|
|
2
2
|
type GetCookieArgs = {
|
|
3
3
|
name: string;
|
|
4
4
|
} & CanTrack;
|
|
5
|
-
export declare const getCookieSync: ({ name, canTrack
|
|
5
|
+
export declare const getCookieSync: ({ name, canTrack }: GetCookieArgs) => string | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
|
|
8
8
|
* The sync version is only safe to use in code blocks that `react-native` is guaranteed not to not run.
|
|
@@ -11,7 +11,7 @@ export declare const getCookie: (args: GetCookieArgs) => Promise<string | undefi
|
|
|
11
11
|
/**
|
|
12
12
|
* NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
|
|
13
13
|
*/
|
|
14
|
-
export declare const setCookie: ({ name, value, expires, canTrack
|
|
14
|
+
export declare const setCookie: ({ name, value, expires, canTrack }: {
|
|
15
15
|
name: string;
|
|
16
16
|
value: string;
|
|
17
17
|
expires?: Date | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const convertStyleMapToCSSArray: (style: Partial<CSSStyleDeclaration>) => string[];
|
|
2
2
|
export declare const convertStyleMapToCSS: (style: Partial<CSSStyleDeclaration>) => string;
|
|
3
|
-
export declare const createCssClass: ({ mediaQuery, className, styles
|
|
3
|
+
export declare const createCssClass: ({ mediaQuery, className, styles }: {
|
|
4
4
|
mediaQuery?: string | undefined;
|
|
5
5
|
className: string;
|
|
6
6
|
styles: Partial<CSSStyleDeclaration>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { CanTrack } from '../types/can-track.js';
|
|
2
2
|
import type { Nullable } from './nullable.js';
|
|
3
|
-
export declare const getLocalStorageItem: ({ key, canTrack
|
|
3
|
+
export declare const getLocalStorageItem: ({ key, canTrack }: {
|
|
4
4
|
key: string;
|
|
5
5
|
} & CanTrack) => Nullable<string>;
|
|
6
|
-
export declare const setLocalStorageItem: ({ key, canTrack, value
|
|
6
|
+
export declare const setLocalStorageItem: ({ key, canTrack, value }: {
|
|
7
7
|
key: string;
|
|
8
8
|
value: string;
|
|
9
9
|
} & CanTrack) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getPreviewContent(searchParams: URLSearchParams): import("../../types/builder-content").BuilderContent | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getIdFromSearchParams: (searchParams: URLSearchParams) => string | null;
|