@riverbankcms/sdk 0.101.0 → 0.103.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 (123) hide show
  1. package/README.md +10 -2
  2. package/dist/{PreviewEditorSidebar-DBpy0KTh.mjs → PreviewEditorSidebar-DkNpCPja.mjs} +430 -74
  3. package/dist/{PreviewEditorUI-Fg6I2R2T.mjs → PreviewEditorUI-DeNKtqk3.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-BICQLAUF.mjs → PreviewQueryProvider-ZF6TXq5Q.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-DFQP-Q53.mjs → SdkPreviewModeRuntime-5bCsXK2y.mjs} +694 -329
  6. package/dist/{SiteChromeCustomizeContext-GwZc89KN.mjs → SiteChromeCustomizeContext-CO1sTK_W.mjs} +538 -69
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +298 -298
  8. package/dist/_dts/ai/src/designer/rfc6902.d.ts +57 -1
  9. package/dist/_dts/ai/src/designer/themePatch.d.ts +16 -6
  10. package/dist/_dts/api/src/bookingVerticals.d.ts +53 -1
  11. package/dist/_dts/api/src/index.d.ts +1 -1
  12. package/dist/_dts/api/src/navigation/contracts.d.ts +6 -6
  13. package/dist/_dts/api/src/siteBanner.d.ts +2 -2
  14. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -0
  15. package/dist/_dts/blocks/src/PageRenderer.d.ts +6 -1
  16. package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
  17. package/dist/_dts/blocks/src/index.d.ts +1 -1
  18. package/dist/_dts/blocks/src/server.d.ts +1 -1
  19. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +7 -7
  20. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
  21. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +14 -14
  22. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +5 -5
  23. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +227 -227
  24. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +1 -1
  25. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  26. package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
  27. package/dist/_dts/blocks/src/system/inlineText.d.ts +2 -2
  28. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +177 -177
  29. package/dist/_dts/blocks/src/system/node/schema.d.ts +1 -1
  30. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
  31. package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +1 -0
  32. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
  33. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
  34. package/dist/_dts/content-editor/src/index.d.ts +1 -0
  35. package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
  36. package/dist/_dts/core/src/branded.d.ts +4 -0
  37. package/dist/_dts/core/src/person-records.d.ts +6 -1
  38. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +154 -18
  39. package/dist/_dts/db/src/schemas/forms.d.ts +15 -15
  40. package/dist/_dts/media-core/src/identifiers.d.ts +14 -1
  41. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
  42. package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +3 -1
  43. package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
  44. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -1
  45. package/dist/_dts/preview-next/src/client/preview/CustomizeColorTokenPicker.d.ts +27 -0
  46. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -1
  47. package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +2 -1
  48. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +10 -2
  49. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +43 -7
  50. package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +1 -1
  51. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +16 -1
  52. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +3 -2
  53. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +4 -4
  54. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -1
  55. package/dist/_dts/preview-next/src/client/preview/typographySelectionInput.d.ts +4 -2
  56. package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
  57. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  58. package/dist/_dts/sdk/src/contracts/page.d.ts +2 -0
  59. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +10 -10
  60. package/dist/_dts/sdk/src/next/revalidate.d.ts +14 -1
  61. package/dist/_dts/sdk/src/public-api/contracts.d.ts +4 -4
  62. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
  63. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -2
  64. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +3 -4
  65. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -0
  66. package/dist/_dts/sdk/src/version.d.ts +1 -1
  67. package/dist/_dts/site-commands/src/commands.d.ts +19 -19
  68. package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
  69. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +3 -3
  70. package/dist/_dts/theme-core/src/buttons/types.d.ts +7 -7
  71. package/dist/_dts/theme-core/src/cards/types.d.ts +6 -6
  72. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  73. package/dist/_dts/theme-core/src/inputs/types.d.ts +4 -4
  74. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +150 -144
  75. package/dist/_dts/theme-core/src/navigation/types.d.ts +6 -6
  76. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +5 -5
  77. package/dist/_dts/theme-core/src/schema.d.ts +199 -169
  78. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  79. package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
  80. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +28 -26
  81. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
  82. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +4 -4
  83. package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
  84. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +9 -2
  85. package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +3 -3
  86. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +50 -2
  87. package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +77 -0
  88. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +44 -0
  89. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
  90. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
  91. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
  92. package/dist/_dts/ui/src/badge.d.ts +1 -1
  93. package/dist/_dts/ui/src/button.d.ts +1 -1
  94. package/dist/_dts/ui/src/card.d.ts +1 -1
  95. package/dist/_dts/ui/src/toggle.d.ts +2 -2
  96. package/dist/cli/index.mjs +58 -21
  97. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +9 -1
  98. package/dist/client/client.mjs +379 -83
  99. package/dist/client/hooks.mjs +27 -6
  100. package/dist/client/rendering/client.mjs +46 -17
  101. package/dist/client/rendering.mjs +378 -82
  102. package/dist/preview-next/before-render.mjs +1 -1
  103. package/dist/preview-next/client/runtime.mjs +4 -4
  104. package/dist/{previewAuthStore-Da74OL0X.mjs → previewAuthStore-ByPPZqmp.mjs} +1 -0
  105. package/dist/{sdk-runtime-CP6Kwalv.mjs → sdk-runtime-C8whifOy.mjs} +2 -2
  106. package/dist/{separator-BVk7GvGN.mjs → separator-CM2C5Axs.mjs} +1 -1
  107. package/dist/server/components.mjs +357 -77
  108. package/dist/server/config-validation.mjs +26 -6
  109. package/dist/server/config.mjs +26 -6
  110. package/dist/server/data.mjs +26 -6
  111. package/dist/server/index.mjs +2 -2
  112. package/dist/server/next/revalidate.mjs +31 -1
  113. package/dist/server/next.mjs +361 -78
  114. package/dist/server/page-converter.mjs +19 -5
  115. package/dist/server/prebuild.mjs +1 -1
  116. package/dist/server/rendering/server.mjs +359 -77
  117. package/dist/server/rendering.mjs +359 -77
  118. package/dist/server/routing.mjs +40 -9
  119. package/dist/server/server.mjs +29 -7
  120. package/dist/server/theme-bridge.mjs +158 -36
  121. package/dist/server/theme.mjs +3 -0
  122. package/dist/styles/index.css +123 -30
  123. package/package.json +1 -1
