@builder.io/sdk-vue 0.0.2-2 → 0.0.2
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.dd3d70e3.js → block-styles.a3384cd8.js} +31 -15
- package/packages/_vue2/dist/block-styles.b8f018af.cjs +10 -0
- package/packages/_vue2/dist/env.d.ts +1 -0
- package/packages/_vue2/dist/get-processed-block.53761199.js +40 -0
- package/packages/_vue2/dist/get-processed-block.5b7d0290.cjs +1 -0
- package/packages/_vue2/dist/index.3fb2f85b.cjs +4 -0
- package/packages/_vue2/dist/{index.e1356b24.js → index.93374a52.js} +74 -70
- package/packages/_vue2/dist/render-block.31ab55d9.cjs +3 -0
- package/packages/_vue2/dist/{render-block.a2f51c18.js → render-block.f95552ec.js} +64 -77
- package/packages/_vue2/dist/{render-component.76541f08.js → render-component.10d6d66e.js} +3 -3
- package/packages/_vue2/dist/{render-component.fc56f8dc.cjs → render-component.4714b27b.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.fb54d112.js → render-inlined-styles.0fed22b4.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.0a71b4a1.cjs → render-inlined-styles.3826da36.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.0990371f.cjs → render-repeated-block.d8e1f3e2.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.caf201fb.js → render-repeated-block.f29194a7.js} +2 -2
- package/packages/_vue2/dist/{render-styles.76adf086.cjs → render-styles.9ff97301.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.79b15aed.js → render-styles.cd30abd1.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.d.ts +1 -0
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +174 -0
- package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue2/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +264 -0
- package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue2/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +24 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +105 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +108 -0
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +99 -0
- package/packages/_vue2/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +146 -0
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +236 -0
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue2/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue2/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue2/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue2/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue2/dist/src/context/types.d.ts +16 -0
- package/packages/_vue2/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-styles.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue2/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue2/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue2/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue2/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue2/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue2/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue2/dist/src/helpers/css.d.ts +1 -0
- package/packages/_vue2/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue2/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue2/dist/src/index.d.ts +8 -0
- package/packages/_vue2/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue2/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue2/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue2/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue2/dist/src/types/components.d.ts +177 -0
- package/packages/_vue2/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue2/dist/src/types/element.d.ts +59 -0
- package/packages/_vue2/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.867fd8f0.js +69 -0
- package/packages/_vue3/dist/block-styles.b9355d79.cjs +10 -0
- package/packages/_vue3/dist/env.d.ts +1 -0
- package/packages/_vue3/dist/get-processed-block.4d9c7a48.cjs +1 -0
- package/packages/_vue3/dist/get-processed-block.77923ee6.js +40 -0
- package/packages/_vue3/dist/{index.eb0e01ba.js → index.7b49e825.js} +132 -141
- package/packages/_vue3/dist/index.bbfd8c89.cjs +4 -0
- package/packages/_vue3/dist/render-block.1e996e4e.cjs +3 -0
- package/packages/_vue3/dist/render-block.3110fec0.js +243 -0
- package/packages/_vue3/dist/render-component.470525d5.cjs +1 -0
- package/packages/_vue3/dist/{render-component.963a01c2.js → render-component.7ca6729a.js} +11 -12
- package/packages/_vue3/dist/{render-inlined-styles.1c41d49e.js → render-inlined-styles.0b1e087d.js} +7 -8
- package/packages/_vue3/dist/render-inlined-styles.56082955.cjs +1 -0
- package/packages/_vue3/dist/{render-repeated-block.760bb69a.js → render-repeated-block.0b974ccc.js} +5 -6
- package/packages/_vue3/dist/render-repeated-block.10c41242.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.750ea842.js → render-styles.65bace65.js} +13 -14
- package/packages/_vue3/dist/{render-styles.c0cc9565.cjs → render-styles.d4412af2.cjs} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.d.ts +1 -0
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +77 -0
- package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue3/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +167 -0
- package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +24 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +10 -0
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +17 -0
- package/packages/_vue3/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +49 -0
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +139 -0
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue3/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue3/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue3/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue3/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue3/dist/src/context/types.d.ts +16 -0
- package/packages/_vue3/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-styles.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue3/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue3/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue3/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue3/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue3/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue3/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue3/dist/src/helpers/css.d.ts +1 -0
- package/packages/_vue3/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue3/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue3/dist/src/index.d.ts +8 -0
- package/packages/_vue3/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue3/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue3/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue3/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue3/dist/src/types/components.d.ts +177 -0
- package/packages/_vue3/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue3/dist/src/types/element.d.ts +59 -0
- package/packages/_vue3/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.7900ea80.cjs +0 -10
- package/packages/_vue2/dist/get-processed-block.14848083.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block.eda4b627.js +0 -57
- package/packages/_vue2/dist/index.9247eff2.cjs +0 -4
- package/packages/_vue2/dist/render-block.e4f18476.cjs +0 -3
- package/packages/_vue3/dist/block-styles.1f1fb83d.js +0 -54
- package/packages/_vue3/dist/block-styles.eb8f30fe.cjs +0 -10
- package/packages/_vue3/dist/get-processed-block.b7ff491d.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.c491559e.js +0 -57
- package/packages/_vue3/dist/index.36507004.cjs +0 -4
- package/packages/_vue3/dist/render-block.3cdd0c66.js +0 -254
- package/packages/_vue3/dist/render-block.98541a38.cjs +0 -3
- package/packages/_vue3/dist/render-component.442d659d.cjs +0 -1
- package/packages/_vue3/dist/render-inlined-styles.662df301.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.2212c878.cjs +0 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { BuilderRenderContext, RegisteredComponent } from "../../context/types.js";
|
|
2
|
+
import type { BuilderContent } from "../../types/builder-content.js";
|
|
3
|
+
import type { Nullable } from "../../types/typescript.js";
|
|
4
|
+
export declare type RenderContentProps = {
|
|
5
|
+
content?: Nullable<BuilderContent>;
|
|
6
|
+
model?: string;
|
|
7
|
+
data?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
context?: BuilderRenderContext;
|
|
11
|
+
apiKey: string;
|
|
12
|
+
customComponents?: RegisteredComponent[];
|
|
13
|
+
canTrack?: boolean;
|
|
14
|
+
};
|
|
15
|
+
import { markMutable } from "../../functions/mark-mutable.js";
|
|
16
|
+
declare const _sfc_main: {
|
|
17
|
+
name: string;
|
|
18
|
+
components: {
|
|
19
|
+
"render-content-styles": {
|
|
20
|
+
name: string;
|
|
21
|
+
components: {
|
|
22
|
+
"render-inlined-styles": {
|
|
23
|
+
name: string;
|
|
24
|
+
props: string[];
|
|
25
|
+
data: () => {
|
|
26
|
+
TARGET: string;
|
|
27
|
+
};
|
|
28
|
+
computed: {
|
|
29
|
+
injectedStyleScript(): any;
|
|
30
|
+
tagName(): string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
props: string[];
|
|
35
|
+
computed: {
|
|
36
|
+
injectedStyles(): any;
|
|
37
|
+
};
|
|
38
|
+
methods: {
|
|
39
|
+
getCssFromFont(font: any): string;
|
|
40
|
+
getFontCss({ customFonts }: {
|
|
41
|
+
customFonts: any;
|
|
42
|
+
}): any;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
"render-blocks": {
|
|
46
|
+
name: string;
|
|
47
|
+
components: {
|
|
48
|
+
"render-block": any;
|
|
49
|
+
"block-styles": {
|
|
50
|
+
name: string;
|
|
51
|
+
components: {
|
|
52
|
+
"render-inlined-styles": {
|
|
53
|
+
name: string;
|
|
54
|
+
props: string[];
|
|
55
|
+
data: () => {
|
|
56
|
+
TARGET: string;
|
|
57
|
+
};
|
|
58
|
+
computed: {
|
|
59
|
+
injectedStyleScript(): any;
|
|
60
|
+
tagName(): string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
props: string[];
|
|
65
|
+
data: () => {
|
|
66
|
+
TARGET: string;
|
|
67
|
+
};
|
|
68
|
+
computed: {
|
|
69
|
+
useBlock(): any;
|
|
70
|
+
css(): any;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
props: string[];
|
|
75
|
+
inject: {
|
|
76
|
+
builderContext: string;
|
|
77
|
+
};
|
|
78
|
+
computed: {
|
|
79
|
+
className(): any;
|
|
80
|
+
};
|
|
81
|
+
methods: {
|
|
82
|
+
onClick(): void;
|
|
83
|
+
onMouseEnter(): void;
|
|
84
|
+
_classStringToObject(str: any): {};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
props: string[];
|
|
89
|
+
data: () => {
|
|
90
|
+
forceReRenderCount: number;
|
|
91
|
+
overrideContent: null;
|
|
92
|
+
update: number;
|
|
93
|
+
overrideState: {};
|
|
94
|
+
markMutable: typeof markMutable;
|
|
95
|
+
};
|
|
96
|
+
provide(): {
|
|
97
|
+
BuilderContext: {
|
|
98
|
+
readonly content: any;
|
|
99
|
+
readonly state: any;
|
|
100
|
+
readonly context: any;
|
|
101
|
+
readonly apiKey: any;
|
|
102
|
+
readonly registeredComponents: any;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
mounted(): void;
|
|
106
|
+
watch: {
|
|
107
|
+
onUpdateHook0(): void;
|
|
108
|
+
onUpdateHook1(): void;
|
|
109
|
+
onUpdateHook2(): void;
|
|
110
|
+
};
|
|
111
|
+
unmounted(): void;
|
|
112
|
+
computed: {
|
|
113
|
+
useContent(): any;
|
|
114
|
+
canTrackToUse(): any;
|
|
115
|
+
contentState(): any;
|
|
116
|
+
contextContext(): any;
|
|
117
|
+
allRegisteredComponents(): any;
|
|
118
|
+
httpReqsData(): {};
|
|
119
|
+
shouldRenderContentStyles(): any;
|
|
120
|
+
onUpdateHook0(): any;
|
|
121
|
+
onUpdateHook1(): any;
|
|
122
|
+
onUpdateHook2(): {
|
|
123
|
+
0: () => any;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
methods: {
|
|
127
|
+
processMessage(event: any): void;
|
|
128
|
+
evaluateJsCode(): void;
|
|
129
|
+
onClick(_event: any): void;
|
|
130
|
+
evalExpression(expression: any): any;
|
|
131
|
+
handleRequest({ url, key }: {
|
|
132
|
+
url: any;
|
|
133
|
+
key: any;
|
|
134
|
+
}): void;
|
|
135
|
+
runHttpRequests(): void;
|
|
136
|
+
emitStateUpdate(): void;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RegisteredComponent } from '../context/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a list of all registered components.
|
|
4
|
+
* NOTE: This needs to be a function to work around ESM circular dependencies.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getDefaultRegisteredComponents: () => RegisteredComponent[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BuilderContent } from '../types/builder-content.js';
|
|
2
|
+
import type { ComponentInfo } from '../types/components.js';
|
|
3
|
+
import type { Dictionary, Nullable } from '../types/typescript.js';
|
|
4
|
+
export declare type RegisteredComponent = ComponentInfo & {
|
|
5
|
+
component: any;
|
|
6
|
+
};
|
|
7
|
+
export declare type RegisteredComponents = Dictionary<RegisteredComponent>;
|
|
8
|
+
export declare type BuilderRenderState = Record<string, unknown>;
|
|
9
|
+
export declare type BuilderRenderContext = Record<string, unknown>;
|
|
10
|
+
export interface BuilderContextInterface {
|
|
11
|
+
content: Nullable<BuilderContent>;
|
|
12
|
+
context: BuilderRenderContext;
|
|
13
|
+
state: BuilderRenderState;
|
|
14
|
+
apiKey: string | null;
|
|
15
|
+
registeredComponents: RegisteredComponents;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const camelToKebabCase: (string: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getEventHandlerName: (key: string) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
+
export declare function crateEventHandler(value: string, options: {
|
|
4
|
+
block: BuilderBlock;
|
|
5
|
+
} & Pick<BuilderContextInterface, 'state' | 'context'>): (event: Event) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
+
declare type Actions = {
|
|
4
|
+
[index: string]: (event: Event) => any;
|
|
5
|
+
};
|
|
6
|
+
export declare function getBlockActions(options: {
|
|
7
|
+
block: BuilderBlock;
|
|
8
|
+
} & Pick<BuilderContextInterface, 'state' | 'context'>): Actions;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getBlockStyles(): {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare type QueryObject = Record<string, string>;
|
|
2
|
+
export declare const convertSearchParamsToQueryObject: (searchParams: URLSearchParams) => QueryObject;
|
|
3
|
+
export declare const getBuilderSearchParams: (_options: QueryObject | URLSearchParams | undefined) => QueryObject;
|
|
4
|
+
export declare const getBuilderSearchParamsFromWindow: () => QueryObject;
|
|
5
|
+
export declare const normalizeSearchParams: (searchParams: QueryObject | URLSearchParams) => QueryObject;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BuilderContent } from '../../types/builder-content.js';
|
|
2
|
+
export declare type GetContentOptions = import('./types.js').GetContentOptions;
|
|
3
|
+
export declare function getContent(options: GetContentOptions): Promise<BuilderContent | null>;
|
|
4
|
+
export declare const generateContentUrl: (options: GetContentOptions) => URL;
|
|
5
|
+
interface ContentResponse {
|
|
6
|
+
results: BuilderContent[];
|
|
7
|
+
}
|
|
8
|
+
export declare function getAllContent(options: GetContentOptions): Promise<ContentResponse>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface GetContentOptions {
|
|
2
|
+
/** The model to get content for */
|
|
3
|
+
model: string;
|
|
4
|
+
/** Your public API key */
|
|
5
|
+
apiKey: string;
|
|
6
|
+
/** Number of items to fetch. Default is 1 */
|
|
7
|
+
limit?: number;
|
|
8
|
+
/** User attributes to target on, such as { urlPath: '/foo', device: 'mobile', ...etc } */
|
|
9
|
+
userAttributes?: (Record<string, string> & {
|
|
10
|
+
urlPath?: string;
|
|
11
|
+
}) | null;
|
|
12
|
+
/** Custom query */
|
|
13
|
+
query?: Record<string, any>;
|
|
14
|
+
/**
|
|
15
|
+
* Any other API options.
|
|
16
|
+
* Accepts both a key/value object or a `URLSearchParams` instance
|
|
17
|
+
* */
|
|
18
|
+
options?: Record<string, any> | URLSearchParams;
|
|
19
|
+
/**
|
|
20
|
+
* If set to `true`, it will lazy load symbols/references.
|
|
21
|
+
* If set to `false`, it will render the entire content tree eagerly.
|
|
22
|
+
*/
|
|
23
|
+
noTraverse?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* If set to `false`, it will not use cookies to target content. Therefore, A/B Testing will be disabled and
|
|
26
|
+
* only the default variation will be returned to every user.
|
|
27
|
+
*
|
|
28
|
+
* Defaults to `true`.
|
|
29
|
+
*/
|
|
30
|
+
canTrack?: boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getFetch(): Promise<typeof global.fetch>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getGlobalThis(): any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
+
export declare function getProcessedBlock({ block, context, shouldEvaluateBindings, state, }: {
|
|
4
|
+
block: BuilderBlock;
|
|
5
|
+
/**
|
|
6
|
+
* In some cases, we want to avoid evaluating bindings and only want framework-specific block transformation. It is
|
|
7
|
+
* also sometimes too early to consider bindings, e.g. when we might be looking at a repeated block.
|
|
8
|
+
*/
|
|
9
|
+
shouldEvaluateBindings: boolean;
|
|
10
|
+
} & Pick<BuilderContextInterface, 'state' | 'context'>): BuilderBlock;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isBrowser(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isEditing(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isIframe(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isPreviewing(): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RegisteredComponent } from '../context/types.js';
|
|
2
|
+
import type { ComponentInfo } from '../types/components.js';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.
|
|
5
|
+
*/
|
|
6
|
+
export declare const components: RegisteredComponent[];
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.
|
|
9
|
+
*/
|
|
10
|
+
export declare function registerComponent(component: any, info: ComponentInfo): void;
|
|
11
|
+
export declare const createRegisterComponentMessage: ({ component: _, ...info }: RegisteredComponent) => {
|
|
12
|
+
type: string;
|
|
13
|
+
data: ComponentInfo;
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
2
|
+
import type { DeepPartial } from '../types/deep-partial.js';
|
|
3
|
+
export interface InsertMenuItem {
|
|
4
|
+
name: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
item: DeepPartial<BuilderBlock>;
|
|
7
|
+
}
|
|
8
|
+
export interface InsertMenuConfig {
|
|
9
|
+
name: string;
|
|
10
|
+
priority?: number;
|
|
11
|
+
persist?: boolean;
|
|
12
|
+
advanced?: boolean;
|
|
13
|
+
items: InsertMenuItem[];
|
|
14
|
+
}
|
|
15
|
+
export declare function register(type: 'insertMenu', info: InsertMenuConfig): void;
|
|
16
|
+
export declare function register(type: string, info: any): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
interface Event {
|
|
3
|
+
type: 'click' | 'impression';
|
|
4
|
+
data: {
|
|
5
|
+
contentId?: string;
|
|
6
|
+
ownerId: string;
|
|
7
|
+
metadata?: string;
|
|
8
|
+
sessionId: string | undefined;
|
|
9
|
+
visitorId: string | undefined;
|
|
10
|
+
[index: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
declare type EventProperties = {
|
|
14
|
+
type: Event['type'];
|
|
15
|
+
orgId: Event['data']['ownerId'];
|
|
16
|
+
contentId: Event['data']['contentId'];
|
|
17
|
+
[index: string]: any;
|
|
18
|
+
};
|
|
19
|
+
export declare type EventProps = EventProperties & CanTrack;
|
|
20
|
+
export declare function track(eventProps: EventProps): Promise<void | Response>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
export declare const getContentVariationCookie: ({ contentId, canTrack, }: {
|
|
3
|
+
contentId: string;
|
|
4
|
+
} & CanTrack) => Promise<string | undefined>;
|
|
5
|
+
export declare const setContentVariationCookie: ({ contentId, canTrack, value, }: {
|
|
6
|
+
contentId: string;
|
|
7
|
+
value: string;
|
|
8
|
+
} & CanTrack) => Promise<undefined>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
/**
|
|
3
|
+
* NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
|
|
4
|
+
*/
|
|
5
|
+
export declare const getCookie: ({ name, canTrack, }: {
|
|
6
|
+
name: string;
|
|
7
|
+
} & CanTrack) => Promise<string | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
|
|
10
|
+
*/
|
|
11
|
+
export declare const setCookie: ({ name, value, expires, canTrack, }: {
|
|
12
|
+
name: string;
|
|
13
|
+
value: string;
|
|
14
|
+
expires?: Date | undefined;
|
|
15
|
+
} & CanTrack) => Promise<undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertStyleMaptoCSS: (style: Partial<CSSStyleDeclaration>) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
export declare const getLocalStorageItem: ({ key, canTrack, }: {
|
|
3
|
+
key: string;
|
|
4
|
+
} & CanTrack) => string | null | undefined;
|
|
5
|
+
export declare const setLocalStorageItem: ({ key, canTrack, value, }: {
|
|
6
|
+
key: string;
|
|
7
|
+
value: string;
|
|
8
|
+
} & CanTrack) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
export declare const getSessionId: ({ canTrack }: CanTrack) => Promise<string | undefined>;
|
|
3
|
+
export declare const createSessionId: () => string;
|
|
4
|
+
export declare const setSessionId: ({ id, canTrack, }: {
|
|
5
|
+
id: string;
|
|
6
|
+
} & CanTrack) => Promise<undefined>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
export declare const getVisitorId: ({ canTrack }: CanTrack) => string | undefined;
|
|
3
|
+
export declare const createVisitorId: () => string;
|
|
4
|
+
export declare const setVisitorId: ({ id, canTrack, }: {
|
|
5
|
+
id: string;
|
|
6
|
+
} & CanTrack) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as Columns } from '../blocks/columns/columns.vue';
|
|
2
|
+
export { default as Image } from '../blocks/image/image.vue';
|
|
3
|
+
export { default as Text } from '../blocks/text/text.vue';
|
|
4
|
+
export { default as Video } from '../blocks/video/video.vue';
|
|
5
|
+
export { default as Symbol } from '../blocks/symbol/symbol.vue';
|
|
6
|
+
export { default as Button } from '../blocks/button/button.vue';
|
|
7
|
+
export { default as Section } from '../blocks/section/section.vue';
|
|
8
|
+
export { default as Fragment } from '../blocks/fragment/fragment.vue';
|
|
9
|
+
export { default as RenderContent } from '../components/render-content/render-content.vue';
|
|
10
|
+
export { default as RenderBlocks } from '../components/render-blocks.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './index-helpers/blocks-exports.js';
|
|
2
|
+
export * from './functions/is-editing.js';
|
|
3
|
+
export * from './functions/is-previewing.js';
|
|
4
|
+
export * from './functions/register-component.js';
|
|
5
|
+
export * from './functions/register.js';
|
|
6
|
+
export * from './functions/set-editor-settings.js';
|
|
7
|
+
export * from './functions/get-content/index.js';
|
|
8
|
+
export * from './functions/get-builder-search-params/index.js';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare type JSONValue = string | number | boolean | JSONObject | JSONArray;
|
|
2
|
+
interface JSONObject {
|
|
3
|
+
[x: string]: JSONValue;
|
|
4
|
+
}
|
|
5
|
+
interface JSONArray extends Array<JSONValue> {
|
|
6
|
+
}
|
|
7
|
+
/** @todo typedoc this */
|
|
8
|
+
export interface BuilderBlock {
|
|
9
|
+
'@type': '@builder.io/sdk:Element';
|
|
10
|
+
'@version'?: number;
|
|
11
|
+
id?: string;
|
|
12
|
+
tagName?: string;
|
|
13
|
+
layerName?: string;
|
|
14
|
+
groupLocked?: boolean;
|
|
15
|
+
layerLocked?: boolean;
|
|
16
|
+
/** @todo make alias for properties.class */
|
|
17
|
+
class?: string;
|
|
18
|
+
children?: BuilderBlock[];
|
|
19
|
+
responsiveStyles?: {
|
|
20
|
+
large?: Partial<CSSStyleDeclaration>;
|
|
21
|
+
medium?: Partial<CSSStyleDeclaration>;
|
|
22
|
+
small?: Partial<CSSStyleDeclaration>;
|
|
23
|
+
/** @deprecated */
|
|
24
|
+
xsmall?: Partial<CSSStyleDeclaration>;
|
|
25
|
+
};
|
|
26
|
+
component?: {
|
|
27
|
+
name: string;
|
|
28
|
+
options?: any;
|
|
29
|
+
tag?: string;
|
|
30
|
+
};
|
|
31
|
+
bindings?: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
meta?: {
|
|
35
|
+
[key: string]: JSONValue;
|
|
36
|
+
};
|
|
37
|
+
actions?: {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
properties?: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
code?: {
|
|
44
|
+
bindings?: {
|
|
45
|
+
[key: string]: string;
|
|
46
|
+
};
|
|
47
|
+
actions?: {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
repeat?: {
|
|
52
|
+
collection: string;
|
|
53
|
+
itemName?: string;
|
|
54
|
+
} | null;
|
|
55
|
+
animations?: any[];
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { BuilderBlock } from './builder-block.js';
|
|
2
|
+
declare type Input = any;
|
|
3
|
+
export interface BuilderContentVariation {
|
|
4
|
+
data?: {
|
|
5
|
+
title?: string;
|
|
6
|
+
blocks?: BuilderBlock[];
|
|
7
|
+
inputs?: Input[];
|
|
8
|
+
state?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
jsCode?: string;
|
|
12
|
+
tsCode?: string;
|
|
13
|
+
httpRequests?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
name?: string;
|
|
19
|
+
testRatio?: number;
|
|
20
|
+
id?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface BuilderContent extends BuilderContentVariation {
|
|
23
|
+
'@version'?: number;
|
|
24
|
+
id?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
published?: 'published' | 'draft' | 'archived';
|
|
27
|
+
modelId?: string;
|
|
28
|
+
priority?: number;
|
|
29
|
+
lastUpdated?: number;
|
|
30
|
+
startDate?: number;
|
|
31
|
+
endDate?: number;
|
|
32
|
+
variations?: {
|
|
33
|
+
[id: string]: BuilderContentVariation | undefined;
|
|
34
|
+
};
|
|
35
|
+
testVariationId?: string;
|
|
36
|
+
testVariationName?: string;
|
|
37
|
+
}
|
|
38
|
+
export {};
|