@builder.io/sdk-react-nextjs 0.14.3 → 0.14.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-516849e4.cjs → browser/USE_CLIENT_BUNDLE-08003c52.cjs} +1 -1
- package/lib/browser/{USE_CLIENT_BUNDLE-1270c8f4.js → USE_CLIENT_BUNDLE-c0e35c58.js} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-28ff24f9.cjs → browser/USE_SERVER_BUNDLE-b30f1d3a.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-f29a4a48.js → browser/USE_SERVER_BUNDLE-d6b00f9f.js} +1 -1
- package/lib/browser/{bundle-333e93b9.js → bundle-79c33004.js} +312 -308
- package/lib/browser/{bundle-bebe179f.cjs → bundle-cbefb279.cjs} +21 -21
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-6ecc05ac.js → edge/USE_CLIENT_BUNDLE-7c938590.js} +2 -2
- package/lib/{browser/USE_CLIENT_BUNDLE-c1f06a46.cjs → edge/USE_CLIENT_BUNDLE-dde1380d.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-6860cf7c.cjs → edge/USE_SERVER_BUNDLE-1c955cc6.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-6a09d70e.js → edge/USE_SERVER_BUNDLE-61b658ba.js} +1 -1
- package/lib/edge/{bundle-49ee510b.js → bundle-57c447de.js} +428 -424
- package/lib/edge/{bundle-8abf9251.cjs → bundle-98141bbd.cjs} +29 -29
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-e0cb789c.cjs → node/USE_CLIENT_BUNDLE-1c0899f9.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-91b3973b.js → node/USE_CLIENT_BUNDLE-693a8b68.js} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-99e0334d.js → node/USE_SERVER_BUNDLE-864233be.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-24e8f107.cjs → node/USE_SERVER_BUNDLE-986a7936.cjs} +1 -1
- package/lib/node/{bundle-e917fcc7.cjs → bundle-3d26f41d.cjs} +2 -2
- package/lib/node/{bundle-35759433.js → bundle-d42115c9.js} +17 -13
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/get-builder-search-params/index.d.ts +1 -4
- package/types/cjs/functions/is-editing.d.ts +2 -1
- package/types/cjs/functions/is-previewing.d.ts +2 -1
- package/types/cjs/helpers/search/search.d.ts +5 -0
- package/types/cjs/index.d.ts +5 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/get-builder-search-params/index.d.ts +1 -4
- package/types/esm/functions/is-editing.d.ts +2 -1
- package/types/esm/functions/is-previewing.d.ts +2 -1
- package/types/esm/helpers/search/search.d.ts +5 -0
- package/types/esm/index.d.ts +5 -2
|
@@ -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-cbefb279.cjs"),r=require("react"),D=require("./USE_SERVER_BUNDLE-b30f1d3a.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,{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"}},TagName:e.link?e.builderLinkComponent||"a":"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-
|
|
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-79c33004.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-d6b00f9f.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 }) }) }) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use server";"use strict";const n=require("./bundle-
|
|
1
|
+
"use server";"use strict";const n=require("./bundle-cbefb279.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
|