@riverbankcms/sdk 0.78.2 → 0.79.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 (159) hide show
  1. package/README.md +80 -0
  2. package/dist/{PreviewEditorSidebar-4DXLYX2V.mjs → PreviewEditorSidebar-56NMJMIK.mjs} +724 -47
  3. package/dist/{PreviewEditorUI-CS5P4N3P.mjs → PreviewEditorUI-27KJVEET.mjs} +3 -3
  4. package/dist/SdkPreviewModeRuntime-H4BSP6E7.mjs +8 -0
  5. package/dist/_dts/ai/src/contracts/proposals.d.ts +36 -0
  6. package/dist/_dts/api/src/endpoints.d.ts +55 -0
  7. package/dist/_dts/api/src/index.d.ts +5 -3
  8. package/dist/_dts/api/src/media.d.ts +8 -1
  9. package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
  10. package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +8 -8
  11. package/dist/_dts/api/src/navigation/identity.d.ts +59 -0
  12. package/dist/_dts/api/src/navigation.d.ts +2 -0
  13. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +4 -0
  14. package/dist/_dts/api/src/sdkContracts.d.ts +1 -0
  15. package/dist/_dts/api/src/siteIcons.d.ts +128 -0
  16. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +16 -0
  17. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -0
  18. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -1
  19. package/dist/_dts/api/src/types.d.ts +1 -1
  20. package/dist/_dts/api/src/webhooks.d.ts +239 -0
  21. package/dist/_dts/blocks/src/index.d.ts +4 -0
  22. package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +288 -288
  23. package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +288 -288
  24. package/dist/_dts/blocks/src/system/blocks/cart.d.ts +288 -288
  25. package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +288 -288
  26. package/dist/_dts/blocks/src/system/blocks/collection.d.ts +288 -288
  27. package/dist/_dts/blocks/src/system/blocks/faq.d.ts +294 -289
  28. package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +57 -0
  29. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +4 -0
  30. package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +288 -288
  31. package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
  32. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
  33. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +22 -22
  34. package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +288 -288
  35. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +288 -288
  36. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +288 -288
  37. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +7 -1
  38. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +170 -0
  39. package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +5 -0
  40. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +3 -1
  41. package/dist/_dts/blocks/src/system/icons/ids.d.ts +13 -0
  42. package/dist/_dts/blocks/src/system/icons/index.d.ts +6 -0
  43. package/dist/_dts/blocks/src/system/icons/presets.d.ts +4 -0
  44. package/dist/_dts/blocks/src/system/icons/registry.d.ts +18 -0
  45. package/dist/_dts/blocks/src/system/icons/semantic.d.ts +239 -0
  46. package/dist/_dts/blocks/src/system/icons/value.d.ts +94 -0
  47. package/dist/_dts/blocks/src/system/index.d.ts +1 -0
  48. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +4 -1
  49. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +23 -0
  50. package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +13 -0
  51. package/dist/_dts/content-model/src/contentManifest.d.ts +3 -1
  52. package/dist/_dts/core/src/branded.d.ts +6 -0
  53. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +191 -0
  54. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +12 -1
  55. package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +12 -1
  56. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +12 -2
  57. package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +21 -0
  58. package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +40 -0
  59. package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +11 -1
  60. package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +82 -0
  61. package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
  62. package/dist/_dts/media-core/src/fileDomain.d.ts +8 -1
  63. package/dist/_dts/media-editor/src/MediaEditor.d.ts +3 -2
  64. package/dist/_dts/media-react/src/components/MediaLibrary.d.ts +2 -1
  65. package/dist/_dts/media-react/src/components/MediaPickerMini.d.ts +2 -1
  66. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +17 -0
  67. package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +4 -0
  68. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +3 -2
  69. package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +6 -0
  70. package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +11 -0
  71. package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +4 -0
  72. package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +1 -0
  73. package/dist/_dts/sdk/src/cli/sync/diff.d.ts +9 -0
  74. package/dist/_dts/sdk/src/client/management/types.d.ts +2 -0
  75. package/dist/_dts/sdk/src/config/field-definitions.d.ts +3 -1
  76. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  77. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +19 -2
  78. package/dist/_dts/sdk/src/next/index.d.ts +1 -1
  79. package/dist/_dts/sdk/src/next/revalidate.d.ts +26 -5
  80. package/dist/_dts/sdk/src/next/static-params.d.ts +28 -3
  81. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -1
  82. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  83. package/dist/_dts/sdk/src/version.d.ts +1 -1
  84. package/dist/_dts/sdk/src/webhooks/index.d.ts +1 -1
  85. package/dist/_dts/sdk/src/webhooks/verify.d.ts +6 -102
  86. package/dist/_dts/site-commands/src/commands.d.ts +3 -0
  87. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  88. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +3 -3
  89. package/dist/_dts/theme-core/src/schema.d.ts +5 -5
  90. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +25 -2
  91. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +5 -5
  92. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
  93. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -4
  94. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +2 -0
  95. package/dist/_dts/ui/src/combobox.d.ts +1 -0
  96. package/dist/{chunk-RGTOD4AJ.mjs → chunk-4HCW7FHJ.mjs} +491 -56
  97. package/dist/{chunk-OKMBEAXY.mjs → chunk-A3HHFKVT.mjs} +1 -1
  98. package/dist/{chunk-6HYXHRAI.mjs → chunk-GP555I66.mjs} +177 -7
  99. package/dist/{chunk-CR5HKAGU.mjs → chunk-K2IIF34C.mjs} +55 -0
  100. package/dist/{chunk-4QEGTLK6.mjs → chunk-LCY32PXF.mjs} +1 -1
  101. package/dist/{chunk-MCRQMPET.mjs → chunk-V47ZU33I.mjs} +1745 -157
  102. package/dist/cli/index.mjs +1169 -171
  103. package/dist/cli/init-docs/content/workflow-editor-workflows.md +2 -0
  104. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +138 -0
  105. package/dist/client/{accordion-PLYNJIIM.mjs → accordion-QLA7KBYO.mjs} +1 -1
  106. package/dist/client/{bookingForm-BXAP6AO7.mjs → bookingForm-PYZIPA5G.mjs} +3 -3
  107. package/dist/client/bookings.mjs +110 -2
  108. package/dist/client/{carousel-TRBXDHGF.mjs → carousel-5EIULWBI.mjs} +2 -2
  109. package/dist/client/{cart-Z7H3HJRS.mjs → cart-DOP3FNI4.mjs} +5 -5
  110. package/dist/client/{checkout-WAFCUBIX.mjs → checkout-BVMF6FBV.mjs} +5 -5
  111. package/dist/client/{chunk-JRDUHZCT.mjs → chunk-44K2U3QI.mjs} +4 -4
  112. package/dist/client/{chunk-UVQEJJTN.mjs → chunk-CCNTDRCF.mjs} +1 -1
  113. package/dist/client/{chunk-ZI3LLBPZ.mjs → chunk-GG4M2NP6.mjs} +1 -1
  114. package/dist/client/{chunk-JGXPTEI2.mjs → chunk-R5ESWNKX.mjs} +6 -3
  115. package/dist/client/{chunk-CWGTG37I.mjs → chunk-TYONZMST.mjs} +1 -1
  116. package/dist/client/{chunk-75OUS5MT.mjs → chunk-UDS3NTWA.mjs} +1 -1
  117. package/dist/client/{chunk-DNRGY432.mjs → chunk-V6M5FCR5.mjs} +1 -1
  118. package/dist/client/{chunk-FUXW6VW2.mjs → chunk-YLDYVRZL.mjs} +4 -4
  119. package/dist/client/client.mjs +21329 -19729
  120. package/dist/client/{courseRegistration-AHFQHWIJ.mjs → courseRegistration-E6EAA6NL.mjs} +3 -3
  121. package/dist/client/{eventCalendar-LDXTV5R7.mjs → eventCalendar-HBG3HAK6.mjs} +5 -5
  122. package/dist/client/{eventCombined-A4JGTNJO.mjs → eventCombined-6K5ZZWAK.mjs} +5 -5
  123. package/dist/client/{eventDetails-4YXTZ7EG.mjs → eventDetails-Q75ICXLT.mjs} +5 -5
  124. package/dist/client/{eventListing-P72TPFFM.mjs → eventListing-27P5F7DZ.mjs} +5 -5
  125. package/dist/client/{eventRegistration-LSYJHGMT.mjs → eventRegistration-IQ7AMASR.mjs} +5 -5
  126. package/dist/client/{form-AOPYOKOW.mjs → form-JRTD65FN.mjs} +1 -1
  127. package/dist/client/{headerSection-5TFYDFVQ.mjs → headerSection-7FPSSZHS.mjs} +2 -2
  128. package/dist/client/hooks.mjs +350 -35
  129. package/dist/client/{locationMap-QSZ3ZVAZ.mjs → locationMap-7NGFNYBH.mjs} +1 -1
  130. package/dist/client/{newsletterForm-KTRHZY52.mjs → newsletterForm-F3BADCI2.mjs} +1 -1
  131. package/dist/client/{productDetail-N4E775RG.mjs → productDetail-V3HP7ITJ.mjs} +5 -5
  132. package/dist/client/{productList-UGUQ2S45.mjs → productList-L3EGJUF2.mjs} +5 -5
  133. package/dist/client/rendering/client.mjs +2713 -1382
  134. package/dist/client/rendering/islands.mjs +18 -18
  135. package/dist/client/rendering.mjs +2014 -414
  136. package/dist/client/{shop-VHSZEEQ2.mjs → shop-DQUB5E2C.mjs} +5 -5
  137. package/dist/preview-next/before-render.mjs +55 -0
  138. package/dist/preview-next/client/runtime.mjs +5 -5
  139. package/dist/preview-next/middleware.mjs +55 -0
  140. package/dist/{sdk-runtime-WHPJEF5G.mjs → sdk-runtime-AF6KXJU4.mjs} +6 -6
  141. package/dist/server/components.mjs +2169 -781
  142. package/dist/server/config-validation.mjs +350 -35
  143. package/dist/server/config.mjs +350 -35
  144. package/dist/server/data.mjs +350 -35
  145. package/dist/server/index.mjs +64 -1
  146. package/dist/server/next/revalidate.mjs +229 -34
  147. package/dist/server/next.mjs +2307 -818
  148. package/dist/server/page-converter.mjs +275 -34
  149. package/dist/server/prebuild.mjs +1 -1
  150. package/dist/server/rendering/server.mjs +2174 -786
  151. package/dist/server/rendering.mjs +2187 -799
  152. package/dist/server/routing.mjs +767 -50
  153. package/dist/server/server.mjs +351 -36
  154. package/dist/server/theme-bridge.mjs +164 -2
  155. package/dist/server/theme.mjs +2 -2
  156. package/dist/server/webhooks.mjs +129 -25
  157. package/dist/styles/index.css +55 -0
  158. package/package.json +2 -1
  159. package/dist/SdkPreviewModeRuntime-IJDHTW4W.mjs +0 -8
