@builder.io/sdk-react-nextjs 0.11.1 → 0.11.3
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/{USE_CLIENT_BUNDLE-5f863786.cjs → USE_CLIENT_BUNDLE-2986f66f.cjs} +4 -4
- package/lib/{node/USE_CLIENT_BUNDLE-e7bc5bc3.js → browser/USE_CLIENT_BUNDLE-812d744e.js} +32 -32
- package/lib/{edge/USE_SERVER_BUNDLE-42c61f06.cjs → browser/USE_SERVER_BUNDLE-3646ae12.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-5a6633cc.js → browser/USE_SERVER_BUNDLE-7d93f151.js} +1 -1
- package/lib/browser/{bundle-387d13d7.js → bundle-062859d6.js} +353 -378
- package/lib/browser/bundle-b781019e.cjs +168 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-09aea24d.cjs → edge/USE_CLIENT_BUNDLE-7f127af4.cjs} +4 -4
- package/lib/{browser/USE_CLIENT_BUNDLE-9460c0fe.js → edge/USE_CLIENT_BUNDLE-dc52931c.js} +32 -32
- package/lib/{node/USE_SERVER_BUNDLE-09b66e65.js → edge/USE_SERVER_BUNDLE-207cbf86.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-84387e43.cjs → edge/USE_SERVER_BUNDLE-29a862aa.cjs} +1 -1
- package/lib/edge/{bundle-59cf1181.cjs → bundle-24c6dba3.cjs} +32 -32
- package/lib/edge/{bundle-33765141.js → bundle-52f65e64.js} +1018 -1043
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-4ad3927b.cjs → node/USE_CLIENT_BUNDLE-c9e8796d.cjs} +4 -4
- package/lib/{edge/USE_CLIENT_BUNDLE-7d2509b4.js → node/USE_CLIENT_BUNDLE-d5a78124.js} +32 -32
- package/lib/{browser/USE_SERVER_BUNDLE-a256863c.js → node/USE_SERVER_BUNDLE-5a34a612.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-f508b13e.cjs → node/USE_SERVER_BUNDLE-f94a06b5.cjs} +1 -1
- package/lib/node/{bundle-d073dfea.js → bundle-829842dd.js} +232 -257
- package/lib/node/{bundle-c361a3b2.cjs → bundle-b0598b3a.cjs} +11 -11
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +97 -5
- package/types/cjs/blocks/button/button.d.ts +1 -9
- package/types/cjs/blocks/button/button.types.d.ts +6 -0
- package/types/cjs/blocks/columns/columns.d.ts +2 -14
- package/types/cjs/blocks/columns/columns.types.d.ts +15 -0
- package/types/cjs/blocks/fragment/fragment.d.ts +1 -5
- package/types/cjs/blocks/fragment/fragment.types.d.ts +5 -0
- package/types/cjs/blocks/image/image.d.ts +1 -19
- package/types/cjs/blocks/image/image.types.d.ts +19 -0
- package/types/cjs/blocks/section/section.d.ts +1 -9
- package/types/cjs/blocks/section/section.types.d.ts +6 -0
- package/types/cjs/blocks/symbol/symbol.d.ts +2 -23
- package/types/cjs/blocks/symbol/symbol.types.d.ts +18 -0
- package/types/cjs/blocks/text/text.d.ts +1 -3
- package/types/cjs/blocks/text/text.types.d.ts +3 -0
- package/types/cjs/blocks/video/video.d.ts +1 -21
- package/types/cjs/blocks/video/video.types.d.ts +21 -0
- package/types/cjs/components/blocks/blocks.d.ts +1 -6
- package/types/cjs/components/blocks/blocks.types.d.ts +6 -0
- package/types/cjs/components/content-variants/content-variants.types.d.ts +30 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/get-content/index.d.ts +1 -1
- package/types/cjs/functions/get-content/types.d.ts +2 -2
- package/types/cjs/server-index.d.ts +10 -1
- package/types/esm/blocks/button/button.d.ts +1 -9
- package/types/esm/blocks/button/button.types.d.ts +6 -0
- package/types/esm/blocks/columns/columns.d.ts +2 -14
- package/types/esm/blocks/columns/columns.types.d.ts +15 -0
- package/types/esm/blocks/fragment/fragment.d.ts +1 -5
- package/types/esm/blocks/fragment/fragment.types.d.ts +5 -0
- package/types/esm/blocks/image/image.d.ts +1 -19
- package/types/esm/blocks/image/image.types.d.ts +19 -0
- package/types/esm/blocks/section/section.d.ts +1 -9
- package/types/esm/blocks/section/section.types.d.ts +6 -0
- package/types/esm/blocks/symbol/symbol.d.ts +2 -23
- package/types/esm/blocks/symbol/symbol.types.d.ts +18 -0
- package/types/esm/blocks/text/text.d.ts +1 -3
- package/types/esm/blocks/text/text.types.d.ts +3 -0
- package/types/esm/blocks/video/video.d.ts +1 -21
- package/types/esm/blocks/video/video.types.d.ts +21 -0
- package/types/esm/components/blocks/blocks.d.ts +1 -6
- package/types/esm/components/blocks/blocks.types.d.ts +6 -0
- package/types/esm/components/content-variants/content-variants.types.d.ts +30 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/get-content/index.d.ts +1 -1
- package/types/esm/functions/get-content/types.d.ts +2 -2
- package/types/esm/server-index.d.ts +10 -1
- package/lib/browser/bundle-3e6c6669.cjs +0 -168
package/lib/edge/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-24c6dba3.cjs"),t=require("./USE_CLIENT_BUNDLE-7f127af4.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-29a862aa.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
|
package/lib/edge/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, w as d, m as f, E as u, x as B, n as S, y as E, A as R, z as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-
|
|
2
|
-
import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-
|
|
1
|
+
import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, w as d, m as f, E as u, x as B, n as S, y as E, A as R, z as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-52f65e64.js";
|
|
2
|
+
import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-dc52931c.js";
|
|
3
3
|
import "lru-cache";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react";
|
|
6
6
|
import "next/navigation";
|
|
7
|
-
import "./USE_SERVER_BUNDLE-
|
|
7
|
+
import "./USE_SERVER_BUNDLE-207cbf86.js";
|
|
8
8
|
export {
|
|
9
9
|
i as Blocks,
|
|
10
10
|
w as Button,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-
|
|
1
|
+
"use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-b0598b3a.cjs"),l=require("react"),V=require("./USE_SERVER_BUNDLE-f94a06b5.cjs"),A=require("next/navigation");function D(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-fdf49de0",children:e.text})}),t.jsx("style",{children:`.button-fdf49de0 {
|
|
2
2
|
all: unset;
|
|
3
3
|
}`})]})}function U(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function H(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}function O(e){function a(){var s;return"builder-blocks"+((s=e.blocks)!=null&&s.length?"":" no-blocks")}function g(){var s,f;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((f=window.parent)==null||f.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function x(){var s,f;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((f=window.parent)==null||f.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:a()+" props-blocks-wrapper-4f2c12d8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>g(),onMouseEnter:s=>x(),onKeyPress:s=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-4f2c12d8 {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
align-items: stretch;
|
|
7
|
-
}`})]})}function J(e){return t.jsx("span",{children:e.children})}function $(e){var s,f,S,v;function a(){var b;const r=e.image||e.src;if(!r||!(r.match(/builder\.io/)||r.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((b=e.image)!=null&&b.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),c.getSrcSet(r)}else if(e.image&&!e.srcset)return c.getSrcSet(r);return c.getSrcSet(r)}function g(){var h;return(h=a==null?void 0:a())!=null&&h.match(/builder\.io/)&&!e.noWebp?a().replace(/\?/g,"?format=webp&"):""}function x(){const h={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?h:void 0}return t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[g()?t.jsx(t.Fragment,{children:t.jsx("source",{type:"image/webp",srcSet:g()})}):null,t.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...x()},className:"builder-image"+(e.className?" "+e.className:"")+" img-
|
|
7
|
+
}`})]})}function J(e){return t.jsx("span",{children:e.children})}function $(e){var s,f,S,v;function a(){var b;const r=e.image||e.src;if(!r||!(r.match(/builder\.io/)||r.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((b=e.image)!=null&&b.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),c.getSrcSet(r)}else if(e.image&&!e.srcset)return c.getSrcSet(r);return c.getSrcSet(r)}function g(){var h;return(h=a==null?void 0:a())!=null&&h.match(/builder\.io/)&&!e.noWebp?a().replace(/\?/g,"?format=webp&"):""}function x(){const h={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?h:void 0}return t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[g()?t.jsx(t.Fragment,{children:t.jsx("source",{type:"image/webp",srcSet:g()})}):null,t.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...x()},className:"builder-image"+(e.className?" "+e.className:"")+" img-40c70c9b",src:e.image,srcSet:a(),sizes:e.sizes})]}),e.aspectRatio&&!((f=(s=e.builderBlock)==null?void 0:s.children)!=null&&f.length&&e.fitContent)?t.jsx(t.Fragment,{children:t.jsx("div",{className:"builder-image-sizer div-40c70c9b",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(v=(S=e.builderBlock)==null?void 0:S.children)!=null&&v.length&&e.fitContent?t.jsx(t.Fragment,{children:e.children}):null,!e.fitContent&&e.children?t.jsx(t.Fragment,{children:t.jsx("div",{className:"div-40c70c9b-2",children:e.children})}):null]}),t.jsx("style",{children:`.img-40c70c9b {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
transition: opacity 0.2s ease-in-out;
|
|
10
|
-
}.div-
|
|
10
|
+
}.div-40c70c9b {
|
|
11
11
|
width: 100%;
|
|
12
12
|
pointer-events: none;
|
|
13
13
|
font-size: 0;
|
|
14
|
-
}.div-
|
|
14
|
+
}.div-40c70c9b-2 {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
align-items: stretch;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as C, Fragment as m, jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import { g as T, a as B, i as E, b as R, c as Y, d as P, e as U, _ as H, f as Z, l as p, h as O, j as ee, k as te, r as ne, s as ie, m as ae, n as ce, o as re } from "./bundle-
|
|
3
|
+
import { g as T, a as B, i as E, b as R, c as Y, d as P, e as U, _ as H, f as Z, l as p, h as O, j as ee, k as te, r as ne, s as ie, m as ae, n as ce, o as re } from "./bundle-829842dd.js";
|
|
4
4
|
import { useRef as N, useState as k, useEffect as v, createContext as oe, createElement as le } from "react";
|
|
5
|
-
import { p as de } from "./USE_SERVER_BUNDLE-
|
|
5
|
+
import { p as de } from "./USE_SERVER_BUNDLE-5a34a612.js";
|
|
6
6
|
import { useRouter as se } from "next/navigation";
|
|
7
7
|
function Se(e) {
|
|
8
8
|
return /* @__PURE__ */ C(m, { children: [
|
|
@@ -20,11 +20,11 @@ function Se(e) {
|
|
|
20
20
|
{
|
|
21
21
|
...e.attributes,
|
|
22
22
|
style: e.attributes.style,
|
|
23
|
-
className: e.attributes.className + " button-
|
|
23
|
+
className: e.attributes.className + " button-fdf49de0",
|
|
24
24
|
children: e.text
|
|
25
25
|
}
|
|
26
26
|
) }),
|
|
27
|
-
/* @__PURE__ */ i("style", { children: `.button-
|
|
27
|
+
/* @__PURE__ */ i("style", { children: `.button-fdf49de0 {
|
|
28
28
|
all: unset;
|
|
29
29
|
}` })
|
|
30
30
|
] });
|
|
@@ -113,7 +113,7 @@ function ye(e) {
|
|
|
113
113
|
"*"
|
|
114
114
|
));
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function b() {
|
|
117
117
|
var o, h;
|
|
118
118
|
E() && !((o = e.blocks) != null && o.length) && ((h = window.parent) == null || h.postMessage(
|
|
119
119
|
{
|
|
@@ -135,7 +135,7 @@ function ye(e) {
|
|
|
135
135
|
"builder-parent-id": e.parent,
|
|
136
136
|
style: e.styleProp,
|
|
137
137
|
onClick: (o) => s(),
|
|
138
|
-
onMouseEnter: (o) =>
|
|
138
|
+
onMouseEnter: (o) => b(),
|
|
139
139
|
onKeyPress: (o) => s(),
|
|
140
140
|
...e.BlocksWrapperProps,
|
|
141
141
|
children: e.children
|
|
@@ -168,18 +168,18 @@ function Ce(e) {
|
|
|
168
168
|
return R(c);
|
|
169
169
|
}
|
|
170
170
|
function s() {
|
|
171
|
-
var
|
|
172
|
-
return (
|
|
171
|
+
var f;
|
|
172
|
+
return (f = a == null ? void 0 : a()) != null && f.match(/builder\.io/) && !e.noWebp ? a().replace(/\?/g, "?format=webp&") : "";
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
const
|
|
174
|
+
function b() {
|
|
175
|
+
const f = {
|
|
176
176
|
position: "absolute",
|
|
177
177
|
height: "100%",
|
|
178
178
|
width: "100%",
|
|
179
179
|
left: "0px",
|
|
180
180
|
top: "0px"
|
|
181
181
|
};
|
|
182
|
-
return e.aspectRatio ?
|
|
182
|
+
return e.aspectRatio ? f : void 0;
|
|
183
183
|
}
|
|
184
184
|
return /* @__PURE__ */ C(m, { children: [
|
|
185
185
|
/* @__PURE__ */ C(m, { children: [
|
|
@@ -194,9 +194,9 @@ function Ce(e) {
|
|
|
194
194
|
style: {
|
|
195
195
|
objectPosition: e.backgroundPosition || "center",
|
|
196
196
|
objectFit: e.backgroundSize || "cover",
|
|
197
|
-
...
|
|
197
|
+
...b()
|
|
198
198
|
},
|
|
199
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
199
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-40c70c9b",
|
|
200
200
|
src: e.image,
|
|
201
201
|
srcSet: a(),
|
|
202
202
|
sizes: e.sizes
|
|
@@ -206,23 +206,23 @@ function Ce(e) {
|
|
|
206
206
|
e.aspectRatio && !((h = (o = e.builderBlock) == null ? void 0 : o.children) != null && h.length && e.fitContent) ? /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(
|
|
207
207
|
"div",
|
|
208
208
|
{
|
|
209
|
-
className: "builder-image-sizer div-
|
|
209
|
+
className: "builder-image-sizer div-40c70c9b",
|
|
210
210
|
style: {
|
|
211
211
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
) }) : null,
|
|
215
215
|
(x = (S = e.builderBlock) == null ? void 0 : S.children) != null && x.length && e.fitContent ? /* @__PURE__ */ i(m, { children: e.children }) : null,
|
|
216
|
-
!e.fitContent && e.children ? /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i("div", { className: "div-
|
|
216
|
+
!e.fitContent && e.children ? /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
217
217
|
] }),
|
|
218
|
-
/* @__PURE__ */ i("style", { children: `.img-
|
|
218
|
+
/* @__PURE__ */ i("style", { children: `.img-40c70c9b {
|
|
219
219
|
opacity: 1;
|
|
220
220
|
transition: opacity 0.2s ease-in-out;
|
|
221
|
-
}.div-
|
|
221
|
+
}.div-40c70c9b {
|
|
222
222
|
width: 100%;
|
|
223
223
|
pointer-events: none;
|
|
224
224
|
font-size: 0;
|
|
225
|
-
}.div-
|
|
225
|
+
}.div-40c70c9b-2 {
|
|
226
226
|
display: flex;
|
|
227
227
|
flex-direction: column;
|
|
228
228
|
align-items: stretch;
|
|
@@ -256,14 +256,14 @@ function we(e) {
|
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
258
|
function Ee(e) {
|
|
259
|
-
const a = N(null), [s,
|
|
259
|
+
const a = N(null), [s, b] = k(() => []), [o, h] = k(() => []);
|
|
260
260
|
return v(() => {
|
|
261
261
|
var x;
|
|
262
262
|
if (!((x = a.current) != null && x.getElementsByTagName) || typeof window > "u")
|
|
263
263
|
return;
|
|
264
264
|
const S = a.current.getElementsByTagName("script");
|
|
265
|
-
for (let
|
|
266
|
-
const c = S[
|
|
265
|
+
for (let f = 0; f < S.length; f++) {
|
|
266
|
+
const c = S[f];
|
|
267
267
|
if (c.src) {
|
|
268
268
|
if (s.includes(c.src))
|
|
269
269
|
continue;
|
|
@@ -294,8 +294,8 @@ function Ee(e) {
|
|
|
294
294
|
);
|
|
295
295
|
}
|
|
296
296
|
function Ie(e) {
|
|
297
|
-
const a = N(null), [s,
|
|
298
|
-
function
|
|
297
|
+
const a = N(null), [s, b] = k(() => []), [o, h] = k(() => []), [S, x] = k(() => !1);
|
|
298
|
+
function f() {
|
|
299
299
|
if (!a.current || !a.current.getElementsByTagName)
|
|
300
300
|
return;
|
|
301
301
|
const c = a.current.getElementsByTagName("script");
|
|
@@ -314,7 +314,7 @@ function Ie(e) {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return v(() => {
|
|
317
|
-
a.current && !S && (x(!0),
|
|
317
|
+
a.current && !S && (x(!0), f());
|
|
318
318
|
}, [a.current, S]), /* @__PURE__ */ i(
|
|
319
319
|
"div",
|
|
320
320
|
{
|
|
@@ -340,7 +340,7 @@ function Re(e) {
|
|
|
340
340
|
);
|
|
341
341
|
}
|
|
342
342
|
function Pe(e) {
|
|
343
|
-
var
|
|
343
|
+
var b, o, h, S, x, f, c;
|
|
344
344
|
function a() {
|
|
345
345
|
return {
|
|
346
346
|
...e.autoPlay === !0 ? {
|
|
@@ -381,7 +381,7 @@ function Pe(e) {
|
|
|
381
381
|
style: {
|
|
382
382
|
width: "100%",
|
|
383
383
|
height: "100%",
|
|
384
|
-
...(
|
|
384
|
+
...(b = e.attributes) == null ? void 0 : b.style,
|
|
385
385
|
objectFit: e.fit,
|
|
386
386
|
objectPosition: e.position,
|
|
387
387
|
// Hack to get object fit to work as expected and
|
|
@@ -419,7 +419,7 @@ function Pe(e) {
|
|
|
419
419
|
children: e.children
|
|
420
420
|
}
|
|
421
421
|
) }) : null,
|
|
422
|
-
(c = (
|
|
422
|
+
(c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(
|
|
423
423
|
"div",
|
|
424
424
|
{
|
|
425
425
|
style: {
|
|
@@ -456,7 +456,7 @@ const ue = oe({
|
|
|
456
456
|
});
|
|
457
457
|
function Te(e) {
|
|
458
458
|
var F, z, M, _, V, q, A;
|
|
459
|
-
const a = N(null), [s,
|
|
459
|
+
const a = N(null), [s, b] = k(() => 0);
|
|
460
460
|
function o(t) {
|
|
461
461
|
var r, l, d, u, D;
|
|
462
462
|
const n = {
|
|
@@ -482,7 +482,7 @@ function Te(e) {
|
|
|
482
482
|
k(() => 0);
|
|
483
483
|
const [h, S] = k(
|
|
484
484
|
() => !1
|
|
485
|
-
), [x,
|
|
485
|
+
), [x, f] = k(
|
|
486
486
|
() => e.contentWrapper || "div"
|
|
487
487
|
);
|
|
488
488
|
function c(t) {
|
|
@@ -498,12 +498,12 @@ function Te(e) {
|
|
|
498
498
|
meta: {
|
|
499
499
|
breakpoints: d
|
|
500
500
|
}
|
|
501
|
-
}),
|
|
501
|
+
}), b(s + 1);
|
|
502
502
|
break;
|
|
503
503
|
}
|
|
504
504
|
case "builder.contentUpdate": {
|
|
505
505
|
const l = n.data, d = l.key || l.alias || l.entry || l.modelName, u = l.data;
|
|
506
|
-
d === e.model && (o(u),
|
|
506
|
+
d === e.model && (o(u), b(s + 1));
|
|
507
507
|
break;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
@@ -589,7 +589,7 @@ function Te(e) {
|
|
|
589
589
|
);
|
|
590
590
|
}
|
|
591
591
|
function W(t) {
|
|
592
|
-
|
|
592
|
+
b(s + 1), window.addEventListener("message", c), ne(), ie({
|
|
593
593
|
...e.locale ? {
|
|
594
594
|
locale: e.locale
|
|
595
595
|
} : {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use server";"use strict";const n=require("./bundle-
|
|
1
|
+
"use server";"use strict";const n=require("./bundle-b0598b3a.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
|