@builder.io/sdk-vue 0.0.2-2 → 0.0.3-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -1
- package/packages/_vue2/dist/block-styles.69994573.cjs +6 -0
- package/packages/_vue2/dist/block-styles.f1cd7e30.js +86 -0
- package/packages/_vue2/dist/env.d.ts +1 -0
- package/packages/_vue2/dist/get-processed-block.53da1bfe.js +40 -0
- package/packages/_vue2/dist/get-processed-block.b71c1bb2.cjs +1 -0
- package/packages/_vue2/dist/{index.e1356b24.js → index.a5e0b693.js} +143 -119
- package/packages/_vue2/dist/index.a63c466e.cjs +4 -0
- package/packages/_vue2/dist/render-block.7c0c9395.js +230 -0
- package/packages/_vue2/dist/render-block.8c8b9fed.cjs +3 -0
- package/packages/_vue2/dist/render-component-with-context.884e23d0.js +53 -0
- package/packages/_vue2/dist/render-component-with-context.eb721952.cjs +1 -0
- package/packages/_vue2/dist/{render-component.76541f08.js → render-component.7e81a5e0.js} +14 -14
- package/packages/_vue2/dist/render-component.92306f84.cjs +1 -0
- package/packages/_vue2/dist/{render-inlined-styles.0a71b4a1.cjs → render-inlined-styles.0458e786.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.fb54d112.js → render-inlined-styles.64527ebc.js} +1 -1
- package/packages/_vue2/dist/render-repeated-block.2192d332.cjs +1 -0
- package/packages/_vue2/dist/{render-repeated-block.caf201fb.js → render-repeated-block.bd19b766.js} +11 -8
- package/packages/_vue2/dist/{render-styles.79b15aed.js → render-styles.67a8bb35.js} +8 -8
- package/packages/_vue2/dist/{render-styles.76adf086.cjs → render-styles.7ab6335e.cjs} +1 -1
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.d.ts +1 -0
- package/packages/_vue2/dist/sdk.js +4 -4
- 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 +306 -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 +396 -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 +25 -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 +237 -0
- package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +116 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +141 -0
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +231 -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 +279 -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 +368 -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 +17 -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/extract-text-styles.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/fast-clone.d.ts +4 -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-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/get-react-native-block-styles.d.ts +6 -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/sanitize-react-native-block-styles.d.ts +3 -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 +5 -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.a49e972d.cjs +6 -0
- package/packages/_vue3/dist/block-styles.a91eeb93.js +83 -0
- package/packages/_vue3/dist/env.d.ts +1 -0
- package/packages/_vue3/dist/get-processed-block.0d08be3e.js +40 -0
- package/packages/_vue3/dist/get-processed-block.f32aca5e.cjs +1 -0
- package/packages/_vue3/dist/{index.eb0e01ba.js → index.06c0f5c8.js} +283 -269
- package/packages/_vue3/dist/index.4ab36c30.cjs +4 -0
- package/packages/_vue3/dist/render-block.425938f2.js +241 -0
- package/packages/_vue3/dist/render-block.5db91f52.cjs +3 -0
- package/packages/_vue3/dist/render-component-with-context.9805829c.js +50 -0
- package/packages/_vue3/dist/render-component-with-context.d09cfab0.cjs +1 -0
- package/packages/_vue3/dist/render-component.863aa9a1.cjs +1 -0
- package/packages/_vue3/dist/{render-component.963a01c2.js → render-component.87cc6d83.js} +15 -16
- package/packages/_vue3/dist/render-inlined-styles.5b918790.cjs +1 -0
- package/packages/_vue3/dist/{render-inlined-styles.1c41d49e.js → render-inlined-styles.9ac8320c.js} +7 -8
- package/packages/_vue3/dist/{render-repeated-block.760bb69a.js → render-repeated-block.3d799bba.js} +11 -9
- package/packages/_vue3/dist/render-repeated-block.9dc8238b.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.750ea842.js → render-styles.9c635f29.js} +14 -15
- package/packages/_vue3/dist/{render-styles.c0cc9565.cjs → render-styles.cb10c812.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 +7 -7
- 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 +25 -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-with-context.vue.d.ts +51 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +44 -0
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +2 -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 +50 -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 +17 -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/extract-text-styles.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/fast-clone.d.ts +4 -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-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/get-react-native-block-styles.d.ts +6 -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/sanitize-react-native-block-styles.d.ts +3 -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 +5 -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/block-styles.dd3d70e3.js +0 -56
- 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.a2f51c18.js +0 -237
- package/packages/_vue2/dist/render-block.e4f18476.cjs +0 -3
- package/packages/_vue2/dist/render-component.fc56f8dc.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.0990371f.cjs +0 -1
- 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
package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _sfc_main: {
|
|
2
|
+
name: string;
|
|
3
|
+
components: {
|
|
4
|
+
RenderComponent: {
|
|
5
|
+
name: string;
|
|
6
|
+
components: {
|
|
7
|
+
RenderBlock: any;
|
|
8
|
+
BlockStyles: {
|
|
9
|
+
name: string;
|
|
10
|
+
components: {
|
|
11
|
+
RenderInlinedStyles: {
|
|
12
|
+
name: string;
|
|
13
|
+
props: string[];
|
|
14
|
+
data: () => {
|
|
15
|
+
TARGET: string;
|
|
16
|
+
};
|
|
17
|
+
computed: {
|
|
18
|
+
injectedStyleScript(): any;
|
|
19
|
+
tagName(): string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
props: string[];
|
|
24
|
+
data: () => {
|
|
25
|
+
TARGET: string;
|
|
26
|
+
};
|
|
27
|
+
computed: {
|
|
28
|
+
useBlock(): any;
|
|
29
|
+
css(): any;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
props: string[];
|
|
34
|
+
data: () => {
|
|
35
|
+
markPropsMutable: typeof import("../../functions/mark-mutable").markPropsMutable;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
props: string[];
|
|
40
|
+
provide(): {
|
|
41
|
+
BuilderContext: {
|
|
42
|
+
readonly content: any;
|
|
43
|
+
readonly state: any;
|
|
44
|
+
readonly context: any;
|
|
45
|
+
readonly apiKey: any;
|
|
46
|
+
readonly registeredComponents: any;
|
|
47
|
+
readonly inheritedStyles: any;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
2
|
+
import type { BuilderContextInterface } from "../../context/types.js";
|
|
3
|
+
export interface RenderComponentProps {
|
|
4
|
+
componentRef: any;
|
|
5
|
+
componentOptions: any;
|
|
6
|
+
blockChildren: BuilderBlock[];
|
|
7
|
+
context: BuilderContextInterface;
|
|
8
|
+
}
|
|
9
|
+
import { markPropsMutable } from "../../functions/mark-mutable.js";
|
|
10
|
+
declare const _sfc_main: {
|
|
11
|
+
name: string;
|
|
12
|
+
components: {
|
|
13
|
+
RenderBlock: any;
|
|
14
|
+
BlockStyles: {
|
|
15
|
+
name: string;
|
|
16
|
+
components: {
|
|
17
|
+
RenderInlinedStyles: {
|
|
18
|
+
name: string;
|
|
19
|
+
props: string[];
|
|
20
|
+
data: () => {
|
|
21
|
+
TARGET: string;
|
|
22
|
+
};
|
|
23
|
+
computed: {
|
|
24
|
+
injectedStyleScript(): any;
|
|
25
|
+
tagName(): string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
props: string[];
|
|
30
|
+
data: () => {
|
|
31
|
+
TARGET: string;
|
|
32
|
+
};
|
|
33
|
+
computed: {
|
|
34
|
+
useBlock(): any;
|
|
35
|
+
css(): any;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
props: string[];
|
|
40
|
+
data: () => {
|
|
41
|
+
markPropsMutable: typeof markPropsMutable;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { BuilderBlock } from "../types/builder-block.js";
|
|
2
|
+
export declare type RenderBlockProps = {
|
|
3
|
+
blocks?: BuilderBlock[];
|
|
4
|
+
parent?: string;
|
|
5
|
+
path?: string;
|
|
6
|
+
styleProp?: Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
declare const _sfc_main: {
|
|
9
|
+
name: string;
|
|
10
|
+
components: {
|
|
11
|
+
RenderBlock: any;
|
|
12
|
+
BlockStyles: {
|
|
13
|
+
name: string;
|
|
14
|
+
components: {
|
|
15
|
+
RenderInlinedStyles: {
|
|
16
|
+
name: string;
|
|
17
|
+
props: string[];
|
|
18
|
+
data: () => {
|
|
19
|
+
TARGET: string;
|
|
20
|
+
};
|
|
21
|
+
computed: {
|
|
22
|
+
injectedStyleScript(): any;
|
|
23
|
+
tagName(): string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
props: string[];
|
|
28
|
+
data: () => {
|
|
29
|
+
TARGET: string;
|
|
30
|
+
};
|
|
31
|
+
computed: {
|
|
32
|
+
useBlock(): any;
|
|
33
|
+
css(): any;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
props: string[];
|
|
38
|
+
inject: {
|
|
39
|
+
builderContext: string;
|
|
40
|
+
};
|
|
41
|
+
computed: {
|
|
42
|
+
className(): any;
|
|
43
|
+
};
|
|
44
|
+
methods: {
|
|
45
|
+
onClick(): void;
|
|
46
|
+
onMouseEnter(): void;
|
|
47
|
+
_classStringToObject(str: any): {};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _sfc_main: {
|
|
2
|
+
name: string;
|
|
3
|
+
components: {
|
|
4
|
+
RenderInlinedStyles: {
|
|
5
|
+
name: string;
|
|
6
|
+
props: string[];
|
|
7
|
+
data: () => {
|
|
8
|
+
TARGET: string;
|
|
9
|
+
};
|
|
10
|
+
computed: {
|
|
11
|
+
injectedStyleScript(): any;
|
|
12
|
+
tagName(): string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
props: string[];
|
|
17
|
+
computed: {
|
|
18
|
+
injectedStyles(): any;
|
|
19
|
+
};
|
|
20
|
+
methods: {
|
|
21
|
+
getCssFromFont(font: any): string;
|
|
22
|
+
getFontCss({ customFonts }: {
|
|
23
|
+
customFonts: any;
|
|
24
|
+
}): any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default _sfc_main;
|
|
@@ -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
|
+
RenderContentStyles: {
|
|
20
|
+
name: string;
|
|
21
|
+
components: {
|
|
22
|
+
RenderInlinedStyles: {
|
|
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
|
+
RenderBlocks: {
|
|
46
|
+
name: string;
|
|
47
|
+
components: {
|
|
48
|
+
RenderBlock: any;
|
|
49
|
+
BlockStyles: {
|
|
50
|
+
name: string;
|
|
51
|
+
components: {
|
|
52
|
+
RenderInlinedStyles: {
|
|
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,17 @@
|
|
|
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
|
+
inheritedStyles: Record<string, unknown>;
|
|
17
|
+
}
|
|
@@ -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,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,6 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
+
export declare function getReactNativeBlockStyles({ block, context, }: {
|
|
4
|
+
block: BuilderBlock;
|
|
5
|
+
context: BuilderContextInterface;
|
|
6
|
+
}): CSSStyleDeclaration | Record<string, string | undefined>;
|
|
@@ -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>;
|