@riverbankcms/sdk 0.125.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.
- package/README.md +3 -1
- package/dist/{PreviewEditorSidebar-BezDOtQ7.mjs → PreviewEditorSidebar-DcYJxTgc.mjs} +67 -266
- package/dist/{PreviewEditorUI-CgSqmfo2.mjs → PreviewEditorUI-Ctt1yTJr.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BH-3-jSj.mjs → PreviewQueryProvider-DgFDIwvK.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Co3AHfj0.mjs → SdkPreviewModeRuntime-CvW1vdQ4.mjs} +27 -27
- package/dist/{SiteChromeCustomizeContext-BHF-KANn.mjs → SiteChromeCustomizeContext-C87qlKWw.mjs} +412 -1301
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1354 -202
- package/dist/_dts/api/src/common/envelope.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +0 -2
- package/dist/_dts/api/src/endpoints.d.ts +0 -7
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +42 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +11 -9
- package/dist/_dts/api/src/siteOperations.d.ts +18 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +15 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +182 -19
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +1 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -2
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -12
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -13
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -100
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -4
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +11 -21
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +12 -0
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +5 -0
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +17 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -10
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +24 -0
- package/dist/_dts/sdk/src/client/management/http.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -28
- package/dist/_dts/sdk/src/config/index.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -20
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commandContract.d.ts +33 -5
- package/dist/_dts/site-commands/src/commandDomain.d.ts +2 -2
- package/dist/_dts/site-commands/src/commands.d.ts +38 -9
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +28 -1
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +4 -4
- package/dist/_dts/theme-core/src/palette/concretePalette.d.ts +20 -0
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -17
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -6
- package/dist/_dts/theme-core/src/palette/schema.d.ts +39 -0
- package/dist/_dts/theme-core/src/schema.d.ts +38 -26
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +5 -6
- package/dist/cli/index.mjs +612 -522
- package/dist/cli/init-docs/content/cli-reference.md +6 -3
- package/dist/cli/init-docs/content/content-management.md +24 -13
- package/dist/client/{DiscountCodeDisclosure-CyPpekBp.mjs → DiscountCodeDisclosure-DS0AuFWW.mjs} +1 -1
- package/dist/client/{EventCombined.client-zywit-60.mjs → EventCombined.client-DtMxLr7q.mjs} +2 -2
- package/dist/client/{EventListing.client-J2nLhkKT.mjs → EventListing.client-BdLSRNg1.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CSubXWt6.mjs → LeafletStaticMap-BrpC6vsT.mjs} +1 -1
- package/dist/client/{MagicLinkForm-DDLIfiq9.mjs → MagicLinkForm-Bt3IuLMy.mjs} +1 -1
- package/dist/client/{StepIndicator-DE8EvHIp.mjs → StepIndicator-CBYPFVoy.mjs} +2 -2
- package/dist/client/{accordion-Ct5T5NiA.mjs → accordion-BqqwPJWM.mjs} +1 -1
- package/dist/client/{bookingForm-DMxtLPxw.mjs → bookingForm-SneP3yxC.mjs} +5 -6
- package/dist/client/bookings.mjs +190 -24
- package/dist/client/{carousel--FMqgvob.mjs → carousel-BTIR9L3I.mjs} +1 -1
- package/dist/client/{cart-BKX1bWiU.mjs → cart-bqiqd8SX.mjs} +3 -3
- package/dist/client/{checkout-B_jxi4WW.mjs → checkout-WbTFV5v4.mjs} +3 -3
- package/dist/client/client.mjs +156 -220
- package/dist/client/{courseRegistration-DH4MlkRD.mjs → courseRegistration-BcemLAdN.mjs} +6 -7
- package/dist/client/{eventCalendar-BQILwAcL.mjs → eventCalendar-CsxIw0V_.mjs} +4 -4
- package/dist/client/{eventCombined-DFFW_Vmo.mjs → eventCombined-B6XMoHfa.mjs} +2 -2
- package/dist/client/{eventDetails-B045CTSJ.mjs → eventDetails-BJaoPPfo.mjs} +3 -3
- package/dist/client/{eventListing-BDMYNVzS.mjs → eventListing-DgwdYHRT.mjs} +2 -2
- package/dist/client/{eventRegistration-CQ2-BSnB.mjs → eventRegistration-C0O3folu.mjs} +30 -22
- package/dist/client/{form-DJKuyZgN.mjs → form-Bk9txGFt.mjs} +1 -1
- package/dist/client/{headerSection-DeTjfiDo.mjs → headerSection-yIBt0yTv.mjs} +2 -2
- package/dist/client/hooks.mjs +50 -102
- package/dist/client/{locationMap-i2wDA8gB.mjs → locationMap-C-3KIpv-.mjs} +2 -2
- package/dist/client/{newsletterForm-DKiueauk.mjs → newsletterForm-CzB8g8h2.mjs} +1 -1
- package/dist/client/{pricing-C01J3Epx.mjs → pricing-C1QeDes_.mjs} +1 -1
- package/dist/client/{productDetail-Dfc1sZaX.mjs → productDetail-w7SBp5uc.mjs} +3 -3
- package/dist/client/{productList-BXbvXWTF.mjs → productList-D0tGKHGf.mjs} +3 -3
- package/dist/client/{propsDecoder-CIR5DQ1l.mjs → propsDecoder-Bcin2DB3.mjs} +167 -11
- package/dist/client/rendering/client.mjs +219 -276
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +128 -185
- package/dist/client/{useDiscountCodeUi-Bcyh4508.mjs → scrollToBlock-h-o_STf_.mjs} +18 -2
- package/dist/client/{shop-BbNwPKM-.mjs → shop-BGzmL8O_.mjs} +5 -6
- package/dist/client/{shop-commerce-XO-XMFEt.mjs → shop-commerce-lX8QxjX-.mjs} +4 -4
- package/dist/client/{shop-commerce-store-Byh6OUGK.mjs → shop-commerce-store-CEurARtu.mjs} +1 -1
- package/dist/client/{shopShared-Bbq39mwr.mjs → shopShared-DXxH8xxw.mjs} +2 -2
- package/dist/client/{useEventFilters-C8OOJ3el.mjs → useEventFilters-B591g9vd.mjs} +2 -2
- package/dist/client/{usePolling-CyJVo9kF.mjs → usePolling-BvnChV4m.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +0 -7
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +0 -7
- package/dist/{previewAuthStore-CJX21dGi.mjs → previewAuthStore-Dev9CdG9.mjs} +0 -7
- package/dist/{sdk-runtime-BGhyuE-E.mjs → sdk-runtime-M__i3Jce.mjs} +2 -2
- package/dist/{separator-BFs-Kmv5.mjs → separator-VSlnI9bc.mjs} +1 -1
- package/dist/server/components.mjs +87 -139
- package/dist/server/config-validation.mjs +50 -102
- package/dist/server/config.mjs +50 -102
- package/dist/server/data.mjs +50 -102
- package/dist/server/index.mjs +1 -8
- package/dist/server/next.mjs +91 -150
- package/dist/server/page-converter.mjs +50 -102
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +50 -102
- package/dist/server/rendering.mjs +88 -140
- package/dist/server/routing.mjs +71 -147
- package/dist/server/server.mjs +51 -110
- package/dist/server/theme-bridge.mjs +172 -162
- package/dist/server/theme.mjs +167 -11
- package/package.json +1 -1
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +0 -64
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +0 -81
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/selection.d.ts +0 -74
- package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +0 -34
- package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
|
@@ -28,7 +28,6 @@ export type PreviewShellLayoutProps = {
|
|
|
28
28
|
themeSelectionVersion?: number | null;
|
|
29
29
|
themeSelectionUpdatedAt?: string | null;
|
|
30
30
|
themeSelectionButtonStyleSelection?: ButtonStyleSelection | null;
|
|
31
|
-
runtimePaletteState: import("./styleConfiguratorSnapshot").PreviewRuntimePaletteState;
|
|
32
31
|
themeSelectionHeaderLayoutId?: HeaderLayoutId | null;
|
|
33
32
|
themeSelectionHeaderStyleId?: HeaderStyleId | null;
|
|
34
33
|
themeSelectionHeaderLookId?: HeaderLookId | null;
|
|
@@ -46,4 +45,4 @@ export type PreviewShellLayoutProps = {
|
|
|
46
45
|
siteStyleAccess?: SiteStyleAccess;
|
|
47
46
|
onFooterSaved?: () => void;
|
|
48
47
|
};
|
|
49
|
-
export declare function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, apiClient, bearerToken, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonStyleSelection,
|
|
48
|
+
export declare function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, apiClient, bearerToken, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonStyleSelection, themeSelectionHeaderLayoutId, themeSelectionHeaderStyleId, themeSelectionHeaderLookId, themeSelectionFooterLookId, themeSelectionHeaderContext, supabaseUrl, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, themeRuntime, siteStyleAccess, onFooterSaved, }: PreviewShellLayoutProps): React.JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type ApiClient } from '../../../../api/src/request';
|
|
3
3
|
import type { Theme } from '../../../../blocks/src/index';
|
|
4
|
-
import type {
|
|
5
|
-
import type { BrandDisplayMode, FooterLookId, HeaderNavFontSizePreference, HeaderNavTypographyPreference, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId, LogoSizePolicy, SiteChromeBackgroundColorToken, SiteChromeBackgroundOverride } from '../../../../theme-core/src/site-styles/index';
|
|
4
|
+
import type { BrandDisplayMode, FooterLookId, HeaderNavFontSizePreference, HeaderNavTypographyPreference, HeaderLayoutId, HeaderSelectionContext, HeaderStyleId, LogoSizePolicy, SiteChromeBackgroundColorToken, SiteChromeBackgroundOverride } from '../../../../theme-core/src/site-styles/index';
|
|
6
5
|
import { headerNavFontSizeOptions, headerNavTypographyOptions } from '../../../../theme-core/src/site-styles/index';
|
|
7
6
|
import { type StyleConfiguratorHistoryEntry } from './StyleConfigurator.state';
|
|
8
7
|
import type { SiteStyleAccess } from './siteStyleAccess';
|
|
9
8
|
import { type SiteChromeLookOption } from './siteChromeLookRows';
|
|
9
|
+
import { type StyleConfiguratorInitialSelections } from './styleConfiguratorSnapshot';
|
|
10
10
|
import type { SiteChromeEditableSurfaceKind } from './SiteChromeEditableSurface';
|
|
11
11
|
import { type HeaderBrandDisplayOption, type HeaderLogoSizeOption } from './siteChromeBrandPreferences';
|
|
12
12
|
import { type SiteStyleHistoryFailure, type SiteStyleHistorySkipReason } from './siteStyleHistoryState';
|
|
@@ -111,16 +111,7 @@ export type SiteChromeCustomizeProviderProps = Readonly<{
|
|
|
111
111
|
selectionId?: string | null;
|
|
112
112
|
selectionVersion?: number | null;
|
|
113
113
|
selectionUpdatedAt?: string | null;
|
|
114
|
-
initialSelections: Readonly<
|
|
115
|
-
selectionVersion?: number | null;
|
|
116
|
-
selectionUpdatedAt?: string | null;
|
|
117
|
-
buttonStyleSelection: ButtonStyleSelection | null;
|
|
118
|
-
runtimePaletteState: import('./styleConfiguratorSnapshot').PreviewRuntimePaletteState;
|
|
119
|
-
headerLayoutId?: HeaderLayoutId | null;
|
|
120
|
-
headerStyleId?: HeaderStyleId | null;
|
|
121
|
-
headerLookId?: HeaderLookId | null;
|
|
122
|
-
footerLookId?: FooterLookId | null;
|
|
123
|
-
}> & Readonly<Record<string, unknown>>;
|
|
114
|
+
initialSelections: StyleConfiguratorInitialSelections & Readonly<Record<string, unknown>>;
|
|
124
115
|
headerSelectionContext?: Partial<HeaderSelectionContext>;
|
|
125
116
|
siteStyleAccess?: SiteStyleAccess;
|
|
126
117
|
canOpenDesignEditor?: boolean;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ApiClient } from '../../../../api/src/request';
|
|
3
3
|
import type { Theme } from '../../../../blocks/src/index';
|
|
4
|
-
import { type
|
|
5
|
-
import { type FooterLookId, type HeaderLayoutId, type HeaderLookId, type HeaderSelectionContext, type HeaderStyleId } from '../../../../theme-core/src/site-styles/index';
|
|
4
|
+
import { type HeaderSelectionContext } from '../../../../theme-core/src/site-styles/index';
|
|
6
5
|
import { type VisibleSiteStyleAccess } from './siteStyleAccess';
|
|
7
|
-
import type
|
|
6
|
+
import { type StyleConfiguratorInitialSelections } from './styleConfiguratorSnapshot';
|
|
8
7
|
export type StyleConfiguratorProps = Readonly<{
|
|
9
8
|
siteId: string;
|
|
10
9
|
apiClient: ApiClient;
|
|
@@ -14,16 +13,7 @@ export type StyleConfiguratorProps = Readonly<{
|
|
|
14
13
|
selectionVersion?: number | null;
|
|
15
14
|
selectionUpdatedAt?: string | null;
|
|
16
15
|
/** Server-persisted design selections. */
|
|
17
|
-
initialSelections: Readonly<
|
|
18
|
-
selectionVersion?: number | null;
|
|
19
|
-
selectionUpdatedAt?: string | null;
|
|
20
|
-
buttonStyleSelection: ButtonStyleSelection | null;
|
|
21
|
-
runtimePaletteState: PreviewRuntimePaletteState;
|
|
22
|
-
headerLayoutId?: HeaderLayoutId | null;
|
|
23
|
-
headerStyleId?: HeaderStyleId | null;
|
|
24
|
-
headerLookId?: HeaderLookId | null;
|
|
25
|
-
footerLookId?: FooterLookId | null;
|
|
26
|
-
}> & Readonly<Record<string, unknown>>;
|
|
16
|
+
initialSelections: StyleConfiguratorInitialSelections & Readonly<Record<string, unknown>>;
|
|
27
17
|
headerSelectionContext?: Partial<HeaderSelectionContext>;
|
|
28
18
|
onFocusedSurfaceChange?: (focused: boolean) => void;
|
|
29
19
|
siteStyleAccess: VisibleSiteStyleAccess;
|
|
@@ -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,
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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
|
|
181
|
-
* previous selection is not offered for the new style
|
|
182
|
-
*
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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:
|
|
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
|
-
*
|
|
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>;
|
|
@@ -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;
|
|
@@ -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
|
-
* `
|
|
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:
|
|
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`, `
|
|
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
|
*
|