@builder.io/sdk-vue 1.0.21 → 1.0.23
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-dCtjVM33.js +87 -0
- package/lib/browser/block-styles-vJjDjr-p.cjs +1 -0
- package/lib/browser/{block-wrapper-mlbE709c.cjs → block-wrapper--ZdEHV8w.cjs} +1 -1
- package/lib/browser/{block-wrapper-a1zxMruE.js → block-wrapper-JRsL0Mr2.js} +3 -3
- package/lib/browser/{component-ref-5K3RMLKh.js → component-ref-IfYzvEjh.js} +2 -2
- package/lib/browser/{component-ref-mNbBuzhy.cjs → component-ref-YU4cmBVZ.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-4MopDiTP.js → get-block-properties-U49zKnMK.js} +6 -6
- package/lib/browser/{get-block-properties-PuGrG7pm.cjs → get-block-properties-qdvSfWjS.cjs} +1 -1
- package/lib/browser/{index-mwZzSIN7.js → index-T89gD77O.js} +426 -451
- package/lib/browser/{index-OSGu6alT.cjs → index-YYfrLt1V.cjs} +19 -19
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +3 -3
- package/lib/browser/{repeated-block-VP4euR8a.cjs → repeated-block-GnmpQPxE.cjs} +1 -1
- package/lib/browser/{repeated-block-hUFMTXXS.js → repeated-block-oYGHWwW3.js} +2 -2
- package/lib/edge/block-styles-9nbFFeOH.cjs +1 -0
- package/lib/edge/block-styles-nidJqmvF.js +86 -0
- package/lib/edge/{block-wrapper-xgShkhuq.js → block-wrapper-7WuameoR.js} +3 -3
- package/lib/{node/block-wrapper-bGeMckW5.cjs → edge/block-wrapper-OitVCHV4.cjs} +1 -1
- package/lib/{node/component-ref-YhLendyR.cjs → edge/component-ref-Z3GxM6cH.cjs} +1 -1
- package/lib/{node/component-ref-PGVczQrW.js → edge/component-ref-fkgFjHYh.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/edge/{get-block-properties-v6bf_R5d.cjs → get-block-properties-hpLeBYvo.cjs} +1 -1
- package/lib/{node/get-block-properties-kAmm-X1q.js → edge/get-block-properties-uUwzuzd6.js} +4 -4
- package/lib/edge/{index-xnWjf2tW.cjs → index-CKoC6tWI.cjs} +27 -27
- package/lib/edge/{index-Ua4OW_gh.js → index-hIX7Gefu.js} +681 -706
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +4 -4
- package/lib/edge/{repeated-block-qRyqdxjD.cjs → repeated-block-TT5biOEz.cjs} +1 -1
- package/lib/{node/repeated-block-tjhtQDPA.js → edge/repeated-block-otH5LpjC.js} +13 -13
- package/lib/node/block-styles-4KxeWlDy.cjs +1 -0
- package/lib/node/block-styles-FYc9WmuJ.js +86 -0
- package/lib/node/{block-wrapper--vej-Ae6.js → block-wrapper-NWQoMvJs.js} +3 -3
- package/lib/{edge/block-wrapper-4RaFHsBw.cjs → node/block-wrapper-a_fu1ViB.cjs} +1 -1
- package/lib/{edge/component-ref-KD6yANwg.cjs → node/component-ref-jllHNOll.cjs} +1 -1
- package/lib/{edge/component-ref-kGbDg8GR.js → node/component-ref-jqz9fyL1.js} +2 -2
- 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/node/{get-block-properties-GTVEiEYp.cjs → get-block-properties-DnPEkmGq.cjs} +1 -1
- package/lib/{edge/get-block-properties-yFfbPH85.js → node/get-block-properties-ddOPipN4.js} +4 -4
- package/lib/node/{index-mnDtU0q8.js → index-Bc6eCrlT.js} +37 -62
- package/lib/node/{index-XIqTnRyC.cjs → index-ixVpFh79.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-W2kKB7D3.cjs} +1 -1
- package/lib/{edge/repeated-block-uiPuS74Z.js → node/repeated-block-sdoj-hCY.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-CKoC6tWI.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-hIX7Gefu.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-CKoC6tWI.cjs"),r=()=>Promise.resolve().then(()=>require("./index-CKoC6tWI.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-hIX7Gefu.js";
|
|
3
|
+
const i = () => import("./index-hIX7Gefu.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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),e=require("./index-ixVpFh79.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;
|
|
@@ -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-Bc6eCrlT.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
|
+
};
|
|
@@ -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-ddOPipN4.js";
|
|
3
|
+
import { f as m } from "./index-Bc6eCrlT.js";
|
|
4
|
+
const d = () => import("./index-Bc6eCrlT.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-DnPEkmGq.cjs"),n=require("./index-ixVpFh79.cjs"),c=()=>Promise.resolve().then(()=>require("./index-ixVpFh79.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 +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-ixVpFh79.cjs"),a=require("./get-block-properties-DnPEkmGq.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,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-Bc6eCrlT.js";
|
|
3
|
+
import { g as R, a as b } from "./get-block-properties-ddOPipN4.js";
|
|
4
4
|
const I = m({
|
|
5
5
|
name: "interactive-element",
|
|
6
6
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -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.23";
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-ixVpFh79.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { h as s, T as c, i, j as l } from "./index-Bc6eCrlT.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
|
}
|
|
@@ -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()) {
|
|
@@ -409,10 +410,8 @@ function evaluate({
|
|
|
409
410
|
isExpression: i = !0,
|
|
410
411
|
enableCache: a
|
|
411
412
|
}) {
|
|
412
|
-
if (e === "")
|
|
413
|
-
logger.warn("Skipping evaluation of empty code block.");
|
|
413
|
+
if (e === "")
|
|
414
414
|
return;
|
|
415
|
-
}
|
|
416
415
|
const l = {
|
|
417
416
|
code: parseCode(e, {
|
|
418
417
|
isExpression: i
|
|
@@ -523,9 +522,6 @@ function bindAnimations(e) {
|
|
|
523
522
|
case "pageLoad":
|
|
524
523
|
triggerAnimation(t);
|
|
525
524
|
break;
|
|
526
|
-
case "hover":
|
|
527
|
-
bindHoverAnimation(t);
|
|
528
|
-
break;
|
|
529
525
|
case "scrollInView":
|
|
530
526
|
bindScrollInViewAnimation(t);
|
|
531
527
|
break;
|
|
@@ -561,26 +557,6 @@ function triggerAnimation(e) {
|
|
|
561
557
|
});
|
|
562
558
|
});
|
|
563
559
|
}
|
|
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
560
|
function bindScrollInViewAnimation(e) {
|
|
585
561
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
586
562
|
if (!t.length) {
|
|
@@ -714,22 +690,22 @@ const getComponent = ({
|
|
|
714
690
|
},
|
|
715
691
|
block: o
|
|
716
692
|
}));
|
|
717
|
-
}, BlockStyles = () => import("./block-styles-
|
|
693
|
+
}, BlockStyles = () => import("./block-styles-FYc9WmuJ.js").then((e) => e.default).catch((e) => {
|
|
718
694
|
throw console.error(
|
|
719
695
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
720
696
|
e
|
|
721
697
|
), e;
|
|
722
|
-
}), BlockWrapper = () => import("./block-wrapper
|
|
698
|
+
}), BlockWrapper = () => import("./block-wrapper-NWQoMvJs.js").then((e) => e.default).catch((e) => {
|
|
723
699
|
throw console.error(
|
|
724
700
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
725
701
|
e
|
|
726
702
|
), e;
|
|
727
|
-
}), ComponentRef = () => import("./component-ref-
|
|
703
|
+
}), ComponentRef = () => import("./component-ref-jqz9fyL1.js").then((e) => e.default).catch((e) => {
|
|
728
704
|
throw console.error(
|
|
729
705
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
730
706
|
e
|
|
731
707
|
), e;
|
|
732
|
-
}), RepeatedBlock = () => import("./repeated-block-
|
|
708
|
+
}), RepeatedBlock = () => import("./repeated-block-sdoj-hCY.js").then((e) => e.default).catch((e) => {
|
|
733
709
|
throw console.error(
|
|
734
710
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
735
711
|
e
|
|
@@ -746,7 +722,7 @@ const getComponent = ({
|
|
|
746
722
|
mounted() {
|
|
747
723
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
748
724
|
t && e && bindAnimations(
|
|
749
|
-
t.
|
|
725
|
+
t.map((n) => ({
|
|
750
726
|
...n,
|
|
751
727
|
elementId: e
|
|
752
728
|
}))
|
|
@@ -3255,10 +3231,8 @@ async function fetchEntries(e) {
|
|
|
3255
3231
|
}
|
|
3256
3232
|
}
|
|
3257
3233
|
function isPreviewing(e) {
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
const t = getSearchString(e || window.location.search);
|
|
3261
|
-
return isEditing(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
3234
|
+
const t = e || (isBrowser() ? window.location.search : void 0);
|
|
3235
|
+
return t ? getSearchString(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3262
3236
|
}
|
|
3263
3237
|
function uuidv4() {
|
|
3264
3238
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
@@ -3449,7 +3423,7 @@ function isFromTrustedHost(e, t) {
|
|
|
3449
3423
|
const n = new URL(t.origin), o = n.hostname;
|
|
3450
3424
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3451
3425
|
}
|
|
3452
|
-
const SDK_VERSION = "1.0.
|
|
3426
|
+
const SDK_VERSION = "1.0.23", registry = {};
|
|
3453
3427
|
function register(e, t) {
|
|
3454
3428
|
let n = registry[e];
|
|
3455
3429
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -3645,7 +3619,7 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
3645
3619
|
variationId: s !== i ? s : void 0
|
|
3646
3620
|
});
|
|
3647
3621
|
}
|
|
3648
|
-
isPreviewing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
3622
|
+
isPreviewing() && !isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
3649
3623
|
new CustomEvent("initpreviewingbldr")
|
|
3650
3624
|
);
|
|
3651
3625
|
}
|
|
@@ -4426,13 +4400,14 @@ const fetchBuilderProps = async (e) => {
|
|
|
4426
4400
|
};
|
|
4427
4401
|
};
|
|
4428
4402
|
export {
|
|
4429
|
-
|
|
4403
|
+
_processContentResult as A,
|
|
4430
4404
|
Block as B,
|
|
4431
4405
|
Columns as C,
|
|
4432
|
-
|
|
4433
|
-
|
|
4406
|
+
fetchEntries as D,
|
|
4407
|
+
fetchOneEntry as E,
|
|
4434
4408
|
Fragment as F,
|
|
4435
|
-
|
|
4409
|
+
dynamicRenderer as G,
|
|
4410
|
+
block as H,
|
|
4436
4411
|
Image as I,
|
|
4437
4412
|
Section as S,
|
|
4438
4413
|
TARGET as T,
|
|
@@ -4442,26 +4417,26 @@ export {
|
|
|
4442
4417
|
createCssClass as b,
|
|
4443
4418
|
checkIsDefined as c,
|
|
4444
4419
|
getMaxWidthQueryForSize as d,
|
|
4445
|
-
|
|
4446
|
-
|
|
4420
|
+
camelCaseToKebabCase as e,
|
|
4421
|
+
_export_sfc as f,
|
|
4447
4422
|
getProcessedBlock as g,
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4423
|
+
evaluate as h,
|
|
4424
|
+
getStyle as i,
|
|
4425
|
+
getClassPropName as j,
|
|
4426
|
+
BuilderContext as k,
|
|
4427
|
+
Button as l,
|
|
4428
|
+
Symbol$1 as m,
|
|
4429
|
+
Text as n,
|
|
4430
|
+
Blocks as o,
|
|
4431
|
+
ContentVariants as p,
|
|
4432
|
+
isEditing as q,
|
|
4433
|
+
isPreviewing as r,
|
|
4434
|
+
createRegisterComponentMessage as s,
|
|
4435
|
+
register as t,
|
|
4436
|
+
setEditorSettings as u,
|
|
4437
|
+
getBuilderSearchParams as v,
|
|
4463
4438
|
wrapComponentRef as w,
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4439
|
+
track as x,
|
|
4440
|
+
subscribeToEditor as y,
|
|
4441
|
+
fetchBuilderProps as z
|
|
4467
4442
|
};
|