@@ -44,8 +44,8 @@ export declare const repeatSchema: z.ZodObject<{
44
44
  sortBy: z.ZodOptional<z.ZodObject<{
45
45
  path: z.ZodString;
46
46
  direction: z.ZodDefault<z.ZodEnum<{
47
- desc: "desc";
48
47
  asc: "asc";
48
+ desc: "desc";
49
49
  }>>;
50
50
  }, z.core.$strip>>;
51
51
  }, z.core.$strip>;
@@ -1451,7 +1451,7 @@ export declare const runtimeBackedBlockModes: {
1451
1451
  readonly shop: "passes-memberships";
1452
1452
  };
1453
1453
  export type RuntimeBackedBlockMode<TKind extends RuntimeBackedBlockKind> = typeof runtimeBackedBlockModes[TKind];
1454
- export declare const runtimeBackedBlockKinds: readonly ("form" | "event-registration" | "course-registration" | "event-listing" | "event-calendar" | "shop" | "product-list" | "product-detail" | "cart" | "checkout" | "gifting" | "newsletter-form")[];
1454
+ export declare const runtimeBackedBlockKinds: readonly ("form" | "cart" | "event-registration" | "event-listing" | "event-calendar" | "shop" | "product-list" | "product-detail" | "checkout" | "gifting" | "course-registration" | "newsletter-form")[];
1455
1455
  export declare const runtimeBackedBlockServerRegistry: Readonly<{
1456
1456
  readonly form: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
1457
1457
  readonly 'event-listing': React.ElementType<any, keyof React.JSX.IntrinsicElements>;
@@ -9,6 +9,7 @@ type NodeMetadataProps = {
9
9
  blockKind?: string;
10
10
  blockContent?: unknown;
11
11
  fragmentRegistry?: unknown;
12
+ previewAuthoring?: unknown;
12
13
  };
13
14
  type SectionNodeProps = React.ComponentProps<typeof Section> & NodeMetadataProps;
14
15
  type StackNodeProps = React.ComponentProps<typeof StackPrimitive> & NodeMetadataProps;
@@ -4,25 +4,25 @@ export declare const previewStageSchema: z.ZodEnum<{
4
4
  preview: "preview";
5
5
  }>;
6
6
  export declare const registrationButtonVariantSchema: z.ZodEnum<{
7
+ outline: "outline";
7
8
  primary: "primary";
8
9
  secondary: "secondary";
9
- outline: "outline";
10
10
  }>;
11
11
  export declare const eventButtonVariantSchema: z.ZodEnum<{
12
12
  link: "link";
13
+ outline: "outline";
13
14
  primary: "primary";
14
15
  secondary: "secondary";
15
- outline: "outline";
16
16
  }>;
17
17
  export declare const eventLayoutSchema: z.ZodEnum<{
18
- compact: "compact";
19
- grid: "grid";
20
18
  stack: "stack";
19
+ grid: "grid";
20
+ compact: "compact";
21
21
  }>;
22
22
  export declare const eventCalendarDisplayModeSchema: z.ZodEnum<{
23
- combined: "combined";
24
- calendar: "calendar";
25
23
  list: "list";
24
+ calendar: "calendar";
25
+ combined: "combined";
26
26
  timetable: "timetable";
27
27
  }>;
28
28
  export declare const eventCalendarDefaultViewSchema: z.ZodEnum<{
@@ -40,8 +40,8 @@ export declare const weekStartSchema: z.ZodEnum<{
40
40
  }>;
41
41
  export declare const filterAutoShowSchema: z.ZodEnum<{
42
42
  auto: "auto";
43
- always: "always";
44
43
  never: "never";
44
+ always: "always";
45
45
  }>;
46
46
  export declare const calendarTabViewsSchema: z.ZodEnum<{
47
47
  week: "week";
@@ -125,7 +125,7 @@ export declare function bindProp(from: string, opts?: {
125
125
  readonly $bind: {
126
126
  readonly pick?: "value" | "collection" | "context" | undefined;
127
127
  readonly fallback?: {} | null | undefined;
128
- readonly transforms?: TransformStep<"date.formatShort" | "string.uppercase" | "value.fallback" | "value.csv" | "layout.maxWidthClass" | "layout.headerRootClass" | "layout.footerRootClass" | "layout.headerRootStyle" | "layout.headerSectionBackground" | "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" | "media.fromUrl" | "content.interpolateRichTextTokens" | "boxStyles.semanticGap" | "boxStyles.semanticGapValue" | "boxStyles.cardVariantClass" | "layout.headerLogoClass" | "layout.headerLogoMediaClass" | "layout.headerLogoTextVisible" | "layout.footerBottomBarClass" | "layout.footerBottomBarContainerClass" | "layout.footerBottomBarStyle" | "layout.footerSplitNavSingleClass" | "layout.footerSimpleRootClass" | "layout.footerSimpleNavClass" | "layout.footerSplitMainClass" | "layout.footerLogoClass" | "layout.footerLogoMediaClass" | "layout.footerLogoTextVisible">[] | undefined;
128
+ readonly transforms?: TransformStep<"string.uppercase" | "value.fallback" | "date.formatShort" | "value.csv" | "layout.maxWidthClass" | "layout.headerRootClass" | "layout.footerRootClass" | "layout.headerRootStyle" | "layout.headerSectionBackground" | "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" | "media.fromUrl" | "content.interpolateRichTextTokens" | "boxStyles.semanticGap" | "boxStyles.semanticGapValue" | "boxStyles.cardVariantClass" | "layout.headerLogoClass" | "layout.headerLogoMediaClass" | "layout.headerLogoTextVisible" | "layout.footerBottomBarClass" | "layout.footerBottomBarContainerClass" | "layout.footerBottomBarStyle" | "layout.footerSplitNavSingleClass" | "layout.footerSimpleRootClass" | "layout.footerSimpleNavClass" | "layout.footerSplitMainClass" | "layout.footerLogoClass" | "layout.footerLogoMediaClass" | "layout.footerLogoTextVisible">[] | undefined;
129
129
  readonly from: string;
130
130
  };
131
131
  };
@@ -22,6 +22,7 @@ export type { ActivePreviewField, EditorUiStoreInstance, EditorUiState, EditorPr
22
22
  export { PreviewTextEditor } from './primitives/PreviewTextEditor';
23
23
  export { PreviewInlineTextEditor } from './primitives/PreviewInlineTextEditor';
24
24
  export { PreviewRichTextEditor } from './primitives/PreviewRichTextEditor';
25
+ export { recordsEqual as editorValuesEqual } from './ui/stores/utils';
25
26
  export { useStoreBinding, parseEditorPath } from './primitives/shared';
26
27
  export type { PathInfo } from './primitives/shared';
27
28
  export * from './ai/overlayHelpers';
@@ -11,16 +11,16 @@ declare const BaseContentFieldSchema: z.ZodObject<{
11
11
  text: "text";
12
12
  textarea: "textarea";
13
13
  select: "select";
14
+ link: "link";
14
15
  url: "url";
16
+ file: "file";
15
17
  media: "media";
18
+ reference: "reference";
19
+ group: "group";
20
+ datetime: "datetime";
16
21
  button: "button";
17
- link: "link";
18
22
  richText: "richText";
19
- file: "file";
20
- datetime: "datetime";
21
- reference: "reference";
22
23
  repeater: "repeater";
23
- group: "group";
24
24
  }>;
25
25
  label: z.ZodOptional<z.ZodString>;
26
26
  description: z.ZodOptional<z.ZodString>;
@@ -58,8 +58,8 @@ declare const BaseContentFieldSchema: z.ZodObject<{
58
58
  }, z.core.$strip>>;
59
59
  valueFrom: z.ZodOptional<z.ZodEnum<{
60
60
  id: "id";
61
- identifier: "identifier";
62
61
  slug: "slug";
62
+ identifier: "identifier";
63
63
  }>>;
64
64
  ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
65
65
  itemLabel: z.ZodOptional<z.ZodString>;
@@ -96,8 +96,8 @@ declare const RoutingSchema: z.ZodObject<{
96
96
  }, z.core.$strip>;
97
97
  declare const OrderingSchema: z.ZodDefault<z.ZodObject<{
98
98
  mode: z.ZodDefault<z.ZodEnum<{
99
- manual: "manual";
100
99
  default: "default";
100
+ manual: "manual";
101
101
  }>>;
102
102
  }, z.core.$strip>>;
103
103
  export declare const ContentTypeSchemaZ: z.ZodObject<{
@@ -131,8 +131,8 @@ export declare const ContentTypeSchemaZ: z.ZodObject<{
131
131
  }, z.core.$strip>>;
132
132
  ordering: z.ZodOptional<z.ZodDefault<z.ZodObject<{
133
133
  mode: z.ZodDefault<z.ZodEnum<{
134
- manual: "manual";
135
134
  default: "default";
135
+ manual: "manual";
136
136
  }>>;
137
137
  }, z.core.$strip>>>;
138
138
  }, z.core.$strip>;
@@ -255,11 +255,15 @@ export declare const parseNavigationItemId: (value: unknown) => Result<Navigatio
255
255
  export declare const parsePassId: (value: unknown) => Result<PassId, BrandedIdParseError>;
256
256
  export declare const parseMembershipId: (value: unknown) => Result<MembershipId, BrandedIdParseError>;
257
257
  export declare const parseCourseId: (value: unknown) => Result<CourseId, BrandedIdParseError>;
258
+ export declare const parseFormId: (value: unknown) => Result<FormId, BrandedIdParseError>;
258
259
  export declare const parseAppointmentId: (value: unknown) => Result<AppointmentId, BrandedIdParseError>;
260
+ export declare const parseAppointmentServiceId: (value: unknown) => Result<AppointmentServiceId, BrandedIdParseError>;
261
+ export declare const parseAppointmentResourceId: (value: unknown) => Result<AppointmentResourceId, BrandedIdParseError>;
259
262
  export declare const parseAppointmentReservationId: (value: unknown) => Result<AppointmentReservationId, BrandedIdParseError>;
260
263
  export declare const parseAppointmentReservationRunId: (value: unknown) => Result<AppointmentReservationRunId, BrandedIdParseError>;
261
264
  export declare const parseAttendeeId: (value: unknown) => Result<AttendeeId, BrandedIdParseError>;
262
265
  export declare const parseCustomerId: (value: unknown) => Result<CustomerId, BrandedIdParseError>;
266
+ export declare const parseCustomerPassId: (value: unknown) => Result<CustomerPassId, BrandedIdParseError>;
263
267
  export declare const parseCustomerMembershipId: (value: unknown) => Result<CustomerMembershipId, BrandedIdParseError>;
264
268
  export declare const parseEventSeriesId: (value: unknown) => Result<EventSeriesId, BrandedIdParseError>;
265
269
  export {};
@@ -1,5 +1,10 @@
1
+ import { type Result } from './result';
1
2
  export declare const RECORD_ENTRY_KINDS: readonly ["person_note", "prep_note", "session_note", "follow_up_note", "booking_questions_snapshot", "correction_note"];
2
3
  export type RecordEntryKind = (typeof RECORD_ENTRY_KINDS)[number];
3
4
  export declare const PERSON_RECORD_NOTE_KINDS: readonly ["person_note", "prep_note", "session_note", "follow_up_note", "correction_note"];
4
5
  export type PersonRecordNoteKind = (typeof PERSON_RECORD_NOTE_KINDS)[number];
5
- export declare function parseRecordEntryKind(value: string): RecordEntryKind | null;
6
+ export type RecordEntryKindParseError = Readonly<{
7
+ kind: 'unsupported_record_entry_kind';
8
+ value: string;
9
+ }>;
10
+ export declare function parseRecordEntryKind(value: string): Result<RecordEntryKind, RecordEntryKindParseError>;
@@ -7919,6 +7919,160 @@ export type Database = {
7919
7919
  }
7920
7920
  ];
7921
7921
  };
7922
+ event_offering_series: {
7923
+ Row: {
7924
+ content_ownership: string;
7925
+ created_at: string;
7926
+ created_by: string | null;
7927
+ deleted_at: string | null;
7928
+ event_offering_id: string;
7929
+ event_series_id: string;
7930
+ id: string;
7931
+ migration_source: Json;
7932
+ series_surface_id: string | null;
7933
+ site_id: string;
7934
+ updated_at: string;
7935
+ updated_by: string | null;
7936
+ };
7937
+ Insert: {
7938
+ content_ownership: string;
7939
+ created_at?: string;
7940
+ created_by?: string | null;
7941
+ deleted_at?: string | null;
7942
+ event_offering_id: string;
7943
+ event_series_id: string;
7944
+ id?: string;
7945
+ migration_source?: Json;
7946
+ series_surface_id?: string | null;
7947
+ site_id: string;
7948
+ updated_at?: string;
7949
+ updated_by?: string | null;
7950
+ };
7951
+ Update: {
7952
+ content_ownership?: string;
7953
+ created_at?: string;
7954
+ created_by?: string | null;
7955
+ deleted_at?: string | null;
7956
+ event_offering_id?: string;
7957
+ event_series_id?: string;
7958
+ id?: string;
7959
+ migration_source?: Json;
7960
+ series_surface_id?: string | null;
7961
+ site_id?: string;
7962
+ updated_at?: string;
7963
+ updated_by?: string | null;
7964
+ };
7965
+ Relationships: [
7966
+ {
7967
+ foreignKeyName: "event_offering_series_event_offering_id_fkey";
7968
+ columns: ["event_offering_id"];
7969
+ isOneToOne: false;
7970
+ referencedRelation: "event_offerings";
7971
+ referencedColumns: ["id"];
7972
+ },
7973
+ {
7974
+ foreignKeyName: "event_offering_series_event_series_id_fkey";
7975
+ columns: ["event_series_id"];
7976
+ isOneToOne: false;
7977
+ referencedRelation: "event_series";
7978
+ referencedColumns: ["id"];
7979
+ },
7980
+ {
7981
+ foreignKeyName: "event_offering_series_series_surface_id_fkey";
7982
+ columns: ["series_surface_id"];
7983
+ isOneToOne: false;
7984
+ referencedRelation: "page_surfaces";
7985
+ referencedColumns: ["id"];
7986
+ },
7987
+ {
7988
+ foreignKeyName: "event_offering_series_site_id_fkey";
7989
+ columns: ["site_id"];
7990
+ isOneToOne: false;
7991
+ referencedRelation: "sites";
7992
+ referencedColumns: ["id"];
7993
+ }
7994
+ ];
7995
+ };
7996
+ event_offerings: {
7997
+ Row: {
7998
+ created_at: string;
7999
+ created_by: string | null;
8000
+ deleted_at: string | null;
8001
+ id: string;
8002
+ metadata_json: Json;
8003
+ page_surface_id: string | null;
8004
+ site_id: string;
8005
+ slug: string;
8006
+ source_content_entry_id: string | null;
8007
+ source_kind: string;
8008
+ source_route_id: string | null;
8009
+ title: string;
8010
+ updated_at: string;
8011
+ updated_by: string | null;
8012
+ };
8013
+ Insert: {
8014
+ created_at?: string;
8015
+ created_by?: string | null;
8016
+ deleted_at?: string | null;
8017
+ id?: string;
8018
+ metadata_json?: Json;
8019
+ page_surface_id?: string | null;
8020
+ site_id: string;
8021
+ slug?: string;
8022
+ source_content_entry_id?: string | null;
8023
+ source_kind?: string;
8024
+ source_route_id?: string | null;
8025
+ title?: string;
8026
+ updated_at?: string;
8027
+ updated_by?: string | null;
8028
+ };
8029
+ Update: {
8030
+ created_at?: string;
8031
+ created_by?: string | null;
8032
+ deleted_at?: string | null;
8033
+ id?: string;
8034
+ metadata_json?: Json;
8035
+ page_surface_id?: string | null;
8036
+ site_id?: string;
8037
+ slug?: string;
8038
+ source_content_entry_id?: string | null;
8039
+ source_kind?: string;
8040
+ source_route_id?: string | null;
8041
+ title?: string;
8042
+ updated_at?: string;
8043
+ updated_by?: string | null;
8044
+ };
8045
+ Relationships: [
8046
+ {
8047
+ foreignKeyName: "event_offerings_page_surface_id_fkey";
8048
+ columns: ["page_surface_id"];
8049
+ isOneToOne: false;
8050
+ referencedRelation: "page_surfaces";
8051
+ referencedColumns: ["id"];
8052
+ },
8053
+ {
8054
+ foreignKeyName: "event_offerings_site_id_fkey";
8055
+ columns: ["site_id"];
8056
+ isOneToOne: false;
8057
+ referencedRelation: "sites";
8058
+ referencedColumns: ["id"];
8059
+ },
8060
+ {
8061
+ foreignKeyName: "event_offerings_source_content_entry_id_fkey";
8062
+ columns: ["source_content_entry_id"];
8063
+ isOneToOne: false;
8064
+ referencedRelation: "content_entries";
8065
+ referencedColumns: ["id"];
8066
+ },
8067
+ {
8068
+ foreignKeyName: "event_offerings_source_route_id_fkey";
8069
+ columns: ["source_route_id"];
8070
+ isOneToOne: false;
8071
+ referencedRelation: "site_routes";
8072
+ referencedColumns: ["id"];
8073
+ }
8074
+ ];
8075
+ };
7922
8076
  event_pricing_option_details: {
7923
8077
  Row: {
7924
8078
  attendance_scope: string;
@@ -17901,24 +18055,6 @@ export type Database = {
17901
18055
  order_id: string;
17902
18056
  }[];
17903
18057
  };
17904
- postgres_fdw_disconnect: {
17905
- Args: {
17906
- "": string;
17907
- };
17908
- Returns: boolean;
17909
- };
17910
- postgres_fdw_disconnect_all: {
17911
- Args: never;
17912
- Returns: boolean;
17913
- };
17914
- postgres_fdw_get_connections: {
17915
- Args: never;
17916
- Returns: Record<string, unknown>[];
17917
- };
17918
- postgres_fdw_handler: {
17919
- Args: never;
17920
- Returns: unknown;
17921
- };
17922
18058
  read_published_runtime_cache_entry: {
17923
18059
  Args: {
17924
18060
  p_cache_key: string;
@@ -121,9 +121,9 @@ export declare const bookingQuestionsFormSettingsSchema: z.ZodObject<{
121
121
  }, z.core.$strict>>;
122
122
  audienceHint: z.ZodOptional<z.ZodEnum<{
123
123
  mixed: "mixed";
124
+ appointments: "appointments";
124
125
  courses: "courses";
125
126
  events: "events";
126
- appointments: "appointments";
127
127
  }>>;
128
128
  customerTitle: z.ZodOptional<z.ZodString>;
129
129
  introTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -217,9 +217,9 @@ export declare const formSettingsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
217
217
  }, z.core.$strict>>;
218
218
  audienceHint: z.ZodOptional<z.ZodEnum<{
219
219
  mixed: "mixed";
220
+ appointments: "appointments";
220
221
  courses: "courses";
221
222
  events: "events";
222
- appointments: "appointments";
223
223
  }>>;
224
224
  customerTitle: z.ZodOptional<z.ZodString>;
225
225
  introTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -320,9 +320,9 @@ export declare const formSettingsInputSchema: z.ZodDiscriminatedUnion<[z.ZodObje
320
320
  }, z.core.$strict>>;
321
321
  audienceHint: z.ZodOptional<z.ZodEnum<{
322
322
  mixed: "mixed";
323
+ appointments: "appointments";
323
324
  courses: "courses";
324
325
  events: "events";
325
- appointments: "appointments";
326
326
  }>>;
327
327
  customerTitle: z.ZodOptional<z.ZodString>;
328
328
  introTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -370,8 +370,8 @@ export declare const formFieldSchema: z.ZodObject<{
370
370
  checkbox: "checkbox";
371
371
  radio: "radio";
372
372
  url: "url";
373
- tel: "tel";
374
373
  consent: "consent";
374
+ tel: "tel";
375
375
  }>;
376
376
  required: z.ZodDefault<z.ZodBoolean>;
377
377
  placeholder: z.ZodOptional<z.ZodString>;
@@ -394,8 +394,8 @@ export declare const formFieldSchema: z.ZodObject<{
394
394
  }, z.core.$strict>>;
395
395
  }, z.core.$strict>;
396
396
  export declare const bookingQuestionDocumentFileTypeSchema: z.ZodEnum<{
397
- image: "image";
398
397
  pdf: "pdf";
398
+ image: "image";
399
399
  docx: "docx";
400
400
  }>;
401
401
  declare const bookingQuestionScalarFieldSchema: z.ZodObject<{
@@ -448,8 +448,8 @@ declare const bookingQuestionDocumentUploadFieldSchema: z.ZodObject<{
448
448
  }>>;
449
449
  }, z.core.$strict>>;
450
450
  allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
451
- image: "image";
452
451
  pdf: "pdf";
452
+ image: "image";
453
453
  docx: "docx";
454
454
  }>>>;
455
455
  maxBytes: z.ZodDefault<z.ZodNumber>;
@@ -503,8 +503,8 @@ export declare const bookingQuestionFieldSchema: z.ZodDiscriminatedUnion<[z.ZodO
503
503
  }>>;
504
504
  }, z.core.$strict>>;
505
505
  allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
506
- image: "image";
507
506
  pdf: "pdf";
507
+ image: "image";
508
508
  docx: "docx";
509
509
  }>>>;
510
510
  maxBytes: z.ZodDefault<z.ZodNumber>;
@@ -562,8 +562,8 @@ export declare const bookingQuestionsSectionSchema: z.ZodObject<{
562
562
  }>>;
563
563
  }, z.core.$strict>>;
