@builder.io/sdk-react-nextjs 0.14.9 → 0.14.11
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/README.md +50 -38
- package/lib/browser/{USE_CLIENT_BUNDLE-07d1ba4b.js → USE_CLIENT_BUNDLE-3b942ae2.js} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-94a936b5.cjs → browser/USE_CLIENT_BUNDLE-4cb813ce.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-2d91be32.js → browser/USE_SERVER_BUNDLE-0fe135ea.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-37a2c2d3.cjs → browser/USE_SERVER_BUNDLE-ec83933e.cjs} +1 -1
- package/lib/browser/{bundle-9d3cdb5c.cjs → bundle-260ced55.cjs} +11 -11
- package/lib/browser/{bundle-53a4ab4a.js → bundle-76453d46.js} +156 -132
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-aa4a4eb2.js → edge/USE_CLIENT_BUNDLE-42619af6.js} +2 -2
- package/lib/{browser/USE_CLIENT_BUNDLE-5b3511d0.cjs → edge/USE_CLIENT_BUNDLE-dfe5c354.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-d58e151a.cjs → edge/USE_SERVER_BUNDLE-812e699d.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-91781c1b.js → edge/USE_SERVER_BUNDLE-ef053564.js} +1 -1
- package/lib/edge/{bundle-d76be364.js → bundle-19c1b23d.js} +364 -340
- package/lib/edge/{bundle-da19475d.cjs → bundle-c186261f.cjs} +13 -13
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-99299aaa.js → node/USE_CLIENT_BUNDLE-64c45aac.js} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-0d437014.cjs → node/USE_CLIENT_BUNDLE-7dfe38c5.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-4e489369.cjs → node/USE_SERVER_BUNDLE-299ebfe7.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-059335ee.js → node/USE_SERVER_BUNDLE-ed1c8346.js} +1 -1
- package/lib/node/{bundle-49817803.js → bundle-1a5c4f3c.js} +136 -112
- package/lib/node/{bundle-955ea489.cjs → bundle-b5555d47.cjs} +9 -9
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/components/content-variants/helpers.d.ts +1 -1
- package/types/cjs/components/inlined-script.d.ts +1 -1
- package/types/cjs/components/inlined-styles.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/get-content/types.d.ts +8 -0
- package/types/esm/components/content-variants/helpers.d.ts +1 -1
- package/types/esm/components/inlined-script.d.ts +1 -1
- package/types/esm/components/inlined-styles.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/get-content/types.d.ts +8 -0
package/lib/edge/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-dfe5c354.cjs"),e=require("./bundle-c186261f.cjs");require("react/jsx-runtime");require("react");require("./USE_SERVER_BUNDLE-812e699d.cjs");require("next/navigation");require("lru-cache");exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;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.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/edge/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as n, F as m, d as c, S as p, V as g } from "./USE_CLIENT_BUNDLE-
|
|
2
|
-
import { B as l, C as u, w as E, S, T as f, F as B, p as C, E as h, G as x, q as b, z as y, c as F, j as P, x as T, y as k, D as w, A as R } from "./bundle-
|
|
1
|
+
import { c as n, F as m, d as c, S as p, V as g } from "./USE_CLIENT_BUNDLE-42619af6.js";
|
|
2
|
+
import { B as l, C as u, w as E, S, T as f, F as B, p as C, E as h, G as x, q as b, z as y, c as F, j as P, x as T, y as k, D as w, A as R } from "./bundle-19c1b23d.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./USE_SERVER_BUNDLE-
|
|
5
|
+
import "./USE_SERVER_BUNDLE-ef053564.js";
|
|
6
6
|
import "next/navigation";
|
|
7
7
|
import "lru-cache";
|
|
8
8
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, Fragment as C, jsxs as w } from "react/jsx-runtime";
|
|
3
|
-
import { i as X, g as _, a as U, b as $, c as E, d as P, e as Y, f as q, h as H, _ as V, j as Z, l as p, k as ee, t as te, m as D, n as ne, o as ie, r as ae, s as ce, p as re, q as le, u as oe } from "./bundle-
|
|
3
|
+
import { i as X, g as _, a as U, b as $, c as E, d as P, e as Y, f as q, h as H, _ as V, j as Z, l as p, k as ee, t as te, m as D, n as ne, o as ie, r as ae, s as ce, p as re, q as le, u as oe } from "./bundle-1a5c4f3c.js";
|
|
4
4
|
import { useRef as R, useState as y, useEffect as f, createContext as de } from "react";
|
|
5
|
-
import { p as se } from "./USE_SERVER_BUNDLE-
|
|
5
|
+
import { p as se } from "./USE_SERVER_BUNDLE-ed1c8346.js";
|
|
6
6
|
import { useRouter as ue } from "next/navigation";
|
|
7
7
|
function O(e) {
|
|
8
8
|
return /* @__PURE__ */ a(C, { children: X(e.TagName) ? /* @__PURE__ */ a(C, { children: /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ a(C, { children: typeof e.TagName == "string" ? /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ a(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
@@ -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-b5555d47.cjs"),o=require("react"),_=require("./USE_SERVER_BUNDLE-299ebfe7.cjs"),z=require("next/navigation");function E(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(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}function M(e){return t.jsx(E,{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 D(e){return t.jsx(E,{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 V(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 H(e){function r(){var l;return"builder-blocks"+((l=e.blocks)!=null&&l.length?"":" no-blocks")}function m(){var l,b;a.isEditing()&&!((l=e.blocks)!=null&&l.length)&&((b=window.parent)==null||b.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function S(){var l,b;a.isEditing()&&!((l=e.blocks)!=null&&l.length)&&((b=window.parent)==null||b.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:r()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:l=>m(),onMouseEnter:l=>S(),onKeyPress:l=>m(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
|
|
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-b5555d47.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
|