@builder.io/sdk-vue 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.4667431d.js → block-styles.5729b057.js} +18 -17
- package/packages/_vue2/dist/block-styles.cb3c2dd0.cjs +1 -0
- package/packages/{_vue3/dist/css.3241302b.cjs → _vue2/dist/css.2efa95fa.cjs} +1 -1
- package/packages/{_vue3/dist/css.81a21c5a.js → _vue2/dist/css.a54ddc90.js} +1 -1
- package/packages/_vue2/dist/{index.eb91dc82.js → index.6a9eec41.js} +356 -354
- package/packages/_vue2/dist/index.8547cce2.cjs +29 -0
- package/packages/_vue2/dist/{render-block.6f9a607a.js → render-block.4c7d7ca1.js} +43 -42
- package/packages/_vue2/dist/render-block.753d2325.cjs +3 -0
- package/packages/_vue2/dist/render-component.84d45798.js +38 -0
- package/packages/_vue2/dist/render-component.90275cfa.cjs +1 -0
- package/packages/_vue2/dist/render-inlined-styles.1999f52e.cjs +1 -0
- package/packages/_vue2/dist/render-inlined-styles.1fa49816.js +34 -0
- package/packages/_vue2/dist/{render-repeated-block.1bb5c2fb.js → render-repeated-block.900e2543.js} +15 -13
- package/packages/_vue2/dist/render-repeated-block.f522a309.cjs +1 -0
- package/packages/_vue2/dist/render-styles.15b8cdf0.cjs +31 -0
- package/packages/_vue2/dist/{render-styles.0d1f8872.js → render-styles.591ca7be.js} +26 -25
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +23 -22
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +19 -8
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +29 -174
- package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +9 -13
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +13 -20
- package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +1 -4
- package/packages/_vue2/dist/src/blocks/image/image.vue.d.ts +72 -0
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +8 -11
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +12 -7
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +15 -245
- package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +7 -4
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +42 -7
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +18 -27
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +3 -86
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +3 -86
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +19 -84
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +23 -127
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +15 -18
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +46 -212
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +12 -11
- package/packages/_vue2/dist/src/index.d.ts +1 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.56f7b28a.cjs +1 -0
- package/packages/_vue3/dist/block-styles.f06f105b.js +69 -0
- package/packages/{_vue2/dist/css.468435de.js → _vue3/dist/css.2ff361fc.js} +1 -1
- package/packages/{_vue2/dist/css.dce6e4eb.cjs → _vue3/dist/css.f83437ab.cjs} +1 -1
- package/packages/_vue3/dist/{index.45ab85e5.js → index.0aed90df.js} +785 -784
- package/packages/_vue3/dist/index.d72bde22.cjs +29 -0
- package/packages/_vue3/dist/render-block.4e95bb8d.cjs +3 -0
- package/packages/_vue3/dist/{render-block.ec4c1913.js → render-block.905bcce5.js} +88 -109
- package/packages/_vue3/dist/render-component.0a7c094b.cjs +1 -0
- package/packages/_vue3/dist/render-component.b4a311b8.js +42 -0
- package/packages/_vue3/dist/render-inlined-styles.454bc38b.js +32 -0
- package/packages/_vue3/dist/render-inlined-styles.a596482a.cjs +1 -0
- package/packages/_vue3/dist/render-repeated-block.12894c71.js +38 -0
- package/packages/_vue3/dist/render-repeated-block.a95715ec.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.cf6faa29.js → render-styles.90b25836.js} +33 -33
- package/packages/_vue3/dist/render-styles.b6bf070d.cjs +31 -0
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +19 -8
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +45 -91
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +16 -13
- package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +17 -20
- package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +1 -4
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +54 -14
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +27 -11
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +12 -7
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +25 -162
- package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +7 -4
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +42 -7
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +18 -27
- package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +19 -8
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +23 -44
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +15 -18
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +77 -129
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +12 -11
- package/packages/_vue3/dist/src/index.d.ts +1 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.7c2a87df.cjs +0 -1
- package/packages/_vue2/dist/index.78ba6586.cjs +0 -29
- package/packages/_vue2/dist/render-block.67e4dd65.cjs +0 -3
- package/packages/_vue2/dist/render-component.10d6c8d2.js +0 -37
- package/packages/_vue2/dist/render-component.3578089b.cjs +0 -1
- package/packages/_vue2/dist/render-inlined-styles.56373d13.cjs +0 -1
- package/packages/_vue2/dist/render-inlined-styles.942eb38d.js +0 -33
- package/packages/_vue2/dist/render-repeated-block.18d7fc6e.cjs +0 -1
- package/packages/_vue2/dist/render-styles.de7287b6.cjs +0 -31
- package/packages/_vue3/dist/block-styles.09955b0c.cjs +0 -1
- package/packages/_vue3/dist/block-styles.6bd36a5a.js +0 -69
- package/packages/_vue3/dist/index.cca81180.cjs +0 -29
- package/packages/_vue3/dist/render-block.33cc5768.cjs +0 -3
- package/packages/_vue3/dist/render-component.3bd8dc76.js +0 -26
- package/packages/_vue3/dist/render-component.c0d5e797.cjs +0 -1
- package/packages/_vue3/dist/render-inlined-styles.952d2fff.js +0 -32
- package/packages/_vue3/dist/render-inlined-styles.b55b6667.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.263f0cec.js +0 -37
- package/packages/_vue3/dist/render-repeated-block.c3c9e926.cjs +0 -1
- package/packages/_vue3/dist/render-styles.d1ac3a18.cjs +0 -31
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as o, defineAsyncComponent as n, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
+
import { B as a, _ as s } from "./index.0aed90df.js";
|
|
3
|
+
const i = () => import("./render-block.905bcce5.js").then((e) => e.default).catch((e) => {
|
|
4
|
+
throw console.error(
|
|
5
|
+
"Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
|
|
6
|
+
e
|
|
7
|
+
), e;
|
|
8
|
+
}), l = o({
|
|
9
|
+
name: "render-repeated-block",
|
|
10
|
+
components: { RenderBlock: n(i) },
|
|
11
|
+
props: ["block", "repeatContext"],
|
|
12
|
+
provide() {
|
|
13
|
+
const e = this;
|
|
14
|
+
return {
|
|
15
|
+
[a.key]: {
|
|
16
|
+
content: e.repeatContext.content,
|
|
17
|
+
state: e.repeatContext.state,
|
|
18
|
+
setState: e.repeatContext.setState,
|
|
19
|
+
context: e.repeatContext.context,
|
|
20
|
+
apiKey: e.repeatContext.apiKey,
|
|
21
|
+
registeredComponents: e.repeatContext.registeredComponents,
|
|
22
|
+
inheritedStyles: e.repeatContext.inheritedStyles,
|
|
23
|
+
apiVersion: e.repeatContext.apiVersion
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
function d(e, m, x, C, k, _) {
|
|
29
|
+
const t = r("render-block");
|
|
30
|
+
return c(), p(t, {
|
|
31
|
+
block: e.block,
|
|
32
|
+
context: e.repeatContext
|
|
33
|
+
}, null, 8, ["block", "context"]);
|
|
34
|
+
}
|
|
35
|
+
const u = /* @__PURE__ */ s(l, [["render", d]]);
|
|
36
|
+
export {
|
|
37
|
+
u as default
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./index.d72bde22.cjs"),r=()=>Promise.resolve().then(()=>require("./render-block.4e95bb8d.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=t.defineComponent({name:"render-repeated-block",components:{RenderBlock:t.defineAsyncComponent(r)},props:["block","repeatContext"],provide(){const e=this;return{[o.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,apiVersion:e.repeatContext.apiVersion}}}});function s(e,a,i,d,l,u){const n=t.resolveComponent("render-block");return t.openBlock(),t.createBlock(n,{block:e.block,context:e.repeatContext},null,8,["block","context"])}const p=o._export_sfc(c,[["render",s]]);exports.default=p;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, defineAsyncComponent as f, resolveComponent as d, openBlock as p, createBlock as m } from "vue";
|
|
2
|
+
import { _ as u } from "./index.0aed90df.js";
|
|
3
|
+
const h = (e) => {
|
|
4
4
|
var o, l;
|
|
5
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0],
|
|
6
|
-
let
|
|
7
|
-
if (
|
|
5
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (l = e.fileUrl) != null ? l : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
6
|
+
let r = "";
|
|
7
|
+
if (i && t && n && (r += `
|
|
8
8
|
@font-face {
|
|
9
9
|
font-family: "${t}";
|
|
10
|
-
src: local("${n}"), url('${
|
|
10
|
+
src: local("${n}"), url('${i}') format('woff2');
|
|
11
11
|
font-display: fallback;
|
|
12
12
|
font-weight: 400;
|
|
13
13
|
}
|
|
@@ -15,66 +15,66 @@ font-weight: 400;
|
|
|
15
15
|
for (const s in e.files) {
|
|
16
16
|
if (!(String(Number(s)) === s))
|
|
17
17
|
continue;
|
|
18
|
-
const
|
|
19
|
-
|
|
18
|
+
const a = e.files[s];
|
|
19
|
+
a && a !== i && (r += `
|
|
20
20
|
@font-face {
|
|
21
21
|
font-family: "${t}";
|
|
22
|
-
src: url('${
|
|
22
|
+
src: url('${a}') format('woff2');
|
|
23
23
|
font-display: fallback;
|
|
24
24
|
font-weight: ${s};
|
|
25
25
|
}
|
|
26
26
|
`.trim());
|
|
27
27
|
}
|
|
28
|
-
return
|
|
29
|
-
},
|
|
28
|
+
return r;
|
|
29
|
+
}, y = ({ customFonts: e }) => {
|
|
30
30
|
var t;
|
|
31
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
32
|
-
},
|
|
31
|
+
return ((t = e == null ? void 0 : e.map((n) => h(n))) == null ? void 0 : t.join(" ")) || "";
|
|
32
|
+
}, g = ({
|
|
33
33
|
cssCode: e,
|
|
34
34
|
contentId: t
|
|
35
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
35
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $ = () => import("./render-inlined-styles.454bc38b.js").then((e) => e.default).catch((e) => {
|
|
36
36
|
throw console.error(
|
|
37
37
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",
|
|
38
38
|
e
|
|
39
39
|
), e;
|
|
40
|
-
}),
|
|
40
|
+
}), b = c({
|
|
41
41
|
name: "render-content-styles",
|
|
42
42
|
components: {
|
|
43
|
-
RenderInlinedStyles:
|
|
43
|
+
RenderInlinedStyles: f($)
|
|
44
44
|
},
|
|
45
45
|
props: ["cssCode", "contentId", "customFonts"],
|
|
46
46
|
data() {
|
|
47
47
|
return {
|
|
48
48
|
injectedStyles: `
|
|
49
|
-
${
|
|
49
|
+
${g({
|
|
50
50
|
cssCode: this.cssCode,
|
|
51
51
|
contentId: this.contentId
|
|
52
52
|
})}
|
|
53
|
-
${
|
|
53
|
+
${y({
|
|
54
54
|
customFonts: this.customFonts
|
|
55
55
|
})}
|
|
56
56
|
|
|
57
57
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
58
|
-
margin: 0;
|
|
58
|
+
margin: 0;
|
|
59
59
|
}
|
|
60
60
|
.builder-text > p, .builder-text > .builder-paragraph {
|
|
61
|
-
color: inherit;
|
|
62
|
-
line-height: inherit;
|
|
63
|
-
letter-spacing: inherit;
|
|
64
|
-
font-weight: inherit;
|
|
65
|
-
font-size: inherit;
|
|
66
|
-
text-align: inherit;
|
|
67
|
-
font-family: inherit;
|
|
61
|
+
color: inherit;
|
|
62
|
+
line-height: inherit;
|
|
63
|
+
letter-spacing: inherit;
|
|
64
|
+
font-weight: inherit;
|
|
65
|
+
font-size: inherit;
|
|
66
|
+
text-align: inherit;
|
|
67
|
+
font-family: inherit;
|
|
68
68
|
}
|
|
69
69
|
`
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
};
|
|
73
|
-
function
|
|
74
|
-
const l =
|
|
75
|
-
return
|
|
72
|
+
});
|
|
73
|
+
function _(e, t, n, i, r, o) {
|
|
74
|
+
const l = d("render-inlined-styles");
|
|
75
|
+
return p(), m(l, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const S = /* @__PURE__ */ u(b, [["render", _]]);
|
|
78
78
|
export {
|
|
79
|
-
|
|
79
|
+
S as default
|
|
80
80
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),d=require("./index.d72bde22.cjs"),f=e=>{var c,s;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],r=(s=e.fileUrl)!=null?s:(c=e==null?void 0:e.files)==null?void 0:c.regular;let l="";if(r&&t&&n&&(l+=`
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "${t}";
|
|
4
|
+
src: local("${n}"), url('${r}') format('woff2');
|
|
5
|
+
font-display: fallback;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
}
|
|
8
|
+
`.trim()),e.files)for(const o in e.files){if(!(String(Number(o))===o))continue;const a=e.files[o];a&&a!==r&&(l+=`
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "${t}";
|
|
11
|
+
src: url('${a}') format('woff2');
|
|
12
|
+
font-display: fallback;
|
|
13
|
+
font-weight: ${o};
|
|
14
|
+
}
|
|
15
|
+
`.trim())}return l},u=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>f(n)))==null?void 0:t.join(" "))||""},p=({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.a596482a.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=i.defineComponent({name:"render-content-styles",components:{RenderInlinedStyles:i.defineAsyncComponent(m)},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
|
|
16
|
+
${p({cssCode:this.cssCode,contentId:this.contentId})}
|
|
17
|
+
${u({customFonts:this.customFonts})}
|
|
18
|
+
|
|
19
|
+
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
.builder-text > p, .builder-text > .builder-paragraph {
|
|
23
|
+
color: inherit;
|
|
24
|
+
line-height: inherit;
|
|
25
|
+
letter-spacing: inherit;
|
|
26
|
+
font-weight: inherit;
|
|
27
|
+
font-size: inherit;
|
|
28
|
+
text-align: inherit;
|
|
29
|
+
font-family: inherit;
|
|
30
|
+
}
|
|
31
|
+
`}}});function h(e,t,n,r,l,c){const s=i.resolveComponent("render-inlined-styles");return i.openBlock(),i.createBlock(s,{styles:e.injectedStyles},null,8,["styles"])}const g=d._export_sfc(y,[["render",h]]);exports.default=g;
|
|
@@ -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.d72bde22.cjs");require("vue");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 t, C as r, F as n, I as o, r as i, d as m, S as g, h as c, i as d, V as l, l as S, u as C, n as p, q as u, v as h, w as P, p as B, j as b, k, x as v, o as w, m as x, s as F, t as R } from "./index.
|
|
1
|
+
import { b as t, C as r, F as n, I as o, r as i, d as m, S as g, h as c, i as d, V as l, l as S, u as C, n as p, q as u, v as h, w as P, p as B, j as b, k, x as v, o as w, m as x, s as F, t as R } from "./index.0aed90df.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
t as Button,
|
|
@@ -4,12 +4,23 @@ export interface ButtonProps {
|
|
|
4
4
|
link?: string;
|
|
5
5
|
openLinkInNewTab?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const _sfc_main: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
};
|
|
7
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
8
|
+
link?: any;
|
|
9
|
+
attributes?: any;
|
|
10
|
+
text?: any;
|
|
11
|
+
openLinkInNewTab?: any;
|
|
12
|
+
}>, unknown, unknown, {}, {
|
|
13
|
+
filterAttrs: (attrs: {} | undefined, isEvent: any) => {};
|
|
14
|
+
_classStringToObject(str: any): {};
|
|
15
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
16
|
+
link?: any;
|
|
17
|
+
attributes?: any;
|
|
18
|
+
text?: any;
|
|
19
|
+
openLinkInNewTab?: any;
|
|
20
|
+
}>>>, {
|
|
21
|
+
readonly link?: any;
|
|
22
|
+
readonly attributes?: any;
|
|
23
|
+
readonly text?: any;
|
|
24
|
+
readonly openLinkInNewTab?: any;
|
|
25
|
+
}>;
|
|
15
26
|
export default _sfc_main;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { BuilderBlock } from "../../types/builder-block";
|
|
2
|
+
import type { SizeName } from "../../constants/device-sizes";
|
|
3
|
+
import type { Dictionary } from "../../types/typescript";
|
|
1
4
|
type Column = {
|
|
2
5
|
blocks: BuilderBlock[];
|
|
3
6
|
width?: number;
|
|
@@ -11,95 +14,46 @@ export interface ColumnProps {
|
|
|
11
14
|
stackColumnsAt?: StackColumnsAt;
|
|
12
15
|
reverseColumnsWhenStacked?: boolean;
|
|
13
16
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
css(): any;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
props: string[];
|
|
61
|
-
inject: {
|
|
62
|
-
builderContext: symbol;
|
|
63
|
-
};
|
|
64
|
-
computed: {
|
|
65
|
-
className(): any;
|
|
66
|
-
};
|
|
67
|
-
methods: {
|
|
68
|
-
onClick(): void;
|
|
69
|
-
onMouseEnter(): void;
|
|
70
|
-
_classStringToObject(str: any): {};
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
props: string[];
|
|
75
|
-
data(): {
|
|
76
|
-
gutterSize: any;
|
|
77
|
-
cols: any;
|
|
78
|
-
stackAt: any;
|
|
79
|
-
flexDir: string;
|
|
80
|
-
TARGET: string;
|
|
81
|
-
};
|
|
82
|
-
inject: {
|
|
83
|
-
builderContext: symbol;
|
|
84
|
-
};
|
|
85
|
-
computed: {
|
|
86
|
-
columnsCssVars(): any;
|
|
87
|
-
columnsStyles(): any;
|
|
88
|
-
};
|
|
89
|
-
methods: {
|
|
90
|
-
getWidth(index: number): any;
|
|
91
|
-
getColumnCssWidth(index: number): any;
|
|
92
|
-
getTabletStyle({ stackedStyle, desktopStyle, }: {
|
|
93
|
-
stackedStyle: CSSVal;
|
|
94
|
-
desktopStyle: CSSVal;
|
|
95
|
-
}): any;
|
|
96
|
-
getMobileStyle({ stackedStyle, desktopStyle, }: {
|
|
97
|
-
stackedStyle: CSSVal;
|
|
98
|
-
desktopStyle: CSSVal;
|
|
99
|
-
}): any;
|
|
100
|
-
columnCssVars(index: number): any;
|
|
101
|
-
getWidthForBreakpointSize(size: SizeName): number;
|
|
102
|
-
_classStringToObject(str: any): {};
|
|
103
|
-
};
|
|
104
|
-
};
|
|
17
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
18
|
+
columns?: any;
|
|
19
|
+
space?: any;
|
|
20
|
+
stackColumnsAt?: any;
|
|
21
|
+
reverseColumnsWhenStacked?: any;
|
|
22
|
+
builderBlock?: any;
|
|
23
|
+
}>, unknown, {
|
|
24
|
+
gutterSize: number;
|
|
25
|
+
cols: any;
|
|
26
|
+
stackAt: any;
|
|
27
|
+
flexDir: string;
|
|
28
|
+
TARGET: string;
|
|
29
|
+
}, {
|
|
30
|
+
columnsCssVars(): Dictionary<string>;
|
|
31
|
+
columnsStyles(): string;
|
|
32
|
+
}, {
|
|
33
|
+
getWidth(index: number): any;
|
|
34
|
+
getColumnCssWidth(index: number): string;
|
|
35
|
+
getTabletStyle({ stackedStyle, desktopStyle, }: {
|
|
36
|
+
stackedStyle: CSSVal;
|
|
37
|
+
desktopStyle: CSSVal;
|
|
38
|
+
}): CSSVal;
|
|
39
|
+
getMobileStyle({ stackedStyle, desktopStyle, }: {
|
|
40
|
+
stackedStyle: CSSVal;
|
|
41
|
+
desktopStyle: CSSVal;
|
|
42
|
+
}): CSSVal;
|
|
43
|
+
columnCssVars(index: number): Dictionary<string>;
|
|
44
|
+
getWidthForBreakpointSize(size: SizeName): number;
|
|
45
|
+
_classStringToObject(str: any): {};
|
|
46
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
47
|
+
columns?: any;
|
|
48
|
+
space?: any;
|
|
49
|
+
stackColumnsAt?: any;
|
|
50
|
+
reverseColumnsWhenStacked?: any;
|
|
51
|
+
builderBlock?: any;
|
|
52
|
+
}>>>, {
|
|
53
|
+
readonly columns?: any;
|
|
54
|
+
readonly space?: any;
|
|
55
|
+
readonly stackColumnsAt?: any;
|
|
56
|
+
readonly reverseColumnsWhenStacked?: any;
|
|
57
|
+
readonly builderBlock?: any;
|
|
58
|
+
}>;
|
|
105
59
|
export default _sfc_main;
|
|
@@ -2,17 +2,20 @@ export interface CustomCodeProps {
|
|
|
2
2
|
code: string;
|
|
3
3
|
replaceNodes?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare const _sfc_main: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
6
|
+
replaceNodes?: any;
|
|
7
|
+
code?: any;
|
|
8
|
+
}>, unknown, {
|
|
9
|
+
scriptsInserted: never[];
|
|
10
|
+
scriptsRun: never[];
|
|
11
|
+
}, {}, {
|
|
12
|
+
findAndRunScripts(): void;
|
|
13
|
+
_classStringToObject(str: any): {};
|
|
14
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
15
|
+
replaceNodes?: any;
|
|
16
|
+
code?: any;
|
|
17
|
+
}>>>, {
|
|
18
|
+
readonly replaceNodes?: any;
|
|
19
|
+
readonly code?: any;
|
|
20
|
+
}>;
|
|
18
21
|
export default _sfc_main;
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
export interface EmbedProps {
|
|
2
2
|
content: string;
|
|
3
3
|
}
|
|
4
|
-
declare const _sfc_main: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
5
|
+
content?: any;
|
|
6
|
+
}>, unknown, {
|
|
7
|
+
scriptsInserted: never[];
|
|
8
|
+
scriptsRun: never[];
|
|
9
|
+
ranInitFn: boolean;
|
|
10
|
+
}, {
|
|
11
|
+
onUpdateHook0(): {
|
|
12
|
+
0: unknown;
|
|
13
|
+
1: boolean;
|
|
11
14
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
onUpdateHook0(): any;
|
|
20
|
-
};
|
|
21
|
-
methods: {
|
|
22
|
-
findAndRunScripts(): void;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
15
|
+
}, {
|
|
16
|
+
findAndRunScripts(): void;
|
|
17
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
18
|
+
content?: any;
|
|
19
|
+
}>>>, {
|
|
20
|
+
readonly content?: any;
|
|
21
|
+
}>;
|
|
25
22
|
export default _sfc_main;
|
|
@@ -3,8 +3,5 @@ export interface FragmentProps {
|
|
|
3
3
|
attributes?: any;
|
|
4
4
|
children?: any;
|
|
5
5
|
}
|
|
6
|
-
declare const _sfc_main: {
|
|
7
|
-
name: string;
|
|
8
|
-
props: never[];
|
|
9
|
-
};
|
|
6
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{}>>>, {}>;
|
|
10
7
|
export default _sfc_main;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
1
2
|
export interface ImageProps {
|
|
2
3
|
className?: string;
|
|
3
4
|
image: string;
|
|
@@ -6,7 +7,7 @@ export interface ImageProps {
|
|
|
6
7
|
height?: number;
|
|
7
8
|
width?: number;
|
|
8
9
|
altText?: string;
|
|
9
|
-
backgroundSize?:
|
|
10
|
+
backgroundSize?: "cover" | "contain";
|
|
10
11
|
backgroundPosition?: string;
|
|
11
12
|
srcset?: string;
|
|
12
13
|
aspectRatio?: number;
|
|
@@ -16,17 +17,56 @@ export interface ImageProps {
|
|
|
16
17
|
noWebp?: boolean;
|
|
17
18
|
src?: string;
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
21
|
+
aspectRatio?: any;
|
|
22
|
+
backgroundPosition?: any;
|
|
23
|
+
backgroundSize?: any;
|
|
24
|
+
className?: any;
|
|
25
|
+
builderBlock?: any;
|
|
26
|
+
image?: any;
|
|
27
|
+
src?: any;
|
|
28
|
+
srcset?: any;
|
|
29
|
+
noWebp?: any;
|
|
30
|
+
altText?: any;
|
|
31
|
+
sizes?: any;
|
|
32
|
+
fitContent?: any;
|
|
33
|
+
}>, unknown, unknown, {
|
|
34
|
+
srcSetToUse(): any;
|
|
35
|
+
webpSrcSet(): any;
|
|
36
|
+
aspectRatioCss(): {
|
|
37
|
+
readonly position: "absolute";
|
|
38
|
+
readonly height: "100%";
|
|
39
|
+
readonly width: "100%";
|
|
40
|
+
readonly left: "0px";
|
|
41
|
+
readonly top: "0px";
|
|
42
|
+
} | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
_classStringToObject(str: any): {};
|
|
45
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
46
|
+
aspectRatio?: any;
|
|
47
|
+
backgroundPosition?: any;
|
|
48
|
+
backgroundSize?: any;
|
|
49
|
+
className?: any;
|
|
50
|
+
builderBlock?: any;
|
|
51
|
+
image?: any;
|
|
52
|
+
src?: any;
|
|
53
|
+
srcset?: any;
|
|
54
|
+
noWebp?: any;
|
|
55
|
+
altText?: any;
|
|
56
|
+
sizes?: any;
|
|
57
|
+
fitContent?: any;
|
|
58
|
+
}>>>, {
|
|
59
|
+
readonly aspectRatio?: any;
|
|
60
|
+
readonly backgroundPosition?: any;
|
|
61
|
+
readonly backgroundSize?: any;
|
|
62
|
+
readonly className?: any;
|
|
63
|
+
readonly builderBlock?: any;
|
|
64
|
+
readonly image?: any;
|
|
65
|
+
readonly src?: any;
|
|
66
|
+
readonly srcset?: any;
|
|
67
|
+
readonly noWebp?: any;
|
|
68
|
+
readonly altText?: any;
|
|
69
|
+
readonly sizes?: any;
|
|
70
|
+
readonly fitContent?: any;
|
|
71
|
+
}>;
|
|
32
72
|
export default _sfc_main;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isEditing } from "../../functions/is-editing.js";
|
|
1
2
|
export interface ImgProps {
|
|
2
3
|
attributes?: any;
|
|
3
4
|
imgSrc?: string;
|
|
@@ -6,15 +7,30 @@ export interface ImgProps {
|
|
|
6
7
|
backgroundSize?: "cover" | "contain";
|
|
7
8
|
backgroundPosition?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
10
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
11
|
+
backgroundPosition?: any;
|
|
12
|
+
backgroundSize?: any;
|
|
13
|
+
attributes?: any;
|
|
14
|
+
image?: any;
|
|
15
|
+
altText?: any;
|
|
16
|
+
imgSrc?: any;
|
|
17
|
+
}>, unknown, {
|
|
18
|
+
isEditing: typeof isEditing;
|
|
19
|
+
}, {}, {
|
|
20
|
+
filterAttrs: (attrs: {} | undefined, isEvent: any) => {};
|
|
21
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
22
|
+
backgroundPosition?: any;
|
|
23
|
+
backgroundSize?: any;
|
|
24
|
+
attributes?: any;
|
|
25
|
+
image?: any;
|
|
26
|
+
altText?: any;
|
|
27
|
+
imgSrc?: any;
|
|
28
|
+
}>>>, {
|
|
29
|
+
readonly backgroundPosition?: any;
|
|
30
|
+
readonly backgroundSize?: any;
|
|
31
|
+
readonly attributes?: any;
|
|
32
|
+
readonly image?: any;
|
|
33
|
+
readonly altText?: any;
|
|
34
|
+
readonly imgSrc?: any;
|
|
35
|
+
}>;
|
|
20
36
|
export default _sfc_main;
|
|
@@ -4,11 +4,16 @@ export interface SectionProps {
|
|
|
4
4
|
children?: any;
|
|
5
5
|
builderBlock?: any;
|
|
6
6
|
}
|
|
7
|
-
declare const _sfc_main: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
8
|
+
maxWidth?: any;
|
|
9
|
+
attributes?: any;
|
|
10
|
+
}>, unknown, unknown, {}, {
|
|
11
|
+
filterAttrs: (attrs: {} | undefined, isEvent: any) => {};
|
|
12
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
13
|
+
maxWidth?: any;
|
|
14
|
+
attributes?: any;
|
|
15
|
+
}>>>, {
|
|
16
|
+
readonly maxWidth?: any;
|
|
17
|
+
readonly attributes?: any;
|
|
18
|
+
}>;
|
|
14
19
|
export default _sfc_main;
|