@@ -0,0 +1,128 @@
1
+ export type SiteIconStyleStrokeRule = "line" | "filled" | "duotone";
2
+ export type SemanticIconId = string;
3
+ export type BlockIconValue = {
4
+ kind: "none";
5
+ } | {
6
+ kind: "semantic";
7
+ iconId: SemanticIconId;
8
+ } | {
9
+ kind: "generated";
10
+ setId: string;
11
+ assetId: string;
12
+ semanticFallbackIconId: SemanticIconId;
13
+ styleGuideVersionId: string;
14
+ };
15
+ export type SiteIconStyleGuidePayload = {
16
+ displaySummary: string;
17
+ untrustedStyleContext: string[];
18
+ paletteGuidance: string[];
19
+ strokeRule: SiteIconStyleStrokeRule;
20
+ fillRule: string;
21
+ backgroundRule: string;
22
+ metaphorGuidance: string;
23
+ avoidList: string[];
24
+ };
25
+ export type SiteIconStyleGuideFreshnessPayload = {
26
+ kind: "current";
27
+ sourceFingerprint: string;
28
+ versionId: string;
29
+ } | {
30
+ kind: "stale";
31
+ guideFingerprint: string;
32
+ currentSourceFingerprint: string;
33
+ guideVersionId: string;
34
+ currentVersionId: string;
35
+ };
36
+ export type SiteIconStyleGuideResponse = {
37
+ guide: SiteIconStyleGuidePayload & {
38
+ versionId: string;
39
+ sourceFingerprint: string;
40
+ provenanceKind: "deterministic" | "ai" | "manual";
41
+ };
42
+ source: {
43
+ brandGuidelinesAvailable: boolean;
44
+ paletteColorCount: number;
45
+ approvedExampleRefCount: number;
46
+ };
47
+ freshness: SiteIconStyleGuideFreshnessPayload;
48
+ };
49
+ export type SiteIconStyleGuideUpdateRequest = SiteIconStyleGuidePayload;
50
+ export type GeneratedIconSetCardRequest = {
51
+ cardKey: string;
52
+ title: string;
53
+ bodyText: string;
54
+ semanticIconId: SemanticIconId;
55
+ };
56
+ export type GeneratedIconSetGenerateRequest = {
57
+ blockKind: string;
58
+ blockLabel: string;
59
+ cards: GeneratedIconSetCardRequest[];
60
+ userStyleNote?: string | null;
61
+ };
62
+ export type GeneratedIconSetPreviewAsset = {
63
+ cardKey: string;
64
+ src: string;
65
+ width: number;
66
+ height: number;
67
+ iconValue: BlockIconValue;
68
+ };
69
+ export type GeneratedIconSetCandidateAsset = {
70
+ cardKey: string;
71
+ mimeType: "image/png" | "image/webp";
72
+ width: number;
73
+ height: number;
74
+ byteLength: number;
75
+ bytesBase64: string;
76
+ };
77
+ export type GeneratedIconSetCandidate = {
78
+ setId: string;
79
+ blockKind: string;
80
+ blockLabel: string;
81
+ userStyleNote: string | null;
82
+ styleGuideVersionId: string;
83
+ styleGuideSourceFingerprint: string;
84
+ prompt: string;
85
+ promptFingerprint: string;
86
+ providerName: string;
87
+ modelId: string;
88
+ cards: GeneratedIconSetCardRequest[];
89
+ assets: GeneratedIconSetCandidateAsset[];
90
+ };
91
+ export type GeneratedIconSetGenerateResponse = {
92
+ styleGuide: {
93
+ versionId: string;
94
+ sourceFingerprint: string;
95
+ displaySummary: string;
96
+ };
97
+ candidate: GeneratedIconSetCandidate;
98
+ preview: {
99
+ assets: GeneratedIconSetPreviewAsset[];
100
+ };
101
+ };
102
+ export type GeneratedIconSetApplyRequest = {
103
+ candidate: GeneratedIconSetCandidate;
104
+ };
105
+ export type GeneratedIconSetApplyResponse = {
106
+ setId: string;
107
+ styleGuideVersionId: string;
108
+ assets: Array<{
109
+ cardKey: string;
110
+ mediaAssetId: string;
111
+ iconValue: BlockIconValue;
112
+ }>;
113
+ };
114
+ export type GeneratedIconRenderAssetRef = {
115
+ setId: string;
116
+ assetId: string;
117
+ };
118
+ export type GeneratedIconRenderAssetsRequest = {
119
+ refs: GeneratedIconRenderAssetRef[];
120
+ };
121
+ export type GeneratedIconRenderAsset = GeneratedIconRenderAssetRef & {
122
+ src: string;
123
+ width?: number;
124
+ height?: number;
125
+ };
126
+ export type GeneratedIconRenderAssetsResponse = {
127
+ assets: GeneratedIconRenderAsset[];
128
+ };
@@ -12,6 +12,7 @@ import type { LinkPayload, RoutableContentItem, SitemapRouteItem } from "./navig
12
12
  import type { RouteMetadataPayload, RouteMetadataResponse } from "./routes";
