@builder.io/sdk-react-nextjs 0.13.1 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-0e2e786f.js → USE_CLIENT_BUNDLE-04cd188b.js} +7 -7
  2. package/lib/{node/USE_CLIENT_BUNDLE-d6e6f95b.cjs → browser/USE_CLIENT_BUNDLE-dcad73d0.cjs} +1 -1
  3. package/lib/{edge/USE_SERVER_BUNDLE-2f4d4c84.js → browser/USE_SERVER_BUNDLE-498895bc.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-eebc5fb9.cjs → browser/USE_SERVER_BUNDLE-f6de6931.cjs} +1 -1
  5. package/lib/browser/{bundle-8768227a.cjs → bundle-09521c43.cjs} +17 -17
  6. package/lib/browser/{bundle-a759c640.js → bundle-16af19fc.js} +270 -270
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +8 -8
  9. package/lib/{browser/USE_CLIENT_BUNDLE-1c19fc49.cjs → edge/USE_CLIENT_BUNDLE-403b6348.cjs} +1 -1
  10. package/lib/{node/USE_CLIENT_BUNDLE-ea8e582d.js → edge/USE_CLIENT_BUNDLE-5b75ae27.js} +7 -7
  11. package/lib/{node/USE_SERVER_BUNDLE-18bb0dcb.js → edge/USE_SERVER_BUNDLE-1f2bfec0.js} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-78694df8.cjs → edge/USE_SERVER_BUNDLE-c05264ac.cjs} +1 -1
  13. package/lib/edge/{bundle-67a092ad.cjs → bundle-10fb1352.cjs} +23 -23
  14. package/lib/edge/{bundle-117e4014.js → bundle-32e28c53.js} +298 -298
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +8 -8
  17. package/lib/{edge/USE_CLIENT_BUNDLE-d79f63a1.cjs → node/USE_CLIENT_BUNDLE-85cf7e92.cjs} +1 -1
  18. package/lib/{edge/USE_CLIENT_BUNDLE-3b67982b.js → node/USE_CLIENT_BUNDLE-d1e6dcd3.js} +7 -7
  19. package/lib/{browser/USE_SERVER_BUNDLE-eda321c7.cjs → node/USE_SERVER_BUNDLE-1aafe1f0.cjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-c5bf5f08.js → node/USE_SERVER_BUNDLE-601fafbe.js} +1 -1
  21. package/lib/node/{bundle-1f2f3033.cjs → bundle-3f825965.cjs} +5 -5
  22. package/lib/node/{bundle-457b4e1d.js → bundle-42fea3bc.js} +108 -108
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +8 -8
  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/component-info.d.ts +2 -0
  29. package/types/cjs/blocks/form/form/form.d.ts +33 -0
  30. package/types/cjs/blocks/form/input/component-info.d.ts +2 -0
  31. package/types/cjs/blocks/form/input/input.d.ts +15 -0
  32. package/types/cjs/blocks/form/select/component-info.d.ts +2 -0
  33. package/types/cjs/blocks/form/select/select.d.ts +16 -0
  34. package/types/cjs/blocks/form/submit-button/component-info.d.ts +2 -0
  35. package/types/cjs/blocks/form/submit-button/submit-button.d.ts +10 -0
  36. package/types/cjs/blocks/slot/slot.d.ts +3 -6
  37. package/types/cjs/blocks/symbol/symbol.d.ts +1 -2
  38. package/types/cjs/blocks/symbol/symbol.types.d.ts +2 -2
  39. package/types/cjs/components/block/components/block-wrapper.d.ts +2 -2
  40. package/types/cjs/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  41. package/types/cjs/components/block/components/interactive-element.d.ts +3 -2
  42. package/types/cjs/components/blocks/blocks-wrapper.d.ts +2 -2
  43. package/types/cjs/components/content/content.types.d.ts +1 -8
  44. package/types/cjs/components/content/contentProps.types.d.ts +12 -0
  45. package/types/cjs/components/dynamic-renderer/dynamic-renderer.d.ts +4 -3
  46. package/types/cjs/constants/extra-components.d.ts +7 -0
  47. package/types/cjs/constants/sdk-version.d.ts +1 -1
  48. package/types/cjs/functions/get-env.d.ts +2 -0
  49. package/types/cjs/functions/get.d.ts +1 -0
  50. package/types/cjs/types/builder-props.d.ts +1 -1
  51. package/types/cjs/types/input.d.ts +1 -0
  52. package/types/cjs/types/typescript.d.ts +0 -3
  53. package/types/esm/blocks/columns/columns.d.ts +1 -2
  54. package/types/esm/blocks/columns/columns.types.d.ts +2 -2
  55. package/types/esm/blocks/form/form/component-info.d.ts +2 -0
  56. package/types/esm/blocks/form/form/form.d.ts +33 -0
  57. package/types/esm/blocks/form/input/component-info.d.ts +2 -0
  58. package/types/esm/blocks/form/input/input.d.ts +15 -0
  59. package/types/esm/blocks/form/select/component-info.d.ts +2 -0
  60. package/types/esm/blocks/form/select/select.d.ts +16 -0
  61. package/types/esm/blocks/form/submit-button/component-info.d.ts +2 -0
  62. package/types/esm/blocks/form/submit-button/submit-button.d.ts +10 -0
  63. package/types/esm/blocks/slot/slot.d.ts +3 -6
  64. package/types/esm/blocks/symbol/symbol.d.ts +1 -2
  65. package/types/esm/blocks/symbol/symbol.types.d.ts +2 -2
  66. package/types/esm/components/block/components/block-wrapper.d.ts +2 -2
  67. package/types/esm/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  68. package/types/esm/components/block/components/interactive-element.d.ts +3 -2
  69. package/types/esm/components/blocks/blocks-wrapper.d.ts +2 -2
  70. package/types/esm/components/content/content.types.d.ts +1 -8
  71. package/types/esm/components/content/contentProps.types.d.ts +12 -0
  72. package/types/esm/components/dynamic-renderer/dynamic-renderer.d.ts +4 -3
  73. package/types/esm/constants/extra-components.d.ts +7 -0
  74. package/types/esm/constants/sdk-version.d.ts +1 -1
  75. package/types/esm/functions/get-env.d.ts +2 -0
  76. package/types/esm/functions/get.d.ts +1 -0
  77. package/types/esm/types/builder-props.d.ts +1 -1
  78. package/types/esm/types/input.d.ts +1 -0
  79. package/types/esm/types/typescript.d.ts +0 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-8768227a.cjs"),t=require("./USE_CLIENT_BUNDLE-1c19fc49.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-eda321c7.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-09521c43.cjs"),t=require("./USE_CLIENT_BUNDLE-dcad73d0.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-f6de6931.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
