@builder.io/sdk-react-nextjs 0.13.1 → 0.13.2
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-d6e6f95b.cjs → browser/USE_CLIENT_BUNDLE-65d8df10.cjs} +1 -1
- package/lib/browser/{USE_CLIENT_BUNDLE-0e2e786f.js → USE_CLIENT_BUNDLE-660c05f1.js} +5 -5
- package/lib/{edge/USE_SERVER_BUNDLE-eebc5fb9.cjs → browser/USE_SERVER_BUNDLE-2e3b6eff.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-2f4d4c84.js → browser/USE_SERVER_BUNDLE-7204eec6.js} +1 -1
- package/lib/browser/{bundle-a759c640.js → bundle-0a12b387.js} +268 -268
- package/lib/browser/{bundle-8768227a.cjs → bundle-af821e69.cjs} +17 -17
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +8 -8
- package/lib/{browser/USE_CLIENT_BUNDLE-1c19fc49.cjs → edge/USE_CLIENT_BUNDLE-4ecfa86c.cjs} +1 -1
- package/lib/{node/USE_CLIENT_BUNDLE-ea8e582d.js → edge/USE_CLIENT_BUNDLE-a2d2d15f.js} +5 -5
- package/lib/{node/USE_SERVER_BUNDLE-18bb0dcb.js → edge/USE_SERVER_BUNDLE-1a4a2318.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-78694df8.cjs → edge/USE_SERVER_BUNDLE-7fb84390.cjs} +1 -1
- package/lib/edge/{bundle-67a092ad.cjs → bundle-ab7ced06.cjs} +20 -20
- package/lib/edge/{bundle-117e4014.js → bundle-d76f7298.js} +296 -296
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +8 -8
- package/lib/{edge/USE_CLIENT_BUNDLE-3b67982b.js → node/USE_CLIENT_BUNDLE-2b075311.js} +5 -5
- package/lib/{edge/USE_CLIENT_BUNDLE-d79f63a1.cjs → node/USE_CLIENT_BUNDLE-902511d8.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-c5bf5f08.js → node/USE_SERVER_BUNDLE-2a94723d.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-eda321c7.cjs → node/USE_SERVER_BUNDLE-c44d2651.cjs} +1 -1
- package/lib/node/{bundle-1f2f3033.cjs → bundle-2f991b0d.cjs} +4 -4
- package/lib/node/{bundle-457b4e1d.js → bundle-903b1df4.js} +106 -106
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +8 -8
- package/package.json +1 -1
- package/types/cjs/blocks/form/form/component-info.d.ts +2 -0
- package/types/cjs/blocks/form/form/form.d.ts +33 -0
- package/types/cjs/blocks/form/input/component-info.d.ts +2 -0
- package/types/cjs/blocks/form/input/input.d.ts +15 -0
- package/types/cjs/blocks/form/select/component-info.d.ts +2 -0
- package/types/cjs/blocks/form/select/select.d.ts +16 -0
- package/types/cjs/blocks/form/submit-button/component-info.d.ts +2 -0
- package/types/cjs/blocks/form/submit-button/submit-button.d.ts +10 -0
- package/types/cjs/blocks/slot/slot.d.ts +3 -6
- package/types/cjs/constants/extra-components.d.ts +7 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/get-env.d.ts +2 -0
- package/types/cjs/functions/get.d.ts +1 -0
- package/types/esm/blocks/form/form/component-info.d.ts +2 -0
- package/types/esm/blocks/form/form/form.d.ts +33 -0
- package/types/esm/blocks/form/input/component-info.d.ts +2 -0
- package/types/esm/blocks/form/input/input.d.ts +15 -0
- package/types/esm/blocks/form/select/component-info.d.ts +2 -0
- package/types/esm/blocks/form/select/select.d.ts +16 -0
- package/types/esm/blocks/form/submit-button/component-info.d.ts +2 -0
- package/types/esm/blocks/form/submit-button/submit-button.d.ts +10 -0
- package/types/esm/blocks/slot/slot.d.ts +3 -6
- package/types/esm/constants/extra-components.d.ts +7 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/get-env.d.ts +2 -0
- package/types/esm/functions/get.d.ts +1 -0
|
@@ -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-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 {
|
|
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-
|
|
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-0a12b387.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-7204eec6.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 }) }) }) });
|
|
@@ -702,8 +702,8 @@ export {
|
|
|
702
702
|
Ne as S,
|
|
703
703
|
We as V,
|
|
704
704
|
Re as a,
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
705
|
+
je as b,
|
|
706
|
+
we as c,
|
|
707
|
+
Te as d,
|
|
708
708
|
Ke as e
|
|
709
709
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use server";"use strict";const n=require("./bundle-
|
|
1
|
+
"use server";"use strict";const n=require("./bundle-af821e69.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
|