@olonjs/core 1.1.12 → 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 +229 -219
- package/dist/olonjs-core.umd.cjs +27 -27
- package/dist/runtime.d.ts +17 -0
- package/package.json +1 -1
package/dist/runtime.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;
|