13
13
  import type { SiteAnalyticsSettingsPayload, SiteAnalyticsSettingsResponse } from "./siteAnalytics";
14
14
  import type { SiteBannerSettingsPayload, SiteBannerSettingsResponse } from "./siteBanner";
15
+ import type { GeneratedIconSetApplyRequest, GeneratedIconSetApplyResponse, GeneratedIconSetGenerateRequest, GeneratedIconSetGenerateResponse, SiteIconStyleGuideResponse, SiteIconStyleGuideUpdateRequest } from "./siteIcons";
15
16
  import type { AiBrandGuidelinesGenerateRequest, AiBrandGuidelinesGenerateResponse, AiBrandGuidelinesGenerationContextResponse, SiteAiBrandGuidelinesPayload, SiteAiBrandGuidelinesResponse, SiteAiProfilePayload, SiteAiProfileResponse, SiteGenerationIntakePayload, SiteGenerationIntakeResponse } from "./siteOnboarding";
16
17
  import type { SitePrivacySettingsPayload, SitePrivacySettingsResponse } from "./privacyPolicy";
17
18
  import type { MaintenanceSettingsPayload, MaintenanceSettingsResponse, SiteBusinessAddressPayload, SiteBusinessAddressResponse, SiteFooterBlocksEditorResponse, SiteGeneralSettingsPayload, SiteGeneralSettingsResponse, SiteLayoutSettingsPayload, SiteLayoutSettingsResponse, UpdateSiteDeploymentModePayload, UpdateSiteDeploymentModeResponse, UpdateSiteFooterBlocksPayload, UpdateSiteFooterBlocksResponse } from "./siteSettings";
