@builder.io/sdk-vue 0.4.4 → 0.4.5
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.503c2141.cjs +1 -0
- package/packages/_vue2/dist/block-styles.76e698a7.js +72 -0
- package/packages/_vue2/dist/{css.5dc54b85.js → css.1601c108.js} +2 -2
- package/packages/_vue2/dist/{css.91bb94e8.cjs → css.6d92c2ca.cjs} +1 -1
- package/packages/_vue2/dist/{evaluate.f654f563.js → evaluate.5365c739.js} +1 -1
- package/packages/_vue2/dist/{evaluate.10e091b0.cjs → evaluate.97a0f474.cjs} +3 -3
- package/packages/_vue2/dist/index.4de025de.cjs +32 -0
- package/packages/_vue2/dist/{index.a1dfdaec.js → index.dcd9672f.js} +316 -297
- package/packages/_vue2/dist/inlined-script.5b4b5fc3.js +23 -0
- package/packages/_vue2/dist/inlined-script.6a6ca760.cjs +1 -0
- package/packages/_vue2/dist/inlined-styles.759d26e8.js +23 -0
- package/packages/_vue2/dist/inlined-styles.9ddda3d7.cjs +1 -0
- package/packages/_vue2/dist/{render-block.df744a97.js → render-block.844495c0.js} +6 -6
- package/packages/_vue2/dist/{render-block.55b40822.cjs → render-block.c0841b5d.cjs} +2 -2
- package/packages/_vue2/dist/{render-component.baf2d372.cjs → render-component.a3770d92.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.9632b476.js → render-component.a57a8b32.js} +3 -3
- package/packages/_vue2/dist/render-content.19fe4991.cjs +1 -0
- package/packages/_vue2/dist/{render-content.30c701ec.js → render-content.8d297efd.js} +79 -78
- package/packages/_vue2/dist/{render-repeated-block.e9bfa3cd.cjs → render-repeated-block.be86aae1.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.7f4862b2.js → render-repeated-block.f51da3f5.js} +2 -2
- package/packages/_vue2/dist/render-styles.b41f1309.js +87 -0
- package/packages/_vue2/dist/render-styles.ba0e223a.cjs +31 -0
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/inlined-script.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.types.d.ts +9 -23
- package/packages/_vue2/dist/src/components/render-content-variants/helpers.d.ts +3 -2
- package/packages/_vue2/dist/src/components/render-content-variants/render-content-variants.types.d.ts +20 -0
- package/packages/_vue2/dist/src/components/render-content-variants/render-content-variants.vue.d.ts +25 -2
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/types/enforced-partials.d.ts +21 -0
- package/packages/_vue2/dist/src/types/typescript.d.ts +3 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/sdk.cjs +18 -18
- package/packages/_vue3/dist/sdk.js +657 -633
- package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/inlined-script.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.types.d.ts +9 -23
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +3 -6
- package/packages/_vue3/dist/src/components/render-content-variants/helpers.d.ts +27 -3
- package/packages/_vue3/dist/src/components/render-content-variants/render-content-variants.types.d.ts +20 -0
- package/packages/_vue3/dist/src/components/render-content-variants/render-content-variants.vue.d.ts +50 -4
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/types/enforced-partials.d.ts +21 -0
- package/packages/_vue3/dist/src/types/typescript.d.ts +3 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.0037defd.cjs +0 -1
- package/packages/_vue2/dist/block-styles.bc8cdc9f.js +0 -76
- package/packages/_vue2/dist/index.a4e21f82.cjs +0 -32
- package/packages/_vue2/dist/render-content.d464cccb.cjs +0 -1
- package/packages/_vue2/dist/render-inlined-styles.36b7a3a4.js +0 -23
- package/packages/_vue2/dist/render-inlined-styles.469ed053.cjs +0 -1
- package/packages/_vue2/dist/render-styles.43e1e2a4.js +0 -87
- package/packages/_vue2/dist/render-styles.ad11935f.cjs +0 -31
- package/packages/_vue2/dist/src/components/{render-inlined-styles.vue.d.ts → inlined-styles.vue.d.ts} +3 -3
- package/packages/_vue3/dist/src/components/{render-inlined-styles.vue.d.ts → inlined-styles.vue.d.ts} +3 -3
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f } from "vue";
|
|
2
|
-
import { n as c } from "./index.a1dfdaec.js";
|
|
3
|
-
const d = (e) => {
|
|
4
|
-
var o, a;
|
|
5
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
6
|
-
let l = "";
|
|
7
|
-
if (i && t && r && (l += `
|
|
8
|
-
@font-face {
|
|
9
|
-
font-family: "${t}";
|
|
10
|
-
src: local("${r}"), url('${i}') format('woff2');
|
|
11
|
-
font-display: fallback;
|
|
12
|
-
font-weight: 400;
|
|
13
|
-
}
|
|
14
|
-
`.trim()), e.files)
|
|
15
|
-
for (const n in e.files) {
|
|
16
|
-
if (!(String(Number(n)) === n))
|
|
17
|
-
continue;
|
|
18
|
-
const s = e.files[n];
|
|
19
|
-
s && s !== i && (l += `
|
|
20
|
-
@font-face {
|
|
21
|
-
font-family: "${t}";
|
|
22
|
-
src: url('${s}') format('woff2');
|
|
23
|
-
font-display: fallback;
|
|
24
|
-
font-weight: ${n};
|
|
25
|
-
}
|
|
26
|
-
`.trim());
|
|
27
|
-
}
|
|
28
|
-
return l;
|
|
29
|
-
}, m = ({ customFonts: e }) => {
|
|
30
|
-
var t;
|
|
31
|
-
return ((t = e == null ? void 0 : e.map((r) => d(r))) == null ? void 0 : t.join(" ")) || "";
|
|
32
|
-
}, u = ({
|
|
33
|
-
cssCode: e,
|
|
34
|
-
contentId: t
|
|
35
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", p = () => import("./render-inlined-styles.36b7a3a4.js").then((e) => e.default).catch((e) => {
|
|
36
|
-
throw console.error(
|
|
37
|
-
"Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",
|
|
38
|
-
e
|
|
39
|
-
), e;
|
|
40
|
-
}), h = f({
|
|
41
|
-
name: "render-content-styles",
|
|
42
|
-
components: { RenderInlinedStyles: p },
|
|
43
|
-
props: ["cssCode", "contentId", "customFonts"],
|
|
44
|
-
data() {
|
|
45
|
-
return {
|
|
46
|
-
injectedStyles: `
|
|
47
|
-
${u({
|
|
48
|
-
cssCode: this.cssCode,
|
|
49
|
-
contentId: this.contentId
|
|
50
|
-
})}
|
|
51
|
-
${m({
|
|
52
|
-
customFonts: this.customFonts
|
|
53
|
-
})}
|
|
54
|
-
|
|
55
|
-
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
56
|
-
margin: 0;
|
|
57
|
-
}
|
|
58
|
-
.builder-text > p, .builder-text > .builder-paragraph {
|
|
59
|
-
color: inherit;
|
|
60
|
-
line-height: inherit;
|
|
61
|
-
letter-spacing: inherit;
|
|
62
|
-
font-weight: inherit;
|
|
63
|
-
font-size: inherit;
|
|
64
|
-
text-align: inherit;
|
|
65
|
-
font-family: inherit;
|
|
66
|
-
}
|
|
67
|
-
`.trim()
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
var y = function() {
|
|
72
|
-
var t = this, r = t._self._c;
|
|
73
|
-
return t._self._setupProxy, r("render-inlined-styles", { attrs: { styles: t.injectedStyles } });
|
|
74
|
-
}, g = [], _ = /* @__PURE__ */ c(
|
|
75
|
-
h,
|
|
76
|
-
y,
|
|
77
|
-
g,
|
|
78
|
-
!1,
|
|
79
|
-
null,
|
|
80
|
-
null,
|
|
81
|
-
null,
|
|
82
|
-
null
|
|
83
|
-
);
|
|
84
|
-
const x = _.exports;
|
|
85
|
-
export {
|
|
86
|
-
x as default
|
|
87
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),f=require("./index.a4e21f82.cjs"),d=e=>{var o,a;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),r=t.split(",")[0],i=(a=e.fileUrl)!=null?a:(o=e==null?void 0:e.files)==null?void 0:o.regular;let l="";if(i&&t&&r&&(l+=`
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: "${t}";
|
|
4
|
-
src: local("${r}"), url('${i}') format('woff2');
|
|
5
|
-
font-display: fallback;
|
|
6
|
-
font-weight: 400;
|
|
7
|
-
}
|
|
8
|
-
`.trim()),e.files)for(const n in e.files){if(!(String(Number(n))===n))continue;const s=e.files[n];s&&s!==i&&(l+=`
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: "${t}";
|
|
11
|
-
src: url('${s}') format('woff2');
|
|
12
|
-
font-display: fallback;
|
|
13
|
-
font-weight: ${n};
|
|
14
|
-
}
|
|
15
|
-
`.trim())}return l},u=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(r=>d(r)))==null?void 0:t.join(" "))||""},m=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",p=()=>Promise.resolve().then(()=>require("./render-inlined-styles.469ed053.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=c.defineComponent({name:"render-content-styles",components:{RenderInlinedStyles:p},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
|
|
16
|
-
${m({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
|
-
`.trim()}}});var y=function(){var t=this,r=t._self._c;return t._self._setupProxy,r("render-inlined-styles",{attrs:{styles:t.injectedStyles}})},g=[],_=f.normalizeComponent(h,y,g,!1,null,null,null,null);const b=_.exports;exports.default=b;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
2
|
-
styles?: any;
|
|
3
2
|
id?: any;
|
|
4
|
-
}>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
5
3
|
styles?: any;
|
|
4
|
+
}>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
6
5
|
id?: any;
|
|
6
|
+
styles?: any;
|
|
7
7
|
}>>>, {
|
|
8
|
-
readonly styles?: any;
|
|
9
8
|
readonly id?: any;
|
|
9
|
+
readonly styles?: any;
|
|
10
10
|
}>;
|
|
11
11
|
export default _sfc_main;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
2
|
-
styles?: any;
|
|
3
2
|
id?: any;
|
|
4
|
-
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
5
3
|
styles?: any;
|
|
4
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
6
5
|
id?: any;
|
|
6
|
+
styles?: any;
|
|
7
7
|
}>>>, {
|
|
8
|
-
readonly styles?: any;
|
|
9
8
|
readonly id?: any;
|
|
9
|
+
readonly styles?: any;
|
|
10
10
|
}>;
|
|
11
11
|
export default _sfc_main;
|