564
564
  allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
565
- image: "image";
566
565
  pdf: "pdf";
566
+ image: "image";
567
567
  docx: "docx";
568
568
  }>>>;
569
569
  maxBytes: z.ZodDefault<z.ZodNumber>;
@@ -624,8 +624,8 @@ export declare const bookingQuestionsDetailedSchemaSchema: z.ZodObject<{
624
624
  }>>;
625
625
  }, z.core.$strict>>;
626
626
  allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
627
- image: "image";
628
627
  pdf: "pdf";
628
+ image: "image";
629
629
  docx: "docx";
630
630
  }>>>;
631
631
  maxBytes: z.ZodDefault<z.ZodNumber>;
@@ -652,8 +652,8 @@ export declare const formSchemaSchema: z.ZodObject<{
652
652
  checkbox: "checkbox";
653
653
  radio: "radio";
654
654
  url: "url";
655
- tel: "tel";
656
655
  consent: "consent";
656
+ tel: "tel";
657
657
  }>;
658
658
  required: z.ZodDefault<z.ZodBoolean>;
659
659
  placeholder: z.ZodOptional<z.ZodString>;
@@ -727,8 +727,8 @@ export declare const bookingQuestionsFlatSchemaSchema: z.ZodObject<{
727
727
  }>>;
