@builder.io/sdk-react-nextjs 0.13.2 → 0.13.4

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 (59) hide show
  1. package/lib/{node/USE_CLIENT_BUNDLE-2b075311.js → browser/USE_CLIENT_BUNDLE-288752d8.js} +4 -4
  2. package/lib/browser/{USE_CLIENT_BUNDLE-65d8df10.cjs → USE_CLIENT_BUNDLE-94cce7fa.cjs} +1 -1
  3. package/lib/{edge/USE_SERVER_BUNDLE-1a4a2318.js → browser/USE_SERVER_BUNDLE-02c2385b.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-7fb84390.cjs → browser/USE_SERVER_BUNDLE-20569132.cjs} +1 -1
  5. package/lib/browser/{bundle-0a12b387.js → bundle-10ada443.js} +96 -96
  6. package/lib/browser/{bundle-af821e69.cjs → bundle-44e64ae0.cjs} +7 -7
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{node/USE_CLIENT_BUNDLE-902511d8.cjs → edge/USE_CLIENT_BUNDLE-4859795b.cjs} +1 -1
  10. package/lib/{browser/USE_CLIENT_BUNDLE-660c05f1.js → edge/USE_CLIENT_BUNDLE-6fd05768.js} +4 -4
  11. package/lib/{node/USE_SERVER_BUNDLE-2a94723d.js → edge/USE_SERVER_BUNDLE-6e48e5ed.js} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-c44d2651.cjs → edge/USE_SERVER_BUNDLE-70e7e90b.cjs} +1 -1
  13. package/lib/edge/{bundle-d76f7298.js → bundle-66600134.js} +121 -121
  14. package/lib/edge/{bundle-ab7ced06.cjs → bundle-aa7b9a16.cjs} +14 -14
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-4ecfa86c.cjs → node/USE_CLIENT_BUNDLE-5990191b.cjs} +1 -1
  18. package/lib/{edge/USE_CLIENT_BUNDLE-a2d2d15f.js → node/USE_CLIENT_BUNDLE-d7ccf4f8.js} +4 -4
  19. package/lib/{browser/USE_SERVER_BUNDLE-7204eec6.js → node/USE_SERVER_BUNDLE-7a98295a.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-2e3b6eff.cjs → node/USE_SERVER_BUNDLE-b7c27ec7.cjs} +1 -1
  21. package/lib/node/{bundle-903b1df4.js → bundle-2d5f1c0c.js} +5 -5
  22. package/lib/node/{bundle-2f991b0d.cjs → bundle-9b818d40.cjs} +10 -10
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/blocks/columns/columns.d.ts +1 -2
  27. package/types/cjs/blocks/columns/columns.types.d.ts +2 -2
  28. package/types/cjs/blocks/form/form/form.d.ts +3 -3
  29. package/types/cjs/blocks/slot/slot.d.ts +3 -3
  30. package/types/cjs/blocks/symbol/symbol.d.ts +1 -2
  31. package/types/cjs/blocks/symbol/symbol.types.d.ts +2 -2
  32. package/types/cjs/components/block/components/block-wrapper.d.ts +2 -2
  33. package/types/cjs/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  34. package/types/cjs/components/block/components/interactive-element.d.ts +3 -2
  35. package/types/cjs/components/blocks/blocks-wrapper.d.ts +2 -2
  36. package/types/cjs/components/content/content.types.d.ts +1 -8
  37. package/types/cjs/components/content/contentProps.types.d.ts +12 -0
  38. package/types/cjs/components/dynamic-renderer/dynamic-renderer.d.ts +4 -3
  39. package/types/cjs/constants/sdk-version.d.ts +1 -1
  40. package/types/cjs/types/builder-props.d.ts +1 -1
  41. package/types/cjs/types/input.d.ts +1 -0
  42. package/types/cjs/types/typescript.d.ts +0 -3
  43. package/types/esm/blocks/columns/columns.d.ts +1 -2
  44. package/types/esm/blocks/columns/columns.types.d.ts +2 -2
  45. package/types/esm/blocks/form/form/form.d.ts +3 -3
  46. package/types/esm/blocks/slot/slot.d.ts +3 -3
  47. package/types/esm/blocks/symbol/symbol.d.ts +1 -2
  48. package/types/esm/blocks/symbol/symbol.types.d.ts +2 -2
  49. package/types/esm/components/block/components/block-wrapper.d.ts +2 -2
  50. package/types/esm/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  51. package/types/esm/components/block/components/interactive-element.d.ts +3 -2
  52. package/types/esm/components/blocks/blocks-wrapper.d.ts +2 -2
  53. package/types/esm/components/content/content.types.d.ts +1 -8
  54. package/types/esm/components/content/contentProps.types.d.ts +12 -0
  55. package/types/esm/components/dynamic-renderer/dynamic-renderer.d.ts +4 -3
  56. package/types/esm/constants/sdk-version.d.ts +1 -1
  57. package/types/esm/types/builder-props.d.ts +1 -1
  58. package/types/esm/types/input.d.ts +1 -0
  59. package/types/esm/types/typescript.d.ts +0 -3
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as i, Fragment as h, jsxs as E } from "react/jsx-runtime";
3
- import { i as p, g as H, a as $, b as O, c as w, d as R, e as ee, f as P, h as V, _ as D, j as te, l as ne, k as ie, t as ae, m as U, n as ce, o as re, r as le, s as oe, p as de, q as se, u as ue } from "./bundle-903b1df4.js";
3
+ import { i as p, g as H, a as $, b as O, c as w, d as R, e as ee, f as P, h as V, _ as D, j as te, l as ne, k as ie, t as ae, m as U, n as ce, o as re, r as le, s as oe, p as de, q as se, u as ue } from "./bundle-10ada443.js";
4
4
  import { useRef as T, useState as x, useEffect as b, createContext as me, createElement as ge } from "react";
