@builder.io/sdk-vue 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.97de2652.js → block-styles.4667431d.js} +14 -11
- package/packages/_vue2/dist/block-styles.7c2a87df.cjs +1 -0
- package/packages/_vue2/dist/{css.4d4e03cf.js → css.468435de.js} +1 -1
- package/packages/{_vue3/dist/css.785b2126.cjs → _vue2/dist/css.dce6e4eb.cjs} +2 -2
- package/packages/_vue2/dist/index.78ba6586.cjs +29 -0
- package/packages/_vue2/dist/{index.346656f6.js → index.eb91dc82.js} +340 -325
- package/packages/_vue2/dist/render-block.67e4dd65.cjs +3 -0
- package/packages/_vue2/dist/{render-block.1c1312ce.js → render-block.6f9a607a.js} +58 -63
- package/packages/_vue2/dist/{render-component.de99974e.js → render-component.10d6c8d2.js} +3 -3
- package/packages/_vue2/dist/{render-component.4ed8b740.cjs → render-component.3578089b.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.3797e28a.cjs → render-inlined-styles.56373d13.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.1c2c5bf9.js → render-inlined-styles.942eb38d.js} +4 -4
- package/packages/_vue2/dist/{render-repeated-block.dc48228e.cjs → render-repeated-block.18d7fc6e.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.d7d1e175.js → render-repeated-block.1bb5c2fb.js} +2 -2
- package/packages/_vue2/dist/{render-styles.a61feef4.js → render-styles.0d1f8872.js} +2 -2
- package/packages/_vue2/dist/{render-styles.23d118f3.cjs → render-styles.de7287b6.cjs} +3 -3
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +6 -8
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +6 -8
- 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.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +4 -6
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +4 -6
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +4 -6
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +5 -7
- 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 +6 -8
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/logger.d.ts +5 -0
- package/packages/_vue2/dist/src/types/builder-content.d.ts +1 -1
- package/packages/_vue2/dist/src/types/components.d.ts +1 -72
- package/packages/_vue2/dist/src/types/input.d.ts +121 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.09955b0c.cjs +1 -0
- package/packages/_vue3/dist/{block-styles.40e4c9b5.js → block-styles.6bd36a5a.js} +14 -11
- package/packages/{_vue2/dist/css.75f390cc.cjs → _vue3/dist/css.3241302b.cjs} +2 -2
- package/packages/_vue3/dist/{css.77c76358.js → css.81a21c5a.js} +1 -1
- package/packages/_vue3/dist/{index.4931a4d1.js → index.45ab85e5.js} +506 -491
- package/packages/_vue3/dist/index.cca81180.cjs +29 -0
- package/packages/_vue3/dist/render-block.33cc5768.cjs +3 -0
- package/packages/_vue3/dist/{render-block.6fa26228.js → render-block.ec4c1913.js} +96 -101
- package/packages/_vue3/dist/{render-component.44d63ad3.js → render-component.3bd8dc76.js} +3 -3
- package/packages/_vue3/dist/{render-component.2721bc0c.cjs → render-component.c0d5e797.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.dccd4787.js → render-inlined-styles.952d2fff.js} +4 -4
- package/packages/_vue3/dist/{render-inlined-styles.b1441d2d.cjs → render-inlined-styles.b55b6667.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.e5d7da62.js → render-repeated-block.263f0cec.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.1360a469.cjs → render-repeated-block.c3c9e926.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.850fddb0.js → render-styles.cf6faa29.js} +2 -2
- package/packages/_vue3/dist/{render-styles.e1959d28.cjs → render-styles.d1ac3a18.cjs} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +2 -11
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +1 -1
- 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 +2 -2
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/logger.d.ts +5 -0
- package/packages/_vue3/dist/src/types/builder-content.d.ts +1 -1
- package/packages/_vue3/dist/src/types/components.d.ts +1 -72
- package/packages/_vue3/dist/src/types/input.d.ts +121 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.ef03a37e.cjs +0 -1
- package/packages/_vue2/dist/index.c72abf65.cjs +0 -29
- package/packages/_vue2/dist/render-block.2880ad6e.cjs +0 -3
- package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +0 -3
- package/packages/_vue3/dist/block-styles.32155e57.cjs +0 -1
- package/packages/_vue3/dist/index.9fb3a7e0.cjs +0 -29
- package/packages/_vue3/dist/render-block.cfb6d51a.cjs +0 -3
- package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.78ba6586.cjs"),i=require("./css.dce6e4eb.cjs"),p=t=>`v-on:${t.toLowerCase()}`,d=(t,e)=>n=>c.evaluate({code:t,context:e.context,state:e.state,event:n,isExpression:!1});function m(t){var r;const e={},n=(r=t.block.actions)!=null?r:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];e[p(o)]=d(s,t)}return e}function h(t){var e;return{...(e=t.component)==null?void 0:e.options,...t.options,builderBlock:t}}function k(t){const e={};if(typeof t!="string")return e;const n=t.trim().split(/\\s+/);for(const r of n)e[r]=!0;return e}function f(t){return t.class=k(t.class),t}const b=t=>({href:t.href});function y(t){var n;const e={...b(t),...t.properties,"builder-id":t.id,style:x(t.style),class:[t.id,"builder-block",t.class,(n=t.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return f(e)}function x(t){if(!!t)switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return i.convertStyleMapToCSSArray(t).join(" ");case"qwik":case"reactNative":case"react":return t}}const g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],v=t=>typeof t=="string"&&g.includes(t.toLowerCase()),B=({block:t,context:e})=>{var o;const n=(o=i.getProcessedBlock({block:t,state:e.state,context:e.context,shouldEvaluateBindings:!1}).component)==null?void 0:o.name;if(!n)return null;const r=e.registeredComponents[n];if(r)return r;console.warn(`
|
|
2
|
+
Could not find a registered component named "${n}".
|
|
3
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},C=({block:t,context:e})=>{const{repeat:n,...r}=t;if(!(n!=null&&n.collection))return;const o=c.evaluate({code:n.collection,state:e.state,context:e.context});if(!Array.isArray(o))return;const s=n.collection.split(".").pop(),a=n.itemName||(s?s+"Item":"item");return o.map((l,u)=>({context:{...e,state:{...e.state,$index:u,$item:l,[a]:l,[`$${a}Index`]:u}},block:r}))},_=t=>typeof Proxy>"u"?(console.error("no Proxy available in this environment, cannot proxy state."),t.state):new Proxy(t.state,{set:(n,r,o)=>{var s;return n[r]=o,(s=t.setState)==null||s.call(t,n),!0}}),S=()=>Promise.resolve().then(()=>require("./block-styles.7c2a87df.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",t),t}),P=()=>Promise.resolve().then(()=>require("./render-repeated-block.18d7fc6e.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",t),t}),w=()=>Promise.resolve().then(()=>require("./render-component.3578089b.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",t),t}),E={name:"render-block",components:{RenderComponent:w,RenderRepeatedBlock:P,BlockStyles:S},props:["block","context"],data(){return{component:B({block:this.block,context:this.context}),repeatItemData:C({block:this.block,context:this.context}),tag:this.block.tagName||"div",proxyState:_(this.context),isEmptyHtmlElement:v}},computed:{useBlock(){return this.repeatItemData?this.block:i.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return"hide"in this.useBlock?!this.useBlock.hide:"show"in this.useBlock?this.useBlock.show:!0},actions(){return m({block:this.useBlock,state:this.proxyState,context:this.context.context})},attributes(){return{...y(this.useBlock)}},childrenWithoutParentComponent(){var e,n;return!((e=this.component)!=null&&e.component)&&!this.repeatItemData?(n=this.useBlock.children)!=null?n:[]:[]},childrenContext(){const t=()=>({});return{apiKey:this.context.apiKey,apiVersion:this.context.apiVersion,state:this.context.state,content:this.context.content,context:this.context.context,setState:this.context.setState,registeredComponents:this.context.registeredComponents,inheritedStyles:t()}},renderComponentProps(){var t,e,n;return{blockChildren:(t=this.useBlock.children)!=null?t:[],componentRef:(e=this.component)==null?void 0:e.component,componentOptions:{...h(this.useBlock),...(n=this.component)!=null&&n.noWrap?{attributes:{...this.attributes,...this.actions}}:{}},context:this.childrenContext}}},methods:{stripVOn:function(e={}){return Object.keys(e).reduce((n,r)=>({...n,[r.replace("v-on:","")]:e[r]}),{})}}};var R=function(){var r;var e=this,n=e._self._c;return!Boolean(!((r=e.component)!=null&&r.noWrap))&&e.canShowBlock?n("render-component",e._b({},"render-component",e.renderComponentProps,!1)):e.isEmptyHtmlElement(e.tag)&&e.canShowBlock?n(e.tag,e._g(e._b({tag:"component"},"component",e.attributes,!1),e.stripVOn(e.actions))):!e.isEmptyHtmlElement(e.tag)&&e.repeatItemData&&e.canShowBlock?n("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItemData,function(o,s){return n("render-repeated-block",{key:s,attrs:{repeatContext:o.context,block:o.block}})}),1):e.canShowBlock?n(e.tag,e._g(e._b({tag:"component"},"component",e.attributes,!1),e.stripVOn(e.actions)),[n("render-component",e._b({},"render-component",e.renderComponentProps,!1)),e._l(e.childrenWithoutParentComponent,function(o,s){return n("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:e.childrenContext}})}),e._l(e.childrenWithoutParentComponent,function(o,s){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.childrenContext}})})],2):e._e()},O=[],j=c.normalizeComponent(E,R,O,!1,null,null,null,null);const A=j.exports;exports.default=A;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { e as
|
|
2
|
-
import { a as
|
|
3
|
-
const
|
|
1
|
+
import { e as l, T as u, n as m } from "./index.eb91dc82.js";
|
|
2
|
+
import { a as d, g as p } from "./css.468435de.js";
|
|
3
|
+
const h = (e) => `v-on:${e.toLowerCase()}`, k = (e, t) => (n) => l({
|
|
4
4
|
code: e,
|
|
5
5
|
context: t.context,
|
|
6
6
|
state: t.state,
|
|
7
7
|
event: n,
|
|
8
8
|
isExpression: !1
|
|
9
9
|
});
|
|
10
|
-
function
|
|
10
|
+
function f(e) {
|
|
11
11
|
var r;
|
|
12
12
|
const t = {}, n = (r = e.block.actions) != null ? r : {};
|
|
13
13
|
for (const o in n) {
|
|
14
14
|
if (!n.hasOwnProperty(o))
|
|
15
15
|
continue;
|
|
16
16
|
const s = n[o];
|
|
17
|
-
t[
|
|
17
|
+
t[h(o)] = k(s, e);
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -35,37 +35,36 @@ function b(e) {
|
|
|
35
35
|
t[r] = !0;
|
|
36
36
|
return t;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function x(e) {
|
|
39
39
|
return e.class = b(e.class), e;
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
const g = (e) => ({ href: e.href });
|
|
42
|
+
function v(e) {
|
|
42
43
|
var n;
|
|
43
44
|
const t = {
|
|
45
|
+
...g(e),
|
|
44
46
|
...e.properties,
|
|
45
47
|
"builder-id": e.id,
|
|
46
|
-
style:
|
|
48
|
+
style: B(e.style),
|
|
47
49
|
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
48
50
|
};
|
|
49
|
-
return
|
|
51
|
+
return x(t);
|
|
50
52
|
}
|
|
51
|
-
function
|
|
53
|
+
function B(e) {
|
|
52
54
|
if (!!e)
|
|
53
|
-
switch (
|
|
55
|
+
switch (u) {
|
|
54
56
|
case "svelte":
|
|
55
57
|
case "vue2":
|
|
56
58
|
case "vue3":
|
|
57
59
|
case "solid":
|
|
58
|
-
return
|
|
60
|
+
return d(e).join(" ");
|
|
59
61
|
case "qwik":
|
|
60
62
|
case "reactNative":
|
|
61
63
|
case "react":
|
|
62
64
|
return e;
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
|
-
|
|
66
|
-
return e.tagName || "div";
|
|
67
|
-
}
|
|
68
|
-
const _ = [
|
|
67
|
+
const C = [
|
|
69
68
|
"area",
|
|
70
69
|
"base",
|
|
71
70
|
"br",
|
|
@@ -81,7 +80,7 @@ const _ = [
|
|
|
81
80
|
"source",
|
|
82
81
|
"track",
|
|
83
82
|
"wbr"
|
|
84
|
-
],
|
|
83
|
+
], _ = (e) => typeof e == "string" && C.includes(e.toLowerCase()), S = ({
|
|
85
84
|
block: e,
|
|
86
85
|
context: t
|
|
87
86
|
}) => {
|
|
@@ -100,14 +99,14 @@ const _ = [
|
|
|
100
99
|
console.warn(`
|
|
101
100
|
Could not find a registered component named "${n}".
|
|
102
101
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
103
|
-
},
|
|
102
|
+
}, w = ({
|
|
104
103
|
block: e,
|
|
105
104
|
context: t
|
|
106
105
|
}) => {
|
|
107
106
|
const { repeat: n, ...r } = e;
|
|
108
107
|
if (!(n != null && n.collection))
|
|
109
108
|
return;
|
|
110
|
-
const o =
|
|
109
|
+
const o = l({
|
|
111
110
|
code: n.collection,
|
|
112
111
|
state: t.state,
|
|
113
112
|
context: t.context
|
|
@@ -128,25 +127,32 @@ const _ = [
|
|
|
128
127
|
},
|
|
129
128
|
block: r
|
|
130
129
|
}));
|
|
131
|
-
},
|
|
130
|
+
}, E = (e) => typeof Proxy > "u" ? (console.error(
|
|
131
|
+
"no Proxy available in this environment, cannot proxy state."
|
|
132
|
+
), e.state) : new Proxy(e.state, {
|
|
133
|
+
set: (n, r, o) => {
|
|
134
|
+
var s;
|
|
135
|
+
return n[r] = o, (s = e.setState) == null || s.call(e, n), !0;
|
|
136
|
+
}
|
|
137
|
+
}), P = () => import("./block-styles.4667431d.js").then((e) => e.default).catch((e) => {
|
|
132
138
|
throw console.error(
|
|
133
139
|
"Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
|
|
134
140
|
e
|
|
135
141
|
), e;
|
|
136
|
-
}), R = () => import("./render-repeated-block.
|
|
142
|
+
}), R = () => import("./render-repeated-block.1bb5c2fb.js").then((e) => e.default).catch((e) => {
|
|
137
143
|
throw console.error(
|
|
138
144
|
"Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",
|
|
139
145
|
e
|
|
140
146
|
), e;
|
|
141
|
-
}),
|
|
147
|
+
}), O = () => import("./render-component.10d6c8d2.js").then((e) => e.default).catch((e) => {
|
|
142
148
|
throw console.error(
|
|
143
149
|
"Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
|
|
144
150
|
e
|
|
145
151
|
), e;
|
|
146
|
-
}),
|
|
152
|
+
}), A = {
|
|
147
153
|
name: "render-block",
|
|
148
154
|
components: {
|
|
149
|
-
RenderComponent:
|
|
155
|
+
RenderComponent: O,
|
|
150
156
|
RenderRepeatedBlock: R,
|
|
151
157
|
BlockStyles: P
|
|
152
158
|
},
|
|
@@ -157,17 +163,16 @@ const _ = [
|
|
|
157
163
|
block: this.block,
|
|
158
164
|
context: this.context
|
|
159
165
|
}),
|
|
160
|
-
repeatItemData:
|
|
166
|
+
repeatItemData: w({
|
|
161
167
|
block: this.block,
|
|
162
168
|
context: this.context
|
|
163
169
|
}),
|
|
164
|
-
|
|
170
|
+
tag: this.block.tagName || "div",
|
|
171
|
+
proxyState: E(this.context),
|
|
172
|
+
isEmptyHtmlElement: _
|
|
165
173
|
};
|
|
166
174
|
},
|
|
167
175
|
computed: {
|
|
168
|
-
tag() {
|
|
169
|
-
return C(this.useBlock);
|
|
170
|
-
},
|
|
171
176
|
useBlock() {
|
|
172
177
|
return this.repeatItemData ? this.block : p({
|
|
173
178
|
block: this.block,
|
|
@@ -177,20 +182,10 @@ const _ = [
|
|
|
177
182
|
});
|
|
178
183
|
},
|
|
179
184
|
canShowBlock() {
|
|
180
|
-
return
|
|
181
|
-
},
|
|
182
|
-
proxyState() {
|
|
183
|
-
return typeof Proxy > "u" ? (console.error(
|
|
184
|
-
"no Proxy available in this environment, cannot proxy state."
|
|
185
|
-
), this.context.state) : new Proxy(this.context.state, {
|
|
186
|
-
set: (t, n, r) => {
|
|
187
|
-
var o, s;
|
|
188
|
-
return t[n] = r, (s = (o = this.context).setState) == null || s.call(o, t), !0;
|
|
189
|
-
}
|
|
190
|
-
});
|
|
185
|
+
return "hide" in this.useBlock ? !this.useBlock.hide : "show" in this.useBlock ? this.useBlock.show : !0;
|
|
191
186
|
},
|
|
192
187
|
actions() {
|
|
193
|
-
return
|
|
188
|
+
return f({
|
|
194
189
|
block: this.useBlock,
|
|
195
190
|
state: this.proxyState,
|
|
196
191
|
context: this.context.context
|
|
@@ -198,24 +193,7 @@ const _ = [
|
|
|
198
193
|
},
|
|
199
194
|
attributes() {
|
|
200
195
|
return {
|
|
201
|
-
...
|
|
202
|
-
};
|
|
203
|
-
},
|
|
204
|
-
renderComponentProps() {
|
|
205
|
-
var e, t, n;
|
|
206
|
-
return {
|
|
207
|
-
blockChildren: (e = this.useBlock.children) != null ? e : [],
|
|
208
|
-
componentRef: (t = this.component) == null ? void 0 : t.component,
|
|
209
|
-
componentOptions: {
|
|
210
|
-
...y(this.useBlock),
|
|
211
|
-
...(n = this.component) != null && n.noWrap ? {
|
|
212
|
-
attributes: {
|
|
213
|
-
...this.attributes,
|
|
214
|
-
...this.actions
|
|
215
|
-
}
|
|
216
|
-
} : {}
|
|
217
|
-
},
|
|
218
|
-
context: this.childrenContext
|
|
196
|
+
...v(this.useBlock)
|
|
219
197
|
};
|
|
220
198
|
},
|
|
221
199
|
childrenWithoutParentComponent() {
|
|
@@ -234,6 +212,23 @@ const _ = [
|
|
|
234
212
|
registeredComponents: this.context.registeredComponents,
|
|
235
213
|
inheritedStyles: e()
|
|
236
214
|
};
|
|
215
|
+
},
|
|
216
|
+
renderComponentProps() {
|
|
217
|
+
var e, t, n;
|
|
218
|
+
return {
|
|
219
|
+
blockChildren: (e = this.useBlock.children) != null ? e : [],
|
|
220
|
+
componentRef: (t = this.component) == null ? void 0 : t.component,
|
|
221
|
+
componentOptions: {
|
|
222
|
+
...y(this.useBlock),
|
|
223
|
+
...(n = this.component) != null && n.noWrap ? {
|
|
224
|
+
attributes: {
|
|
225
|
+
...this.attributes,
|
|
226
|
+
...this.actions
|
|
227
|
+
}
|
|
228
|
+
} : {}
|
|
229
|
+
},
|
|
230
|
+
context: this.childrenContext
|
|
231
|
+
};
|
|
237
232
|
}
|
|
238
233
|
},
|
|
239
234
|
methods: {
|
|
@@ -248,7 +243,7 @@ const _ = [
|
|
|
248
243
|
}
|
|
249
244
|
}
|
|
250
245
|
};
|
|
251
|
-
var
|
|
246
|
+
var I = function() {
|
|
252
247
|
var r;
|
|
253
248
|
var t = this, n = t._self._c;
|
|
254
249
|
return !Boolean(!((r = t.component) != null && r.noWrap)) && t.canShowBlock ? n("render-component", t._b({}, "render-component", t.renderComponentProps, !1)) : t.isEmptyHtmlElement(t.tag) && t.canShowBlock ? n(t.tag, t._g(t._b({ tag: "component" }, "component", t.attributes, !1), t.stripVOn(t.actions))) : !t.isEmptyHtmlElement(t.tag) && t.repeatItemData && t.canShowBlock ? n("div", { staticClass: "vue2-root-element-workaround" }, t._l(t.repeatItemData, function(o, s) {
|
|
@@ -258,10 +253,10 @@ var T = function() {
|
|
|
258
253
|
}), t._l(t.childrenWithoutParentComponent, function(o, s) {
|
|
259
254
|
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.childrenContext } });
|
|
260
255
|
})], 2) : t._e();
|
|
261
|
-
},
|
|
262
|
-
O,
|
|
263
|
-
T,
|
|
256
|
+
}, T = [], N = /* @__PURE__ */ m(
|
|
264
257
|
A,
|
|
258
|
+
I,
|
|
259
|
+
T,
|
|
265
260
|
!1,
|
|
266
261
|
null,
|
|
267
262
|
null,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as c } from "./index.
|
|
2
|
-
const l = () => import("./block-styles.
|
|
1
|
+
import { n as c } from "./index.eb91dc82.js";
|
|
2
|
+
const l = () => import("./block-styles.4667431d.js").then((o) => o.default).catch((o) => {
|
|
3
3
|
throw console.error(
|
|
4
4
|
"Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
|
|
5
5
|
o
|
|
6
6
|
), o;
|
|
7
|
-
}), s = () => import("./render-block.
|
|
7
|
+
}), s = () => import("./render-block.6f9a607a.js").then((o) => o.default).catch((o) => {
|
|
8
8
|
throw console.error(
|
|
9
9
|
"Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
|
|
10
10
|
o
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.78ba6586.cjs"),l=()=>Promise.resolve().then(()=>require("./block-styles.7c2a87df.cjs")).then(n=>n.default).catch(n=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",n),n}),s=()=>Promise.resolve().then(()=>require("./render-block.67e4dd65.cjs")).then(n=>n.default).catch(n=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",n),n}),i={name:"render-component",components:{RenderBlock:s,BlockStyles:l},props:["componentRef","componentOptions","blockChildren","context"]};var a=function(){var e=this,t=e._self._c;return e.componentRef?t(e.componentRef,e._b({tag:"component"},"component",e.componentOptions,!1),[e._l(e.blockChildren,function(o,r){return t("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:e.context}})}),e._l(e.blockChildren,function(o,r){return t("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},d=[],m=c.normalizeComponent(i,a,d,!1,null,null,null,null);const p=m.exports;exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.78ba6586.cjs"),s={name:"render-inlined-styles",props:["styles"],data(){return{TARGET:n.TARGET}},computed:{tag(){return"style"},injectedStyleScript(){return`<${this.tag}>${this.styles}</${this.tag}>`}}};var r=function(){var e=this,t=e._self._c;return e.TARGET==="svelte"||e.TARGET==="qwik"?t(e.tag,{tag:"component",domProps:{innerHTML:e._s(e.styles)}}):t(e.tag,{tag:"component"},[e._v(e._s(e.styles))])},l=[],a=n.normalizeComponent(s,r,l,!1,null,null,null,null);const o=a.exports;exports.default=o;
|
package/packages/_vue2/dist/{render-inlined-styles.1c2c5bf9.js → render-inlined-styles.942eb38d.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as n, n as s } from "./index.
|
|
1
|
+
import { T as n, n as s } from "./index.eb91dc82.js";
|
|
2
2
|
const r = {
|
|
3
3
|
name: "render-inlined-styles",
|
|
4
4
|
props: ["styles"],
|
|
@@ -6,11 +6,11 @@ const r = {
|
|
|
6
6
|
return { TARGET: n };
|
|
7
7
|
},
|
|
8
8
|
computed: {
|
|
9
|
-
injectedStyleScript() {
|
|
10
|
-
return `<${this.tag}>${this.styles}</${this.tag}>`;
|
|
11
|
-
},
|
|
12
9
|
tag() {
|
|
13
10
|
return "style";
|
|
11
|
+
},
|
|
12
|
+
injectedStyleScript() {
|
|
13
|
+
return `<${this.tag}>${this.styles}</${this.tag}>`;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.78ba6586.cjs"),o=()=>Promise.resolve().then(()=>require("./render-block.67e4dd65.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",e),e}),c={name:"render-repeated-block",components:{RenderBlock:o},props:["block","repeatContext"],provide(){const e=this;return{[n.BuilderContext.key]:{content:e.repeatContext.content,state:e.repeatContext.state,setState:e.repeatContext.setState,context:e.repeatContext.context,apiKey:e.repeatContext.apiKey,registeredComponents:e.repeatContext.registeredComponents,inheritedStyles:e.repeatContext.inheritedStyles}}}};var a=function(){var t=this,r=t._self._c;return r("render-block",{attrs:{block:t.block,context:t.repeatContext}})},s=[],l=n.normalizeComponent(c,a,s,!1,null,null,null,null);const i=l.exports;exports.default=i;
|
package/packages/_vue2/dist/{render-repeated-block.d7d1e175.js → render-repeated-block.1bb5c2fb.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as o, n as r } from "./index.
|
|
2
|
-
const a = () => import("./render-block.
|
|
1
|
+
import { B as o, n as r } from "./index.eb91dc82.js";
|
|
2
|
+
const a = () => import("./render-block.6f9a607a.js").then((e) => e.default).catch((e) => {
|
|
3
3
|
throw console.error(
|
|
4
4
|
"Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
|
|
5
5
|
e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as c } from "./index.
|
|
1
|
+
import { n as c } from "./index.eb91dc82.js";
|
|
2
2
|
const f = (e) => {
|
|
3
3
|
var a, o;
|
|
4
4
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
@@ -31,7 +31,7 @@ font-weight: ${n};
|
|
|
31
31
|
}, u = ({
|
|
32
32
|
cssCode: e,
|
|
33
33
|
contentId: t
|
|
34
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", m = () => import("./render-inlined-styles.
|
|
34
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", m = () => import("./render-inlined-styles.942eb38d.js").then((e) => e.default).catch((e) => {
|
|
35
35
|
throw console.error(
|
|
36
36
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",
|
|
37
37
|
e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.78ba6586.cjs"),d=e=>{var a,o;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),r=t.split(",")[0],i=(o=e.fileUrl)!=null?o:(a=e==null?void 0:e.files)==null?void 0:a.regular;let l="";if(i&&t&&r&&(l+=`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: "${t}";
|
|
4
4
|
src: local("${r}"), url('${i}') format('woff2');
|
|
@@ -12,9 +12,9 @@ src: url('${s}') format('woff2');
|
|
|
12
12
|
font-display: fallback;
|
|
13
13
|
font-weight: ${n};
|
|
14
14
|
}
|
|
15
|
-
`.trim())}return l},
|
|
15
|
+
`.trim())}return l},f=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(r=>d(r)))==null?void 0:t.join(" "))||""},u=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",m=()=>Promise.resolve().then(()=>require("./render-inlined-styles.56373d13.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}),h={name:"render-content-styles",components:{RenderInlinedStyles:m},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
|
|
16
16
|
${u({cssCode:this.cssCode,contentId:this.contentId})}
|
|
17
|
-
${
|
|
17
|
+
${f({customFonts:this.customFonts})}
|
|
18
18
|
|
|
19
19
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
20
20
|
margin: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.78ba6586.cjs");exports.Button=e.Button;exports.Columns=e.Columns;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.RenderBlocks=e.renderBlocks;exports.RenderContent=e.renderContent;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports.components=e.components;exports.convertSearchParamsToQueryObject=e.convertSearchParamsToQueryObject;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getBuilderSearchParamsFromWindow=e.getBuilderSearchParamsFromWindow;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.normalizeSearchParams=e.normalizeSearchParams;exports.register=e.register;exports.registerComponent=e.registerComponent;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as s, C as t, F as r, I as n, r as o, d as i, S as m, h as g, i as c, V as d, l, v as S, o as C, u, w as h, x as p, q as P, j as B, k as b, y as k, p as v, m as w, s as x, t as y } from "./index.
|
|
1
|
+
import { b as s, C as t, F as r, I as n, r as o, d as i, S as m, h as g, i as c, V as d, l, v as S, o as C, u, w as h, x as p, q as P, j as B, k as b, y as k, p as v, m as w, s as x, t as y } from "./index.eb91dc82.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Button,
|
|
4
4
|
t as Columns,
|
|
@@ -23,8 +23,8 @@ declare const _sfc_main: {
|
|
|
23
23
|
TARGET: string;
|
|
24
24
|
};
|
|
25
25
|
computed: {
|
|
26
|
-
injectedStyleScript(): any;
|
|
27
26
|
tag(): string;
|
|
27
|
+
injectedStyleScript(): any;
|
|
28
28
|
};
|
|
29
29
|
}>;
|
|
30
30
|
RenderBlocks: () => Promise<{
|
|
@@ -47,8 +47,8 @@ declare const _sfc_main: {
|
|
|
47
47
|
TARGET: string;
|
|
48
48
|
};
|
|
49
49
|
computed: {
|
|
50
|
-
injectedStyleScript(): any;
|
|
51
50
|
tag(): string;
|
|
51
|
+
injectedStyleScript(): any;
|
|
52
52
|
};
|
|
53
53
|
}>;
|
|
54
54
|
};
|
|
@@ -83,8 +83,8 @@ declare const _sfc_main: {
|
|
|
83
83
|
TARGET: string;
|
|
84
84
|
};
|
|
85
85
|
computed: {
|
|
86
|
-
injectedStyleScript(): any;
|
|
87
86
|
tag(): string;
|
|
87
|
+
injectedStyleScript(): any;
|
|
88
88
|
};
|
|
89
89
|
}>;
|
|
90
90
|
};
|
|
@@ -102,15 +102,13 @@ declare const _sfc_main: {
|
|
|
102
102
|
props: string[];
|
|
103
103
|
data(): any;
|
|
104
104
|
computed: {
|
|
105
|
-
tag(): any;
|
|
106
105
|
useBlock(): any;
|
|
107
|
-
canShowBlock():
|
|
108
|
-
proxyState(): any;
|
|
106
|
+
canShowBlock(): unknown;
|
|
109
107
|
actions(): any;
|
|
110
108
|
attributes(): any;
|
|
111
|
-
renderComponentProps(): any;
|
|
112
109
|
childrenWithoutParentComponent(): any;
|
|
113
110
|
childrenContext(): any;
|
|
111
|
+
renderComponentProps(): any;
|
|
114
112
|
};
|
|
115
113
|
methods: {
|
|
116
114
|
stripVOn: (actions?: {}) => {};
|
|
@@ -126,8 +124,8 @@ declare const _sfc_main: {
|
|
|
126
124
|
TARGET: string;
|
|
127
125
|
};
|
|
128
126
|
computed: {
|
|
129
|
-
injectedStyleScript(): any;
|
|
130
127
|
tag(): string;
|
|
128
|
+
injectedStyleScript(): any;
|
|
131
129
|
};
|
|
132
130
|
}>;
|
|
133
131
|
};
|
|
@@ -32,8 +32,8 @@ declare const _sfc_main: {
|
|
|
32
32
|
TARGET: string;
|
|
33
33
|
};
|
|
34
34
|
computed: {
|
|
35
|
-
injectedStyleScript(): any;
|
|
36
35
|
tag(): string;
|
|
36
|
+
injectedStyleScript(): any;
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
39
|
};
|
|
@@ -60,8 +60,8 @@ declare const _sfc_main: {
|
|
|
60
60
|
TARGET: string;
|
|
61
61
|
};
|
|
62
62
|
computed: {
|
|
63
|
-
injectedStyleScript(): any;
|
|
64
63
|
tag(): string;
|
|
64
|
+
injectedStyleScript(): any;
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
};
|
|
@@ -96,8 +96,8 @@ declare const _sfc_main: {
|
|
|
96
96
|
TARGET: string;
|
|
97
97
|
};
|
|
98
98
|
computed: {
|
|
99
|
-
injectedStyleScript(): any;
|
|
100
99
|
tag(): string;
|
|
100
|
+
injectedStyleScript(): any;
|
|
101
101
|
};
|
|
102
102
|
}>;
|
|
103
103
|
};
|
|
@@ -115,15 +115,13 @@ declare const _sfc_main: {
|
|
|
115
115
|
props: string[];
|
|
116
116
|
data(): any;
|
|
117
117
|
computed: {
|
|
118
|
-
tag(): any;
|
|
119
118
|
useBlock(): any;
|
|
120
|
-
canShowBlock():
|
|
121
|
-
proxyState(): any;
|
|
119
|
+
canShowBlock(): unknown;
|
|
122
120
|
actions(): any;
|
|
123
121
|
attributes(): any;
|
|
124
|
-
renderComponentProps(): any;
|
|
125
122
|
childrenWithoutParentComponent(): any;
|
|
126
123
|
childrenContext(): any;
|
|
124
|
+
renderComponentProps(): any;
|
|
127
125
|
};
|
|
128
126
|
methods: {
|
|
129
127
|
stripVOn: (actions?: {}) => {};
|
|
@@ -139,8 +137,8 @@ declare const _sfc_main: {
|
|
|
139
137
|
TARGET: string;
|
|
140
138
|
};
|
|
141
139
|
computed: {
|
|
142
|
-
injectedStyleScript(): any;
|
|
143
140
|
tag(): string;
|
|
141
|
+
injectedStyleScript(): any;
|
|
144
142
|
};
|
|
145
143
|
}>;
|
|
146
144
|
};
|
|
@@ -21,8 +21,8 @@ declare const _sfc_main: {
|
|
|
21
21
|
TARGET: string;
|
|
22
22
|
};
|
|
23
23
|
computed: {
|
|
24
|
-
injectedStyleScript(): any;
|
|
25
24
|
tag(): string;
|
|
25
|
+
injectedStyleScript(): any;
|
|
26
26
|
};
|
|
27
27
|
}>;
|
|
28
28
|
};
|
|
@@ -57,8 +57,8 @@ declare const _sfc_main: {
|
|
|
57
57
|
TARGET: string;
|
|
58
58
|
};
|
|
59
59
|
computed: {
|
|
60
|
-
injectedStyleScript(): any;
|
|
61
60
|
tag(): string;
|
|
61
|
+
injectedStyleScript(): any;
|
|
62
62
|
};
|
|
63
63
|
}>;
|
|
64
64
|
};
|
|
@@ -76,15 +76,13 @@ declare const _sfc_main: {
|
|
|
76
76
|
props: string[];
|
|
77
77
|
data(): any;
|
|
78
78
|
computed: {
|
|
79
|
-
tag(): any;
|
|
80
79
|
useBlock(): any;
|
|
81
|
-
canShowBlock():
|
|
82
|
-
proxyState(): any;
|
|
80
|
+
canShowBlock(): unknown;
|
|
83
81
|
actions(): any;
|
|
84
82
|
attributes(): any;
|
|
85
|
-
renderComponentProps(): any;
|
|
86
83
|
childrenWithoutParentComponent(): any;
|
|
87
84
|
childrenContext(): any;
|
|
85
|
+
renderComponentProps(): any;
|
|
88
86
|
};
|
|
89
87
|
methods: {
|
|
90
88
|
stripVOn: (actions?: {}) => {};
|
|
@@ -37,8 +37,8 @@ declare const _sfc_main: {
|
|
|
37
37
|
TARGET: string;
|
|
38
38
|
};
|
|
39
39
|
computed: {
|
|
40
|
-
injectedStyleScript(): any;
|
|
41
40
|
tag(): string;
|
|
41
|
+
injectedStyleScript(): any;
|
|
42
42
|
};
|
|
43
43
|
}>;
|
|
44
44
|
};
|
|
@@ -56,15 +56,13 @@ declare const _sfc_main: {
|
|
|
56
56
|
props: string[];
|
|
57
57
|
data(): any;
|
|
58
58
|
computed: {
|
|
59
|
-
tag(): any;
|
|
60
59
|
useBlock(): any;
|
|
61
|
-
canShowBlock():
|
|
62
|
-
proxyState(): any;
|
|
60
|
+
canShowBlock(): unknown;
|
|
63
61
|
actions(): any;
|
|
64
62
|
attributes(): any;
|
|
65
|
-
renderComponentProps(): any;
|
|
66
63
|
childrenWithoutParentComponent(): any;
|
|
67
64
|
childrenContext(): any;
|
|
65
|
+
renderComponentProps(): any;
|
|
68
66
|
};
|
|
69
67
|
methods: {
|
|
70
68
|
stripVOn: (actions?: {}) => {};
|
|
@@ -80,8 +78,8 @@ declare const _sfc_main: {
|
|
|
80
78
|
TARGET: string;
|
|
81
79
|
};
|
|
82
80
|
computed: {
|
|
83
|
-
injectedStyleScript(): any;
|
|
84
81
|
tag(): string;
|
|
82
|
+
injectedStyleScript(): any;
|
|
85
83
|
};
|
|
86
84
|
}>;
|
|
87
85
|
};
|
|
@@ -18,8 +18,8 @@ declare const _sfc_main: {
|
|
|
18
18
|
TARGET: string;
|
|
19
19
|
};
|
|
20
20
|
computed: {
|
|
21
|
-
injectedStyleScript(): any;
|
|
22
21
|
tag(): string;
|
|
22
|
+
injectedStyleScript(): any;
|
|
23
23
|
};
|
|
24
24
|
}>;
|
|
25
25
|
};
|
|
@@ -47,8 +47,8 @@ declare const _sfc_main: {
|
|
|
47
47
|
TARGET: string;
|
|
48
48
|
};
|
|
49
49
|
computed: {
|
|
50
|
-
injectedStyleScript(): any;
|
|
51
50
|
tag(): string;
|
|
51
|
+
injectedStyleScript(): any;
|
|
52
52
|
};
|
|
53
53
|
}>;
|
|
54
54
|
};
|
|
@@ -66,15 +66,13 @@ declare const _sfc_main: {
|
|
|
66
66
|
props: string[];
|
|
67
67
|
data(): any;
|
|
68
68
|
computed: {
|
|
69
|
-
tag(): any;
|
|
70
69
|
useBlock(): any;
|
|
71
|
-
canShowBlock():
|
|
72
|
-
proxyState(): any;
|
|
70
|
+
canShowBlock(): unknown;
|
|
73
71
|
actions(): any;
|
|
74
72
|
attributes(): any;
|
|
75
|
-
renderComponentProps(): any;
|
|
76
73
|
childrenWithoutParentComponent(): any;
|
|
77
74
|
childrenContext(): any;
|
|
75
|
+
renderComponentProps(): any;
|
|
78
76
|
};
|
|
79
77
|
methods: {
|
|
80
78
|
stripVOn: (actions?: {}) => {};
|