728
728
  }, z.core.$strict>>;
729
729
  allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
730
- image: "image";
731
730
  pdf: "pdf";
731
+ image: "image";
732
732
  docx: "docx";
733
733
  }>>>;
734
734
  maxBytes: z.ZodDefault<z.ZodNumber>;
@@ -785,8 +785,8 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
785
785
  }>>;
786
786
  }, z.core.$strict>>;
787
787
  allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
788
- image: "image";
789
788
  pdf: "pdf";
789
+ image: "image";
790
790
  docx: "docx";
791
791
  }>>>;
792
792
  maxBytes: z.ZodDefault<z.ZodNumber>;
@@ -846,8 +846,8 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
846
846
  }>>;
847
847
  }, z.core.$strict>>;
848
848
  allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
849
- image: "image";
850
849
  pdf: "pdf";
850
+ image: "image";
851
851
  docx: "docx";
852
852
  }>>>;
853
853
  maxBytes: z.ZodDefault<z.ZodNumber>;
@@ -906,8 +906,8 @@ export declare const createFormPayloadSchema: z.ZodObject<{
906
906
  checkbox: "checkbox";
907
907
  radio: "radio";
908
908
  url: "url";
909
- tel: "tel";
910
909
  consent: "consent";
910
+ tel: "tel";
911
911
  }>;
