@builder.io/sdk-vue 1.0.21 → 1.0.22
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-VImRioSm.js +87 -0
- package/lib/browser/block-styles-WIrvoyUF.cjs +1 -0
- package/lib/browser/{block-wrapper-a1zxMruE.js → block-wrapper--ZG8uXgi.js} +3 -3
- package/lib/browser/{block-wrapper-mlbE709c.cjs → block-wrapper-PG29yePT.cjs} +1 -1
- package/lib/browser/{component-ref-5K3RMLKh.js → component-ref-AbXXG_wD.js} +2 -2
- package/lib/browser/{component-ref-mNbBuzhy.cjs → component-ref-Oh6emZ2D.cjs} +1 -1
- package/lib/browser/components/block/animator.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/is-previewing.d.ts +1 -1
- package/lib/browser/{get-block-properties-PuGrG7pm.cjs → get-block-properties-iG0EdCc7.cjs} +1 -1
- package/lib/browser/{get-block-properties-4MopDiTP.js → get-block-properties-jSTzat9q.js} +6 -6
- package/lib/browser/{index-OSGu6alT.cjs → index-3lFzntkG.cjs} +19 -19
- package/lib/browser/{index-mwZzSIN7.js → index-_VfPZEOT.js} +401 -424
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +3 -3
- package/lib/browser/{repeated-block-VP4euR8a.cjs → repeated-block-GitdVuPz.cjs} +1 -1
- package/lib/browser/{repeated-block-hUFMTXXS.js → repeated-block-LywEnyR6.js} +2 -2
- package/lib/edge/block-styles-ZxWEJSxb.js +86 -0
- package/lib/edge/block-styles-eJqBAPHH.cjs +1 -0
- package/lib/{node/block-wrapper-bGeMckW5.cjs → edge/block-wrapper-2Crn7tbG.cjs} +1 -1
- package/lib/edge/{block-wrapper-xgShkhuq.js → block-wrapper-E58yJMa2.js} +3 -3
- package/lib/{node/component-ref-YhLendyR.cjs → edge/component-ref-4M72dsyI.cjs} +1 -1
- package/lib/{node/component-ref-PGVczQrW.js → edge/component-ref-lMVExvau.js} +2 -2
- package/lib/edge/components/block/animator.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/is-previewing.d.ts +1 -1
- package/lib/{node/get-block-properties-kAmm-X1q.js → edge/get-block-properties-RLx998wH.js} +4 -4
- package/lib/edge/{get-block-properties-v6bf_R5d.cjs → get-block-properties-ozEWpZlZ.cjs} +1 -1
- package/lib/edge/{index-Ua4OW_gh.js → index-53gkK1JA.js} +641 -664
- package/lib/edge/{index-xnWjf2tW.cjs → index-nVP8G4zp.cjs} +26 -26
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +4 -4
- package/lib/edge/{repeated-block-qRyqdxjD.cjs → repeated-block-_7bmUv-Z.cjs} +1 -1
- package/lib/{node/repeated-block-tjhtQDPA.js → edge/repeated-block-kei-SmhT.js} +13 -13
- package/lib/node/block-styles-_OMTv9sJ.js +86 -0
- package/lib/node/block-styles-cJg0zG2x.cjs +1 -0
- package/lib/node/{block-wrapper--vej-Ae6.js → block-wrapper-WFhgV7rM.js} +3 -3
- package/lib/{edge/block-wrapper-4RaFHsBw.cjs → node/block-wrapper-olhoZ1Gm.cjs} +1 -1
- package/lib/{edge/component-ref-kGbDg8GR.js → node/component-ref-CnP6F8zd.js} +2 -2
- package/lib/{edge/component-ref-KD6yANwg.cjs → node/component-ref-Wy04EyRy.cjs} +1 -1
- package/lib/node/components/block/animator.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/is-previewing.d.ts +1 -1
- package/lib/{edge/get-block-properties-yFfbPH85.js → node/get-block-properties-3AHBPypn.js} +4 -4
- package/lib/node/{get-block-properties-GTVEiEYp.cjs → get-block-properties-azp9C2XD.cjs} +1 -1
- package/lib/node/{index-mnDtU0q8.js → index-eF57HLR1.js} +36 -59
- package/lib/node/{index-XIqTnRyC.cjs → index-my4sBiPM.cjs} +5 -5
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +4 -4
- package/lib/node/{repeated-block-SWSMCPvd.cjs → repeated-block-AtgGXQbg.cjs} +1 -1
- package/lib/{edge/repeated-block-uiPuS74Z.js → node/repeated-block-uRrCR8KR.js} +13 -13
- package/package.json +1 -1
- package/lib/browser/block-styles-2lYNYVH3.js +0 -70
- package/lib/browser/block-styles-y6pFfJz3.cjs +0 -1
- package/lib/edge/block-styles-_eYB_Fxz.cjs +0 -1
- package/lib/edge/block-styles-nhMA9R4s.js +0 -69
- package/lib/node/block-styles-h0iWFk09.cjs +0 -1
- package/lib/node/block-styles-rz8jpORX.js +0 -69
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-nVP8G4zp.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.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 { o as a, k as t, l as r, C as o, p as i, F as n, I as c, S as g, m as l, n as m, V as u, A as d, s as C, z as E, D as p, E as B, v as S, q as f, r as h, t as x, u as b, y as k, x as y } from "./index-53gkK1JA.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Blocks,
|
|
4
4
|
t as BuilderContext,
|
|
@@ -13,9 +13,9 @@ export {
|
|
|
13
13
|
u as Video,
|
|
14
14
|
d as _processContentResult,
|
|
15
15
|
C as createRegisterComponentMessage,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
E as fetchBuilderProps,
|
|
17
|
+
p as fetchEntries,
|
|
18
|
+
B as fetchOneEntry,
|
|
19
19
|
S as getBuilderSearchParams,
|
|
20
20
|
f as isEditing,
|
|
21
21
|
h as isPreviewing,
|
|
@@ -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-nVP8G4zp.cjs"),r=()=>Promise.resolve().then(()=>require("./index-nVP8G4zp.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;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
const i = () => import("./index-
|
|
2
|
+
import { k as s, f as l } from "./index-53gkK1JA.js";
|
|
3
|
+
const i = () => import("./index-53gkK1JA.js").then((o) => o.H).then((o) => o.default).catch((o) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
6
|
-
|
|
7
|
-
),
|
|
6
|
+
o
|
|
7
|
+
), o;
|
|
8
8
|
}), m = t({
|
|
9
9
|
name: "repeated-block",
|
|
10
10
|
components: { Block: n(i) },
|
|
@@ -13,19 +13,19 @@ const i = () => import("./index-mnDtU0q8.js").then((e) => e.G).then((e) => e.def
|
|
|
13
13
|
return { store: this.repeatContext };
|
|
14
14
|
},
|
|
15
15
|
provide() {
|
|
16
|
-
const
|
|
16
|
+
const o = this;
|
|
17
17
|
return {
|
|
18
|
-
[s.key]:
|
|
18
|
+
[s.key]: o.store
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
function a(
|
|
23
|
-
const
|
|
24
|
-
return c(), p(
|
|
25
|
-
block:
|
|
26
|
-
context:
|
|
27
|
-
registeredComponents:
|
|
28
|
-
linkComponent:
|
|
22
|
+
function a(o, k, d, C, f, u) {
|
|
23
|
+
const e = r("block");
|
|
24
|
+
return c(), p(e, {
|
|
25
|
+
block: o.block,
|
|
26
|
+
context: o.store,
|
|
27
|
+
registeredComponents: o.registeredComponents,
|
|
28
|
+
linkComponent: o.linkComponent
|
|
29
29
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]);
|
|
30
30
|
}
|
|
31
31
|
const B = /* @__PURE__ */ l(m, [["render", a]]);
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as g, resolveComponent as B, openBlock as C, createBlock as v, createCommentVNode as _ } from "vue";
|
|
2
|
+
import { _ as $, T, g as p, c as y, a as w, b as l, d as k, e as E, f as N } from "./index-eF57HLR1.js";
|
|
3
|
+
const z = g({
|
|
4
|
+
name: "block-styles",
|
|
5
|
+
components: { InlinedStyles: $ },
|
|
6
|
+
props: ["block", "context"],
|
|
7
|
+
data() {
|
|
8
|
+
return { TARGET: T };
|
|
9
|
+
},
|
|
10
|
+
computed: {
|
|
11
|
+
canShowBlock() {
|
|
12
|
+
const t = p({
|
|
13
|
+
block: this.block,
|
|
14
|
+
localState: this.context.localState,
|
|
15
|
+
rootState: this.context.rootState,
|
|
16
|
+
rootSetState: this.context.rootSetState,
|
|
17
|
+
context: this.context.context,
|
|
18
|
+
shouldEvaluateBindings: !0
|
|
19
|
+
});
|
|
20
|
+
return y(t.hide) ? !t.hide : y(t.show) ? t.show : !0;
|
|
21
|
+
},
|
|
22
|
+
css() {
|
|
23
|
+
var S, u, h;
|
|
24
|
+
const t = p({
|
|
25
|
+
block: this.block,
|
|
26
|
+
localState: this.context.localState,
|
|
27
|
+
rootState: this.context.rootState,
|
|
28
|
+
rootSetState: this.context.rootSetState,
|
|
29
|
+
context: this.context.context,
|
|
30
|
+
shouldEvaluateBindings: !0
|
|
31
|
+
}), e = t.responsiveStyles, n = this.context.content, c = w(
|
|
32
|
+
((S = n == null ? void 0 : n.meta) == null ? void 0 : S.breakpoints) || {}
|
|
33
|
+
), i = e == null ? void 0 : e.large, r = e == null ? void 0 : e.medium, a = e == null ? void 0 : e.small, o = t.id;
|
|
34
|
+
if (!o)
|
|
35
|
+
return "";
|
|
36
|
+
const f = i ? l({
|
|
37
|
+
className: o,
|
|
38
|
+
styles: i
|
|
39
|
+
}) : "", x = r ? l({
|
|
40
|
+
className: o,
|
|
41
|
+
styles: r,
|
|
42
|
+
mediaQuery: k(
|
|
43
|
+
"medium",
|
|
44
|
+
c
|
|
45
|
+
)
|
|
46
|
+
}) : "", b = a ? l({
|
|
47
|
+
className: o,
|
|
48
|
+
styles: a,
|
|
49
|
+
mediaQuery: k(
|
|
50
|
+
"small",
|
|
51
|
+
c
|
|
52
|
+
)
|
|
53
|
+
}) : "", s = t.animations && t.animations.find((d) => d.trigger === "hover");
|
|
54
|
+
let m = "";
|
|
55
|
+
if (s) {
|
|
56
|
+
const d = ((h = (u = s.steps) == null ? void 0 : u[1]) == null ? void 0 : h.styles) || {};
|
|
57
|
+
m = l({
|
|
58
|
+
className: `${o}:hover`,
|
|
59
|
+
styles: {
|
|
60
|
+
...d,
|
|
61
|
+
transition: `all ${s.duration}s ${E(s.easing)}`,
|
|
62
|
+
transitionDelay: s.delay ? `${s.delay}s` : "0s"
|
|
63
|
+
}
|
|
64
|
+
}) || "";
|
|
65
|
+
}
|
|
66
|
+
return [
|
|
67
|
+
f,
|
|
68
|
+
x,
|
|
69
|
+
b,
|
|
70
|
+
m
|
|
71
|
+
].join(" ");
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
function A(t, e, n, c, i, r) {
|
|
76
|
+
const a = B("inlined-styles");
|
|
77
|
+
return t.TARGET !== "reactNative" && t.css && t.canShowBlock ? (C(), v(a, {
|
|
78
|
+
key: 0,
|
|
79
|
+
id: "builderio-block",
|
|
80
|
+
styles: t.css
|
|
81
|
+
}, null, 8, ["styles"])) : _("", !0);
|
|
82
|
+
}
|
|
83
|
+
const F = /* @__PURE__ */ N(z, [["render", A]]);
|
|
84
|
+
export {
|
|
85
|
+
F as default
|
|
86
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),e=require("./index-my4sBiPM.cjs"),f=a.defineComponent({name:"block-styles",components:{InlinedStyles:e._sfc_main},props:["block","context"],data(){return{TARGET:e.TARGET}},computed:{canShowBlock(){const t=e.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return e.checkIsDefined(t.hide)?!t.hide:e.checkIsDefined(t.show)?t.show:!0},css(){var m,h,y;const t=e.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),s=t.responsiveStyles,c=this.context.content,r=e.getSizesForBreakpoints(((m=c==null?void 0:c.meta)==null?void 0:m.breakpoints)||{}),i=s==null?void 0:s.large,d=s==null?void 0:s.medium,l=s==null?void 0:s.small,n=t.id;if(!n)return"";const k=i?e.createCssClass({className:n,styles:i}):"",p=d?e.createCssClass({className:n,styles:d,mediaQuery:e.getMaxWidthQueryForSize("medium",r)}):"",C=l?e.createCssClass({className:n,styles:l,mediaQuery:e.getMaxWidthQueryForSize("small",r)}):"",o=t.animations&&t.animations.find(u=>u.trigger==="hover");let S="";if(o){const u=((y=(h=o.steps)==null?void 0:h[1])==null?void 0:y.styles)||{};S=e.createCssClass({className:`${n}:hover`,styles:{...u,transition:`all ${o.duration}s ${e.camelCaseToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[k,p,C,S].join(" ")}}});function g(t,s,c,r,i,d){const l=a.resolveComponent("inlined-styles");return t.TARGET!=="reactNative"&&t.css&&t.canShowBlock?(a.openBlock(),a.createBlock(l,{key:0,id:"builderio-block",styles:t.css},null,8,["styles"])):a.createCommentVNode("",!0)}const x=e._export_sfc(f,[["render",g]]);exports.default=x;
|
|
@@ -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 {
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-3AHBPypn.js";
|
|
3
|
+
import { f as m } from "./index-eF57HLR1.js";
|
|
4
|
+
const d = () => import("./index-eF57HLR1.js").then((e) => e.G).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
|
|
@@ -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-azp9C2XD.cjs"),n=require("./index-my4sBiPM.cjs"),c=()=>Promise.resolve().then(()=>require("./index-my4sBiPM.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,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 {
|
|
3
|
-
import { g as R, a as b } from "./get-block-properties-
|
|
2
|
+
import { f, B as h, w } from "./index-eF57HLR1.js";
|
|
3
|
+
import { g as R, a as b } from "./get-block-properties-3AHBPypn.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-my4sBiPM.cjs"),a=require("./get-block-properties-azp9C2XD.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BuilderAnimation } from '../../types/builder-block';
|
|
2
|
+
export declare const camelCaseToKebabCase: (str?: string) => string;
|
|
2
3
|
export declare function bindAnimations(animations: BuilderAnimation[]): void;
|
|
3
4
|
export declare function triggerAnimation(animation: BuilderAnimation): void;
|
|
4
|
-
export declare function bindHoverAnimation(animation: BuilderAnimation): void;
|
|
5
5
|
export declare function bindScrollInViewAnimation(animation: BuilderAnimation): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.22";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Search } from '../helpers/search/search';
|
|
2
|
-
export declare function isPreviewing(
|
|
2
|
+
export declare function isPreviewing(_search?: Search): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { h as s, T as c, i, j as l } from "./index-eF57HLR1.js";
|
|
2
|
+
const u = (e) => `v-on:${e.toLowerCase()}`, f = (e, t) => (r) => s({
|
|
3
3
|
code: e,
|
|
4
4
|
context: t.context,
|
|
5
5
|
localState: t.localState,
|
|
@@ -15,7 +15,7 @@ function S(e) {
|
|
|
15
15
|
if (!r.hasOwnProperty(a))
|
|
16
16
|
continue;
|
|
17
17
|
const n = r[a];
|
|
18
|
-
let o =
|
|
18
|
+
let o = u(a);
|
|
19
19
|
if (e.stripPrefix)
|
|
20
20
|
switch (c) {
|
|
21
21
|
case "vue":
|
|
@@ -25,7 +25,7 @@ function S(e) {
|
|
|
25
25
|
o = o.replace("on:", "");
|
|
26
26
|
break;
|
|
27
27
|
}
|
|
28
|
-
t[o] =
|
|
28
|
+
t[o] = f(n, e);
|
|
29
29
|
}
|
|
30
30
|
return t;
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-my4sBiPM.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,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:a.getStyle({block:e,context:t}),[a.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;
|
|
@@ -143,7 +143,8 @@ function isIframe() {
|
|
|
143
143
|
return isBrowser() && window.self !== window.top;
|
|
144
144
|
}
|
|
145
145
|
function isEditing(e) {
|
|
146
|
-
return isIframe() &&
|
|
146
|
+
return isIframe() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
147
|
+
getSearchString(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
147
148
|
}
|
|
148
149
|
const getLocation = () => {
|
|
149
150
|
if (isBrowser()) {
|
|
@@ -523,9 +524,6 @@ function bindAnimations(e) {
|
|
|
523
524
|
case "pageLoad":
|
|
524
525
|
triggerAnimation(t);
|
|
525
526
|
break;
|
|
526
|
-
case "hover":
|
|
527
|
-
bindHoverAnimation(t);
|
|
528
|
-
break;
|
|
529
527
|
case "scrollInView":
|
|
530
528
|
bindScrollInViewAnimation(t);
|
|
531
529
|
break;
|
|
@@ -561,26 +559,6 @@ function triggerAnimation(e) {
|
|
|
561
559
|
});
|
|
562
560
|
});
|
|
563
561
|
}
|
|
564
|
-
function bindHoverAnimation(e) {
|
|
565
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
566
|
-
if (!t.length) {
|
|
567
|
-
warnElementNotPresent(e.elementId || e.id || "");
|
|
568
|
-
return;
|
|
569
|
-
}
|
|
570
|
-
Array.from(t).forEach((n) => {
|
|
571
|
-
augmentAnimation(e, n);
|
|
572
|
-
const o = e.steps[0].styles, r = e.steps[1].styles;
|
|
573
|
-
function s() {
|
|
574
|
-
assign(n.style, o);
|
|
575
|
-
}
|
|
576
|
-
function i() {
|
|
577
|
-
assign(n.style, r);
|
|
578
|
-
}
|
|
579
|
-
s(), n.addEventListener("mouseenter", i), n.addEventListener("mouseleave", s), setTimeout(() => {
|
|
580
|
-
n.style.transition = `all ${e.duration}s ${camelCaseToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
581
|
-
});
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
562
|
function bindScrollInViewAnimation(e) {
|
|
585
563
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
586
564
|
if (!t.length) {
|
|
@@ -714,22 +692,22 @@ const getComponent = ({
|
|
|
714
692
|
},
|
|
715
693
|
block: o
|
|
716
694
|
}));
|
|
717
|
-
}, BlockStyles = () => import("./block-styles-
|
|
695
|
+
}, BlockStyles = () => import("./block-styles-_OMTv9sJ.js").then((e) => e.default).catch((e) => {
|
|
718
696
|
throw console.error(
|
|
719
697
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
720
698
|
e
|
|
721
699
|
), e;
|
|
722
|
-
}), BlockWrapper = () => import("./block-wrapper
|
|
700
|
+
}), BlockWrapper = () => import("./block-wrapper-WFhgV7rM.js").then((e) => e.default).catch((e) => {
|
|
723
701
|
throw console.error(
|
|
724
702
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
725
703
|
e
|
|
726
704
|
), e;
|
|
727
|
-
}), ComponentRef = () => import("./component-ref-
|
|
705
|
+
}), ComponentRef = () => import("./component-ref-CnP6F8zd.js").then((e) => e.default).catch((e) => {
|
|
728
706
|
throw console.error(
|
|
729
707
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
730
708
|
e
|
|
731
709
|
), e;
|
|
732
|
-
}), RepeatedBlock = () => import("./repeated-block-
|
|
710
|
+
}), RepeatedBlock = () => import("./repeated-block-uRrCR8KR.js").then((e) => e.default).catch((e) => {
|
|
733
711
|
throw console.error(
|
|
734
712
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
735
713
|
e
|
|
@@ -746,7 +724,7 @@ const getComponent = ({
|
|
|
746
724
|
mounted() {
|
|
747
725
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
748
726
|
t && e && bindAnimations(
|
|
749
|
-
t.
|
|
727
|
+
t.map((n) => ({
|
|
750
728
|
...n,
|
|
751
729
|
elementId: e
|
|
752
730
|
}))
|
|
@@ -3255,10 +3233,8 @@ async function fetchEntries(e) {
|
|
|
3255
3233
|
}
|
|
3256
3234
|
}
|
|
3257
3235
|
function isPreviewing(e) {
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
const t = getSearchString(e || window.location.search);
|
|
3261
|
-
return isEditing(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
3236
|
+
const t = e || (isBrowser() ? window.location.search : void 0);
|
|
3237
|
+
return t ? getSearchString(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3262
3238
|
}
|
|
3263
3239
|
function uuidv4() {
|
|
3264
3240
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
@@ -3449,7 +3425,7 @@ function isFromTrustedHost(e, t) {
|
|
|
3449
3425
|
const n = new URL(t.origin), o = n.hostname;
|
|
3450
3426
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3451
3427
|
}
|
|
3452
|
-
const SDK_VERSION = "1.0.
|
|
3428
|
+
const SDK_VERSION = "1.0.22", registry = {};
|
|
3453
3429
|
function register(e, t) {
|
|
3454
3430
|
let n = registry[e];
|
|
3455
3431
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -3645,7 +3621,7 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
3645
3621
|
variationId: s !== i ? s : void 0
|
|
3646
3622
|
});
|
|
3647
3623
|
}
|
|
3648
|
-
isPreviewing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
3624
|
+
isPreviewing() && !isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
3649
3625
|
new CustomEvent("initpreviewingbldr")
|
|
3650
3626
|
);
|
|
3651
3627
|
}
|
|
@@ -4426,13 +4402,14 @@ const fetchBuilderProps = async (e) => {
|
|
|
4426
4402
|
};
|
|
4427
4403
|
};
|
|
4428
4404
|
export {
|
|
4429
|
-
|
|
4405
|
+
_processContentResult as A,
|
|
4430
4406
|
Block as B,
|
|
4431
4407
|
Columns as C,
|
|
4432
|
-
|
|
4433
|
-
|
|
4408
|
+
fetchEntries as D,
|
|
4409
|
+
fetchOneEntry as E,
|
|
4434
4410
|
Fragment as F,
|
|
4435
|
-
|
|
4411
|
+
dynamicRenderer as G,
|
|
4412
|
+
block as H,
|
|
4436
4413
|
Image as I,
|
|
4437
4414
|
Section as S,
|
|
4438
4415
|
TARGET as T,
|
|
@@ -4442,26 +4419,26 @@ export {
|
|
|
4442
4419
|
createCssClass as b,
|
|
4443
4420
|
checkIsDefined as c,
|
|
4444
4421
|
getMaxWidthQueryForSize as d,
|
|
4445
|
-
|
|
4446
|
-
|
|
4422
|
+
camelCaseToKebabCase as e,
|
|
4423
|
+
_export_sfc as f,
|
|
4447
4424
|
getProcessedBlock as g,
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4425
|
+
evaluate as h,
|
|
4426
|
+
getStyle as i,
|
|
4427
|
+
getClassPropName as j,
|
|
4428
|
+
BuilderContext as k,
|
|
4429
|
+
Button as l,
|
|
4430
|
+
Symbol$1 as m,
|
|
4431
|
+
Text as n,
|
|
4432
|
+
Blocks as o,
|
|
4433
|
+
ContentVariants as p,
|
|
4434
|
+
isEditing as q,
|
|
4435
|
+
isPreviewing as r,
|
|
4436
|
+
createRegisterComponentMessage as s,
|
|
4437
|
+
register as t,
|
|
4438
|
+
setEditorSettings as u,
|
|
4439
|
+
getBuilderSearchParams as v,
|
|
4463
4440
|
wrapComponentRef as w,
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4441
|
+
track as x,
|
|
4442
|
+
subscribeToEditor as y,
|
|
4443
|
+
fetchBuilderProps as z
|
|
4467
4444
|
};
|