@builder.io/sdk-vue 0.0.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/get-processed-block.53da1bfe.js +40 -0
- package/packages/_vue2/dist/get-processed-block.b71c1bb2.cjs +1 -0
- package/packages/_vue2/dist/{index.93374a52.js → index.a5e0b693.js} +158 -138
- package/packages/_vue2/dist/index.a63c466e.cjs +4 -0
- package/packages/_vue2/dist/{render-block.f95552ec.js → render-block.7c0c9395.js} +68 -62
- 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.10d6d66e.js → render-component.7e81a5e0.js} +14 -14
- package/packages/_vue2/dist/render-component.92306f84.cjs +1 -0
- package/packages/_vue2/dist/{render-inlined-styles.3826da36.cjs → render-inlined-styles.0458e786.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.0fed22b4.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.f29194a7.js → render-repeated-block.bd19b766.js} +11 -8
- package/packages/_vue2/dist/{render-styles.cd30abd1.js → render-styles.67a8bb35.js} +8 -8
- package/packages/_vue2/dist/{render-styles.9ff97301.cjs → render-styles.7ab6335e.cjs} +1 -1
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +4 -4
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +172 -40
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +177 -45
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +168 -36
- 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 +47 -14
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +162 -30
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +172 -39
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +174 -42
- package/packages/_vue2/dist/src/context/types.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-react-native-block-styles.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue2/dist/src/helpers/css.d.ts +5 -1
- 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/get-processed-block.0d08be3e.js +40 -0
- package/packages/_vue3/dist/get-processed-block.f32aca5e.cjs +1 -0
- package/packages/_vue3/dist/{index.7b49e825.js → index.06c0f5c8.js} +253 -230
- 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.7ca6729a.js → render-component.87cc6d83.js} +9 -9
- package/packages/_vue3/dist/{render-inlined-styles.56082955.cjs → render-inlined-styles.5b918790.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.0b1e087d.js → render-inlined-styles.9ac8320c.js} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.0b974ccc.js → render-repeated-block.3d799bba.js} +12 -9
- package/packages/_vue3/dist/render-repeated-block.9dc8238b.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.65bace65.js → render-styles.9c635f29.js} +3 -3
- package/packages/_vue3/dist/{render-styles.d4412af2.cjs → render-styles.cb10c812.cjs} +1 -1
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +7 -7
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +4 -4
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +9 -9
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- 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 +35 -1
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +1 -16
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +4 -3
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +6 -6
- package/packages/_vue3/dist/src/context/types.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-react-native-block-styles.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue3/dist/src/helpers/css.d.ts +5 -1
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.a3384cd8.js +0 -72
- package/packages/_vue2/dist/block-styles.b8f018af.cjs +0 -10
- package/packages/_vue2/dist/get-processed-block.53761199.js +0 -40
- package/packages/_vue2/dist/get-processed-block.5b7d0290.cjs +0 -1
- package/packages/_vue2/dist/index.3fb2f85b.cjs +0 -4
- package/packages/_vue2/dist/render-block.31ab55d9.cjs +0 -3
- package/packages/_vue2/dist/render-component.4714b27b.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.d8e1f3e2.cjs +0 -1
- package/packages/_vue2/dist/src/functions/get-block-styles.d.ts +0 -1
- package/packages/_vue3/dist/block-styles.867fd8f0.js +0 -69
- package/packages/_vue3/dist/block-styles.b9355d79.cjs +0 -10
- package/packages/_vue3/dist/get-processed-block.4d9c7a48.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.77923ee6.js +0 -40
- package/packages/_vue3/dist/index.bbfd8c89.cjs +0 -4
- package/packages/_vue3/dist/render-block.1e996e4e.cjs +0 -3
- package/packages/_vue3/dist/render-block.3110fec0.js +0 -243
- package/packages/_vue3/dist/render-component.470525d5.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.10c41242.cjs +0 -1
- package/packages/_vue3/dist/src/functions/get-block-styles.d.ts +0 -1
|
@@ -16,10 +16,10 @@ import { markMutable } from "../../functions/mark-mutable.js";
|
|
|
16
16
|
declare const _sfc_main: {
|
|
17
17
|
name: string;
|
|
18
18
|
components: {
|
|
19
|
-
|
|
19
|
+
RenderContentStyles: () => Promise<{
|
|
20
20
|
name: string;
|
|
21
21
|
components: {
|
|
22
|
-
|
|
22
|
+
RenderInlinedStyles: () => Promise<{
|
|
23
23
|
name: string;
|
|
24
24
|
props: string[];
|
|
25
25
|
data: () => {
|
|
@@ -42,50 +42,90 @@ declare const _sfc_main: {
|
|
|
42
42
|
}): any;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
|
-
|
|
45
|
+
RenderBlocks: () => Promise<{
|
|
46
46
|
name: string;
|
|
47
47
|
components: {
|
|
48
|
-
|
|
48
|
+
RenderBlock: () => Promise<{
|
|
49
49
|
name: string;
|
|
50
50
|
components: {
|
|
51
|
-
|
|
51
|
+
RenderRepeatedBlock: () => Promise<{
|
|
52
52
|
name: string;
|
|
53
53
|
components: {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
RenderBlock: () => Promise<any>;
|
|
55
|
+
};
|
|
56
|
+
props: string[];
|
|
57
|
+
provide(): {
|
|
58
|
+
BuilderContext: {
|
|
59
|
+
readonly content: any;
|
|
60
|
+
readonly state: any;
|
|
61
|
+
readonly context: any;
|
|
62
|
+
readonly apiKey: any;
|
|
63
|
+
readonly registeredComponents: any;
|
|
64
|
+
readonly inheritedStyles: any;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
BlockStyles: () => Promise<{
|
|
69
|
+
name: string;
|
|
70
|
+
components: {
|
|
71
|
+
RenderInlinedStyles: () => Promise<{
|
|
56
72
|
name: string;
|
|
57
|
-
components: {
|
|
58
|
-
"render-inlined-styles": () => Promise<{
|
|
59
|
-
name: string;
|
|
60
|
-
props: string[];
|
|
61
|
-
data: () => {
|
|
62
|
-
TARGET: string;
|
|
63
|
-
};
|
|
64
|
-
computed: {
|
|
65
|
-
injectedStyleScript(): any;
|
|
66
|
-
tagName(): string;
|
|
67
|
-
};
|
|
68
|
-
}>;
|
|
69
|
-
};
|
|
70
73
|
props: string[];
|
|
71
74
|
data: () => {
|
|
72
75
|
TARGET: string;
|
|
73
76
|
};
|
|
74
77
|
computed: {
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
injectedStyleScript(): any;
|
|
79
|
+
tagName(): string;
|
|
77
80
|
};
|
|
78
81
|
}>;
|
|
79
82
|
};
|
|
80
83
|
props: string[];
|
|
81
84
|
data: () => {
|
|
82
|
-
|
|
85
|
+
TARGET: string;
|
|
86
|
+
};
|
|
87
|
+
computed: {
|
|
88
|
+
useBlock(): any;
|
|
89
|
+
css(): any;
|
|
83
90
|
};
|
|
84
91
|
}>;
|
|
85
|
-
|
|
92
|
+
RenderComponentWithContext: () => Promise<{
|
|
86
93
|
name: string;
|
|
87
94
|
components: {
|
|
88
|
-
|
|
95
|
+
RenderComponent: () => Promise<{
|
|
96
|
+
name: string;
|
|
97
|
+
components: {
|
|
98
|
+
RenderBlock: () => Promise<any>;
|
|
99
|
+
BlockStyles: () => Promise<{
|
|
100
|
+
name: string;
|
|
101
|
+
components: {
|
|
102
|
+
RenderInlinedStyles: () => Promise<{
|
|
103
|
+
name: string;
|
|
104
|
+
props: string[];
|
|
105
|
+
data: () => {
|
|
106
|
+
TARGET: string;
|
|
107
|
+
};
|
|
108
|
+
computed: {
|
|
109
|
+
injectedStyleScript(): any;
|
|
110
|
+
tagName(): string;
|
|
111
|
+
};
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
114
|
+
props: string[];
|
|
115
|
+
data: () => {
|
|
116
|
+
TARGET: string;
|
|
117
|
+
};
|
|
118
|
+
computed: {
|
|
119
|
+
useBlock(): any;
|
|
120
|
+
css(): any;
|
|
121
|
+
};
|
|
122
|
+
}>;
|
|
123
|
+
};
|
|
124
|
+
props: string[];
|
|
125
|
+
data: () => {
|
|
126
|
+
markPropsMutable: typeof import("../../functions/mark-mutable.js").markPropsMutable;
|
|
127
|
+
};
|
|
128
|
+
}>;
|
|
89
129
|
};
|
|
90
130
|
props: string[];
|
|
91
131
|
provide(): {
|
|
@@ -95,58 +135,150 @@ declare const _sfc_main: {
|
|
|
95
135
|
readonly context: any;
|
|
96
136
|
readonly apiKey: any;
|
|
97
137
|
readonly registeredComponents: any;
|
|
138
|
+
readonly inheritedStyles: any;
|
|
98
139
|
};
|
|
99
140
|
};
|
|
100
141
|
}>;
|
|
101
|
-
|
|
142
|
+
RenderComponent: () => Promise<{
|
|
102
143
|
name: string;
|
|
103
144
|
components: {
|
|
104
|
-
|
|
145
|
+
RenderBlock: () => Promise<any>;
|
|
146
|
+
BlockStyles: () => Promise<{
|
|
105
147
|
name: string;
|
|
148
|
+
components: {
|
|
149
|
+
RenderInlinedStyles: () => Promise<{
|
|
150
|
+
name: string;
|
|
151
|
+
props: string[];
|
|
152
|
+
data: () => {
|
|
153
|
+
TARGET: string;
|
|
154
|
+
};
|
|
155
|
+
computed: {
|
|
156
|
+
injectedStyleScript(): any;
|
|
157
|
+
tagName(): string;
|
|
158
|
+
};
|
|
159
|
+
}>;
|
|
160
|
+
};
|
|
106
161
|
props: string[];
|
|
107
162
|
data: () => {
|
|
108
163
|
TARGET: string;
|
|
109
164
|
};
|
|
110
165
|
computed: {
|
|
111
|
-
|
|
112
|
-
|
|
166
|
+
useBlock(): any;
|
|
167
|
+
css(): any;
|
|
113
168
|
};
|
|
114
169
|
}>;
|
|
115
170
|
};
|
|
116
171
|
props: string[];
|
|
117
172
|
data: () => {
|
|
118
|
-
|
|
119
|
-
};
|
|
120
|
-
computed: {
|
|
121
|
-
useBlock(): any;
|
|
122
|
-
css(): any;
|
|
173
|
+
markPropsMutable: typeof import("../../functions/mark-mutable.js").markPropsMutable;
|
|
123
174
|
};
|
|
124
175
|
}>;
|
|
125
176
|
};
|
|
126
177
|
props: string[];
|
|
127
178
|
data: () => {
|
|
128
179
|
isEmptyHtmlElement: (tagName: unknown) => boolean;
|
|
129
|
-
TARGET: string;
|
|
130
180
|
};
|
|
131
181
|
computed: {
|
|
132
182
|
component(): any;
|
|
133
|
-
componentInfo(): {} | undefined;
|
|
134
|
-
componentRef(): any;
|
|
135
183
|
tagName(): any;
|
|
136
184
|
useBlock(): any;
|
|
137
185
|
attributes(): any;
|
|
138
|
-
shouldWrap():
|
|
139
|
-
componentOptions(): any;
|
|
186
|
+
shouldWrap(): any;
|
|
140
187
|
renderComponentProps(): any;
|
|
141
188
|
children(): any;
|
|
142
|
-
childrenWithoutParentComponent():
|
|
189
|
+
childrenWithoutParentComponent(): any;
|
|
143
190
|
repeatItemData(): any;
|
|
191
|
+
inheritedTextStyles(): Partial<CSSStyleDeclaration>;
|
|
192
|
+
childrenContext(): any;
|
|
193
|
+
renderComponentTag(): (() => Promise<{
|
|
194
|
+
name: string;
|
|
195
|
+
components: {
|
|
196
|
+
RenderComponent: () => Promise<{
|
|
197
|
+
name: string;
|
|
198
|
+
components: {
|
|
199
|
+
RenderBlock: () => Promise<any>;
|
|
200
|
+
BlockStyles: () => Promise<{
|
|
201
|
+
name: string;
|
|
202
|
+
components: {
|
|
203
|
+
RenderInlinedStyles: () => Promise<{
|
|
204
|
+
name: string;
|
|
205
|
+
props: string[];
|
|
206
|
+
data: () => {
|
|
207
|
+
TARGET: string;
|
|
208
|
+
};
|
|
209
|
+
computed: {
|
|
210
|
+
injectedStyleScript(): any;
|
|
211
|
+
tagName(): string;
|
|
212
|
+
};
|
|
213
|
+
}>;
|
|
214
|
+
};
|
|
215
|
+
props: string[];
|
|
216
|
+
data: () => {
|
|
217
|
+
TARGET: string;
|
|
218
|
+
};
|
|
219
|
+
computed: {
|
|
220
|
+
useBlock(): any;
|
|
221
|
+
css(): any;
|
|
222
|
+
};
|
|
223
|
+
}>;
|
|
224
|
+
};
|
|
225
|
+
props: string[];
|
|
226
|
+
data: () => {
|
|
227
|
+
markPropsMutable: typeof import("../../functions/mark-mutable.js").markPropsMutable;
|
|
228
|
+
};
|
|
229
|
+
}>;
|
|
230
|
+
};
|
|
231
|
+
props: string[];
|
|
232
|
+
provide(): {
|
|
233
|
+
BuilderContext: {
|
|
234
|
+
readonly content: any;
|
|
235
|
+
readonly state: any;
|
|
236
|
+
readonly context: any;
|
|
237
|
+
readonly apiKey: any;
|
|
238
|
+
readonly registeredComponents: any;
|
|
239
|
+
readonly inheritedStyles: any;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
}>) | (() => Promise<{
|
|
243
|
+
name: string;
|
|
244
|
+
components: {
|
|
245
|
+
RenderBlock: () => Promise<any>;
|
|
246
|
+
BlockStyles: () => Promise<{
|
|
247
|
+
name: string;
|
|
248
|
+
components: {
|
|
249
|
+
RenderInlinedStyles: () => Promise<{
|
|
250
|
+
name: string;
|
|
251
|
+
props: string[];
|
|
252
|
+
data: () => {
|
|
253
|
+
TARGET: string;
|
|
254
|
+
};
|
|
255
|
+
computed: {
|
|
256
|
+
injectedStyleScript(): any;
|
|
257
|
+
tagName(): string;
|
|
258
|
+
};
|
|
259
|
+
}>;
|
|
260
|
+
};
|
|
261
|
+
props: string[];
|
|
262
|
+
data: () => {
|
|
263
|
+
TARGET: string;
|
|
264
|
+
};
|
|
265
|
+
computed: {
|
|
266
|
+
useBlock(): any;
|
|
267
|
+
css(): any;
|
|
268
|
+
};
|
|
269
|
+
}>;
|
|
270
|
+
};
|
|
271
|
+
props: string[];
|
|
272
|
+
data: () => {
|
|
273
|
+
markPropsMutable: typeof import("../../functions/mark-mutable.js").markPropsMutable;
|
|
274
|
+
};
|
|
275
|
+
}>) | "RenderComponent";
|
|
144
276
|
};
|
|
145
277
|
}>;
|
|
146
|
-
|
|
278
|
+
BlockStyles: () => Promise<{
|
|
147
279
|
name: string;
|
|
148
280
|
components: {
|
|
149
|
-
|
|
281
|
+
RenderInlinedStyles: () => Promise<{
|
|
150
282
|
name: string;
|
|
151
283
|
props: string[];
|
|
152
284
|
data: () => {
|
|
@@ -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>;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const createCssClass: ({ mediaQuery, className, styles, }: {
|
|
2
|
+
mediaQuery?: string | undefined;
|
|
3
|
+
className: string;
|
|
4
|
+
styles: Partial<CSSStyleDeclaration>;
|
|
5
|
+
}) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.div-
|
|
1
|
+
.div-29wpyomtntv[data-v-28f66c93]{display:flex;align-items:stretch;line-height:normal}@media (max-width: 991px){.div-29wpyomtntv[data-v-28f66c93]{flex-direction:var(--flex-dir-tablet)}}@media (max-width: 639px){.div-29wpyomtntv[data-v-28f66c93]{flex-direction:var(--flex-dir)}}.div-29wpyomtntv-2[data-v-28f66c93]{display:flex;flex-direction:column;align-items:stretch}@media (max-width: 991px){.div-29wpyomtntv-2[data-v-28f66c93]{width:var(--column-width-tablet)!important;margin-left:var(--column-margin-left-tablet)!important}}@media (max-width: 639px){.div-29wpyomtntv-2[data-v-28f66c93]{width:var(--column-width)!important;margin-left:var(--column-margin-left)!important}}.img-1j57pcfa436[data-v-c75d9535]{opacity:1;transition:opacity .2s ease-in-out;position:absolute;height:100%;width:100%;top:0px;left:0px}.div-1j57pcfa436[data-v-c75d9535]{width:100%;pointer-events:none;font-size:0}.div-1j57pcfa436-2[data-v-c75d9535]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.button-1pl23ac79ld[data-v-3eed583a]{all:unset}.div-23e8fqt91nf[data-v-713efc9e]{display:flex;flex-direction:column;align-items:stretch}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),d=require("./index.4ab36c30.cjs"),u=require("./get-processed-block.f32aca5e.cjs"),y={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},i=e=>`@media (max-width: ${y[e].max}px)`,p=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),S=e=>Object.entries(e).map(([s,t])=>{if(typeof t=="string")return`${p(s)}: ${t};`}).join(`
|
|
2
|
+
`),a=({mediaQuery:e,className:n,styles:s})=>{const t=`.${n} {
|
|
3
|
+
${S(s)}
|
|
4
|
+
}`;return e?`${e} {
|
|
5
|
+
${t}
|
|
6
|
+
}`:t},f=()=>Promise.resolve().then(()=>require("./render-inlined-styles.5b918790.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",e),e}),x={name:"block-styles",components:{RenderInlinedStyles:o.defineAsyncComponent(f)},props:["block","context"],data:()=>({TARGET:d.TARGET}),computed:{useBlock(){return u.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},css(){const e=this.useBlock.responsiveStyles,n=e==null?void 0:e.large,s=e==null?void 0:e.medium,t=e==null?void 0:e.small,c=this.useBlock.id,l=n?a({className:c,styles:n}):"",r=s?a({className:c,styles:s,mediaQuery:i("medium")}):"",m=t?a({className:c,styles:t,mediaQuery:i("small")}):"";return[l,r,m].join(" ")}}};function g(e,n,s,t,c,l){const r=o.resolveComponent("render-inlined-styles");return e.TARGET!=="reactNative"&&l.css?(o.openBlock(),o.createBlock(r,{key:0,styles:l.css},null,8,["styles"])):o.createCommentVNode("",!0)}const h=d._export_sfc(x,[["render",g]]);exports.default=h;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { defineAsyncComponent as m, resolveComponent as d, openBlock as u, createBlock as p, createCommentVNode as y } from "vue";
|
|
2
|
+
import { T as S, _ as f } from "./index.06c0f5c8.js";
|
|
3
|
+
import { g as x } from "./get-processed-block.0d08be3e.js";
|
|
4
|
+
const h = {
|
|
5
|
+
small: {
|
|
6
|
+
min: 320,
|
|
7
|
+
default: 321,
|
|
8
|
+
max: 640
|
|
9
|
+
},
|
|
10
|
+
medium: {
|
|
11
|
+
min: 641,
|
|
12
|
+
default: 642,
|
|
13
|
+
max: 991
|
|
14
|
+
},
|
|
15
|
+
large: {
|
|
16
|
+
min: 990,
|
|
17
|
+
default: 991,
|
|
18
|
+
max: 1200
|
|
19
|
+
}
|
|
20
|
+
}, a = (e) => `@media (max-width: ${h[e].max}px)`, k = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => Object.entries(e).map(([s, t]) => {
|
|
21
|
+
if (typeof t == "string")
|
|
22
|
+
return `${k(s)}: ${t};`;
|
|
23
|
+
}).join(`
|
|
24
|
+
`), c = ({
|
|
25
|
+
mediaQuery: e,
|
|
26
|
+
className: n,
|
|
27
|
+
styles: s
|
|
28
|
+
}) => {
|
|
29
|
+
const t = `.${n} {
|
|
30
|
+
${C(s)}
|
|
31
|
+
}`;
|
|
32
|
+
return e ? `${e} {
|
|
33
|
+
${t}
|
|
34
|
+
}` : t;
|
|
35
|
+
}, _ = () => import("./render-inlined-styles.9ac8320c.js").then((e) => e.default).catch((e) => {
|
|
36
|
+
throw console.error(
|
|
37
|
+
"Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
|
|
38
|
+
e
|
|
39
|
+
), e;
|
|
40
|
+
}), g = {
|
|
41
|
+
name: "block-styles",
|
|
42
|
+
components: {
|
|
43
|
+
RenderInlinedStyles: m(_)
|
|
44
|
+
},
|
|
45
|
+
props: ["block", "context"],
|
|
46
|
+
data: () => ({ TARGET: S }),
|
|
47
|
+
computed: {
|
|
48
|
+
useBlock() {
|
|
49
|
+
return x({
|
|
50
|
+
block: this.block,
|
|
51
|
+
state: this.context.state,
|
|
52
|
+
context: this.context.context,
|
|
53
|
+
shouldEvaluateBindings: !0
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
css() {
|
|
57
|
+
const e = this.useBlock.responsiveStyles, n = e == null ? void 0 : e.large, s = e == null ? void 0 : e.medium, t = e == null ? void 0 : e.small, o = this.useBlock.id, l = n ? c({
|
|
58
|
+
className: o,
|
|
59
|
+
styles: n
|
|
60
|
+
}) : "", r = s ? c({
|
|
61
|
+
className: o,
|
|
62
|
+
styles: s,
|
|
63
|
+
mediaQuery: a("medium")
|
|
64
|
+
}) : "", i = t ? c({
|
|
65
|
+
className: o,
|
|
66
|
+
styles: t,
|
|
67
|
+
mediaQuery: a("small")
|
|
68
|
+
}) : "";
|
|
69
|
+
return [l, r, i].join(" ");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
function $(e, n, s, t, o, l) {
|
|
74
|
+
const r = d("render-inlined-styles");
|
|
75
|
+
return e.TARGET !== "reactNative" && l.css ? (u(), p(r, {
|
|
76
|
+
key: 0,
|
|
77
|
+
styles: l.css
|
|
78
|
+
}, null, 8, ["styles"])) : y("", !0);
|
|
79
|
+
}
|
|
80
|
+
const v = /* @__PURE__ */ f(g, [["render", $]]);
|
|
81
|
+
export {
|
|
82
|
+
v as default
|
|
83
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { f as a, e as u } from "./index.06c0f5c8.js";
|
|
2
|
+
const f = (n, r, i) => {
|
|
3
|
+
if (Object(n) !== n)
|
|
4
|
+
return n;
|
|
5
|
+
const e = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g);
|
|
6
|
+
return e.slice(0, -1).reduce(
|
|
7
|
+
(t, s, o) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(Number(e[o + 1])) >> 0 === +e[o + 1] ? [] : {},
|
|
8
|
+
n
|
|
9
|
+
)[e[e.length - 1]] = i, n;
|
|
10
|
+
};
|
|
11
|
+
const d = ({
|
|
12
|
+
block: n,
|
|
13
|
+
context: r,
|
|
14
|
+
state: i
|
|
15
|
+
}) => {
|
|
16
|
+
if (!n.bindings)
|
|
17
|
+
return n;
|
|
18
|
+
const e = a(n), t = {
|
|
19
|
+
...e,
|
|
20
|
+
properties: { ...e.properties },
|
|
21
|
+
actions: { ...e.actions }
|
|
22
|
+
};
|
|
23
|
+
for (const s in n.bindings) {
|
|
24
|
+
const o = n.bindings[s], c = u({ code: o, state: i, context: r });
|
|
25
|
+
f(t, s, c);
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
};
|
|
29
|
+
function p({
|
|
30
|
+
block: n,
|
|
31
|
+
context: r,
|
|
32
|
+
shouldEvaluateBindings: i,
|
|
33
|
+
state: e
|
|
34
|
+
}) {
|
|
35
|
+
const t = n;
|
|
36
|
+
return i ? d({ block: t, state: e, context: r }) : t;
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
p as g
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./index.4ab36c30.cjs"),d=(e,r,i)=>{if(Object(e)!==e)return e;const n=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((t,s,c)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(Number(n[c+1]))>>0===+n[c+1]?[]:{},e)[n[n.length-1]]=i,e};const a=({block:e,context:r,state:i})=>{if(!e.bindings)return e;const n=o.fastClone(e),t={...n,properties:{...n.properties},actions:{...n.actions}};for(const s in e.bindings){const c=e.bindings[s],u=o.evaluate({code:c,state:i,context:r});d(t,s,u)}return t};function g({block:e,context:r,shouldEvaluateBindings:i,state:n}){const t=e;return i?a({block:t,state:n,context:r}):t}exports.getProcessedBlock=g;
|