912
912
  required: z.ZodDefault<z.ZodBoolean>;
913
913
  placeholder: z.ZodOptional<z.ZodString>;
@@ -1016,9 +1016,9 @@ export declare const createFormPayloadSchema: z.ZodObject<{
1016
1016
  }, z.core.$strict>>;
1017
1017
  audienceHint: z.ZodOptional<z.ZodEnum<{
1018
1018
  mixed: "mixed";
1019
+ appointments: "appointments";
1019
1020
  courses: "courses";
1020
1021
  events: "events";
1021
- appointments: "appointments";
1022
1022
  }>>;
1023
1023
  customerTitle: z.ZodOptional<z.ZodString>;
1024
1024
  introTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,5 +1,18 @@
1
+ import { type Brand, type Result } from '../../core/src/index';
2
+ export type MediaIdentifier = Brand<string, 'MediaIdentifier'>;
3
+ export type MediaIdentifierParseError = Readonly<{
4
+ kind: 'not_string';
5
+ }> | Readonly<{
6
+ kind: 'empty_identifier';
7
+ }> | Readonly<{
8
+ kind: 'empty_after_normalization';
9
+ value: string;
10
+ }>;
1
11
  export declare function stripFileExtension(filename: string): string;
2
12
  export declare function slugifyMediaIdentifier(value: string): string;
