@builder.io/sdk-vue 5.2.10 → 5.2.12
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/{awaiter-LIAqEcfX.cjs → awaiter-_vJybpjE.cjs} +1 -1
- package/lib/browser/{awaiter-NXhCBvJj.js → awaiter-nbyjYGTm.js} +1 -1
- package/lib/browser/{block-wrapper-sJgW-hxB.js → block-wrapper-H2uWRFfl.js} +3 -3
- package/lib/browser/{block-wrapper-Gx5cmGCs.cjs → block-wrapper-LaZs4cQn.cjs} +1 -1
- package/lib/browser/{component-ref-glX9-8fW.cjs → component-ref-VXY67QLx.cjs} +1 -1
- package/lib/browser/{component-ref-3CB2cdJW.js → component-ref-pzekKy-e.js} +4 -4
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-content/types.d.ts +27 -0
- package/lib/browser/{get-block-properties-hkrxv2Yw.cjs → get-block-properties-k4bCVM0L.cjs} +1 -1
- package/lib/browser/{get-block-properties-Ejar3KRa.js → get-block-properties-pJvtXJrC.js} +1 -1
- package/lib/browser/helpers/css.d.ts +2 -0
- package/lib/browser/{index-bjZ2qhB0.js → index-3BT-zvy_.js} +903 -880
- package/lib/browser/index-FQjXUcZa.cjs +350 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +4 -4
- package/lib/browser/{live-edit-Sfr-FIGs.cjs → live-edit-QecbSljF.cjs} +1 -1
- package/lib/browser/{live-edit-BGWSQRf6.js → live-edit-f81HRMwD.js} +1 -1
- package/lib/browser/{repeated-block-y2NflOf1.cjs → repeated-block-pzyWtt9k.cjs} +1 -1
- package/lib/browser/{repeated-block-ECd9zh7f.js → repeated-block-z4-Tq0vb.js} +2 -2
- package/lib/browser/scripts/init-editing.d.ts +2 -0
- package/lib/browser/{style-wrapper-9OtEbIRY.js → style-wrapper-XQIDj12j.js} +72 -66
- package/lib/browser/style-wrapper-wOCgRtEf.cjs +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-Rk0bT_z6.js → awaiter-cczNFZYf.js} +1 -1
- package/lib/edge/{awaiter-NONmvwQ6.cjs → awaiter-kqWOzygI.cjs} +1 -1
- package/lib/edge/{block-wrapper-bLEVePe1.js → block-wrapper-TCG6J1wM.js} +3 -3
- package/lib/{node/block-wrapper-ZBxys5Pi.cjs → edge/block-wrapper-WHxKG2JN.cjs} +1 -1
- package/lib/edge/{component-ref-wRsXuO0w.js → component-ref-ke62ODDh.js} +4 -4
- package/lib/edge/{component-ref-hvv1-QnL.cjs → component-ref-zHNGcCjv.cjs} +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-content/types.d.ts +27 -0
- package/lib/edge/{get-block-properties-kcXTpefp.js → get-block-properties-GLe5pKJ-.js} +1 -1
- package/lib/edge/{get-block-properties-Z_smIxVv.cjs → get-block-properties-g3UUmViz.cjs} +1 -1
- package/lib/edge/helpers/css.d.ts +2 -0
- package/lib/edge/{index-jT889Kr4.js → index-NPl2zFFt.js} +1711 -1688
- package/lib/edge/index-Q1mE-A20.cjs +368 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{node/live-edit-T7SWvgRt.cjs → edge/live-edit-NlcA1TEi.cjs} +1 -1
- package/lib/{node/live-edit-7Qru52il.js → edge/live-edit-mfyAZvt8.js} +1 -1
- package/lib/edge/{repeated-block-ocRd-7Ri.cjs → repeated-block-fItsEFz7.cjs} +1 -1
- package/lib/edge/{repeated-block-XfL9MY4H.js → repeated-block-lZx6tufR.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +2 -0
- package/lib/edge/style-wrapper-9SPXPEOl.cjs +1 -0
- package/lib/edge/{style-wrapper-cgk8YrFm.js → style-wrapper-C9W8emFx.js} +72 -66
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-d876EVrj.cjs → awaiter-Se1nH_ny.cjs} +1 -1
- package/lib/node/{awaiter-ooRB0LL_.js → awaiter-if1ZrvLi.js} +1 -1
- package/lib/{edge/block-wrapper-uQolhWhZ.cjs → node/block-wrapper-B7fQ00-T.cjs} +1 -1
- package/lib/node/{block-wrapper-heMQ0bQW.js → block-wrapper-Nkj9awCA.js} +3 -3
- package/lib/node/{component-ref-HjW6Dn5U.cjs → component-ref-BFKh4Vpb.cjs} +1 -1
- package/lib/node/{component-ref-w7KWdZU9.js → component-ref-IheEdKTm.js} +5 -5
- package/lib/node/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-content/types.d.ts +27 -0
- package/lib/node/{get-block-properties-kLYkiFmS.js → get-block-properties-I05vUwHl.js} +2 -2
- package/lib/node/{get-block-properties-G6DNp62v.cjs → get-block-properties-NSTAD_o0.cjs} +1 -1
- package/lib/node/helpers/css.d.ts +2 -0
- package/lib/node/index-jBWgo8LI.cjs +350 -0
- package/lib/node/{index-quPzSfMY.js → index-vP-oPL56.js} +801 -778
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +6 -6
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-euz6qyjO.cjs → node/live-edit-Qt7v1n8V.cjs} +1 -1
- package/lib/{edge/live-edit-UREQGwDx.js → node/live-edit-yKSQ0yqr.js} +1 -1
- package/lib/node/{repeated-block-h_P0vHI5.js → repeated-block-EN_RXDs9.js} +2 -2
- package/lib/node/{repeated-block-iHvrQwik.cjs → repeated-block-KjQeddn3.cjs} +1 -1
- package/lib/node/scripts/init-editing.d.ts +2 -0
- package/lib/node/{should-force-browser-runtime-in-node-ovD5c_br.cjs → should-force-browser-runtime-in-node--WFVCCbl.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cuIgr-IV.js → should-force-browser-runtime-in-node-cWvDK4Td.js} +1 -1
- package/lib/node/{style-wrapper-MI0wKmtS.js → style-wrapper-GM8YDWdR.js} +70 -64
- package/lib/node/style-wrapper-tpv235Ma.cjs +1 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/index-SRaav2aL.cjs +0 -350
- package/lib/browser/style-wrapper-PR2ys7tw.cjs +0 -1
- package/lib/edge/index-TqjgraOe.cjs +0 -368
- package/lib/edge/style-wrapper-TUi2oGU5.cjs +0 -1
- package/lib/node/index-a8iqYi5t.cjs +0 -350
- package/lib/node/style-wrapper-arJdhPdR.cjs +0 -1
package/lib/edge/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Q1mE-A20.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;exports.Button=e.Button;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.registerAction=e.registerAction;exports.setClientUserAttributes=e.setClientUserAttributes;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/edge/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as t, b as a, n as r, C as i, r as n, F as o, I as c, S as g, o as u, p as l, V as d, G as m, u as C, E, H as b, J as p, z as B, i as S, t as f, v as h, x, s as y, y as A, D as P, A as k } from "./index-NPl2zFFt.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Blocks,
|
|
4
4
|
a as BuilderContext,
|
|
@@ -10,8 +10,8 @@ export {
|
|
|
10
10
|
g as Section,
|
|
11
11
|
u as Symbol,
|
|
12
12
|
l as Text,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
d as Video,
|
|
14
|
+
m as _processContentResult,
|
|
15
15
|
C as createRegisterComponentMessage,
|
|
16
16
|
E as fetchBuilderProps,
|
|
17
17
|
b as fetchEntries,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FREohLcp.cjs"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FREohLcp.cjs"),n=require("./index-Q1mE-A20.cjs"),i=t.defineComponent({name:"live-edit",props:["id","attributes","Wrapper"],inject:{context:n.BuilderContext.key},computed:{block(){return r.findBlockById(this.context.content,this.id)},options(){var e,o;return((o=(e=this.block)==null?void 0:e.component)==null?void 0:o.options)||{}}}});function s(e,o,p,u,d,a){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({attributes:e.attributes},e.options),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const c=n._export_sfc(i,[["render",s]]);exports.default=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as r, createBlock as n, resolveDynamicComponent as i, mergeProps as s, withCtx as p, renderSlot as a } from "vue";
|
|
2
2
|
import { f as c } from "./find-block-3Ig0kVVe.js";
|
|
3
|
-
import { b as d, _ as l } from "./index-
|
|
3
|
+
import { b as d, _ as l } from "./index-NPl2zFFt.js";
|
|
4
4
|
const m = o({
|
|
5
5
|
name: "live-edit",
|
|
6
6
|
props: ["id", "attributes", "Wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-Q1mE-A20.cjs"),r=()=>Promise.resolve().then(()=>require("./index-Q1mE-A20.cjs")).then(e=>e.block).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Block at ../block.vue",e),e}),c=o.defineComponent({name:"repeated-block",components:{Block:o.defineAsyncComponent(r)},props:["repeatContext","block","registeredComponents","linkComponent"],data(){return{store:this.repeatContext}},provide(){const e=this;return{[t.BuilderContext.key]:e.store}},watch:{onUpdateHook0:{handler(){this.store=this.repeatContext},immediate:!0}},computed:{onUpdateHook0(){return{0:this.repeatContext}}}});function s(e,p,l,a,d,m){const n=o.resolveComponent("Block");return o.openBlock(),o.createBlock(n,{block:e.block,context:e.store,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"])}const i=t._export_sfc(c,[["render",s]]);exports.default=i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as p, createBlock as s } from "vue";
|
|
2
|
-
import { b as c, _ as i } from "./index-
|
|
3
|
-
const a = () => import("./index-
|
|
2
|
+
import { b as c, _ as i } from "./index-NPl2zFFt.js";
|
|
3
|
+
const a = () => import("./index-NPl2zFFt.js").then((e) => e.L).then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
6
6
|
e
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { EnrichOptions } from '../functions/get-content/types';
|
|
1
2
|
export declare const setupBrowserForEditing: (options: {
|
|
2
3
|
modelName: string;
|
|
3
4
|
apiKey: string;
|
|
4
5
|
enrich?: boolean;
|
|
6
|
+
enrichOptions?: EnrichOptions;
|
|
5
7
|
includeRefs?: boolean;
|
|
6
8
|
locale?: string;
|
|
7
9
|
trustedHosts?: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index-Q1mE-A20.cjs"),_=require("./find-block-FREohLcp.cjs"),P=o.defineComponent({name:"block-styles",components:{InlinedStyles:s._sfc_main},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=this.block;return s.checkIsDefined(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var S,h,B,C,f,v;const e=this.block,t=s.getResponsiveStylesWithImagePosition(e.responsiveStyles,((S=e.component)==null?void 0:S.name)==="Image"),n=this.context.content,l=s.getSizesForBreakpoints(((h=n==null?void 0:n.meta)==null?void 0:h.breakpoints)||{}),k=!!((C=(B=n==null?void 0:n.meta)==null?void 0:B.breakpoints)!=null&&C.xsmall),a=t==null?void 0:t.large,c=t==null?void 0:t.medium,d=t==null?void 0:t.small,r=t==null?void 0:t.xsmall,m=e.id;if(!m)return"";const b=a?s.createCssClass({className:m,styles:a}):"",g=c?s.createCssClass({className:m,styles:c,mediaQuery:s.getMaxWidthQueryForSize("medium",l)}):"",x=d?s.createCssClass({className:m,styles:d,mediaQuery:s.getMaxWidthQueryForSize("small",l)}):"",p=r&&k?s.createCssClass({className:m,styles:r,mediaQuery:s.getMaxWidthQueryForSize("xsmall",l)}):"",i=e.animations&&e.animations.find(u=>u.trigger==="hover");let y="";if(i){const u=((v=(f=i.steps)==null?void 0:f[1])==null?void 0:v.styles)||{};y=s.createCssClass({className:`${m}:hover`,styles:{...u,transition:`all ${i.duration}s ${s.camelToKebabCase(i.easing)}`,transitionDelay:i.delay?`${i.delay}s`:"0s"}})||""}return[b,g,x,p,y].join(" ")}}});function E(e,t,n,l,k,a){const c=o.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):o.createCommentVNode("",!0)}const I=s._export_sfc(P,[["render",E]]),Q=o.defineComponent({name:"live-edit-block-styles",components:{InlinedStyles:s._sfc_main},props:["contextProvider","id"],data(){return{TARGET:s.TARGET}},computed:{block(){return _.findBlockById(this.contextProvider.content,this.id)},processedBlock(){var n;const e=this.block;return e?(n=e.repeat)!=null&&n.collection?e:s.getProcessedBlock({block:e,localState:this.contextProvider.localState,rootState:this.contextProvider.rootState,rootSetState:this.contextProvider.rootSetState,context:this.contextProvider.context}):null},canShowBlock(){var e,t,n,l;return s.checkIsDefined((e=this.processedBlock)==null?void 0:e.hide)?!((t=this.processedBlock)!=null&&t.hide):s.checkIsDefined((n=this.processedBlock)==null?void 0:n.show)?(l=this.processedBlock)==null?void 0:l.show:!0},css(){var y,S,h,B,C,f,v,u,T;const e=s.getResponsiveStylesWithImagePosition((y=this.processedBlock)==null?void 0:y.responsiveStyles,((h=(S=this.processedBlock)==null?void 0:S.component)==null?void 0:h.name)==="Image"),t=this.contextProvider.content,n=s.getSizesForBreakpoints(((B=t==null?void 0:t.meta)==null?void 0:B.breakpoints)||{}),l=!!((f=(C=t==null?void 0:t.meta)==null?void 0:C.breakpoints)!=null&&f.xsmall),k=e==null?void 0:e.large,a=e==null?void 0:e.medium,c=e==null?void 0:e.small,d=e==null?void 0:e.xsmall,r=(v=this.processedBlock)==null?void 0:v.id;if(!r)return"";const m=k?s.createCssClass({className:r,styles:k}):"",b=a?s.createCssClass({className:r,styles:a,mediaQuery:s.getMaxWidthQueryForSize("medium",n)}):"",g=c?s.createCssClass({className:r,styles:c,mediaQuery:s.getMaxWidthQueryForSize("small",n)}):"",x=d&&l?s.createCssClass({className:r,styles:d,mediaQuery:s.getMaxWidthQueryForSize("xsmall",n)}):"",p=this.processedBlock.animations&&this.processedBlock.animations.find($=>$.trigger==="hover");let i="";if(p){const $=((T=(u=p.steps)==null?void 0:u[1])==null?void 0:T.styles)||{};i=s.createCssClass({className:`${r}:hover`,styles:{...$,transition:`all ${p.duration}s ${s.camelToKebabCase(p.easing)}`,transitionDelay:p.delay?`${p.delay}s`:"0s"}})||""}return[m,b,g,x,i].join(" ")}}});function A(e,t,n,l,k,a){const c=o.resolveComponent("InlinedStyles");return e.TARGET==="rsc"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.contextProvider.nonce},null,8,["styles","nonce"])):o.createCommentVNode("",!0)}const R=s._export_sfc(Q,[["render",A]]),W=o.defineComponent({name:"style-wrapper",components:{BlockStyles:I,LiveEditBlockStyles:R},props:["block","context"],data(){return{isClientEditing:!1,isHydrated:!1,TARGET:s.TARGET}},inject:{contextProvider:s.BuilderContext.key},mounted(){}});function z(e,t,n,l,k,a){const c=o.resolveComponent("LiveEditBlockStyles"),d=o.resolveComponent("BlockStyles");return e.isHydrated?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.TARGET==="rsc"&&e.isClientEditing?(o.openBlock(),o.createBlock(c,{key:0,id:e.block.id,contextProvider:e.contextProvider},null,8,["id","contextProvider"])):(o.openBlock(),o.createBlock(d,{key:1,block:e.block,context:e.context},null,8,["block","context"]))],64)):(o.openBlock(),o.createBlock(d,{key:1,block:e.block,context:e.context},null,8,["block","context"]))}const w=s._export_sfc(W,[["render",z]]);exports.default=w;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as E, resolveComponent as x, openBlock as y, createBlock as
|
|
2
|
-
import { c as
|
|
3
|
-
import { f as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as E, resolveComponent as x, openBlock as y, createBlock as g, createCommentVNode as N, createElementBlock as G, Fragment as H } from "vue";
|
|
2
|
+
import { c as R, T as w, d as C, f as W, h as j, j as l, k as u, l as z, _ as Q, m as U, b as D } from "./index-NPl2zFFt.js";
|
|
3
|
+
import { f as F } from "./find-block-3Ig0kVVe.js";
|
|
4
|
+
const L = E({
|
|
5
5
|
name: "block-styles",
|
|
6
|
-
components: { InlinedStyles:
|
|
6
|
+
components: { InlinedStyles: R },
|
|
7
7
|
props: ["block", "context"],
|
|
8
8
|
data() {
|
|
9
9
|
return { TARGET: w };
|
|
@@ -14,85 +14,88 @@ const W = E({
|
|
|
14
14
|
return C(e.hide) ? !e.hide : C(e.show) ? e.show : !0;
|
|
15
15
|
},
|
|
16
16
|
css() {
|
|
17
|
-
var
|
|
18
|
-
const e = this.block, s =
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
var S, B, f, v, b, $;
|
|
18
|
+
const e = this.block, s = W(
|
|
19
|
+
e.responsiveStyles,
|
|
20
|
+
((S = e.component) == null ? void 0 : S.name) === "Image"
|
|
21
|
+
), t = this.context.content, o = j(
|
|
22
|
+
((B = t == null ? void 0 : t.meta) == null ? void 0 : B.breakpoints) || {}
|
|
23
|
+
), p = !!((v = (f = t == null ? void 0 : t.meta) == null ? void 0 : f.breakpoints) != null && v.xsmall), i = s == null ? void 0 : s.large, n = s == null ? void 0 : s.medium, a = s == null ? void 0 : s.small, c = s == null ? void 0 : s.xsmall, d = e.id;
|
|
21
24
|
if (!d)
|
|
22
25
|
return "";
|
|
23
|
-
const
|
|
26
|
+
const P = i ? l({
|
|
24
27
|
className: d,
|
|
25
28
|
styles: i
|
|
26
|
-
}) : "",
|
|
29
|
+
}) : "", T = n ? l({
|
|
27
30
|
className: d,
|
|
28
31
|
styles: n,
|
|
29
32
|
mediaQuery: u(
|
|
30
33
|
"medium",
|
|
31
34
|
o
|
|
32
35
|
)
|
|
33
|
-
}) : "",
|
|
36
|
+
}) : "", _ = a ? l({
|
|
34
37
|
className: d,
|
|
35
38
|
styles: a,
|
|
36
39
|
mediaQuery: u(
|
|
37
40
|
"small",
|
|
38
41
|
o
|
|
39
42
|
)
|
|
40
|
-
}) : "", m =
|
|
43
|
+
}) : "", m = c && p ? l({
|
|
41
44
|
className: d,
|
|
42
|
-
styles:
|
|
45
|
+
styles: c,
|
|
43
46
|
mediaQuery: u(
|
|
44
47
|
"xsmall",
|
|
45
48
|
o
|
|
46
49
|
)
|
|
47
|
-
}) : "",
|
|
48
|
-
let
|
|
49
|
-
if (
|
|
50
|
-
const k = ((
|
|
51
|
-
|
|
50
|
+
}) : "", r = e.animations && e.animations.find((k) => k.trigger === "hover");
|
|
51
|
+
let h = "";
|
|
52
|
+
if (r) {
|
|
53
|
+
const k = (($ = (b = r.steps) == null ? void 0 : b[1]) == null ? void 0 : $.styles) || {};
|
|
54
|
+
h = l({
|
|
52
55
|
className: `${d}:hover`,
|
|
53
56
|
styles: {
|
|
54
57
|
...k,
|
|
55
|
-
transition: `all ${
|
|
56
|
-
|
|
58
|
+
transition: `all ${r.duration}s ${z(
|
|
59
|
+
r.easing
|
|
57
60
|
)}`,
|
|
58
|
-
transitionDelay:
|
|
61
|
+
transitionDelay: r.delay ? `${r.delay}s` : "0s"
|
|
59
62
|
}
|
|
60
63
|
}) || "";
|
|
61
64
|
}
|
|
62
65
|
return [
|
|
63
|
-
g,
|
|
64
66
|
P,
|
|
65
67
|
T,
|
|
68
|
+
_,
|
|
66
69
|
m,
|
|
67
|
-
|
|
70
|
+
h
|
|
68
71
|
].join(" ");
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
});
|
|
72
|
-
function
|
|
75
|
+
function X(e, s, t, o, p, i) {
|
|
73
76
|
const n = x("InlinedStyles");
|
|
74
|
-
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (y(),
|
|
77
|
+
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (y(), g(n, {
|
|
75
78
|
key: 0,
|
|
76
79
|
id: "builderio-block",
|
|
77
80
|
styles: e.css,
|
|
78
81
|
nonce: e.context.nonce
|
|
79
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
82
|
+
}, null, 8, ["styles", "nonce"])) : N("", !0);
|
|
80
83
|
}
|
|
81
|
-
const
|
|
84
|
+
const K = /* @__PURE__ */ Q(L, [["render", X]]), M = E({
|
|
82
85
|
name: "live-edit-block-styles",
|
|
83
|
-
components: { InlinedStyles:
|
|
86
|
+
components: { InlinedStyles: R },
|
|
84
87
|
props: ["contextProvider", "id"],
|
|
85
88
|
data() {
|
|
86
89
|
return { TARGET: w };
|
|
87
90
|
},
|
|
88
91
|
computed: {
|
|
89
92
|
block() {
|
|
90
|
-
return
|
|
93
|
+
return F(this.contextProvider.content, this.id);
|
|
91
94
|
},
|
|
92
95
|
processedBlock() {
|
|
93
96
|
var t;
|
|
94
97
|
const e = this.block;
|
|
95
|
-
return e ? (t = e.repeat) != null && t.collection ? e :
|
|
98
|
+
return e ? (t = e.repeat) != null && t.collection ? e : U({
|
|
96
99
|
block: e,
|
|
97
100
|
localState: this.contextProvider.localState,
|
|
98
101
|
rootState: this.contextProvider.rootState,
|
|
@@ -105,45 +108,48 @@ const F = /* @__PURE__ */ I(W, [["render", D]]), L = E({
|
|
|
105
108
|
return C((e = this.processedBlock) == null ? void 0 : e.hide) ? !((s = this.processedBlock) != null && s.hide) : C((t = this.processedBlock) == null ? void 0 : t.show) ? (o = this.processedBlock) == null ? void 0 : o.show : !0;
|
|
106
109
|
},
|
|
107
110
|
css() {
|
|
108
|
-
var
|
|
109
|
-
const e = (
|
|
110
|
-
(
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
var h, S, B, f, v, b, $, k, A;
|
|
112
|
+
const e = W(
|
|
113
|
+
(h = this.processedBlock) == null ? void 0 : h.responsiveStyles,
|
|
114
|
+
((B = (S = this.processedBlock) == null ? void 0 : S.component) == null ? void 0 : B.name) === "Image"
|
|
115
|
+
), s = this.contextProvider.content, t = j(
|
|
116
|
+
((f = s == null ? void 0 : s.meta) == null ? void 0 : f.breakpoints) || {}
|
|
117
|
+
), o = !!((b = (v = s == null ? void 0 : s.meta) == null ? void 0 : v.breakpoints) != null && b.xsmall), p = e == null ? void 0 : e.large, i = e == null ? void 0 : e.medium, n = e == null ? void 0 : e.small, a = e == null ? void 0 : e.xsmall, c = ($ = this.processedBlock) == null ? void 0 : $.id;
|
|
118
|
+
if (!c)
|
|
113
119
|
return "";
|
|
114
120
|
const d = p ? l({
|
|
115
|
-
className:
|
|
121
|
+
className: c,
|
|
116
122
|
styles: p
|
|
117
|
-
}) : "",
|
|
118
|
-
className:
|
|
123
|
+
}) : "", P = i ? l({
|
|
124
|
+
className: c,
|
|
119
125
|
styles: i,
|
|
120
126
|
mediaQuery: u(
|
|
121
127
|
"medium",
|
|
122
128
|
t
|
|
123
129
|
)
|
|
124
|
-
}) : "",
|
|
125
|
-
className:
|
|
130
|
+
}) : "", T = n ? l({
|
|
131
|
+
className: c,
|
|
126
132
|
styles: n,
|
|
127
133
|
mediaQuery: u(
|
|
128
134
|
"small",
|
|
129
135
|
t
|
|
130
136
|
)
|
|
131
|
-
}) : "",
|
|
132
|
-
className:
|
|
137
|
+
}) : "", _ = a && o ? l({
|
|
138
|
+
className: c,
|
|
133
139
|
styles: a,
|
|
134
140
|
mediaQuery: u(
|
|
135
141
|
"xsmall",
|
|
136
142
|
t
|
|
137
143
|
)
|
|
138
|
-
}) : "", m = this.processedBlock.animations && this.processedBlock.animations.find((
|
|
139
|
-
let
|
|
144
|
+
}) : "", m = this.processedBlock.animations && this.processedBlock.animations.find((I) => I.trigger === "hover");
|
|
145
|
+
let r = "";
|
|
140
146
|
if (m) {
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
className: `${
|
|
147
|
+
const I = ((A = (k = m.steps) == null ? void 0 : k[1]) == null ? void 0 : A.styles) || {};
|
|
148
|
+
r = l({
|
|
149
|
+
className: `${c}:hover`,
|
|
144
150
|
styles: {
|
|
145
|
-
...
|
|
146
|
-
transition: `all ${m.duration}s ${
|
|
151
|
+
...I,
|
|
152
|
+
transition: `all ${m.duration}s ${z(
|
|
147
153
|
m.easing
|
|
148
154
|
)}`,
|
|
149
155
|
transitionDelay: m.delay ? `${m.delay}s` : "0s"
|
|
@@ -152,58 +158,58 @@ const F = /* @__PURE__ */ I(W, [["render", D]]), L = E({
|
|
|
152
158
|
}
|
|
153
159
|
return [
|
|
154
160
|
d,
|
|
155
|
-
g,
|
|
156
161
|
P,
|
|
157
162
|
T,
|
|
158
|
-
|
|
163
|
+
_,
|
|
164
|
+
r
|
|
159
165
|
].join(" ");
|
|
160
166
|
}
|
|
161
167
|
}
|
|
162
168
|
});
|
|
163
|
-
function
|
|
169
|
+
function V(e, s, t, o, p, i) {
|
|
164
170
|
const n = x("InlinedStyles");
|
|
165
|
-
return e.TARGET === "rsc" && e.css && e.canShowBlock ? (y(),
|
|
171
|
+
return e.TARGET === "rsc" && e.css && e.canShowBlock ? (y(), g(n, {
|
|
166
172
|
key: 0,
|
|
167
173
|
id: "builderio-block",
|
|
168
174
|
styles: e.css,
|
|
169
175
|
nonce: e.contextProvider.nonce
|
|
170
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
176
|
+
}, null, 8, ["styles", "nonce"])) : N("", !0);
|
|
171
177
|
}
|
|
172
|
-
const
|
|
178
|
+
const q = /* @__PURE__ */ Q(M, [["render", V]]), J = E({
|
|
173
179
|
name: "style-wrapper",
|
|
174
180
|
components: {
|
|
175
|
-
BlockStyles:
|
|
176
|
-
LiveEditBlockStyles:
|
|
181
|
+
BlockStyles: K,
|
|
182
|
+
LiveEditBlockStyles: q
|
|
177
183
|
},
|
|
178
184
|
props: ["block", "context"],
|
|
179
185
|
data() {
|
|
180
186
|
return { isClientEditing: !1, isHydrated: !1, TARGET: w };
|
|
181
187
|
},
|
|
182
188
|
inject: {
|
|
183
|
-
contextProvider:
|
|
189
|
+
contextProvider: D.key
|
|
184
190
|
},
|
|
185
191
|
mounted() {
|
|
186
192
|
}
|
|
187
193
|
});
|
|
188
|
-
function
|
|
194
|
+
function O(e, s, t, o, p, i) {
|
|
189
195
|
const n = x("LiveEditBlockStyles"), a = x("BlockStyles");
|
|
190
|
-
return e.isHydrated ? (y(),
|
|
191
|
-
e.TARGET === "rsc" && e.isClientEditing ? (y(),
|
|
196
|
+
return e.isHydrated ? (y(), G(H, { key: 0 }, [
|
|
197
|
+
e.TARGET === "rsc" && e.isClientEditing ? (y(), g(n, {
|
|
192
198
|
key: 0,
|
|
193
199
|
id: e.block.id,
|
|
194
200
|
contextProvider: e.contextProvider
|
|
195
|
-
}, null, 8, ["id", "contextProvider"])) : (y(),
|
|
201
|
+
}, null, 8, ["id", "contextProvider"])) : (y(), g(a, {
|
|
196
202
|
key: 1,
|
|
197
203
|
block: e.block,
|
|
198
204
|
context: e.context
|
|
199
205
|
}, null, 8, ["block", "context"]))
|
|
200
|
-
], 64)) : (y(),
|
|
206
|
+
], 64)) : (y(), g(a, {
|
|
201
207
|
key: 1,
|
|
202
208
|
block: e.block,
|
|
203
209
|
context: e.context
|
|
204
210
|
}, null, 8, ["block", "context"]));
|
|
205
211
|
}
|
|
206
|
-
const
|
|
212
|
+
const se = /* @__PURE__ */ Q(J, [["render", O]]);
|
|
207
213
|
export {
|
|
208
|
-
|
|
214
|
+
se as default
|
|
209
215
|
};
|
package/lib/edge/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-5vz8uirn7sc[data-v-82fc93d6]{display:flex;flex-direction:column;align-items:stretch}.div-1be3j8m9ewb[data-v-ab15749a]{display:flex;line-height:normal;height:100%}.img-t43jfuqn6g[data-v-
|
|
1
|
+
.component-5vz8uirn7sc[data-v-82fc93d6]{display:flex;flex-direction:column;align-items:stretch}.div-1be3j8m9ewb[data-v-ab15749a]{display:flex;line-height:normal;height:100%}.img-t43jfuqn6g[data-v-f109a7da]{opacity:1;transition:opacity .2s ease-in-out}.div-t43jfuqn6g[data-v-f109a7da]{width:100%;pointer-events:none;font-size:0}.div-t43jfuqn6g-2[data-v-f109a7da]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-2oa2wtipkzk[data-v-77c7888c]{padding:10px;color:red;text-align:center}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-jBWgo8LI.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,c,i,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties-NSTAD_o0.cjs"),a=require("./index-jBWgo8LI.cjs"),i=()=>Promise.resolve().then(()=>require("./index-jBWgo8LI.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}),s=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(i)},props:["Wrapper","block","context"],data(){return{getBlockActions:r.getBlockActions,getBlockProperties:r.getBlockProperties}}});function l(e,d,m,u,k,y){var o,n;const c=t.resolveComponent("DynamicRenderer");return t.openBlock(),t.createBlock(c,{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,trackingContext:{apiKey:e.context.apiKey,canTrack:e.context.canTrack??!0,contentId:(o=e.context.content)==null?void 0:o.id,variationId:(n=e.context.content)==null?void 0:n.testVariationId}})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const p=a._export_sfc(s,[["render",l]]);exports.default=p;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, defineAsyncComponent as a, resolveComponent as c, openBlock as i, createBlock as p, withCtx as s, renderSlot as l } from "vue";
|
|
2
|
-
import { g as m, a as d } from "./get-block-properties-
|
|
3
|
-
import { _ as k } from "./index-
|
|
4
|
-
const u = () => import("./index-
|
|
2
|
+
import { g as m, a as d } from "./get-block-properties-I05vUwHl.js";
|
|
3
|
+
import { _ as k } from "./index-vP-oPL56.js";
|
|
4
|
+
const u = () => import("./index-vP-oPL56.js").then((t) => t.E).then((t) => t.default).catch((t) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),p=require("./index-jBWgo8LI.cjs"),d=require("./should-force-browser-runtime-in-node--WFVCCbl.cjs"),l=require("./get-block-properties-NSTAD_o0.cjs"),k=()=>Promise.resolve().then(()=>require("./awaiter-Se1nH_ny.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),h=()=>Promise.resolve().then(()=>require("./live-edit-Qt7v1n8V.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component LiveEdit at ../../live-edit.vue",e),e}),b=t.defineComponent({name:"interactive-element",components:{LiveEdit:t.defineAsyncComponent(h),Awaiter:t.defineAsyncComponent(k)},props:["wrapperProps","block","includeBlockProps","context","Wrapper"],data(){return{forceRenderCount:0,TARGET:d.TARGET,isEditing:d.isEditing}},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{attributes(){var e,o;return this.includeBlockProps?{...l.getBlockProperties({block:this.block,context:this.context}),...l.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context,trackingContext:{apiKey:this.context.apiKey,canTrack:this.context.canTrack??!0,contentId:(e=this.context.content)==null?void 0:e.id,variationId:(o=this.context.content)==null?void 0:o.testVariationId}})}:{}},targetWrapperProps(){return{...this.wrapperProps,...Object.keys(this.attributes).length>0?{attributes:this.attributes}:{}}},onUpdateHook0(){var e,o;return{0:this.wrapperProps,1:(o=(e=this.block)==null?void 0:e.component)==null?void 0:o.options}}}});function f(e,o,s,a,i,c){const r=t.resolveComponent("Awaiter"),n=t.resolveComponent("LiveEdit");return e.Wrapper.load?(t.openBlock(),t.createBlock(r,{key:0,load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:e.attributes},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["load","fallback","props","attributes"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.TARGET==="rsc"&&e.isEditing()?(t.openBlock(),t.createBlock(n,{key:0,Wrapper:e.Wrapper,id:e.block.id||"",attributes:e.attributes},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["Wrapper","id","attributes"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({key:1,attributes:e.attributes},e.targetWrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"]))],64))}const m=p._export_sfc(b,[["render",f]]),C=({componentOptions:e,builderBlock:o,context:s,componentRef:a,includeBlockProps:i,isInteractive:c,contextValue:r})=>{const n={...e,...i?{attributes:l.getBlockProperties({block:o,context:r})}:{}};return c?{Wrapper:a,block:o,context:s,wrapperProps:e,includeBlockProps:i}:n},B=t.defineComponent({name:"component-ref",components:{Block:p.Block,InteractiveElement:m},props:["isInteractive","componentRef","blockChildren","componentOptions","builderBlock","context","linkComponent","includeBlockProps","registeredComponents"],data(){return{shouldUpdate:!1,Wrapper:this.isInteractive?p.wrapComponentRef(m):this.componentRef,getWrapperProps:C}},computed:{blockChildrenToRender(){return this.componentRef?this.blockChildren:[]}}});function v(e,o,s,a,i,c){const r=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildrenToRender,(n,u)=>(t.openBlock(),t.createBlock(r,{key:n.id,block:n,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const g=p._export_sfc(B,[["render",v]]);exports.default=g;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as h, defineAsyncComponent as u, resolveComponent as m, openBlock as o, createBlock as i, withCtx as p, renderSlot as d, createElementBlock as f, Fragment as b, resolveDynamicComponent as C, mergeProps as w, normalizeProps as W, renderList as y, createCommentVNode as B } from "vue";
|
|
2
|
-
import { _ as g, B as E, w as R } from "./index-
|
|
3
|
-
import { T as $, o as A } from "./should-force-browser-runtime-in-node-
|
|
4
|
-
import { a as v, g as S } from "./get-block-properties-
|
|
5
|
-
const T = () => import("./awaiter-
|
|
2
|
+
import { _ as g, B as E, w as R } from "./index-vP-oPL56.js";
|
|
3
|
+
import { T as $, o as A } from "./should-force-browser-runtime-in-node-cWvDK4Td.js";
|
|
4
|
+
import { a as v, g as S } from "./get-block-properties-I05vUwHl.js";
|
|
5
|
+
const T = () => import("./awaiter-if1ZrvLi.js").then((t) => t.default).catch((t) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
8
8
|
t
|
|
9
9
|
), t;
|
|
10
|
-
}), I = () => import("./live-edit-
|
|
10
|
+
}), I = () => import("./live-edit-yKSQ0yqr.js").then((t) => t.default).catch((t) => {
|
|
11
11
|
throw console.error(
|
|
12
12
|
"Error while attempting to dynamically import component LiveEdit at ../../live-edit.vue",
|
|
13
13
|
t
|
|
@@ -13,6 +13,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
13
13
|
trustedHosts?: any;
|
|
14
14
|
showContent?: any;
|
|
15
15
|
enrich?: any;
|
|
16
|
+
enrichOptions?: any;
|
|
16
17
|
contentWrapper?: any;
|
|
17
18
|
contentWrapperProps?: any;
|
|
18
19
|
isNestedRender?: any;
|
|
@@ -88,6 +89,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
88
89
|
trustedHosts?: any;
|
|
89
90
|
showContent?: any;
|
|
90
91
|
enrich?: any;
|
|
92
|
+
enrichOptions?: any;
|
|
91
93
|
contentWrapper?: any;
|
|
92
94
|
contentWrapperProps?: any;
|
|
93
95
|
isNestedRender?: any;
|
|
@@ -104,6 +106,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
104
106
|
readonly trustedHosts?: any;
|
|
105
107
|
readonly showContent?: any;
|
|
106
108
|
readonly enrich?: any;
|
|
109
|
+
readonly enrichOptions?: any;
|
|
107
110
|
readonly contentWrapper?: any;
|
|
108
111
|
readonly contentWrapperProps?: any;
|
|
109
112
|
readonly isNestedRender?: any;
|
|
@@ -18,6 +18,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
18
18
|
customComponents?: any;
|
|
19
19
|
linkComponent?: any;
|
|
20
20
|
enrich?: any;
|
|
21
|
+
enrichOptions?: any;
|
|
21
22
|
contentWrapper?: any;
|
|
22
23
|
contentWrapperProps?: any;
|
|
23
24
|
blocksWrapper?: any;
|
|
@@ -70,6 +71,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
70
71
|
customComponents?: any;
|
|
71
72
|
linkComponent?: any;
|
|
72
73
|
enrich?: any;
|
|
74
|
+
enrichOptions?: any;
|
|
73
75
|
contentWrapper?: any;
|
|
74
76
|
contentWrapperProps?: any;
|
|
75
77
|
blocksWrapper?: any;
|
|
@@ -92,6 +94,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
92
94
|
readonly customComponents?: any;
|
|
93
95
|
readonly linkComponent?: any;
|
|
94
96
|
readonly enrich?: any;
|
|
97
|
+
readonly enrichOptions?: any;
|
|
95
98
|
readonly contentWrapper?: any;
|
|
96
99
|
readonly contentWrapperProps?: any;
|
|
97
100
|
readonly blocksWrapper?: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BuilderRenderContext, RegisteredComponent } from '../../context/types';
|
|
2
|
+
import type { EnrichOptions } from '../../functions/get-content/types';
|
|
2
3
|
import type { ApiVersion } from '../../types/api-version';
|
|
3
4
|
import type { BuilderContent } from '../../types/builder-content';
|
|
4
5
|
import type { Nullable } from '../../types/typescript';
|
|
@@ -53,6 +54,13 @@ export interface ContentVariantsPrps extends ExtraFrameworkProps {
|
|
|
53
54
|
* Enriching will Include multilevel references in the response. Defaults to `false`.
|
|
54
55
|
*/
|
|
55
56
|
enrich?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The `enrichOptions` used to fetch this content (optional).
|
|
59
|
+
*
|
|
60
|
+
* Passing the same value you passed to `fetchOneEntry` lets the Visual Editor
|
|
61
|
+
* resolve references in its preview the way your site fetches them.
|
|
62
|
+
*/
|
|
63
|
+
enrichOptions?: EnrichOptions;
|
|
56
64
|
/**
|
|
57
65
|
* The element that wraps your content. Defaults to `<div>` ('ScrollView' in React Native).
|
|
58
66
|
*/
|
|
@@ -13,6 +13,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
13
13
|
customComponents?: any;
|
|
14
14
|
linkComponent?: any;
|
|
15
15
|
enrich?: any;
|
|
16
|
+
enrichOptions?: any;
|
|
16
17
|
contentWrapper?: any;
|
|
17
18
|
contentWrapperProps?: any;
|
|
18
19
|
blocksWrapper?: any;
|
|
@@ -68,6 +69,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
68
69
|
customComponents?: any;
|
|
69
70
|
linkComponent?: any;
|
|
70
71
|
enrich?: any;
|
|
72
|
+
enrichOptions?: any;
|
|
71
73
|
contentWrapper?: any;
|
|
72
74
|
contentWrapperProps?: any;
|
|
73
75
|
blocksWrapper?: any;
|
|
@@ -88,6 +90,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
88
90
|
readonly customComponents?: any;
|
|
89
91
|
readonly linkComponent?: any;
|
|
90
92
|
readonly enrich?: any;
|
|
93
|
+
readonly enrichOptions?: any;
|
|
91
94
|
readonly contentWrapper?: any;
|
|
92
95
|
readonly contentWrapperProps?: any;
|
|
93
96
|
readonly blocksWrapper?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.2.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.12";
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options to configure how `enrich` resolves references.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link https://www.builder.io/c/docs/content-api#code-enrich-options-code}
|
|
5
|
+
*/
|
|
6
|
+
export interface EnrichOptions {
|
|
7
|
+
/**
|
|
8
|
+
* How many levels of nested references to resolve. Higher levels multiply
|
|
9
|
+
* response size, so prefer the lowest level your content needs.
|
|
10
|
+
*/
|
|
11
|
+
enrichLevel?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Per-model field filters applied to resolved references.
|
|
14
|
+
*/
|
|
15
|
+
model?: {
|
|
16
|
+
[modelName: string]: {
|
|
17
|
+
/** Comma-separated list of fields to include */
|
|
18
|
+
fields?: string;
|
|
19
|
+
/** Comma-separated list of fields to omit */
|
|
20
|
+
omit?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
1
24
|
export interface GetContentOptions {
|
|
2
25
|
/** The model to get content for (required) */
|
|
3
26
|
model: string;
|
|
@@ -58,6 +81,10 @@ export interface GetContentOptions {
|
|
|
58
81
|
* Include multilevel references in the response.
|
|
59
82
|
*/
|
|
60
83
|
enrich?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Constrains how `enrich` resolves references. Only honored when `enrich` is `true`.
|
|
86
|
+
*/
|
|
87
|
+
enrichOptions?: EnrichOptions;
|
|
61
88
|
/**
|
|
62
89
|
* If provided, the API will auto-resolve localized objects to the value of this `locale` key.
|
|
63
90
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as s } from "./should-force-browser-runtime-in-node-
|
|
2
|
-
import { e as c, g as i, a as l } from "./index-
|
|
1
|
+
import { T as s } from "./should-force-browser-runtime-in-node-cWvDK4Td.js";
|
|
2
|
+
import { e as c, g as i, a as l } from "./index-vP-oPL56.js";
|
|
3
3
|
const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => c({
|
|
4
4
|
code: e,
|
|
5
5
|
context: t.context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./should-force-browser-runtime-in-node
|
|
1
|
+
"use strict";const c=require("./should-force-browser-runtime-in-node--WFVCCbl.cjs"),s=require("./index-jBWgo8LI.cjs"),i=e=>`v-on:${e.toLowerCase()}`,l=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,trackingContext:t.trackingContext});function u(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=i(o);if(e.stripPrefix)switch(c.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=l(a,e)}return t}function d({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(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 d({properties:r,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=p;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { BuilderBlock } from '../types/builder-block';
|
|
2
|
+
export declare const getResponsiveStylesWithImagePosition: (styles: BuilderBlock['responsiveStyles'], isBuilderImage: boolean) => BuilderBlock['responsiveStyles'];
|
|
1
3
|
export declare const convertStyleMapToCSSArray: (style: Partial<CSSStyleDeclaration>) => string[];
|
|
2
4
|
export declare const convertStyleMapToCSS: (style: Partial<CSSStyleDeclaration>) => string;
|
|
3
5
|
export declare const createCssClass: ({ mediaQuery, className, styles }: {
|