@riverbankcms/sdk 0.124.0 → 0.126.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.
Files changed (130) hide show
  1. package/README.md +3 -1
  2. package/dist/{PreviewEditorSidebar-DBmAJJkQ.mjs → PreviewEditorSidebar-DcYJxTgc.mjs} +67 -266
  3. package/dist/{PreviewEditorUI-CfGaz9cY.mjs → PreviewEditorUI-Ctt1yTJr.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-BH-3-jSj.mjs → PreviewQueryProvider-DgFDIwvK.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-BW9Z8j8T.mjs → SdkPreviewModeRuntime-CvW1vdQ4.mjs} +38 -30
  6. package/dist/{SiteChromeCustomizeContext-2z8moxYf.mjs → SiteChromeCustomizeContext-C87qlKWw.mjs} +493 -1378
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +1354 -202
  8. package/dist/_dts/api/src/accessAdmin.d.ts +2 -14
  9. package/dist/_dts/api/src/common/envelope.d.ts +1 -1
  10. package/dist/_dts/api/src/contentRuntime.d.ts +0 -2
  11. package/dist/_dts/api/src/endpoints.d.ts +0 -7
  12. package/dist/_dts/api/src/sdk-event-upsert.d.ts +42 -0
  13. package/dist/_dts/api/src/sdkContracts.d.ts +11 -9
  14. package/dist/_dts/api/src/siteAccessAdmin.d.ts +23 -0
  15. package/dist/_dts/api/src/siteOperations.d.ts +18 -1
  16. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -14
  17. package/dist/_dts/billing/src/plans/types.d.ts +24 -5
  18. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +4 -0
  19. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +2 -0
  20. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +1 -0
  21. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +2 -0
  22. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +3 -1
  23. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +2 -1
  24. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +15 -2
  25. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +331 -19
  26. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +1 -2
  27. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -3
  28. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -2
  29. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -12
  30. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -13
  31. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -100
  32. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -4
  33. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -15
  34. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +11 -21
  35. package/dist/_dts/sdk/src/cli/commands/event.d.ts +2 -2
  36. package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +12 -0
  37. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +6 -0
  38. package/dist/_dts/sdk/src/cli/commands/style.d.ts +1 -1
  39. package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +5 -0
  40. package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +17 -0
  41. package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -10
  42. package/dist/_dts/sdk/src/cli/migrations/events.d.ts +1 -1
  43. package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +24 -0
  44. package/dist/_dts/sdk/src/client/management/http.d.ts +1 -1
  45. package/dist/_dts/sdk/src/client/management/types.d.ts +3 -28
  46. package/dist/_dts/sdk/src/config/index.d.ts +1 -1
  47. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -20
  48. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
  49. package/dist/_dts/sdk/src/version.d.ts +1 -1
  50. package/dist/_dts/site-commands/src/commandContract.d.ts +33 -5
  51. package/dist/_dts/site-commands/src/commandDomain.d.ts +2 -2
  52. package/dist/_dts/site-commands/src/commands.d.ts +38 -9
  53. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +28 -1
  54. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +4 -4
  55. package/dist/_dts/theme-core/src/palette/concretePalette.d.ts +20 -0
  56. package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -17
  57. package/dist/_dts/theme-core/src/palette/index.d.ts +1 -6
  58. package/dist/_dts/theme-core/src/palette/schema.d.ts +39 -0
  59. package/dist/_dts/theme-core/src/schema.d.ts +38 -26
  60. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -6
  61. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +5 -6
  62. package/dist/cli/index.mjs +631 -525
  63. package/dist/cli/init-docs/content/cli-reference.md +6 -3
  64. package/dist/cli/init-docs/content/content-management.md +24 -13
  65. package/dist/client/{DiscountCodeDisclosure-DxvjKvck.mjs → DiscountCodeDisclosure-DS0AuFWW.mjs} +1 -1
  66. package/dist/client/{EventCombined.client-BydMGc4c.mjs → EventCombined.client-DtMxLr7q.mjs} +2 -2
  67. package/dist/client/{EventListing.client-vpzhhysN.mjs → EventListing.client-BdLSRNg1.mjs} +2 -2
  68. package/dist/client/{LeafletStaticMap-CB07rpf8.mjs → LeafletStaticMap-BrpC6vsT.mjs} +1 -1
  69. package/dist/client/{MagicLinkForm-BzyRJ8VF.mjs → MagicLinkForm-Bt3IuLMy.mjs} +1 -1
  70. package/dist/client/{StepIndicator-CTcGf8Be.mjs → StepIndicator-CBYPFVoy.mjs} +2 -2
  71. package/dist/client/{accordion-B-DUDLRD.mjs → accordion-BqqwPJWM.mjs} +1 -1
  72. package/dist/client/{bookingForm-DSbClLcZ.mjs → bookingForm-SneP3yxC.mjs} +5 -6
  73. package/dist/client/bookings.mjs +190 -24
  74. package/dist/client/{carousel-B6Ccdx8M.mjs → carousel-BTIR9L3I.mjs} +1 -1
  75. package/dist/client/{cart-BZh8G8wM.mjs → cart-bqiqd8SX.mjs} +3 -3
  76. package/dist/client/{checkout-o6zaC-kM.mjs → checkout-WbTFV5v4.mjs} +3 -3
  77. package/dist/client/client.mjs +175 -223
  78. package/dist/client/{courseRegistration-Cf11pNDs.mjs → courseRegistration-BcemLAdN.mjs} +6 -7
  79. package/dist/client/{eventCalendar-BeXrdsSE.mjs → eventCalendar-CsxIw0V_.mjs} +4 -4
  80. package/dist/client/{eventCombined-DA76PZgG.mjs → eventCombined-B6XMoHfa.mjs} +2 -2
  81. package/dist/client/{eventDetails-BLxg0rok.mjs → eventDetails-BJaoPPfo.mjs} +10 -5
  82. package/dist/client/{eventListing-tO9LheBX.mjs → eventListing-DgwdYHRT.mjs} +2 -2
  83. package/dist/client/{eventRegistration-Cnene9D9.mjs → eventRegistration-C0O3folu.mjs} +30 -22
  84. package/dist/client/{form-DZf72CHB.mjs → form-Bk9txGFt.mjs} +1 -1
  85. package/dist/client/{headerSection-Hioja5Cr.mjs → headerSection-yIBt0yTv.mjs} +2 -2
  86. package/dist/client/hooks.mjs +54 -102
  87. package/dist/client/{locationMap-DwhUXEix.mjs → locationMap-C-3KIpv-.mjs} +2 -2
  88. package/dist/client/{newsletterForm-C350bEQf.mjs → newsletterForm-CzB8g8h2.mjs} +1 -1
  89. package/dist/client/{pricing-BYWN_ATa.mjs → pricing-C1QeDes_.mjs} +1 -1
  90. package/dist/client/{productDetail-CCqCyXgU.mjs → productDetail-w7SBp5uc.mjs} +3 -3
  91. package/dist/client/{productList-BAiNJrOU.mjs → productList-D0tGKHGf.mjs} +3 -3
  92. package/dist/client/{propsDecoder-DeunRj6m.mjs → propsDecoder-Bcin2DB3.mjs} +172 -11
  93. package/dist/client/rendering/client.mjs +322 -363
  94. package/dist/client/rendering/islands.mjs +18 -18
  95. package/dist/client/rendering.mjs +231 -272
  96. package/dist/client/{useDiscountCodeUi-I-92-x2V.mjs → scrollToBlock-h-o_STf_.mjs} +18 -2
  97. package/dist/client/{shop-DUmCdBtw.mjs → shop-BGzmL8O_.mjs} +5 -6
  98. package/dist/client/{shop-commerce-CY27mEUr.mjs → shop-commerce-lX8QxjX-.mjs} +4 -4
  99. package/dist/client/{shop-commerce-store-ChXPbWfa.mjs → shop-commerce-store-CEurARtu.mjs} +1 -1
  100. package/dist/client/{shopShared-q0kin1cv.mjs → shopShared-DXxH8xxw.mjs} +2 -2
  101. package/dist/client/{useEventFilters-DlcVluZh.mjs → useEventFilters-B591g9vd.mjs} +2 -2
  102. package/dist/client/{usePolling-Bz7GFV_a.mjs → usePolling-BvnChV4m.mjs} +2 -2
  103. package/dist/preview-next/before-render.mjs +0 -7
  104. package/dist/preview-next/client/runtime.mjs +4 -4
  105. package/dist/preview-next/middleware.mjs +0 -7
  106. package/dist/{previewAuthStore-CJX21dGi.mjs → previewAuthStore-Dev9CdG9.mjs} +0 -7
  107. package/dist/{sdk-runtime-OnPM8Z69.mjs → sdk-runtime-M__i3Jce.mjs} +2 -2
  108. package/dist/{separator-CPtfzHqA.mjs → separator-VSlnI9bc.mjs} +1 -1
  109. package/dist/server/components.mjs +99 -141
  110. package/dist/server/config-validation.mjs +54 -102
  111. package/dist/server/config.mjs +54 -102
  112. package/dist/server/data.mjs +54 -102
  113. package/dist/server/index.mjs +1 -8
  114. package/dist/server/next.mjs +103 -152
  115. package/dist/server/page-converter.mjs +54 -102
  116. package/dist/server/prebuild.mjs +1 -1
  117. package/dist/server/rendering/server.mjs +62 -104
  118. package/dist/server/rendering.mjs +100 -142
  119. package/dist/server/routing.mjs +75 -147
  120. package/dist/server/server.mjs +55 -110
  121. package/dist/server/theme-bridge.mjs +172 -162
  122. package/dist/server/theme.mjs +167 -11
  123. package/package.json +1 -1
  124. package/dist/_dts/theme-core/src/palette/editorState.d.ts +0 -75
  125. package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +0 -64
  126. package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +0 -81
  127. package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +0 -75
  128. package/dist/_dts/theme-core/src/palette/selection.d.ts +0 -74
  129. package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +0 -34
  130. package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