3
13
  export declare function buildMediaIdentifierFromFilename(filename: string): string;
4
- export declare function resolveMediaIdentifier(base: string, existing: Set<string>): string;
14
+ export declare function parseMediaIdentifier(value: unknown): Result<MediaIdentifier, MediaIdentifierParseError>;
15
+ export declare function parseOptionalMediaIdentifier(value: unknown): Result<MediaIdentifier | undefined, MediaIdentifierParseError>;
16
+ export declare function unsafeAsMediaIdentifier(value: string): MediaIdentifier;
17
+ export declare function resolveMediaIdentifier(base: string, existing: Set<string>): MediaIdentifier;
5
18
  export declare const MEDIA_IDENTIFIER_FALLBACK = "media";
@@ -4,4 +4,4 @@ import type { DraftSnapshot, EditorDraftInspectorStore, EnrichedBlock } from './
4
4
  import { type PreviewProjection } from '../previewProjection';
5
5
  import { type LinkedEntryRenderOverlay } from '../linkedEntryRenderOverlay';
6
6
  export declare function getDraftSnapshots(uiStore: EditorDraftInspectorStore): Map<EditorBlockId, DraftSnapshot>;
7
- export declare function mergeBlockWithDraft(block: BlockItem, draftMap: Map<EditorBlockId, DraftSnapshot>, index: number, projections?: readonly PreviewProjection[], linkedEntryOverlays?: LinkedEntryRenderOverlay): EnrichedBlock;
7
+ export declare function mergeBlockWithDraft(block: BlockItem, draftMap: Map<EditorBlockId, DraftSnapshot>, index: number, projections?: readonly PreviewProjection[], linkedEntryOverlays?: LinkedEntryRenderOverlay, nextBlock?: BlockItem | null): EnrichedBlock;
@@ -3,5 +3,7 @@ import type { BlockItem } from '../../../../../editor-blocks/src/index';
3
3
  import type { CanonicalBlockContent, PreviewProjection, PreviewRenderContent } from './types';
