@builder.io/sdk-vue 0.1.6 → 0.1.8
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.4b0c0560.js +69 -0
- package/packages/_vue2/dist/block-styles.7bec5cd1.cjs +1 -0
- package/packages/{_vue3/dist/get-processed-block.48c68f6b.js → _vue2/dist/get-processed-block.c75c2852.js} +1 -1
- package/packages/{_vue3/dist/get-processed-block.e6e75aca.cjs → _vue2/dist/get-processed-block.cf207900.cjs} +1 -1
- package/packages/_vue2/dist/index.c7f4d491.cjs +30 -0
- package/packages/_vue2/dist/{index.da42f753.js → index.dec756fc.js} +226 -210
- package/packages/_vue2/dist/render-block.52b9bfb5.cjs +3 -0
- package/packages/_vue2/dist/{render-block.49244064.js → render-block.bec02b6f.js} +109 -96
- package/packages/_vue2/dist/{render-component.3117c1fd.cjs → render-component.1e97315e.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.42e82bc4.js → render-component.d5d82be4.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.5d055b0c.js → render-inlined-styles.32a11bb1.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.d7530652.cjs → render-inlined-styles.7d83a347.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.b4a9163a.cjs → render-repeated-block.7ff2fef4.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.bceba726.js → render-repeated-block.bb747825.js} +2 -2
- package/packages/_vue2/dist/{render-styles.0451ee0a.js → render-styles.2844231b.js} +2 -2
- package/packages/_vue2/dist/{render-styles.144e8a3e.cjs → render-styles.e2a9b12c.cjs} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +3 -3
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +10 -2
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +7 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +6 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +6 -3
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +6 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +7 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +7 -0
- package/packages/_vue2/dist/src/types/builder-block.d.ts +8 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.2ded86d7.cjs +1 -0
- package/packages/_vue3/dist/block-styles.f9c554cb.js +66 -0
- package/packages/{_vue2/dist/get-processed-block.531fd2fb.cjs → _vue3/dist/get-processed-block.496ea0a2.cjs} +1 -1
- package/packages/{_vue2/dist/get-processed-block.aa4c9919.js → _vue3/dist/get-processed-block.885c1bd9.js} +1 -1
- package/packages/_vue3/dist/index.2aa53f88.cjs +30 -0
- package/packages/_vue3/dist/{index.8392057e.js → index.d8e8e5a6.js} +236 -220
- package/packages/_vue3/dist/{render-block.017ccb02.js → render-block.3f0e76cb.js} +87 -72
- package/packages/_vue3/dist/render-block.8383c9c9.cjs +3 -0
- package/packages/_vue3/dist/{render-component.626cb9a2.cjs → render-component.5674d138.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.5b79b1a2.js → render-component.942d8c45.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.ab30b262.cjs → render-inlined-styles.1a93ff69.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.0773feb1.js → render-inlined-styles.d2e5f785.js} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.09b2f47e.js → render-repeated-block.8caddcea.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.802c4a21.cjs → render-repeated-block.d8bcc141.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.c79197c2.js → render-styles.43492acf.js} +2 -2
- package/packages/_vue3/dist/{render-styles.7e2d3639.cjs → render-styles.60e81530.cjs} +5 -5
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +3 -3
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +4 -2
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +0 -3
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/types/builder-block.d.ts +8 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.9b0be456.cjs +0 -1
- package/packages/_vue2/dist/block-styles.d0435c8f.js +0 -66
- package/packages/_vue2/dist/index.b431861b.cjs +0 -30
- package/packages/_vue2/dist/render-block.5d240071.cjs +0 -3
- package/packages/_vue3/dist/block-styles.05a01a8e.cjs +0 -1
- package/packages/_vue3/dist/block-styles.5fb6e927.js +0 -63
- package/packages/_vue3/dist/index.6275edf0.cjs +0 -30
- package/packages/_vue3/dist/render-block.f6f263a8.cjs +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.c7f4d491.cjs"),u=require("./get-processed-block.cf207900.cjs"),d=t=>`v-on:${t.toLowerCase()}`,p=(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[d(o)]=p(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}function b(t){var n;const e={...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 c.convertStyleMapToCSSArray(t).join(" ");case"qwik":case"reactNative":case"react":return t}}function y(t){return t.tagName||"div"}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=u.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(),i=n.itemName||(s?s+"Item":"item");return o.map((a,l)=>({context:{...e,state:{...e.state,$index:l,$item:a,[i]:a,[`$${i}Index`]:l}},block:r}))},_=()=>Promise.resolve().then(()=>require("./block-styles.7bec5cd1.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",t),t}),S=()=>Promise.resolve().then(()=>require("./render-repeated-block.7ff2fef4.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.1e97315e.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",t),t}),P={name:"render-block",components:{RenderComponent:w,RenderRepeatedBlock:S,BlockStyles:_},props:["block","context"],data(){return{component:B({block:this.block,context:this.context}),repeatItemData:C({block:this.block,context:this.context}),isEmptyHtmlElement:v}},computed:{tag(){return y(this.useBlock)},useBlock(){return this.repeatItemData?this.block:u.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return c.checkIsDefined(this.useBlock.hide)?!this.useBlock.hide:c.checkIsDefined(this.useBlock.show)?this.useBlock.show:!0},proxyState(){return typeof Proxy>"u"?(console.error("no Proxy available in this environment, cannot proxy state."),this.context.state):new Proxy(this.context.state,{set:(e,n,r)=>{var o,s;return e[n]=r,(s=(o=this.context).setState)==null||s.call(o,e),!0}})},actions(){return m({block:this.useBlock,state:this.proxyState,context:this.context.context})},attributes(){return{...b(this.useBlock)}},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}},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,state:this.context.state,content:this.context.content,context:this.context.context,setState:this.context.setState,registeredComponents:this.context.registeredComponents,inheritedStyles:t()}}},methods:{stripVOn:function(e={}){return Object.keys(e).reduce((n,r)=>({...n,[r.replace("v-on:","")]:e[r]}),{})}}};var E=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()},R=[],I=c.normalizeComponent(P,E,R,!1,null,null,null,null);const O=I.exports;exports.default=O;
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { e as
|
|
2
|
-
import { g as p } from "./get-processed-block.
|
|
3
|
-
const
|
|
4
|
-
code:
|
|
5
|
-
context:
|
|
6
|
-
state:
|
|
1
|
+
import { e as u, T as m, d, c as l, n as h } from "./index.dec756fc.js";
|
|
2
|
+
import { g as p } from "./get-processed-block.c75c2852.js";
|
|
3
|
+
const k = (e) => `v-on:${e.toLowerCase()}`, f = (e, t) => (n) => u({
|
|
4
|
+
code: e,
|
|
5
|
+
context: t.context,
|
|
6
|
+
state: t.state,
|
|
7
7
|
event: n,
|
|
8
8
|
isExpression: !1
|
|
9
9
|
});
|
|
10
|
-
function
|
|
10
|
+
function x(e) {
|
|
11
11
|
var r;
|
|
12
|
-
const
|
|
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
|
-
|
|
17
|
+
t[k(o)] = f(s, e);
|
|
18
18
|
}
|
|
19
|
-
return
|
|
19
|
+
return t;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
var
|
|
21
|
+
function y(e) {
|
|
22
|
+
var t;
|
|
23
23
|
return {
|
|
24
|
-
...(
|
|
25
|
-
...
|
|
26
|
-
builderBlock:
|
|
24
|
+
...(t = e.component) == null ? void 0 : t.options,
|
|
25
|
+
...e.options,
|
|
26
|
+
builderBlock: e
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function b(
|
|
30
|
-
const
|
|
31
|
-
if (typeof
|
|
32
|
-
return
|
|
33
|
-
const n =
|
|
29
|
+
function b(e) {
|
|
30
|
+
const t = {};
|
|
31
|
+
if (typeof e != "string")
|
|
32
|
+
return t;
|
|
33
|
+
const n = e.trim().split(/\\s+/);
|
|
34
34
|
for (const r of n)
|
|
35
|
-
|
|
36
|
-
return
|
|
35
|
+
t[r] = !0;
|
|
36
|
+
return t;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
function g(e) {
|
|
39
|
+
return e.class = b(e.class), e;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function B(e) {
|
|
42
42
|
var n;
|
|
43
|
-
const
|
|
44
|
-
...
|
|
45
|
-
"builder-id":
|
|
46
|
-
style: v(
|
|
47
|
-
class: [
|
|
43
|
+
const t = {
|
|
44
|
+
...e.properties,
|
|
45
|
+
"builder-id": e.id,
|
|
46
|
+
style: v(e.style),
|
|
47
|
+
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
48
48
|
};
|
|
49
|
-
return
|
|
49
|
+
return g(t);
|
|
50
50
|
}
|
|
51
|
-
function v(
|
|
52
|
-
if (!!
|
|
53
|
-
switch (
|
|
51
|
+
function v(e) {
|
|
52
|
+
if (!!e)
|
|
53
|
+
switch (m) {
|
|
54
54
|
case "svelte":
|
|
55
55
|
case "vue2":
|
|
56
56
|
case "vue3":
|
|
57
57
|
case "solid":
|
|
58
|
-
return
|
|
58
|
+
return d(e).join(" ");
|
|
59
59
|
case "qwik":
|
|
60
60
|
case "reactNative":
|
|
61
61
|
case "react":
|
|
62
|
-
return
|
|
62
|
+
return e;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function C(
|
|
66
|
-
return
|
|
65
|
+
function C(e) {
|
|
66
|
+
return e.tagName || "div";
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const _ = [
|
|
69
69
|
"area",
|
|
70
70
|
"base",
|
|
71
71
|
"br",
|
|
@@ -81,45 +81,45 @@ const B = [
|
|
|
81
81
|
"source",
|
|
82
82
|
"track",
|
|
83
83
|
"wbr"
|
|
84
|
-
],
|
|
85
|
-
block:
|
|
86
|
-
context:
|
|
84
|
+
], w = (e) => typeof e == "string" && _.includes(e.toLowerCase()), S = ({
|
|
85
|
+
block: e,
|
|
86
|
+
context: t
|
|
87
87
|
}) => {
|
|
88
88
|
var o;
|
|
89
89
|
const n = (o = p({
|
|
90
|
-
block:
|
|
91
|
-
state:
|
|
92
|
-
context:
|
|
90
|
+
block: e,
|
|
91
|
+
state: t.state,
|
|
92
|
+
context: t.context,
|
|
93
93
|
shouldEvaluateBindings: !1
|
|
94
94
|
}).component) == null ? void 0 : o.name;
|
|
95
95
|
if (!n)
|
|
96
96
|
return null;
|
|
97
|
-
const r =
|
|
97
|
+
const r = t.registeredComponents[n];
|
|
98
98
|
if (r)
|
|
99
99
|
return r;
|
|
100
100
|
console.warn(`
|
|
101
101
|
Could not find a registered component named "${n}".
|
|
102
102
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
103
|
-
},
|
|
104
|
-
block:
|
|
105
|
-
context:
|
|
103
|
+
}, E = ({
|
|
104
|
+
block: e,
|
|
105
|
+
context: t
|
|
106
106
|
}) => {
|
|
107
|
-
const { repeat: n, ...r } =
|
|
107
|
+
const { repeat: n, ...r } = e;
|
|
108
108
|
if (!(n != null && n.collection))
|
|
109
109
|
return;
|
|
110
|
-
const o =
|
|
110
|
+
const o = u({
|
|
111
111
|
code: n.collection,
|
|
112
|
-
state:
|
|
113
|
-
context:
|
|
112
|
+
state: t.state,
|
|
113
|
+
context: t.context
|
|
114
114
|
});
|
|
115
115
|
if (!Array.isArray(o))
|
|
116
116
|
return;
|
|
117
117
|
const s = n.collection.split(".").pop(), c = n.itemName || (s ? s + "Item" : "item");
|
|
118
118
|
return o.map((i, a) => ({
|
|
119
119
|
context: {
|
|
120
|
-
...
|
|
120
|
+
...t,
|
|
121
121
|
state: {
|
|
122
|
-
...
|
|
122
|
+
...t.state,
|
|
123
123
|
$index: a,
|
|
124
124
|
$item: i,
|
|
125
125
|
[c]: i,
|
|
@@ -128,40 +128,40 @@ const B = [
|
|
|
128
128
|
},
|
|
129
129
|
block: r
|
|
130
130
|
}));
|
|
131
|
-
}, P = () => import("./block-styles.
|
|
131
|
+
}, P = () => import("./block-styles.4b0c0560.js").then((e) => e.default).catch((e) => {
|
|
132
132
|
throw console.error(
|
|
133
133
|
"Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
|
|
134
|
-
|
|
135
|
-
),
|
|
136
|
-
}),
|
|
134
|
+
e
|
|
135
|
+
), e;
|
|
136
|
+
}), R = () => import("./render-repeated-block.bb747825.js").then((e) => e.default).catch((e) => {
|
|
137
137
|
throw console.error(
|
|
138
138
|
"Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",
|
|
139
|
-
|
|
140
|
-
),
|
|
141
|
-
}),
|
|
139
|
+
e
|
|
140
|
+
), e;
|
|
141
|
+
}), I = () => import("./render-component.d5d82be4.js").then((e) => e.default).catch((e) => {
|
|
142
142
|
throw console.error(
|
|
143
143
|
"Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
|
|
144
|
-
|
|
145
|
-
),
|
|
146
|
-
}),
|
|
144
|
+
e
|
|
145
|
+
), e;
|
|
146
|
+
}), O = {
|
|
147
147
|
name: "render-block",
|
|
148
148
|
components: {
|
|
149
|
-
RenderComponent:
|
|
150
|
-
RenderRepeatedBlock:
|
|
149
|
+
RenderComponent: I,
|
|
150
|
+
RenderRepeatedBlock: R,
|
|
151
151
|
BlockStyles: P
|
|
152
152
|
},
|
|
153
153
|
props: ["block", "context"],
|
|
154
154
|
data() {
|
|
155
155
|
return {
|
|
156
|
-
component:
|
|
156
|
+
component: S({
|
|
157
157
|
block: this.block,
|
|
158
158
|
context: this.context
|
|
159
159
|
}),
|
|
160
|
-
repeatItemData:
|
|
160
|
+
repeatItemData: E({
|
|
161
161
|
block: this.block,
|
|
162
162
|
context: this.context
|
|
163
163
|
}),
|
|
164
|
-
isEmptyHtmlElement:
|
|
164
|
+
isEmptyHtmlElement: w
|
|
165
165
|
};
|
|
166
166
|
},
|
|
167
167
|
computed: {
|
|
@@ -176,18 +176,21 @@ const B = [
|
|
|
176
176
|
shouldEvaluateBindings: !0
|
|
177
177
|
});
|
|
178
178
|
},
|
|
179
|
+
canShowBlock() {
|
|
180
|
+
return l(this.useBlock.hide) ? !this.useBlock.hide : l(this.useBlock.show) ? this.useBlock.show : !0;
|
|
181
|
+
},
|
|
179
182
|
proxyState() {
|
|
180
183
|
return typeof Proxy > "u" ? (console.error(
|
|
181
184
|
"no Proxy available in this environment, cannot proxy state."
|
|
182
185
|
), this.context.state) : new Proxy(this.context.state, {
|
|
183
|
-
set: (
|
|
186
|
+
set: (t, n, r) => {
|
|
184
187
|
var o, s;
|
|
185
|
-
return
|
|
188
|
+
return t[n] = r, (s = (o = this.context).setState) == null || s.call(o, t), !0;
|
|
186
189
|
}
|
|
187
190
|
});
|
|
188
191
|
},
|
|
189
192
|
actions() {
|
|
190
|
-
return
|
|
193
|
+
return x({
|
|
191
194
|
block: this.useBlock,
|
|
192
195
|
state: this.proxyState,
|
|
193
196
|
context: this.context.context
|
|
@@ -195,33 +198,32 @@ const B = [
|
|
|
195
198
|
},
|
|
196
199
|
attributes() {
|
|
197
200
|
return {
|
|
198
|
-
...
|
|
201
|
+
...B(this.useBlock)
|
|
199
202
|
};
|
|
200
203
|
},
|
|
201
204
|
renderComponentProps() {
|
|
202
|
-
var
|
|
205
|
+
var e, t, n;
|
|
203
206
|
return {
|
|
204
|
-
blockChildren: (
|
|
205
|
-
componentRef: (
|
|
207
|
+
blockChildren: (e = this.useBlock.children) != null ? e : [],
|
|
208
|
+
componentRef: (t = this.component) == null ? void 0 : t.component,
|
|
206
209
|
componentOptions: {
|
|
207
|
-
...
|
|
210
|
+
...y(this.useBlock),
|
|
208
211
|
...(n = this.component) != null && n.noWrap ? {
|
|
209
212
|
attributes: {
|
|
210
213
|
...this.attributes,
|
|
211
214
|
...this.actions
|
|
212
215
|
}
|
|
213
|
-
} : {}
|
|
214
|
-
customBreakpoints: (s = (o = (r = this.childrenContext) == null ? void 0 : r.content) == null ? void 0 : o.meta) == null ? void 0 : s.breakpoints
|
|
216
|
+
} : {}
|
|
215
217
|
},
|
|
216
218
|
context: this.childrenContext
|
|
217
219
|
};
|
|
218
220
|
},
|
|
219
221
|
childrenWithoutParentComponent() {
|
|
220
|
-
var
|
|
221
|
-
return !((
|
|
222
|
+
var t, n;
|
|
223
|
+
return !((t = this.component) != null && t.component) && !this.repeatItemData ? (n = this.useBlock.children) != null ? n : [] : [];
|
|
222
224
|
},
|
|
223
225
|
childrenContext() {
|
|
224
|
-
const
|
|
226
|
+
const e = () => ({});
|
|
225
227
|
return {
|
|
226
228
|
apiKey: this.context.apiKey,
|
|
227
229
|
state: this.context.state,
|
|
@@ -229,32 +231,43 @@ const B = [
|
|
|
229
231
|
context: this.context.context,
|
|
230
232
|
setState: this.context.setState,
|
|
231
233
|
registeredComponents: this.context.registeredComponents,
|
|
232
|
-
inheritedStyles:
|
|
234
|
+
inheritedStyles: e()
|
|
233
235
|
};
|
|
234
236
|
}
|
|
237
|
+
},
|
|
238
|
+
methods: {
|
|
239
|
+
stripVOn: function(t = {}) {
|
|
240
|
+
return Object.keys(t).reduce(
|
|
241
|
+
(n, r) => ({
|
|
242
|
+
...n,
|
|
243
|
+
[r.replace("v-on:", "")]: t[r]
|
|
244
|
+
}),
|
|
245
|
+
{}
|
|
246
|
+
);
|
|
247
|
+
}
|
|
235
248
|
}
|
|
236
249
|
};
|
|
237
|
-
var
|
|
250
|
+
var T = function() {
|
|
238
251
|
var r;
|
|
239
|
-
var
|
|
240
|
-
return Boolean(!((r =
|
|
252
|
+
var t = this, n = t._self._c;
|
|
253
|
+
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) {
|
|
241
254
|
return n("render-repeated-block", { key: s, attrs: { repeatContext: o.context, block: o.block } });
|
|
242
|
-
}), 1) : n(
|
|
243
|
-
return n("render-block", { key: "render-block-" + o.id, attrs: { block: o, context:
|
|
244
|
-
}),
|
|
245
|
-
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context:
|
|
246
|
-
})], 2) :
|
|
247
|
-
},
|
|
255
|
+
}), 1) : t.canShowBlock ? n(t.tag, t._g(t._b({ tag: "component" }, "component", t.attributes, !1), t.stripVOn(t.actions)), [n("render-component", t._b({}, "render-component", t.renderComponentProps, !1)), t._l(t.childrenWithoutParentComponent, function(o, s) {
|
|
256
|
+
return n("render-block", { key: "render-block-" + o.id, attrs: { block: o, context: t.childrenContext } });
|
|
257
|
+
}), t._l(t.childrenWithoutParentComponent, function(o, s) {
|
|
258
|
+
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.childrenContext } });
|
|
259
|
+
})], 2) : t._e();
|
|
260
|
+
}, A = [], N = /* @__PURE__ */ h(
|
|
261
|
+
O,
|
|
248
262
|
T,
|
|
249
263
|
A,
|
|
250
|
-
I,
|
|
251
264
|
!1,
|
|
252
265
|
null,
|
|
253
266
|
null,
|
|
254
267
|
null,
|
|
255
268
|
null
|
|
256
269
|
);
|
|
257
|
-
const
|
|
270
|
+
const $ = N.exports;
|
|
258
271
|
export {
|
|
259
|
-
|
|
272
|
+
$ as default
|
|
260
273
|
};
|
|
@@ -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.c7f4d491.cjs"),l=()=>Promise.resolve().then(()=>require("./block-styles.7bec5cd1.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.52b9bfb5.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,10 +1,10 @@
|
|
|
1
|
-
import { n as c } from "./index.
|
|
2
|
-
const l = () => import("./block-styles.
|
|
1
|
+
import { n as c } from "./index.dec756fc.js";
|
|
2
|
+
const l = () => import("./block-styles.4b0c0560.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.bec02b6f.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 n=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.c7f4d491.cjs"),s={name:"render-inlined-styles",props:["styles"],data(){return{TARGET:n.TARGET}},computed:{injectedStyleScript(){return`<${this.tag}>${this.styles}</${this.tag}>`},tag(){return"style"}}};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=[],o=n.normalizeComponent(s,r,l,!1,null,null,null,null);const a=o.exports;exports.default=a;
|
|
@@ -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.c7f4d491.cjs"),o=()=>Promise.resolve().then(()=>require("./render-block.52b9bfb5.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.bceba726.js → render-repeated-block.bb747825.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.dec756fc.js";
|
|
2
|
+
const a = () => import("./render-block.bec02b6f.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.dec756fc.js";
|
|
2
2
|
const f = (e) => {
|
|
3
3
|
var o, a;
|
|
4
4
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
@@ -31,7 +31,7 @@ font-weight: ${r};
|
|
|
31
31
|
}, m = ({
|
|
32
32
|
cssCode: e,
|
|
33
33
|
contentId: t
|
|
34
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", u = () => import("./render-inlined-styles.
|
|
34
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", u = () => import("./render-inlined-styles.32a11bb1.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 a=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.c7f4d491.cjs"),d=e=>{var c,o;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],i=(o=e.fileUrl)!=null?o:(c=e==null?void 0:e.files)==null?void 0:c.regular;let l="";if(i&&t&&n&&(l+=`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: "${t}";
|
|
4
4
|
src: local("${n}"), url('${i}') format('woff2');
|
|
@@ -12,7 +12,7 @@ src: url('${s}') format('woff2');
|
|
|
12
12
|
font-display: fallback;
|
|
13
13
|
font-weight: ${r};
|
|
14
14
|
}
|
|
15
|
-
`.trim())}return l},f=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>d(n)))==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.
|
|
15
|
+
`.trim())}return l},f=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>d(n)))==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.7d83a347.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}),y={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
|
`}}};var p=function(){var t=this,n=t._self._c;return n("render-inlined-styles",{attrs:{styles:t.injectedStyles}})},_=[],g=a.normalizeComponent(y,p,_,!1,null,null,null,null);const h=g.exports;exports.default=h;
|
|
@@ -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.c7f4d491.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 {
|
|
1
|
+
import { h as s, C as t, F as r, I as n, r as o, i, S as m, j as g, k as c, V as l, o as d, x as S, q as C, w as u, y as h, z as p, v as P, l as B, m as k, A as v, s as w, p as x, u as y, t as F } from "./index.dec756fc.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Button,
|
|
4
4
|
t as Columns,
|
|
@@ -9,8 +9,8 @@ export {
|
|
|
9
9
|
m as Section,
|
|
10
10
|
g as Symbol,
|
|
11
11
|
c as Text,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
l as Video,
|
|
13
|
+
d as components,
|
|
14
14
|
S as convertSearchParamsToQueryObject,
|
|
15
15
|
C as createRegisterComponentMessage,
|
|
16
16
|
u as getAllContent,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BuilderBlock } from "../../types/builder-block";
|
|
2
|
-
import type { Breakpoints } from "../../types/builder-content";
|
|
3
2
|
declare type Column = {
|
|
4
3
|
blocks: any;
|
|
5
4
|
width?: number;
|
|
@@ -11,7 +10,6 @@ export interface ColumnProps {
|
|
|
11
10
|
space?: number;
|
|
12
11
|
stackColumnsAt?: StackColumnsAt;
|
|
13
12
|
reverseColumnsWhenStacked?: boolean;
|
|
14
|
-
customBreakpoints?: Breakpoints;
|
|
15
13
|
}
|
|
16
14
|
declare const _sfc_main: {
|
|
17
15
|
name: string;
|
|
@@ -58,6 +56,7 @@ declare const _sfc_main: {
|
|
|
58
56
|
};
|
|
59
57
|
computed: {
|
|
60
58
|
useBlock(): any;
|
|
59
|
+
canShowBlock(): any;
|
|
61
60
|
css(): any;
|
|
62
61
|
};
|
|
63
62
|
}>;
|
|
@@ -93,6 +92,7 @@ declare const _sfc_main: {
|
|
|
93
92
|
};
|
|
94
93
|
computed: {
|
|
95
94
|
useBlock(): any;
|
|
95
|
+
canShowBlock(): any;
|
|
96
96
|
css(): any;
|
|
97
97
|
};
|
|
98
98
|
}>;
|
|
@@ -102,6 +102,7 @@ declare const _sfc_main: {
|
|
|
102
102
|
computed: {
|
|
103
103
|
tag(): any;
|
|
104
104
|
useBlock(): any;
|
|
105
|
+
canShowBlock(): any;
|
|
105
106
|
proxyState(): any;
|
|
106
107
|
actions(): any;
|
|
107
108
|
attributes(): any;
|
|
@@ -109,6 +110,9 @@ declare const _sfc_main: {
|
|
|
109
110
|
childrenWithoutParentComponent(): any;
|
|
110
111
|
childrenContext(): any;
|
|
111
112
|
};
|
|
113
|
+
methods: {
|
|
114
|
+
stripVOn: (actions?: {}) => {};
|
|
115
|
+
};
|
|
112
116
|
}>;
|
|
113
117
|
BlockStyles: () => Promise<{
|
|
114
118
|
name: string;
|
|
@@ -131,6 +135,7 @@ declare const _sfc_main: {
|
|
|
131
135
|
};
|
|
132
136
|
computed: {
|
|
133
137
|
useBlock(): any;
|
|
138
|
+
canShowBlock(): any;
|
|
134
139
|
css(): any;
|
|
135
140
|
};
|
|
136
141
|
}>;
|
|
@@ -153,6 +158,9 @@ declare const _sfc_main: {
|
|
|
153
158
|
data(): {
|
|
154
159
|
TARGET: string;
|
|
155
160
|
};
|
|
161
|
+
inject: {
|
|
162
|
+
builderContext: symbol;
|
|
163
|
+
};
|
|
156
164
|
computed: {
|
|
157
165
|
columnsCssVars(): any;
|
|
158
166
|
columnCssVars(): any;
|
|
@@ -72,6 +72,7 @@ declare const _sfc_main: {
|
|
|
72
72
|
};
|
|
73
73
|
computed: {
|
|
74
74
|
useBlock(): any;
|
|
75
|
+
canShowBlock(): any;
|
|
75
76
|
css(): any;
|
|
76
77
|
};
|
|
77
78
|
}>;
|
|
@@ -107,6 +108,7 @@ declare const _sfc_main: {
|
|
|
107
108
|
};
|
|
108
109
|
computed: {
|
|
109
110
|
useBlock(): any;
|
|
111
|
+
canShowBlock(): any;
|
|
110
112
|
css(): any;
|
|
111
113
|
};
|
|
112
114
|
}>;
|
|
@@ -116,6 +118,7 @@ declare const _sfc_main: {
|
|
|
116
118
|
computed: {
|
|
117
119
|
tag(): any;
|
|
118
120
|
useBlock(): any;
|
|
121
|
+
canShowBlock(): any;
|
|
119
122
|
proxyState(): any;
|
|
120
123
|
actions(): any;
|
|
121
124
|
attributes(): any;
|
|
@@ -123,6 +126,9 @@ declare const _sfc_main: {
|
|
|
123
126
|
childrenWithoutParentComponent(): any;
|
|
124
127
|
childrenContext(): any;
|
|
125
128
|
};
|
|
129
|
+
methods: {
|
|
130
|
+
stripVOn: (actions?: {}) => {};
|
|
131
|
+
};
|
|
126
132
|
}>;
|
|
127
133
|
BlockStyles: () => Promise<{
|
|
128
134
|
name: string;
|
|
@@ -145,6 +151,7 @@ declare const _sfc_main: {
|
|
|
145
151
|
};
|
|
146
152
|
computed: {
|
|
147
153
|
useBlock(): any;
|
|
154
|
+
canShowBlock(): any;
|
|
148
155
|
css(): any;
|
|
149
156
|
};
|
|
150
157
|
}>;
|
|
@@ -32,6 +32,7 @@ declare const _sfc_main: {
|
|
|
32
32
|
};
|
|
33
33
|
computed: {
|
|
34
34
|
useBlock(): any;
|
|
35
|
+
canShowBlock(): any;
|
|
35
36
|
css(): any;
|
|
36
37
|
};
|
|
37
38
|
}>;
|
|
@@ -67,6 +68,7 @@ declare const _sfc_main: {
|
|
|
67
68
|
};
|
|
68
69
|
computed: {
|
|
69
70
|
useBlock(): any;
|
|
71
|
+
canShowBlock(): any;
|
|
70
72
|
css(): any;
|
|
71
73
|
};
|
|
72
74
|
}>;
|
|
@@ -76,6 +78,7 @@ declare const _sfc_main: {
|
|
|
76
78
|
computed: {
|
|
77
79
|
tag(): any;
|
|
78
80
|
useBlock(): any;
|
|
81
|
+
canShowBlock(): any;
|
|
79
82
|
proxyState(): any;
|
|
80
83
|
actions(): any;
|
|
81
84
|
attributes(): any;
|
|
@@ -83,5 +86,8 @@ declare const _sfc_main: {
|
|
|
83
86
|
childrenWithoutParentComponent(): any;
|
|
84
87
|
childrenContext(): any;
|
|
85
88
|
};
|
|
89
|
+
methods: {
|
|
90
|
+
stripVOn: (actions?: {}) => {};
|
|
91
|
+
};
|
|
86
92
|
};
|
|
87
93
|
export default _sfc_main;
|