@builder.io/sdk-react-nextjs 0.17.3 → 0.17.7
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/blocks/columns/columns.cjs +2 -2
- package/lib/browser/blocks/columns/columns.mjs +6 -6
- package/lib/browser/blocks/image/image.cjs +3 -3
- package/lib/browser/blocks/image/image.mjs +22 -24
- package/lib/browser/blocks/video/video.cjs +1 -1
- package/lib/browser/blocks/video/video.mjs +0 -1
- package/lib/browser/blocks-exports.cjs +1 -1
- package/lib/browser/blocks-exports.mjs +14 -12
- package/lib/browser/components/blocks/blocks-wrapper.cjs +2 -2
- package/lib/browser/components/blocks/blocks-wrapper.mjs +13 -13
- package/lib/browser/constants/sdk-version.cjs +1 -1
- package/lib/browser/constants/sdk-version.mjs +1 -1
- package/lib/browser/helpers/canTrack.cjs +1 -1
- package/lib/browser/helpers/canTrack.mjs +7 -3
- package/lib/browser/helpers/user-attributes.cjs +1 -0
- package/lib/browser/helpers/user-attributes.mjs +45 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +32 -30
- package/lib/browser/scripts/init-editing.cjs +1 -1
- package/lib/browser/scripts/init-editing.mjs +12 -11
- package/lib/edge/blocks/columns/columns.cjs +2 -2
- package/lib/edge/blocks/columns/columns.mjs +6 -6
- package/lib/edge/blocks/image/image.cjs +3 -3
- package/lib/edge/blocks/image/image.mjs +22 -24
- package/lib/edge/blocks/video/video.cjs +1 -1
- package/lib/edge/blocks/video/video.mjs +0 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +14 -12
- package/lib/edge/components/blocks/blocks-wrapper.cjs +2 -2
- package/lib/edge/components/blocks/blocks-wrapper.mjs +13 -13
- package/lib/edge/constants/sdk-version.cjs +1 -1
- package/lib/edge/constants/sdk-version.mjs +1 -1
- package/lib/edge/helpers/canTrack.cjs +1 -1
- package/lib/edge/helpers/canTrack.mjs +7 -3
- package/lib/edge/helpers/user-attributes.cjs +1 -0
- package/lib/edge/helpers/user-attributes.mjs +45 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +32 -30
- package/lib/edge/scripts/init-editing.cjs +1 -1
- package/lib/edge/scripts/init-editing.mjs +12 -11
- package/lib/node/blocks/columns/columns.cjs +2 -2
- package/lib/node/blocks/columns/columns.mjs +6 -6
- package/lib/node/blocks/image/image.cjs +3 -3
- package/lib/node/blocks/image/image.mjs +22 -24
- package/lib/node/blocks/video/video.cjs +1 -1
- package/lib/node/blocks/video/video.mjs +0 -1
- package/lib/node/blocks-exports.cjs +1 -1
- package/lib/node/blocks-exports.mjs +14 -12
- package/lib/node/components/blocks/blocks-wrapper.cjs +2 -2
- package/lib/node/components/blocks/blocks-wrapper.mjs +13 -13
- package/lib/node/constants/sdk-version.cjs +1 -1
- package/lib/node/constants/sdk-version.mjs +1 -1
- package/lib/node/helpers/canTrack.cjs +1 -1
- package/lib/node/helpers/canTrack.mjs +7 -3
- package/lib/node/helpers/user-attributes.cjs +1 -0
- package/lib/node/helpers/user-attributes.mjs +45 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +32 -30
- package/lib/node/scripts/init-editing.cjs +1 -1
- package/lib/node/scripts/init-editing.mjs +12 -11
- package/package.json +2 -2
- package/types/cjs/blocks/form/form/form.d.ts +1 -0
- package/types/cjs/blocks/personalization-container/component-info.d.ts +2 -0
- package/types/cjs/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
- package/types/cjs/blocks/personalization-container/helpers.d.ts +27 -0
- package/types/cjs/blocks/personalization-container/index.d.ts +1 -0
- package/types/cjs/blocks/personalization-container/personalization-container.d.ts +4 -0
- package/types/cjs/blocks/personalization-container/personalization-container.types.d.ts +14 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/helpers/user-attributes.d.ts +17 -0
- package/types/cjs/index-helpers/blocks-exports.d.ts +1 -0
- package/types/cjs/types/components.d.ts +2 -2
- package/types/cjs/types/input.d.ts +1 -0
- package/types/esm/blocks/form/form/form.d.ts +1 -0
- package/types/esm/blocks/personalization-container/component-info.d.ts +2 -0
- package/types/esm/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
- package/types/esm/blocks/personalization-container/helpers.d.ts +27 -0
- package/types/esm/blocks/personalization-container/index.d.ts +1 -0
- package/types/esm/blocks/personalization-container/personalization-container.d.ts +4 -0
- package/types/esm/blocks/personalization-container/personalization-container.types.d.ts +14 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/helpers/user-attributes.d.ts +17 -0
- package/types/esm/index-helpers/blocks-exports.d.ts +1 -0
- package/types/esm/types/components.d.ts +2 -2
- package/types/esm/types/input.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),W=require("../../components/blocks/blocks.cjs"),j=require("../../components/dynamic-renderer/dynamic-renderer.cjs"),q=require("../../components/inlined-styles.cjs"),z=require("../../constants/device-sizes.cjs"),B=require("../../functions/get-class-prop-name.cjs"),p=require("../../functions/get-style.cjs"),A=require("./helpers.cjs");function N(e){var g
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),W=require("../../components/blocks/blocks.cjs"),j=require("../../components/dynamic-renderer/dynamic-renderer.cjs"),q=require("../../components/inlined-styles.cjs"),z=require("../../constants/device-sizes.cjs"),B=require("../../functions/get-class-prop-name.cjs"),p=require("../../functions/get-style.cjs"),A=require("./helpers.cjs");function N(e){var f,g;const a=function(){return typeof e.space=="number"?e.space||0:20},s=function(){return e.columns||[]},u=function(){return e.stackColumnsAt||"tablet"},y=function(t){return t.link?e.builderLinkComponent||"a":"div"},S=function(t){var i;return((i=s()[t])==null?void 0:i.width)||100/s().length},x=function(t){const i=S(t),l=a()*(s().length-1)*(i/100);return`calc(${i}% - ${l}px)`},c=function({stackedStyle:t,desktopStyle:i}){return u()==="tablet"?t:i},m=function({stackedStyle:t,desktopStyle:i}){return u()==="never"?i:t},d=function(){return e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column"},C=function(){return{"--flex-dir":d(),"--flex-dir-tablet":c({stackedStyle:d(),desktopStyle:"row"})}},v=function(t){const i=t===0?0:a(),l=x(t),r=`${i}px`,k="100%",h=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:l,["marginLeft"]:r,"--column-width-mobile":m({stackedStyle:k,desktopStyle:l}),"--column-margin-left-mobile":m({stackedStyle:h,desktopStyle:r}),"--column-width-tablet":c({stackedStyle:k,desktopStyle:l}),"--column-margin-left-tablet":c({stackedStyle:h,desktopStyle:r})}},b=function(t){var l,r;return z.getSizesForBreakpoints(((r=(l=e.builderContext.content)==null?void 0:l.meta)==null?void 0:r.breakpoints)||{})[t].max},w=function(){const t=`.${e.builderBlock.id}-breakpoints > .builder-column`;return`
|
|
2
2
|
@media (max-width: ${b("medium")}px) {
|
|
3
3
|
.${e.builderBlock.id}-breakpoints {
|
|
4
4
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
`},$=function(t,i){return{...t.link?{href:t.link}:{},[B.getClassPropName()]:"builder-column",style:p.mapStyleObjToStrIfNeeded(v(i))}};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:A.getColumnsClass((
|
|
25
|
+
`},$=function(t,i){return{...t.link?{href:t.link}:{},[B.getClassPropName()]:"builder-column",style:p.mapStyleObjToStrIfNeeded(v(i))}};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:A.getColumnsClass((f=e.builderBlock)==null?void 0:f.id)+" div-1aff548e",style:C(),children:[o.jsx(q,{id:"builderio-columns",styles:w(),nonce:e.builderContext.nonce}),(g=e.columns)==null?void 0:g.map((n,t)=>o.jsx(j,{TagName:y(n),actionAttributes:{},attributes:$(n,t),children:o.jsx(W,{path:`columns.${t}.blocks`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:n.blocks,styleProp:{flexGrow:"1"}})},t))]}),o.jsx("style",{children:`.div-1aff548e {
|
|
26
26
|
display: flex;
|
|
27
27
|
line-height: normal;
|
|
28
28
|
}`})]})}module.exports=N;
|
|
@@ -114,7 +114,7 @@ function q(e) {
|
|
|
114
114
|
/* @__PURE__ */ y(
|
|
115
115
|
"div",
|
|
116
116
|
{
|
|
117
|
-
className: D((b = e.builderBlock) == null ? void 0 : b.id) + " div-
|
|
117
|
+
className: D((b = e.builderBlock) == null ? void 0 : b.id) + " div-1aff548e",
|
|
118
118
|
style: v(),
|
|
119
119
|
children: [
|
|
120
120
|
/* @__PURE__ */ r(
|
|
@@ -136,13 +136,13 @@ function q(e) {
|
|
|
136
136
|
{
|
|
137
137
|
path: `columns.${t}.blocks`,
|
|
138
138
|
parent: e.builderBlock.id,
|
|
139
|
-
styleProp: {
|
|
140
|
-
flexGrow: "1"
|
|
141
|
-
},
|
|
142
139
|
context: e.builderContext,
|
|
143
140
|
registeredComponents: e.builderComponents,
|
|
144
141
|
linkComponent: e.builderLinkComponent,
|
|
145
|
-
blocks: n.blocks
|
|
142
|
+
blocks: n.blocks,
|
|
143
|
+
styleProp: {
|
|
144
|
+
flexGrow: "1"
|
|
145
|
+
}
|
|
146
146
|
}
|
|
147
147
|
)
|
|
148
148
|
},
|
|
@@ -151,7 +151,7 @@ function q(e) {
|
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
|
-
/* @__PURE__ */ r("style", { children: `.div-
|
|
154
|
+
/* @__PURE__ */ r("style", { children: `.div-1aff548e {
|
|
155
155
|
display: flex;
|
|
156
156
|
line-height: normal;
|
|
157
157
|
}` })
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use client";"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";const t=require("react/jsx-runtime"),a=require("./image.helpers.cjs");function b(e){var s,r,u,o,d,g;function n(){var h;const i=e.image||e.src;if(!i||!(typeof i=="string"&&(i.match(/builder\.io/)||i.match(/cdn\.shopify\.com/))))return e.srcset;if(!e.noWebp){if(e.srcset&&((h=e.image)!=null&&h.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),a.getSrcSet(i)}else if(e.image&&!e.srcset)return a.getSrcSet(i);return a.getSrcSet(i)}}function l(){var c;return(c=n==null?void 0:n())!=null&&c.match(/builder\.io/)&&!e.noWebp?n().replace(/\?/g,"?format=webp&"):""}function m(){const c={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?c:void 0}return t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[l()?t.jsx("source",{type:"image/webp",srcSet:l()}):null,t.jsx("img",{loading:e.highPriority?"eager":"lazy",fetchPriority:e.highPriority?"high":"auto",alt:e.altText,role:e.altText?void 0:"presentation",style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...m()},className:"builder-image"+(e.className?" "+e.className:"")+" img-606b99a4",src:e.image,srcSet:n(),sizes:e.sizes})]}),e.aspectRatio&&!((r=(s=e.builderBlock)==null?void 0:s.children)!=null&&r.length&&e.fitContent)?t.jsx("div",{className:"builder-image-sizer div-606b99a4",style:{paddingTop:e.aspectRatio*100+"%"}}):null,(o=(u=e.builderBlock)==null?void 0:u.children)!=null&&o.length&&e.fitContent?t.jsx(t.Fragment,{children:e.children}):null,!e.fitContent&&((g=(d=e.builderBlock)==null?void 0:d.children)!=null&&g.length)?t.jsx("div",{className:"div-606b99a4-2",children:e.children}):null]}),t.jsx("style",{children:`.img-606b99a4 {
|
|
2
2
|
opacity: 1;
|
|
3
3
|
transition: opacity 0.2s ease-in-out;
|
|
4
|
-
}.div-
|
|
4
|
+
}.div-606b99a4 {
|
|
5
5
|
width: 100%;
|
|
6
6
|
pointer-events: none;
|
|
7
7
|
font-size: 0;
|
|
8
|
-
}.div-
|
|
8
|
+
}.div-606b99a4-2 {
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: stretch;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useEffect as v } from "react";
|
|
2
|
+
import { jsxs as a, Fragment as c, jsx as t } from "react/jsx-runtime";
|
|
4
3
|
import { getSrcSet as o } from "./image.helpers.mjs";
|
|
5
|
-
function
|
|
6
|
-
var d, s, u, g,
|
|
4
|
+
function x(e) {
|
|
5
|
+
var d, s, u, g, h, m;
|
|
7
6
|
function n() {
|
|
8
|
-
var
|
|
7
|
+
var b;
|
|
9
8
|
const i = e.image || e.src;
|
|
10
9
|
if (!i || // We can auto add srcset for cdn.builder.io and shopify
|
|
11
10
|
// images, otherwise you can supply this prop manually
|
|
12
11
|
!(typeof i == "string" && (i.match(/builder\.io/) || i.match(/cdn\.shopify\.com/))))
|
|
13
12
|
return e.srcset;
|
|
14
13
|
if (!e.noWebp) {
|
|
15
|
-
if (e.srcset && ((
|
|
14
|
+
if (e.srcset && ((b = e.image) != null && b.includes("builder.io/api/v1/image"))) {
|
|
16
15
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
17
16
|
return console.debug("Removed given srcset"), o(i);
|
|
18
17
|
} else if (e.image && !e.srcset)
|
|
@@ -21,23 +20,22 @@ function w(e) {
|
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
function r() {
|
|
24
|
-
var
|
|
25
|
-
return (
|
|
23
|
+
var l;
|
|
24
|
+
return (l = n == null ? void 0 : n()) != null && l.match(/builder\.io/) && !e.noWebp ? n().replace(/\?/g, "?format=webp&") : "";
|
|
26
25
|
}
|
|
27
|
-
function
|
|
28
|
-
const
|
|
26
|
+
function f() {
|
|
27
|
+
const l = {
|
|
29
28
|
position: "absolute",
|
|
30
29
|
height: "100%",
|
|
31
30
|
width: "100%",
|
|
32
31
|
left: "0px",
|
|
33
32
|
top: "0px"
|
|
34
33
|
};
|
|
35
|
-
return e.aspectRatio ?
|
|
34
|
+
return e.aspectRatio ? l : void 0;
|
|
36
35
|
}
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/* @__PURE__ */ l("picture", { children: [
|
|
36
|
+
return /* @__PURE__ */ a(c, { children: [
|
|
37
|
+
/* @__PURE__ */ a(c, { children: [
|
|
38
|
+
/* @__PURE__ */ a("picture", { children: [
|
|
41
39
|
r() ? /* @__PURE__ */ t("source", { type: "image/webp", srcSet: r() }) : null,
|
|
42
40
|
/* @__PURE__ */ t(
|
|
43
41
|
"img",
|
|
@@ -49,9 +47,9 @@ function w(e) {
|
|
|
49
47
|
style: {
|
|
50
48
|
objectPosition: e.backgroundPosition || "center",
|
|
51
49
|
objectFit: e.backgroundSize || "cover",
|
|
52
|
-
...
|
|
50
|
+
...f()
|
|
53
51
|
},
|
|
54
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
52
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-606b99a4",
|
|
55
53
|
src: e.image,
|
|
56
54
|
srcSet: n(),
|
|
57
55
|
sizes: e.sizes
|
|
@@ -61,23 +59,23 @@ function w(e) {
|
|
|
61
59
|
e.aspectRatio && !((s = (d = e.builderBlock) == null ? void 0 : d.children) != null && s.length && e.fitContent) ? /* @__PURE__ */ t(
|
|
62
60
|
"div",
|
|
63
61
|
{
|
|
64
|
-
className: "builder-image-sizer div-
|
|
62
|
+
className: "builder-image-sizer div-606b99a4",
|
|
65
63
|
style: {
|
|
66
64
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
) : null,
|
|
70
|
-
(g = (u = e.builderBlock) == null ? void 0 : u.children) != null && g.length && e.fitContent ? /* @__PURE__ */ t(
|
|
71
|
-
!e.fitContent && ((
|
|
68
|
+
(g = (u = e.builderBlock) == null ? void 0 : u.children) != null && g.length && e.fitContent ? /* @__PURE__ */ t(c, { children: e.children }) : null,
|
|
69
|
+
!e.fitContent && ((m = (h = e.builderBlock) == null ? void 0 : h.children) != null && m.length) ? /* @__PURE__ */ t("div", { className: "div-606b99a4-2", children: e.children }) : null
|
|
72
70
|
] }),
|
|
73
|
-
/* @__PURE__ */ t("style", { children: `.img-
|
|
71
|
+
/* @__PURE__ */ t("style", { children: `.img-606b99a4 {
|
|
74
72
|
opacity: 1;
|
|
75
73
|
transition: opacity 0.2s ease-in-out;
|
|
76
|
-
}.div-
|
|
74
|
+
}.div-606b99a4 {
|
|
77
75
|
width: 100%;
|
|
78
76
|
pointer-events: none;
|
|
79
77
|
font-size: 0;
|
|
80
|
-
}.div-
|
|
78
|
+
}.div-606b99a4-2 {
|
|
81
79
|
display: flex;
|
|
82
80
|
flex-direction: column;
|
|
83
81
|
align-items: stretch;
|
|
@@ -90,5 +88,5 @@ function w(e) {
|
|
|
90
88
|
] });
|
|
91
89
|
}
|
|
92
90
|
export {
|
|
93
|
-
|
|
91
|
+
x as default
|
|
94
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const t=require("react/jsx-runtime");function s(e){var i,l,n,o,d,u,c;function a(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function r(){return{...a()}}return t.jsxs("div",{style:{position:"relative"},children:[t.jsx("video",{className:"builder-video",...r(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(i=e.attributes)==null?void 0:i.style,objectFit:e.fit,objectPosition:e.position,
|
|
1
|
+
"use client";"use strict";const t=require("react/jsx-runtime");function s(e){var i,l,n,o,d,u,c;function a(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function r(){return{...a()}}return t.jsxs("div",{style:{position:"relative"},children:[t.jsx("video",{className:"builder-video",...r(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(i=e.attributes)==null?void 0:i.style,objectFit:e.fit,objectPosition:e.position,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:t.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((n=(l=e.builderBlock)==null?void 0:l.children)!=null&&n.length))?t.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}}):null,(d=(o=e.builderBlock)==null?void 0:o.children)!=null&&d.length&&e.fitContent?t.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children}):null,(c=(u=e.builderBlock)==null?void 0:u.children)!=null&&c.length&&!e.fitContent?t.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children}):null]})}module.exports=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./blocks/button/button.cjs"),t=require("./blocks/columns/columns.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./blocks/button/button.cjs"),t=require("./blocks/columns/columns.cjs"),r=require("./blocks/fragment/fragment.cjs"),o=require("./blocks/image/image.cjs"),n=require("./blocks/section/section.cjs"),s=require("./blocks/symbol/symbol.cjs"),i=require("./blocks/text/text.cjs"),u=require("./blocks/video/video.cjs"),c=require("./components/blocks/blocks.cjs"),l=require("./components/content-variants/content-variants.cjs"),q=require("./context/builder.context.cjs"),b=require("./helpers/user-attributes.cjs");exports.Button=e;exports.Columns=t;exports.Fragment=r;exports.Image=o;exports.Section=n;exports.Symbol=s;exports.Text=i;exports.Video=u;exports.Blocks=c;exports.Content=l;exports.BuilderContext=q;exports.setClientUserAttributes=b.setClientUserAttributes;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { default as o } from "./blocks/button/button.mjs";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as a } from "./blocks/columns/columns.mjs";
|
|
3
3
|
import { default as l } from "./blocks/fragment/fragment.mjs";
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
4
|
+
import { default as s } from "./blocks/image/image.mjs";
|
|
5
|
+
import { default as x } from "./blocks/section/section.mjs";
|
|
6
6
|
import { default as p } from "./blocks/symbol/symbol.mjs";
|
|
7
7
|
import { default as i } from "./blocks/text/text.mjs";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
8
|
+
import { default as B } from "./blocks/video/video.mjs";
|
|
9
|
+
import { default as c } from "./components/blocks/blocks.mjs";
|
|
10
|
+
import { default as S } from "./components/content-variants/content-variants.mjs";
|
|
11
11
|
import { default as y } from "./context/builder.context.mjs";
|
|
12
|
+
import { setClientUserAttributes as F } from "./helpers/user-attributes.mjs";
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
c as Blocks,
|
|
14
15
|
y as BuilderContext,
|
|
15
16
|
o as Button,
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
a as Columns,
|
|
18
|
+
S as Content,
|
|
18
19
|
l as Fragment,
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
s as Image,
|
|
21
|
+
x as Section,
|
|
21
22
|
p as Symbol,
|
|
22
23
|
i as Text,
|
|
23
|
-
|
|
24
|
+
B as Video,
|
|
25
|
+
F as setClientUserAttributes
|
|
24
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use client";"use strict";const i=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";const i=require("react/jsx-runtime"),r=require("react"),l=require("../../functions/is-editing.cjs");function u(e){const c=r.useRef(null);function o(){var t;return["builder-blocks",(t=e.blocks)!=null&&t.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function a(){if(!e.path)return;const t="this.",n="component.options.";return e.path.startsWith(t)?e.path.replace(t,""):e.path.startsWith(n)?e.path:`${n}${e.path||""}`}function s(){var t,n;l.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:a()}},"*"))}function d(){var t,n;l.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:a()}},"*"))}return r.useEffect(()=>{},[]),i.jsxs(i.Fragment,{children:[i.jsx(e.BlocksWrapper,{ref:c,className:o()+" props-blocks-wrapper-78b0d3be","builder-path":a(),"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>s(),onMouseEnter:t=>d(),onKeyPress:t=>s(),...e.BlocksWrapperProps,children:e.children}),i.jsx("style",{children:`.props-blocks-wrapper-78b0d3be {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: stretch;
|
|
5
|
-
}`})]})}module.exports=
|
|
5
|
+
}`})]})}module.exports=u;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as d, Fragment as
|
|
3
|
-
import { useRef as f, useEffect as
|
|
2
|
+
import { jsxs as d, Fragment as h, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as f, useEffect as u } from "react";
|
|
4
4
|
import { isEditing as i } from "../../functions/is-editing.mjs";
|
|
5
|
-
function
|
|
5
|
+
function k(e) {
|
|
6
6
|
const o = f(null);
|
|
7
|
-
function
|
|
7
|
+
function s() {
|
|
8
8
|
var t;
|
|
9
9
|
return [
|
|
10
10
|
"builder-blocks",
|
|
@@ -15,8 +15,8 @@ function b(e) {
|
|
|
15
15
|
function a() {
|
|
16
16
|
if (!e.path)
|
|
17
17
|
return;
|
|
18
|
-
const t = "component.options.";
|
|
19
|
-
return e.path.startsWith(t) ? e.path : `${
|
|
18
|
+
const t = "this.", n = "component.options.";
|
|
19
|
+
return e.path.startsWith(t) ? e.path.replace(t, "") : e.path.startsWith(n) ? e.path : `${n}${e.path || ""}`;
|
|
20
20
|
}
|
|
21
21
|
function l() {
|
|
22
22
|
var t, n;
|
|
@@ -31,7 +31,7 @@ function b(e) {
|
|
|
31
31
|
"*"
|
|
32
32
|
));
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function c() {
|
|
35
35
|
var t, n;
|
|
36
36
|
i() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
|
|
37
37
|
{
|
|
@@ -44,24 +44,24 @@ function b(e) {
|
|
|
44
44
|
"*"
|
|
45
45
|
));
|
|
46
46
|
}
|
|
47
|
-
return
|
|
48
|
-
}, []), /* @__PURE__ */ d(
|
|
47
|
+
return u(() => {
|
|
48
|
+
}, []), /* @__PURE__ */ d(h, { children: [
|
|
49
49
|
/* @__PURE__ */ r(
|
|
50
50
|
e.BlocksWrapper,
|
|
51
51
|
{
|
|
52
52
|
ref: o,
|
|
53
|
-
className:
|
|
53
|
+
className: s() + " props-blocks-wrapper-78b0d3be",
|
|
54
54
|
"builder-path": a(),
|
|
55
55
|
"builder-parent-id": e.parent,
|
|
56
56
|
style: e.styleProp,
|
|
57
57
|
onClick: (t) => l(),
|
|
58
|
-
onMouseEnter: (t) =>
|
|
58
|
+
onMouseEnter: (t) => c(),
|
|
59
59
|
onKeyPress: (t) => l(),
|
|
60
60
|
...e.BlocksWrapperProps,
|
|
61
61
|
children: e.children
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
/* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-
|
|
64
|
+
/* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-78b0d3be {
|
|
65
65
|
display: flex;
|
|
66
66
|
flex-direction: column;
|
|
67
67
|
align-items: stretch;
|
|
@@ -69,5 +69,5 @@ function b(e) {
|
|
|
69
69
|
] });
|
|
70
70
|
}
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
k as default
|
|
73
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.17.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.17.7";exports.SDK_VERSION=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./nullable.cjs"),u=require("./user-attributes.cjs"),s=e=>{const t=r.checkIsDefined(e)?e:!0;return u.userAttributesService.setCanTrack(t),t};exports.getDefaultCanTrack=s;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { checkIsDefined as
|
|
2
|
-
|
|
1
|
+
import { checkIsDefined as r } from "./nullable.mjs";
|
|
2
|
+
import { userAttributesService as o } from "./user-attributes.mjs";
|
|
3
|
+
const c = (e) => {
|
|
4
|
+
const t = r(e) ? e : !0;
|
|
5
|
+
return o.setCanTrack(t), t;
|
|
6
|
+
};
|
|
3
7
|
export {
|
|
4
|
-
|
|
8
|
+
c as getDefaultCanTrack
|
|
5
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../functions/is-browser.cjs"),n=require("./cookie.cjs"),s="builder.userAttributes";function c(){let t=!0;const r=new Set;return{setUserAttributes(e){if(!u.isBrowser())return;const i={...this.getUserAttributes(),...e};n.setCookie({name:s,value:JSON.stringify(i),canTrack:t}),r.forEach(b=>b(i))},getUserAttributes(){return u.isBrowser()?JSON.parse(n.getCookieSync({name:s,canTrack:t})||"{}"):{}},subscribeOnUserAttributesChange(e){return r.add(e),()=>{r.delete(e)}},setCanTrack(e){t=e}}}const o=c(),A=t=>{o.setUserAttributes(t)};exports.USER_ATTRIBUTES_COOKIE_NAME=s;exports.createUserAttributesService=c;exports.setClientUserAttributes=A;exports.userAttributesService=o;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { isBrowser as i } from "../functions/is-browser.mjs";
|
|
2
|
+
import { setCookie as o, getCookieSync as b } from "./cookie.mjs";
|
|
3
|
+
const u = "builder.userAttributes";
|
|
4
|
+
function c() {
|
|
5
|
+
let e = !0;
|
|
6
|
+
const r = /* @__PURE__ */ new Set();
|
|
7
|
+
return {
|
|
8
|
+
setUserAttributes(t) {
|
|
9
|
+
if (!i())
|
|
10
|
+
return;
|
|
11
|
+
const s = {
|
|
12
|
+
...this.getUserAttributes(),
|
|
13
|
+
...t
|
|
14
|
+
};
|
|
15
|
+
o({
|
|
16
|
+
name: u,
|
|
17
|
+
value: JSON.stringify(s),
|
|
18
|
+
canTrack: e
|
|
19
|
+
}), r.forEach((n) => n(s));
|
|
20
|
+
},
|
|
21
|
+
getUserAttributes() {
|
|
22
|
+
return i() ? JSON.parse(b({
|
|
23
|
+
name: u,
|
|
24
|
+
canTrack: e
|
|
25
|
+
}) || "{}") : {};
|
|
26
|
+
},
|
|
27
|
+
subscribeOnUserAttributesChange(t) {
|
|
28
|
+
return r.add(t), () => {
|
|
29
|
+
r.delete(t);
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
setCanTrack(t) {
|
|
33
|
+
e = t;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
const A = c(), S = (e) => {
|
|
38
|
+
A.setUserAttributes(e);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
u as USER_ATTRIBUTES_COOKIE_NAME,
|
|
42
|
+
c as createUserAttributesService,
|
|
43
|
+
S as setClientUserAttributes,
|
|
44
|
+
A as userAttributesService
|
|
45
|
+
};
|
package/lib/browser/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./blocks/button/button.cjs"),r=require("./blocks/columns/columns.cjs"),i=require("./blocks/fragment/fragment.cjs"),s=require("./blocks/image/image.cjs"),n=require("./blocks/section/section.cjs"),o=require("./blocks/symbol/symbol.cjs"),c=require("./blocks/text/text.cjs"),u=require("./blocks/video/video.cjs"),g=require("./components/blocks/blocks.cjs"),d=require("./components/content-variants/content-variants.cjs"),q=require("./context/builder.context.cjs"),a=require("./functions/is-editing.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./blocks/button/button.cjs"),r=require("./blocks/columns/columns.cjs"),i=require("./blocks/fragment/fragment.cjs"),s=require("./blocks/image/image.cjs"),n=require("./blocks/section/section.cjs"),o=require("./blocks/symbol/symbol.cjs"),c=require("./blocks/text/text.cjs"),u=require("./blocks/video/video.cjs"),g=require("./components/blocks/blocks.cjs"),d=require("./components/content-variants/content-variants.cjs"),q=require("./context/builder.context.cjs"),a=require("./helpers/user-attributes.cjs"),l=require("./functions/is-editing.cjs"),b=require("./functions/is-previewing.cjs"),m=require("./functions/register-component.cjs"),E=require("./functions/register.cjs"),C=require("./functions/set-editor-settings.cjs"),f=require("./functions/get-builder-search-params/index.cjs"),h=require("./functions/track/index.cjs"),p=require("./helpers/subscribe-to-editor.cjs"),P=require("./functions/fetch-builder-props.cjs"),e=require("./functions/get-content/index.cjs");exports.Button=t;exports.Columns=r;exports.Fragment=i;exports.Image=s;exports.Section=n;exports.Symbol=o;exports.Text=c;exports.Video=u;exports.Blocks=g;exports.Content=d;exports.BuilderContext=q;exports.setClientUserAttributes=a.setClientUserAttributes;exports.isEditing=l.isEditing;exports.isPreviewing=b.isPreviewing;exports.createRegisterComponentMessage=m.createRegisterComponentMessage;exports.register=E.register;exports.setEditorSettings=C.setEditorSettings;exports.getBuilderSearchParams=f.getBuilderSearchParams;exports.track=h.track;exports.subscribeToEditor=p.subscribeToEditor;exports.fetchBuilderProps=P.fetchBuilderProps;exports._processContentResult=e._processContentResult;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;
|
package/lib/browser/index.mjs
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as r } from "./blocks/button/button.mjs";
|
|
2
2
|
import { default as f } from "./blocks/columns/columns.mjs";
|
|
3
|
-
import { default as
|
|
3
|
+
import { default as a } from "./blocks/fragment/fragment.mjs";
|
|
4
4
|
import { default as p } from "./blocks/image/image.mjs";
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
5
|
+
import { default as i } from "./blocks/section/section.mjs";
|
|
6
|
+
import { default as u } from "./blocks/symbol/symbol.mjs";
|
|
7
7
|
import { default as n } from "./blocks/text/text.mjs";
|
|
8
8
|
import { default as g } from "./blocks/video/video.mjs";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
9
|
+
import { default as B } from "./components/blocks/blocks.mjs";
|
|
10
|
+
import { default as b } from "./components/content-variants/content-variants.mjs";
|
|
11
|
+
import { default as S } from "./context/builder.context.mjs";
|
|
12
|
+
import { setClientUserAttributes as k } from "./helpers/user-attributes.mjs";
|
|
13
|
+
import { isEditing as R } from "./functions/is-editing.mjs";
|
|
14
|
+
import { isPreviewing as v } from "./functions/is-previewing.mjs";
|
|
15
|
+
import { createRegisterComponentMessage as A } from "./functions/register-component.mjs";
|
|
16
|
+
import { register as I } from "./functions/register.mjs";
|
|
17
|
+
import { setEditorSettings as O } from "./functions/set-editor-settings.mjs";
|
|
17
18
|
import { getBuilderSearchParams as V } from "./functions/get-builder-search-params/index.mjs";
|
|
18
19
|
import { track as j } from "./functions/track/index.mjs";
|
|
19
20
|
import { subscribeToEditor as z } from "./helpers/subscribe-to-editor.mjs";
|
|
20
|
-
import { fetchBuilderProps as
|
|
21
|
-
import { _processContentResult as
|
|
21
|
+
import { fetchBuilderProps as G } from "./functions/fetch-builder-props.mjs";
|
|
22
|
+
import { _processContentResult as J, fetchEntries as K, fetchOneEntry as L } from "./functions/get-content/index.mjs";
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
B as Blocks,
|
|
25
|
+
S as BuilderContext,
|
|
26
|
+
r as Button,
|
|
26
27
|
f as Columns,
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
b as Content,
|
|
29
|
+
a as Fragment,
|
|
29
30
|
p as Image,
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
i as Section,
|
|
32
|
+
u as Symbol,
|
|
32
33
|
n as Text,
|
|
33
34
|
g as Video,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
J as _processContentResult,
|
|
36
|
+
A as createRegisterComponentMessage,
|
|
37
|
+
G as fetchBuilderProps,
|
|
38
|
+
K as fetchEntries,
|
|
39
|
+
L as fetchOneEntry,
|
|
39
40
|
V as getBuilderSearchParams,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
R as isEditing,
|
|
42
|
+
v as isPreviewing,
|
|
43
|
+
I as register,
|
|
44
|
+
k as setClientUserAttributes,
|
|
45
|
+
O as setEditorSettings,
|
|
44
46
|
z as subscribeToEditor,
|
|
45
47
|
j as track
|
|
46
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../constants/sdk-version.cjs"),y=require("../constants/target.cjs"),b=require("../functions/is-browser.cjs"),M=require("../functions/is-from-trusted-host.cjs"),B=require("../functions/register.cjs"),E=()=>{B.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let c=!1;const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../constants/sdk-version.cjs"),y=require("../constants/target.cjs"),b=require("../functions/is-browser.cjs"),M=require("../functions/is-from-trusted-host.cjs"),B=require("../functions/register.cjs"),E=()=>{B.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let c=!1;const v=(o={})=>{var a,i;c||(c=!0,b.isBrowser()&&((a=window.parent)==null||a.postMessage({type:"builder.sdkInfo",data:{target:y.TARGET,version:f.SDK_VERSION,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0,blockLevelPersonalization:!0}},"*"),(i=window.parent)==null||i.postMessage({type:"builder.updateContent",data:{options:o}},"*"),window.addEventListener("message",u=>{var d,l;if(!M.isFromTrustedHost(o.trustedHosts,u))return;const{data:e}=u;if(e!=null&&e.type)switch(e.type){case"builder.evaluate":{const g=e.data.text,m=e.data.arguments||[],r=e.data.id,w=new Function(g);let t,s=null;try{t=w.apply(null,m)}catch(n){s=n}s?(d=window.parent)==null||d.postMessage({type:"builder.evaluateError",data:{id:r,error:s.message}},"*"):t&&typeof t.then=="function"?t.then(n=>{var p;(p=window.parent)==null||p.postMessage({type:"builder.evaluateResult",data:{id:r,result:n}},"*")}).catch(console.error):(l=window.parent)==null||l.postMessage({type:"builder.evaluateResult",data:{result:t,id:r}},"*");break}}})))};exports.registerInsertMenu=E;exports.setupBrowserForEditing=v;
|
|
@@ -3,7 +3,7 @@ import { TARGET as y } from "../constants/target.mjs";
|
|
|
3
3
|
import { isBrowser as b } from "../functions/is-browser.mjs";
|
|
4
4
|
import { isFromTrustedHost as C } from "../functions/is-from-trusted-host.mjs";
|
|
5
5
|
import { register as E } from "../functions/register.mjs";
|
|
6
|
-
const
|
|
6
|
+
const x = () => {
|
|
7
7
|
E("insertMenu", {
|
|
8
8
|
name: "_default",
|
|
9
9
|
default: !0,
|
|
@@ -27,7 +27,7 @@ const S = () => {
|
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
let m = !1;
|
|
30
|
-
const
|
|
30
|
+
const S = (a = {}) => {
|
|
31
31
|
var n, i;
|
|
32
32
|
m || (m = !0, b() && ((n = window.parent) == null || n.postMessage({
|
|
33
33
|
type: "builder.sdkInfo",
|
|
@@ -38,16 +38,17 @@ const k = (o = {}) => {
|
|
|
38
38
|
// Supports builder-model="..." attribute which is needed to
|
|
39
39
|
// scope our '+ add block' button styling
|
|
40
40
|
supportsAddBlockScoping: !0,
|
|
41
|
-
supportsCustomBreakpoints: !0
|
|
41
|
+
supportsCustomBreakpoints: !0,
|
|
42
|
+
blockLevelPersonalization: !0
|
|
42
43
|
}
|
|
43
44
|
}, "*"), (i = window.parent) == null || i.postMessage({
|
|
44
45
|
type: "builder.updateContent",
|
|
45
46
|
data: {
|
|
46
|
-
options:
|
|
47
|
+
options: a
|
|
47
48
|
}
|
|
48
49
|
}, "*"), window.addEventListener("message", (u) => {
|
|
49
50
|
var p, d;
|
|
50
|
-
if (!C(
|
|
51
|
+
if (!C(a.trustedHosts, u))
|
|
51
52
|
return;
|
|
52
53
|
const {
|
|
53
54
|
data: e
|
|
@@ -59,8 +60,8 @@ const k = (o = {}) => {
|
|
|
59
60
|
let t, s = null;
|
|
60
61
|
try {
|
|
61
62
|
t = g.apply(null, f);
|
|
62
|
-
} catch (
|
|
63
|
-
s =
|
|
63
|
+
} catch (o) {
|
|
64
|
+
s = o;
|
|
64
65
|
}
|
|
65
66
|
s ? (p = window.parent) == null || p.postMessage({
|
|
66
67
|
type: "builder.evaluateError",
|
|
@@ -68,13 +69,13 @@ const k = (o = {}) => {
|
|
|
68
69
|
id: r,
|
|
69
70
|
error: s.message
|
|
70
71
|
}
|
|
71
|
-
}, "*") : t && typeof t.then == "function" ? t.then((
|
|
72
|
+
}, "*") : t && typeof t.then == "function" ? t.then((o) => {
|
|
72
73
|
var l;
|
|
73
74
|
(l = window.parent) == null || l.postMessage({
|
|
74
75
|
type: "builder.evaluateResult",
|
|
75
76
|
data: {
|
|
76
77
|
id: r,
|
|
77
|
-
result:
|
|
78
|
+
result: o
|
|
78
79
|
}
|
|
79
80
|
}, "*");
|
|
80
81
|
}).catch(console.error) : (d = window.parent) == null || d.postMessage({
|
|
@@ -90,6 +91,6 @@ const k = (o = {}) => {
|
|
|
90
91
|
})));
|
|
91
92
|
};
|
|
92
93
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
x as registerInsertMenu,
|
|
95
|
+
S as setupBrowserForEditing
|
|
95
96
|
};
|