4
4
  export declare function applyPreviewStructureProjections(blockItems: readonly BlockItem[], projections: readonly PreviewProjection[]): BlockItem[];
5
5
  export declare function applyPreviewContentFieldProjections(blockId: EditorBlockId, content: CanonicalBlockContent | null, projections: readonly PreviewProjection[]): CanonicalBlockContent | PreviewRenderContent | null;
6
- export declare function applyPreviewRuntimeContentProjections(block: BlockItem, content: CanonicalBlockContent | PreviewRenderContent | null, projections: readonly PreviewProjection[]): CanonicalBlockContent | PreviewRenderContent | null;
6
+ export declare function applyPreviewRuntimeContentProjections(block: BlockItem, content: CanonicalBlockContent | PreviewRenderContent | null, projections: readonly PreviewProjection[], adjacency?: Readonly<{
7
+ nextContent: Record<string, unknown> | null | undefined;
8
+ }>): CanonicalBlockContent | PreviewRenderContent | null;
7
9
  export declare function blockHasPreviewContentFieldProjection(blockId: EditorBlockId, projections: readonly PreviewProjection[]): boolean;
@@ -1,5 +1,5 @@
1
1
  import type { BlockItem } from '../../../../../editor-blocks/src/index';
2
- import { type DesignRuntimeRules, type PageDesignEditorReadModel, type SurfaceResolutionContext } from '../../../../../theme-core/src/site-styles/previewCompiler';
2
+ import { type DesignRuntimeRules, type PageDesignEditorReadModel, type RuntimeContentAdjacency, type SurfaceResolutionContext } from '../../../../../theme-core/src/site-styles/previewCompiler';
3
3
  import type { CanonicalBlockContent, PreviewRenderContent, RuntimeContentDecorationProjection } from './types';
4
4
  export declare function runtimeContentDecorationProjectionFromEditorModel(editorModel: PageDesignEditorReadModel, surfaceResolutionContext: SurfaceResolutionContext, designRules?: DesignRuntimeRules): RuntimeContentDecorationProjection;
5
- export declare function applyRuntimeContentDecorationProjection(block: BlockItem, content: CanonicalBlockContent | PreviewRenderContent | null, projection: RuntimeContentDecorationProjection): PreviewRenderContent;
5
+ export declare function applyRuntimeContentDecorationProjection(block: BlockItem, content: CanonicalBlockContent | PreviewRenderContent | null, projection: RuntimeContentDecorationProjection, adjacency?: Pick<RuntimeContentAdjacency, 'nextContent'>): PreviewRenderContent;
@@ -1,6 +1,6 @@
1
1
  import type { EditorBlockId } from '../../../../../core/src/index';
2
2
  import type { BlockItem } from '../../../../../editor-blocks/src/index';
