@builder.io/sdk-react-nextjs 0.17.2 → 0.17.6

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.
Files changed (44) hide show
  1. package/lib/browser/blocks/columns/columns.cjs +2 -2
  2. package/lib/browser/blocks/columns/columns.mjs +6 -6
  3. package/lib/browser/blocks/image/image.cjs +3 -3
  4. package/lib/browser/blocks/image/image.mjs +22 -24
  5. package/lib/browser/blocks/video/video.cjs +1 -1
  6. package/lib/browser/blocks/video/video.mjs +0 -1
  7. package/lib/browser/components/awaiter.cjs +1 -1
  8. package/lib/browser/components/blocks/blocks-wrapper.cjs +1 -1
  9. package/lib/browser/components/blocks/blocks-wrapper.mjs +2 -2
  10. package/lib/browser/constants/sdk-version.cjs +1 -1
  11. package/lib/browser/constants/sdk-version.mjs +1 -1
  12. package/lib/edge/blocks/columns/columns.cjs +2 -2
  13. package/lib/edge/blocks/columns/columns.mjs +6 -6
  14. package/lib/edge/blocks/image/image.cjs +3 -3
  15. package/lib/edge/blocks/image/image.mjs +22 -24
  16. package/lib/edge/blocks/video/video.cjs +1 -1
  17. package/lib/edge/blocks/video/video.mjs +0 -1
  18. package/lib/edge/components/awaiter.cjs +1 -1
  19. package/lib/edge/components/blocks/blocks-wrapper.cjs +1 -1
  20. package/lib/edge/components/blocks/blocks-wrapper.mjs +2 -2
  21. package/lib/edge/constants/sdk-version.cjs +1 -1
  22. package/lib/edge/constants/sdk-version.mjs +1 -1
  23. package/lib/node/blocks/columns/columns.cjs +2 -2
  24. package/lib/node/blocks/columns/columns.mjs +6 -6
  25. package/lib/node/blocks/image/image.cjs +3 -3
  26. package/lib/node/blocks/image/image.mjs +22 -24
  27. package/lib/node/blocks/video/video.cjs +1 -1
  28. package/lib/node/blocks/video/video.mjs +0 -1
  29. package/lib/node/components/awaiter.cjs +1 -1
  30. package/lib/node/components/blocks/blocks-wrapper.cjs +1 -1
  31. package/lib/node/components/blocks/blocks-wrapper.mjs +2 -2
  32. package/lib/node/constants/sdk-version.cjs +1 -1
  33. package/lib/node/constants/sdk-version.mjs +1 -1
  34. package/package.json +2 -2
  35. package/types/cjs/blocks/form/form/form.d.ts +1 -0
  36. package/types/cjs/constants/sdk-version.d.ts +1 -1
  37. package/types/cjs/types/builder-content.d.ts +1 -0
  38. package/types/cjs/types/components.d.ts +2 -2
  39. package/types/cjs/types/input.d.ts +10 -0
  40. package/types/esm/blocks/form/form/form.d.ts +1 -0
  41. package/types/esm/constants/sdk-version.d.ts +1 -1
  42. package/types/esm/types/builder-content.d.ts +1 -0
  43. package/types/esm/types/components.d.ts +2 -2
  44. package/types/esm/types/input.d.ts +10 -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,f;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`
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((g=e.builderBlock)==null?void 0:g.id)+" div-6e395700",style:C(),children:[o.jsx(q,{id:"builderio-columns",styles:w(),nonce:e.builderContext.nonce}),(f=e.columns)==null?void 0:f.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,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:n.blocks})},t))]}),o.jsx("style",{children:`.div-6e395700 {
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-6e395700",
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-6e395700 {
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"),m=require("react"),l=require("./image.helpers.cjs");function b(e){var s,r,u,o,d,g;function n(){var f;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&&((f=e.image)!=null&&f.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),l.getSrcSet(i)}else if(e.image&&!e.srcset)return l.getSrcSet(i);return l.getSrcSet(i)}}function a(){var c;return(c=n==null?void 0:n())!=null&&c.match(/builder\.io/)&&!e.noWebp?n().replace(/\?/g,"?format=webp&"):""}function h(){const c={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?c:void 0}return m.useEffect(()=>{},[]),t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[a()?t.jsx("source",{type:"image/webp",srcSet:a()}):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",...h()},className:"builder-image"+(e.className?" "+e.className:"")+" img-c071ff08",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-c071ff08",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-c071ff08-2",children:e.children}):null]}),t.jsx("style",{children:`.img-c071ff08 {
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-c071ff08 {
4
+ }.div-606b99a4 {
5
5
  width: 100%;
6
6
  pointer-events: none;
7
7
  font-size: 0;
8
- }.div-c071ff08-2 {
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 l, Fragment as a, jsx as t } from "react/jsx-runtime";
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 w(e) {
6
- var d, s, u, f, g, m;
4
+ function x(e) {
5
+ var d, s, u, g, h, m;
7
6
  function n() {
8
- var h;
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 && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
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 c;
25
- return (c = n == null ? void 0 : n()) != null && c.match(/builder\.io/) && !e.noWebp ? n().replace(/\?/g, "?format=webp&") : "";
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 b() {
28
- const c = {
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 ? c : void 0;
34
+ return e.aspectRatio ? l : void 0;
36
35
  }
37
- return v(() => {
38
- }, []), /* @__PURE__ */ l(a, { children: [
39
- /* @__PURE__ */ l(a, { children: [
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
- ...b()
50
+ ...f()
53
51
  },
54
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
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-c071ff08",
62
+ className: "builder-image-sizer div-606b99a4",
65
63
  style: {
66
64
  paddingTop: e.aspectRatio * 100 + "%"
67
65
  }
68
66
  }
69
67
  ) : null,
70
- (f = (u = e.builderBlock) == null ? void 0 : u.children) != null && f.length && e.fitContent ? /* @__PURE__ */ t(a, { children: e.children }) : null,
71
- !e.fitContent && ((m = (g = e.builderBlock) == null ? void 0 : g.children) != null && m.length) ? /* @__PURE__ */ t("div", { className: "div-c071ff08-2", children: e.children }) : null
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-c071ff08 {
71
+ /* @__PURE__ */ t("style", { children: `.img-606b99a4 {
74
72
  opacity: 1;
75
73
  transition: opacity 0.2s ease-in-out;
76
- }.div-c071ff08 {
74
+ }.div-606b99a4 {
77
75
  width: 100%;
78
76
  pointer-events: none;
79
77
  font-size: 0;
80
- }.div-c071ff08-2 {
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
- w as default
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,zIndex:2,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
+ "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;
@@ -47,7 +47,6 @@ function f(e) {
47
47
  objectPosition: e.position,
48
48
  // Hack to get object fit to work as expected and
49
49
  // not have the video overflow
50
- zIndex: 2,
51
50
  borderRadius: "1px",
52
51
  ...e.aspectRatio ? {
53
52
  position: "absolute"
@@ -1 +1 @@
1
- "use client";"use strict";const e=require("react/jsx-runtime"),t=require("react");function n(r){return t.useEffect(()=>{},[]),e.jsx(e.Fragment,{children:r.children})}module.exports=n;
1
+ "use client";"use strict";const e=require("react/jsx-runtime"),r=require("react");function n(t){return r.useEffect(()=>{},[]),e.jsx(e.Fragment,{children:t.children})}module.exports=n;
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const a=require("react/jsx-runtime"),l=require("react"),s=require("../../functions/is-editing.cjs");function d(e){const c=l.useRef(null);function o(){var t;return["builder-blocks",(t=e.blocks)!=null&&t.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function i(){if(!e.path)return;const t="component.options.";return e.path.startsWith(t)?e.path:`${t}${e.path||""}`}function r(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}function u(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}return l.useEffect(()=>{},[]),a.jsxs(a.Fragment,{children:[a.jsx(e.BlocksWrapper,{ref:c,className:o()+" props-blocks-wrapper-215a41e0","builder-path":i(),"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>r(),onMouseEnter:t=>u(),onKeyPress:t=>r(),...e.BlocksWrapperProps,children:e.children}),a.jsx("style",{children:`.props-blocks-wrapper-215a41e0 {
1
+ "use client";"use strict";const i=require("react/jsx-runtime"),l=require("react"),s=require("../../functions/is-editing.cjs");function d(e){const c=l.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="component.options.";return e.path.startsWith(t)?e.path:`${t}${e.path||""}`}function r(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:a()}},"*"))}function u(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:a()}},"*"))}return l.useEffect(()=>{},[]),i.jsxs(i.Fragment,{children:[i.jsx(e.BlocksWrapper,{ref:c,className:o()+" props-blocks-wrapper-754e6138","builder-path":a(),"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>r(),onMouseEnter:t=>u(),onKeyPress:t=>r(),...e.BlocksWrapperProps,children:e.children}),i.jsx("style",{children:`.props-blocks-wrapper-754e6138 {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -50,7 +50,7 @@ function b(e) {
50
50
  e.BlocksWrapper,
51
51
  {
52
52
  ref: o,
53
- className: c() + " props-blocks-wrapper-215a41e0",
53
+ className: c() + " props-blocks-wrapper-754e6138",
54
54
  "builder-path": a(),
55
55
  "builder-parent-id": e.parent,
56
56
  style: e.styleProp,
@@ -61,7 +61,7 @@ function b(e) {
61
61
  children: e.children
62
62
  }
63
63
  ),
64
- /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-215a41e0 {
64
+ /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-754e6138 {
65
65
  display: flex;
66
66
  flex-direction: column;
67
67
  align-items: stretch;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.17.2";exports.SDK_VERSION=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.17.6";exports.SDK_VERSION=e;
@@ -1,4 +1,4 @@
1
- const o = "0.17.2";
1
+ const o = "0.17.6";
2
2
  export {
3
3
  o as SDK_VERSION
4
4
  };
@@ -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,f;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`
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((g=e.builderBlock)==null?void 0:g.id)+" div-6e395700",style:C(),children:[o.jsx(q,{id:"builderio-columns",styles:w(),nonce:e.builderContext.nonce}),(f=e.columns)==null?void 0:f.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,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:n.blocks})},t))]}),o.jsx("style",{children:`.div-6e395700 {
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-6e395700",
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-6e395700 {
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"),m=require("react"),l=require("./image.helpers.cjs");function b(e){var s,r,u,o,d,g;function n(){var f;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&&((f=e.image)!=null&&f.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),l.getSrcSet(i)}else if(e.image&&!e.srcset)return l.getSrcSet(i);return l.getSrcSet(i)}}function a(){var c;return(c=n==null?void 0:n())!=null&&c.match(/builder\.io/)&&!e.noWebp?n().replace(/\?/g,"?format=webp&"):""}function h(){const c={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?c:void 0}return m.useEffect(()=>{},[]),t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[a()?t.jsx("source",{type:"image/webp",srcSet:a()}):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",...h()},className:"builder-image"+(e.className?" "+e.className:"")+" img-c071ff08",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-c071ff08",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-c071ff08-2",children:e.children}):null]}),t.jsx("style",{children:`.img-c071ff08 {
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-c071ff08 {
4
+ }.div-606b99a4 {
5
5
  width: 100%;
6
6
  pointer-events: none;
7
7
  font-size: 0;
8
- }.div-c071ff08-2 {
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 l, Fragment as a, jsx as t } from "react/jsx-runtime";
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 w(e) {
6
- var d, s, u, f, g, m;
4
+ function x(e) {
5
+ var d, s, u, g, h, m;
7
6
  function n() {
8
- var h;
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 && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
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 c;
25
- return (c = n == null ? void 0 : n()) != null && c.match(/builder\.io/) && !e.noWebp ? n().replace(/\?/g, "?format=webp&") : "";
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 b() {
28
- const c = {
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 ? c : void 0;
34
+ return e.aspectRatio ? l : void 0;
36
35
  }
37
- return v(() => {
38
- }, []), /* @__PURE__ */ l(a, { children: [
39
- /* @__PURE__ */ l(a, { children: [
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
- ...b()
50
+ ...f()
53
51
  },
54
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
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-c071ff08",
62
+ className: "builder-image-sizer div-606b99a4",
65
63
  style: {
66
64
  paddingTop: e.aspectRatio * 100 + "%"
67
65
  }
68
66
  }
69
67
  ) : null,
70
- (f = (u = e.builderBlock) == null ? void 0 : u.children) != null && f.length && e.fitContent ? /* @__PURE__ */ t(a, { children: e.children }) : null,
71
- !e.fitContent && ((m = (g = e.builderBlock) == null ? void 0 : g.children) != null && m.length) ? /* @__PURE__ */ t("div", { className: "div-c071ff08-2", children: e.children }) : null
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-c071ff08 {
71
+ /* @__PURE__ */ t("style", { children: `.img-606b99a4 {
74
72
  opacity: 1;
75
73
  transition: opacity 0.2s ease-in-out;
76
- }.div-c071ff08 {
74
+ }.div-606b99a4 {
77
75
  width: 100%;
78
76
  pointer-events: none;
79
77
  font-size: 0;
80
- }.div-c071ff08-2 {
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
- w as default
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,zIndex:2,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
+ "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;
@@ -47,7 +47,6 @@ function f(e) {
47
47
  objectPosition: e.position,
48
48
  // Hack to get object fit to work as expected and
49
49
  // not have the video overflow
50
- zIndex: 2,
51
50
  borderRadius: "1px",
52
51
  ...e.aspectRatio ? {
53
52
  position: "absolute"
@@ -1 +1 @@
1
- "use client";"use strict";const e=require("react/jsx-runtime"),t=require("react");function n(r){return t.useEffect(()=>{},[]),e.jsx(e.Fragment,{children:r.children})}module.exports=n;
1
+ "use client";"use strict";const e=require("react/jsx-runtime"),r=require("react");function n(t){return r.useEffect(()=>{},[]),e.jsx(e.Fragment,{children:t.children})}module.exports=n;
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const a=require("react/jsx-runtime"),l=require("react"),s=require("../../functions/is-editing.cjs");function d(e){const c=l.useRef(null);function o(){var t;return["builder-blocks",(t=e.blocks)!=null&&t.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function i(){if(!e.path)return;const t="component.options.";return e.path.startsWith(t)?e.path:`${t}${e.path||""}`}function r(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}function u(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}return l.useEffect(()=>{},[]),a.jsxs(a.Fragment,{children:[a.jsx(e.BlocksWrapper,{ref:c,className:o()+" props-blocks-wrapper-215a41e0","builder-path":i(),"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>r(),onMouseEnter:t=>u(),onKeyPress:t=>r(),...e.BlocksWrapperProps,children:e.children}),a.jsx("style",{children:`.props-blocks-wrapper-215a41e0 {
1
+ "use client";"use strict";const i=require("react/jsx-runtime"),l=require("react"),s=require("../../functions/is-editing.cjs");function d(e){const c=l.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="component.options.";return e.path.startsWith(t)?e.path:`${t}${e.path||""}`}function r(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:a()}},"*"))}function u(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:a()}},"*"))}return l.useEffect(()=>{},[]),i.jsxs(i.Fragment,{children:[i.jsx(e.BlocksWrapper,{ref:c,className:o()+" props-blocks-wrapper-754e6138","builder-path":a(),"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>r(),onMouseEnter:t=>u(),onKeyPress:t=>r(),...e.BlocksWrapperProps,children:e.children}),i.jsx("style",{children:`.props-blocks-wrapper-754e6138 {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -50,7 +50,7 @@ function b(e) {
50
50
  e.BlocksWrapper,
51
51
  {
52
52
  ref: o,
53
- className: c() + " props-blocks-wrapper-215a41e0",
53
+ className: c() + " props-blocks-wrapper-754e6138",
54
54
  "builder-path": a(),
55
55
  "builder-parent-id": e.parent,
56
56
  style: e.styleProp,
@@ -61,7 +61,7 @@ function b(e) {
61
61
  children: e.children
62
62
  }
63
63
  ),
64
- /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-215a41e0 {
64
+ /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-754e6138 {
65
65
  display: flex;
66
66
  flex-direction: column;
67
67
  align-items: stretch;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.17.2";exports.SDK_VERSION=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.17.6";exports.SDK_VERSION=e;
@@ -1,4 +1,4 @@
1
- const o = "0.17.2";
1
+ const o = "0.17.6";
2
2
  export {
3
3
  o as SDK_VERSION
4
4
  };
@@ -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,f;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`
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((g=e.builderBlock)==null?void 0:g.id)+" div-6e395700",style:C(),children:[o.jsx(q,{id:"builderio-columns",styles:w(),nonce:e.builderContext.nonce}),(f=e.columns)==null?void 0:f.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,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:n.blocks})},t))]}),o.jsx("style",{children:`.div-6e395700 {
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-6e395700",
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-6e395700 {
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"),m=require("react"),l=require("./image.helpers.cjs");function b(e){var s,r,u,o,d,g;function n(){var f;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&&((f=e.image)!=null&&f.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),l.getSrcSet(i)}else if(e.image&&!e.srcset)return l.getSrcSet(i);return l.getSrcSet(i)}}function a(){var c;return(c=n==null?void 0:n())!=null&&c.match(/builder\.io/)&&!e.noWebp?n().replace(/\?/g,"?format=webp&"):""}function h(){const c={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?c:void 0}return m.useEffect(()=>{},[]),t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[a()?t.jsx("source",{type:"image/webp",srcSet:a()}):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",...h()},className:"builder-image"+(e.className?" "+e.className:"")+" img-c071ff08",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-c071ff08",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-c071ff08-2",children:e.children}):null]}),t.jsx("style",{children:`.img-c071ff08 {
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-c071ff08 {
4
+ }.div-606b99a4 {
5
5
  width: 100%;
6
6
  pointer-events: none;
7
7
  font-size: 0;
8
- }.div-c071ff08-2 {
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 l, Fragment as a, jsx as t } from "react/jsx-runtime";
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 w(e) {
6
- var d, s, u, f, g, m;
4
+ function x(e) {
5
+ var d, s, u, g, h, m;
7
6
  function n() {
8
- var h;
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 && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
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 c;
25
- return (c = n == null ? void 0 : n()) != null && c.match(/builder\.io/) && !e.noWebp ? n().replace(/\?/g, "?format=webp&") : "";
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 b() {
28
- const c = {
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 ? c : void 0;
34
+ return e.aspectRatio ? l : void 0;
36
35
  }
37
- return v(() => {
38
- }, []), /* @__PURE__ */ l(a, { children: [
39
- /* @__PURE__ */ l(a, { children: [
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
- ...b()
50
+ ...f()
53
51
  },
54
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
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-c071ff08",
62
+ className: "builder-image-sizer div-606b99a4",
65
63
  style: {
66
64
  paddingTop: e.aspectRatio * 100 + "%"
67
65
  }
68
66
  }
69
67
  ) : null,
70
- (f = (u = e.builderBlock) == null ? void 0 : u.children) != null && f.length && e.fitContent ? /* @__PURE__ */ t(a, { children: e.children }) : null,
71
- !e.fitContent && ((m = (g = e.builderBlock) == null ? void 0 : g.children) != null && m.length) ? /* @__PURE__ */ t("div", { className: "div-c071ff08-2", children: e.children }) : null
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-c071ff08 {
71
+ /* @__PURE__ */ t("style", { children: `.img-606b99a4 {
74
72
  opacity: 1;
75
73
  transition: opacity 0.2s ease-in-out;
76
- }.div-c071ff08 {
74
+ }.div-606b99a4 {
77
75
  width: 100%;
78
76
  pointer-events: none;
79
77
  font-size: 0;
80
- }.div-c071ff08-2 {
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
- w as default
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,zIndex:2,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
+ "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;
@@ -47,7 +47,6 @@ function f(e) {
47
47
  objectPosition: e.position,
48
48
  // Hack to get object fit to work as expected and
49
49
  // not have the video overflow
50
- zIndex: 2,
51
50
  borderRadius: "1px",
52
51
  ...e.aspectRatio ? {
53
52
  position: "absolute"
@@ -1 +1 @@
1
- "use client";"use strict";const e=require("react/jsx-runtime"),t=require("react");function n(r){return t.useEffect(()=>{},[]),e.jsx(e.Fragment,{children:r.children})}module.exports=n;
1
+ "use client";"use strict";const e=require("react/jsx-runtime"),r=require("react");function n(t){return r.useEffect(()=>{},[]),e.jsx(e.Fragment,{children:t.children})}module.exports=n;
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const a=require("react/jsx-runtime"),l=require("react"),s=require("../../functions/is-editing.cjs");function d(e){const c=l.useRef(null);function o(){var t;return["builder-blocks",(t=e.blocks)!=null&&t.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function i(){if(!e.path)return;const t="component.options.";return e.path.startsWith(t)?e.path:`${t}${e.path||""}`}function r(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}function u(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}return l.useEffect(()=>{},[]),a.jsxs(a.Fragment,{children:[a.jsx(e.BlocksWrapper,{ref:c,className:o()+" props-blocks-wrapper-215a41e0","builder-path":i(),"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>r(),onMouseEnter:t=>u(),onKeyPress:t=>r(),...e.BlocksWrapperProps,children:e.children}),a.jsx("style",{children:`.props-blocks-wrapper-215a41e0 {
1
+ "use client";"use strict";const i=require("react/jsx-runtime"),l=require("react"),s=require("../../functions/is-editing.cjs");function d(e){const c=l.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="component.options.";return e.path.startsWith(t)?e.path:`${t}${e.path||""}`}function r(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:a()}},"*"))}function u(){var t,n;s.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:a()}},"*"))}return l.useEffect(()=>{},[]),i.jsxs(i.Fragment,{children:[i.jsx(e.BlocksWrapper,{ref:c,className:o()+" props-blocks-wrapper-754e6138","builder-path":a(),"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>r(),onMouseEnter:t=>u(),onKeyPress:t=>r(),...e.BlocksWrapperProps,children:e.children}),i.jsx("style",{children:`.props-blocks-wrapper-754e6138 {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -50,7 +50,7 @@ function b(e) {
50
50
  e.BlocksWrapper,
51
51
  {
52
52
  ref: o,
53
- className: c() + " props-blocks-wrapper-215a41e0",
53
+ className: c() + " props-blocks-wrapper-754e6138",
54
54
  "builder-path": a(),
55
55
  "builder-parent-id": e.parent,
56
56
  style: e.styleProp,
@@ -61,7 +61,7 @@ function b(e) {
61
61
  children: e.children
62
62
  }
63
63
  ),
64
- /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-215a41e0 {
64
+ /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-754e6138 {
65
65
  display: flex;
66
66
  flex-direction: column;
67
67
  align-items: stretch;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.17.2";exports.SDK_VERSION=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.17.6";exports.SDK_VERSION=e;
@@ -1,4 +1,4 @@
1
- const o = "0.17.2";
1
+ const o = "0.17.6";
2
2
  export {
3
3
  o as SDK_VERSION
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react-nextjs",
3
3
  "description": "Builder.io RSC SDK for NextJS App Directory",
4
- "version": "0.17.2",
4
+ "version": "0.17.6",
5
5
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/nextjs",
6
6
  "repository": {
7
7
  "type": "git",
@@ -107,7 +107,7 @@
107
107
  "next": ">=13.4.20",
108
108
  "react": "^18.2.0",
109
109
  "typescript": "^5.1.6",
110
- "vite": "^4.4.9"
110
+ "vite": "^4.5.6"
111
111
  },
112
112
  "dependencies": {
113
113
  "isolated-vm": "^5.0.0"
@@ -22,6 +22,7 @@ export type FormProps = BuilderDataProps & BuilderComponentsProp & BuilderLinkCo
22
22
  sendingMessage?: BuilderBlock[];
23
23
  resetFormOnSubmit?: boolean;
24
24
  errorMessagePath?: string;
25
+ children?: any;
25
26
  };
26
27
  /**
27
28
  * This import is used by the Svelte SDK. Do not remove.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.17.2";
1
+ export declare const SDK_VERSION = "0.17.6";
@@ -33,6 +33,7 @@ export interface BuilderContent extends BuilderContentVariation {
33
33
  published?: 'published' | 'draft' | 'archived';
34
34
  modelId?: string;
35
35
  priority?: number;
36
+ firstPublished?: number;
36
37
  lastUpdated?: number;
37
38
  startDate?: number;
38
39
  endDate?: number;
@@ -122,7 +122,7 @@ export interface ComponentInfo {
122
122
  /**
123
123
  * Whether or not the component should receive the `builderBlock` prop, containing the current Builder block being rendered.
124
124
  *
125
- * Defaults to `true`.
125
+ * Defaults to `false`.
126
126
  */
127
127
  builderBlock?: boolean;
128
128
  /**
@@ -130,7 +130,7 @@ export interface ComponentInfo {
130
130
  * The Builder Context contains a lot of data relevant to the current `Content` render.
131
131
  * You can see more information [here](https://github.com/BuilderIO/builder/blob/main/packages/sdks/src/context/types.ts).
132
132
  *
133
- * Defaults to `true`.
133
+ * Defaults to `false`.
134
134
  */
135
135
  builderContext?: boolean;
136
136
  /**
@@ -19,6 +19,16 @@ export interface Input {
19
19
  /** @hidden */
20
20
  autoFocus?: boolean;
21
21
  subFields?: Input[];
22
+ /**
23
+ * When input is of `type` `object`, use this field to collapse multiple inputs
24
+ * in the Visual Editor by default and preserve screen space.
25
+ */
26
+ folded?: boolean;
27
+ /**
28
+ * When input is of `type` `object`, provide guidance in the Visual Editor
29
+ * on how to edit this object's contents.
30
+ */
31
+ keysHelperText?: string;
22
32
  /**
23
33
  * Additional text to render in the UI to give guidance on how to use this
24
34
  *
@@ -22,6 +22,7 @@ export type FormProps = BuilderDataProps & BuilderComponentsProp & BuilderLinkCo
22
22
  sendingMessage?: BuilderBlock[];
23
23
  resetFormOnSubmit?: boolean;
24
24
  errorMessagePath?: string;
25
+ children?: any;
25
26
  };
26
27
  /**
27
28
  * This import is used by the Svelte SDK. Do not remove.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.17.2";
1
+ export declare const SDK_VERSION = "0.17.6";
@@ -33,6 +33,7 @@ export interface BuilderContent extends BuilderContentVariation {
33
33
  published?: 'published' | 'draft' | 'archived';
34
34
  modelId?: string;
35
35
  priority?: number;
36
+ firstPublished?: number;
36
37
  lastUpdated?: number;
37
38
  startDate?: number;
38
39
  endDate?: number;
@@ -122,7 +122,7 @@ export interface ComponentInfo {
122
122
  /**
123
123
  * Whether or not the component should receive the `builderBlock` prop, containing the current Builder block being rendered.
124
124
  *
125
- * Defaults to `true`.
125
+ * Defaults to `false`.
126
126
  */
127
127
  builderBlock?: boolean;
128
128
  /**
@@ -130,7 +130,7 @@ export interface ComponentInfo {
130
130
  * The Builder Context contains a lot of data relevant to the current `Content` render.
131
131
  * You can see more information [here](https://github.com/BuilderIO/builder/blob/main/packages/sdks/src/context/types.ts).
132
132
  *
133
- * Defaults to `true`.
133
+ * Defaults to `false`.
134
134
  */
135
135
  builderContext?: boolean;
136
136
  /**
@@ -19,6 +19,16 @@ export interface Input {
19
19
  /** @hidden */
20
20
  autoFocus?: boolean;
21
21
  subFields?: Input[];
22
+ /**
23
+ * When input is of `type` `object`, use this field to collapse multiple inputs
24
+ * in the Visual Editor by default and preserve screen space.
25
+ */
26
+ folded?: boolean;
27
+ /**
28
+ * When input is of `type` `object`, provide guidance in the Visual Editor
29
+ * on how to edit this object's contents.
30
+ */
31
+ keysHelperText?: string;
22
32
  /**
23
33
  * Additional text to render in the UI to give guidance on how to use this
24
34
  *