@olonjs/core 1.1.13 → 1.1.15
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/dist/index.d.ts +17 -0
- package/dist/olonjs-core-runtime.js +47 -39
- package/dist/olonjs-core.js +57 -49
- package/dist/olonjs-core.umd.cjs +25 -25
- package/dist/runtime.d.ts +17 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -227,6 +227,14 @@ declare function buildPageManifest(input: BuildPageContractInput): OlonJsPageMan
|
|
|
227
227
|
|
|
228
228
|
export declare function buildPageManifestHref(slug: string): string;
|
|
229
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Builds the request body for `POST /save-stream`. Stays on the legacy
|
|
232
|
+
* single-file shape (`{ path, content, message }`) when no additional files
|
|
233
|
+
* are provided, so existing callers are unaffected. Switches to the `files[]`
|
|
234
|
+
* bundle shape (primary path/content + additionalFiles) otherwise.
|
|
235
|
+
*/
|
|
236
|
+
export declare function buildSaveStreamRequestBody(input: StartCloudSaveStreamInput): Record<string, unknown>;
|
|
237
|
+
|
|
230
238
|
declare function buildSelectionPath(root: HTMLElement, sectionEl: HTMLElement): SelectionPath;
|
|
231
239
|
|
|
232
240
|
declare function buildSiteManifest({ pages, schemas, submissionSchemas, siteConfig, }: BuildSiteManifestInput): OlonJsSiteManifestIndex;
|
|
@@ -923,6 +931,11 @@ declare interface RuntimeResolutionResult {
|
|
|
923
931
|
collectionContext: CollectionResolutionContext | null;
|
|
924
932
|
}
|
|
925
933
|
|
|
934
|
+
declare interface SaveStreamBundleFile {
|
|
935
|
+
path: string;
|
|
936
|
+
content: unknown;
|
|
937
|
+
}
|
|
938
|
+
|
|
926
939
|
declare interface SaveStreamDoneEvent {
|
|
927
940
|
deployUrl?: string;
|
|
928
941
|
commitSha?: string;
|
|
@@ -1006,6 +1019,10 @@ declare interface StartCloudSaveStreamInput {
|
|
|
1006
1019
|
path: string;
|
|
1007
1020
|
content: unknown;
|
|
1008
1021
|
message?: string;
|
|
1022
|
+
/** Additional repo files committed atomically alongside the primary path/content (e.g. site.json, menu.json). */
|
|
1023
|
+
additionalFiles?: SaveStreamBundleFile[];
|
|
1024
|
+
/** Declares which global scopes changed, mirroring the server's ERR_*_CONFIG_REQUIRED validation. */
|
|
1025
|
+
changedScopes?: Array<'page' | 'site' | 'menu'>;
|
|
1009
1026
|
signal?: AbortSignal;
|
|
1010
1027
|
onStep: (event: SaveStreamStepEvent) => void;
|
|
1011
1028
|
onLog?: (event: SaveStreamLogEvent) => void;
|
|
@@ -683,7 +683,7 @@ function Se(e, t) {
|
|
|
683
683
|
const s = n.replace(/^\/+/, "");
|
|
684
684
|
return `${r}${s}`;
|
|
685
685
|
}
|
|
686
|
-
const dt = Oe({}),
|
|
686
|
+
const dt = Oe({}), zo = () => _e(dt);
|
|
687
687
|
class ir extends ot {
|
|
688
688
|
constructor(t) {
|
|
689
689
|
super(t), this.state = { hasError: !1, error: null };
|
|
@@ -4399,10 +4399,10 @@ function ko(e) {
|
|
|
4399
4399
|
/* @__PURE__ */ u.jsx(xe, { path: "*", element: /* @__PURE__ */ u.jsx(e.NotFoundComponent, {}) })
|
|
4400
4400
|
] });
|
|
4401
4401
|
}
|
|
4402
|
-
function
|
|
4402
|
+
function No({ config: e }) {
|
|
4403
4403
|
return /* @__PURE__ */ u.jsx(cr, { config: e, routesBuilder: ko });
|
|
4404
4404
|
}
|
|
4405
|
-
function
|
|
4405
|
+
function Io(e) {
|
|
4406
4406
|
const t = Rt(e.pages, e.slug);
|
|
4407
4407
|
if (!t) return null;
|
|
4408
4408
|
const o = at(
|
|
@@ -4431,7 +4431,7 @@ function No(e) {
|
|
|
4431
4431
|
collectionContext: r.collectionContext
|
|
4432
4432
|
};
|
|
4433
4433
|
}
|
|
4434
|
-
const jo = /\.(jpg|jpeg|png|gif|svg|pdf|webp|mp4|webm|ogg)$/i, So = /^[a-zA-Z][a-zA-Z\d+\-.]*:/, Co = (e) => So.test(e),
|
|
4434
|
+
const jo = /\.(jpg|jpeg|png|gif|svg|pdf|webp|mp4|webm|ogg)$/i, So = /^[a-zA-Z][a-zA-Z\d+\-.]*:/, Co = (e) => So.test(e), $o = (e, t = "default", o = "/") => {
|
|
4435
4435
|
const r = e.trim();
|
|
4436
4436
|
if (!r || Co(r) || r.startsWith("#"))
|
|
4437
4437
|
return r;
|
|
@@ -4441,7 +4441,7 @@ const jo = /\.(jpg|jpeg|png|gif|svg|pdf|webp|mp4|webm|ogg)$/i, So = /^[a-zA-Z][a
|
|
|
4441
4441
|
return Se(r.startsWith("/") ? r : `/${r}`, o);
|
|
4442
4442
|
const s = r.replace(/^\//, "");
|
|
4443
4443
|
return Se(`/assets/${t}/${s}`, o);
|
|
4444
|
-
},
|
|
4444
|
+
}, Mo = {
|
|
4445
4445
|
UPDATE_DRAFTS: "jsonpages:update-drafts",
|
|
4446
4446
|
SYNC_SELECTION: "jsonpages:sync-selection",
|
|
4447
4447
|
SECTION_SELECT: "jsonpages:section-select",
|
|
@@ -4453,30 +4453,41 @@ const jo = /\.(jpg|jpeg|png|gif|svg|pdf|webp|mp4|webm|ogg)$/i, So = /^[a-zA-Z][a
|
|
|
4453
4453
|
STAGE_READY: "jsonpages:stage-ready",
|
|
4454
4454
|
WEBMCP_TOOL_CALL: "olonjs:webmcp:tool-call",
|
|
4455
4455
|
WEBMCP_TOOL_RESULT: "olonjs:webmcp:tool-result"
|
|
4456
|
-
},
|
|
4456
|
+
}, Lo = I.object({
|
|
4457
4457
|
url: I.string(),
|
|
4458
4458
|
alt: I.string().optional()
|
|
4459
|
-
}).describe("ui:image-picker"),
|
|
4459
|
+
}).describe("ui:image-picker"), Do = I.object({
|
|
4460
4460
|
id: I.string().optional(),
|
|
4461
4461
|
anchorId: I.string().optional().describe("ui:text")
|
|
4462
|
-
}), Do = I.object({
|
|
4463
|
-
id: I.string().optional()
|
|
4464
4462
|
}), Fo = I.object({
|
|
4465
|
-
id: I.string()
|
|
4463
|
+
id: I.string().optional()
|
|
4466
4464
|
}), Wo = I.object({
|
|
4465
|
+
id: I.string()
|
|
4466
|
+
}), Bo = I.object({
|
|
4467
4467
|
paddingTop: I.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("md").describe("ui:select"),
|
|
4468
4468
|
paddingBottom: I.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("md").describe("ui:select"),
|
|
4469
4469
|
theme: I.enum(["dark", "light", "accent"]).default("dark").describe("ui:select"),
|
|
4470
4470
|
container: I.enum(["boxed", "fluid"]).default("boxed").describe("ui:select")
|
|
4471
|
-
}),
|
|
4471
|
+
}), Uo = I.object({
|
|
4472
4472
|
id: I.string().optional(),
|
|
4473
4473
|
label: I.string().describe("ui:text"),
|
|
4474
4474
|
href: I.string().describe("ui:text"),
|
|
4475
4475
|
variant: I.enum(["primary", "secondary", "accent"]).default("primary").describe("ui:select")
|
|
4476
|
-
}),
|
|
4476
|
+
}), Go = I.object({
|
|
4477
4477
|
recipientEmail: I.string().optional().describe("ui:text")
|
|
4478
4478
|
});
|
|
4479
4479
|
function Eo(e) {
|
|
4480
|
+
return e.additionalFiles && e.additionalFiles.length > 0 ? {
|
|
4481
|
+
files: [{ path: e.path, content: e.content }, ...e.additionalFiles],
|
|
4482
|
+
...e.changedScopes ? { changedScopes: e.changedScopes } : {},
|
|
4483
|
+
message: e.message
|
|
4484
|
+
} : {
|
|
4485
|
+
path: e.path,
|
|
4486
|
+
content: e.content,
|
|
4487
|
+
message: e.message
|
|
4488
|
+
};
|
|
4489
|
+
}
|
|
4490
|
+
function To(e) {
|
|
4480
4491
|
const t = e.split(`
|
|
4481
4492
|
`).map((n) => n.trimEnd()).filter((n) => n.length > 0);
|
|
4482
4493
|
if (t.length === 0) return null;
|
|
@@ -4492,7 +4503,7 @@ function Eo(e) {
|
|
|
4492
4503
|
return { event: o, data: r.join(`
|
|
4493
4504
|
`) };
|
|
4494
4505
|
}
|
|
4495
|
-
async function
|
|
4506
|
+
async function Vo(e) {
|
|
4496
4507
|
var a;
|
|
4497
4508
|
const t = await fetch(`${e.apiBaseUrl}/save-stream`, {
|
|
4498
4509
|
method: "POST",
|
|
@@ -4500,11 +4511,7 @@ async function Go(e) {
|
|
|
4500
4511
|
"Content-Type": "application/json",
|
|
4501
4512
|
Authorization: `Bearer ${e.apiKey}`
|
|
4502
4513
|
},
|
|
4503
|
-
body: JSON.stringify(
|
|
4504
|
-
path: e.path,
|
|
4505
|
-
content: e.content,
|
|
4506
|
-
message: e.message
|
|
4507
|
-
}),
|
|
4514
|
+
body: JSON.stringify(Eo(e)),
|
|
4508
4515
|
signal: e.signal
|
|
4509
4516
|
});
|
|
4510
4517
|
if (!t.ok || !t.body) {
|
|
@@ -4521,7 +4528,7 @@ async function Go(e) {
|
|
|
4521
4528
|
`);
|
|
4522
4529
|
n = l ? "" : d.pop() ?? "";
|
|
4523
4530
|
for (const g of d) {
|
|
4524
|
-
const h =
|
|
4531
|
+
const h = To(g);
|
|
4525
4532
|
if (h && h.data) {
|
|
4526
4533
|
if (h.event === "step") {
|
|
4527
4534
|
const b = JSON.parse(h.data);
|
|
@@ -4543,7 +4550,7 @@ async function Go(e) {
|
|
|
4543
4550
|
if (!s)
|
|
4544
4551
|
throw new Error("Cloud save stream ended before completion.");
|
|
4545
4552
|
}
|
|
4546
|
-
const
|
|
4553
|
+
const Jo = [
|
|
4547
4554
|
{
|
|
4548
4555
|
id: "commit",
|
|
4549
4556
|
label: "Commit",
|
|
@@ -4580,40 +4587,41 @@ const Vo = [
|
|
|
4580
4587
|
glyph: "✦",
|
|
4581
4588
|
duration: 1600
|
|
4582
4589
|
}
|
|
4583
|
-
],
|
|
4584
|
-
function
|
|
4585
|
-
return _e(
|
|
4590
|
+
], Ro = { status: "idle", message: "" }, Ao = Oe({});
|
|
4591
|
+
function Yo(e) {
|
|
4592
|
+
return _e(Ao)[e] ?? Ro;
|
|
4586
4593
|
}
|
|
4587
4594
|
export {
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4595
|
+
Fo as BaseArrayItem,
|
|
4596
|
+
Wo as BaseCollectionItem,
|
|
4597
|
+
Do as BaseSectionData,
|
|
4598
|
+
Bo as BaseSectionSettingsSchema,
|
|
4592
4599
|
rr as ConfigProvider,
|
|
4593
|
-
|
|
4594
|
-
|
|
4600
|
+
Uo as CtaSchema,
|
|
4601
|
+
Jo as DEPLOY_STEPS,
|
|
4595
4602
|
tr as DefaultNotFound,
|
|
4596
4603
|
dt as IconRegistryContext,
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4604
|
+
Lo as ImageSelectionSchema,
|
|
4605
|
+
Ao as OlonFormsContext,
|
|
4606
|
+
No as OlonJSEngine,
|
|
4600
4607
|
bo as PageRenderer,
|
|
4601
|
-
|
|
4608
|
+
Mo as STUDIO_EVENTS,
|
|
4602
4609
|
Te as SectionRenderer,
|
|
4603
4610
|
dr as StudioProvider,
|
|
4604
4611
|
yo as ThemeLoader,
|
|
4605
|
-
|
|
4612
|
+
Go as WithFormRecipient,
|
|
4613
|
+
Eo as buildSaveStreamRequestBody,
|
|
4606
4614
|
sr as buildThemeVariableMap,
|
|
4607
4615
|
Le as cn,
|
|
4608
4616
|
$e as normalizeBasePath,
|
|
4609
|
-
|
|
4610
|
-
|
|
4617
|
+
$o as resolveAssetUrl,
|
|
4618
|
+
Io as resolvePublicPageDocument,
|
|
4611
4619
|
De as resolveRuntimeConfig,
|
|
4612
|
-
|
|
4620
|
+
Vo as startCloudSaveStream,
|
|
4613
4621
|
ct as themeManager,
|
|
4614
4622
|
or as useConfig,
|
|
4615
|
-
|
|
4616
|
-
|
|
4623
|
+
Yo as useFormState,
|
|
4624
|
+
zo as useIconRegistry,
|
|
4617
4625
|
ur as useStudio,
|
|
4618
4626
|
Se as withBasePath
|
|
4619
4627
|
};
|
package/dist/olonjs-core.js
CHANGED
|
@@ -2,16 +2,16 @@ import { z as q } from "zod";
|
|
|
2
2
|
import * as g from "react";
|
|
3
3
|
import he, { forwardRef as Li, createElement as ui, Component as Oa, useEffect as X, useState as re, useRef as me, useMemo as pe, useLayoutEffect as $i, useCallback as le, memo as Hd, useReducer as Vd, useContext as At, createContext as Mr, cloneElement as Kd, useDeferredValue as Yd } from "react";
|
|
4
4
|
import { useConfig as Ia, ConfigProvider as Da } from "./olonjs-core-runtime.js";
|
|
5
|
-
import { ConfigProvider as
|
|
5
|
+
import { ConfigProvider as Bx, useConfig as Ux } from "./olonjs-core-runtime.js";
|
|
6
6
|
import { useStudio as _a, StudioProvider as Fi } from "./olonjs-core-runtime.js";
|
|
7
|
-
import { StudioProvider as
|
|
7
|
+
import { StudioProvider as Vx, useStudio as Kx } from "./olonjs-core-runtime.js";
|
|
8
8
|
import { Link as Gd, createRoutesFromElements as Zd, createBrowserRouter as qd, RouterProvider as Xd, ScrollRestoration as Jd, Outlet as Qd, useLocation as Ma, useNavigate as eu, Route as dt } from "react-router-dom";
|
|
9
9
|
import { themeManager as Wi, buildThemeVariableMap as tu } from "./olonjs-core-runtime.js";
|
|
10
|
-
import { buildThemeVariableMap as
|
|
10
|
+
import { buildThemeVariableMap as Gx } from "./olonjs-core-runtime.js";
|
|
11
11
|
import { IconRegistryContext as ru } from "./olonjs-core-runtime.js";
|
|
12
12
|
import { StudioProvider as La, useStudio as nu } from "./olonjs-core-runtime.js";
|
|
13
13
|
import { themeManager as ou } from "./olonjs-core-runtime.js";
|
|
14
|
-
import { themeManager as
|
|
14
|
+
import { themeManager as qx } from "./olonjs-core-runtime.js";
|
|
15
15
|
import * as mo from "react-dom";
|
|
16
16
|
import iu, { unstable_batchedUpdates as Rn, createPortal as $a } from "react-dom";
|
|
17
17
|
import { useConfig as Bi } from "./olonjs-core-runtime.js";
|
|
@@ -737,7 +737,7 @@ function Ua(e) {
|
|
|
737
737
|
}
|
|
738
738
|
return n.trim();
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const Ex = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
741
741
|
__proto__: null,
|
|
742
742
|
applyCollectionRefBindingsToDraft: Bn,
|
|
743
743
|
applyMenuRefBindingsToDraft: ho,
|
|
@@ -756,7 +756,7 @@ const Cx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
756
756
|
resolveSectionMenuItems: Er,
|
|
757
757
|
shouldRenderSiteGlobalHeader: Ui,
|
|
758
758
|
validateCollectionDocuments: Vi
|
|
759
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
759
|
+
}, Symbol.toStringTag, { value: "Module" })), jx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
760
760
|
__proto__: null,
|
|
761
761
|
applyMenuRefBindingsToDraft: ho,
|
|
762
762
|
applySiteMenuRefBindingsToDraft: Yi,
|
|
@@ -4832,7 +4832,7 @@ function hi(e) {
|
|
|
4832
4832
|
o.abort(), (n == null ? void 0 : n.get(e.name)) === o && n.delete(e.name);
|
|
4833
4833
|
};
|
|
4834
4834
|
}
|
|
4835
|
-
const
|
|
4835
|
+
const Nx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4836
4836
|
__proto__: null,
|
|
4837
4837
|
applyValueAtSelectionPath: mi,
|
|
4838
4838
|
buildLlmsTxt: Ua,
|
|
@@ -15743,7 +15743,7 @@ function ax(e) {
|
|
|
15743
15743
|
collectionContext: n.collectionContext
|
|
15744
15744
|
};
|
|
15745
15745
|
}
|
|
15746
|
-
const
|
|
15746
|
+
const Rx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15747
15747
|
__proto__: null,
|
|
15748
15748
|
ConfigProvider: Da,
|
|
15749
15749
|
DefaultNotFound: ml,
|
|
@@ -15789,36 +15789,47 @@ const Nx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15789
15789
|
PreviewEntry: vl,
|
|
15790
15790
|
StudioStage: Ud,
|
|
15791
15791
|
buildSelectionPath: bi
|
|
15792
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
15792
|
+
}, Symbol.toStringTag, { value: "Module" })), Tx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15793
15793
|
__proto__: null,
|
|
15794
15794
|
STUDIO_EVENTS: Se,
|
|
15795
15795
|
StudioProvider: La,
|
|
15796
15796
|
admin: lx,
|
|
15797
15797
|
useStudio: nu
|
|
15798
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
15798
|
+
}, Symbol.toStringTag, { value: "Module" })), zx = q.object({
|
|
15799
15799
|
url: q.string(),
|
|
15800
15800
|
alt: q.string().optional()
|
|
15801
|
-
}).describe("ui:image-picker"),
|
|
15801
|
+
}).describe("ui:image-picker"), Ax = q.object({
|
|
15802
15802
|
id: q.string().optional(),
|
|
15803
15803
|
anchorId: q.string().optional().describe("ui:text")
|
|
15804
|
-
}), Ax = q.object({
|
|
15805
|
-
id: q.string().optional()
|
|
15806
15804
|
}), Px = q.object({
|
|
15807
|
-
id: q.string()
|
|
15805
|
+
id: q.string().optional()
|
|
15808
15806
|
}), Ox = q.object({
|
|
15807
|
+
id: q.string()
|
|
15808
|
+
}), Ix = q.object({
|
|
15809
15809
|
paddingTop: q.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("md").describe("ui:select"),
|
|
15810
15810
|
paddingBottom: q.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("md").describe("ui:select"),
|
|
15811
15811
|
theme: q.enum(["dark", "light", "accent"]).default("dark").describe("ui:select"),
|
|
15812
15812
|
container: q.enum(["boxed", "fluid"]).default("boxed").describe("ui:select")
|
|
15813
|
-
}),
|
|
15813
|
+
}), Dx = q.object({
|
|
15814
15814
|
id: q.string().optional(),
|
|
15815
15815
|
label: q.string().describe("ui:text"),
|
|
15816
15816
|
href: q.string().describe("ui:text"),
|
|
15817
15817
|
variant: q.enum(["primary", "secondary", "accent"]).default("primary").describe("ui:select")
|
|
15818
|
-
}),
|
|
15818
|
+
}), _x = q.object({
|
|
15819
15819
|
recipientEmail: q.string().optional().describe("ui:text")
|
|
15820
15820
|
});
|
|
15821
15821
|
function cx(e) {
|
|
15822
|
+
return e.additionalFiles && e.additionalFiles.length > 0 ? {
|
|
15823
|
+
files: [{ path: e.path, content: e.content }, ...e.additionalFiles],
|
|
15824
|
+
...e.changedScopes ? { changedScopes: e.changedScopes } : {},
|
|
15825
|
+
message: e.message
|
|
15826
|
+
} : {
|
|
15827
|
+
path: e.path,
|
|
15828
|
+
content: e.content,
|
|
15829
|
+
message: e.message
|
|
15830
|
+
};
|
|
15831
|
+
}
|
|
15832
|
+
function dx(e) {
|
|
15822
15833
|
const t = e.split(`
|
|
15823
15834
|
`).map((o) => o.trimEnd()).filter((o) => o.length > 0);
|
|
15824
15835
|
if (t.length === 0) return null;
|
|
@@ -15834,7 +15845,7 @@ function cx(e) {
|
|
|
15834
15845
|
return { event: r, data: n.join(`
|
|
15835
15846
|
`) };
|
|
15836
15847
|
}
|
|
15837
|
-
async function
|
|
15848
|
+
async function Mx(e) {
|
|
15838
15849
|
var s;
|
|
15839
15850
|
const t = await fetch(`${e.apiBaseUrl}/save-stream`, {
|
|
15840
15851
|
method: "POST",
|
|
@@ -15842,11 +15853,7 @@ async function _x(e) {
|
|
|
15842
15853
|
"Content-Type": "application/json",
|
|
15843
15854
|
Authorization: `Bearer ${e.apiKey}`
|
|
15844
15855
|
},
|
|
15845
|
-
body: JSON.stringify(
|
|
15846
|
-
path: e.path,
|
|
15847
|
-
content: e.content,
|
|
15848
|
-
message: e.message
|
|
15849
|
-
}),
|
|
15856
|
+
body: JSON.stringify(cx(e)),
|
|
15850
15857
|
signal: e.signal
|
|
15851
15858
|
});
|
|
15852
15859
|
if (!t.ok || !t.body) {
|
|
@@ -15863,7 +15870,7 @@ async function _x(e) {
|
|
|
15863
15870
|
`);
|
|
15864
15871
|
o = l ? "" : d.pop() ?? "";
|
|
15865
15872
|
for (const u of d) {
|
|
15866
|
-
const f =
|
|
15873
|
+
const f = dx(u);
|
|
15867
15874
|
if (f && f.data) {
|
|
15868
15875
|
if (f.event === "step") {
|
|
15869
15876
|
const m = JSON.parse(f.data);
|
|
@@ -15885,7 +15892,7 @@ async function _x(e) {
|
|
|
15885
15892
|
if (!i)
|
|
15886
15893
|
throw new Error("Cloud save stream ended before completion.");
|
|
15887
15894
|
}
|
|
15888
|
-
const
|
|
15895
|
+
const Lx = [
|
|
15889
15896
|
{
|
|
15890
15897
|
id: "commit",
|
|
15891
15898
|
label: "Commit",
|
|
@@ -15922,49 +15929,50 @@ const Mx = [
|
|
|
15922
15929
|
glyph: "✦",
|
|
15923
15930
|
duration: 1600
|
|
15924
15931
|
}
|
|
15925
|
-
],
|
|
15926
|
-
function
|
|
15927
|
-
return At(
|
|
15932
|
+
], ux = { status: "idle", message: "" }, fx = Mr({});
|
|
15933
|
+
function $x(e) {
|
|
15934
|
+
return At(fx)[e] ?? ux;
|
|
15928
15935
|
}
|
|
15929
15936
|
export {
|
|
15930
15937
|
xl as AddSectionLibrary,
|
|
15931
15938
|
Bd as AdminSidebar,
|
|
15932
|
-
|
|
15933
|
-
|
|
15934
|
-
|
|
15935
|
-
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
|
|
15939
|
+
Px as BaseArrayItem,
|
|
15940
|
+
Ox as BaseCollectionItem,
|
|
15941
|
+
Ax as BaseSectionData,
|
|
15942
|
+
Ix as BaseSectionSettingsSchema,
|
|
15943
|
+
Bx as ConfigProvider,
|
|
15944
|
+
Dx as CtaSchema,
|
|
15945
|
+
Lx as DEPLOY_STEPS,
|
|
15939
15946
|
ml as DefaultNotFound,
|
|
15940
15947
|
gl as EngineErrorBoundary,
|
|
15941
15948
|
ar as FormFactory,
|
|
15942
|
-
|
|
15949
|
+
zx as ImageSelectionSchema,
|
|
15943
15950
|
Cr as InputWidgets,
|
|
15944
15951
|
ox as JsonPagesEngine,
|
|
15945
|
-
|
|
15952
|
+
fx as OlonFormsContext,
|
|
15946
15953
|
sx as OlonJSEngine,
|
|
15947
15954
|
rs as PageRenderer,
|
|
15948
15955
|
vl as PreviewEntry,
|
|
15949
15956
|
vi as PreviewRoute,
|
|
15950
15957
|
Se as STUDIO_EVENTS,
|
|
15951
15958
|
Qr as SectionRenderer,
|
|
15952
|
-
|
|
15959
|
+
Vx as StudioProvider,
|
|
15953
15960
|
Mi as StudioRoute,
|
|
15954
15961
|
Ud as StudioStage,
|
|
15955
15962
|
yo as ThemeLoader,
|
|
15956
15963
|
gn as VisitorRoute,
|
|
15957
|
-
|
|
15964
|
+
_x as WithFormRecipient,
|
|
15958
15965
|
ho as applyMenuRefBindingsToDraft,
|
|
15959
15966
|
Yi as applySiteMenuRefBindingsToDraft,
|
|
15960
15967
|
mi as applyValueAtSelectionPath,
|
|
15961
15968
|
hr as buildPageContractHref,
|
|
15962
15969
|
br as buildPageManifestHref,
|
|
15963
|
-
|
|
15970
|
+
cx as buildSaveStreamRequestBody,
|
|
15971
|
+
Gx as buildThemeVariableMap,
|
|
15964
15972
|
Hn as buildWebMcpSaveToolName,
|
|
15965
15973
|
Un as buildWebMcpToolName,
|
|
15966
15974
|
ce as cn,
|
|
15967
|
-
|
|
15975
|
+
Ex as contract,
|
|
15968
15976
|
ul as createWebMcpSaveToolInputSchema,
|
|
15969
15977
|
pl as createWebMcpToolInputSchema,
|
|
15970
15978
|
wo as ensureWebMcpRuntime,
|
|
@@ -15972,7 +15980,7 @@ export {
|
|
|
15972
15980
|
bd as isCanonicalAssetUrl,
|
|
15973
15981
|
Zn as isRecord,
|
|
15974
15982
|
hd as isTransientAssetUrl,
|
|
15975
|
-
|
|
15983
|
+
jx as kernel,
|
|
15976
15984
|
Qn as normalizeBasePath,
|
|
15977
15985
|
Yt as normalizeSlugSegments,
|
|
15978
15986
|
fl as parseWebMcpMutationArgs,
|
|
@@ -15987,17 +15995,17 @@ export {
|
|
|
15987
15995
|
Er as resolveSectionMenuItems,
|
|
15988
15996
|
zs as resolveSlugFromPathname,
|
|
15989
15997
|
gi as resolveWebMcpMutationData,
|
|
15990
|
-
|
|
15998
|
+
Rx as runtime,
|
|
15991
15999
|
Ui as shouldRenderSiteGlobalHeader,
|
|
15992
|
-
|
|
15993
|
-
|
|
16000
|
+
Mx as startCloudSaveStream,
|
|
16001
|
+
Tx as studio,
|
|
15994
16002
|
mn as syncHeadLink,
|
|
15995
16003
|
Ts as syncWebMcpJsonLd,
|
|
15996
|
-
|
|
15997
|
-
|
|
16004
|
+
qx as themeManager,
|
|
16005
|
+
Ux as useConfig,
|
|
15998
16006
|
cl as useDocumentMeta,
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16007
|
+
$x as useFormState,
|
|
16008
|
+
Kx as useStudio,
|
|
16009
|
+
Nx as webmcp,
|
|
16002
16010
|
en as withBasePath
|
|
16003
16011
|
};
|