3
- import type { CompiledBlockRuntimeFields, DesignBlockId } from '../../../../../theme-core/src/site-styles/previewCompiler';
3
+ import type { CompiledBlockRuntimeFields, CompiledBoundaryRuntime, DesignBlockId } from '../../../../../theme-core/src/site-styles/previewCompiler';
4
4
  export type CanonicalBlockContent = Record<string, unknown> & {
5
5
  readonly __contentAuthority?: 'canonical-block-content';
6
6
  };
@@ -55,6 +55,7 @@ export type PreviewProjection = Readonly<{
55
55
  kind: 'runtime-content-decoration';
56
56
  source: 'page-design';
57
57
  fieldsByBlockId: ReadonlyMap<DesignBlockId, CompiledBlockRuntimeFields>;
58
+ boundaries: readonly CompiledBoundaryRuntime<DesignBlockId>[];
58
59
  }>;
59
60
  export type StructureProjection = Extract<PreviewProjection, {
60
61
  kind: 'structure-overlay';
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ export declare function CustomizeColorTokenPicker<TToken extends string>({ title, selectedToken, recommendedTokens, advancedTokens, disabled, columnsClassName, showTitle, labelForToken, swatchColorForToken, onChooseToken, }: Readonly<{
3
+ title: string;
4
+ selectedToken: TToken | null;
5
+ recommendedTokens: readonly TToken[];
6
+ advancedTokens?: readonly TToken[];
7
+ disabled?: boolean;
8
+ columnsClassName?: string;
9
+ showTitle?: boolean;
10
+ labelForToken: (token: TToken) => string;
11
+ swatchColorForToken: (token: TToken) => string;
12
+ onChooseToken: (token: TToken, event: React.MouseEvent) => void;
13
+ }>): React.JSX.Element | null;
14
+ export declare function CustomizeBackgroundColorPicker<TToken extends string>({ title, selectedToken, recommendedTokens, advancedTokens, disabled, columnsClassName, defaultSelected, defaultLabel, labelForToken, swatchColorForToken, onChooseDefault, onChooseToken, }: Readonly<{
15
+ title?: string;
16
+ selectedToken: TToken | null;
17
+ recommendedTokens: readonly TToken[];
18
+ advancedTokens?: readonly TToken[];
19
+ disabled?: boolean;
20
+ columnsClassName?: string;
21
+ defaultSelected?: boolean;
22
+ defaultLabel?: string;
23
+ labelForToken: (token: TToken) => string;
24
+ swatchColorForToken: (token: TToken) => string;
25
+ onChooseDefault?: (event: React.MouseEvent) => void;
26
+ onChooseToken: (token: TToken, event: React.MouseEvent) => void;
27
+ }>): React.JSX.Element | null;
@@ -21,6 +21,7 @@ type PageBlockEditorPanelProps = {
21
21
  metadataPanel: ReactNode;
22
22
  linkedEntrySection?: PreviewLinkedEntrySidebarSection | null;
23
23
  designPanel?: ReactNode;
24
+ designOpenRequestId?: number | null;
24
25
  sdkConfig?: SdkConfigForBlockPicker | null;
25
26
  mediaAssets?: MediaAssetIndexItem[];
26
27
  bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
@@ -31,5 +32,5 @@ type PageBlockEditorPanelProps = {
31
32
  onViewportWidthChange: (width: ViewportWidth) => void;
32
33
  onZoomChange: (zoom: ZoomLevel) => void;
33
34
  };
34
- export declare function PageBlockEditorPanel({ siteId, pageId, theme, apiClient, bearerToken, supabaseUrl, blockItems, uiStoreForBlockEditor, blockEditorRef, onBlocksChange, metadataPanel, linkedEntrySection, designPanel, sdkConfig, mediaAssets, bookingOfferingPresets, viewportMode, viewportWidth, zoom, onViewportModeChange, onViewportWidthChange, onZoomChange, }: PageBlockEditorPanelProps): React.JSX.Element;
35
+ export declare function PageBlockEditorPanel({ siteId, pageId, theme, apiClient, bearerToken, supabaseUrl, blockItems, uiStoreForBlockEditor, blockEditorRef, onBlocksChange, metadataPanel, linkedEntrySection, designPanel, designOpenRequestId, sdkConfig, mediaAssets, bookingOfferingPresets, viewportMode, viewportWidth, zoom, onViewportModeChange, onViewportWidthChange, onZoomChange, }: PageBlockEditorPanelProps): React.JSX.Element;
35
36
  export {};
@@ -8,8 +8,9 @@ export declare function PreviewChromeLayerProvider({ children, }: {
8
8
  children: ReactNode;
9
9
  }): React.JSX.Element;
10
10
  export declare function usePreviewChromeLayerOptional(): PreviewChromeLayerContextValue | null;
11
- export declare function PreviewChromeFloatingControl({ anchorSelector, placement, fallbackClassName, fallbackStyle, portalClassName, forceVisible, children, }: {
11
+ export declare function PreviewChromeFloatingControl({ anchorSelector, anchorTargetSelector, placement, fallbackClassName, fallbackStyle, portalClassName, forceVisible, children, }: {
12
12
  anchorSelector: string;
13
+ anchorTargetSelector?: string;
13
14
  placement: PreviewChromeFloatingPlacement | ((anchorBox: PreviewChromeAnchorBox | null) => PreviewChromeFloatingPlacement);
14
15
  fallbackClassName: string;
15
16
  fallbackStyle?: CSSProperties;