@builder.io/sdk-react-nextjs 0.16.16 → 0.16.17

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.
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const l=require("react/jsx-runtime"),r=require("react"),s=require("../../functions/is-editing.cjs");function d(e){const i=r.useRef(null);function a(){var t;return"builder-blocks"+((t=e.blocks)!=null&&t.length?"":" no-blocks")}function c(){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:e.path}},"*"))}function o(){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:e.path}},"*"))}return r.useEffect(()=>{},[]),l.jsxs(l.Fragment,{children:[l.jsx(e.BlocksWrapper,{ref:i,className:a()+" props-blocks-wrapper-77bdc7c6","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>c(),onMouseEnter:t=>o(),onKeyPress:t=>c(),...e.BlocksWrapperProps,children:e.children}),l.jsx("style",{children:`.props-blocks-wrapper-77bdc7c6 {
1
+ "use client";"use strict";const l=require("react/jsx-runtime"),c=require("react"),i=require("../../functions/is-editing.cjs");function d(e){const r=c.useRef(null);function s(){var t;return["builder-blocks",(t=e.blocks)!=null&&t.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function a(){var t,n;i.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function o(){var t,n;i.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return c.useEffect(()=>{},[]),l.jsxs(l.Fragment,{children:[l.jsx(e.BlocksWrapper,{ref:r,className:s()+" props-blocks-wrapper-43ec7ac8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>a(),onMouseEnter:t=>o(),onKeyPress:t=>a(),...e.BlocksWrapperProps,children:e.children}),l.jsx("style",{children:`.props-blocks-wrapper-43ec7ac8 {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -1,16 +1,20 @@
1
1
  "use client";
2
- import { jsxs as o, Fragment as d, jsx as r } from "react/jsx-runtime";
2
+ import { jsxs as s, Fragment as d, jsx as a } from "react/jsx-runtime";
3
3
  import { useRef as u, useEffect as f } from "react";
4
- import { isEditing as a } from "../../functions/is-editing.mjs";
4
+ import { isEditing as r } from "../../functions/is-editing.mjs";
5
5
  function h(e) {
6
6
  const c = u(null);
7
7
  function i() {
8
8
  var t;
9
- return "builder-blocks" + ((t = e.blocks) != null && t.length ? "" : " no-blocks");
9
+ return [
10
+ "builder-blocks",
11
+ (t = e.blocks) != null && t.length ? "" : "no-blocks",
12
+ e.classNameProp
13
+ ].filter(Boolean).join(" ");
10
14
  }
11
15
  function l() {
12
16
  var t, n;
13
- a() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
17
+ r() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
14
18
  {
15
19
  type: "builder.clickEmptyBlocks",
16
20
  data: {
@@ -21,9 +25,9 @@ function h(e) {
21
25
  "*"
22
26
  ));
23
27
  }
24
- function s() {
28
+ function o() {
25
29
  var t, n;
26
- a() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
30
+ r() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
27
31
  {
28
32
  type: "builder.hoverEmptyBlocks",
29
33
  data: {
@@ -35,23 +39,23 @@ function h(e) {
35
39
  ));
36
40
  }
37
41
  return f(() => {
38
- }, []), /* @__PURE__ */ o(d, { children: [
39
- /* @__PURE__ */ r(
42
+ }, []), /* @__PURE__ */ s(d, { children: [
43
+ /* @__PURE__ */ a(
40
44
  e.BlocksWrapper,
41
45
  {
42
46
  ref: c,
43
- className: i() + " props-blocks-wrapper-77bdc7c6",
47
+ className: i() + " props-blocks-wrapper-43ec7ac8",
44
48
  "builder-path": e.path,
45
49
  "builder-parent-id": e.parent,
46
50
  style: e.styleProp,
47
51
  onClick: (t) => l(),
48
- onMouseEnter: (t) => s(),
52
+ onMouseEnter: (t) => o(),
49
53
  onKeyPress: (t) => l(),
50
54
  ...e.BlocksWrapperProps,
51
55
  children: e.children
52
56
  }
53
57
  ),
54
- /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-77bdc7c6 {
58
+ /* @__PURE__ */ a("style", { children: `.props-blocks-wrapper-43ec7ac8 {
55
59
  display: flex;
56
60
  flex-direction: column;
57
61
  align-items: stretch;
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),l=require("../block/block.cjs"),s=require("./blocks-wrapper.cjs");function i(e){var n,r,c;return t.jsx(s,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(n=e.context)==null?void 0:n.BlocksWrapper,BlocksWrapperProps:(r=e.context)==null?void 0:r.BlocksWrapperProps,children:e.blocks?t.jsx(t.Fragment,{children:(c=e.blocks)==null?void 0:c.map(o=>t.jsx(l,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}module.exports=i;
1
+ "use strict";const t=require("react/jsx-runtime"),l=require("../block/block.cjs"),s=require("./blocks-wrapper.cjs");function a(e){var n,c,r;return t.jsx(s,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,classNameProp:e.className,BlocksWrapper:(n=e.context)==null?void 0:n.BlocksWrapper,BlocksWrapperProps:(c=e.context)==null?void 0:c.BlocksWrapperProps,children:e.blocks?t.jsx(t.Fragment,{children:(r=e.blocks)==null?void 0:r.map(o=>t.jsx(l,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}module.exports=a;
@@ -1,15 +1,16 @@
1
1
  import { jsx as t, Fragment as c } from "react/jsx-runtime";
2
2
  import a from "../block/block.mjs";
3
- import k from "./blocks-wrapper.mjs";
4
- function p(e) {
3
+ import m from "./blocks-wrapper.mjs";
4
+ function B(e) {
5
5
  var o, n, r;
6
6
  return /* @__PURE__ */ t(
7
- k,
7
+ m,
8
8
  {
9
9
  blocks: e.blocks,
10
10
  parent: e.parent,
11
11
  path: e.path,
12
12
  styleProp: e.styleProp,
13
+ classNameProp: e.className,
13
14
  BlocksWrapper: (o = e.context) == null ? void 0 : o.BlocksWrapper,
14
15
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
15
16
  children: e.blocks ? /* @__PURE__ */ t(c, { children: (r = e.blocks) == null ? void 0 : r.map((l) => /* @__PURE__ */ t(
@@ -26,5 +27,5 @@ function p(e) {
26
27
  );
27
28
  }
28
29
  export {
29
- p as default
30
+ B as default
30
31
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.16.16";exports.SDK_VERSION=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.16.17";exports.SDK_VERSION=e;
@@ -1,4 +1,4 @@
1
- const o = "0.16.16";
1
+ const o = "0.16.17";
2
2
  export {
3
3
  o as SDK_VERSION
4
4
  };
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const l=require("react/jsx-runtime"),r=require("react"),s=require("../../functions/is-editing.cjs");function d(e){const i=r.useRef(null);function a(){var t;return"builder-blocks"+((t=e.blocks)!=null&&t.length?"":" no-blocks")}function c(){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:e.path}},"*"))}function o(){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:e.path}},"*"))}return r.useEffect(()=>{},[]),l.jsxs(l.Fragment,{children:[l.jsx(e.BlocksWrapper,{ref:i,className:a()+" props-blocks-wrapper-77bdc7c6","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>c(),onMouseEnter:t=>o(),onKeyPress:t=>c(),...e.BlocksWrapperProps,children:e.children}),l.jsx("style",{children:`.props-blocks-wrapper-77bdc7c6 {
1
+ "use client";"use strict";const l=require("react/jsx-runtime"),c=require("react"),i=require("../../functions/is-editing.cjs");function d(e){const r=c.useRef(null);function s(){var t;return["builder-blocks",(t=e.blocks)!=null&&t.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function a(){var t,n;i.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function o(){var t,n;i.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return c.useEffect(()=>{},[]),l.jsxs(l.Fragment,{children:[l.jsx(e.BlocksWrapper,{ref:r,className:s()+" props-blocks-wrapper-43ec7ac8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>a(),onMouseEnter:t=>o(),onKeyPress:t=>a(),...e.BlocksWrapperProps,children:e.children}),l.jsx("style",{children:`.props-blocks-wrapper-43ec7ac8 {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -1,16 +1,20 @@
1
1
  "use client";
2
- import { jsxs as o, Fragment as d, jsx as r } from "react/jsx-runtime";
2
+ import { jsxs as s, Fragment as d, jsx as a } from "react/jsx-runtime";
3
3
  import { useRef as u, useEffect as f } from "react";
4
- import { isEditing as a } from "../../functions/is-editing.mjs";
4
+ import { isEditing as r } from "../../functions/is-editing.mjs";
5
5
  function h(e) {
6
6
  const c = u(null);
7
7
  function i() {
8
8
  var t;
9
- return "builder-blocks" + ((t = e.blocks) != null && t.length ? "" : " no-blocks");
9
+ return [
10
+ "builder-blocks",
11
+ (t = e.blocks) != null && t.length ? "" : "no-blocks",
12
+ e.classNameProp
13
+ ].filter(Boolean).join(" ");
10
14
  }
11
15
  function l() {
12
16
  var t, n;
13
- a() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
17
+ r() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
14
18
  {
15
19
  type: "builder.clickEmptyBlocks",
16
20
  data: {
@@ -21,9 +25,9 @@ function h(e) {
21
25
  "*"
22
26
  ));
23
27
  }
24
- function s() {
28
+ function o() {
25
29
  var t, n;
26
- a() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
30
+ r() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
27
31
  {
28
32
  type: "builder.hoverEmptyBlocks",
29
33
  data: {
@@ -35,23 +39,23 @@ function h(e) {
35
39
  ));
36
40
  }
37
41
  return f(() => {
38
- }, []), /* @__PURE__ */ o(d, { children: [
39
- /* @__PURE__ */ r(
42
+ }, []), /* @__PURE__ */ s(d, { children: [
43
+ /* @__PURE__ */ a(
40
44
  e.BlocksWrapper,
41
45
  {
42
46
  ref: c,
43
- className: i() + " props-blocks-wrapper-77bdc7c6",
47
+ className: i() + " props-blocks-wrapper-43ec7ac8",
44
48
  "builder-path": e.path,
45
49
  "builder-parent-id": e.parent,
46
50
  style: e.styleProp,
47
51
  onClick: (t) => l(),
48
- onMouseEnter: (t) => s(),
52
+ onMouseEnter: (t) => o(),
49
53
  onKeyPress: (t) => l(),
50
54
  ...e.BlocksWrapperProps,
51
55
  children: e.children
52
56
  }
53
57
  ),
54
- /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-77bdc7c6 {
58
+ /* @__PURE__ */ a("style", { children: `.props-blocks-wrapper-43ec7ac8 {
55
59
  display: flex;
56
60
  flex-direction: column;
57
61
  align-items: stretch;
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),l=require("../block/block.cjs"),s=require("./blocks-wrapper.cjs");function i(e){var n,r,c;return t.jsx(s,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(n=e.context)==null?void 0:n.BlocksWrapper,BlocksWrapperProps:(r=e.context)==null?void 0:r.BlocksWrapperProps,children:e.blocks?t.jsx(t.Fragment,{children:(c=e.blocks)==null?void 0:c.map(o=>t.jsx(l,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}module.exports=i;
1
+ "use strict";const t=require("react/jsx-runtime"),l=require("../block/block.cjs"),s=require("./blocks-wrapper.cjs");function a(e){var n,c,r;return t.jsx(s,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,classNameProp:e.className,BlocksWrapper:(n=e.context)==null?void 0:n.BlocksWrapper,BlocksWrapperProps:(c=e.context)==null?void 0:c.BlocksWrapperProps,children:e.blocks?t.jsx(t.Fragment,{children:(r=e.blocks)==null?void 0:r.map(o=>t.jsx(l,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}module.exports=a;
@@ -1,15 +1,16 @@
1
1
  import { jsx as t, Fragment as c } from "react/jsx-runtime";
2
2
  import a from "../block/block.mjs";
3
- import k from "./blocks-wrapper.mjs";
4
- function p(e) {
3
+ import m from "./blocks-wrapper.mjs";
4
+ function B(e) {
5
5
  var o, n, r;
6
6
  return /* @__PURE__ */ t(
7
- k,
7
+ m,
8
8
  {
9
9
  blocks: e.blocks,
10
10
  parent: e.parent,
11
11
  path: e.path,
12
12
  styleProp: e.styleProp,
13
+ classNameProp: e.className,
13
14
  BlocksWrapper: (o = e.context) == null ? void 0 : o.BlocksWrapper,
14
15
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
15
16
  children: e.blocks ? /* @__PURE__ */ t(c, { children: (r = e.blocks) == null ? void 0 : r.map((l) => /* @__PURE__ */ t(
@@ -26,5 +27,5 @@ function p(e) {
26
27
  );
27
28
  }
28
29
  export {
29
- p as default
30
+ B as default
30
31
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.16.16";exports.SDK_VERSION=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.16.17";exports.SDK_VERSION=e;
@@ -1,4 +1,4 @@
1
- const o = "0.16.16";
1
+ const o = "0.16.17";
2
2
  export {
3
3
  o as SDK_VERSION
4
4
  };
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const l=require("react/jsx-runtime"),r=require("react"),s=require("../../functions/is-editing.cjs");function d(e){const i=r.useRef(null);function a(){var t;return"builder-blocks"+((t=e.blocks)!=null&&t.length?"":" no-blocks")}function c(){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:e.path}},"*"))}function o(){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:e.path}},"*"))}return r.useEffect(()=>{},[]),l.jsxs(l.Fragment,{children:[l.jsx(e.BlocksWrapper,{ref:i,className:a()+" props-blocks-wrapper-77bdc7c6","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>c(),onMouseEnter:t=>o(),onKeyPress:t=>c(),...e.BlocksWrapperProps,children:e.children}),l.jsx("style",{children:`.props-blocks-wrapper-77bdc7c6 {
1
+ "use client";"use strict";const l=require("react/jsx-runtime"),c=require("react"),i=require("../../functions/is-editing.cjs");function d(e){const r=c.useRef(null);function s(){var t;return["builder-blocks",(t=e.blocks)!=null&&t.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function a(){var t,n;i.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function o(){var t,n;i.isEditing()&&!((t=e.blocks)!=null&&t.length)&&((n=window.parent)==null||n.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return c.useEffect(()=>{},[]),l.jsxs(l.Fragment,{children:[l.jsx(e.BlocksWrapper,{ref:r,className:s()+" props-blocks-wrapper-43ec7ac8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:t=>a(),onMouseEnter:t=>o(),onKeyPress:t=>a(),...e.BlocksWrapperProps,children:e.children}),l.jsx("style",{children:`.props-blocks-wrapper-43ec7ac8 {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -1,16 +1,20 @@
1
1
  "use client";
2
- import { jsxs as o, Fragment as d, jsx as r } from "react/jsx-runtime";
2
+ import { jsxs as s, Fragment as d, jsx as a } from "react/jsx-runtime";
3
3
  import { useRef as u, useEffect as f } from "react";
4
- import { isEditing as a } from "../../functions/is-editing.mjs";
4
+ import { isEditing as r } from "../../functions/is-editing.mjs";
5
5
  function h(e) {
6
6
  const c = u(null);
7
7
  function i() {
8
8
  var t;
9
- return "builder-blocks" + ((t = e.blocks) != null && t.length ? "" : " no-blocks");
9
+ return [
10
+ "builder-blocks",
11
+ (t = e.blocks) != null && t.length ? "" : "no-blocks",
12
+ e.classNameProp
13
+ ].filter(Boolean).join(" ");
10
14
  }
11
15
  function l() {
12
16
  var t, n;
13
- a() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
17
+ r() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
14
18
  {
15
19
  type: "builder.clickEmptyBlocks",
16
20
  data: {
@@ -21,9 +25,9 @@ function h(e) {
21
25
  "*"
22
26
  ));
23
27
  }
24
- function s() {
28
+ function o() {
25
29
  var t, n;
26
- a() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
30
+ r() && !((t = e.blocks) != null && t.length) && ((n = window.parent) == null || n.postMessage(
27
31
  {
28
32
  type: "builder.hoverEmptyBlocks",
29
33
  data: {
@@ -35,23 +39,23 @@ function h(e) {
35
39
  ));
36
40
  }
37
41
  return f(() => {
38
- }, []), /* @__PURE__ */ o(d, { children: [
39
- /* @__PURE__ */ r(
42
+ }, []), /* @__PURE__ */ s(d, { children: [
43
+ /* @__PURE__ */ a(
40
44
  e.BlocksWrapper,
41
45
  {
42
46
  ref: c,
43
- className: i() + " props-blocks-wrapper-77bdc7c6",
47
+ className: i() + " props-blocks-wrapper-43ec7ac8",
44
48
  "builder-path": e.path,
45
49
  "builder-parent-id": e.parent,
46
50
  style: e.styleProp,
47
51
  onClick: (t) => l(),
48
- onMouseEnter: (t) => s(),
52
+ onMouseEnter: (t) => o(),
49
53
  onKeyPress: (t) => l(),
50
54
  ...e.BlocksWrapperProps,
51
55
  children: e.children
52
56
  }
53
57
  ),
54
- /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-77bdc7c6 {
58
+ /* @__PURE__ */ a("style", { children: `.props-blocks-wrapper-43ec7ac8 {
55
59
  display: flex;
56
60
  flex-direction: column;
57
61
  align-items: stretch;
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),l=require("../block/block.cjs"),s=require("./blocks-wrapper.cjs");function i(e){var n,r,c;return t.jsx(s,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:(n=e.context)==null?void 0:n.BlocksWrapper,BlocksWrapperProps:(r=e.context)==null?void 0:r.BlocksWrapperProps,children:e.blocks?t.jsx(t.Fragment,{children:(c=e.blocks)==null?void 0:c.map(o=>t.jsx(l,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}module.exports=i;
1
+ "use strict";const t=require("react/jsx-runtime"),l=require("../block/block.cjs"),s=require("./blocks-wrapper.cjs");function a(e){var n,c,r;return t.jsx(s,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,classNameProp:e.className,BlocksWrapper:(n=e.context)==null?void 0:n.BlocksWrapper,BlocksWrapperProps:(c=e.context)==null?void 0:c.BlocksWrapperProps,children:e.blocks?t.jsx(t.Fragment,{children:(r=e.blocks)==null?void 0:r.map(o=>t.jsx(l,{block:o,linkComponent:e.linkComponent,context:e.context,registeredComponents:e.registeredComponents},o.id))}):null})}module.exports=a;
@@ -1,15 +1,16 @@
1
1
  import { jsx as t, Fragment as c } from "react/jsx-runtime";
2
2
  import a from "../block/block.mjs";
3
- import k from "./blocks-wrapper.mjs";
4
- function p(e) {
3
+ import m from "./blocks-wrapper.mjs";
4
+ function B(e) {
5
5
  var o, n, r;
6
6
  return /* @__PURE__ */ t(
7
- k,
7
+ m,
8
8
  {
9
9
  blocks: e.blocks,
10
10
  parent: e.parent,
11
11
  path: e.path,
12
12
  styleProp: e.styleProp,
13
+ classNameProp: e.className,
13
14
  BlocksWrapper: (o = e.context) == null ? void 0 : o.BlocksWrapper,
14
15
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
15
16
  children: e.blocks ? /* @__PURE__ */ t(c, { children: (r = e.blocks) == null ? void 0 : r.map((l) => /* @__PURE__ */ t(
@@ -26,5 +27,5 @@ function p(e) {
26
27
  );
27
28
  }
28
29
  export {
29
- p as default
30
+ B as default
30
31
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.16.16";exports.SDK_VERSION=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.16.17";exports.SDK_VERSION=e;
@@ -1,4 +1,4 @@
1
- const o = "0.16.16";
1
+ const o = "0.16.17";
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.16.16",
4
+ "version": "0.16.17",
5
5
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/nextjs",
6
6
  "repository": {
7
7
  "type": "git",
@@ -13,6 +13,7 @@ export type BlocksWrapperProps = {
13
13
  */
14
14
  BlocksWrapperProps: any;
15
15
  children?: any;
16
+ classNameProp?: string;
16
17
  };
17
18
  import type { BuilderBlock } from "../../types/builder-block.js";
18
19
  declare function BlocksWrapper(props: BlocksWrapperProps): React.JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import type { BuilderContextInterface, RegisteredComponents } from '../../context/types.js';
2
2
  import type { BlocksWrapperProps } from './blocks-wrapper.js';
3
- export type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'>> & {
3
+ export type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps' | 'classNameProp'>> & {
4
4
  context?: BuilderContextInterface;
5
5
  registeredComponents?: RegisteredComponents;
6
6
  linkComponent?: any;
7
+ className?: string;
7
8
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.16.16";
1
+ export declare const SDK_VERSION = "0.16.17";
@@ -13,6 +13,7 @@ export type BlocksWrapperProps = {
13
13
  */
14
14
  BlocksWrapperProps: any;
15
15
  children?: any;
16
+ classNameProp?: string;
16
17
  };
17
18
  import type { BuilderBlock } from "../../types/builder-block.js";
18
19
  declare function BlocksWrapper(props: BlocksWrapperProps): React.JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import type { BuilderContextInterface, RegisteredComponents } from '../../context/types.js';
2
2
  import type { BlocksWrapperProps } from './blocks-wrapper.js';
3
- export type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'>> & {
3
+ export type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps' | 'classNameProp'>> & {
4
4
  context?: BuilderContextInterface;
5
5
  registeredComponents?: RegisteredComponents;
6
6
  linkComponent?: any;
7
+ className?: string;
7
8
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.16.16";
1
+ export declare const SDK_VERSION = "0.16.17";