@builder.io/sdk-vue 0.4.5 → 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.dcd9672f.js → index.8352d880.js} +484 -517
- package/packages/_vue2/dist/inlined-script.874c7b5a.cjs +1 -0
- package/packages/_vue2/dist/{inlined-script.5b4b5fc3.js → inlined-script.b4595308.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles.9ddda3d7.cjs → inlined-styles.d8b2af39.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-styles.759d26e8.js → inlined-styles.dd4a079a.js} +1 -1
- 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/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/{_vue3/dist/src/components/render-content/render-content.types.d.ts → _vue2/dist/src/components/content/content.types.d.ts} +4 -4
- package/packages/_vue2/dist/src/components/content/content.vue.d.ts +26 -0
- package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
- package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +9 -8
- package/packages/_vue2/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +4 -4
- 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 +1 -1
- package/packages/_vue2/dist/src/types/targets.d.ts +1 -3
- package/packages/_vue2/dist/src/types/typescript.d.ts +3 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue2/dist/{render-styles.b41f1309.js → styles.367c17da.js} +7 -5
- package/packages/_vue2/dist/{render-styles.ba0e223a.cjs → styles.716893e3.cjs} +4 -4
- 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 -3275
- 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/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} +18 -49
- 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/{_vue2/dist/src/components/render-content/render-content.types.d.ts → _vue3/dist/src/components/content/content.types.d.ts} +4 -4
- package/packages/_vue3/dist/src/components/content/content.vue.d.ts +69 -0
- package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
- package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +21 -20
- package/packages/_vue3/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +7 -7
- 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 +1 -1
- package/packages/_vue3/dist/src/types/targets.d.ts +1 -3
- package/packages/_vue3/dist/src/types/typescript.d.ts +3 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.503c2141.cjs +0 -1
- package/packages/_vue2/dist/block-styles.76e698a7.js +0 -72
- package/packages/_vue2/dist/css.1601c108.js +0 -75
- package/packages/_vue2/dist/css.6d92c2ca.cjs +0 -6
- package/packages/_vue2/dist/evaluate.5365c739.js +0 -63
- package/packages/_vue2/dist/evaluate.97a0f474.cjs +0 -4
- package/packages/_vue2/dist/index.4de025de.cjs +0 -32
- package/packages/_vue2/dist/inlined-script.6a6ca760.cjs +0 -1
- package/packages/_vue2/dist/render-block.844495c0.js +0 -263
- package/packages/_vue2/dist/render-block.c0841b5d.cjs +0 -3
- package/packages/_vue2/dist/render-component.a3770d92.cjs +0 -1
- package/packages/_vue2/dist/render-component.a57a8b32.js +0 -38
- package/packages/_vue2/dist/render-content.19fe4991.cjs +0 -1
- package/packages/_vue2/dist/render-content.8d297efd.js +0 -1359
- package/packages/_vue2/dist/render-repeated-block.be86aae1.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.f51da3f5.js +0 -38
- 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/_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/_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/_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/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BuilderContextInterface, RegisteredComponents } from '../../../../context/types.js';
|
|
2
|
+
import type { BuilderBlock } from '../../../../types/builder-block.js';
|
|
3
|
+
import type { PropsWithBuilderData } from '../../../../types/builder-props.js';
|
|
4
|
+
import type { InteractiveElementProps } from '../interactive-element.vue';
|
|
5
|
+
type ComponentOptions = PropsWithBuilderData<{
|
|
6
|
+
[index: string]: any;
|
|
7
|
+
attributes?: {
|
|
8
|
+
[index: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
export interface ComponentProps {
|
|
12
|
+
componentRef: any;
|
|
13
|
+
componentOptions: ComponentOptions;
|
|
14
|
+
blockChildren: BuilderBlock[];
|
|
15
|
+
context: BuilderContextInterface;
|
|
16
|
+
registeredComponents: RegisteredComponents;
|
|
17
|
+
builderBlock: BuilderBlock;
|
|
18
|
+
includeBlockProps: boolean;
|
|
19
|
+
isInteractive: boolean | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare const getWrapperProps: ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }: Omit<ComponentProps, "registeredComponents" | "blockChildren"> & {
|
|
22
|
+
contextValue: BuilderContextInterface;
|
|
23
|
+
}) => InteractiveElementProps | {
|
|
24
|
+
attributes?: {
|
|
25
|
+
[index: string]: any;
|
|
26
|
+
} | undefined;
|
|
27
|
+
builderBlock: BuilderBlock;
|
|
28
|
+
builderContext: BuilderContextInterface;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from "../../../context/types.js";
|
|
2
|
+
import { getBlockActions } from "../../../functions/get-block-actions.js";
|
|
3
|
+
import { getBlockProperties } from "../../../functions/get-block-properties.js";
|
|
4
|
+
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
5
|
+
export type InteractiveElementProps = {
|
|
6
|
+
Wrapper: any;
|
|
7
|
+
block: BuilderBlock;
|
|
8
|
+
context: BuilderContextInterface;
|
|
9
|
+
wrapperProps: object;
|
|
10
|
+
};
|
|
11
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
12
|
+
block?: any;
|
|
13
|
+
context?: any;
|
|
14
|
+
wrapperProps?: any;
|
|
15
|
+
Wrapper?: any;
|
|
16
|
+
}>, {}, {
|
|
17
|
+
getBlockActions: typeof getBlockActions;
|
|
18
|
+
getBlockProperties: typeof getBlockProperties;
|
|
19
|
+
}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
20
|
+
block?: any;
|
|
21
|
+
context?: any;
|
|
22
|
+
wrapperProps?: any;
|
|
23
|
+
Wrapper?: any;
|
|
24
|
+
}>>>, {
|
|
25
|
+
readonly block?: any;
|
|
26
|
+
readonly context?: any;
|
|
27
|
+
readonly wrapperProps?: any;
|
|
28
|
+
readonly Wrapper?: any;
|
|
29
|
+
}>;
|
|
30
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
block?: any;
|
|
3
|
+
registeredComponents?: any;
|
|
4
|
+
repeatContext?: any;
|
|
5
|
+
}>, {}, {
|
|
6
|
+
store: any;
|
|
7
|
+
}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
8
|
+
block?: any;
|
|
9
|
+
registeredComponents?: any;
|
|
10
|
+
repeatContext?: any;
|
|
11
|
+
}>>>, {
|
|
12
|
+
readonly block?: any;
|
|
13
|
+
readonly registeredComponents?: any;
|
|
14
|
+
readonly repeatContext?: any;
|
|
15
|
+
}>;
|
|
16
|
+
export default _sfc_main;
|
package/packages/_vue2/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BuilderBlock } from "
|
|
2
|
-
export type
|
|
3
|
-
blocks
|
|
4
|
-
parent
|
|
5
|
-
path
|
|
6
|
-
styleProp
|
|
1
|
+
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
2
|
+
export type BlocksWrapperProps = {
|
|
3
|
+
blocks: BuilderBlock[] | undefined;
|
|
4
|
+
parent: string | undefined;
|
|
5
|
+
path: string | undefined;
|
|
6
|
+
styleProp: Record<string, any> | undefined;
|
|
7
7
|
};
|
|
8
8
|
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
9
9
|
parent?: any;
|
|
@@ -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
|
+
parent?: any;
|
|
9
|
+
blocks?: any;
|
|
10
|
+
path?: any;
|
|
11
|
+
styleProp?: any;
|
|
12
|
+
context?: any;
|
|
13
|
+
registeredComponents?: any;
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
15
|
+
parent?: any;
|
|
16
|
+
blocks?: any;
|
|
17
|
+
path?: any;
|
|
18
|
+
styleProp?: any;
|
|
19
|
+
context?: any;
|
|
20
|
+
registeredComponents?: any;
|
|
21
|
+
}>>>, {
|
|
22
|
+
readonly parent?: any;
|
|
23
|
+
readonly blocks?: any;
|
|
24
|
+
readonly path?: any;
|
|
25
|
+
readonly styleProp?: any;
|
|
26
|
+
readonly context?: any;
|
|
27
|
+
readonly registeredComponents?: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -1,27 +1,11 @@
|
|
|
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<string[], {}, {
|
|
5
|
-
forceReRenderCount: number;
|
|
6
|
-
overrideContent: null;
|
|
7
|
-
update: number;
|
|
8
3
|
canTrackToUse: any;
|
|
4
|
+
forceReRenderCount: number;
|
|
5
|
+
lastUpdated: number;
|
|
6
|
+
shouldSendResetCookie: boolean;
|
|
9
7
|
httpReqsData: {};
|
|
10
8
|
clicked: boolean;
|
|
11
|
-
scriptStr: string;
|
|
12
|
-
builderContextSignal: {
|
|
13
|
-
content: Nullable<BuilderContent>;
|
|
14
|
-
localState: undefined;
|
|
15
|
-
rootState: {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
};
|
|
18
|
-
rootSetState: any;
|
|
19
|
-
context: any;
|
|
20
|
-
apiKey: any;
|
|
21
|
-
apiVersion: any;
|
|
22
|
-
registeredComponents: any;
|
|
23
|
-
inheritedStyles: {};
|
|
24
|
-
};
|
|
25
9
|
builderContext: {
|
|
26
10
|
Builder: {
|
|
27
11
|
content: null;
|
|
@@ -31,36 +15,30 @@ declare const _sfc_main: import("vue").DefineComponent<string[], {}, {
|
|
|
31
15
|
rootState: {};
|
|
32
16
|
apiKey: null;
|
|
33
17
|
apiVersion: undefined;
|
|
34
|
-
|
|
18
|
+
componentInfos: {};
|
|
35
19
|
inheritedStyles: {};
|
|
36
20
|
};
|
|
37
21
|
key: symbol;
|
|
38
22
|
};
|
|
39
|
-
TARGET: string;
|
|
40
23
|
}, {
|
|
41
24
|
onUpdateHook0(): {
|
|
42
25
|
0: any;
|
|
43
26
|
};
|
|
44
27
|
onUpdateHook1(): {
|
|
45
|
-
0:
|
|
46
|
-
1: {
|
|
47
|
-
[x: string]: unknown;
|
|
48
|
-
};
|
|
28
|
+
0: boolean;
|
|
49
29
|
};
|
|
50
30
|
onUpdateHook2(): {
|
|
51
|
-
0:
|
|
52
|
-
|
|
53
|
-
} | undefined;
|
|
31
|
+
0: any;
|
|
32
|
+
1: any;
|
|
54
33
|
};
|
|
55
34
|
onUpdateHook3(): {
|
|
56
|
-
0:
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
0: any;
|
|
36
|
+
};
|
|
37
|
+
onUpdateHook4(): {
|
|
38
|
+
0: any;
|
|
59
39
|
};
|
|
60
40
|
}, {
|
|
61
41
|
mergeNewContent(newContent: BuilderContent): void;
|
|
62
|
-
setBreakpoints(breakpoints: Breakpoints): void;
|
|
63
|
-
contentSetState(newRootState: BuilderRenderState): void;
|
|
64
42
|
processMessage(event: MessageEvent): void;
|
|
65
43
|
evaluateJsCode(): void;
|
|
66
44
|
onClick(event: any): void;
|
|
@@ -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;
|
|
@@ -4,7 +4,7 @@ declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
|
4
4
|
customFonts?: any;
|
|
5
5
|
}>, {}, {
|
|
6
6
|
injectedStyles: string;
|
|
7
|
-
}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
7
|
+
}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
8
8
|
cssCode?: any;
|
|
9
9
|
contentId?: any;
|
|
10
10
|
customFonts?: any;
|
|
@@ -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>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BuilderRenderState } from '../../context/types';
|
|
2
|
-
import type { EnforcePartials } from '../../types/enforced-partials';
|
|
3
|
-
import type {
|
|
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
4
|
interface InternalRenderProps {
|
|
5
5
|
/**
|
|
6
6
|
* TO-DO: improve qwik generator to not remap this name for non-HTML tags, then name it `className`
|
|
@@ -9,7 +9,7 @@ interface InternalRenderProps {
|
|
|
9
9
|
showContent: boolean;
|
|
10
10
|
isSsrAbTest: boolean;
|
|
11
11
|
}
|
|
12
|
-
export type
|
|
12
|
+
export type ContentProps = InternalRenderProps & EnforcePartials<ContentVariantsProps>;
|
|
13
13
|
export interface BuilderComponentStateChange {
|
|
14
14
|
state: BuilderRenderState;
|
|
15
15
|
ref: {
|
|
@@ -0,0 +1,26 @@
|
|
|
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<string[], {}, {
|
|
5
|
+
scriptStr: string;
|
|
6
|
+
registeredComponents: RegisteredComponents;
|
|
7
|
+
builderContextSignal: {
|
|
8
|
+
content: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").BuilderContent>;
|
|
9
|
+
localState: undefined;
|
|
10
|
+
rootState: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
rootSetState: any;
|
|
14
|
+
context: any;
|
|
15
|
+
apiKey: any;
|
|
16
|
+
apiVersion: any;
|
|
17
|
+
componentInfos: Dictionary<ComponentInfo>;
|
|
18
|
+
inheritedStyles: {};
|
|
19
|
+
};
|
|
20
|
+
TARGET: import("../../types/targets.js").Target;
|
|
21
|
+
}, {}, {
|
|
22
|
+
contentSetState(newRootState: BuilderRenderState): void;
|
|
23
|
+
}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<string[]>>, {
|
|
24
|
+
[x: number]: string;
|
|
25
|
+
}>;
|
|
26
|
+
export default _sfc_main;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BuilderRenderContext, RegisteredComponent } from '../../context/types';
|
|
2
|
-
import type { ApiVersion } from '../../types/api-version';
|
|
3
|
-
import type { BuilderContent } from '../../types/builder-content';
|
|
4
|
-
import type { Nullable } from '../../types/typescript';
|
|
5
|
-
export interface
|
|
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
6
|
content?: Nullable<BuilderContent>;
|
|
7
7
|
model?: string;
|
|
8
8
|
data?: {
|
|
@@ -13,16 +13,17 @@ declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
|
13
13
|
enrich?: any;
|
|
14
14
|
}>, {}, {
|
|
15
15
|
shouldRenderVariants: boolean;
|
|
16
|
-
variantScriptStr: string;
|
|
17
|
-
hideVariantsStyleString: any;
|
|
18
16
|
getScriptString: () => string;
|
|
19
|
-
getVariants: (content: import("../../helpers/nullable").Nullable<import("../../types/builder-content").BuilderContent>) => any;
|
|
17
|
+
getVariants: (content: import("../../helpers/nullable.js").Nullable<import("../../types/builder-content.js").BuilderContent>) => any;
|
|
20
18
|
getDefaultCanTrack: (canTrack?: boolean | undefined) => boolean;
|
|
21
|
-
handleABTestingSync: ({ item, canTrack
|
|
22
|
-
item: import("../../types/typescript").Nullable<import("../../types/builder-content").BuilderContent>;
|
|
23
|
-
} & import("../../types/can-track").CanTrack) => import("../../types/typescript").Nullable<import("../../types/builder-content").BuilderContent>;
|
|
24
|
-
TARGET:
|
|
25
|
-
}, {
|
|
19
|
+
handleABTestingSync: ({ item, canTrack }: {
|
|
20
|
+
item: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").BuilderContent>;
|
|
21
|
+
} & import("../../types/can-track.js").CanTrack) => import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").BuilderContent>;
|
|
22
|
+
TARGET: import("../../types/targets.js").Target;
|
|
23
|
+
}, {
|
|
24
|
+
variantScriptStr(): string;
|
|
25
|
+
hideVariantsStyleString(): any;
|
|
26
|
+
}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
26
27
|
data?: any;
|
|
27
28
|
model?: any;
|
|
28
29
|
context?: any;
|
package/packages/_vue2/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Nullable } from '../../helpers/nullable';
|
|
2
|
-
import type { BuilderContent } from '../../types/builder-content';
|
|
1
|
+
import type { Nullable } from '../../helpers/nullable.js';
|
|
2
|
+
import type { BuilderContent } from '../../types/builder-content.js';
|
|
3
3
|
export declare const getVariants: (content: Nullable<BuilderContent>) => any;
|
|
4
|
-
export declare const checkShouldRunVariants: ({ canTrack, content
|
|
4
|
+
export declare const checkShouldRunVariants: ({ canTrack, content }: {
|
|
5
5
|
canTrack: Nullable<boolean>;
|
|
6
6
|
content: Nullable<BuilderContent>;
|
|
7
7
|
}) => boolean;
|
|
@@ -11,7 +11,7 @@ type VariantData = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare const getScriptString: () => string;
|
|
13
13
|
export declare const getVariantsScriptString: (variants: VariantData[], contentId: string) => string;
|
|
14
|
-
export declare const getRenderContentScriptString: ({ contentId, variationId
|
|
14
|
+
export declare const getRenderContentScriptString: ({ contentId, variationId }: {
|
|
15
15
|
variationId: string;
|
|
16
16
|
contentId: string;
|
|
17
17
|
}) => string;
|
|
@@ -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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is an LRU cache to hold preview content on the server-side.
|
|
3
|
+
*
|
|
4
|
+
* Note: This logic is only used by the NextJS SDK.
|
|
5
|
+
*/
|
|
6
|
+
import type { LRUCache } from 'lru-cache';
|
|
7
|
+
import type { BuilderContent } from '../../types/builder-content';
|
|
8
|
+
type BuilderLRUCache = LRUCache<string, BuilderContent>;
|
|
9
|
+
export type GlobalWCache = typeof globalThis & {
|
|
10
|
+
_BUILDER_PREVIEW_LRU_CACHE: BuilderLRUCache;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
-
export declare const getSessionId: ({ canTrack
|
|
2
|
+
export declare const getSessionId: ({ canTrack }: CanTrack) => Promise<string | undefined>;
|
|
3
3
|
export declare const createSessionId: () => string;
|
|
4
|
-
export declare const setSessionId: ({ id, canTrack
|
|
4
|
+
export declare const setSessionId: ({ id, canTrack }: {
|
|
5
5
|
id: string;
|
|
6
6
|
} & CanTrack) => Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CanTrack } from '../types/can-track.js';
|
|
2
2
|
export declare const getVisitorId: ({ canTrack }: CanTrack) => string | undefined;
|
|
3
3
|
export declare const createVisitorId: () => string;
|
|
4
|
-
export declare const setVisitorId: ({ id, canTrack
|
|
4
|
+
export declare const setVisitorId: ({ id, canTrack }: {
|
|
5
5
|
id: string;
|
|
6
6
|
} & CanTrack) => void;
|
|
@@ -2,9 +2,9 @@ export { default as Button } from '../blocks/button/button.vue';
|
|
|
2
2
|
export { default as Columns } from '../blocks/columns/columns.vue';
|
|
3
3
|
export { default as Fragment } from '../blocks/fragment/fragment.vue';
|
|
4
4
|
export { default as Image } from '../blocks/image/image.vue';
|
|
5
|
-
export { default as RenderBlocks } from '../components/
|
|
5
|
+
export { default as RenderBlocks } from '../components/blocks/blocks.vue';
|
|
6
6
|
export { default as Section } from '../blocks/section/section.vue';
|
|
7
7
|
export { default as Symbol } from '../blocks/symbol/symbol.vue';
|
|
8
8
|
export { default as Text } from '../blocks/text/text.vue';
|
|
9
9
|
export { default as Video } from '../blocks/video/video.vue';
|
|
10
|
-
export { default as RenderContent } from '../components/
|
|
10
|
+
export { default as RenderContent } from '../components/content-variants/content-variants.vue';
|
|
@@ -7,9 +7,9 @@ export { register } from './functions/register.js';
|
|
|
7
7
|
export type { InsertMenuConfig, InsertMenuItem } from './functions/register.js';
|
|
8
8
|
export { setEditorSettings } from './functions/set-editor-settings.js';
|
|
9
9
|
export type { Settings } from './functions/set-editor-settings.js';
|
|
10
|
-
export { getAllContent, getContent, processContentResult
|
|
10
|
+
export { getAllContent, getContent, processContentResult } from './functions/get-content/index.js';
|
|
11
11
|
export { getBuilderSearchParams } from './functions/get-builder-search-params/index.js';
|
|
12
12
|
export { track } from './functions/track/index.js';
|
|
13
13
|
export type { RegisteredComponent } from './context/types';
|
|
14
14
|
export type { ComponentInfo } from './types/components';
|
|
15
|
-
export type {
|
|
15
|
+
export type { ContentProps } from './components/content/content.types.js';
|