@riverbankcms/sdk 0.64.0 → 0.67.0
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/_dts/api/src/aiPlayground.d.ts +18 -11
- package/dist/_dts/api/src/apiEndpointTypes.d.ts +12 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +25 -0
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +0 -40
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/siteMembers.d.ts +1 -1
- package/dist/_dts/api/src/siteOperations.d.ts +1 -1
- package/dist/_dts/billing/src/plans/types.d.ts +1 -1
- package/dist/_dts/blocks/src/bindings/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/formatting.d.ts +1 -0
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +2 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +81 -0
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +7 -3
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +33 -0
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/env.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +13 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +114 -0
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +26 -48
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +50 -0
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +57 -0
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +5 -0
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +57 -0
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +83 -0
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +67 -14
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +10 -28
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +1 -1
- package/dist/_dts/sdk/src/config/dashboard-validation.d.ts +0 -48
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/adapter.d.ts +2 -2
- package/dist/_dts/site-commands/src/commands.d.ts +410 -13
- package/dist/_dts/site-commands/src/domain.d.ts +3 -3
- package/dist/_dts/site-commands/src/exposure.d.ts +41 -0
- package/dist/_dts/site-commands/src/index.d.ts +1 -0
- package/dist/_dts/site-commands/src/metadata.d.ts +93 -2
- package/dist/_dts/site-commands/src/planner.d.ts +13 -6
- package/dist/_dts/site-commands/src/refs.d.ts +13 -1
- package/dist/_dts/theme-core/src/palette/utils/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/utils/onColor.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +83 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +89 -12
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +8 -2
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +9 -6
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/cli/index.mjs +4290 -2513
- package/dist/client/client.mjs +598 -372
- package/dist/client/hooks.mjs +311 -123
- package/dist/client/rendering/client.mjs +209 -68
- package/dist/client/rendering/islands.mjs +281 -150
- package/dist/client/rendering.mjs +416 -190
- package/dist/preview-next/before-render.mjs +61 -13
- package/dist/preview-next/client/runtime.mjs +930 -376
- package/dist/preview-next/middleware.mjs +61 -13
- package/dist/server/components.mjs +526 -325
- package/dist/server/config-validation.mjs +313 -125
- package/dist/server/config.mjs +313 -125
- package/dist/server/data.mjs +311 -123
- package/dist/server/index.mjs +78 -16
- package/dist/server/next.mjs +527 -326
- package/dist/server/page-converter.mjs +159 -41
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +526 -325
- package/dist/server/rendering.mjs +526 -325
- package/dist/server/routing.mjs +392 -131
- package/dist/server/server.mjs +312 -124
- package/dist/server/theme-bridge.mjs +155 -48
- package/package.json +1 -1
- package/dist/_dts/path-utils/src/index.d.ts +0 -8
- package/dist/_dts/path-utils/src/redirectPaths.d.ts +0 -26
- package/dist/_dts/path-utils/src/safeAppPath.d.ts +0 -26
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Sync Executor
|
|
2
|
+
* Residual Sync Executor
|
|
3
3
|
*
|
|
4
|
-
* Applies
|
|
5
|
-
*
|
|
4
|
+
* Applies the small set of SDK CLI writes that have not yet moved onto the
|
|
5
|
+
* shared site-command IR. Command-backed surfaces fail closed here so direct
|
|
6
|
+
* writes cannot silently come back through this path.
|
|
6
7
|
*/
|
|
7
8
|
import type { ManagementClient } from '../../client/management/types';
|
|
8
|
-
import type { LocalContent
|
|
9
|
+
import type { LocalContent } from '../content/reader';
|
|
9
10
|
import type { OutputContext } from '../output';
|
|
10
|
-
import type { ContentDiff
|
|
11
|
-
import type { BlockFieldExtensionsMap } from '../../config/types';
|
|
11
|
+
import type { ContentDiff } from './diff';
|
|
12
12
|
/**
|
|
13
13
|
* Format API errors with detailed field validation info when available.
|
|
14
14
|
*/
|
|
@@ -16,8 +16,6 @@ export declare function formatApiError(error: unknown): string;
|
|
|
16
16
|
export interface SyncOptions {
|
|
17
17
|
/** If true, don't actually make changes */
|
|
18
18
|
dryRun: boolean;
|
|
19
|
-
/** Custom block field extensions from config (for validation) */
|
|
20
|
-
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
21
19
|
}
|
|
22
20
|
export interface SyncResult {
|
|
23
21
|
entries: {
|
|
@@ -66,27 +64,11 @@ export interface SyncResult {
|
|
|
66
64
|
}>;
|
|
67
65
|
warnings: string[];
|
|
68
66
|
}
|
|
67
|
+
export type ResidualSettingsDiff = Readonly<Pick<ContentDiff, 'settings' | 'summary'>>;
|
|
68
|
+
export type ResidualSettingsLocalContent = Readonly<Pick<LocalContent, 'settings'>>;
|
|
69
69
|
export declare function createEmptySyncResult(): SyncResult;
|
|
70
|
-
export interface FooterSyncResult {
|
|
71
|
-
diff: FooterDiff | null;
|
|
72
|
-
synced: boolean;
|
|
73
|
-
error?: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Sync footer content from local to CMS.
|
|
77
|
-
*
|
|
78
|
-
* Footer is synced separately from other content because:
|
|
79
|
-
* - It's a single entity (not a collection)
|
|
80
|
-
* - It requires pulling remote state first for comparison
|
|
81
|
-
*
|
|
82
|
-
* @param client - Management client
|
|
83
|
-
* @param localFooter - Local footer content from footer.json
|
|
84
|
-
* @param options - Sync options (dryRun)
|
|
85
|
-
* @returns Footer sync result with diff and status
|
|
86
|
-
*/
|
|
87
|
-
export declare function syncFooter(client: ManagementClient, localFooter: LocalFooterContent, options: SyncOptions): Promise<FooterSyncResult>;
|
|
88
70
|
/**
|
|
89
|
-
* Execute
|
|
71
|
+
* Execute the remaining settings-only sync plan.
|
|
90
72
|
*
|
|
91
73
|
* @param client - Management client
|
|
92
74
|
* @param diff - Calculated content diff
|
|
@@ -95,7 +77,7 @@ export declare function syncFooter(client: ManagementClient, localFooter: LocalF
|
|
|
95
77
|
* @param output - Output context for progress reporting
|
|
96
78
|
* @returns Sync result with counts and errors
|
|
97
79
|
*/
|
|
98
|
-
export declare function
|
|
80
|
+
export declare function executeResidualSettingsSyncPlan(client: ManagementClient, diff: ResidualSettingsDiff, local: ResidualSettingsLocalContent, options: SyncOptions, output: OutputContext): Promise<SyncResult>;
|
|
99
81
|
/**
|
|
100
82
|
* Format sync result for display.
|
|
101
83
|
*/
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Provides content synchronization between local files and CMS.
|
|
5
5
|
*/
|
|
6
6
|
export { calculateDiff, calculatePullDiff, hasPendingChanges, formatDiffSummary, formatDiffDetail, buildJsonDiff, type ContentDiff, type EntryDiff, type PageDiff, type BlockDiff, type NavigationDiff, type DiffType, type DiffOptions, type JsonDiff, type JsonDiffMode, type JsonDiffChange, type JsonDiffChangeType, type JsonDiffOperation, type PullJsonDiff, type PullJsonDiffChange, type FieldChange, findChangedFieldsWithValues, formatValue, formatHumanDiff, } from './diff';
|
|
7
|
-
export {
|
|
7
|
+
export { executeResidualSettingsSyncPlan, createEmptySyncResult, formatSyncResult, type SyncOptions, type SyncResult, type ResidualSettingsDiff, type ResidualSettingsLocalContent, } from './executor';
|
|
8
8
|
export { extractMediaPaths, buildStorageUrl, downloadMedia, syncMedia, type MediaSyncResult, type MediaSyncSummary, type MediaSyncOptions, type MediaUploadClient, } from './media';
|
|
@@ -32,14 +32,6 @@ export declare const dashboardNavVisibilityRolesSchema: z.ZodOptional<z.ZodObjec
|
|
|
32
32
|
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
33
33
|
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
34
34
|
}, z.core.$strip>>;
|
|
35
|
-
event_host: z.ZodOptional<z.ZodObject<{
|
|
36
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
37
|
-
augment: "augment";
|
|
38
|
-
restrict: "restrict";
|
|
39
|
-
}>>;
|
|
40
|
-
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
41
|
-
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
35
|
}, z.core.$strip>>;
|
|
44
36
|
export declare const dashboardNavVisibilitySchema: z.ZodObject<{
|
|
45
37
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -73,14 +65,6 @@ export declare const dashboardNavVisibilitySchema: z.ZodObject<{
|
|
|
73
65
|
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
74
66
|
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
75
67
|
}, z.core.$strip>>;
|
|
76
|
-
event_host: z.ZodOptional<z.ZodObject<{
|
|
77
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
78
|
-
augment: "augment";
|
|
79
|
-
restrict: "restrict";
|
|
80
|
-
}>>;
|
|
81
|
-
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
82
|
-
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
83
|
-
}, z.core.$strip>>;
|
|
84
68
|
}, z.core.$strip>>;
|
|
85
69
|
}, z.core.$strip>;
|
|
86
70
|
export declare const dashboardNavigationConfigSchema: z.ZodObject<{
|
|
@@ -116,14 +100,6 @@ export declare const dashboardNavigationConfigSchema: z.ZodObject<{
|
|
|
116
100
|
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
117
101
|
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
118
102
|
}, z.core.$strip>>;
|
|
119
|
-
event_host: z.ZodOptional<z.ZodObject<{
|
|
120
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
121
|
-
augment: "augment";
|
|
122
|
-
restrict: "restrict";
|
|
123
|
-
}>>;
|
|
124
|
-
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
125
|
-
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
126
|
-
}, z.core.$strip>>;
|
|
127
103
|
}, z.core.$strip>>;
|
|
128
104
|
}, z.core.$strip>>;
|
|
129
105
|
settingsNav: z.ZodOptional<z.ZodObject<{
|
|
@@ -158,14 +134,6 @@ export declare const dashboardNavigationConfigSchema: z.ZodObject<{
|
|
|
158
134
|
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
159
135
|
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
160
136
|
}, z.core.$strip>>;
|
|
161
|
-
event_host: z.ZodOptional<z.ZodObject<{
|
|
162
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
163
|
-
augment: "augment";
|
|
164
|
-
restrict: "restrict";
|
|
165
|
-
}>>;
|
|
166
|
-
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
167
|
-
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
168
|
-
}, z.core.$strip>>;
|
|
169
137
|
}, z.core.$strip>>;
|
|
170
138
|
}, z.core.$strip>>;
|
|
171
139
|
}, z.core.$strip>;
|
|
@@ -204,14 +172,6 @@ export declare const dashboardConfigSchema: z.ZodObject<{
|
|
|
204
172
|
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
205
173
|
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
206
174
|
}, z.core.$strip>>;
|
|
207
|
-
event_host: z.ZodOptional<z.ZodObject<{
|
|
208
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
209
|
-
augment: "augment";
|
|
210
|
-
restrict: "restrict";
|
|
211
|
-
}>>;
|
|
212
|
-
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
213
|
-
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
214
|
-
}, z.core.$strip>>;
|
|
215
175
|
}, z.core.$strip>>;
|
|
216
176
|
}, z.core.$strip>>;
|
|
217
177
|
settingsNav: z.ZodOptional<z.ZodObject<{
|
|
@@ -246,14 +206,6 @@ export declare const dashboardConfigSchema: z.ZodObject<{
|
|
|
246
206
|
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
247
207
|
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
248
208
|
}, z.core.$strip>>;
|
|
249
|
-
event_host: z.ZodOptional<z.ZodObject<{
|
|
250
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
251
|
-
augment: "augment";
|
|
252
|
-
restrict: "restrict";
|
|
253
|
-
}>>;
|
|
254
|
-
allowIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
255
|
-
denyIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
256
|
-
}, z.core.$strip>>;
|
|
257
209
|
}, z.core.$strip>>;
|
|
258
210
|
}, z.core.$strip>>;
|
|
259
211
|
}, z.core.$strip>>;
|
|
@@ -603,7 +603,7 @@ export interface DashboardNavigationConfig {
|
|
|
603
603
|
*/
|
|
604
604
|
settingsNav?: DashboardNavVisibilityConfigWithRoles;
|
|
605
605
|
}
|
|
606
|
-
export type DashboardSiteRole = 'administrator' | 'editor' | '
|
|
606
|
+
export type DashboardSiteRole = 'administrator' | 'editor' | 'team_member';
|
|
607
607
|
export interface DashboardNavVisibilityConfig {
|
|
608
608
|
/**
|
|
609
609
|
* How `allowIds` should be interpreted.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Result } from '@riverbankcms/core';
|
|
1
|
+
import type { Result, SiteId } from '@riverbankcms/core';
|
|
2
2
|
import type { SiteCommand } from './commands';
|
|
3
3
|
import type { AllowedRuntime, SiteCommandResourceIds } from './domain';
|
|
4
4
|
import type { SiteCommandRef } from './refs';
|
|
5
5
|
export type SiteCommandExecutionContext = Readonly<{
|
|
6
|
-
siteId:
|
|
6
|
+
siteId: SiteId;
|
|
7
7
|
runtime: AllowedRuntime;
|
|
8
8
|
}>;
|
|
9
9
|
export type SiteCommandExecutionSuccess = Readonly<{
|