@builder.io/sdk-vue 0.0.1-73 → 0.0.1
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/dist/vue-2/{block-styles.4027f1b9.js → block-styles.3f130795.js} +21 -18
- package/dist/vue-2/block-styles.da610cf5.cjs +10 -0
- package/dist/{vue-3/get-processed-block.36f8ee1a.cjs → vue-2/get-processed-block.2bcd0d2b.cjs} +1 -1
- package/dist/{vue-3/get-processed-block.3fdcf745.js → vue-2/get-processed-block.c01e4ddc.js} +1 -1
- package/dist/vue-2/{index.62438203.js → index.0622ae10.js} +767 -631
- package/dist/vue-2/index.dcdf302c.cjs +4 -0
- package/dist/vue-2/render-block.bdaa8069.js +243 -0
- package/dist/vue-2/render-block.f41ce0b2.cjs +3 -0
- package/dist/vue-2/{render-inlined-styles.50d42108.js → render-inlined-styles.7974da9f.js} +11 -8
- package/dist/vue-2/{render-inlined-styles.ff54866e.cjs → render-inlined-styles.b3a06398.cjs} +1 -1
- package/dist/vue-2/render-repeated-block.c2b982e3.js +45 -0
- package/dist/vue-2/render-repeated-block.f36a831f.cjs +1 -0
- package/dist/vue-2/render-styles.354823a4.js +65 -0
- package/dist/vue-2/{render-styles.95568b18.cjs → render-styles.4b5b2368.cjs} +2 -2
- package/dist/vue-2/sdk.cjs +1 -1
- package/dist/vue-2/sdk.js +4 -4
- package/dist/vue-2/style.css +1 -1
- package/dist/vue-3/{block-styles.83ef5bb2.js → block-styles.76754b24.js} +25 -20
- package/dist/vue-3/{block-styles.98e0bfa5.cjs → block-styles.e17850cc.cjs} +3 -3
- package/dist/{vue-2/get-processed-block.d751f4a7.cjs → vue-3/get-processed-block.2dd25223.cjs} +1 -1
- package/dist/{vue-2/get-processed-block.0494fb81.js → vue-3/get-processed-block.6eaca128.js} +1 -1
- package/dist/vue-3/{index.843892e8.js → index.52915610.js} +757 -622
- package/dist/vue-3/index.91387fc2.cjs +4 -0
- package/dist/vue-3/render-block.369b7818.js +255 -0
- package/dist/vue-3/render-block.c9718d52.cjs +3 -0
- package/dist/vue-3/{render-inlined-styles.52546cc8.cjs → render-inlined-styles.2a3eeef4.cjs} +1 -1
- package/dist/vue-3/{render-inlined-styles.1a6db9d2.js → render-inlined-styles.af201a11.js} +11 -8
- package/dist/vue-3/render-repeated-block.4266e559.js +40 -0
- package/dist/vue-3/render-repeated-block.b4a6d591.cjs +1 -0
- package/dist/vue-3/render-styles.1744d2eb.js +59 -0
- package/dist/vue-3/{render-styles.7008104f.cjs → render-styles.7d5898dd.cjs} +2 -2
- package/dist/vue-3/sdk.cjs +1 -1
- package/dist/vue-3/sdk.js +3 -3
- package/dist/vue-3/style.css +1 -1
- package/nuxt.js +3 -2
- package/package.json +9 -2
- package/dist/vue-2/block-styles.8800a764.cjs +0 -10
- package/dist/vue-2/index.1aa5d3e4.cjs +0 -1
- package/dist/vue-2/index.3e132178.js +0 -78896
- package/dist/vue-2/index.475f52c7.cjs +0 -1
- package/dist/vue-2/render-block.1e8573eb.js +0 -206
- package/dist/vue-2/render-block.c46898e7.cjs +0 -3
- package/dist/vue-2/render-component.61552d2f.cjs +0 -1
- package/dist/vue-2/render-component.7863c949.js +0 -27
- package/dist/vue-2/render-repeated-block.b228208b.cjs +0 -1
- package/dist/vue-2/render-repeated-block.ec12e3ae.js +0 -39
- package/dist/vue-2/render-styles.9ef447c4.js +0 -62
- package/dist/vue-3/index.e1b4b830.cjs +0 -1
- package/dist/vue-3/render-block.66ba74d8.js +0 -214
- package/dist/vue-3/render-block.7f3bcf7c.cjs +0 -3
- package/dist/vue-3/render-component.3fc97401.js +0 -29
- package/dist/vue-3/render-component.8c88611c.cjs +0 -1
- package/dist/vue-3/render-repeated-block.782a1fd8.js +0 -34
- package/dist/vue-3/render-repeated-block.f3519de4.cjs +0 -1
- package/dist/vue-3/render-styles.8ab3c39a.js +0 -54
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as a } from "./get-processed-block.
|
|
1
|
+
import { n as r, T as c } from "./index.0622ae10.js";
|
|
2
|
+
import { g as a } from "./get-processed-block.c01e4ddc.js";
|
|
3
3
|
const i = {
|
|
4
4
|
small: {
|
|
5
5
|
min: 320,
|
|
@@ -20,21 +20,23 @@ const i = {
|
|
|
20
20
|
if (typeof n == "string")
|
|
21
21
|
return `${m(s)}: ${n};`;
|
|
22
22
|
}).join(`
|
|
23
|
-
`), u = () => import("./render-inlined-styles.
|
|
23
|
+
`), u = () => import("./render-inlined-styles.7974da9f.js").then((e) => e.default), d = {
|
|
24
24
|
name: "block-styles",
|
|
25
25
|
components: { "render-inlined-styles": u },
|
|
26
26
|
props: ["block", "context"],
|
|
27
|
-
data: () => ({ TARGET:
|
|
28
|
-
computed: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
data: () => ({ TARGET: c }),
|
|
28
|
+
computed: {
|
|
29
|
+
useBlock() {
|
|
30
|
+
return a({
|
|
31
|
+
block: this.block,
|
|
32
|
+
state: this.context.state,
|
|
33
|
+
context: this.context.context,
|
|
34
|
+
shouldEvaluateBindings: !0
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
css() {
|
|
38
|
+
const e = this.useBlock.responsiveStyles, t = e == null ? void 0 : e.large, s = e == null ? void 0 : e.medium, n = e == null ? void 0 : e.small;
|
|
39
|
+
return `
|
|
38
40
|
${t ? `.${this.useBlock.id} {${o(t)}}` : ""}
|
|
39
41
|
${s ? `${l("medium")} {
|
|
40
42
|
.${this.useBlock.id} {${o(s)}}
|
|
@@ -43,12 +45,13 @@ const i = {
|
|
|
43
45
|
.${this.useBlock.id} {${o(n)}}
|
|
44
46
|
}` : ""}
|
|
45
47
|
}`;
|
|
46
|
-
|
|
48
|
+
}
|
|
49
|
+
}
|
|
47
50
|
};
|
|
48
51
|
var p = function() {
|
|
49
52
|
var t = this, s = t._self._c;
|
|
50
53
|
return t.TARGET === "vue2" || t.TARGET === "vue3" || t.TARGET === "svelte" ? s("render-inlined-styles", { attrs: { styles: t.css } }) : t._e();
|
|
51
|
-
}, $ = [],
|
|
54
|
+
}, $ = [], f = /* @__PURE__ */ r(
|
|
52
55
|
d,
|
|
53
56
|
p,
|
|
54
57
|
$,
|
|
@@ -58,7 +61,7 @@ var p = function() {
|
|
|
58
61
|
null,
|
|
59
62
|
null
|
|
60
63
|
);
|
|
61
|
-
const
|
|
64
|
+
const h = f.exports;
|
|
62
65
|
export {
|
|
63
|
-
|
|
66
|
+
h as default
|
|
64
67
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.dcdf302c.cjs"),r=require("./get-processed-block.2bcd0d2b.cjs"),i={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},c=e=>`@media (max-width: ${i[e].max}px)`,a=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),o=e=>Object.entries(e).map(([s,n])=>{if(typeof n=="string")return`${a(s)}: ${n};`}).join(`
|
|
2
|
+
`),d=()=>Promise.resolve().then(()=>require("./render-inlined-styles.b3a06398.cjs")).then(e=>e.default),u={name:"block-styles",components:{"render-inlined-styles":d},props:["block","context"],data:()=>({TARGET:l.TARGET}),computed:{useBlock(){return r.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},css(){const e=this.useBlock.responsiveStyles,t=e==null?void 0:e.large,s=e==null?void 0:e.medium,n=e==null?void 0:e.small;return`
|
|
3
|
+
${t?`.${this.useBlock.id} {${o(t)}}`:""}
|
|
4
|
+
${s?`${c("medium")} {
|
|
5
|
+
.${this.useBlock.id} {${o(s)}}
|
|
6
|
+
}`:""}
|
|
7
|
+
${n?`${c("small")} {
|
|
8
|
+
.${this.useBlock.id} {${o(n)}}
|
|
9
|
+
}`:""}
|
|
10
|
+
}`}}};var m=function(){var t=this,s=t._self._c;return t.TARGET==="vue2"||t.TARGET==="vue3"||t.TARGET==="svelte"?s("render-inlined-styles",{attrs:{styles:t.css}}):t._e()},p=[],$=l.normalizeComponent(u,m,p,!1,null,null,null,null);const f=$.exports;exports.default=f;
|
package/dist/{vue-3/get-processed-block.36f8ee1a.cjs → vue-2/get-processed-block.2bcd0d2b.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./index.
|
|
1
|
+
"use strict";const u=require("./index.dcdf302c.cjs"),d=(r,e,t)=>{if(Object(r)!==r)return r;const n=Array.isArray(e)?e:e.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((s,o,i)=>Object(s[o])===s[o]?s[o]:s[o]=Math.abs(Number(n[i+1]))>>0===+n[i+1]?[]:{},r)[n[n.length-1]]=t,r};var f=Object.defineProperty,l=Object.defineProperties,_=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,p=(r,e,t)=>e in r?f(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,c=(r,e)=>{for(var t in e||(e={}))g.call(e,t)&&p(r,t,e[t]);if(a)for(var t of a(e))O.call(e,t)&&p(r,t,e[t]);return r},P=(r,e)=>l(r,_(e));const v=({block:r,context:e,state:t})=>{if(!r.bindings)return r;const n=P(c({},r),{properties:c({},r.properties),actions:c({},r.actions)});for(const s in r.bindings){const o=r.bindings[s],i=u.evaluate({code:o,state:t,context:e});d(n,s,i)}return n};function m({block:r,context:e,shouldEvaluateBindings:t,state:n}){const s=r;return t?v({block:s,state:n,context:e}):s}exports.getProcessedBlock=m;
|