@builder.io/sdk-vue 0.13.3 → 0.13.4
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/lib/browser/{block-styles-5NGYAhBS.cjs → block-styles-8Mrc6TaN.cjs} +1 -1
- package/lib/browser/{block-styles-jDSz7IPu.js → block-styles-VSarafRd.js} +1 -1
- package/lib/browser/{block-wrapper-i3S3k3_c.js → block-wrapper-66sQ44dq.js} +3 -3
- package/lib/browser/{block-wrapper-aYMueUMD.cjs → block-wrapper-QFMQKrxu.cjs} +1 -1
- package/lib/browser/{component-ref-YzJX0Oul.js → component-ref-Jc5MVYML.js} +2 -2
- package/lib/browser/{component-ref-23FBngqj.cjs → component-ref-e6oQ52we.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-KacPzO_o.cjs → get-block-properties-7tpIl-af.cjs} +1 -1
- package/lib/browser/{get-block-properties-ZirT3ZGB.js → get-block-properties-E1fQUQGr.js} +1 -1
- package/lib/browser/{index-6a_qPbnw.js → index-G5gQ-de1.js} +34 -34
- package/lib/browser/{index-7Z8XjtKs.cjs → index-td6tu50h.cjs} +12 -12
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-hRYVKXrX.js → repeated-block-8lWplUGg.js} +2 -2
- package/lib/browser/{repeated-block-70kCyQ_l.cjs → repeated-block-wd62QzHL.cjs} +1 -1
- package/lib/edge/{block-styles--T_GAm5-.cjs → block-styles-3S-cNGqc.cjs} +1 -1
- package/lib/{node/block-styles-WHZ3oh47.js → edge/block-styles-GWwtTBOa.js} +1 -1
- package/lib/edge/{block-wrapper-MgeL6r_A.js → block-wrapper-K8bx-662.js} +3 -3
- package/lib/{node/block-wrapper-7G595XQl.cjs → edge/block-wrapper-poSyjD06.cjs} +1 -1
- package/lib/{node/component-ref-bBOIZLBr.cjs → edge/component-ref-XGWac3jR.cjs} +1 -1
- package/lib/{node/component-ref-6gNNgUIq.js → edge/component-ref-hvsNvKeU.js} +2 -2
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/{node/get-block-properties-LsQPb5mK.js → edge/get-block-properties-52TjzPmw.js} +1 -1
- package/lib/edge/{get-block-properties-q52zAZuL.cjs → get-block-properties-iw3OdHrP.cjs} +1 -1
- package/lib/edge/{index-oq0qBISZ.cjs → index--HHuGCHA.cjs} +10 -10
- package/lib/edge/{index-FjGYEtq6.js → index-m4U8kFb2.js} +6 -6
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block-IrS130V6.cjs → repeated-block-dpBMDmLF.cjs} +1 -1
- package/lib/edge/{repeated-block-IVuHJhMQ.js → repeated-block-y9wjDQwk.js} +2 -2
- package/lib/node/{block-styles-1bGjM-mF.cjs → block-styles-AGTK3ZdM.cjs} +1 -1
- package/lib/{edge/block-styles-Tjp0oeui.js → node/block-styles-LvQRanzO.js} +1 -1
- package/lib/node/{block-wrapper-Oi21HLL-.js → block-wrapper-II4ojYnp.js} +3 -3
- package/lib/{edge/block-wrapper-K-I0ddom.cjs → node/block-wrapper-zBWfSpeB.cjs} +1 -1
- package/lib/{edge/component-ref-Oo-dR5xV.js → node/component-ref-EaGD0M8C.js} +2 -2
- package/lib/{edge/component-ref-iibFypv7.cjs → node/component-ref-cDVRwBVV.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/get-block-properties-BKnsvu-2.js → node/get-block-properties-BzFnffon.js} +1 -1
- package/lib/node/{get-block-properties-saGQjgeQ.cjs → get-block-properties-kno3efeu.cjs} +1 -1
- package/lib/node/{index-TgZujUqz.js → index-F38jg9qf.js} +6 -6
- package/lib/node/{index-mB-x2rNA.cjs → index-Rdghmqju.cjs} +4 -4
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block-ghBGljjL.cjs → repeated-block-awHmNE3o.cjs} +1 -1
- package/lib/node/{repeated-block-4ZvFRl8H.js → repeated-block-d6NkhW6B.js} +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var y=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-
|
|
1
|
+
var y=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-td6tu50h.cjs"),h=o.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{canShowBlock(){const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return t.checkIsDefined(e.hide)?!e.hide:t.checkIsDefined(e.show)?e.show:!0},css(){var d;const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),s=e.responsiveStyles,n=this.context.content,r=t.getSizesForBreakpoints(((d=n==null?void 0:n.meta)==null?void 0:d.breakpoints)||{}),a=s==null?void 0:s.large,i=s==null?void 0:s.medium,c=s==null?void 0:s.small,l=e.id;if(!l)return"";const u=a?t.createCssClass({className:l,styles:a}):"",S=i?t.createCssClass({className:l,styles:i,mediaQuery:t.getMaxWidthQueryForSize("medium",r)}):"",m=c?t.createCssClass({className:l,styles:c,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"";return[u,S,m].join(" ")}}});function p(e,s,n,r,a,i){const c=o.resolveComponent("inlined-styles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,styles:e.css},null,8,["styles"])):o.createCommentVNode("",!0)}const k=t._export_sfc(h,[["render",p]]);exports.default=k;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as k, resolveComponent as y, openBlock as x, createBlock as f, createCommentVNode as B } from "vue";
|
|
3
|
-
import { _, T as b, g as d, c as m, a as g, b as r, d as S, e as C } from "./index-
|
|
3
|
+
import { _, T as b, g as d, c as m, a as g, b as r, d as S, e as C } from "./index-G5gQ-de1.js";
|
|
4
4
|
const v = k({
|
|
5
5
|
name: "block-styles",
|
|
6
6
|
components: { InlinedStyles: _ },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
3
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
4
|
-
import { e as m } from "./index-
|
|
5
|
-
const d = () => import("./index-
|
|
3
|
+
import { g as s, a as l } from "./get-block-properties-E1fQUQGr.js";
|
|
4
|
+
import { e as m } from "./index-G5gQ-de1.js";
|
|
5
|
+
const d = () => import("./index-G5gQ-de1.js").then((e) => e.J).then((e) => e.default).catch((e) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
8
8
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-7tpIl-af.cjs"),n=require("./index-td6tu50h.cjs"),c=()=>Promise.resolve().then(()=>require("./index-td6tu50h.cjs")).then(e=>e.dynamicRenderer).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",e),e}),a=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(c)},props:["Wrapper","block","context"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function i(e,l,p,d,m,u){const r=t.resolveComponent("dynamic-renderer");return t.openBlock(),t.createBlock(r,{TagName:e.Wrapper,attributes:e.getBlockProperties({block:e.block,context:e.context}),actionAttributes:e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const s=n._export_sfc(a,[["render",i]]);exports.default=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as m, openBlock as r, createBlock as l, resolveDynamicComponent as k, mergeProps as d, withCtx as u, renderSlot as P, resolveComponent as B, normalizeProps as g, createElementBlock as $, Fragment as v, renderList as S, createCommentVNode as W } from "vue";
|
|
3
|
-
import { e as f, B as h, w } from "./index-
|
|
4
|
-
import { g as R, a as b } from "./get-block-properties-
|
|
3
|
+
import { e as f, B as h, w } from "./index-G5gQ-de1.js";
|
|
4
|
+
import { g as R, a as b } from "./get-block-properties-E1fQUQGr.js";
|
|
5
5
|
const I = m({
|
|
6
6
|
name: "interactive-element",
|
|
7
7
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-
|
|
1
|
+
var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-td6tu50h.cjs"),a=require("./get-block-properties-7tpIl-af.cjs"),u=o.defineComponent({name:"interactive-element",props:["wrapperProps","includeBlockProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function d(e,t,c,l,n,s){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:e.includeBlockProps?{...e.getBlockProperties({block:e.block,context:e.context}),...e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}},e.wrapperProps),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=p._export_sfc(u,[["render",d]]),B=({componentOptions:e,builderBlock:t,context:c,componentRef:l,includeBlockProps:n,isInteractive:s,contextValue:i})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:t,context:i})}:{}};return s?{Wrapper:l,block:t,context:c,wrapperProps:e,includeBlockProps:n}:r},f=o.defineComponent({name:"component-ref",components:{Block:p.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?p.wrapComponentRef(m):this.componentRef,getWrapperProps:B}}});function b(e,t,c,l,n,s){const i=o.resolveComponent("block");return e.componentRef?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.normalizeProps(o.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(r,k)=>(o.openBlock(),o.createBlock(i,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):o.createCommentVNode("",!0)}const C=p._export_sfc(f,[["render",b]]);exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.13.
|
|
1
|
+
export declare const SDK_VERSION = "0.13.4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=require("./style.css");const s=require("./index-
|
|
1
|
+
var d=require("./style.css");const s=require("./index-td6tu50h.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=c(o);if(e.stripPrefix)switch(s.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(a,e)}return t}function u({properties:e}){return e}const p=e=>({href:e.href});function f({block:e,context:t}){var o;const r={...p(e),...e.properties,"builder-id":e.id,style:s.getStyle({block:e,context:t}),[s.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=f;
|
|
@@ -550,22 +550,22 @@ const Ft = ({
|
|
|
550
550
|
},
|
|
551
551
|
block: o
|
|
552
552
|
}));
|
|
553
|
-
}, Ot = () => import("./block-styles-
|
|
553
|
+
}, Ot = () => import("./block-styles-VSarafRd.js").then((e) => e.default).catch((e) => {
|
|
554
554
|
throw console.error(
|
|
555
555
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
556
556
|
e
|
|
557
557
|
), e;
|
|
558
|
-
}),
|
|
558
|
+
}), Lt = () => import("./block-wrapper-66sQ44dq.js").then((e) => e.default).catch((e) => {
|
|
559
559
|
throw console.error(
|
|
560
560
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
561
561
|
e
|
|
562
562
|
), e;
|
|
563
|
-
}),
|
|
563
|
+
}), Mt = () => import("./component-ref-Jc5MVYML.js").then((e) => e.default).catch((e) => {
|
|
564
564
|
throw console.error(
|
|
565
565
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
566
566
|
e
|
|
567
567
|
), e;
|
|
568
|
-
}), Dt = () => import("./repeated-block-
|
|
568
|
+
}), Dt = () => import("./repeated-block-8lWplUGg.js").then((e) => e.default).catch((e) => {
|
|
569
569
|
throw console.error(
|
|
570
570
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
571
571
|
e
|
|
@@ -574,9 +574,9 @@ const Ft = ({
|
|
|
574
574
|
name: "block",
|
|
575
575
|
components: {
|
|
576
576
|
BlockStyles: q(Ot),
|
|
577
|
-
ComponentRef: q(
|
|
577
|
+
ComponentRef: q(Mt),
|
|
578
578
|
RepeatedBlock: q(Dt),
|
|
579
|
-
BlockWrapper: q(
|
|
579
|
+
BlockWrapper: q(Lt)
|
|
580
580
|
},
|
|
581
581
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
582
582
|
data() {
|
|
@@ -1205,7 +1205,7 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
|
|
|
1205
1205
|
}) => {
|
|
1206
1206
|
const s = (w() ? location.protocol === "https:" : !0) ? bn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", hn(window.location.hostname)], ...s];
|
|
1207
1207
|
return fn(i);
|
|
1208
|
-
},
|
|
1208
|
+
}, Le = async ({
|
|
1209
1209
|
name: e,
|
|
1210
1210
|
value: t,
|
|
1211
1211
|
expires: n,
|
|
@@ -1236,11 +1236,11 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
|
|
|
1236
1236
|
}), vn = ({
|
|
1237
1237
|
contentId: e,
|
|
1238
1238
|
value: t
|
|
1239
|
-
}) =>
|
|
1239
|
+
}) => Le({
|
|
1240
1240
|
name: ue(e),
|
|
1241
1241
|
value: t,
|
|
1242
1242
|
canTrack: !0
|
|
1243
|
-
}),
|
|
1243
|
+
}), Me = (e) => N(e.id) && N(e.variations) && Object.keys(e.variations).length > 0, Cn = ({
|
|
1244
1244
|
id: e,
|
|
1245
1245
|
variations: t
|
|
1246
1246
|
}) => {
|
|
@@ -1283,7 +1283,7 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
|
|
|
1283
1283
|
return e;
|
|
1284
1284
|
if (!e)
|
|
1285
1285
|
return;
|
|
1286
|
-
if (!
|
|
1286
|
+
if (!Me(e))
|
|
1287
1287
|
return e;
|
|
1288
1288
|
const n = Sn({
|
|
1289
1289
|
contentId: e.id
|
|
@@ -1302,7 +1302,7 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
|
|
|
1302
1302
|
item: e,
|
|
1303
1303
|
canTrack: t
|
|
1304
1304
|
}) => {
|
|
1305
|
-
if (!t || !
|
|
1305
|
+
if (!t || !Me(e))
|
|
1306
1306
|
return e;
|
|
1307
1307
|
const o = await kn({
|
|
1308
1308
|
contentId: e.id
|
|
@@ -1798,7 +1798,7 @@ function On(e, t, n, o, s, r) {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
}, null, 8, Un);
|
|
1800
1800
|
}
|
|
1801
|
-
const
|
|
1801
|
+
const Ln = /* @__PURE__ */ y(Fn, [["render", On]]), Mn = {
|
|
1802
1802
|
name: "Custom Code",
|
|
1803
1803
|
static: !0,
|
|
1804
1804
|
requiredPermissions: ["editCode"],
|
|
@@ -2606,7 +2606,7 @@ const Ro = /* @__PURE__ */ y(Io, [["render", To]]), Eo = {
|
|
|
2606
2606
|
type: "file",
|
|
2607
2607
|
allowedFileTypes: ["mp4"],
|
|
2608
2608
|
bubble: !0,
|
|
2609
|
-
defaultValue: "https://
|
|
2609
|
+
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
2610
2610
|
required: !0
|
|
2611
2611
|
}, {
|
|
2612
2612
|
name: "posterImage",
|
|
@@ -2790,7 +2790,7 @@ function No(e, t, n, o, s, r) {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
const Fo = /* @__PURE__ */ y(Po, [["render", No]]), Uo = () => [{
|
|
2792
2792
|
component: Kn,
|
|
2793
|
-
...
|
|
2793
|
+
...Mn
|
|
2794
2794
|
}, {
|
|
2795
2795
|
component: Qn,
|
|
2796
2796
|
...qn
|
|
@@ -2834,22 +2834,22 @@ const Fo = /* @__PURE__ */ y(Po, [["render", No]]), Uo = () => [{
|
|
|
2834
2834
|
component: Hs,
|
|
2835
2835
|
...Wn
|
|
2836
2836
|
}, {
|
|
2837
|
-
component:
|
|
2837
|
+
component: Ln,
|
|
2838
2838
|
...Nn
|
|
2839
2839
|
}, ...Uo()], ye = [], Oo = (e) => ({
|
|
2840
2840
|
type: "builder.registerComponent",
|
|
2841
2841
|
data: ne(e)
|
|
2842
|
-
}),
|
|
2842
|
+
}), Lo = (e) => {
|
|
2843
2843
|
const t = e.toString().trim();
|
|
2844
2844
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
2845
|
-
},
|
|
2845
|
+
}, Mo = (e) => typeof e == "function" ? Lo(e) : j(e), ne = ({
|
|
2846
2846
|
inputs: e,
|
|
2847
2847
|
...t
|
|
2848
2848
|
}) => ({
|
|
2849
2849
|
...j(t),
|
|
2850
2850
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
|
|
2851
2851
|
...o,
|
|
2852
|
-
[s]:
|
|
2852
|
+
[s]: Mo(r)
|
|
2853
2853
|
}), {}))
|
|
2854
2854
|
}), Do = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2855
2855
|
function getAndSetVariantId() {
|
|
@@ -3028,7 +3028,7 @@ const _o = "v3", ke = "builder.", Qo = "options.", Xo = (e) => {
|
|
|
3028
3028
|
offset: S,
|
|
3029
3029
|
cacheSeconds: b,
|
|
3030
3030
|
staleCacheSeconds: x,
|
|
3031
|
-
sort:
|
|
3031
|
+
sort: L,
|
|
3032
3032
|
includeUnpublished: me
|
|
3033
3033
|
} = e;
|
|
3034
3034
|
if (!i)
|
|
@@ -3037,12 +3037,12 @@ const _o = "v3", ke = "builder.", Qo = "options.", Xo = (e) => {
|
|
|
3037
3037
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${m}'`);
|
|
3038
3038
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
3039
3039
|
const R = new URL(`https://cdn.builder.io/api/${m}/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${d ? `&locale=${d}` : ""}${l ? `&enrich=${l}` : ""}`);
|
|
3040
|
-
if (R.searchParams.set("omit", p || "meta.componentsUsed"), c && R.searchParams.set("fields", c), Number.isFinite(S) && S > -1 && R.searchParams.set("offset", String(Math.floor(S))), typeof me == "boolean" && R.searchParams.set("includeUnpublished", String(me)), b && Se(b) && R.searchParams.set("cacheSeconds", String(b)), x && Se(x) && R.searchParams.set("staleCacheSeconds", String(x)),
|
|
3040
|
+
if (R.searchParams.set("omit", p || "meta.componentsUsed"), c && R.searchParams.set("fields", c), Number.isFinite(S) && S > -1 && R.searchParams.set("offset", String(Math.floor(S))), typeof me == "boolean" && R.searchParams.set("includeUnpublished", String(me)), b && Se(b) && R.searchParams.set("cacheSeconds", String(b)), x && Se(x) && R.searchParams.set("staleCacheSeconds", String(x)), L) {
|
|
3041
3041
|
const W = G({
|
|
3042
|
-
sort:
|
|
3042
|
+
sort: L
|
|
3043
3043
|
});
|
|
3044
|
-
for (const
|
|
3045
|
-
R.searchParams.set(
|
|
3044
|
+
for (const M in W)
|
|
3045
|
+
R.searchParams.set(M, JSON.stringify(W[M]));
|
|
3046
3046
|
}
|
|
3047
3047
|
const rt = {
|
|
3048
3048
|
...Zo(),
|
|
@@ -3054,8 +3054,8 @@ const _o = "v3", ke = "builder.", Qo = "options.", Xo = (e) => {
|
|
|
3054
3054
|
const W = G({
|
|
3055
3055
|
query: s
|
|
3056
3056
|
});
|
|
3057
|
-
for (const
|
|
3058
|
-
R.searchParams.set(
|
|
3057
|
+
for (const M in W)
|
|
3058
|
+
R.searchParams.set(M, JSON.stringify(W[M]));
|
|
3059
3059
|
}
|
|
3060
3060
|
return R;
|
|
3061
3061
|
}, es = (e) => "results" in e;
|
|
@@ -3132,7 +3132,7 @@ const Xe = "builderSessionId", rs = async ({
|
|
|
3132
3132
|
}, is = () => Qe(), as = ({
|
|
3133
3133
|
id: e,
|
|
3134
3134
|
canTrack: t
|
|
3135
|
-
}) =>
|
|
3135
|
+
}) => Le({
|
|
3136
3136
|
name: Xe,
|
|
3137
3137
|
value: e,
|
|
3138
3138
|
canTrack: t
|
|
@@ -3291,7 +3291,7 @@ function tt(e, t) {
|
|
|
3291
3291
|
const n = new URL(t.origin), o = n.hostname;
|
|
3292
3292
|
return (e || ys).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
|
|
3293
3293
|
}
|
|
3294
|
-
const ks = "0.13.
|
|
3294
|
+
const ks = "0.13.4", we = {};
|
|
3295
3295
|
function Ss(e, t) {
|
|
3296
3296
|
let n = we[e];
|
|
3297
3297
|
if (n || (n = we[e] = []), n.push(t), w()) {
|
|
@@ -4008,7 +4008,7 @@ function Ns(e, t, n, o, s, r) {
|
|
|
4008
4008
|
trustedHosts: e.trustedHosts
|
|
4009
4009
|
}, {}), {
|
|
4010
4010
|
default: B(() => {
|
|
4011
|
-
var m, c, p, S, b, x,
|
|
4011
|
+
var m, c, p, S, b, x, L;
|
|
4012
4012
|
return [
|
|
4013
4013
|
e.isSsrAbTest ? (u(), g(i, {
|
|
4014
4014
|
key: 0,
|
|
@@ -4021,7 +4021,7 @@ function Ns(e, t, n, o, s, r) {
|
|
|
4021
4021
|
customFonts: (b = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : b.customFonts
|
|
4022
4022
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : v("", !0),
|
|
4023
4023
|
V(l, {
|
|
4024
|
-
blocks: (
|
|
4024
|
+
blocks: (L = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : L.blocks,
|
|
4025
4025
|
context: e.builderContextSignal,
|
|
4026
4026
|
registeredComponents: e.registeredComponents,
|
|
4027
4027
|
linkComponent: e.linkComponent
|
|
@@ -4160,7 +4160,7 @@ function Os(e, t, n, o, s, r) {
|
|
|
4160
4160
|
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4161
4161
|
], 64);
|
|
4162
4162
|
}
|
|
4163
|
-
const st = /* @__PURE__ */ y(Us, [["render", Os]]),
|
|
4163
|
+
const st = /* @__PURE__ */ y(Us, [["render", Os]]), Ls = async ({
|
|
4164
4164
|
builderContextValue: e,
|
|
4165
4165
|
symbol: t
|
|
4166
4166
|
}) => {
|
|
@@ -4178,7 +4178,7 @@ const st = /* @__PURE__ */ y(Us, [["render", Os]]), Ms = async ({
|
|
|
4178
4178
|
}).catch((n) => {
|
|
4179
4179
|
$.error("Could not fetch symbol content: ", n);
|
|
4180
4180
|
});
|
|
4181
|
-
},
|
|
4181
|
+
}, Ms = f({
|
|
4182
4182
|
name: "builder-symbol",
|
|
4183
4183
|
components: { ContentVariants: st },
|
|
4184
4184
|
props: [
|
|
@@ -4223,7 +4223,7 @@ const st = /* @__PURE__ */ y(Us, [["render", Os]]), Ms = async ({
|
|
|
4223
4223
|
},
|
|
4224
4224
|
methods: {
|
|
4225
4225
|
setContent() {
|
|
4226
|
-
this.contentToUse ||
|
|
4226
|
+
this.contentToUse || Ls({
|
|
4227
4227
|
symbol: this.symbol,
|
|
4228
4228
|
builderContextValue: this.builderContext
|
|
4229
4229
|
}).then((e) => {
|
|
@@ -4256,7 +4256,7 @@ function Ds(e, t, n, o, s, r) {
|
|
|
4256
4256
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
4257
4257
|
], 16);
|
|
4258
4258
|
}
|
|
4259
|
-
const Hs = /* @__PURE__ */ y(
|
|
4259
|
+
const Hs = /* @__PURE__ */ y(Ms, [["render", Ds]]), er = K, tr = st, $e = {};
|
|
4260
4260
|
function nr(e) {
|
|
4261
4261
|
if (w()) {
|
|
4262
4262
|
Object.assign($e, e);
|
|
@@ -4319,7 +4319,7 @@ export {
|
|
|
4319
4319
|
ht as m,
|
|
4320
4320
|
Xt as n,
|
|
4321
4321
|
Hs as o,
|
|
4322
|
-
|
|
4322
|
+
Ln as p,
|
|
4323
4323
|
T as q,
|
|
4324
4324
|
os as r,
|
|
4325
4325
|
Oo as s,
|