@riverbankcms/sdk 0.107.0 → 0.108.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/dist/{PreviewEditorSidebar-DpAbAl08.mjs → PreviewEditorSidebar-BBT-kZAM.mjs} +46 -11
  2. package/dist/{PreviewEditorUI-O7cn6Xxv.mjs → PreviewEditorUI-D69xNKT2.mjs} +10 -9
  3. package/dist/{PreviewQueryProvider-D0tnKl0t.mjs → PreviewQueryProvider-RRu7wyQ5.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-CVB7urtl.mjs → SdkPreviewModeRuntime-CuDjXH6o.mjs} +426 -72
  5. package/dist/{SiteChromeCustomizeContext-C_sizso-.mjs → SiteChromeCustomizeContext-BQUY2dEk.mjs} +3865 -544
  6. package/dist/_dts/ai/src/contracts/proposals.d.ts +3712 -220
  7. package/dist/_dts/api/src/blocks.d.ts +41 -7
  8. package/dist/_dts/api/src/bookingRecords.d.ts +180 -115
  9. package/dist/_dts/api/src/cache-tags.d.ts +3 -0
  10. package/dist/_dts/api/src/contentRuntime.d.ts +19 -1
  11. package/dist/_dts/api/src/endpoints.d.ts +99 -0
  12. package/dist/_dts/api/src/footer-settings.d.ts +1 -0
  13. package/dist/_dts/api/src/footerSettings.d.ts +8 -0
  14. package/dist/_dts/api/src/index.d.ts +5 -2
  15. package/dist/_dts/api/src/navigation/contracts.d.ts +3 -3
  16. package/dist/_dts/api/src/previewContentContract.d.ts +4 -0
  17. package/dist/_dts/api/src/sdkContracts.d.ts +62 -0
  18. package/dist/_dts/api/src/siteBanner.d.ts +2 -2
  19. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +143 -55
  20. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -1
  21. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +41 -1
  22. package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +0 -1
  23. package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
  24. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +50 -0
  25. package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +9 -48
  26. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  27. package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -1
  28. package/dist/_dts/blocks/src/system/icons/social.d.ts +5 -0
  29. package/dist/_dts/blocks/src/system/icons/svg.d.ts +1 -0
  30. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +2 -2
  31. package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +13 -0
  32. package/dist/_dts/blocks/src/system/node/fragments/footerNav.d.ts +2 -0
  33. package/dist/_dts/blocks/src/system/node/fragments/styledContainer.d.ts +4 -4
  34. package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +3 -12
  35. package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
  36. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -1
  37. package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
  38. package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +14 -0
  39. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +27 -8
  40. package/dist/_dts/content-editor/src/footerComposer.d.ts +56 -0
  41. package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
  42. package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +5 -5
  43. package/dist/_dts/content-editor/src/index.d.ts +2 -0
  44. package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +3 -1
  45. package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +20 -36
  46. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +5 -1
  47. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +11 -0
  48. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  49. package/dist/_dts/content-model/src/definitions/shared.d.ts +3 -0
  50. package/dist/_dts/core/src/branded.d.ts +3 -0
  51. package/dist/_dts/core/src/editor-state.d.ts +4 -0
  52. package/dist/_dts/core/src/footer-composition.d.ts +143 -0
  53. package/dist/_dts/core/src/index.d.ts +2 -0
  54. package/dist/_dts/core/src/public-profile.d.ts +73 -0
  55. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3043 -2941
  56. package/dist/_dts/db/src/schemas/forms.d.ts +10 -10
  57. package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +5 -0
  58. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -0
  59. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -1
  60. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -1
  61. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -1
  62. package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +10 -0
  63. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
  64. package/dist/_dts/path-utils/src/index.d.ts +5 -0
  65. package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +5 -0
  66. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
  67. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
  68. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
  69. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
  70. package/dist/_dts/preview-next/src/client/preview/previewErrorMessages.d.ts +4 -0
  71. package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -0
  72. package/dist/_dts/sdk/src/client/management/blocks.d.ts +14 -1
  73. package/dist/_dts/sdk/src/client/management/index.d.ts +1 -0
  74. package/dist/_dts/sdk/src/client/management/types.d.ts +15 -1
  75. package/dist/_dts/sdk/src/config/content-types.d.ts +2 -0
  76. package/dist/_dts/sdk/src/config/content-validation.d.ts +4 -0
  77. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -0
  78. package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -2
  79. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +2 -1
  80. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
  81. package/dist/_dts/sdk/src/version.d.ts +1 -1
  82. package/dist/_dts/site-commands/src/commands.d.ts +13 -10
  83. package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
  84. package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
  85. package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +17 -0
  86. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +1 -1
  87. package/dist/_dts/theme-core/src/buttons/types.d.ts +3 -3
  88. package/dist/_dts/theme-core/src/cards/types.d.ts +3 -3
  89. package/dist/_dts/theme-core/src/footer/mode.d.ts +15 -0
  90. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  91. package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
  92. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +36 -30
  93. package/dist/_dts/theme-core/src/navigation/types.d.ts +1 -1
  94. package/dist/_dts/theme-core/src/schema.d.ts +1186 -34
  95. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +12 -1
  96. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +15 -0
  97. package/dist/cli/index.mjs +760 -374
  98. package/dist/client/{DiscountCodeDisclosure-BwGkvmVH.mjs → DiscountCodeDisclosure-D6TOf6Hi.mjs} +1 -1
  99. package/dist/client/{EventCombined.client-JnWE6Hzc.mjs → EventCombined.client-Dao3zxRk.mjs} +3 -3
  100. package/dist/client/{EventListing.client-DQewc_kg.mjs → EventListing.client-B2NNt4y1.mjs} +2 -2
  101. package/dist/client/{LeafletStaticMap-DPAU3SFt.mjs → LeafletStaticMap-BhwFo16w.mjs} +1 -1
  102. package/dist/client/{MagicLinkForm-D4kpWCbW.mjs → MagicLinkForm-BWnB7cMR.mjs} +2 -2
  103. package/dist/client/{StepIndicator-CBlkb4rA.mjs → StepIndicator-TzRiQ0BY.mjs} +2 -2
  104. package/dist/client/{accordion-DAIBVpTS.mjs → accordion-BPy-AJ4_.mjs} +1 -1
  105. package/dist/client/{bookingForm-DZ-4l5_1.mjs → bookingForm-BL4PGZds.mjs} +6 -6
  106. package/dist/client/bookings.mjs +143 -94
  107. package/dist/client/{buttons-DJgynGHQ.mjs → buttons-EBjyslaX.mjs} +144 -95
  108. package/dist/client/{carousel-D-SLfX8r.mjs → carousel-C2b7Cn9-.mjs} +1 -1
  109. package/dist/client/{cart-CEgbgJhX.mjs → cart-BQcbXIVD.mjs} +3 -3
  110. package/dist/client/{checkout-CXWrCRAA.mjs → checkout-DEmpGRJu.mjs} +3 -3
  111. package/dist/client/client.mjs +827 -434
  112. package/dist/client/{courseRegistration-DVmLrRVz.mjs → courseRegistration-BqRZPmsq.mjs} +7 -7
  113. package/dist/client/{eventCalendar-DCuyPY_c.mjs → eventCalendar-B8N_tSl5.mjs} +5 -5
  114. package/dist/client/{eventCombined-kP2CA2D4.mjs → eventCombined-Gjn6gtq7.mjs} +2 -2
  115. package/dist/client/{eventDetails-DU0LeF5e.mjs → eventDetails-M-VCxA-r.mjs} +3 -3
  116. package/dist/client/{eventListing-CcHF87BI.mjs → eventListing-DR19hqYi.mjs} +2 -2
  117. package/dist/client/{eventRegistration-DJnR0yFH.mjs → eventRegistration-BR02a0k3.mjs} +7 -7
  118. package/dist/client/{form-CH1lCusH.mjs → form-LY2xIbwg.mjs} +2 -2
  119. package/dist/client/{headerSection-CBPFZoku.mjs → headerSection-CYwwXJfh.mjs} +3 -3
  120. package/dist/client/hooks.mjs +377 -362
  121. package/dist/client/{locationMap-Cx1hBg5n.mjs → locationMap-DWnBXrFq.mjs} +2 -2
  122. package/dist/client/{newsletterForm-1ZL_ti9u.mjs → newsletterForm-D9s-fQ2P.mjs} +2 -2
  123. package/dist/client/{pricing-BIbzmV0G.mjs → pricing-DDq80oYc.mjs} +1 -1
  124. package/dist/client/{productDetail-BTh5gHBV.mjs → productDetail-B0SbWd45.mjs} +3 -3
  125. package/dist/client/{productList-Cc7OMrqN.mjs → productList-PwYlZn0y.mjs} +3 -3
  126. package/dist/client/{propsDecoder-oR-M-ISN.mjs → propsDecoder-BRWBiH7i.mjs} +33 -9
  127. package/dist/client/rendering/client.mjs +247 -40
  128. package/dist/client/rendering/islands.mjs +18 -18
  129. package/dist/client/rendering.mjs +478 -270
  130. package/dist/client/{shop-CQ_YbCnn.mjs → shop-CMwZPYME.mjs} +6 -6
  131. package/dist/client/{shop-commerce-BM-AoD3M.mjs → shop-commerce-BuxsFate.mjs} +5 -5
  132. package/dist/client/{shop-commerce-store-DFMQhU5p.mjs → shop-commerce-store-boYlEJ91.mjs} +1 -1
  133. package/dist/client/{shopShared-D0SKO2Cu.mjs → shopShared-D2naaOes.mjs} +2 -2
  134. package/dist/client/{useDiscountCodeUi-CrG4_ARt.mjs → useDiscountCodeUi-D9RHpVoj.mjs} +1 -1
  135. package/dist/client/{useEventFilters-CxK8Fekl.mjs → useEventFilters-igGiK1re.mjs} +3 -3
  136. package/dist/client/{usePolling-jcVryNgZ.mjs → usePolling-CI7MbsFB.mjs} +2 -2
  137. package/dist/preview-next/before-render.mjs +178 -0
  138. package/dist/preview-next/client/runtime.mjs +4 -4
  139. package/dist/preview-next/middleware.mjs +178 -0
  140. package/dist/{previewAuthStore-BPcJPzdz.mjs → previewAuthStore-a_cBD28m.mjs} +178 -0
  141. package/dist/{sdk-runtime-C39Rsk-x.mjs → sdk-runtime-MBzD-GmP.mjs} +2 -2
  142. package/dist/{separator-BoMSQnsP.mjs → separator-5ahRBC85.mjs} +1 -1
  143. package/dist/server/components.mjs +556 -366
  144. package/dist/server/config-validation.mjs +384 -363
  145. package/dist/server/config.mjs +384 -364
  146. package/dist/server/data.mjs +377 -362
  147. package/dist/server/index.mjs +179 -1
  148. package/dist/server/navigation.mjs +9 -3
  149. package/dist/server/next.mjs +1384 -995
  150. package/dist/server/page-converter.mjs +368 -355
  151. package/dist/server/prebuild.mjs +1 -1
  152. package/dist/server/rendering/server.mjs +539 -360
  153. package/dist/server/rendering.mjs +556 -366
  154. package/dist/server/routing.mjs +613 -543
  155. package/dist/server/server.mjs +554 -361
  156. package/dist/server/theme-bridge.mjs +189 -98
  157. package/dist/server/theme.mjs +161 -95
  158. package/dist/styles/index.css +7 -1
  159. package/package.json +1 -1
