@builder.io/sdk-react-nextjs 0.7.1-0 → 0.7.1-1
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/browser/{USE_CLIENT_BUNDLE-9195e6a5.js → USE_CLIENT_BUNDLE-34ca6573.js} +1 -1
- package/lib/browser/{USE_CLIENT_BUNDLE-7a3bf41a.mjs → USE_CLIENT_BUNDLE-35cf57f2.mjs} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-f184d7eb.mjs → browser/USE_SERVER_BUNDLE-5f0752b4.mjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-3f12faf4.js → browser/USE_SERVER_BUNDLE-da1cf240.js} +1 -1
- package/lib/browser/{bundle-7285a09d.mjs → bundle-f0e86750.mjs} +522 -502
- package/lib/browser/bundle-fa4c07cb.js +76 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/edge/{USE_CLIENT_BUNDLE-3cca560e.js → USE_CLIENT_BUNDLE-2841cf29.js} +1 -1
- package/lib/edge/{USE_CLIENT_BUNDLE-4a0cfa69.mjs → USE_CLIENT_BUNDLE-aeac6d00.mjs} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-22e86776.mjs → edge/USE_SERVER_BUNDLE-015ab545.mjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-cd844269.js → edge/USE_SERVER_BUNDLE-ef1618a6.js} +1 -1
- package/lib/edge/{bundle-a5949d33.mjs → bundle-3c711a0f.mjs} +1936 -1888
- package/lib/edge/bundle-bfbd5fa6.js +96 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/node/USE_CLIENT_BUNDLE-a30d8b97.js +23 -0
- package/lib/node/USE_CLIENT_BUNDLE-fc82531c.mjs +657 -0
- package/lib/{browser/USE_SERVER_BUNDLE-e5c2279a.mjs → node/USE_SERVER_BUNDLE-25e36fa7.mjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-d7b13097.js → node/USE_SERVER_BUNDLE-b26e79d4.js} +1 -1
- package/lib/node/bundle-23b73f20.js +116 -0
- package/lib/node/{bundle-0358b224.mjs → bundle-4a8d8d92.mjs} +783 -640
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +22 -23
- package/package.json +1 -2
- package/types/functions/evaluate/choose-eval.d.ts +6 -0
- package/types/functions/evaluate/evaluate.d.ts +1 -5
- package/types/functions/evaluate/helpers.d.ts +7 -1
- package/types/functions/get-content/types.d.ts +94 -3
- package/lib/browser/bundle-620ae296.js +0 -76
- package/lib/edge/bundle-a0f5cad2.js +0 -96
- package/lib/node/USE_CLIENT_BUNDLE-63c7fe77.js +0 -61
- package/lib/node/USE_CLIENT_BUNDLE-d9e90ed7.mjs +0 -747
- package/lib/node/bundle-630ffe6d.js +0 -76
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-
|
|
1
|
+
"use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-fa4c07cb.js"),o=require("react"),_=require("./USE_SERVER_BUNDLE-da1cf240.js"),M=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{role:"button",...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-35669e6c",children:e.text})}),t.jsx("style",{children:`.button-35669e6c {
|
|
2
2
|
all: unset;
|
|
3
3
|
}`})]})}function A(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}function V(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.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," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function z(e){function a(){var s;return"builder-blocks"+((s=e.blocks)!=null&&s.length?"":" no-blocks")}function g(){var s,x;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function h(){var s,x;c.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:a()+" div-02c7a115","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>g(),onMouseEnter:s=>h(),onKeyPress:s=>g(),children:e.children}),t.jsx("style",{children:`.div-02c7a115 {
|
|
4
4
|
display: flex;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as w, Fragment as g, jsx as c } from "react/jsx-runtime";
|
|
3
|
-
import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-
|
|
3
|
+
import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-f0e86750.mjs";
|
|
4
4
|
import { useRef as j, useState as y, useEffect as x, createContext as ie, createElement as ae } from "react";
|
|
5
|
-
import { p as ce } from "./USE_SERVER_BUNDLE-
|
|
5
|
+
import { p as ce } from "./USE_SERVER_BUNDLE-5f0752b4.mjs";
|
|
6
6
|
import { useRouter as re } from "next/navigation";
|
|
7
7
|
function ge(e) {
|
|
8
8
|
return /* @__PURE__ */ w(g, { children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use server";"use strict";const n=require("./bundle-
|
|
1
|
+
"use server";"use strict";const n=require("./bundle-fa4c07cb.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
|