@builder.io/sdk-vue 0.0.3-1 → 0.0.3
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/README.md +2 -14
- package/package.json +5 -4
- package/packages/_vue2/dist/{block-styles.c531694e.cjs → block-styles.7d59e6ba.cjs} +2 -2
- package/packages/_vue2/dist/{block-styles.234651b2.js → block-styles.bc1f94cc.js} +3 -3
- package/packages/_vue2/dist/get-processed-block.73e1ad82.js +40 -0
- package/packages/_vue2/dist/get-processed-block.c83086c1.cjs +1 -0
- package/packages/_vue2/dist/{index.19474a4f.js → index.02cbe11b.js} +302 -300
- package/packages/_vue2/dist/index.1d7bcb8c.cjs +4 -0
- package/packages/_vue2/dist/render-block.4d368620.cjs +3 -0
- package/packages/_vue2/dist/{render-block.3cf39e0e.js → render-block.4fdcffb1.js} +31 -38
- package/packages/_vue2/dist/render-component-with-context.45bddebc.js +53 -0
- package/packages/_vue2/dist/render-component-with-context.83718839.cjs +1 -0
- package/packages/_vue2/dist/{render-component.a9d4efb1.cjs → render-component.4b341c2e.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.56e5101d.js → render-component.a8a981da.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.b6534355.js → render-inlined-styles.198fc516.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.9b6439ce.cjs → render-inlined-styles.d903e589.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.3e536590.js → render-repeated-block.7547b966.js} +2 -2
- package/packages/_vue2/dist/{render-repeated-block.95861e2e.cjs → render-repeated-block.d2d7376a.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.9d4787d0.cjs → render-styles.2b14f2b8.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.ad89c45c.js → render-styles.d7585530.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- 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.e3632a69.cjs → block-styles.44a21830.cjs} +2 -2
- package/packages/_vue3/dist/{block-styles.88005ace.js → block-styles.4fb6c64e.js} +3 -3
- package/packages/_vue3/dist/get-processed-block.19c3700a.js +40 -0
- package/packages/_vue3/dist/get-processed-block.d0247791.cjs +1 -0
- package/packages/_vue3/dist/index.acbcbf48.cjs +4 -0
- package/packages/_vue3/dist/{index.2472a241.js → index.c45f283d.js} +305 -302
- package/packages/_vue3/dist/render-block.9c91f64e.cjs +3 -0
- package/packages/_vue3/dist/{render-block.593fc01c.js → render-block.a0b27065.js} +78 -95
- package/packages/_vue3/dist/{render-component-with-context.f5cab824.js → render-component-with-context.205a19d1.js} +15 -10
- package/packages/_vue3/dist/render-component-with-context.fd83122c.cjs +1 -0
- package/packages/_vue3/dist/{render-component.06b4587b.cjs → render-component.38a974b8.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.d5c26257.js → render-component.fbf7bbcb.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.be1aba8b.js → render-inlined-styles.3f53b0f1.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.3fab5467.cjs → render-inlined-styles.631d4b7f.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.d1580cb5.cjs → render-repeated-block.35b18332.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.1d1c64a8.js → render-repeated-block.4f78496b.js} +2 -2
- package/packages/_vue3/dist/{render-styles.4717b645.cjs → render-styles.1482932c.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.efaaccdf.js → render-styles.32666ea6.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- 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/get-processed-block.1ba91586.js +0 -40
- package/packages/_vue2/dist/get-processed-block.6a23a7de.cjs +0 -1
- package/packages/_vue2/dist/index.e85eb7cf.cjs +0 -4
- package/packages/_vue2/dist/render-block.4f260352.cjs +0 -3
- package/packages/_vue2/dist/render-component-with-context.dcb1f5da.js +0 -53
- package/packages/_vue2/dist/render-component-with-context.f76bfccc.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.0d475a13.js +0 -40
- package/packages/_vue3/dist/get-processed-block.c75eb6d1.cjs +0 -1
- package/packages/_vue3/dist/index.e7c6fe34.cjs +0 -4
- package/packages/_vue3/dist/render-block.92199649.cjs +0 -3
- package/packages/_vue3/dist/render-component-with-context.fb4f86a9.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getSrcSet(url: string): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
2
|
+
export interface ImageProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
image: string;
|
|
5
|
+
sizes?: string;
|
|
6
|
+
lazy?: boolean;
|
|
7
|
+
height?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
altText?: string;
|
|
10
|
+
backgroundSize?: string;
|
|
11
|
+
backgroundPosition?: string;
|
|
12
|
+
srcset?: string;
|
|
13
|
+
aspectRatio?: number;
|
|
14
|
+
children?: JSX.Element;
|
|
15
|
+
fitContent?: boolean;
|
|
16
|
+
builderBlock?: BuilderBlock;
|
|
17
|
+
noWebp?: boolean;
|
|
18
|
+
src?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const _sfc_main: {
|
|
21
|
+
name: string;
|
|
22
|
+
props: string[];
|
|
23
|
+
computed: {
|
|
24
|
+
srcSetToUse(): any;
|
|
25
|
+
webpSrcSet(): any;
|
|
26
|
+
};
|
|
27
|
+
methods: {
|
|
28
|
+
_classStringToObject(str: any): {};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ImgProps {
|
|
2
|
+
attributes?: any;
|
|
3
|
+
imgSrc?: string;
|
|
4
|
+
image?: string;
|
|
5
|
+
altText?: string;
|
|
6
|
+
backgroundSize?: "cover" | "contain";
|
|
7
|
+
backgroundPosition?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
|
|
8
|
+
}
|
|
9
|
+
import { isEditing } from "../../functions/is-editing.js";
|
|
10
|
+
declare const _sfc_main: {
|
|
11
|
+
name: string;
|
|
12
|
+
props: string[];
|
|
13
|
+
data: () => {
|
|
14
|
+
isEditing: typeof isEditing;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import type { BuilderContent } from "../../types/builder-content.js";
|
|
2
|
+
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
3
|
+
export interface SymbolInfo {
|
|
4
|
+
model?: string;
|
|
5
|
+
entry?: string;
|
|
6
|
+
data?: any;
|
|
7
|
+
content?: BuilderContent;
|
|
8
|
+
inline?: boolean;
|
|
9
|
+
dynamic?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SymbolProps {
|
|
12
|
+
symbol?: SymbolInfo;
|
|
13
|
+
dataOnly?: boolean;
|
|
14
|
+
dynamic?: boolean;
|
|
15
|
+
builderBlock?: BuilderBlock;
|
|
16
|
+
attributes?: any;
|
|
17
|
+
inheritState?: boolean;
|
|
18
|
+
}
|
|
19
|
+
import { markMutable } from "../../functions/mark-mutable";
|
|
20
|
+
declare const _sfc_main: {
|
|
21
|
+
name: string;
|
|
22
|
+
components: {
|
|
23
|
+
RenderContent: {
|
|
24
|
+
name: string;
|
|
25
|
+
components: {
|
|
26
|
+
RenderContentStyles: {
|
|
27
|
+
name: string;
|
|
28
|
+
components: {
|
|
29
|
+
RenderInlinedStyles: {
|
|
30
|
+
name: string;
|
|
31
|
+
props: string[];
|
|
32
|
+
data: () => {
|
|
33
|
+
TARGET: string;
|
|
34
|
+
};
|
|
35
|
+
computed: {
|
|
36
|
+
injectedStyleScript(): any;
|
|
37
|
+
tagName(): string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
props: string[];
|
|
42
|
+
computed: {
|
|
43
|
+
injectedStyles(): any;
|
|
44
|
+
};
|
|
45
|
+
methods: {
|
|
46
|
+
getCssFromFont(font: any): string;
|
|
47
|
+
getFontCss({ customFonts }: {
|
|
48
|
+
customFonts: any;
|
|
49
|
+
}): any;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
RenderBlocks: {
|
|
53
|
+
name: string;
|
|
54
|
+
components: {
|
|
55
|
+
RenderBlock: any;
|
|
56
|
+
BlockStyles: {
|
|
57
|
+
name: string;
|
|
58
|
+
components: {
|
|
59
|
+
RenderInlinedStyles: {
|
|
60
|
+
name: string;
|
|
61
|
+
props: string[];
|
|
62
|
+
data: () => {
|
|
63
|
+
TARGET: string;
|
|
64
|
+
};
|
|
65
|
+
computed: {
|
|
66
|
+
injectedStyleScript(): any;
|
|
67
|
+
tagName(): string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
props: string[];
|
|
72
|
+
data: () => {
|
|
73
|
+
TARGET: string;
|
|
74
|
+
};
|
|
75
|
+
computed: {
|
|
76
|
+
useBlock(): any;
|
|
77
|
+
css(): any;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
props: string[];
|
|
82
|
+
inject: {
|
|
83
|
+
builderContext: string;
|
|
84
|
+
};
|
|
85
|
+
computed: {
|
|
86
|
+
className(): any;
|
|
87
|
+
};
|
|
88
|
+
methods: {
|
|
89
|
+
onClick(): void;
|
|
90
|
+
onMouseEnter(): void;
|
|
91
|
+
_classStringToObject(str: any): {};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
props: string[];
|
|
96
|
+
data: () => {
|
|
97
|
+
forceReRenderCount: number;
|
|
98
|
+
overrideContent: null;
|
|
99
|
+
update: number;
|
|
100
|
+
overrideState: {};
|
|
101
|
+
markMutable: typeof markMutable;
|
|
102
|
+
};
|
|
103
|
+
provide(): {
|
|
104
|
+
BuilderContext: {
|
|
105
|
+
readonly content: any;
|
|
106
|
+
readonly state: any;
|
|
107
|
+
readonly context: any;
|
|
108
|
+
readonly apiKey: any;
|
|
109
|
+
readonly registeredComponents: any;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
mounted(): void;
|
|
113
|
+
watch: {
|
|
114
|
+
onUpdateHook0(): void;
|
|
115
|
+
onUpdateHook1(): void;
|
|
116
|
+
onUpdateHook2(): void;
|
|
117
|
+
};
|
|
118
|
+
unmounted(): void;
|
|
119
|
+
computed: {
|
|
120
|
+
useContent(): any;
|
|
121
|
+
canTrackToUse(): any;
|
|
122
|
+
contentState(): any;
|
|
123
|
+
contextContext(): any;
|
|
124
|
+
allRegisteredComponents(): any;
|
|
125
|
+
httpReqsData(): {};
|
|
126
|
+
shouldRenderContentStyles(): any;
|
|
127
|
+
onUpdateHook0(): any;
|
|
128
|
+
onUpdateHook1(): any;
|
|
129
|
+
onUpdateHook2(): {
|
|
130
|
+
0: () => any;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
methods: {
|
|
134
|
+
processMessage(event: any): void;
|
|
135
|
+
evaluateJsCode(): void;
|
|
136
|
+
onClick(_event: any): void;
|
|
137
|
+
evalExpression(expression: any): any;
|
|
138
|
+
handleRequest({ url, key }: {
|
|
139
|
+
url: any;
|
|
140
|
+
key: any;
|
|
141
|
+
}): void;
|
|
142
|
+
runHttpRequests(): void;
|
|
143
|
+
emitStateUpdate(): void;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
props: string[];
|
|
148
|
+
data: () => {
|
|
149
|
+
className: string;
|
|
150
|
+
fetchedContent: null;
|
|
151
|
+
markMutable: typeof markMutable;
|
|
152
|
+
};
|
|
153
|
+
inject: {
|
|
154
|
+
builderContext: string;
|
|
155
|
+
};
|
|
156
|
+
watch: {
|
|
157
|
+
onUpdateHook0(): void;
|
|
158
|
+
};
|
|
159
|
+
computed: {
|
|
160
|
+
contentToUse(): any;
|
|
161
|
+
onUpdateHook0(): any;
|
|
162
|
+
};
|
|
163
|
+
methods: {
|
|
164
|
+
_classStringToObject(str: any): {};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function markSerializable<FN extends (...args: any[]) => any>(fn: FN): FN;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface VideoProps {
|
|
2
|
+
attributes?: any;
|
|
3
|
+
video?: string;
|
|
4
|
+
autoPlay?: boolean;
|
|
5
|
+
controls?: boolean;
|
|
6
|
+
muted?: boolean;
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
playsInline?: boolean;
|
|
9
|
+
aspectRatio?: number;
|
|
10
|
+
width?: number;
|
|
11
|
+
height?: number;
|
|
12
|
+
fit?: "contain" | "cover" | "fill";
|
|
13
|
+
position?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
|
|
14
|
+
posterImage?: string;
|
|
15
|
+
lazyLoad?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _sfc_main: {
|
|
18
|
+
name: string;
|
|
19
|
+
props: string[];
|
|
20
|
+
computed: {
|
|
21
|
+
videoProps(): any;
|
|
22
|
+
spreadProps(): any;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from "../../context/types.js";
|
|
2
|
+
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
3
|
+
export declare type BlockStylesProps = {
|
|
4
|
+
block: BuilderBlock;
|
|
5
|
+
context: BuilderContextInterface;
|
|
6
|
+
};
|
|
7
|
+
declare const _sfc_main: {
|
|
8
|
+
name: string;
|
|
9
|
+
components: {
|
|
10
|
+
RenderInlinedStyles: {
|
|
11
|
+
name: string;
|
|
12
|
+
props: string[];
|
|
13
|
+
data: () => {
|
|
14
|
+
TARGET: string;
|
|
15
|
+
};
|
|
16
|
+
computed: {
|
|
17
|
+
injectedStyleScript(): any;
|
|
18
|
+
tagName(): string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
props: string[];
|
|
23
|
+
data: () => {
|
|
24
|
+
TARGET: string;
|
|
25
|
+
};
|
|
26
|
+
computed: {
|
|
27
|
+
useBlock(): any;
|
|
28
|
+
css(): any;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isEmptyHtmlElement: (tagName: unknown) => boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from "../../context/types.js";
|
|
2
|
+
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
3
|
+
export declare type RenderBlockProps = {
|
|
4
|
+
block: BuilderBlock;
|
|
5
|
+
context: BuilderContextInterface;
|
|
6
|
+
};
|
|
7
|
+
declare const _sfc_main: any;
|
|
8
|
+
export default _sfc_main;
|
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;
|