@@ -492,6 +493,21 @@ export type SiteManagementAPIEndpoints = {
492
493
  updateSiteAiBrandGuidelines: APIEndpoint<SiteAiBrandGuidelinesPayload, {
493
494
  siteId: string;
494
495
  }, SiteAiBrandGuidelinesResponse>;
496
+ getSiteIconStyleGuide: APIEndpoint<never, {
497
+ siteId: string;
498
+ }, SiteIconStyleGuideResponse>;
499
+ updateSiteIconStyleGuide: APIEndpoint<SiteIconStyleGuideUpdateRequest, {
500
+ siteId: string;
501
+ }, SiteIconStyleGuideResponse>;
502
+ regenerateSiteIconStyleGuide: APIEndpoint<never, {
503
+ siteId: string;
504
+ }, SiteIconStyleGuideResponse>;
505
+ generateGeneratedIconSet: APIEndpoint<GeneratedIconSetGenerateRequest, {
506
+ siteId: string;
507
+ }, GeneratedIconSetGenerateResponse>;
508
+ applyGeneratedIconSet: APIEndpoint<GeneratedIconSetApplyRequest, {
509
+ siteId: string;
510
+ }, GeneratedIconSetApplyResponse>;
495
511
  getSiteAiProfile: APIEndpoint<never, {
496
512
  siteId: string;
497
513
  }, SiteAiProfileResponse>;
@@ -258,6 +258,7 @@ export type SitePlatformAPIEndpoints = {
258
258
  reordered: true;
259
259
  }>;
260
260
  sdkUpsertNavigationMenu: APIEndpoint<{
261
+ identifier?: string;
261
262
  name: string;
262
263
  isPrimary?: boolean;
263
264
  isFooter?: boolean;
@@ -270,6 +271,12 @@ export type SitePlatformAPIEndpoints = {
270
271
  }, {
271
272
  siteId: string;
272
273
  }, SdkUpsertNavigationMenuResponse>;
274
+ sdkDeleteNavigationMenu: APIEndpoint<never, {
275
+ siteId: string;
276
+ menuId: string;
277
+ }, {
278
+ deleted: true;
279
+ }>;
273
280
  sdkUpsertTheme: APIEndpoint<{
274
281
  theme: Theme;
275
282
  themeId?: string;
@@ -1,4 +1,4 @@
1
- import type { SystemCustomizeFacetSelection, Theme } from '../../blocks/src/index';
1
+ import type { BackgroundOverride, SystemCustomizeFacetSelection, Theme } from '../../blocks/src/index';
2
2
  import type { ListMediaAssetsResult, MediaAssetWithLabels } from '@riverbankcms/media-storage-supabase';
3
3
  import type { DbJson } from '../../db/src/index';
4
4
  import type { PageDesignEditorReadModel, PageDesignIntent, AppearancePresetId, BoundaryOptionId, DesignBlockId, FooterLookId, HeaderLayoutId, HeaderLookId, HeaderStyleId, LayoutVariantKey, SiteStyleId, TypographyPresetId } from '../../theme-core/src/site-styles/index';
@@ -117,6 +117,11 @@ export type PageDesignEditorAction = {
117
117
  blockId: DesignBlockId;
118
118
  baseContentId: string | null;
119
119
  } & SystemCustomizeFacetSelection) | {
120
+ kind: 'set-background';
121
+ blockId: DesignBlockId;
122
+ baseContentId: string | null;
123
+ override: BackgroundOverride;
124
+ } | {
120
125
  kind: 'set-look';
121
126
  blockId: DesignBlockId;
122
127
  appearancePresetId: AppearancePresetId | null;
@@ -1,6 +1,6 @@
1
1
  import type { CamelizeKeys, DbDatabase, DbRow } from "../../db/src/index";
2
2
  import type { APIEndpoint } from "./apiEndpointTypes";
3
- export type { AccessPolicyContract, AccessPolicyTag, CreateMediaAssetBody, EntitledCustomerAccessScopeContract, FileKindContract, FileKindTag, FileUseContract, FileUseTag, ImageFileFormat, MediaAssetResponse, MediaAssetFileFilterContract, MediaBulkDeleteAssetFailure, MediaBulkDeleteResponse, MediaClassifyJobResponse, MediaJobSummaryResponse, MediaLabelSummary, MediaSettingsResponse, RenderableFileKindTag, StorageClass, UploadIntentContract, UploadIntentTag, } from "./media";
3
+ export type { AccessPolicyContract, AccessPolicyTag, AmbientBackgroundRole, CreateMediaAssetBody, EntitledCustomerAccessScopeContract, FileKindContract, FileKindTag, FileUseContract, FileUseTag, ImageFileFormat, MediaAssetResponse, MediaAssetFileFilterContract, MediaBulkDeleteAssetFailure, MediaBulkDeleteResponse, MediaClassifyJobResponse, MediaJobSummaryResponse, MediaLabelSummary, MediaSettingsResponse, RenderableFileKindTag, SiteBackgroundAssetUse, StorageClass, UploadIntentContract, UploadIntentTag, } from "./media";
4
4
  export type { AnalyticsPreset, AnalyticsReferrer, AnalyticsReportFilters, AnalyticsReportQuery, AnalyticsReportResponse, AnalyticsSeriesPoint, AnalyticsTopPage, AnalyticsTotals, } from "./analytics";
5
5
  export type { AIChatMessage, AiBriefTurn, JsonPrimitive, JsonValue, MediaUsageCheckItem, MediaUsageCheckResponse, MediaUsageLocation, } from "./shared-contracts";
6
6
  export type * from "./accessAdmin";
@@ -0,0 +1,239 @@
1
+ import { z } from 'zod';
2
+ export declare const RIVERBANK_SIGNATURE_PREFIX = "sha256=";
3
+ export declare const SUPPORTED_WEBHOOK_EVENTS: readonly ["page.published", "page.unpublished", "page.deleted", "page.path_changed", "entry.published", "entry.unpublished", "entry.deleted", "entry.path_changed", "navigation.updated", "theme.updated", "site.settings_updated"];
4
+ export type WebhookEvent = (typeof SUPPORTED_WEBHOOK_EVENTS)[number];
5
+ export declare const WebhookEventSchema: z.ZodEnum<{
6
+ "page.published": "page.published";
7
+ "page.unpublished": "page.unpublished";
8
+ "page.deleted": "page.deleted";
9
+ "page.path_changed": "page.path_changed";
10
+ "entry.published": "entry.published";
11
+ "entry.unpublished": "entry.unpublished";
12
+ "entry.deleted": "entry.deleted";
13
+ "entry.path_changed": "entry.path_changed";
14
+ "navigation.updated": "navigation.updated";
15
+ "theme.updated": "theme.updated";
16
+ "site.settings_updated": "site.settings_updated";
17
+ }>;
18
+ declare const revalidationPathBrand: unique symbol;
19
+ export type RevalidationPath = string & {
20
+ readonly [revalidationPathBrand]: 'RevalidationPath';
21
+ };
22
+ export type RevalidationPathParseError = Readonly<{
23
+ tag: 'EMPTY_PATH';
24
+ input: string;
25
+ }> | Readonly<{
26
+ tag: 'ABSOLUTE_OR_PROTOCOL_PATH';
27
+ input: string;
28
+ }> | Readonly<{
29
+ tag: 'MALFORMED_PATH';
30
+ input: string;
31
+ }>;
32
+ export type RevalidationPathParseResult = Readonly<{
33
+ success: true;
34
+ path: RevalidationPath;
35
+ }> | Readonly<{
36
+ success: false;
37
+ error: RevalidationPathParseError;
38
+ }>;
39
+ export declare function parseRevalidationPath(input: string): RevalidationPathParseResult;
40
+ export declare function normalizeRevalidationPath(input: string): RevalidationPath | null;
41
+ export declare function unwrapRevalidationPath(path: RevalidationPath): string;
42
+ export declare const PagePublishedDataSchema: z.ZodObject<{
43
+ pageId: z.ZodString;
44
+ path: z.ZodString;
45
+ slug: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strict>;
47
+ export declare const PageRemovedDataSchema: z.ZodObject<{
48
+ pageId: z.ZodString;
49
+ path: z.ZodString;
50
+ slug: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strict>;
52
+ export declare const PagePathChangedDataSchema: z.ZodObject<{
53
+ pageId: z.ZodString;
54
+ previousPath: z.ZodString;
55
+ path: z.ZodString;
56
+ slug: z.ZodOptional<z.ZodString>;
57
+ }, z.core.$strict>;
58
+ export declare const EntryPublishedDataSchema: z.ZodObject<{
59
+ entryId: z.ZodString;
60
+ path: z.ZodString;
61
+ contentType: z.ZodString;
62
+ }, z.core.$strict>;
63
+ export declare const EntryRemovedDataSchema: z.ZodObject<{
64
+ entryId: z.ZodString;
65
+ path: z.ZodString;
66
+ contentType: z.ZodString;
67
+ }, z.core.$strict>;
68
+ export declare const EntryPathChangedDataSchema: z.ZodObject<{
69
+ entryId: z.ZodString;
70
+ previousPath: z.ZodString;
71
+ path: z.ZodString;
72
+ contentType: z.ZodString;
73
+ }, z.core.$strict>;
74
+ export declare const NavigationUpdatedDataSchema: z.ZodObject<{
75
+ menuId: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strict>;
77
+ export declare const EmptyWebhookDataSchema: z.ZodObject<{}, z.core.$strict>;
78
+ export type PagePublishedData = z.infer<typeof PagePublishedDataSchema>;
79
+ export type PageRemovedData = z.infer<typeof PageRemovedDataSchema>;
80
+ export type PagePathChangedData = z.infer<typeof PagePathChangedDataSchema>;
81
+ export type EntryPublishedData = z.infer<typeof EntryPublishedDataSchema>;
82
+ export type EntryRemovedData = z.infer<typeof EntryRemovedDataSchema>;
83
+ export type EntryPathChangedData = z.infer<typeof EntryPathChangedDataSchema>;
84
+ export type NavigationUpdatedData = z.infer<typeof NavigationUpdatedDataSchema>;
85
+ export type EmptyWebhookData = z.infer<typeof EmptyWebhookDataSchema>;
86
+ export type WebhookDataByEvent = Readonly<{
87
+ 'page.published': PagePublishedData;
88
+ 'page.unpublished': PageRemovedData;
89
+ 'page.deleted': PageRemovedData;
90
+ 'page.path_changed': PagePathChangedData;
91
+ 'entry.published': EntryPublishedData;
92
+ 'entry.unpublished': EntryRemovedData;
93
+ 'entry.deleted': EntryRemovedData;
94
+ 'entry.path_changed': EntryPathChangedData;
95
+ 'navigation.updated': NavigationUpdatedData;
96
+ 'theme.updated': EmptyWebhookData;
97
+ 'site.settings_updated': EmptyWebhookData;
98
+ }>;
99
+ export type WebhookDataForEvent<E extends WebhookEvent> = WebhookDataByEvent[E];
100
+ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
101
+ timestamp: z.ZodString;
102
+ dispatchId: z.ZodOptional<z.ZodString>;
103
+ siteId: z.ZodString;
104
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
+ event: z.ZodLiteral<"page.published">;
107
+ data: z.ZodObject<{
108
+ pageId: z.ZodString;
109
+ path: z.ZodString;
110
+ slug: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strict>;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ timestamp: z.ZodString;
114
+ dispatchId: z.ZodOptional<z.ZodString>;
115
+ siteId: z.ZodString;
116
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
118
+ event: z.ZodLiteral<"page.unpublished">;
119
+ data: z.ZodObject<{
120
+ pageId: z.ZodString;
121
+ path: z.ZodString;
122
+ slug: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strict>;
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ timestamp: z.ZodString;
126
+ dispatchId: z.ZodOptional<z.ZodString>;
127
+ siteId: z.ZodString;
128
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
129
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
130
+ event: z.ZodLiteral<"page.deleted">;
131
+ data: z.ZodObject<{
132
+ pageId: z.ZodString;
133
+ path: z.ZodString;
134
+ slug: z.ZodOptional<z.ZodString>;
135
+ }, z.core.$strict>;
136
+ }, z.core.$strip>, z.ZodObject<{
137
+ timestamp: z.ZodString;
138
+ dispatchId: z.ZodOptional<z.ZodString>;
139
+ siteId: z.ZodString;
140
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
+ event: z.ZodLiteral<"page.path_changed">;
143
+ data: z.ZodObject<{
144
+ pageId: z.ZodString;
145
+ previousPath: z.ZodString;
146
+ path: z.ZodString;
147
+ slug: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strict>;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ timestamp: z.ZodString;
151
+ dispatchId: z.ZodOptional<z.ZodString>;
152
+ siteId: z.ZodString;
153
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
+ event: z.ZodLiteral<"entry.published">;
156
+ data: z.ZodObject<{
157
+ entryId: z.ZodString;
158
+ path: z.ZodString;
159
+ contentType: z.ZodString;
160
+ }, z.core.$strict>;
161
+ }, z.core.$strip>, z.ZodObject<{
162
+ timestamp: z.ZodString;
163
+ dispatchId: z.ZodOptional<z.ZodString>;
164
+ siteId: z.ZodString;
165
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
166
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
167
+ event: z.ZodLiteral<"entry.unpublished">;
168
+ data: z.ZodObject<{
169
+ entryId: z.ZodString;
170
+ path: z.ZodString;
171
+ contentType: z.ZodString;
172
+ }, z.core.$strict>;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ timestamp: z.ZodString;
175
+ dispatchId: z.ZodOptional<z.ZodString>;
176
+ siteId: z.ZodString;
177
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
178
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
179
+ event: z.ZodLiteral<"entry.deleted">;
180
+ data: z.ZodObject<{
181
+ entryId: z.ZodString;
182
+ path: z.ZodString;
183
+ contentType: z.ZodString;
184
+ }, z.core.$strict>;
185
+ }, z.core.$strip>, z.ZodObject<{
186
+ timestamp: z.ZodString;
187
+ dispatchId: z.ZodOptional<z.ZodString>;
188
+ siteId: z.ZodString;
189
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
+ event: z.ZodLiteral<"entry.path_changed">;
192
+ data: z.ZodObject<{
193
+ entryId: z.ZodString;
194
+ previousPath: z.ZodString;
195
+ path: z.ZodString;
196
+ contentType: z.ZodString;
197
+ }, z.core.$strict>;
198
+ }, z.core.$strip>, z.ZodObject<{
199
+ timestamp: z.ZodString;
200
+ dispatchId: z.ZodOptional<z.ZodString>;
201
+ siteId: z.ZodString;
202
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
203
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
204
+ event: z.ZodLiteral<"navigation.updated">;
205
+ data: z.ZodObject<{
206
+ menuId: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strict>;
208
+ }, z.core.$strip>, z.ZodObject<{
209
+ timestamp: z.ZodString;
210
+ dispatchId: z.ZodOptional<z.ZodString>;
211
+ siteId: z.ZodString;
212
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
213
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
214
+ event: z.ZodLiteral<"theme.updated">;
215
+ data: z.ZodObject<{}, z.core.$strict>;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ timestamp: z.ZodString;
218
+ dispatchId: z.ZodOptional<z.ZodString>;
219
+ siteId: z.ZodString;
220
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
221
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
222
+ event: z.ZodLiteral<"site.settings_updated">;
223
+ data: z.ZodObject<{}, z.core.$strict>;
224
+ }, z.core.$strip>], "event">;
225
+ export type WebhookPayload = z.infer<typeof WebhookPayloadSchema>;
226
+ export type WebhookPayloadForEvent<E extends WebhookEvent> = Extract<WebhookPayload, {
227
+ event: E;
228
+ }>;
229
+ export type WebhookDispatchInputForEvent<E extends WebhookEvent> = Readonly<{
230
+ siteId: string;
231
+ event: E;
232
+ data: WebhookDataForEvent<E>;
233
+ tags: readonly string[];
234
+ paths?: readonly RevalidationPath[];
235
+ }>;
236
+ export type WebhookDispatchInput = {
237
+ [E in WebhookEvent]: WebhookDispatchInputForEvent<E>;
238
+ }[WebhookEvent];
239
+ export {};
@@ -32,6 +32,9 @@ export * from '../../theme-core/src/siteChrome';
32
32
  export * from '../../theme-core/src/blocks/index';
33
33
  export { EDITABLE_SURFACE_FORWARDING_PROP, markEditableSurfaceForwarding, type EditableSurfaceForwardingComponent, } from './system/runtime/header/shared';
34
34
  export * from './system';
35
+ export { parseSiteIconStyleGuideVersionId, type SiteIconStyleGuideVersionId, } from './system/icons/ids';
36
+ export { isSemanticIconId, type SemanticIconId, } from './system/icons/semantic';
37
+ export { getGeneratedBlockIconStyleState, parseBlockIconValue, type GeneratedBlockIconValue, type GeneratedBlockIconStyleState, } from './system/icons/value';
35
38
  export { SUPPORTED_LOADER_ENDPOINTS, isSupportedLoaderEndpoint, type SupportedLoaderEndpoint, } from './system/data';
36
39
  export type { AuthoredLinkValue, LinkValue, InternalLinkValue, InternalResolvedLinkValue, InternalRouteOnlyLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, } from './system/types/link';
37
40
  export { linkSchema, internalLinkSchema, internalResolvedLinkSchema, internalRouteOnlyLinkSchema, externalLinkSchema, customLinkSchema, pageLinkSchema, entryLinkSchema, isInternalResolvedLinkValue, } from './system/types/link';
@@ -65,6 +68,7 @@ export { resolveBackground, SectionBackground, type BackgroundInput, type Resolv
65
68
  export type { SectionStylesContent } from './system/fields/boxStyles';
66
69
  export { eventCalendarDisplayModeValues, eventCalendarListLayoutAppliesToDisplayMode, eventCalendarListLayoutCompatibleDisplayModeValues, eventCalendarListLayoutOptions, eventCalendarListLayoutValues, getPreviewContext, isEventCalendarDisplayMode, isEventCalendarListLayout, isEventContentType, type EventCalendarDisplayMode, type EventCalendarListLayout, type PreviewContext, } from './system/constants/events';
67
70
  export { eventCalendarListLayoutFacet, defineCustomizeFacet, isSystemCustomizeFacetId, isSystemCustomizeFacetValue, parseSystemCustomizeFacetSelection, systemCustomizeFacetApplyContentPatch, systemCustomizeFacetAppliesToLayoutVariant, systemCustomizeFacetCurrentValue, systemCustomizeFacetDefinitionForBlock, systemCustomizeFacetDefinitionForId, systemCustomizeFacetDefinitions, systemCustomizeFacetDefinitionsForBlock, systemCustomizeFacetIds, systemCustomizeFacetLabelForValue, systemCustomizeFacetNextValue, systemCustomizeFacetRollbackContentPatch, systemCustomizeFacetValues, type EventCalendarListLayoutCustomizeFacetTarget, type CustomizeFacetContent, type CustomizeFacetCycleDirection, type CustomizeFacetDefinition, type CustomizeFacetTarget, type CustomizeFacetValueOption, type ParseSystemCustomizeFacetSelectionResult, type SystemCustomizeFacetBlockKind, type SystemCustomizeFacetDefinition, type SystemCustomizeFacetHistorySelection, type SystemCustomizeFacetId, type SystemCustomizeFacetSelection, type SystemCustomizeFacetTransition, type SystemCustomizeFacetValue, } from './system/customize/facets';
71
+ export { BACKGROUND_MODES, DEFAULT_BACKGROUND_OVERRIDE, applyBackgroundOverrideContentPatch, backgroundModeForOverride, defaultBackgroundOverrideForMode, enabledBackgroundModes, isGradientPresetId, parseBackgroundOverride, parseGradientPresetId, planBackgroundTransition, rankBackgroundImagePoolItems, serializeBackgroundOverride, type BackgroundCapability, type BackgroundCustomizeContent, type BackgroundImagePoolItem, type BackgroundImagePoolSource, type BackgroundMode, type BackgroundModeCycleDirection, type BackgroundOverride, type BackgroundPersistenceSideEffect, type BackgroundTransitionAction, type BackgroundTransitionBlockedReason, type BackgroundTransitionPlan, type GradientPresetId, type LegacyBackgroundReason, type ParsedBackgroundOverride, } from './system/customize/backgrounds';
68
72
  export { transformSdkBlockToManifest, transformSdkBlockToDefinition, } from './sdkBlockTransform';
69
73
  export { rgbColorValue, cssVarValue, backgroundColorStyle, textColorStyle, borderColorStyle, gradientBackgroundStyle, mergeStyles, } from '../../theme-core/src/utils/colorStyles';
70
74
  export { parseVideoUrl, getVideoEmbed, getEmbedUrl, getThumbnailUrl, type VideoProvider, type VideoInfo, type EmbedInfo, } from './lib/video';