5
- import { p as he } from "./USE_SERVER_BUNDLE-2a94723d.js";
5
+ import { p as he } from "./USE_SERVER_BUNDLE-02c2385b.js";
6
6
  import { useRouter as be } from "next/navigation";
7
7
  function J(e) {
8
8
  return /* @__PURE__ */ i(h, { children: p(e.TagName) ? /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ i(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
@@ -106,7 +106,7 @@ function Re(e) {
106
106
  /* @__PURE__ */ i(
107
107
  e.BlocksWrapper,
108
108
  {
109
- className: c() + " props-blocks-wrapper-4f2c12d8",
109
+ className: c() + " props-blocks-wrapper-7354e098",
110
110
  "builder-path": e.path,
111
111
  "builder-parent-id": e.parent,
112
112
  style: e.styleProp,
@@ -117,7 +117,7 @@ function Re(e) {
117
117
  children: e.children
118
118
  }
119
119
  ),
120
- /* @__PURE__ */ i("style", { children: `.props-blocks-wrapper-4f2c12d8 {
120
+ /* @__PURE__ */ i("style", { children: `.props-blocks-wrapper-7354e098 {
121
121
  display: flex;
122
122
  flex-direction: column;
123
123
  align-items: stretch;
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),a=require("./bundle-af821e69.cjs"),r=require("react"),D=require("./USE_SERVER_BUNDLE-2e3b6eff.cjs"),V=require("next/navigation");function C(e){return t.jsx(t.Fragment,{children:a.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})}):t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})})}function H(e){return t.jsx(C,{TagName:e.link?e.builderLinkComponent||"a":"button",attributes:{...e.attributes,[a.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[a.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},actionAttributes:{},children:e.text})}function U(e){return t.jsx(C,{TagName:e.Wrapper,attributes:a.getBlockProperties({block:e.block,context:e.context}),actionAttributes:a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function $(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}function O(e){function l(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,m;a.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((m=window.parent)==null||m.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function x(){var o,m;a.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((m=window.parent)==null||m.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:l()+" props-blocks-wrapper-4f2c12d8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>x(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-4f2c12d8 {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),a=require("./bundle-44e64ae0.cjs"),r=require("react"),D=require("./USE_SERVER_BUNDLE-20569132.cjs"),V=require("next/navigation");function C(e){return t.jsx(t.Fragment,{children:a.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})}):t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})})}function H(e){return t.jsx(C,{TagName:e.link?e.builderLinkComponent||"a":"button",attributes:{...e.attributes,[a.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[a.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},actionAttributes:{},children:e.text})}function U(e){return t.jsx(C,{TagName:e.Wrapper,attributes:a.getBlockProperties({block:e.block,context:e.context}),actionAttributes:a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function $(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}function O(e){function l(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,m;a.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((m=window.parent)==null||m.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function x(){var o,m;a.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((m=window.parent)==null||m.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:l()+" props-blocks-wrapper-7354e098","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>x(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7354e098 {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { v as s } from "./bundle-d76f7298.js";
2
+ import { v as s } from "./bundle-10ada443.js";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-ab7ced06.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-44e64ae0.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;