@@ -4802,9 +4802,9 @@ export declare const styleTokenSchema: z.ZodObject<{
4802
4802
  }>>;
4803
4803
  typography: z.ZodOptional<z.ZodEnum<{
4804
4804
  display: "display";
4805
+ heading: "heading";
4805
4806
  body: "body";
4806
4807
  caption: "caption";
4807
- heading: "heading";
4808
4808
  subheading: "subheading";
4809
4809
  }>>;
4810
4810
  spacing: z.ZodOptional<z.ZodEnum<{
@@ -4890,9 +4890,9 @@ export declare const manifestSchema: z.ZodObject<{
4890
4890
  }>>;
4891
4891
  typography: z.ZodOptional<z.ZodEnum<{
4892
4892
  display: "display";
4893
+ heading: "heading";
4893
4894
  body: "body";
4894
4895
  caption: "caption";
4895
- heading: "heading";
4896
4896
  subheading: "subheading";
4897
4897
  }>>;
4898
4898
  spacing: z.ZodOptional<z.ZodEnum<{
@@ -55,6 +55,10 @@ export type BackgroundLayerOptions = {
55
55
  */
56
56
  imageFetchPriority?: MediaImageFetchPriority;
57
57
  };
58
+ export type BackgroundFrameOptions = BackgroundLayerOptions & {
59
+ /** Decorative nodes painted below the configured background layers. */
60
+ leadingNodes?: NodeDefinition[];
61
+ };
58
62
  /**
59
63
  * Creates background layer nodes for rendering backgrounds from field data.
60
64
  *
@@ -97,6 +101,15 @@ export type BackgroundLayerOptions = {
97
101
  * )
98
102
  */
99
103
  export declare function backgroundLayer(path: string, options?: BackgroundLayerOptions): NodeDefinition[];
104
+ /**
105
+ * Wrap decorative background layers in their own clipping frame.
106
+ *
107
+ * Foreground content remains outside this frame, so editor outlines, focus
108
+ * rings, and floating controls are never clipped by a visual background.
109
+ * Backgrounds that explicitly opt into overflow keep that behavior within
110
+ * the decorative layer rather than changing the content root.
111
+ */
112
+ export declare function backgroundFrame(path: string, options?: BackgroundFrameOptions): NodeDefinition;
100
113
  /**
101
114
  * Creates a media node for rendering background image/video media with conditional rendering.
102
115
  *
@@ -1,3 +1,4 @@
1
+ import type { NodeModifier } from "../builder";
1
2
  import type { NodeDefinition } from "../schema";
2
3
  import type { ClassNameBinding } from "./classNameBinding";
3
4
  type FooterNavMode = "all" | "links-only" | "flatten";
@@ -16,6 +17,7 @@ type FooterNavOpts = {
16
17
  */
17
18
  mode?: FooterNavMode;
18
19
  };
20
+ export declare const whenCollectionHasItems: (collectionPath: string) => NodeModifier;
19
21
  /**
20
22
  * Footer navigation component that renders children expanded (not as dropdowns).
21
23
  *
@@ -30,15 +30,15 @@ export type StyledContainerConfig = {
30
30
  * Base CSS classes always applied to the container element.
31
31
  *
32
32
  * This element is the containing block for absolute-positioned background layers.
33
- * We default to `rb-overflow-hidden` so background layers clip correctly
34
- * (especially with rounded corners + scaled images).
33
+ * Decorative background layers clip in their own absolute frame so this
34
+ * foreground root can leave focus rings and editor chrome visible.
35
35
  *
36
- * @default 'rb-relative rb-isolate rb-overflow-hidden'
36
+ * @default 'rb-relative rb-isolate rb-overflow-visible'
37
37
  */
38
38
  baseClassName?: string;
39
39
  /**
40
40
  * CSS class to apply to background image layer.
41
- * @default 'rb-absolute rb-z-neg-10'
41
+ * @default 'rb-absolute rb-z-0'
42
42
  */
43
43
  imageClassName?: string;
44
44
  /**
@@ -37,13 +37,13 @@ export type StyledSectionConfig = {
37
37
  background?: string;
38
38
  /**
39
39
  * Path to the section styles data in the content (e.g., '_sectionStyles').
40
- * This path is used for binding className, allowOverflow, and background layers.
40
+ * This path is used for binding className and background layers.
41
41
  * @default '_sectionStyles'
42
42
  */
43
43
  bindFrom?: string;
44
44
  /**
45
45
  * CSS class to apply to background image layer.
46
- * @default 'rb-absolute rb-z-neg-10'
46
+ * @default 'rb-absolute rb-z-0'
47
47
  */
48
48
  imageClassName?: string;
49
49
  /**
@@ -63,15 +63,6 @@ export type StyledSectionConfig = {
63
63
  * Browser fetch priority hint for the automatic background image layer.
64
64
  */
65
65
  backgroundImageFetchPriority?: MediaImageFetchPriority;
66
- /**
67
- * Force section overflow visible instead of deriving it from the background.
68
- *
69
- * Useful for layouts with animated foreground elements where no clipped
70
- * section background image is being rendered.
71
- *
72
- * @default false
73
- */
74
- allowOverflow?: boolean;
75
66
  /**
76
67
  * Optional path to a boolean flag in block content that should trigger
77
68
  * full-width section behavior (removing horizontal `rb-px-*` classes).
@@ -88,7 +79,7 @@ export type StyledSectionConfig = {
88
79
  * - Creating a section wrapper with background theme
89
80
  * - Adding background color/gradient/image layers
90
81
  * - Binding className to section styles with transform
91
- * - Binding allowOverflow for background positioning
82
+ * - Keeping foreground overflow visible while decorative backgrounds clip independently
92
83
  * - Wrapping content children
93
84
  *
94
85
  * Use this helper to eliminate 25+ lines of boilerplate section setup code.
@@ -20,7 +20,7 @@ export type AllowedNodeType = (typeof ALLOWED_NODE_TYPES)[number];
20
20
  * $bind.transforms within custom block layouts. Transform IDs
21
21
  * not in this list will be rejected during validation.
22
22
  */
23
- export declare const ALLOWED_TRANSFORM_IDS: readonly ["string.uppercase", "value.fallback", "date.formatShort", "array.length", "value.jsonArray", "value.csv", "array.marqueeLoop", "value.mapToken", "layout.maxWidthClass", "layout.headerRootClass", "layout.footerRootClass", "layout.headerRootStyle", "layout.headerSectionBackground", "layout.classicNavMode", "layout.footerRootStyle", "ui.headerNavLinkClass", "ui.headingClassFromAlignment", "ui.bodyClassFromAlignment", "ui.stackAlignFromAlignment", "ui.sectionStateTone", "ui.heroContentWrapperClass", "ui.heroCtaJustify", "ui.heroStackJustifyFromVerticalAlignment", "ui.heroGridClassFromVerticalAlignment", "ui.conditionalClass", "ui.twoColumnContainerClass", "ui.twoColumnFlexBasis", "ui.imageGalleryFilterClass", "ui.imageGalleryTileClass", "ui.imageGalleryTileStyle", "ui.imageGalleryMarqueeTileStyle", "ui.imageGalleryMarqueeDuration", "ui.imageGalleryMarqueeDirection", "ui.imageFragmentClass", "ui.imageFragmentSize", "media.fromUrl", "background.resolveStyle", "background.resolveColorsStyle", "background.resolveAllowOverflow", "background.resolveImageStyle", "background.resolveImageClassName", "background.resolveOverlayStyle", "links.resolve", "links.label", "content.interpolateRichTextTokens", "boxStyles.spacing", "boxStyles.resolveRootClass", "boxStyles.resolveRootStyle", "boxStyles.semanticGap", "boxStyles.semanticGapValue", "boxStyles.cardVariantClass", "containerStyles.resolveBoxClassName"];
23
+ export declare const ALLOWED_TRANSFORM_IDS: readonly ["string.uppercase", "value.fallback", "date.formatShort", "array.length", "value.jsonArray", "value.csv", "array.marqueeLoop", "value.mapToken", "layout.maxWidthClass", "layout.headerRootClass", "layout.footerRootClass", "layout.headerRootStyle", "layout.headerSectionBackground", "layout.classicNavMode", "layout.footerRootStyle", "ui.headerNavLinkClass", "ui.headingClassFromAlignment", "ui.bodyClassFromAlignment", "ui.stackAlignFromAlignment", "ui.sectionStateTone", "ui.heroContentWrapperClass", "ui.heroCtaJustify", "ui.heroStackJustifyFromVerticalAlignment", "ui.heroGridClassFromVerticalAlignment", "ui.conditionalClass", "ui.twoColumnContainerClass", "ui.twoColumnFlexBasis", "ui.imageGalleryFilterClass", "ui.imageGalleryTileClass", "ui.imageGalleryTileStyle", "ui.imageGalleryMarqueeTileStyle", "ui.imageGalleryMarqueeDuration", "ui.imageGalleryMarqueeDirection", "ui.imageFragmentClass", "ui.imageFragmentSize", "media.fromUrl", "background.resolveStyle", "background.resolveColorsStyle", "background.resolveFrameClassName", "background.resolveImageStyle", "background.resolveImageClassName", "background.resolveOverlayStyle", "links.resolve", "links.label", "content.interpolateRichTextTokens", "boxStyles.spacing", "boxStyles.resolveRootClass", "boxStyles.resolveRootStyle", "boxStyles.semanticGap", "boxStyles.semanticGapValue", "boxStyles.cardVariantClass", "containerStyles.resolveBoxClassName"];
24
24
  export type AllowedTransformId = (typeof ALLOWED_TRANSFORM_IDS)[number];
25
25
  /**
26
26
  * Set for O(1) lookup of allowed node types.
@@ -36,8 +36,8 @@ export declare const columnOptionSchema: z.ZodEnum<{
36
36
  4: "4";
37
37
  }>;
38
38
  export declare const weekStartSchema: z.ZodEnum<{
39
- sunday: "sunday";
40
39
  monday: "monday";
40
+ sunday: "sunday";
41
41
  }>;
42
42
  export declare const filterAutoShowSchema: z.ZodEnum<{
43
43
  auto: "auto";
@@ -68,8 +68,8 @@ export declare const internalResolvedLinkSchema: z.ZodObject<{
68
68
  routeId: z.ZodString;
69
69
  entityId: z.ZodString;
70
70
  entityType: z.ZodEnum<{
71
- page: "page";
72
71
  content: "content";
72
+ page: "page";
73
73
  }>;
74
74
  href: z.ZodString;
75
75
  title: z.ZodString;
@@ -83,8 +83,8 @@ export declare const internalLinkSchema: z.ZodUnion<readonly [z.ZodObject<{
83
83
  routeId: z.ZodString;
84
84
  entityId: z.ZodString;
85
85
  entityType: z.ZodEnum<{
86
- page: "page";
87
86
  content: "content";
87
+ page: "page";
88
88
  }>;
89
89
  href: z.ZodString;
90
90
  title: z.ZodString;
@@ -118,8 +118,8 @@ export declare const linkSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zod
118
118
  routeId: z.ZodString;
119
119
  entityId: z.ZodString;
120
120
  entityType: z.ZodEnum<{
121
- page: "page";
122
121
  content: "content";
122
+ page: "page";
123
123
  }>;
124
124
  href: z.ZodString;
125
125
  title: z.ZodString;
@@ -0,0 +1,14 @@
1
+ import type { ApiClient } from '../../api/src/request';
2
+ import { type FooterEditorTarget } from './footerComposer';
3
+ export declare function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, manageLinksHref, manageSettingsHref, legalRegion, initialTarget, variant, canEdit, onSaved, }: {
4
+ apiClient: ApiClient;
5
+ siteId: string;
6
+ customFooterMode: 'default' | 'blocks' | 'default+blocks' | 'none';
7
+ manageLinksHref: string;
8
+ manageSettingsHref: string;
9
+ legalRegion?: 'integrated' | 'separate';
10
+ initialTarget?: FooterEditorTarget;
11
+ variant?: 'full' | 'sidebar';
12
+ canEdit?: boolean;
13
+ onSaved?: () => void;
14
+ }): import("react").JSX.Element;
@@ -3,7 +3,7 @@ import type { EditorBlockId } from '../../../core/src/index';
3
3
  import type { BlockItem } from '../../../editor-blocks/src/block-editor/types';
4
4
  import { type ReactNode } from 'react';
5
5
  import { type PublishOptions } from '../hooks/useEntryActions';
6
- import { type ApiClient } from '../services';
6
+ import { type ApiClient, type ContentEditorServices } from '../services';
7
7
  import type { DraftWorkflowStatus } from '../types';
8
8
  import { type EditorUiState } from '../ui/editorUiStore';
9
9
  import type { ResolveBlockManifest } from '../ui/blockValidationView';
@@ -47,12 +47,16 @@ export type EntryRecoveryConflictState = Readonly<{
47
47
  discardRecoveredChanges: () => void;
48
48
  }>;
49
49
  /** Actions returned by useEntryActions */
50
- export type EntryActions = {
50
+ export type EntryActions = Readonly<{
51
+ kind: 'entryLifecycle';
51
52
  saveDraft: () => Promise<void>;
52
53
  publish: (options?: PublishOptions) => Promise<void>;
53
54
  discardDraft: () => Promise<void>;
54
55
  deleteEntry: () => Promise<void>;
55
- };
56
+ }> | Readonly<{
57
+ kind: 'pageSurfaceDraft';
58
+ saveDraft: () => Promise<void>;
59
+ }>;
56
60
  export type EntryControllerContextValue = {
57
61
  entry: ContentEntrySnapshot;
58
62
  baseline: Record<string, unknown>;
@@ -68,7 +72,6 @@ type BaseInternalProps = {
68
72
  children: ReactNode;
69
73
  apiClient: ApiClient;
70
74
  siteId: string;
71
- entryId: string;
72
75
  routeId?: string;
73
76
  type: string;
74
77
  schema: ContentTypeSchema;
@@ -84,17 +87,33 @@ type BaseInternalProps = {
84
87
  historyShortcutsEnabled?: boolean;
85
88
  resolveBlockManifest?: ResolveBlockManifest;
86
89
  };
87
- type PageInternalProps = BaseInternalProps & {
90
+ type EditorOwnerServiceProps = Readonly<{
91
+ owner: {
92
+ kind: 'contentEntry';
93
+ contentEntryId: string;
94
+ };
95
+ services?: Extract<ContentEditorServices, {
96
+ kind: 'entryLifecycle';
97
+ }>;
98
+ }> | Readonly<{
99
+ owner: {
100
+ kind: 'pageSurface';
101
+ pageSurfaceId: string;
102
+ };
103
+ services: Extract<ContentEditorServices, {
104
+ kind: 'pageSurfaceDraft';
105
+ }>;
106
+ }>;
107
+ type PageInternalProps = {
88
108
  kind: 'page';
89
109
  initialStatus?: 'draft' | 'scheduled' | 'published';
90
- } & {
91
110
  initialBlocks?: BlockItem[];
92
111
  };
93
- type ContentInternalProps = BaseInternalProps & {
112
+ type ContentInternalProps = {
94
113
  kind: 'content';
95
114
  initialBlocks?: BlockItem[];
96
115
  };
97
- type EntryControllerProviderProps = PageInternalProps | ContentInternalProps;
116
+ type EntryControllerProviderProps = BaseInternalProps & EditorOwnerServiceProps & (PageInternalProps | ContentInternalProps);
98
117
  /**
99
118
  * Entry Controller Provider
100
119
  *
@@ -0,0 +1,56 @@
1
+ import { type FooterArrangementPlan, type FooterCompositionV1, type FooterModuleId, type FooterNavigationRole, type FooterSection, type PublicProfile } from '../../core/src/index';
2
+ export type FooterEditorTarget = Readonly<{
3
+ kind: 'overview';
4
+ }> | Readonly<{
5
+ kind: 'module';
6
+ moduleId: FooterModuleId;
7
+ }> | Readonly<{
8
+ kind: 'shared-profile';
9
+ section: 'contact' | 'opening-hours' | 'social-links';
10
+ }>;
11
+ export type FooterEditorSource = Readonly<{
12
+ kind: 'footer-local';
13
+ description: string;
14
+ }> | Readonly<{
15
+ kind: 'site-identity';
16
+ description: string;
17
+ }> | Readonly<{
18
+ kind: 'footer-menu';
19
+ role: FooterNavigationRole;
20
+ description: string;
21
+ }> | Readonly<{
22
+ kind: 'business-address';
23
+ description: string;
24
+ }> | Readonly<{
25
+ kind: 'public-profile';
26
+ section: 'contact' | 'opening-hours' | 'social-links';
27
+ description: string;
28
+ }>;
29
+ export type FooterEditorSectionPlan = Readonly<{
30
+ section: FooterSection;
31
+ label: string;
32
+ selected: boolean;
33
+ source: FooterEditorSource;
34
+ availability: 'ready' | 'missing-source';
35
+ status: string | null;
36
+ actions: readonly ('edit' | 'hide' | 'show' | 'manage-links' | 'repair')[];
37
+ }>;
38
+ export type FooterEditorViewPlan = Readonly<{
39
+ scopeLabel: 'All pages';
40
+ shown: readonly FooterEditorSectionPlan[];
41
+ available: readonly FooterEditorSectionPlan[];
42
+ arrangement: FooterArrangementPlan;
43
+ }>;
44
+ type FooterEditorViewPlanInput = Readonly<{
45
+ composition: FooterCompositionV1;
46
+ publicProfile: PublicProfile;
47
+ hasBusinessAddress: boolean;
48
+ hasLogo?: boolean;
49
+ hasMainNavigation?: boolean;
50
+ hasLegalPolicyNavigation?: boolean;
51
+ canEdit: boolean;
52
+ legalRegion?: 'integrated' | 'separate';
53
+ }>;
54
+ export declare function footerModuleLabel(section: FooterSection): string;
55
+ export declare function planFooterEditorView(input: FooterEditorViewPlanInput): FooterEditorViewPlan;
56
+ export {};
@@ -3,7 +3,7 @@ import type { EditorUiStoreInstance } from '../ui/editorUiStore';
3
3
  import type { PublishEntryResult } from '../services/contentEntryServices';
4
4
  /** Services interface for entry operations */
5
5
  export type EntryServices = {
6
- deleteEntry: () => Promise<void>;
6
+ deleteEntry?: () => Promise<void>;
7
7
  };
8
8
  export type PublishOptions = {
9
9
  mode?: 'default' | 'now';
@@ -1,11 +1,11 @@
1
- import type { ContentEntrySnapshot } from "../../../content-model/src/index";
2
- import type { EditorUiState } from "../ui/editorUiStore";
3
- import type { PublishEntryResult } from "../services/contentEntryServices";
1
+ import type { ContentEntrySnapshot } from '../../../content-model/src/index';
2
+ import type { EditorUiState } from '../ui/editorUiStore';
3
+ import type { PublishEntryResult } from '../services/contentEntryServices';
4
4
  type StoreApi<T> = {
5
5
  getState: () => T;
6
6
  };
7
7
  export declare function usePublishEntryMutation<TEntry extends ContentEntrySnapshot = ContentEntrySnapshot, TPublishPayload = unknown>({ publishFn, siteId, type, entryId, isPage, pageId, uiStore, }: {
8
- publishFn: (payload: TPublishPayload | undefined) => Promise<PublishEntryResult<TEntry>>;
8
+ publishFn?: (payload: TPublishPayload | undefined) => Promise<PublishEntryResult<TEntry>>;
9
9
  siteId: string;
10
10
  type: string;
11
11
  entryId: string;
@@ -18,7 +18,7 @@ export declare function usePublishEntryMutation<TEntry extends ContentEntrySnaps
18
18
  publishedBlocks?: readonly import("../../../api/src/index").PublishedBlockBaseline[];
19
19
  }>, Error, TPublishPayload | undefined, unknown>;
20
20
  export declare function useDiscardDraftMutation<TEntry = unknown>({ discardFn, siteId, type, entryId, isPage, pageId, }: {
21
- discardFn: () => Promise<TEntry>;
21
+ discardFn?: () => Promise<TEntry>;
22
22
  siteId: string;
23
23
  type: string;
24
24
  entryId: string;
@@ -23,6 +23,8 @@ export { PreviewTextEditor } from './primitives/PreviewTextEditor';
23
23
  export { PreviewInlineTextEditor } from './primitives/PreviewInlineTextEditor';
24
24
  export { PreviewRichTextEditor } from './primitives/PreviewRichTextEditor';
25
25
  export { recordsEqual as editorValuesEqual } from './ui/stores/utils';
26
+ export { footerModuleLabel, planFooterEditorView, type FooterEditorSectionPlan, type FooterEditorSource, type FooterEditorTarget, type FooterEditorViewPlan, } from './footerComposer';
27
+ export { FooterComposerPanel } from './FooterComposerPanel';
26
28
  export { useStoreBinding, parseEditorPath } from './primitives/shared';
27
29
  export type { PathInfo } from './primitives/shared';
28
30
  export * from './ai/overlayHelpers';
@@ -1,12 +1,14 @@
1
1
  import type { RichTextPrimitiveProps } from "../../../blocks/src/index";
2
2
  import type { PreviewLinkedEntryFieldBinding } from '../../../blocks/src/system/data/index';
3
+ import { type ReactNode } from 'react';
3
4
  type PreviewRichTextEditorProps = RichTextPrimitiveProps & {
4
5
  onLinkedEntryFieldFocus?: (binding: PreviewLinkedEntryFieldBinding) => void;
5
6
  onBlockFieldFocus?: (path: string) => void;
7
+ renderToolbarHost?: (toolbar: ReactNode) => ReactNode;
6
8
  };
7
9
  /**
8
10
  * Memoized version to prevent unnecessary re-renders.
9
11
  * Only re-renders when path, doc, variant, or className props actually change.
10
12
  */
11
- export declare const PreviewRichTextEditor: import("react").MemoExoticComponent<({ path, linkedEntryField, onLinkedEntryFieldFocus, onBlockFieldFocus, className, doc, variant, placeholder, ariaLabel, }: PreviewRichTextEditorProps) => import("react").JSX.Element>;
13
+ export declare const PreviewRichTextEditor: import("react").MemoExoticComponent<({ path, linkedEntryField, onLinkedEntryFieldFocus, onBlockFieldFocus, className, doc, as: Comp, variant, placeholder, ariaLabel, renderToolbarHost, }: PreviewRichTextEditorProps) => import("react").JSX.Element>;
12
14
  export {};
@@ -1,7 +1,7 @@
1
- import { type ContentTypeKey, type ApiClient, type PublishedBlockBaseline } from "../../../api/src/content-editor";
2
- import type { ContentEntrySnapshot } from "../../../content-model/src/index";
1
+ import { type ContentTypeKey, type ApiClient, type PublishedBlockBaseline, type RouteMetadataPayload } from '../../../api/src/content-editor';
2
+ import type { ContentEntrySnapshot } from '../../../content-model/src/index';
3
3
  export type { ApiClient };
4
- export type ContentEntryServiceConfig<TResponse, TSnapshot extends ContentEntrySnapshot> = {
4
+ export type ContentEntryServiceConfig<TResponse extends object, TSnapshot extends ContentEntrySnapshot> = {
5
5
  type: ContentTypeKey;
6
6
  siteId: string;
7
7
  entryId: string;
@@ -15,36 +15,20 @@ export type PublishEntryResult<TSnapshot extends ContentEntrySnapshot> = Readonl
15
15
  publishedContent?: Record<string, unknown> | null;
16
16
  publishedBlocks?: readonly PublishedBlockBaseline[];
17
17
  }>;
18
- export declare function createContentEntryServices<TResponse, TMetadataPayload extends Record<string, unknown>, TPublishPayload, TSnapshot extends ContentEntrySnapshot>(apiClient: ApiClient, config: ContentEntryServiceConfig<TResponse, TSnapshot>): {
19
- saveContent(content: Record<string, unknown>): Promise<TResponse>;
20
- saveMetadata(payload: TMetadataPayload): Promise<{
21
- id: string;
22
- siteId: string;
23
- nodeId: string | null;
24
- nodeType: "page" | "content_entry" | null;
25
- draftTitle: string | null;
26
- draftPath: string | null;
27
- draftStatus: string | null;
28
- publishedTitle: string | null;
29
- publishedPath: string | null;
30
- status: string | null;
31
- publishedAt: string | null;
32
- scheduledPublishAt: string | null;
33
- draftMetaTitle: string | null;
34
- draftMetaDescription: string | null;
35
- canonicalUrl: string | null;
36
- publishedMetaTitle: string | null;
37
- publishedMetaDescription: string | null;
38
- ogImageId: string | null;
39
- draftUpdatedAt: string | null;
40
- updatedBy: string | null;
41
- }>;
42
- publishDetailed: (payload: TPublishPayload | undefined) => Promise<{
43
- snapshot: TSnapshot;
44
- publishedContent: Record<string, unknown> | undefined;
45
- publishedBlocks: PublishedBlockBaseline[] | undefined;
46
- }>;
47
- publish(payload: TPublishPayload | undefined): Promise<TSnapshot>;
48
- discardDraft(): Promise<TSnapshot>;
49
- deleteEntry(): Promise<void>;
50
- };
18
+ type ContentEditorDraftServices<TSnapshot extends ContentEntrySnapshot = ContentEntrySnapshot, TMetadataPayload extends Record<string, unknown> = RouteMetadataPayload> = Readonly<{
19
+ saveContent: (content: Record<string, unknown>) => Promise<Record<string, unknown>>;
20
+ saveMetadata: (payload: TMetadataPayload) => Promise<Record<string, unknown>>;
21
+ }>;
22
+ export type ContentEditorServices<TSnapshot extends ContentEntrySnapshot = ContentEntrySnapshot, TMetadataPayload extends Record<string, unknown> = RouteMetadataPayload> = ContentEditorDraftServices<TSnapshot, TMetadataPayload> & (Readonly<{
23
+ kind: 'entryLifecycle';
24
+ publishDetailed: (payload: unknown) => Promise<PublishEntryResult<TSnapshot>>;
25
+ publish: (payload: unknown) => Promise<TSnapshot>;
26
+ discardDraft: () => Promise<TSnapshot>;
27
+ deleteEntry: () => Promise<void>;
28
+ }> | Readonly<{
29
+ kind: 'pageSurfaceDraft';
30
+ }>);
31
+ export type EntryLifecycleContentEditorServices<TSnapshot extends ContentEntrySnapshot = ContentEntrySnapshot, TMetadataPayload extends Record<string, unknown> = RouteMetadataPayload> = Extract<ContentEditorServices<TSnapshot, TMetadataPayload>, {
32
+ kind: 'entryLifecycle';
33
+ }>;
34
+ export declare function createContentEntryServices<TResponse extends object, TMetadataPayload extends Record<string, unknown>, TPublishPayload, TSnapshot extends ContentEntrySnapshot>(apiClient: ApiClient, config: ContentEntryServiceConfig<TResponse, TSnapshot>): EntryLifecycleContentEditorServices<TSnapshot, TMetadataPayload>;
@@ -112,6 +112,7 @@ export type EditorBlockMeta = Readonly<{
112
112
  purpose: string | null;
113
113
  orderIndex: number | null;
114
114
  publishedContent: EditorBlockValues | null;
115
+ optimisticHash: string | null;
115
116
  }>;
116
117
  export type EditorDraftSnapshot = EditorStructuralDraftSnapshot;
117
118
  export type DraftBlockInitMetaInput = EditorDraftBlockInitMetaInput;
@@ -127,6 +128,7 @@ export type EditorBlockItem = Readonly<{
127
128
  publishedContent?: EditorValueRecord | null;
128
129
  bindings?: EditorValueRecord | null;
129
130
  purpose?: string | null;
131
+ optimisticHash?: string | null;
130
132
  }>;
131
133
  type NormalizedEditorBlockBase = Readonly<{
132
134
  kind: string;
@@ -136,6 +138,7 @@ type NormalizedEditorBlockBase = Readonly<{
136
138
  publishedContent: EditorBlockValues | null;
137
139
  bindings: EditorBlockValues | null;
138
140
  purpose: string | null;
141
+ optimisticHash: string | null;
139
142
  }>;
140
143
  export type PersistedEditorBlockItem = EditorPersistedBlock;
141
144
  export type PendingEditorBlockItem = NormalizedEditorBlockBase & Readonly<{
@@ -226,6 +229,7 @@ export type EditorSystemOperation = {
226
229
  blockId: EditorBlockId;
227
230
  savedValues: EditorBlockValues | null;
228
231
  acknowledgedVersion: number;
232
+ optimisticHash: string | null;
229
233
  } | {
230
234
  type: 'autosave-draft-failed';
231
235
  blockId: EditorBlockId;
@@ -293,7 +297,7 @@ export declare function initNewDraftBlock(snapshot: EditorHistorySnapshot, block
293
297
  export declare function updateDraftBlockBaseline(snapshot: EditorHistorySnapshot, blockId: EditorBlockId, baseline: DraftBlockBaselineInput, meta?: DraftBlockBaselineUpdateMetaInput): EditorHistorySnapshot;
294
298
  export declare function removeDraftBlock(snapshot: EditorHistorySnapshot, blockId: EditorBlockId): EditorHistorySnapshot;
295
299
  export declare function setDraftPublishedBaselines(snapshot: EditorHistorySnapshot, blocks: readonly BlockPublishedBaselineInput[]): EditorHistorySnapshot;
296
- export declare function autosaveDraftSucceeded(snapshot: EditorHistorySnapshot, blockId: EditorBlockId, savedValues: EditorBlockValues | null, acknowledgedVersion: number): EditorHistorySnapshot;
300
+ export declare function autosaveDraftSucceeded(snapshot: EditorHistorySnapshot, blockId: EditorBlockId, savedValues: EditorBlockValues | null, acknowledgedVersion: number, optimisticHash: string | null): EditorHistorySnapshot;
297
301
  export declare function autosaveDraftFailed(snapshot: EditorHistorySnapshot, blockId: EditorBlockId, message?: string): EditorHistorySnapshot;
298
302
  export declare function clearDraftError(snapshot: EditorHistorySnapshot, blockId: EditorBlockId): EditorHistorySnapshot;
299
303
  export declare function setDraftPending(snapshot: EditorHistorySnapshot, blockId: EditorBlockId): EditorHistorySnapshot;
@@ -1,3 +1,4 @@
1
+ import type { FooterModuleId } from '../../../core/src/index';
1
2
  import { type EditorUnpublishedState } from '../controller/deriveEditorUnpublishedState';
2
3
  import { type AutosaveState } from './stores/autosaveStore';
3
4
  import { type GeneratedIconAssetsState } from './stores/generatedIconAssetsStore';
@@ -33,6 +34,7 @@ export type ActivePreviewField = (Readonly<{
33
34
  */
34
35
  export type AutosaveAcknowledgement = Readonly<{
35
36
  acknowledgedVersion: number;
37
+ optimisticHash?: string | null;
36
38
  }>;
37
39
  /**
38
40
  * Form-facing metadata facade. Consumers pass plain records for ergonomics;
@@ -65,6 +67,13 @@ export type PreviewInspection = Readonly<{
65
67
  kind: 'linked-entry';
66
68
  entryId: LinkedContentEntryId;
67
69
  requestId: number;
70
+ }> | Readonly<{
71
+ kind: 'footer-module';
72
+ moduleId: FooterModuleId;
73
+ requestId: number;
74
+ }> | Readonly<{
75
+ kind: 'footer';
76
+ requestId: number;
68
77
  }>;
69
78
  export type LinkedEntryState = {
70
79
  getSelectedEntryId: () => LinkedContentEntryId | null;
@@ -184,6 +193,8 @@ export type EditorUiState = {
184
193
  setPreviewSidebarTab: (tab: PreviewSidebarTab) => void;
185
194
  inspectBlock: (blockId: EditorBlockId) => void;
186
195
  inspectLinkedEntry: (entryId: string) => void;
196
+ inspectFooterModule: (moduleId: FooterModuleId) => void;
197
+ inspectFooter: () => void;
187
198
  clearPreviewInspection: () => void;
188
199
  setActivePreviewField: (field: ActivePreviewField) => void;
189
200
  requestFocus: (payload: Omit<NonNullable<FocusRequest>, 'requestId'>) => void;
@@ -8,11 +8,11 @@ declare const BaseContentFieldSchema: z.ZodObject<{
8
8
  number: "number";
9
9
  boolean: "boolean";
10
10
  date: "date";
11
+ url: "url";
11
12
  text: "text";
12
13
  textarea: "textarea";
13
14
  select: "select";
14
15
  link: "link";
15
- url: "url";
16
16
  file: "file";
17
17
  media: "media";
18
18
  reference: "reference";
@@ -38,6 +38,9 @@ type SnapshotDefaults = {
38
38
  slug?: string | null;
39
39
  };
40
40
  export declare function createSnapshotFromContentEntry<TStatus extends string = string>(data: ContentEntryLike, routing: RoutingHelpers, defaults: SnapshotDefaults, titleField?: string | null): ContentEntrySnapshot<TStatus>;
41
+ export declare function createSnapshotFromRoutableContent<TStatus extends string = string>(owner: Readonly<{
42
+ id: string;
43
+ }>, route: NonNullable<ContentEntryLike["route"]>, routing: RoutingHelpers, defaults: SnapshotDefaults): RoutableContentSnapshot<TStatus>;
41
44
  type PageRecordLike = {
42
45
  id: string;
43
46
  draftTitle?: string | null;
@@ -96,6 +96,7 @@ export type BookingCalendarFeedTokenPublicId = Brand<string, 'BookingCalendarFee
96
96
  export type BookingCalendarFeedTokenSecret = Brand<string, 'BookingCalendarFeedTokenSecret'>;
97
97
  export type BookingCalendarFeedTokenSecretHash = Brand<string, 'BookingCalendarFeedTokenSecretHash'>;
98
98
  export type ContentEntryId = Brand<string, 'ContentEntryId'>;
99
+ export type ContentBlockId = Brand<string, 'ContentBlockId'>;
99
100
  export type ContentVersionId = Brand<string, 'ContentVersionId'>;
100
101
  export type EntryContentHash = Brand<string, 'EntryContentHash'>;
101
102
  export type StripeInvoiceId = Brand<string, 'StripeInvoiceId'>;
@@ -230,6 +231,7 @@ export declare const unsafeAsBookingCalendarFeedTokenPublicId: (id: string) => B
230
231
  export declare const unsafeAsBookingCalendarFeedTokenSecret: (value: string) => BookingCalendarFeedTokenSecret;
231
232
  export declare const unsafeAsBookingCalendarFeedTokenSecretHash: (value: string) => BookingCalendarFeedTokenSecretHash;
232
233
  export declare const unsafeAsContentEntryId: (id: string) => ContentEntryId;
234
+ export declare const unsafeAsContentBlockId: (id: string) => ContentBlockId;
233
235
  export declare const unsafeAsContentVersionId: (id: string) => ContentVersionId;
234
236
  export declare const unsafeAsEntryContentHash: (value: string) => EntryContentHash;
235
237
  export declare const unsafeAsStripeInvoiceId: (id: string) => StripeInvoiceId;
@@ -280,6 +282,7 @@ export declare const parseProductVariantId: (value: unknown) => Result<ProductVa
280
282
  export declare const parseProductCategoryId: (value: unknown) => Result<ProductCategoryId, BrandedIdParseError>;
281
283
  export declare const parseMediaAssetId: (value: unknown) => Result<MediaAssetId, BrandedIdParseError>;
282
284
  export declare const parseContentEntryId: (value: unknown) => Result<ContentEntryId, BrandedIdParseError>;
285
+ export declare const parseContentBlockId: (value: unknown) => Result<ContentBlockId, BrandedIdParseError>;
283
286
  export declare const parseContentVersionId: (value: unknown) => Result<ContentVersionId, BrandedIdParseError>;
284
287
  export declare const parseNavigationMenuId: (value: unknown) => Result<NavigationMenuId, BrandedIdParseError>;
285
288
  export declare const parseNavigationItemId: (value: unknown) => Result<NavigationItemId, BrandedIdParseError>;
@@ -27,6 +27,7 @@ export type EditorStructuralDraftMeta = Readonly<{
27
27
  purpose: string | null;
28
28
  orderIndex: number | null;
29
29
  publishedContent: EditorBlockValues | null;
30
+ optimisticHash: string | null;
30
31
  }>;
31
32
  export type EditorStructuralDraftSnapshot = Readonly<{
32
33
  id: EditorBlockId;
@@ -45,12 +46,14 @@ export type EditorDraftBlockInitMetaInput = Readonly<{
45
46
  purpose?: string | null;
46
47
  orderIndex?: number | null;
47
48
  publishedContent?: EditorBlockBaselineInput;
49
+ optimisticHash?: string | null;
48
50
  }>;
49
51
  export type EditorDraftBlockBaselineUpdateMetaInput = Readonly<{
50
52
  kind?: string;
51
53
  purpose?: string | null;
52
54
  orderIndex?: number | null;
53
55
  publishedContent?: EditorBlockBaselineInput;
56
+ optimisticHash?: string | null;
54
57
  }>;
55
58
  export type EditorBlockPublishedBaselineInput = Readonly<{
56
59
  id: EditorBlockId;
@@ -66,6 +69,7 @@ export type EditorPersistedBlock = Readonly<{
66
69
  publishedContent: EditorBlockValues | null;
67
70
  bindings: EditorBlockValues | null;
68
71
  purpose: string | null;
72
+ optimisticHash: string | null;
69
73
  }>;
70
74
  export type EditorInsertBlockCommand = Readonly<{
71
75
  type: 'insert-block';