@builder.io/sdk-vue 2.0.5 → 2.0.13
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/lib/browser/block-styles-03Qg_nl9.js +76 -0
- package/lib/browser/block-styles-NluRxFx2.cjs +1 -0
- package/lib/browser/{block-wrapper-rbABMVr_.js → block-wrapper-7wDwU1ik.js} +3 -3
- package/lib/browser/{block-wrapper-2KXOiTI2.cjs → block-wrapper-ianIz_MG.cjs} +1 -1
- package/lib/browser/blocks/accordion/accordion.vue.d.ts +6 -6
- package/lib/browser/blocks/button/button.vue.d.ts +3 -3
- package/lib/browser/blocks/columns/columns.vue.d.ts +9 -9
- package/lib/browser/blocks/form/form/form.vue.d.ts +9 -9
- package/lib/browser/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/browser/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/browser/blocks/image/image.vue.d.ts +3 -3
- package/lib/browser/blocks/img/img.vue.d.ts +3 -3
- package/lib/browser/blocks/section/section.vue.d.ts +3 -3
- package/lib/browser/blocks/slot/slot.vue.d.ts +5 -2
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +9 -9
- package/lib/browser/blocks/tabs/tabs.vue.d.ts +3 -3
- package/lib/browser/blocks/video/video.vue.d.ts +6 -6
- package/lib/browser/{component-ref-l_tRyac5.cjs → component-ref-MlfJPaLv.cjs} +1 -1
- package/lib/browser/{component-ref-dDrd_qBD.js → component-ref-yQ6WDHbR.js} +2 -2
- package/lib/browser/components/block/block.helpers.d.ts +1 -2
- package/lib/browser/components/block/block.vue.d.ts +10 -5
- package/lib/browser/components/block/components/block-styles.vue.d.ts +1 -1
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
- package/lib/browser/components/block/components/repeated-block.vue.d.ts +3 -3
- package/lib/browser/components/blocks/blocks.vue.d.ts +3 -3
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +12 -12
- package/lib/browser/components/content/content.vue.d.ts +18 -18
- package/lib/browser/components/content-variants/content-variants.types.d.ts +2 -1
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -12
- package/lib/browser/components/content-variants/extra-framework-props-types.d.ts +2 -0
- package/lib/browser/components/inlined-styles.vue.d.ts +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/extra-context-types.d.ts +6 -0
- package/lib/browser/context/types.d.ts +2 -1
- package/lib/browser/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/lib/browser/functions/get-processed-block.d.ts +1 -0
- package/lib/browser/functions/register-component.d.ts +1 -1
- package/lib/browser/{get-block-properties-BfIn2Yi4.cjs → get-block-properties-Cj0ih41l.cjs} +1 -1
- package/lib/browser/{get-block-properties-ahTVSOXd.js → get-block-properties-ROTqTJZ3.js} +6 -6
- package/lib/browser/{index-1Z3BnsMm.js → index-3j8dJ25f.js} +1420 -1369
- package/lib/browser/index-sPD8fzSJ.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/browser/{repeated-block-IGwzL-5u.cjs → repeated-block-BBHHbrlK.cjs} +1 -1
- package/lib/browser/{repeated-block-ai9MmzuH.js → repeated-block-_EQDFqYb.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/edge/block-styles-TkeDyfA0.cjs +1 -0
- package/lib/edge/block-styles-mSowNIFi.js +75 -0
- package/lib/{node/block-wrapper-pzm9ydqd.cjs → edge/block-wrapper-BxeE3u_2.cjs} +1 -1
- package/lib/edge/{block-wrapper-tFFuq_Mc.js → block-wrapper-EnFwFXwA.js} +3 -3
- package/lib/edge/blocks/accordion/accordion.vue.d.ts +6 -6
- package/lib/edge/blocks/button/button.vue.d.ts +3 -3
- package/lib/edge/blocks/columns/columns.vue.d.ts +9 -9
- package/lib/edge/blocks/form/form/form.vue.d.ts +9 -9
- package/lib/edge/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/edge/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/edge/blocks/image/image.vue.d.ts +3 -3
- package/lib/edge/blocks/img/img.vue.d.ts +3 -3
- package/lib/edge/blocks/section/section.vue.d.ts +3 -3
- package/lib/edge/blocks/slot/slot.vue.d.ts +5 -2
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +9 -9
- package/lib/edge/blocks/tabs/tabs.vue.d.ts +3 -3
- package/lib/edge/blocks/video/video.vue.d.ts +6 -6
- package/lib/{node/component-ref-915SIOjG.cjs → edge/component-ref-XzuZ1Hfj.cjs} +1 -1
- package/lib/{node/component-ref-YVoFqoVR.js → edge/component-ref-t51XeINm.js} +2 -2
- package/lib/edge/components/block/block.helpers.d.ts +1 -2
- package/lib/edge/components/block/block.vue.d.ts +10 -5
- package/lib/edge/components/block/components/block-styles.vue.d.ts +1 -1
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
- package/lib/edge/components/block/components/repeated-block.vue.d.ts +3 -3
- package/lib/edge/components/blocks/blocks.vue.d.ts +3 -3
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +12 -12
- package/lib/edge/components/content/content.vue.d.ts +18 -18
- package/lib/edge/components/content-variants/content-variants.types.d.ts +2 -1
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -12
- package/lib/edge/components/content-variants/extra-framework-props-types.d.ts +2 -0
- package/lib/edge/components/inlined-styles.vue.d.ts +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/extra-context-types.d.ts +6 -0
- package/lib/edge/context/types.d.ts +2 -1
- package/lib/edge/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/lib/edge/functions/get-processed-block.d.ts +1 -0
- package/lib/edge/functions/register-component.d.ts +1 -1
- package/lib/edge/{get-block-properties-sUN0gr7S.js → get-block-properties-Hs6W4UwL.js} +4 -4
- package/lib/edge/{get-block-properties-UCj-C1wW.cjs → get-block-properties-MnsKwX8B.cjs} +1 -1
- package/lib/edge/{index-FKFwDmHW.js → index-C-mI6Ai4.js} +1834 -1783
- package/lib/edge/index-u68L80fc.cjs +186 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +4 -4
- package/lib/edge/{repeated-block-jBPLukxe.js → repeated-block-P7xKkVOb.js} +13 -13
- package/lib/edge/{repeated-block-Pxb_oYw8.cjs → repeated-block-cXD1rb5T.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/block-styles-TC7FEjXP.js +75 -0
- package/lib/node/block-styles-aVTlrIHc.cjs +1 -0
- package/lib/{edge/block-wrapper-sF2FW-5-.cjs → node/block-wrapper-8DA9SdPk.cjs} +1 -1
- package/lib/node/{block-wrapper-cjk61owJ.js → block-wrapper-wULOB3JK.js} +3 -3
- package/lib/node/blocks/accordion/accordion.vue.d.ts +6 -6
- package/lib/node/blocks/button/button.vue.d.ts +3 -3
- package/lib/node/blocks/columns/columns.vue.d.ts +9 -9
- package/lib/node/blocks/form/form/form.vue.d.ts +9 -9
- package/lib/node/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/node/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/node/blocks/image/image.vue.d.ts +3 -3
- package/lib/node/blocks/img/img.vue.d.ts +3 -3
- package/lib/node/blocks/section/section.vue.d.ts +3 -3
- package/lib/node/blocks/slot/slot.vue.d.ts +5 -2
- package/lib/node/blocks/symbol/symbol.vue.d.ts +9 -9
- package/lib/node/blocks/tabs/tabs.vue.d.ts +3 -3
- package/lib/node/blocks/video/video.vue.d.ts +6 -6
- package/lib/{edge/component-ref-ZYvL2bfE.js → node/component-ref-Tn-Aa9EG.js} +2 -2
- package/lib/{edge/component-ref-V7vQSEzJ.cjs → node/component-ref-cw1D-ZyS.cjs} +1 -1
- package/lib/node/components/block/block.helpers.d.ts +1 -2
- package/lib/node/components/block/block.vue.d.ts +10 -5
- package/lib/node/components/block/components/block-styles.vue.d.ts +1 -1
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
- package/lib/node/components/block/components/repeated-block.vue.d.ts +3 -3
- package/lib/node/components/blocks/blocks.vue.d.ts +3 -3
- package/lib/node/components/content/components/enable-editor.vue.d.ts +12 -12
- package/lib/node/components/content/content.vue.d.ts +18 -18
- package/lib/node/components/content-variants/content-variants.types.d.ts +2 -1
- package/lib/node/components/content-variants/content-variants.vue.d.ts +12 -12
- package/lib/node/components/content-variants/extra-framework-props-types.d.ts +2 -0
- package/lib/node/components/inlined-styles.vue.d.ts +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/extra-context-types.d.ts +6 -0
- package/lib/node/context/types.d.ts +2 -1
- package/lib/node/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/lib/node/functions/get-processed-block.d.ts +1 -0
- package/lib/node/functions/register-component.d.ts +1 -1
- package/lib/node/{get-block-properties-Pmia_Lv7.cjs → get-block-properties-coIi16X2.cjs} +1 -1
- package/lib/node/{get-block-properties-q-3OOLjR.js → get-block-properties-lLVZb91I.js} +4 -4
- package/lib/node/index-ZUbIvJ0s.cjs +213 -0
- package/lib/node/{index-QoeI1v_Q.js → index-eZTeDA6U.js} +3608 -3557
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +4 -4
- package/lib/node/{repeated-block-gfgpiWc1.cjs → repeated-block-49B-IJEV.cjs} +1 -1
- package/lib/node/{repeated-block-DkyB3x_l.js → repeated-block-_TZDsWlq.js} +13 -13
- package/lib/node/style.css +1 -1
- package/package.json +3 -3
- package/lib/browser/block-styles-D_zAdF_-.cjs +0 -1
- package/lib/browser/block-styles-MssxqA7D.js +0 -90
- package/lib/browser/index-0ZvT1Hu8.cjs +0 -166
- package/lib/edge/block-styles-MT4Rv8Nz.cjs +0 -1
- package/lib/edge/block-styles-zNRTZ1A0.js +0 -89
- package/lib/edge/index-OvlUrAU4.cjs +0 -186
- package/lib/node/block-styles-2nOqCLPr.js +0 -89
- package/lib/node/block-styles-rBs6oiI0.cjs +0 -1
- package/lib/node/index-cdkVjek0.cjs +0 -213
|
@@ -6,14 +6,14 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
6
|
content?: any;
|
|
7
7
|
apiKey?: any;
|
|
8
8
|
canTrack?: any;
|
|
9
|
-
builderContextSignal?: any;
|
|
10
|
-
locale?: any;
|
|
11
|
-
enrich?: any;
|
|
12
|
-
trustedHosts?: any;
|
|
13
9
|
model?: any;
|
|
10
|
+
trustedHosts?: any;
|
|
14
11
|
showContent?: any;
|
|
12
|
+
locale?: any;
|
|
13
|
+
enrich?: any;
|
|
15
14
|
contentWrapper?: any;
|
|
16
15
|
contentWrapperProps?: any;
|
|
16
|
+
builderContextSignal?: any;
|
|
17
17
|
}>, unknown, {
|
|
18
18
|
ContentWrapper: any;
|
|
19
19
|
httpReqsData: {};
|
|
@@ -79,27 +79,27 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
79
79
|
content?: any;
|
|
80
80
|
apiKey?: any;
|
|
81
81
|
canTrack?: any;
|
|
82
|
-
builderContextSignal?: any;
|
|
83
|
-
locale?: any;
|
|
84
|
-
enrich?: any;
|
|
85
|
-
trustedHosts?: any;
|
|
86
82
|
model?: any;
|
|
83
|
+
trustedHosts?: any;
|
|
87
84
|
showContent?: any;
|
|
85
|
+
locale?: any;
|
|
86
|
+
enrich?: any;
|
|
88
87
|
contentWrapper?: any;
|
|
89
88
|
contentWrapperProps?: any;
|
|
89
|
+
builderContextSignal?: any;
|
|
90
90
|
}>>>, {
|
|
91
91
|
readonly data?: any;
|
|
92
92
|
readonly context?: any;
|
|
93
93
|
readonly content?: any;
|
|
94
94
|
readonly apiKey?: any;
|
|
95
95
|
readonly canTrack?: any;
|
|
96
|
-
readonly builderContextSignal?: any;
|
|
97
|
-
readonly locale?: any;
|
|
98
|
-
readonly enrich?: any;
|
|
99
|
-
readonly trustedHosts?: any;
|
|
100
96
|
readonly model?: any;
|
|
97
|
+
readonly trustedHosts?: any;
|
|
101
98
|
readonly showContent?: any;
|
|
99
|
+
readonly locale?: any;
|
|
100
|
+
readonly enrich?: any;
|
|
102
101
|
readonly contentWrapper?: any;
|
|
103
102
|
readonly contentWrapperProps?: any;
|
|
103
|
+
readonly builderContextSignal?: any;
|
|
104
104
|
}, {}>;
|
|
105
105
|
export default _default;
|
|
@@ -9,19 +9,19 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
9
9
|
apiVersion?: any;
|
|
10
10
|
nonce?: any;
|
|
11
11
|
canTrack?: any;
|
|
12
|
+
model?: any;
|
|
13
|
+
trustedHosts?: any;
|
|
14
|
+
showContent?: any;
|
|
15
|
+
isSsrAbTest?: any;
|
|
16
|
+
customComponents?: any;
|
|
12
17
|
linkComponent?: any;
|
|
13
18
|
locale?: any;
|
|
14
19
|
enrich?: any;
|
|
15
|
-
trustedHosts?: any;
|
|
16
|
-
model?: any;
|
|
17
|
-
showContent?: any;
|
|
18
20
|
contentWrapper?: any;
|
|
19
21
|
contentWrapperProps?: any;
|
|
20
|
-
isNestedRender?: any;
|
|
21
|
-
customComponents?: any;
|
|
22
22
|
blocksWrapper?: any;
|
|
23
23
|
blocksWrapperProps?: any;
|
|
24
|
-
|
|
24
|
+
isNestedRender?: any;
|
|
25
25
|
}>, unknown, {
|
|
26
26
|
scriptStr: string;
|
|
27
27
|
registeredComponents: RegisteredComponents;
|
|
@@ -53,19 +53,19 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
53
53
|
apiVersion?: any;
|
|
54
54
|
nonce?: any;
|
|
55
55
|
canTrack?: any;
|
|
56
|
+
model?: any;
|
|
57
|
+
trustedHosts?: any;
|
|
58
|
+
showContent?: any;
|
|
59
|
+
isSsrAbTest?: any;
|
|
60
|
+
customComponents?: any;
|
|
56
61
|
linkComponent?: any;
|
|
57
62
|
locale?: any;
|
|
58
63
|
enrich?: any;
|
|
59
|
-
trustedHosts?: any;
|
|
60
|
-
model?: any;
|
|
61
|
-
showContent?: any;
|
|
62
64
|
contentWrapper?: any;
|
|
63
65
|
contentWrapperProps?: any;
|
|
64
|
-
isNestedRender?: any;
|
|
65
|
-
customComponents?: any;
|
|
66
66
|
blocksWrapper?: any;
|
|
67
67
|
blocksWrapperProps?: any;
|
|
68
|
-
|
|
68
|
+
isNestedRender?: any;
|
|
69
69
|
}>>>, {
|
|
70
70
|
readonly data?: any;
|
|
71
71
|
readonly context?: any;
|
|
@@ -74,18 +74,18 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
74
74
|
readonly apiVersion?: any;
|
|
75
75
|
readonly nonce?: any;
|
|
76
76
|
readonly canTrack?: any;
|
|
77
|
+
readonly model?: any;
|
|
78
|
+
readonly trustedHosts?: any;
|
|
79
|
+
readonly showContent?: any;
|
|
80
|
+
readonly isSsrAbTest?: any;
|
|
81
|
+
readonly customComponents?: any;
|
|
77
82
|
readonly linkComponent?: any;
|
|
78
83
|
readonly locale?: any;
|
|
79
84
|
readonly enrich?: any;
|
|
80
|
-
readonly trustedHosts?: any;
|
|
81
|
-
readonly model?: any;
|
|
82
|
-
readonly showContent?: any;
|
|
83
85
|
readonly contentWrapper?: any;
|
|
84
86
|
readonly contentWrapperProps?: any;
|
|
85
|
-
readonly isNestedRender?: any;
|
|
86
|
-
readonly customComponents?: any;
|
|
87
87
|
readonly blocksWrapper?: any;
|
|
88
88
|
readonly blocksWrapperProps?: any;
|
|
89
|
-
readonly
|
|
89
|
+
readonly isNestedRender?: any;
|
|
90
90
|
}, {}>;
|
|
91
91
|
export default _default;
|
|
@@ -2,7 +2,8 @@ import type { BuilderRenderContext, RegisteredComponent } from '../../context/ty
|
|
|
2
2
|
import type { ApiVersion } from '../../types/api-version';
|
|
3
3
|
import type { BuilderContent } from '../../types/builder-content';
|
|
4
4
|
import type { Nullable } from '../../types/typescript';
|
|
5
|
-
|
|
5
|
+
import type { ExtraFrameworkProps } from './extra-framework-props-types';
|
|
6
|
+
export interface ContentVariantsPrps extends ExtraFrameworkProps {
|
|
6
7
|
/**
|
|
7
8
|
* The Builder content JSON to render (required).
|
|
8
9
|
*/
|
|
@@ -6,17 +6,17 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
6
|
apiVersion?: any;
|
|
7
7
|
nonce?: any;
|
|
8
8
|
canTrack?: any;
|
|
9
|
+
model?: any;
|
|
10
|
+
trustedHosts?: any;
|
|
11
|
+
customComponents?: any;
|
|
9
12
|
linkComponent?: any;
|
|
10
13
|
locale?: any;
|
|
11
14
|
enrich?: any;
|
|
12
|
-
trustedHosts?: any;
|
|
13
|
-
model?: any;
|
|
14
15
|
contentWrapper?: any;
|
|
15
16
|
contentWrapperProps?: any;
|
|
16
|
-
isNestedRender?: any;
|
|
17
|
-
customComponents?: any;
|
|
18
17
|
blocksWrapper?: any;
|
|
19
18
|
blocksWrapperProps?: any;
|
|
19
|
+
isNestedRender?: any;
|
|
20
20
|
}>, unknown, {
|
|
21
21
|
shouldRenderVariants: boolean;
|
|
22
22
|
TARGET: import("../../types/targets").Target;
|
|
@@ -57,17 +57,17 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
57
57
|
apiVersion?: any;
|
|
58
58
|
nonce?: any;
|
|
59
59
|
canTrack?: any;
|
|
60
|
+
model?: any;
|
|
61
|
+
trustedHosts?: any;
|
|
62
|
+
customComponents?: any;
|
|
60
63
|
linkComponent?: any;
|
|
61
64
|
locale?: any;
|
|
62
65
|
enrich?: any;
|
|
63
|
-
trustedHosts?: any;
|
|
64
|
-
model?: any;
|
|
65
66
|
contentWrapper?: any;
|
|
66
67
|
contentWrapperProps?: any;
|
|
67
|
-
isNestedRender?: any;
|
|
68
|
-
customComponents?: any;
|
|
69
68
|
blocksWrapper?: any;
|
|
70
69
|
blocksWrapperProps?: any;
|
|
70
|
+
isNestedRender?: any;
|
|
71
71
|
}>>>, {
|
|
72
72
|
readonly data?: any;
|
|
73
73
|
readonly context?: any;
|
|
@@ -76,16 +76,16 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
76
76
|
readonly apiVersion?: any;
|
|
77
77
|
readonly nonce?: any;
|
|
78
78
|
readonly canTrack?: any;
|
|
79
|
+
readonly model?: any;
|
|
80
|
+
readonly trustedHosts?: any;
|
|
81
|
+
readonly customComponents?: any;
|
|
79
82
|
readonly linkComponent?: any;
|
|
80
83
|
readonly locale?: any;
|
|
81
84
|
readonly enrich?: any;
|
|
82
|
-
readonly trustedHosts?: any;
|
|
83
|
-
readonly model?: any;
|
|
84
85
|
readonly contentWrapper?: any;
|
|
85
86
|
readonly contentWrapperProps?: any;
|
|
86
|
-
readonly isNestedRender?: any;
|
|
87
|
-
readonly customComponents?: any;
|
|
88
87
|
readonly blocksWrapper?: any;
|
|
89
88
|
readonly blocksWrapperProps?: any;
|
|
89
|
+
readonly isNestedRender?: any;
|
|
90
90
|
}, {}>;
|
|
91
91
|
export default _default;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
2
|
nonce?: any;
|
|
3
|
-
styles?: any;
|
|
4
3
|
id?: any;
|
|
4
|
+
styles?: any;
|
|
5
5
|
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
6
6
|
nonce?: any;
|
|
7
|
-
styles?: any;
|
|
8
7
|
id?: any;
|
|
8
|
+
styles?: any;
|
|
9
9
|
}>>>, {
|
|
10
10
|
readonly nonce?: any;
|
|
11
|
-
readonly styles?: any;
|
|
12
11
|
readonly id?: any;
|
|
12
|
+
readonly styles?: any;
|
|
13
13
|
}, {}>;
|
|
14
14
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.13";
|
|
@@ -3,13 +3,14 @@ import type { ApiVersion } from '../types/api-version';
|
|
|
3
3
|
import type { BuilderContent } from '../types/builder-content';
|
|
4
4
|
import type { ComponentInfo } from '../types/components';
|
|
5
5
|
import type { Dictionary, Nullable } from '../types/typescript';
|
|
6
|
+
import type { ExtraContextTypes } from './extra-context-types';
|
|
6
7
|
export type RegisteredComponent = ComponentInfo & {
|
|
7
8
|
component: any;
|
|
8
9
|
};
|
|
9
10
|
export type RegisteredComponents = Dictionary<RegisteredComponent>;
|
|
10
11
|
export type BuilderRenderState = Record<string, unknown>;
|
|
11
12
|
export type BuilderRenderContext = Record<string, unknown>;
|
|
12
|
-
export interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'
|
|
13
|
+
export interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'>, ExtraContextTypes {
|
|
13
14
|
content: Nullable<BuilderContent>;
|
|
14
15
|
context: BuilderRenderContext;
|
|
15
16
|
/**
|
|
@@ -7,6 +7,7 @@ import type { IsolateOptions } from 'isolated-vm';
|
|
|
7
7
|
* from a server-only location, such as:
|
|
8
8
|
* - The NextJS Pages router's `_document.tsx`
|
|
9
9
|
* - Your Remix route's `loader`
|
|
10
|
+
* - Qwik's `entry.ssr.tsx` file
|
|
10
11
|
*/
|
|
11
12
|
export declare const initializeNodeRuntime: (args?: {
|
|
12
13
|
ivmIsolateOptions?: IsolateOptions;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BuilderContextInterface } from '../context/types';
|
|
2
2
|
import type { BuilderBlock } from '../types/builder-block';
|
|
3
|
+
export declare function deepCloneWithConditions<T = any>(obj: T): T;
|
|
3
4
|
export declare function getProcessedBlock({ block, context, shouldEvaluateBindings, localState, rootState, rootSetState }: {
|
|
4
5
|
block: BuilderBlock;
|
|
5
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { f as s, T as c, h as i, i as l } from "./index-C-mI6Ai4.js";
|
|
2
|
+
const f = (e) => `v-on:${e.toLowerCase()}`, u = (e, t) => (r) => s({
|
|
3
3
|
code: e,
|
|
4
4
|
context: t.context,
|
|
5
5
|
localState: t.localState,
|
|
@@ -15,7 +15,7 @@ function S(e) {
|
|
|
15
15
|
if (!r.hasOwnProperty(a))
|
|
16
16
|
continue;
|
|
17
17
|
const n = r[a];
|
|
18
|
-
let o =
|
|
18
|
+
let o = f(a);
|
|
19
19
|
if (e.stripPrefix)
|
|
20
20
|
switch (c) {
|
|
21
21
|
case "vue":
|
|
@@ -25,7 +25,7 @@ function S(e) {
|
|
|
25
25
|
o = o.replace("on:", "");
|
|
26
26
|
break;
|
|
27
27
|
}
|
|
28
|
-
t[o] =
|
|
28
|
+
t[o] = u(n, e);
|
|
29
29
|
}
|
|
30
30
|
return t;
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-u68L80fc.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,e)}return t}function u({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(e),...e.properties,"builder-id":e.id,style:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=p;
|