@@ -1,10 +1,10 @@
1
- import { B as i, x as c, C as m, R as g, w as p, S as l, T as d, G as C, p as u, F as B, H as E, q as S, I as f, A as R, J as b, c as h, j as x, y as k, z as y, E as F, D as P } from "./bundle-a759c640.js";
2
- import { b as w, F as A, c as I, S as V, V as j } from "./USE_CLIENT_BUNDLE-0e2e786f.js";
1
+ import { B as i, x as c, C as m, R as g, w as p, S as d, T as l, G as C, p as u, F as B, H as E, q as S, I as f, A as R, J as h, c as x, j as b, y as k, z as y, E as F, D as P } from "./bundle-16af19fc.js";
2
+ import { c as w, F as A, d as I, S as V, V as j } from "./USE_CLIENT_BUNDLE-04cd188b.js";
3
3
  import "lru-cache";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "next/navigation";
7
- import "./USE_SERVER_BUNDLE-c5bf5f08.js";
7
+ import "./USE_SERVER_BUNDLE-498895bc.js";
8
8
  export {
9
9
  i as Blocks,
10
10
  w as Button,
@@ -15,8 +15,8 @@ export {
15
15
  g as RenderBlocks,
16
16
  p as RenderContent,
17
17
  V as Section,
18
- l as Symbol,
19
- d as Text,
18
+ d as Symbol,
19
+ l as Text,
20
20
  j as Video,
21
21
  C as _processContentResult,
22
22
  u as createRegisterComponentMessage,
@@ -25,9 +25,9 @@ export {
25
25
  S as fetchOneEntry,
26
26
  f as getAllContent,
27
27
  R as getBuilderSearchParams,
28
- b as getContent,
29
- h as isEditing,
30
- x as isPreviewing,
28
+ h as getContent,
29
+ x as isEditing,
30
+ b as isPreviewing,
31
31
  k as register,
32
32
  y as setEditorSettings,
33
33
  F as subscribeToEditor,
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),a=require("./bundle-8768227a.cjs"),r=require("react"),D=require("./USE_SERVER_BUNDLE-eda321c7.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-10fb1352.cjs"),r=require("react"),D=require("./USE_SERVER_BUNDLE-c05264ac.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,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-457b4e1d.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-32e28c53.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-18bb0dcb.js";
5
+ import { p as he } from "./USE_SERVER_BUNDLE-1f2bfec0.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;
@@ -702,8 +702,8 @@ export {
702
702
  Ne as S,
703
703
  We as V,
704
704
  Re as a,
705
- we as b,
706
- Te as c,
707
- je as d,
705
+ je as b,
706
+ we as c,
707
+ Te as d,
708
708
  Ke as e
709
709
  };
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { v as s } from "./bundle-457b4e1d.js";
2
+ import { v as s } from "./bundle-32e28c53.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-1f2f3033.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-10fb1352.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;