@builder.io/sdk-vue 1.0.3 → 1.0.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-ImJppKLu.js → block-styles-j9np3P-r.js} +1 -1
- package/lib/browser/{block-styles-O6zs87OW.cjs → block-styles-ukxa2-Zu.cjs} +1 -1
- package/lib/browser/{block-wrapper-butCDDIj.js → block-wrapper-FxyYLXqG.js} +3 -3
- package/lib/browser/{block-wrapper-iQwK-yXe.cjs → block-wrapper-_qLR80a4.cjs} +1 -1
- package/lib/browser/blocks/button/index.d.ts +1 -0
- package/lib/browser/blocks/columns/index.d.ts +1 -0
- package/lib/browser/blocks/custom-code/index.d.ts +1 -0
- package/lib/browser/blocks/embed/index.d.ts +1 -0
- package/lib/browser/blocks/form/form/index.d.ts +1 -0
- package/lib/browser/blocks/form/input/index.d.ts +1 -0
- package/lib/browser/blocks/form/select/index.d.ts +1 -0
- package/lib/browser/blocks/form/submit-button/index.d.ts +1 -0
- package/lib/browser/blocks/fragment/index.d.ts +1 -0
- package/lib/browser/blocks/image/index.d.ts +1 -0
- package/lib/browser/blocks/img/index.d.ts +1 -0
- package/lib/browser/blocks/raw-text/index.d.ts +1 -0
- package/lib/browser/blocks/section/index.d.ts +1 -0
- package/lib/browser/blocks/slot/index.d.ts +1 -0
- package/lib/browser/blocks/symbol/index.d.ts +1 -0
- package/lib/browser/blocks/text/index.d.ts +1 -0
- package/lib/browser/blocks/textarea/index.d.ts +1 -0
- package/lib/browser/blocks/video/index.d.ts +1 -0
- package/lib/browser/{component-ref-Yt4g22Y_.js → component-ref-EbQVULbj.js} +2 -2
- package/lib/browser/{component-ref-kihkcAvN.cjs → component-ref-ef4o2sj2.cjs} +1 -1
- package/lib/browser/components/blocks/index.d.ts +1 -0
- package/lib/browser/components/content-variants/index.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-MyFVpr2Z.js → get-block-properties-Rh4X_YUt.js} +1 -1
- package/lib/browser/{get-block-properties-EQ9TZrpu.cjs → get-block-properties-o2be_Wxk.cjs} +1 -1
- package/lib/browser/{index-xEqK9i7_.js → index-GygQh2Rk.js} +24 -22
- package/lib/browser/{index-NmrV8zHs.cjs → index-e70TYoUr.cjs} +5 -5
- package/lib/browser/index-helpers/blocks-exports.d.ts +10 -11
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-Grs88baa.js → repeated-block-EjD4PExV.js} +2 -2
- package/lib/browser/{repeated-block-rvdElrZN.cjs → repeated-block-RuvksQ92.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles-Fb5UheyE.cjs → block-styles--O0l0Z9P.cjs} +1 -1
- package/lib/{node/block-styles-kd5Jj3SW.js → edge/block-styles-j3USwD3t.js} +1 -1
- package/lib/{node/block-wrapper-OutTq66R.cjs → edge/block-wrapper-M9NUhWGH.cjs} +1 -1
- package/lib/edge/{block-wrapper-vq-bMcar.js → block-wrapper-gb29rdP4.js} +3 -3
- package/lib/edge/blocks/button/index.d.ts +1 -0
- package/lib/edge/blocks/columns/index.d.ts +1 -0
- package/lib/edge/blocks/custom-code/index.d.ts +1 -0
- package/lib/edge/blocks/embed/index.d.ts +1 -0
- package/lib/edge/blocks/form/form/index.d.ts +1 -0
- package/lib/edge/blocks/form/input/index.d.ts +1 -0
- package/lib/edge/blocks/form/select/index.d.ts +1 -0
- package/lib/edge/blocks/form/submit-button/index.d.ts +1 -0
- package/lib/edge/blocks/fragment/index.d.ts +1 -0
- package/lib/edge/blocks/image/index.d.ts +1 -0
- package/lib/edge/blocks/img/index.d.ts +1 -0
- package/lib/edge/blocks/raw-text/index.d.ts +1 -0
- package/lib/edge/blocks/section/index.d.ts +1 -0
- package/lib/edge/blocks/slot/index.d.ts +1 -0
- package/lib/edge/blocks/symbol/index.d.ts +1 -0
- package/lib/edge/blocks/text/index.d.ts +1 -0
- package/lib/edge/blocks/textarea/index.d.ts +1 -0
- package/lib/edge/blocks/video/index.d.ts +1 -0
- package/lib/{node/component-ref-PvIqAbtS.cjs → edge/component-ref-3csDQ7HK.cjs} +1 -1
- package/lib/{node/component-ref-HcbvZD65.js → edge/component-ref-3ett8l8W.js} +2 -2
- package/lib/edge/components/blocks/index.d.ts +1 -0
- package/lib/edge/components/content-variants/index.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-EdjUbf7x.cjs → get-block-properties-0gL7ciO6.cjs} +1 -1
- package/lib/{node/get-block-properties-BlNLSvwI.js → edge/get-block-properties-Ulj_6ST2.js} +1 -1
- package/lib/edge/{index-P7fymkW9.cjs → index-0_TXnqeC.cjs} +5 -5
- package/lib/edge/{index-RXZhlIsq.js → index-d-VaM23f.js} +134 -132
- package/lib/edge/index-helpers/blocks-exports.d.ts +10 -11
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/{node/repeated-block-Ww_Y0Q7Z.js → edge/repeated-block-nv-GpmWU.js} +2 -2
- package/lib/edge/{repeated-block-ibo5w6qy.cjs → repeated-block-tJccBEG3.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles-MdVcqx1d.cjs → block-styles-5A29R26b.cjs} +1 -1
- package/lib/{edge/block-styles-fRtdE0e9.js → node/block-styles-r9wURB-0.js} +1 -1
- package/lib/{edge/block-wrapper-L46BmHXL.cjs → node/block-wrapper-B_V9SIlS.cjs} +1 -1
- package/lib/node/{block-wrapper-XtMD8TEK.js → block-wrapper-_4dHa6F_.js} +3 -3
- package/lib/node/blocks/button/index.d.ts +1 -0
- package/lib/node/blocks/columns/index.d.ts +1 -0
- package/lib/node/blocks/custom-code/index.d.ts +1 -0
- package/lib/node/blocks/embed/index.d.ts +1 -0
- package/lib/node/blocks/form/form/index.d.ts +1 -0
- package/lib/node/blocks/form/input/index.d.ts +1 -0
- package/lib/node/blocks/form/select/index.d.ts +1 -0
- package/lib/node/blocks/form/submit-button/index.d.ts +1 -0
- package/lib/node/blocks/fragment/index.d.ts +1 -0
- package/lib/node/blocks/image/index.d.ts +1 -0
- package/lib/node/blocks/img/index.d.ts +1 -0
- package/lib/node/blocks/raw-text/index.d.ts +1 -0
- package/lib/node/blocks/section/index.d.ts +1 -0
- package/lib/node/blocks/slot/index.d.ts +1 -0
- package/lib/node/blocks/symbol/index.d.ts +1 -0
- package/lib/node/blocks/text/index.d.ts +1 -0
- package/lib/node/blocks/textarea/index.d.ts +1 -0
- package/lib/node/blocks/video/index.d.ts +1 -0
- package/lib/{edge/component-ref-_lH1Xl3_.js → node/component-ref-YacFSt-X.js} +2 -2
- package/lib/{edge/component-ref-brc13Tru.cjs → node/component-ref-ap55YBte.cjs} +1 -1
- package/lib/node/components/blocks/index.d.ts +1 -0
- package/lib/node/components/content-variants/index.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-Ji0ruaCy.cjs → get-block-properties-YuIrE2ch.cjs} +1 -1
- package/lib/{edge/get-block-properties-pPBPSsiy.js → node/get-block-properties-qrTxzWJ0.js} +1 -1
- package/lib/node/index-helpers/blocks-exports.d.ts +10 -11
- package/lib/node/{index-dx-rqB58.js → index-r1pyGeuy.js} +24 -22
- package/lib/node/{index-GiofhrQH.cjs → index-zohROqUT.cjs} +6 -6
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/{edge/repeated-block-Bqv_g1t0.js → node/repeated-block-QEaWmQ3H.js} +2 -2
- package/lib/node/{repeated-block-NSALbTMB.cjs → repeated-block-pNU308ur.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export { default as Button } from '../blocks/button/
|
|
2
|
-
export { default as Columns } from '../blocks/columns/
|
|
3
|
-
export { default as Fragment } from '../blocks/fragment/
|
|
4
|
-
export { default as Image } from '../blocks/image/
|
|
5
|
-
export { default as Section } from '../blocks/section/
|
|
6
|
-
export { default as Symbol } from '../blocks/symbol/
|
|
7
|
-
export { default as Text } from '../blocks/text/
|
|
8
|
-
export { default as Video } from '../blocks/video/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { Blocks, Content };
|
|
1
|
+
export { default as Button } from '../blocks/button/index.js';
|
|
2
|
+
export { default as Columns } from '../blocks/columns/index.js';
|
|
3
|
+
export { default as Fragment } from '../blocks/fragment/index.js';
|
|
4
|
+
export { default as Image } from '../blocks/image/index.js';
|
|
5
|
+
export { default as Section } from '../blocks/section/index.js';
|
|
6
|
+
export { default as Symbol } from '../blocks/symbol/index.js';
|
|
7
|
+
export { default as Text } from '../blocks/text/index.js';
|
|
8
|
+
export { default as Video } from '../blocks/video/index.js';
|
|
9
|
+
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
|
+
export { default as Content } from '../components/content-variants/index.js';
|
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-0_TXnqeC.cjs");exports.Blocks=e.Blocks;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.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/edge/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as a, k as t, C as r, o, F as i, I as n, S as c, l as g, m, V as l, z as u, r as d, y as p, A as C, D as E, u as S, p as f, q as h, s as B, t as b, x as k, v as x } from "./index-d-VaM23f.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Blocks,
|
|
4
4
|
t as Button,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
-
import { j as s, e as l } from "./index-
|
|
3
|
-
const i = () => import("./index-
|
|
2
|
+
import { j as s, e as l } from "./index-d-VaM23f.js";
|
|
3
|
+
const i = () => import("./index-d-VaM23f.js").then((e) => e.G).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 +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-0_TXnqeC.cjs"),r=()=>Promise.resolve().then(()=>require("./index-0_TXnqeC.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}}});function s(e,i,p,a,m,d){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 l=t._export_sfc(c,[["render",s]]);exports.default=l;
|
package/lib/edge/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
1
|
+
.component-1o2kztlxdt6[data-v-6fabd81c]{display:flex;flex-direction:column;align-items:stretch}.div-2fnk003dqad[data-v-0777f1ce]{display:flex;line-height:normal}.img-1be3j8m9ewb[data-v-8b807426]{opacity:1;transition:opacity .2s ease-in-out}.div-1be3j8m9ewb[data-v-8b807426]{width:100%;pointer-events:none;font-size:0}.div-1be3j8m9ewb-2[data-v-8b807426]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-5vz8uirn7sc[data-v-c1bb70af]{padding:10px;color:red;text-align:center}
|
|
@@ -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-zohROqUT.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 k(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 p=t._export_sfc(h,[["render",k]]);exports.default=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, resolveComponent as y, openBlock as x, createBlock as f, createCommentVNode as B } from "vue";
|
|
2
|
-
import { _, T as b, g as d, c as m, a as g, b as r, d as S, e as C } from "./index-
|
|
2
|
+
import { _, T as b, g as d, c as m, a as g, b as r, d as S, e as C } from "./index-r1pyGeuy.js";
|
|
3
3
|
const v = k({
|
|
4
4
|
name: "block-styles",
|
|
5
5
|
components: { InlinedStyles: _ },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-YuIrE2ch.cjs"),n=require("./index-zohROqUT.cjs"),c=()=>Promise.resolve().then(()=>require("./index-zohROqUT.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 { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
2
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
3
|
-
import { e as m } from "./index-
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-qrTxzWJ0.js";
|
|
3
|
+
import { e as m } from "./index-r1pyGeuy.js";
|
|
4
|
+
const d = () => import("./index-r1pyGeuy.js").then((e) => e.E).then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './button.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './columns.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './custom-code.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './embed.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './form.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './input.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './select.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './submit-button.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './fragment.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './image.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './img.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './raw-text.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './section.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './slot.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './symbol.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './text.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './textarea.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './video.vue';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
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";
|
|
2
|
-
import { e as f, B as h, w } from "./index-
|
|
3
|
-
import { g as R, a as b } from "./get-block-properties-
|
|
2
|
+
import { e as f, B as h, w } from "./index-r1pyGeuy.js";
|
|
3
|
+
import { g as R, a as b } from "./get-block-properties-qrTxzWJ0.js";
|
|
4
4
|
const I = m({
|
|
5
5
|
name: "interactive-element",
|
|
6
6
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-zohROqUT.cjs"),a=require("./get-block-properties-YuIrE2ch.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 k=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:k},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?p.wrapComponentRef(k):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,m)=>(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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './blocks.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './content-variants.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-
|
|
1
|
+
"use strict";const s=require("./index-zohROqUT.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 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 u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=p;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export { default as Button } from '../blocks/button/
|
|
2
|
-
export { default as Columns } from '../blocks/columns/
|
|
3
|
-
export { default as Fragment } from '../blocks/fragment/
|
|
4
|
-
export { default as Image } from '../blocks/image/
|
|
5
|
-
export { default as Section } from '../blocks/section/
|
|
6
|
-
export { default as Symbol } from '../blocks/symbol/
|
|
7
|
-
export { default as Text } from '../blocks/text/
|
|
8
|
-
export { default as Video } from '../blocks/video/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { Blocks, Content };
|
|
1
|
+
export { default as Button } from '../blocks/button/index.js';
|
|
2
|
+
export { default as Columns } from '../blocks/columns/index.js';
|
|
3
|
+
export { default as Fragment } from '../blocks/fragment/index.js';
|
|
4
|
+
export { default as Image } from '../blocks/image/index.js';
|
|
5
|
+
export { default as Section } from '../blocks/section/index.js';
|
|
6
|
+
export { default as Symbol } from '../blocks/symbol/index.js';
|
|
7
|
+
export { default as Text } from '../blocks/text/index.js';
|
|
8
|
+
export { default as Video } from '../blocks/video/index.js';
|
|
9
|
+
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
|
+
export { default as Content } from '../components/content-variants/index.js';
|
|
@@ -655,22 +655,22 @@ const getComponent = ({
|
|
|
655
655
|
},
|
|
656
656
|
block: o
|
|
657
657
|
}));
|
|
658
|
-
}, BlockStyles = () => import("./block-styles-
|
|
658
|
+
}, BlockStyles = () => import("./block-styles-r9wURB-0.js").then((e) => e.default).catch((e) => {
|
|
659
659
|
throw console.error(
|
|
660
660
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
661
661
|
e
|
|
662
662
|
), e;
|
|
663
|
-
}), BlockWrapper = () => import("./block-wrapper-
|
|
663
|
+
}), BlockWrapper = () => import("./block-wrapper-_4dHa6F_.js").then((e) => e.default).catch((e) => {
|
|
664
664
|
throw console.error(
|
|
665
665
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
666
666
|
e
|
|
667
667
|
), e;
|
|
668
|
-
}), ComponentRef = () => import("./component-ref-
|
|
668
|
+
}), ComponentRef = () => import("./component-ref-YacFSt-X.js").then((e) => e.default).catch((e) => {
|
|
669
669
|
throw console.error(
|
|
670
670
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
671
671
|
e
|
|
672
672
|
), e;
|
|
673
|
-
}), RepeatedBlock = () => import("./repeated-block-
|
|
673
|
+
}), RepeatedBlock = () => import("./repeated-block-QEaWmQ3H.js").then((e) => e.default).catch((e) => {
|
|
674
674
|
throw console.error(
|
|
675
675
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
676
676
|
e
|
|
@@ -869,7 +869,7 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l
|
|
|
869
869
|
});
|
|
870
870
|
function _sfc_render$k(e, t, n, o, r, s) {
|
|
871
871
|
return openBlock(), createBlock(resolveDynamicComponent(e.BlocksWrapper), mergeProps({
|
|
872
|
-
class: e.className + " component-
|
|
872
|
+
class: e.className + " component-1o2kztlxdt6",
|
|
873
873
|
"builder-path": e.path,
|
|
874
874
|
"builder-parent-id": e.parent,
|
|
875
875
|
style: e.styleProp,
|
|
@@ -883,7 +883,7 @@ function _sfc_render$k(e, t, n, o, r, s) {
|
|
|
883
883
|
_: 3
|
|
884
884
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
885
885
|
}
|
|
886
|
-
const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k], ["__scopeId", "data-v-
|
|
886
|
+
const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k], ["__scopeId", "data-v-6fabd81c"]]), _sfc_main$l = defineComponent({
|
|
887
887
|
name: "builder-blocks",
|
|
888
888
|
components: { BlocksWrapper, Block },
|
|
889
889
|
props: [
|
|
@@ -1097,7 +1097,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$
|
|
|
1097
1097
|
function _sfc_render$i(e, t, n, o, r, s) {
|
|
1098
1098
|
const i = resolveComponent("inlined-styles"), a = resolveComponent("blocks"), l = resolveComponent("dynamic-renderer");
|
|
1099
1099
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
1100
|
-
class: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
1100
|
+
class: `builder-columns ${e.builderBlock.id}-breakpoints div-2fnk003dqad`,
|
|
1101
1101
|
style: e.columnsCssVars
|
|
1102
1102
|
}, {}), [
|
|
1103
1103
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
|
|
@@ -1133,7 +1133,7 @@ function _sfc_render$i(e, t, n, o, r, s) {
|
|
|
1133
1133
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1134
1134
|
], 16);
|
|
1135
1135
|
}
|
|
1136
|
-
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-
|
|
1136
|
+
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-0777f1ce"]]), _sfc_main$i = defineComponent({
|
|
1137
1137
|
name: "builder-fragment-component",
|
|
1138
1138
|
props: []
|
|
1139
1139
|
});
|
|
@@ -1221,7 +1221,7 @@ const _sfc_main$h = defineComponent({
|
|
|
1221
1221
|
}
|
|
1222
1222
|
}), _hoisted_1$8 = ["srcset"], _hoisted_2$3 = ["alt", "role", "src", "srcset", "sizes"], _hoisted_3$1 = {
|
|
1223
1223
|
key: 2,
|
|
1224
|
-
class: "div-
|
|
1224
|
+
class: "div-1be3j8m9ewb-2"
|
|
1225
1225
|
};
|
|
1226
1226
|
function _sfc_render$g(e, t, n, o, r, s) {
|
|
1227
1227
|
var i, a, l, d;
|
|
@@ -1242,7 +1242,7 @@ function _sfc_render$g(e, t, n, o, r, s) {
|
|
|
1242
1242
|
...e.aspectRatioCss
|
|
1243
1243
|
}),
|
|
1244
1244
|
class: normalizeClass(
|
|
1245
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1245
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
1246
1246
|
),
|
|
1247
1247
|
src: e.image,
|
|
1248
1248
|
srcset: e.srcSetToUse,
|
|
@@ -1251,7 +1251,7 @@ function _sfc_render$g(e, t, n, o, r, s) {
|
|
|
1251
1251
|
]),
|
|
1252
1252
|
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
|
|
1253
1253
|
key: 0,
|
|
1254
|
-
class: "builder-image-sizer div-
|
|
1254
|
+
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
1255
1255
|
style: normalizeStyle({
|
|
1256
1256
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1257
1257
|
})
|
|
@@ -1262,7 +1262,7 @@ function _sfc_render$g(e, t, n, o, r, s) {
|
|
|
1262
1262
|
])) : createCommentVNode("", !0)
|
|
1263
1263
|
], 64);
|
|
1264
1264
|
}
|
|
1265
|
-
const Image = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-
|
|
1265
|
+
const Image = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-8b807426"]]), _sfc_main$g = defineComponent({
|
|
1266
1266
|
name: "builder-section-component",
|
|
1267
1267
|
props: ["attributes", "maxWidth"],
|
|
1268
1268
|
data() {
|
|
@@ -2443,7 +2443,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b
|
|
|
2443
2443
|
}
|
|
2444
2444
|
}), _hoisted_1$4 = ["validate", "action", "method", "name"], _hoisted_2$2 = {
|
|
2445
2445
|
key: 3,
|
|
2446
|
-
class: "builder-form-error-text pre-
|
|
2446
|
+
class: "builder-form-error-text pre-5vz8uirn7sc"
|
|
2447
2447
|
};
|
|
2448
2448
|
function _sfc_render$a(e, t, n, o, r, s) {
|
|
2449
2449
|
var l;
|
|
@@ -2485,7 +2485,7 @@ function _sfc_render$a(e, t, n, o, r, s) {
|
|
|
2485
2485
|
}, null, 8, ["blocks", "context"])) : createCommentVNode("", !0)
|
|
2486
2486
|
], 16, _hoisted_1$4);
|
|
2487
2487
|
}
|
|
2488
|
-
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-
|
|
2488
|
+
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-c1bb70af"]]), componentInfo$4 = {
|
|
2489
2489
|
name: "Form:Input",
|
|
2490
2490
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2491
2491
|
inputs: [
|
|
@@ -3390,7 +3390,7 @@ function isFromTrustedHost(e, t) {
|
|
|
3390
3390
|
const n = new URL(t.origin), o = n.hostname;
|
|
3391
3391
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3392
3392
|
}
|
|
3393
|
-
const SDK_VERSION = "1.0.
|
|
3393
|
+
const SDK_VERSION = "1.0.4", registry = {};
|
|
3394
3394
|
function register(e, t) {
|
|
3395
3395
|
let n = registry[e];
|
|
3396
3396
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -4330,7 +4330,9 @@ function _sfc_render(e, t, n, o, r, s) {
|
|
|
4330
4330
|
},
|
|
4331
4331
|
model: (c = e.symbol) == null ? void 0 : c.model,
|
|
4332
4332
|
content: e.contentToUse,
|
|
4333
|
-
linkComponent: e.builderLinkComponent
|
|
4333
|
+
linkComponent: e.builderLinkComponent,
|
|
4334
|
+
blocksWrapper: "div",
|
|
4335
|
+
contentWrapper: "div"
|
|
4334
4336
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
4335
4337
|
], 16);
|
|
4336
4338
|
}
|
|
@@ -4368,7 +4370,7 @@ const fetchBuilderProps = async (e) => {
|
|
|
4368
4370
|
export {
|
|
4369
4371
|
fetchEntries as A,
|
|
4370
4372
|
Block as B,
|
|
4371
|
-
|
|
4373
|
+
Columns as C,
|
|
4372
4374
|
fetchOneEntry as D,
|
|
4373
4375
|
dynamicRenderer as E,
|
|
4374
4376
|
Fragment as F,
|
|
@@ -4388,11 +4390,11 @@ export {
|
|
|
4388
4390
|
getStyle as h,
|
|
4389
4391
|
getClassPropName as i,
|
|
4390
4392
|
BuilderContext as j,
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4393
|
+
Button as k,
|
|
4394
|
+
Symbol$1 as l,
|
|
4395
|
+
Text as m,
|
|
4396
|
+
Blocks as n,
|
|
4397
|
+
ContentVariants as o,
|
|
4396
4398
|
isEditing as p,
|
|
4397
4399
|
isPreviewing as q,
|
|
4398
4400
|
createRegisterComponentMessage as r,
|