@@ -12,7 +12,7 @@
12
12
  */
13
13
  import { type ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
14
14
  import type { Theme } from '../../../../blocks/src/index';
15
- import type { PaletteColors, PaletteMode, PaletteSelection, PaletteEditorState, KnownCuratedPaletteValueKey, ResolvedPaletteSelection, RuntimePaletteState, SitePalette, SitePaletteId, SitePaletteVersion, PaletteLibraryAuthority } from '../../../../theme-core/src/palette/index';
15
+ import type { PaletteColors, KnownCuratedPaletteValueKey } from '../../../../theme-core/src/palette/index';
16
16
  import { type FooterLookId, type HeaderLayoutId, type HeaderLookId, type HeaderStyleId } from '../../../../theme-core/src/site-styles/index';
17
17
  import type { SelectionFallbackWarning, SiteStyleId } from '../../../../theme-core/src/site-styles/previewCompiler';
18
18
  import { type EditorStagedSessionCapabilities, type EditorStagedSessionState } from '../../../../content-editor/src/editorTransactionState';
@@ -48,41 +48,11 @@ export type TypographyDraftPatch = Readonly<{
48
48
  kind: 'scale';
49
49
  scale: ThemeTypography['scale'];
50
50
  }>;
51
- /** Runtime authority is deliberately separate from the editable core state. */
52
- export type PaletteSelectionSnapshot = Readonly<{
53
- kind: 'available';
54
- editor: PaletteEditorState;
55
- }> | Readonly<{
56
- kind: 'invalid';
57
- reason: PaletteAuthorityError;
58
- }>;
59
- export type PaletteAuthorityError = Extract<RuntimePaletteState, {
60
- kind: 'invalid';
61
- }>['reason'] | 'runtime-curated-palette-missing' | 'runtime-curated-palette-mismatch' | 'invalid-active-site-palette-version';
62
51
  /** Read-only UI projection. It intentionally owns no palette transitions. */
63
52
  export type PalettePreviewProjection = Readonly<{
64
- kind: 'curated';
65
- valueKey: KnownCuratedPaletteValueKey;
66
- colors: PaletteColors;
67
- mode: PaletteMode;
68
- }> | Readonly<{
69
- kind: 'curated-fork';
70
- sourceValueKey: KnownCuratedPaletteValueKey;
71
- colors: PaletteColors;
72
- mode: PaletteMode;
73
- }> | Readonly<{
74
- kind: 'site';
75
- paletteId: SitePaletteId;
53
+ curatedValueKey: KnownCuratedPaletteValueKey | null;
76
54
  colors: PaletteColors;
77
- mode: PaletteMode;
78
- version: SitePaletteVersion;
79
- }> | Readonly<{
80
- kind: 'new-site';
81
- colors: PaletteColors;
82
- mode: PaletteMode;
83
- }> | Readonly<{
84
- kind: 'invalid';
85
- reason: PaletteAuthorityError;
55
+ mode: Theme['palette']['meta']['mode'];
86
56
  }>;
87
57
  export type SelectionSnapshot = Readonly<{
88
58
  siteStyleId: SiteStyleId;
@@ -93,7 +63,7 @@ export type SelectionSnapshot = Readonly<{
93
63
  headerLookId: HeaderLookId | null;
94
64
  footerLookId: FooterLookId | null;
95
65
  buttonStyleSelection: ButtonStyleSelection;
96
- palette: PaletteSelectionSnapshot;
66
+ palette: Theme['palette'];
97
67
  typography: ThemeTypography;
98
68
  }>;
99
69
  type StyleConfiguratorTargetKey = 'design:site-style';
@@ -104,22 +74,6 @@ export type StyleConfiguratorHistoryEntry = Readonly<{
104
74
  next: SelectionSnapshot;
105
75
  }>;
106
76
  export type StyleConfiguratorStagedSession = EditorStagedSessionState<SelectionSnapshot, StyleConfiguratorHistoryEntry, StyleConfiguratorTargetKey>;
107
- /**
108
- * A collaborator selected a different active palette while this editor had an
109
- * unsaved edit to the formerly active site palette. The base remains the
110
- * server authority; the complete local draft remains available for an
111
- * intentional retry or cancel.
112
- */
113
- export type StyleConfiguratorStalePaletteConflict = Readonly<{
114
- kind: 'active-palette-changed';
115
- originalPaletteId: SitePaletteId;
116
- localDraft: Readonly<{
117
- paletteId: SitePaletteId;
118
- expectedVersion: SitePaletteVersion;
119
- colors: PaletteColors;
120
- mode: PaletteMode;
121
- }>;
122
- }>;
123
77
  export type StyleConfiguratorState = Readonly<{
124
78
  /**
125
79
  * Last persisted server snapshot. Updated on apply-success (and on
@@ -134,19 +88,10 @@ export type StyleConfiguratorState = Readonly<{
134
88
  saveStatus: StyleConfiguratorSaveStatus;
135
89
  warnings: ReadonlyArray<SelectionFallbackWarning>;
136
90
  notices: ReadonlyArray<StyleConfiguratorNotice>;
137
- stalePaletteConflict: StyleConfiguratorStalePaletteConflict | null;
138
91
  expandedRow: StyleConfiguratorExpandedRow;
139
92
  stagedSession: StyleConfiguratorStagedSession;
140
93
  }>;
141
- export type PaletteMutationCapability = Readonly<{
142
- kind: 'editable';
143
- }> | Readonly<{
144
- kind: 'blocked';
145
- reason: 'invalid-palette';
146
- message: string;
147
- }>;
148
94
  export declare function createStyleConfiguratorState(base: SelectionSnapshot): StyleConfiguratorState;
149
- export declare function paletteMutationCapability(state: StyleConfiguratorState): PaletteMutationCapability;
150
95
  export declare function openRow(state: StyleConfiguratorState, row: Exclude<StyleConfiguratorExpandedRow, null>): StyleConfiguratorState;
151
96
  /**
152
97
  * True iff the user has previewed a change that hasn't been applied yet.
@@ -165,21 +110,13 @@ export declare function previewTypography(state: StyleConfiguratorState, typogra
165
110
  export declare function applyTypographyDraftPatch(state: StyleConfiguratorState, currentTypography: ThemeTypography, patch: TypographyDraftPatch): StyleConfiguratorState;
166
111
  export declare function resetTypographyToSaved(state: StyleConfiguratorState): StyleConfiguratorState;
167
112
  export declare function previewCuratedPalette(state: StyleConfiguratorState, valueKey: KnownCuratedPaletteValueKey): StyleConfiguratorState;
168
- export declare function previewSitePalette(state: StyleConfiguratorState, palette: Readonly<{
169
- paletteId: SitePaletteId;
170
- colors: PaletteColors;
171
- mode: PaletteMode;
172
- version: SitePaletteVersion;
173
- }>): StyleConfiguratorState;
174
- /** Starts a manual palette from the active complete palette, never sparse overrides. */
175
- export declare function createPalette(state: StyleConfiguratorState): StyleConfiguratorState;
176
113
  export declare function setPaletteColors(state: StyleConfiguratorState, colors: PaletteColors): StyleConfiguratorState;
177
114
  /**
178
115
  * Records the post-compile resolved selection + any fallback warnings.
179
116
  * Used after `compileSiteThemeFromSelections` runs against a new site style:
180
- * the resolver may have auto-picked a different button style if the user's
181
- * previous selection is not offered for the new style, or a different palette
182
- * if the persisted palette value key is no longer known.
117
+ * the resolver may have auto-picked a different button style or chrome look
118
+ * when the user's previous selection is not offered for the new style. The
119
+ * concrete palette is carried independently in the compiled Theme.
183
120
  *
184
121
  */
185
122
  export declare function applyResolvedSelections(state: StyleConfiguratorState, input: Readonly<{
@@ -190,10 +127,6 @@ export declare function cancelPreview(state: StyleConfiguratorState): StyleConfi
190
127
  export declare function markApplySaving(state: StyleConfiguratorState): StyleConfiguratorState;
191
128
  export declare function markApplySaved(state: StyleConfiguratorState, persisted: SelectionSnapshot): StyleConfiguratorState;
192
129
  export declare function markApplyFailed(state: StyleConfiguratorState, message: string, failureKind?: 'retryable' | 'stale'): StyleConfiguratorState;
193
- /** Advances a stale site's CAS token only for the user's explicit retry. */
194
- export declare function prepareStalePaletteRetry(state: StyleConfiguratorState, input?: Readonly<{
195
- sitePalettes: readonly SitePalette[];
196
- }>): StyleConfiguratorState;
197
130
  export declare function toggleRow(state: StyleConfiguratorState, row: StyleConfiguratorExpandedRow): StyleConfiguratorState;
198
131
  export declare function dismissWarnings(state: StyleConfiguratorState): StyleConfiguratorState;
199
132
  export declare function dismissNotices(state: StyleConfiguratorState): StyleConfiguratorState;
@@ -203,32 +136,7 @@ export declare function dismissNotices(state: StyleConfiguratorState): StyleConf
203
136
  * changes the persisted selection out-of-band.
204
137
  */
205
138
  export declare function syncStyleConfiguratorState(state: StyleConfiguratorState, base: SelectionSnapshot): StyleConfiguratorState;
206
- /** Reconciles typed palette-library authority with the editor's saved base. */
207
- export declare function reconcilePaletteLibraryActive(state: StyleConfiguratorState, active: PaletteLibraryAuthority, sitePalettes: readonly SitePalette[]): StyleConfiguratorState;
208
- /**
209
- * A palette-library response only refreshes palette authority. Unlike a full
210
- * server snapshot, it must never discard the user's staged site-style work.
211
- * Site drafts keep their complete local colours/mode and rebase their expected
212
- * version when the same palette was changed elsewhere.
213
- */
214
- export declare function rebasePaletteLibraryAuthority(state: StyleConfiguratorState, committedPalette: ResolvedPaletteSelection): StyleConfiguratorState;
215
139
  export declare function selectionSnapshotsEqual(a: SelectionSnapshot, b: SelectionSnapshot): boolean;
216
140
  export declare function typographyObjectsEqual(a: ThemeTypography, b: ThemeTypography): boolean;
217
- type ModernRuntimePaletteState = Extract<RuntimePaletteState, Readonly<{
218
- authority: 'curated';
219
- }>> | Extract<RuntimePaletteState, Readonly<{
220
- authority: 'site';
221
- }>> | Extract<RuntimePaletteState, Readonly<{
222
- kind: 'invalid';
223
- }>>;
224
- export declare function paletteSelectionSnapshotFromRuntime(runtime: ModernRuntimePaletteState): PaletteSelectionSnapshot;
225
- export declare function paletteSelectionSnapshotFromComplete(input: Readonly<{
226
- selection: PaletteSelection;
227
- colors: PaletteColors;
228
- mode: PaletteMode;
229
- version?: SitePaletteVersion;
230
- }>): PaletteSelectionSnapshot;
231
- export declare function paletteSelectionSnapshotsEqual(left: PaletteSelectionSnapshot, right: PaletteSelectionSnapshot): boolean;
232
- export declare function palettePreviewProjection(palette: PaletteSelectionSnapshot): PalettePreviewProjection;
233
- export declare function committedPaletteForSnapshot(palette: PaletteSelectionSnapshot): ResolvedPaletteSelection | null;
141
+ export declare function palettePreviewProjection(palette: Theme['palette']): PalettePreviewProjection;
234
142
  export {};
@@ -1,13 +1,11 @@
1
1
  import type { Theme } from '../../../../blocks/src/index';
2
2
  import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
3
- import { type CompleteResolvedPaletteSelection } from '../../../../theme-core/src/palette/index';
4
3
  import type { FooterLookId, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId, SiteChromeSurface } from '../../../../theme-core/src/site-styles/index';
5
4
  import { compileSiteThemeFromSelections, type CuratedSiteStyle, type SelectionFallbackWarning, type SiteStyleId } from '../../../../theme-core/src/site-styles/previewCompiler';
6
- import type { PaletteSelectionSnapshot } from './StyleConfigurator.state';
7
5
  export type SiteStylePreviewSelection = Readonly<{
8
6
  siteStyleId: SiteStyleId;
9
7
  buttonStyleSelection: ButtonStyleSelection;
10
- palette: PaletteSelectionSnapshot;
8
+ palette: Theme['palette'];
11
9
  typography: Theme['typography'];
12
10
  headerLayoutId?: HeaderLayoutId | null;
13
11
  headerStyleId?: HeaderStyleId | null;
@@ -53,5 +51,4 @@ export declare function deriveSiteStylePreviewUpdate(baseTheme: Theme | null | u
53
51
  kind: 'derive-update';
54
52
  }>;
55
53
  export declare function planSiteStylePreviewChange(input: SiteStylePreviewPlanInput): SiteStylePreviewPlan;
56
- export declare function resolvedPaletteForPreview(palette: PaletteSelectionSnapshot, siteStyle: CuratedSiteStyle): CompleteResolvedPaletteSelection;
57
54
  export {};
@@ -1,26 +1,12 @@
1
1
  import type { APIEndpoints } from '../../../../api/src/index';
2
- import { type PaletteCommand } from '../../../../theme-core/src/palette/index';
3
2
  import { type SelectionSnapshot } from './StyleConfigurator.state';
4
3
  export type ApplySiteStyleSelectionBody = NonNullable<APIEndpoints['applySiteStyleSelection']['body']>;
5
- export type PaletteApplyCommandPlan = Readonly<{
6
- ok: true;
7
- command: PaletteCommand;
8
- }> | Readonly<{
9
- ok: false;
10
- error: 'invalid-palette-state' | 'curated-palette-missing';
11
- }>;
12
- export declare function planPaletteApplyCommand(input: Readonly<{
13
- base: SelectionSnapshot;
14
- previewed: SelectionSnapshot;
15
- }>): PaletteApplyCommandPlan;
16
4
  export type ApplySiteStyleSelectionBodyBuildResult = Readonly<{
17
5
  ok: true;
18
6
  body: ApplySiteStyleSelectionBody;
19
7
  }> | Readonly<{
20
8
  ok: false;
21
- error: Extract<PaletteApplyCommandPlan, {
22
- ok: false;
23
- }>['error'] | 'no-selection-changes';
9
+ error: 'no-selection-changes';
24
10
  }>;
25
11
  export declare function buildApplySiteStyleSelectionBody(input: Readonly<{
26
12
  base: SelectionSnapshot;
@@ -1,33 +1,23 @@
1
1
  import type { Theme } from '../../../../blocks/src/index';
2
2
  import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
3
- import { type RuntimePaletteState } from '../../../../theme-core/src/palette/index';
4
3
  import type { FooterLookId, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId } from '../../../../theme-core/src/site-styles/index';
5
4
  import type { SelectionSnapshot } from './StyleConfigurator.state';
6
- export type PreviewRuntimePaletteState = Extract<RuntimePaletteState, Readonly<{
7
- authority: 'curated';
8
- }>> | Extract<RuntimePaletteState, Readonly<{
9
- authority: 'site';
10
- }>> | Extract<RuntimePaletteState, Readonly<{
11
- kind: 'invalid';
12
- }>>;
5
+ export type StyleConfiguratorInitialSelections = Readonly<{
6
+ selectionVersion?: number | null;
7
+ selectionUpdatedAt?: string | null;
8
+ buttonStyleSelection: ButtonStyleSelection | null;
9
+ headerLayoutId?: HeaderLayoutId | null;
10
+ headerStyleId?: HeaderStyleId | null;
11
+ headerLookId?: HeaderLookId | null;
12
+ footerLookId?: FooterLookId | null;
13
+ }>;
13
14
  type StyleConfiguratorSnapshotInput = Readonly<{
14
15
  theme?: Theme | null;
15
- initialSelections: Readonly<{
16
- selectionVersion?: number | null;
17
- selectionUpdatedAt?: string | null;
18
- buttonStyleSelection: ButtonStyleSelection | null;
19
- runtimePaletteState: PreviewRuntimePaletteState;
20
- headerLayoutId?: HeaderLayoutId | null;
21
- headerStyleId?: HeaderStyleId | null;
22
- headerLookId?: HeaderLookId | null;
23
- footerLookId?: FooterLookId | null;
24
- }>;
16
+ initialSelections: StyleConfiguratorInitialSelections;
25
17
  headerSelectionContext?: Partial<HeaderSelectionContext>;
26
18
  }>;
27
19
  /**
28
- * Preview only accepts the modern, server-resolved palette runtime state. The
29
- * old Theme-plus-overrides reconstruction belongs to migration tooling, never
30
- * to a live editor where it could silently overwrite authoritative state.
20
+ * The parsed theme is the complete palette authority for preview.
31
21
  */
32
22
  export declare function resolveStyleConfiguratorInitialSnapshot(input: Readonly<{
33
23
  theme?: Theme | null;
@@ -1,8 +1,9 @@
1
1
  import { Command } from 'commander';
2
2
  import type { EventOccurrenceCapacityIntent, EventOccurrenceScheduleInput, ManagementEventOccurrence, EventSeriesUpsertInput, ManagementEventSeries } from '../../client/management/types';
3
+ import { canCancelEventStatus } from './eventOccurrenceSchedule';
4
+ export { canCancelEventStatus };
3
5
  export declare function toEventUpsertInput(identifier: string, raw: Record<string, unknown>): EventSeriesUpsertInput;
4
6
  export declare function buildCancelledEventUpsertInput(current: ManagementEventSeries): EventSeriesUpsertInput;
5
- export declare function canCancelEventStatus(status: ManagementEventSeries['status']): boolean;
6
7
  type OccurrenceScheduleOptions = Readonly<{
7
8
  startsAt?: string;
8
9
  endsAt?: string;
@@ -20,4 +21,3 @@ export declare function occurrenceListJson(occurrences: readonly ManagementEvent
20
21
  occurrences: readonly ManagementEventOccurrence[];
21
22
  }>;
22
23
  export declare const eventCommand: Command;
23
- export {};
@@ -0,0 +1,12 @@
1
+ import type { ManagementEventSeries } from '../../client/management/types';
2
+ export declare function portableEventScheduleOutput(event: ManagementEventSeries): {
3
+ schedule: import("../../../../api/src/sdkContracts").SdkEventCanonicalScheduleInput;
4
+ preset: import("../../../../api/src/index").EventPreset;
5
+ bookingScope: "single_occurrence" | "whole_series";
6
+ occurrences: readonly Readonly<{
7
+ startsAt: string;
8
+ endsAt: string;
9
+ timeZone: string;
10
+ }>[];
11
+ };
12
+ export declare function canCancelEventStatus(status: ManagementEventSeries['status']): boolean;
@@ -1,5 +1,11 @@
1
1
  import type { LocalContent } from '../../content/reader';
2
2
  import type { PulledContent } from '../../../client/management/types';
3
+ import { InvalidLocalEventScheduleIdentityError } from '../../content/localEventSchedule';
4
+ export declare class IncompatibleEventPullContractError extends Error {
5
+ readonly identifier: string;
6
+ readonly code = "incompatible_event_pull_contract";
7
+ constructor(identifier: string, cause: InvalidLocalEventScheduleIdentityError);
8
+ }
3
9
  export interface PushAllEntityChanges {
4
10
  toPush: Set<string>;
5
11
  toDelete?: Set<string>;
@@ -12,7 +12,7 @@ type StyleSelectionOptions = Readonly<{
12
12
  siteStyleId: string;
13
13
  buttonStyleId?: string;
14
14
  buttonStyleParameters?: string;
15
- paletteCommand?: string;
15
+ palette?: string;
16
16
  typography?: string;
17
17
  headerLookId?: string;
18
18
  headerLayoutId?: string;
@@ -0,0 +1,5 @@
1
+ export declare class LegacyEventScheduleShapeError extends Error {
2
+ readonly filePath: string;
3
+ readonly code = "legacy_event_schedule_shape";
4
+ constructor(filePath: string);
5
+ }
@@ -0,0 +1,17 @@
1
+ import type { EventPreset } from '../../../../api/src/index';
2
+ export interface LocalEventOccurrence {
3
+ startsAt: string;
4
+ endsAt: string;
5
+ timeZone: string;
6
+ }
7
+ export interface LocalEventScheduleIdentity {
8
+ preset: EventPreset;
9
+ bookingScope: 'single_occurrence' | 'whole_series';
10
+ occurrences: readonly LocalEventOccurrence[];
11
+ }
12
+ export declare class InvalidLocalEventScheduleIdentityError extends Error {
13
+ readonly filePath: string;
14
+ readonly code = "invalid_local_event_schedule_identity";
15
+ constructor(filePath: string, details: string);
16
+ }
17
+ export declare function parseLocalEventScheduleIdentity(value: unknown, filePath: string): LocalEventScheduleIdentity;
@@ -4,9 +4,13 @@
4
4
  * Reads content from the file system for push operations.
5
5
  * Mirrors the structure created by writer.ts.
6
6
  */
7
+ export { LegacyEventScheduleShapeError } from './legacyEventScheduleShapeError';
7
8
  import { type ContentMetadataTarget } from './metadataStore';
8
9
  import type { NavigationAuthoringLinkInput, NavigationLocalItemInput } from '../../../../api/src/navigation';
9
10
  import type { SdkEventPricingInput } from '../../../../api/src/sdk-event-pricing';
11
+ import { type LocalEventScheduleIdentity } from './localEventSchedule';
12
+ export type { LocalEventOccurrence, LocalEventScheduleIdentity } from './localEventSchedule';
13
+ export { InvalidLocalEventScheduleIdentityError } from './localEventSchedule';
10
14
  import { type ValidatedThemeForPersistence } from '../../../../blocks/src/index';
11
15
  import type { EventPaymentTermsInput } from '../../client/management/types';
12
16
  import { type RichTextDoc } from '../../../../core/src/index';
@@ -154,14 +158,6 @@ export interface LocalEventCategory {
154
158
  color?: string | null;
155
159
  sortOrder?: number;
156
160
  }
157
- export interface LocalEventSchedule {
158
- recurrenceRule?: string | null;
159
- startDate?: string | null;
160
- defaultStartTime?: string | null;
161
- durationMinutes?: number | null;
162
- startsAt?: string | null;
163
- endsAt?: string | null;
164
- }
165
161
  export type LocalEventPricing = SdkEventPricingInput;
166
162
  export interface LocalEventContent {
167
163
  summary?: string | null;
@@ -170,14 +166,13 @@ export interface LocalEventContent {
170
166
  identifier: string;
171
167
  }) | null;
172
168
  }
173
- export interface LocalEvent {
169
+ export interface LocalEvent extends LocalEventScheduleIdentity {
174
170
  identifier: string;
175
171
  title: string;
176
172
  slug: string;
177
173
  path?: string | null;
178
174
  status?: 'draft' | 'active' | 'archived' | 'cancelled' | 'completed';
179
175
  visibility?: 'private' | 'public' | 'unlisted';
180
- schedule?: LocalEventSchedule;
181
176
  capacity?: number | null;
182
177
  pricing?: LocalEventPricing;
183
178
  paymentTerms?: EventPaymentTermsInput;
@@ -1,4 +1,4 @@
1
- import type { LocalEvent } from '../content/reader';
1
+ import { type LocalEvent } from '../content/reader';
2
2
  export type EventMigrationPlanItem = Readonly<{
3
3
  tag: 'mergeLegacyIntoEvent';
4
4
  legacyFilePath: string;
@@ -0,0 +1,24 @@
1
+ import { type Result } from '../../../../core/src/index';
2
+ import type { SiteCommandOf } from '../../../../site-commands/src/index';
3
+ import type { EventSeriesUpsertInput } from '../../client/management/types';
4
+ type EventOccurrenceCompileInput = Readonly<{
5
+ startsAt: string;
6
+ endsAt: string;
7
+ timeZone: string;
8
+ }>;
9
+ type EventScheduleCompileInput = Readonly<{
10
+ identifier: string;
11
+ occurrences: ReadonlyArray<EventOccurrenceCompileInput>;
12
+ }>;
13
+ type ScheduleCompileError = Readonly<{
14
+ code: 'unsupported_local_shape';
15
+ identifier: string;
16
+ message: string;
17
+ }>;
18
+ export declare function compileExplicitEventSchedule(event: EventScheduleCompileInput): Result<Readonly<{
19
+ timeZone: string;
20
+ occurrences: SiteCommandOf<'upsertEventSeries'>['input']['occurrences'];
21
+ }>, ScheduleCompileError>;
22
+ export declare function scheduleFromExplicitEventOccurrence(occurrence: EventOccurrenceCompileInput): EventSeriesUpsertInput['schedule'];
23
+ export declare function scheduleFromCommandOccurrence(occurrence: SiteCommandOf<'upsertEventSeries'>['input']['occurrences'][number], timeZone: SiteCommandOf<'upsertEventSeries'>['input']['timezone']): EventSeriesUpsertInput['schedule'];
24
+ export {};
@@ -27,7 +27,7 @@ export declare class ManagementApiError extends Error {
27
27
  readonly request?: ManagementApiErrorRequest;
28
28
  /**
29
29
  * Precise failure tag from the server's `DomainServiceError` (e.g. `STALE_BASE`,
30
- * `PALETTE_CAP_REACHED`). Branch on this when the coarse `code`/`statusCode`
30
+ * `INVALID_STYLE_SELECTION`). Branch on this when the coarse `code`/`statusCode`
31
31
  * collapses several failures into one.
32
32
  */
33
33
  readonly tag?: string;
@@ -9,11 +9,10 @@ import type { SiteCommandOf } from '../../../../site-commands/src/index';
9
9
  import type { SdkEventPricing, SdkEventPricingInput, SdkEventTicketTypeInput } from '../../../../api/src/sdk-event-pricing';
10
10
  import type { SdkEventPaymentTerms, SdkEventPaymentTermsInput } from '../../../../api/src/sdk-event-payment-terms';
11
11
  import type { SdkEventUpsertBody } from '../../../../api/src/sdk-event-upsert';
12
- import type { SdkAddEventOccurrenceRequest, SdkEventOccurrenceCapacityIntent, SdkEventOccurrenceScheduleInput, SdkManagementEventOccurrence, SdkManagementEventSeries } from '../../../../api/src/sdkContracts';
12
+ import type { SdkAddEventOccurrenceRequest, SdkEventOccurrenceCapacityIntent, SdkEventOccurrenceScheduleInput, SdkManagementEventOccurrence, SdkManagementEventSeries, SdkPullEventSeries } from '../../../../api/src/sdkContracts';
13
13
  import type { SdkPullTruncationMeta } from '../../../../api/src/sdkContracts';
14
14
  import type { SdkCapabilitiesResponse, SdkCatalogBlocksResponse, SdkCatalogContentTypesResponse, SdkCatalogThemeResponse, SdkDemoContentResponse } from '../../../../api/src/sdkContracts';
15
15
  import type { SdkEntryPublishErrorCode, SdkPagePublishErrorCode, SdkPublicationOutcome } from '../../../../api/src/sdkContracts';
16
- import type { PaletteSelection } from '../../../../theme-core/src/palette/index';
17
16
  import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
18
17
  import type { Theme } from '../../contracts';
19
18
  import type { RichTextDoc } from '../../../../core/src/index';
@@ -536,8 +535,6 @@ export interface ThemeStyleSelectionApplyResult {
536
535
  theme: Theme;
537
536
  siteStyleId: string;
538
537
  buttonStyleSelection: ButtonStyleSelection;
539
- activePaletteSelection: PaletteSelection;
540
- activeSitePaletteVersion: number | null;
541
538
  headerLookId: string | null;
542
539
  headerLayoutId: string | null;
543
540
  headerStyleId: string | null;
@@ -723,29 +720,7 @@ export interface PulledEventCategories {
723
720
  };
724
721
  }
725
722
  export interface PulledEvents {
726
- events: Array<{
727
- identifier: string;
728
- title: string;
729
- slug: string;
730
- path?: string | null;
731
- status: 'draft' | 'active' | 'archived' | 'cancelled' | 'completed';
732
- visibility: 'private' | 'public' | 'unlisted';
733
- schedule: EventSchedule;
734
- capacity: number | null;
735
- pricing: EventPricing;
736
- paymentTerms?: EventPaymentTerms;
737
- venueRef: string | null;
738
- categoryRef: string | null;
739
- content: EventContent;
740
- formRef: string | null;
741
- settings: Record<string, unknown>;
742
- presentation: Record<string, unknown> | null;
743
- tags: string[];
744
- updatedAt: string;
745
- createdAt: string;
746
- contentUpdatedAt: string | null;
747
- blocks?: EntrySlotBlocks;
748
- }>;
723
+ events: SdkPullEventSeries[];
749
724
  meta: {
750
725
  pulledAt: string;
751
726
  };
@@ -832,7 +807,7 @@ export interface ApiErrorResponse {
832
807
  }>;
833
808
  /**
834
809
  * Precise failure tag from the originating server `DomainServiceError`
835
- * (e.g. `STALE_BASE`, `PALETTE_CAP_REACHED`). Optional; the coarse `code`
810
+ * (e.g. `STALE_BASE`, `INVALID_STYLE_SELECTION`). Optional; the coarse `code`
836
811
  * collapses several tags into one HTTP status.
837
812
  */
838
813
  tag?: string;
@@ -16,7 +16,7 @@ export type { ValidatedRiverbankSiteConfig, ValidatedSdkCustomBlock, ContentConf
16
16
  export { validateLayout, validateLayoutNodeTypes, validateTransformIds, type LayoutValidationError, type LayoutValidationResult, } from './layout-validation';
17
17
  export { SYSTEM_BLOCK_KINDS, type SystemBlockKind, type CustomBlockKind, type BlockKind, } from '../types';
18
18
  export { defineTypedContentType, createEntry, tiptap, type TypedContentType, type TypedEntryConfig, type InferDataFromFields, type FieldValueType, } from './typed-entries';
19
- export type { TipTapNode, Media, LinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, } from './typed-entries';
19
+ export type { RichTextDoc, TipTapNode, Media, LinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, } from './typed-entries';
20
20
  /**
21
21
  * Helper function to define a Builder site configuration with type checking.
22
22
  *
@@ -1,8 +1,7 @@
1
1
  import type { AddressedLocationValue, BusinessAddress } from '../../../core/src/index';
2
- import type { APIEndpoints, SdkRuntimePageSurfaceSubject as ApiSdkRuntimePageSurfaceSubject, SiteBookingOfferingPresetSummary as ApiSiteBookingOfferingPresetSummary } from '../../../api/src/index';
3
- import type { Media, MediaAssetIndexItem, SiteFooterContent, SiteHeaderContent, Theme } from '../contracts';
2
+ import type { APIEndpoints, SdkRuntimePageSurfaceSubject as ApiSdkRuntimePageSurfaceSubject, SiteBySlugResponse as ApiSiteBySlugResponse, SiteBookingOfferingPresetSummary as ApiSiteBookingOfferingPresetSummary } from '../../../api/src/index';
3
+ import type { Media, MediaAssetIndexItem, SiteFooterContent, SiteHeaderContent } from '../contracts';
4
4
  import type { CompiledBoundaryRuntime } from '../../../theme-core/src/site-styles/index';
5
- import type { RuntimePaletteState } from '../../../theme-core/src/palette/index';
6
5
  import type { BlockFieldConfig as SdkBlockFieldConfig, BlockFieldOptionsMap as SdkBlockFieldOptionsMap, ContentConfig as SdkContentConfig, ContainerOptionsConfig as SdkContainerOptionsConfig, FieldSelectOption as SdkFieldSelectOption, SdkCustomBlock, SdkThemeConfig, SdkThemePalette, SectionBackground as SdkSectionBackground, SectionOptionsConfig as SdkSectionOptionsConfig, SiteStyleConfig as SdkSiteStyleConfig } from '../config/types';
7
6
  export type PublicTeamMemberSummary = {
8
7
  id: string;
@@ -282,7 +281,8 @@ export type SiteRouteRecord = {
282
281
  publishedAt?: string | null;
283
282
  };
284
283
  export type SiteBookingOfferingPresetSummary = ApiSiteBookingOfferingPresetSummary;
285
- export type SiteResponse = {
284
+ type SiteSelectionResponse = Pick<ApiSiteBySlugResponse, 'theme' | 'themeId' | 'selectionId' | 'selectionVersion' | 'selectionUpdatedAt' | 'selectionButtonStyleSelection' | 'selectionHeaderLayoutId' | 'selectionHeaderStyleId' | 'selectionHeaderLookId' | 'selectionFooterLookId'>;
285
+ export type SiteResponse = SiteSelectionResponse & {
286
286
  site: {
287
287
  id: string;
288
288
  title: string;
@@ -301,22 +301,6 @@ export type SiteResponse = {
301
301
  url: string;
302
302
  mimeType: string;
303
303
  } | null;
304
- theme: Theme;
305
- themeId?: string | null;
306
- selectionId?: string | null;
307
- selectionVersion?: number | null;
308
- selectionUpdatedAt?: string | null;
309
- /**
310
- * Persisted design selections. Optional so legacy
311
- * payloads without these columns still satisfy the type — consumers fall
312
- * back to the site style's defaults when null.
313
- */
314
- selectionButtonStyleSelection?: import('../../../theme-core/src/buttons/index').ButtonStyleSelection | null;
315
- runtimePaletteState?: RuntimePaletteState | null;
316
- selectionHeaderLayoutId?: string | null;
317
- selectionHeaderStyleId?: string | null;
318
- selectionHeaderLookId?: string | null;
319
- selectionFooterLookId?: string | null;
320
304
  navigation: NavigationMenuWithItems[];
321
305
  appointmentsEnabled?: boolean;
322
306
  portalEnabled?: boolean;
@@ -916,3 +900,4 @@ export type PublicSdkContainerOptionsConfig = SdkContainerOptionsConfig;
916
900
  export type PublicSdkBlockFieldConfig = SdkBlockFieldConfig;
917
901
  export type PublicSdkBlockFieldOptionsMap = SdkBlockFieldOptionsMap;
918
902
  export type PublicSdkFieldSelectOption = SdkFieldSelectOption;
903
+ export {};
@@ -16,7 +16,7 @@ export type { LoadPageParams, LoadPageResult } from './helpers/loadPage';
16
16
  export { loadContent, isPageContent, isEntryContent, isPageSurfaceContent, } from './helpers/loadContent';
17
17
  export type { LoadContentParams, LoadContentResult, ContentEntryData, PagePreviewMetadata, SiteData, } from './helpers/loadContent';
18
18
  export type { BlockLoaderMap, DataLoaderContext, DataLoaderFn, DataLoaderOverrides, DataLoaderPreviewStage, DataLoaderRenderTarget, DataLoaderSearchParams, DataLoaderValue, } from '../data/types';
19
- export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CardStylesContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, LayoutAlign, LayoutWidth, Media, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, TipTapNode, TipTapMark, LinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, PageOutline, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, Theme, ThemeTokens, SectionStylesContent, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, MediaAssetIndexItem, ImageOptions, ResolveImageUrlContext, ResolveImageUrlContextInput, ResolveImageSourceSetOptions, ResolvedImageSourceSet, } from '../contracts';
19
+ export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CardStylesContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, LayoutAlign, LayoutWidth, Media, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, TipTapNode, TipTapMark, LinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, PageOutline, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, Theme, ThemeTokens, RichTextDoc, SectionStylesContent, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, MediaAssetIndexItem, ImageOptions, ResolveImageUrlContext, ResolveImageUrlContextInput, ResolveImageSourceSetOptions, ResolvedImageSourceSet, } from '../contracts';
20
20
  export { ImagePresets } from '../contracts';
21
21
  export { RichText } from './primitives/RichText';
22
22
  export { resolveImageUrl, resolveImageUrlWithContext, resolveImageSourceSetWithContext, } from './image';
@@ -8,4 +8,4 @@
8
8
  * 1. This constant
9
9
  * 2. The "version" field in package.json
10
10
  */
11
- export declare const SDK_VERSION = "0.124.0";
11
+ export declare const SDK_VERSION = "0.126.0";
@@ -112,7 +112,34 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
112
112
  }, z.core.$strict>], "styleId">>;
113
113
  }, z.core.$strict>, z.ZodObject<{
114
114
  kind: z.ZodLiteral<"set-palette">;
115
- command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
115
+ palette: z.ZodPipe<z.ZodObject<{
116
+ colors: z.ZodArray<z.ZodObject<{
117
+ name: z.ZodString;
118
+ hex: z.ZodString;
119
+ }, z.core.$strip>>;
120
+ meta: z.ZodObject<{
121
+ mode: z.ZodEnum<{
122
+ light: "light";
123
+ dark: "dark";
124
+ }>;
125
+ }, z.core.$strip>;
126
+ }, z.core.$strip>, z.ZodTransform<{
127
+ colors: {
128
+ name: string;
129
+ hex: string;
130
+ }[];
131
+ meta: {
132
+ mode: "light" | "dark";
133
+ };
134
+ }, {
135
+ colors: {
136
+ name: string;
137
+ hex: string;
138
+ }[];
139
+ meta: {
140
+ mode: "light" | "dark";
141
+ };
142
+ }>>;
116
143
  }, z.core.$strict>, z.ZodObject<{
117
144
  kind: z.ZodLiteral<"set-typography">;
118
145
  typography: z.ZodNullable<z.ZodObject<{
@@ -800,17 +827,18 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
800
827
  slug: z.ZodString;
801
828
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
802
829
  title: z.ZodString;
803
- archetype: z.ZodEnum<{
804
- custom: "custom";
830
+ preset: z.ZodEnum<{
831
+ course: "course";
832
+ event: "event";
805
833
  performance: "performance";
806
834
  class: "class";
807
835
  workshop: "workshop";
808
836
  retreat: "retreat";
809
837
  }>;
810
- bookingScope: z.ZodOptional<z.ZodEnum<{
838
+ bookingScope: z.ZodEnum<{
811
839
  single_occurrence: "single_occurrence";
812
840
  whole_series: "whole_series";
813
- }>>;
841
+ }>;
814
842
  status: z.ZodOptional<z.ZodEnum<{
815
843
  active: "active";
816
844
  draft: "draft";