@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.
- package/lib/{node/USE_CLIENT_BUNDLE-2b075311.js → browser/USE_CLIENT_BUNDLE-288752d8.js} +4 -4
- package/lib/browser/{USE_CLIENT_BUNDLE-65d8df10.cjs → USE_CLIENT_BUNDLE-94cce7fa.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-1a4a2318.js → browser/USE_SERVER_BUNDLE-02c2385b.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-7fb84390.cjs → browser/USE_SERVER_BUNDLE-20569132.cjs} +1 -1
- package/lib/browser/{bundle-0a12b387.js → bundle-10ada443.js} +96 -96
- package/lib/browser/{bundle-af821e69.cjs → bundle-44e64ae0.cjs} +7 -7
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-902511d8.cjs → edge/USE_CLIENT_BUNDLE-4859795b.cjs} +1 -1
- package/lib/{browser/USE_CLIENT_BUNDLE-660c05f1.js → edge/USE_CLIENT_BUNDLE-6fd05768.js} +4 -4
- package/lib/{node/USE_SERVER_BUNDLE-2a94723d.js → edge/USE_SERVER_BUNDLE-6e48e5ed.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-c44d2651.cjs → edge/USE_SERVER_BUNDLE-70e7e90b.cjs} +1 -1
- package/lib/edge/{bundle-d76f7298.js → bundle-66600134.js} +121 -121
- package/lib/edge/{bundle-ab7ced06.cjs → bundle-aa7b9a16.cjs} +14 -14
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-4ecfa86c.cjs → node/USE_CLIENT_BUNDLE-5990191b.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-a2d2d15f.js → node/USE_CLIENT_BUNDLE-d7ccf4f8.js} +4 -4
- package/lib/{browser/USE_SERVER_BUNDLE-7204eec6.js → node/USE_SERVER_BUNDLE-7a98295a.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-2e3b6eff.cjs → node/USE_SERVER_BUNDLE-b7c27ec7.cjs} +1 -1
- package/lib/node/{bundle-903b1df4.js → bundle-2d5f1c0c.js} +5 -5
- package/lib/node/{bundle-2f991b0d.cjs → bundle-9b818d40.cjs} +10 -10
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/blocks/columns/columns.d.ts +1 -2
- package/types/cjs/blocks/columns/columns.types.d.ts +2 -2
- package/types/cjs/blocks/form/form/form.d.ts +3 -3
- package/types/cjs/blocks/slot/slot.d.ts +3 -3
- package/types/cjs/blocks/symbol/symbol.d.ts +1 -2
- package/types/cjs/blocks/symbol/symbol.types.d.ts +2 -2
- package/types/cjs/components/block/components/block-wrapper.d.ts +2 -2
- package/types/cjs/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
- package/types/cjs/components/block/components/interactive-element.d.ts +3 -2
- package/types/cjs/components/blocks/blocks-wrapper.d.ts +2 -2
- package/types/cjs/components/content/content.types.d.ts +1 -8
- package/types/cjs/components/content/contentProps.types.d.ts +12 -0
- package/types/cjs/components/dynamic-renderer/dynamic-renderer.d.ts +4 -3
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/types/builder-props.d.ts +1 -1
- package/types/cjs/types/input.d.ts +1 -0
- package/types/cjs/types/typescript.d.ts +0 -3
- package/types/esm/blocks/columns/columns.d.ts +1 -2
- package/types/esm/blocks/columns/columns.types.d.ts +2 -2
- package/types/esm/blocks/form/form/form.d.ts +3 -3
- package/types/esm/blocks/slot/slot.d.ts +3 -3
- package/types/esm/blocks/symbol/symbol.d.ts +1 -2
- package/types/esm/blocks/symbol/symbol.types.d.ts +2 -2
- package/types/esm/components/block/components/block-wrapper.d.ts +2 -2
- package/types/esm/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
- package/types/esm/components/block/components/interactive-element.d.ts +3 -2
- package/types/esm/components/blocks/blocks-wrapper.d.ts +2 -2
- package/types/esm/components/content/content.types.d.ts +1 -8
- package/types/esm/components/content/contentProps.types.d.ts +12 -0
- package/types/esm/components/dynamic-renderer/dynamic-renderer.d.ts +4 -3
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/types/builder-props.d.ts +1 -1
- package/types/esm/types/input.d.ts +1 -0
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 +1 @@
|
|
|
1
|
-
"use server";"use strict";const n=require("./bundle-
|
|
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;
|