@riverbankcms/sdk 0.88.0 → 0.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -4
- package/dist/{PreviewEditorSidebar-EVRS3C7T.mjs → PreviewEditorSidebar-KVXNF3VW.mjs} +3 -3
- package/dist/{PreviewEditorUI-54WD4IGE.mjs → PreviewEditorUI-J3JN5Z7T.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-UBL6MSNP.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +216 -0
- package/dist/_dts/altcha/src/AltchaWidget.d.ts +1 -1
- package/dist/_dts/api/src/accessAdmin.d.ts +7 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +4 -2
- package/dist/_dts/api/src/bookings.d.ts +3 -1
- package/dist/_dts/api/src/endpoints.d.ts +8 -0
- package/dist/_dts/api/src/index.d.ts +7 -6
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +15 -5
- package/dist/_dts/api/src/request.d.ts +21 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +3 -1
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteMembers.d.ts +6 -1
- package/dist/_dts/api/src/types.d.ts +4 -2
- package/dist/_dts/api/src/url.d.ts +6 -3
- package/dist/_dts/block-form/src/utils/visibleWhen.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailCard.d.ts +5 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailGrid.d.ts +9 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/index.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +7 -11
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +6 -0
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -6
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +8 -0
- package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -1
- package/dist/_dts/blocks/src/system/icons/cta.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -2
- package/dist/_dts/blocks/src/system/icons/semantic.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/svg.d.ts +72 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +18 -5
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +51 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/loadStateError.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.state.d.ts +55 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.d.ts +4 -27
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.state.d.ts +40 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.state.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +1 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +5 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +5 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +50 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/calendarViewOptions.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +24 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-checkout-form.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts +35 -0
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/sdkBlocks.d.ts +21 -0
- package/dist/_dts/content-model/src/entry-slots/types.d.ts +61 -0
- package/dist/_dts/core/src/branded.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/money-input.d.ts +18 -0
- package/dist/_dts/core/src/site-route-target.d.ts +40 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +209 -2
- package/dist/_dts/media-core/src/fileDomain.d.ts +4 -0
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -1
- package/dist/_dts/media-editor/src/fieldUi.d.ts +6 -0
- package/dist/_dts/media-editor/src/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewThemedSiteDocument.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/SiteChromeEditableSurface.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/themeRuntime.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +10 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +12 -5
- package/dist/_dts/sdk/src/client/management/types.d.ts +6 -55
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +160 -0
- package/dist/_dts/sdk/src/client/types.d.ts +26 -1
- package/dist/_dts/sdk/src/components.d.ts +1 -0
- package/dist/_dts/sdk/src/config/field-definitions.d.ts +3 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +3 -1
- package/dist/_dts/sdk/src/index.d.ts +3 -1
- package/dist/_dts/sdk/src/next/types.d.ts +8 -11
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/blocks-theme-scope.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +5 -6
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/themeRuntime.d.ts +26 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +18 -0
- package/dist/_dts/theme-core/src/ResponsiveScope.d.ts +12 -0
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/cards/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +21 -21
- package/dist/_dts/theme-core/src/schema.d.ts +18 -18
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/themeRuntime.d.ts +11 -0
- package/dist/{chunk-ER4UIW4X.mjs → chunk-AEOYWPE4.mjs} +91 -55
- package/dist/{chunk-O4LVYUVH.mjs → chunk-BOQXMCSP.mjs} +147 -101
- package/dist/{chunk-HVOBXA3Y.mjs → chunk-GSPFFUVB.mjs} +2 -2
- package/dist/{chunk-7KOO7RPP.mjs → chunk-PMBB6MQ7.mjs} +2273 -1113
- package/dist/{chunk-K3JWH6HE.mjs → chunk-RQ3XZ4SJ.mjs} +9 -1
- package/dist/{chunk-YDMBIIS5.mjs → chunk-UG7I7S7W.mjs} +1 -1
- package/dist/cli/index.mjs +1564 -546
- package/dist/cli/init-docs/content/cli-reference.md +6 -1
- package/dist/cli/init-docs/content/content-management.md +27 -0
- package/dist/client/{accordion-PT5CGW5N.mjs → accordion-GXQNWQ6O.mjs} +2 -2
- package/dist/client/{bookingForm-2HLRTEYS.mjs → bookingForm-STLUJ36H.mjs} +206 -335
- package/dist/client/bookings.mjs +821 -413
- package/dist/client/{carousel-Z2LKYSWA.mjs → carousel-CVRN6EPP.mjs} +4 -3
- package/dist/client/{cart-ND5IK4A6.mjs → cart-IYIBA5CL.mjs} +8 -8
- package/dist/client/{checkout-EYUSGAY7.mjs → checkout-O3BGM4GS.mjs} +8 -8
- package/dist/client/chunk-4RTFGHZN.mjs +433 -0
- package/dist/client/{chunk-DIRW2LNG.mjs → chunk-6DPXDOIL.mjs} +336 -225
- package/dist/client/chunk-6N7YRNYU.mjs +183 -0
- package/dist/client/{chunk-O5JNI3E4.mjs → chunk-7DH35FGA.mjs} +2 -2
- package/dist/client/{chunk-S4G65LGR.mjs → chunk-D3ETC2SU.mjs} +1 -1
- package/dist/client/{chunk-BAWHZ5GM.mjs → chunk-DAS5CIER.mjs} +460 -157
- package/dist/client/{chunk-6DVPO44G.mjs → chunk-FHU6PFPM.mjs} +1 -1
- package/dist/client/{chunk-SDIYSQAY.mjs → chunk-HIHOQGIP.mjs} +2 -3
- package/dist/client/{chunk-BL66UWGD.mjs → chunk-MFPKS6QS.mjs} +13 -16
- package/dist/client/{chunk-X7GVFB7Y.mjs → chunk-NBFRJ5NB.mjs} +157 -5
- package/dist/client/{chunk-WCVK4MBJ.mjs → chunk-VFHZLZAC.mjs} +1 -1
- package/dist/client/{chunk-GOFO7HRH.mjs → chunk-WHZQDPBZ.mjs} +19 -1
- package/dist/client/{chunk-MHBEWDT7.mjs → chunk-Z62JYS5O.mjs} +122 -50
- package/dist/client/client.mjs +5979 -5198
- package/dist/client/{courseRegistration-H3AZBUEG.mjs → courseRegistration-2D3ACMJR.mjs} +20 -58
- package/dist/client/{eventCalendar-FPKJGLGS.mjs → eventCalendar-QY4UZUFF.mjs} +11 -11
- package/dist/client/{eventCombined-QCGIZBUY.mjs → eventCombined-RRCDKJC2.mjs} +11 -11
- package/dist/client/{eventDetails-HIT3BJWU.mjs → eventDetails-YO335BUT.mjs} +11 -11
- package/dist/client/{eventListing-R4HNWJDN.mjs → eventListing-PXA6GFQ3.mjs} +11 -11
- package/dist/client/{eventRegistration-Q7BYY5HF.mjs → eventRegistration-2ZHEDDXO.mjs} +11 -11
- package/dist/client/{form-NI6YOG6S.mjs → form-ZS6KX4U2.mjs} +7 -7
- package/dist/client/{headerSection-SDYGII36.mjs → headerSection-QK5SLIIB.mjs} +3 -3
- package/dist/client/hooks.mjs +1102 -1029
- package/dist/client/{locationMap-BDETEUQD.mjs → locationMap-GFNIUD2X.mjs} +3 -3
- package/dist/client/{newsletterForm-EKYIU67X.mjs → newsletterForm-PGLTTCUG.mjs} +61 -25
- package/dist/client/{productDetail-5UTGNN76.mjs → productDetail-OPBE5ZPI.mjs} +8 -8
- package/dist/client/{productList-7YA5KXZQ.mjs → productList-NI72Q62Z.mjs} +8 -8
- package/dist/client/rendering/client.mjs +4390 -4245
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3327 -3181
- package/dist/client/{shop-AIMUMZYC.mjs → shop-3ZQPEWYI.mjs} +8 -8
- package/dist/client/spam-protection.mjs +4 -5
- package/dist/preview-next/before-render.mjs +20 -2
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/middleware.mjs +18 -0
- package/dist/{sdk-runtime-NW472WNT.mjs → sdk-runtime-FSHXCWDS.mjs} +6 -6
- package/dist/server/components.mjs +2580 -2783
- package/dist/server/config-validation.mjs +1334 -1261
- package/dist/server/config.mjs +1334 -1261
- package/dist/server/data.mjs +1102 -1029
- package/dist/server/index.mjs +1097 -476
- package/dist/server/navigation.mjs +20 -30
- package/dist/server/next.mjs +3282 -2847
- package/dist/server/page-converter.mjs +1009 -946
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2580 -2783
- package/dist/server/rendering.mjs +2586 -2789
- package/dist/server/routing.mjs +1440 -1053
- package/dist/server/server.mjs +1886 -1153
- package/dist/server/theme-bridge.mjs +34 -5
- package/dist/styles/index.css +26 -0
- package/package.json +3 -2
- package/dist/SdkPreviewModeRuntime-ZALZDJEK.mjs +0 -8
- package/dist/client/chunk-H4MHEXYS.mjs +0 -184
- package/dist/client/chunk-ZFHRN6W2.mjs +0 -66
- /package/dist/client/{chunk-LI2C6M5O.mjs → chunk-25W2EQUN.mjs} +0 -0
|
@@ -11529,6 +11529,78 @@ export type Database = {
|
|
|
11529
11529
|
}
|
|
11530
11530
|
];
|
|
11531
11531
|
};
|
|
11532
|
+
page_surfaces: {
|
|
11533
|
+
Row: {
|
|
11534
|
+
created_at: string;
|
|
11535
|
+
created_by: string | null;
|
|
11536
|
+
deleted_at: string | null;
|
|
11537
|
+
id: string;
|
|
11538
|
+
metadata_json: Json;
|
|
11539
|
+
migration_source: Json;
|
|
11540
|
+
readiness_state: string;
|
|
11541
|
+
route_id: string | null;
|
|
11542
|
+
site_id: string;
|
|
11543
|
+
slug: string;
|
|
11544
|
+
subject_id: string;
|
|
11545
|
+
subject_type: string;
|
|
11546
|
+
template_key: string | null;
|
|
11547
|
+
title: string;
|
|
11548
|
+
updated_at: string;
|
|
11549
|
+
updated_by: string | null;
|
|
11550
|
+
};
|
|
11551
|
+
Insert: {
|
|
11552
|
+
created_at?: string;
|
|
11553
|
+
created_by?: string | null;
|
|
11554
|
+
deleted_at?: string | null;
|
|
11555
|
+
id?: string;
|
|
11556
|
+
metadata_json?: Json;
|
|
11557
|
+
migration_source?: Json;
|
|
11558
|
+
readiness_state?: string;
|
|
11559
|
+
route_id?: string | null;
|
|
11560
|
+
site_id: string;
|
|
11561
|
+
slug?: string;
|
|
11562
|
+
subject_id: string;
|
|
11563
|
+
subject_type: string;
|
|
11564
|
+
template_key?: string | null;
|
|
11565
|
+
title?: string;
|
|
11566
|
+
updated_at?: string;
|
|
11567
|
+
updated_by?: string | null;
|
|
11568
|
+
};
|
|
11569
|
+
Update: {
|
|
11570
|
+
created_at?: string;
|
|
11571
|
+
created_by?: string | null;
|
|
11572
|
+
deleted_at?: string | null;
|
|
11573
|
+
id?: string;
|
|
11574
|
+
metadata_json?: Json;
|
|
11575
|
+
migration_source?: Json;
|
|
11576
|
+
readiness_state?: string;
|
|
11577
|
+
route_id?: string | null;
|
|
11578
|
+
site_id?: string;
|
|
11579
|
+
slug?: string;
|
|
11580
|
+
subject_id?: string;
|
|
11581
|
+
subject_type?: string;
|
|
11582
|
+
template_key?: string | null;
|
|
11583
|
+
title?: string;
|
|
11584
|
+
updated_at?: string;
|
|
11585
|
+
updated_by?: string | null;
|
|
11586
|
+
};
|
|
11587
|
+
Relationships: [
|
|
11588
|
+
{
|
|
11589
|
+
foreignKeyName: "page_surfaces_route_site_fk";
|
|
11590
|
+
columns: ["route_id", "site_id"];
|
|
11591
|
+
isOneToOne: false;
|
|
11592
|
+
referencedRelation: "site_routes";
|
|
11593
|
+
referencedColumns: ["id", "site_id"];
|
|
11594
|
+
},
|
|
11595
|
+
{
|
|
11596
|
+
foreignKeyName: "page_surfaces_site_id_fkey";
|
|
11597
|
+
columns: ["site_id"];
|
|
11598
|
+
isOneToOne: false;
|
|
11599
|
+
referencedRelation: "sites";
|
|
11600
|
+
referencedColumns: ["id"];
|
|
11601
|
+
}
|
|
11602
|
+
];
|
|
11603
|
+
};
|
|
11532
11604
|
pages: {
|
|
11533
11605
|
Row: {
|
|
11534
11606
|
created_at: string;
|
|
@@ -12341,6 +12413,74 @@ export type Database = {
|
|
|
12341
12413
|
};
|
|
12342
12414
|
Relationships: [];
|
|
12343
12415
|
};
|
|
12416
|
+
published_runtime_cache_entries: {
|
|
12417
|
+
Row: {
|
|
12418
|
+
cache_key: string;
|
|
12419
|
+
cached_at: string;
|
|
12420
|
+
created_at: string;
|
|
12421
|
+
endpoint: string;
|
|
12422
|
+
fresh_until: string;
|
|
12423
|
+
last_live_at: string;
|
|
12424
|
+
normalized_params: Json;
|
|
12425
|
+
payload: Json;
|
|
12426
|
+
payload_hash: string;
|
|
12427
|
+
payload_schema_version: number;
|
|
12428
|
+
site_id: string | null;
|
|
12429
|
+
source_deployment: string | null;
|
|
12430
|
+
stage: string;
|
|
12431
|
+
stale_until: string;
|
|
12432
|
+
tags: string[];
|
|
12433
|
+
updated_at: string;
|
|
12434
|
+
write_reason: string | null;
|
|
12435
|
+
};
|
|
12436
|
+
Insert: {
|
|
12437
|
+
cache_key: string;
|
|
12438
|
+
cached_at?: string;
|
|
12439
|
+
created_at?: string;
|
|
12440
|
+
endpoint: string;
|
|
12441
|
+
fresh_until: string;
|
|
12442
|
+
last_live_at?: string;
|
|
12443
|
+
normalized_params: Json;
|
|
12444
|
+
payload: Json;
|
|
12445
|
+
payload_hash: string;
|
|
12446
|
+
payload_schema_version?: number;
|
|
12447
|
+
site_id?: string | null;
|
|
12448
|
+
source_deployment?: string | null;
|
|
12449
|
+
stage?: string;
|
|
12450
|
+
stale_until: string;
|
|
12451
|
+
tags?: string[];
|
|
12452
|
+
updated_at?: string;
|
|
12453
|
+
write_reason?: string | null;
|
|
12454
|
+
};
|
|
12455
|
+
Update: {
|
|
12456
|
+
cache_key?: string;
|
|
12457
|
+
cached_at?: string;
|
|
12458
|
+
created_at?: string;
|
|
12459
|
+
endpoint?: string;
|
|
12460
|
+
fresh_until?: string;
|
|
12461
|
+
last_live_at?: string;
|
|
12462
|
+
normalized_params?: Json;
|
|
12463
|
+
payload?: Json;
|
|
12464
|
+
payload_hash?: string;
|
|
12465
|
+
payload_schema_version?: number;
|
|
12466
|
+
site_id?: string | null;
|
|
12467
|
+
source_deployment?: string | null;
|
|
12468
|
+
stage?: string;
|
|
12469
|
+
stale_until?: string;
|
|
12470
|
+
tags?: string[];
|
|
12471
|
+
updated_at?: string;
|
|
12472
|
+
write_reason?: string | null;
|
|
12473
|
+
};
|
|
12474
|
+
Relationships: [
|
|
12475
|
+
{
|
|
12476
|
+
foreignKeyName: "published_runtime_cache_entries_site_id_fkey";
|
|
12477
|
+
columns: ["site_id"];
|
|
12478
|
+
isOneToOne: false;
|
|
12479
|
+
referencedRelation: "sites";
|
|
12480
|
+
referencedColumns: ["id"];
|
|
12481
|
+
}
|
|
12482
|
+
];
|
|
12483
|
+
};
|
|
12344
12484
|
redirect_exchange_codes: {
|
|
12345
12485
|
Row: {
|
|
12346
12486
|
code_hash: string;
|
|
@@ -16060,6 +16200,19 @@ export type Database = {
|
|
|
16060
16200
|
target_kind: string;
|
|
16061
16201
|
}[];
|
|
16062
16202
|
};
|
|
16203
|
+
claim_site_invitation_resend: {
|
|
16204
|
+
Args: {
|
|
16205
|
+
p_actor_user_id: string;
|
|
16206
|
+
p_attempt_id: string;
|
|
16207
|
+
p_claim_expires_at: string;
|
|
16208
|
+
p_cooldown_seconds?: number;
|
|
16209
|
+
p_expires_at: string;
|
|
16210
|
+
p_invitation_id: string;
|
|
16211
|
+
p_site_id: string;
|
|
16212
|
+
p_token_hash: string;
|
|
16213
|
+
};
|
|
16214
|
+
Returns: Json;
|
|
16215
|
+
};
|
|
16063
16216
|
commit_content_draft_version: {
|
|
16064
16217
|
Args: {
|
|
16065
16218
|
p_data: Json;
|
|
@@ -16357,6 +16510,16 @@ export type Database = {
|
|
|
16357
16510
|
count: number;
|
|
16358
16511
|
}[];
|
|
16359
16512
|
};
|
|
16513
|
+
finalize_site_invitation_resend: {
|
|
16514
|
+
Args: {
|
|
16515
|
+
p_actor_user_id: string;
|
|
16516
|
+
p_attempt_id: string;
|
|
16517
|
+
p_invitation_id: string;
|
|
16518
|
+
p_resent_at: string;
|
|
16519
|
+
p_site_id: string;
|
|
16520
|
+
};
|
|
16521
|
+
Returns: Json;
|
|
16522
|
+
};
|
|
16360
16523
|
get_auth_user_id_by_email: {
|
|
16361
16524
|
Args: {
|
|
16362
16525
|
p_email: string;
|
|
@@ -16780,6 +16943,41 @@ export type Database = {
|
|
|
16780
16943
|
order_id: string;
|
|
16781
16944
|
}[];
|
|
16782
16945
|
};
|
|
16946
|
+
postgres_fdw_disconnect: {
|
|
16947
|
+
Args: {
|
|
16948
|
+
"": string;
|
|
16949
|
+
};
|
|
16950
|
+
Returns: boolean;
|
|
16951
|
+
};
|
|
16952
|
+
postgres_fdw_disconnect_all: {
|
|
16953
|
+
Args: never;
|
|
16954
|
+
Returns: boolean;
|
|
16955
|
+
};
|
|
16956
|
+
postgres_fdw_get_connections: {
|
|
16957
|
+
Args: never;
|
|
16958
|
+
Returns: Record<string, unknown>[];
|
|
16959
|
+
};
|
|
16960
|
+
postgres_fdw_handler: {
|
|
16961
|
+
Args: never;
|
|
16962
|
+
Returns: unknown;
|
|
16963
|
+
};
|
|
16964
|
+
read_published_runtime_cache_entry: {
|
|
16965
|
+
Args: {
|
|
16966
|
+
p_cache_key: string;
|
|
16967
|
+
p_payload_schema_version?: number;
|
|
16968
|
+
};
|
|
16969
|
+
Returns: {
|
|
16970
|
+
cache_key: string;
|
|
16971
|
+
cached_at: string;
|
|
16972
|
+
endpoint: string;
|
|
16973
|
+
fresh_until: string;
|
|
16974
|
+
payload: Json;
|
|
16975
|
+
payload_hash: string;
|
|
16976
|
+
payload_schema_version: number;
|
|
16977
|
+
site_id: string;
|
|
16978
|
+
stale_until: string;
|
|
16979
|
+
}[];
|
|
16980
|
+
};
|
|
16783
16981
|
redeem_pass_credits: {
|
|
16784
16982
|
Args: {
|
|
16785
16983
|
credits_amount?: number;
|
|
@@ -16807,6 +17005,15 @@ export type Database = {
|
|
|
16807
17005
|
isSetofReturn: false;
|
|
16808
17006
|
};
|
|
16809
17007
|
};
|
|
17008
|
+
release_site_invitation_resend_claim: {
|
|
17009
|
+
Args: {
|
|
17010
|
+
p_actor_user_id: string;
|
|
17011
|
+
p_attempt_id: string;
|
|
17012
|
+
p_invitation_id: string;
|
|
17013
|
+
p_site_id: string;
|
|
17014
|
+
};
|
|
17015
|
+
Returns: Json;
|
|
17016
|
+
};
|
|
16810
17017
|
remove_category_from_memberships: {
|
|
16811
17018
|
Args: {
|
|
16812
17019
|
category_id: string;
|
|
@@ -17184,7 +17391,7 @@ export type Database = {
|
|
|
17184
17391
|
newsletter_sender_entity_type: "individual" | "company" | "llp" | "charity" | "other";
|
|
17185
17392
|
newsletter_subscriber_status: "pending_confirmation" | "active" | "unsubscribed";
|
|
17186
17393
|
plan_price_interval: "month" | "year";
|
|
17187
|
-
route_node_type: "page" | "content_entry";
|
|
17394
|
+
route_node_type: "page" | "content_entry" | "page_surface";
|
|
17188
17395
|
route_status: "draft" | "published" | "scheduled" | "archived";
|
|
17189
17396
|
site_deployment_mode: "managed" | "headless_cms" | "headless_full";
|
|
17190
17397
|
site_purpose: "GENERATE_LEADS" | "SHOWCASE_PORTFOLIO" | "SELL_PRODUCTS" | "SELL_TICKETS" | "EVENT_INFO" | "BLOGGING" | "COMMUNITY" | "OTHER";
|
|
@@ -17926,7 +18133,7 @@ export declare const Constants: {
|
|
|
17926
18133
|
readonly newsletter_sender_entity_type: readonly ["individual", "company", "llp", "charity", "other"];
|
|
17927
18134
|
readonly newsletter_subscriber_status: readonly ["pending_confirmation", "active", "unsubscribed"];
|
|
17928
18135
|
readonly plan_price_interval: readonly ["month", "year"];
|
|
17929
|
-
readonly route_node_type: readonly ["page", "content_entry"];
|
|
18136
|
+
readonly route_node_type: readonly ["page", "content_entry", "page_surface"];
|
|
17930
18137
|
readonly route_status: readonly ["draft", "published", "scheduled", "archived"];
|
|
17931
18138
|
readonly site_deployment_mode: readonly ["managed", "headless_cms", "headless_full"];
|
|
17932
18139
|
readonly site_purpose: readonly ["GENERATE_LEADS", "SHOWCASE_PORTFOLIO", "SELL_PRODUCTS", "SELL_TICKETS", "EVENT_INFO", "BLOGGING", "COMMUNITY", "OTHER"];
|
|
@@ -429,9 +429,13 @@ export declare const FILE_SIZE_LIMITS: {
|
|
|
429
429
|
export declare const DEFAULT_PRIVATE_FILE_SIGNED_URL_EXPIRY_SECONDS: PositiveSeconds;
|
|
430
430
|
export declare const MAX_SAFE_DOWNLOAD_FILENAME_LENGTH = 180;
|
|
431
431
|
export declare function asPositiveByteCount(value: number): Result<PositiveByteCount, 'not-positive-byte-count'>;
|
|
432
|
+
export declare const parsePositiveByteCount: typeof asPositiveByteCount;
|
|
432
433
|
export declare function asPositiveSeconds(value: number): Result<PositiveSeconds, 'not-positive-seconds'>;
|
|
434
|
+
export declare const parsePositiveSeconds: typeof asPositiveSeconds;
|
|
433
435
|
export declare function asFileChecksumSha256(value: string): Result<FileChecksumSha256, FileChecksumSha256Error>;
|
|
436
|
+
export declare const parseFileChecksumSha256: typeof asFileChecksumSha256;
|
|
434
437
|
export declare function asSafeDownloadFilename(value: string): Result<SafeDownloadFilename, SafeDownloadFilenameError>;
|
|
438
|
+
export declare const parseSafeDownloadFilename: typeof asSafeDownloadFilename;
|
|
435
439
|
export declare function deriveUploadPolicy(actor: FileActor, intent: UploadIntent): Result<UploadPolicy, UploadPolicyError>;
|
|
436
440
|
export declare function classifyKnownMimeType(mimeType: string | DeclaredMimeType | DetectedMimeType | undefined | null): Result<FileKind, MimeTypeClassificationError>;
|
|
437
441
|
export declare function isMimeTypeAllowedForPolicy(mimeType: string | DeclaredMimeType | DetectedMimeType | undefined | null, policy: UploadPolicy): boolean;
|
|
@@ -14,6 +14,7 @@ export type MediaEditorProps = {
|
|
|
14
14
|
cropEditorMode?: 'dialog' | 'inline';
|
|
15
15
|
cropEditorAutoOpen?: boolean;
|
|
16
16
|
mediaPickerAutoOpen?: boolean;
|
|
17
|
+
onMediaPickerOpenChange?: (open: boolean) => void;
|
|
17
18
|
mediaPickerDialogMaxWidth?: string;
|
|
18
19
|
mediaPickerPolicy?: MediaPickerPolicy;
|
|
19
20
|
showPreview?: boolean;
|
|
@@ -29,4 +30,4 @@ export type MediaEditorProps = {
|
|
|
29
30
|
videoPrepIntent?: VideoPrepIntentResolver;
|
|
30
31
|
videoSelectionIntent?: VideoPrepIntent;
|
|
31
32
|
};
|
|
32
|
-
export declare const MediaEditor: ({ value, onChange, allowedKinds, previewAspectRatio, minSourceWidth, minSourceHeight, showAltInput, cropEditorMode, cropEditorAutoOpen, mediaPickerAutoOpen, mediaPickerDialogMaxWidth, mediaPickerPolicy, showPreview, showActionOverlay, onEditDetails, fullWidth, previewVariant, showRemoveAction, previewMaxWidth, preventPreviewUpscale, onUploadComplete, uploadIntent, videoPrepIntent, videoSelectionIntent, }: MediaEditorProps) => import("react").JSX.Element;
|
|
33
|
+
export declare const MediaEditor: ({ value, onChange, allowedKinds, previewAspectRatio, minSourceWidth, minSourceHeight, showAltInput, cropEditorMode, cropEditorAutoOpen, mediaPickerAutoOpen, onMediaPickerOpenChange, mediaPickerDialogMaxWidth, mediaPickerPolicy, showPreview, showActionOverlay, onEditDetails, fullWidth, previewVariant, showRemoveAction, previewMaxWidth, preventPreviewUpscale, onUploadComplete, uploadIntent, videoPrepIntent, videoSelectionIntent, }: MediaEditorProps) => import("react").JSX.Element;
|
|
@@ -5,6 +5,7 @@ type MediaEditorFieldUi = {
|
|
|
5
5
|
cropEditorMode?: 'dialog' | 'inline';
|
|
6
6
|
cropEditorAutoOpen?: boolean;
|
|
7
7
|
mediaPickerAutoOpen?: boolean;
|
|
8
|
+
onMediaPickerOpenChange?: (open: boolean) => void;
|
|
8
9
|
showMediaPreview?: boolean;
|
|
9
10
|
showMediaOverlayActions?: boolean;
|
|
10
11
|
mediaPreviewMaxWidth?: 'xs' | 'sm' | 'md' | 'none';
|
|
@@ -19,6 +20,11 @@ export declare function withRepeaterThumbnailMediaFieldUi<T extends MediaEditorF
|
|
|
19
20
|
}): (T & {
|
|
20
21
|
ui: MediaEditorFieldUi;
|
|
21
22
|
}) | null;
|
|
23
|
+
export declare function withRepeaterThumbnailPickerOnlyMediaFieldUi<T extends MediaEditorFieldLike>(field: T | null | undefined, options?: {
|
|
24
|
+
onMediaPickerOpenChange?: (open: boolean) => void;
|
|
25
|
+
}): (T & {
|
|
26
|
+
ui: MediaEditorFieldUi;
|
|
27
|
+
}) | null;
|
|
22
28
|
export declare function withRepeaterStackMediaFieldUi<T extends MediaEditorFieldLike>(field: T): T & {
|
|
23
29
|
ui: MediaEditorFieldUi;
|
|
24
30
|
};
|
|
@@ -13,6 +13,6 @@ export { MediaEditorContextProvider, useMediaEditor, useMediaEditorOptional, typ
|
|
|
13
13
|
export { MediaEditorProvider } from './provider';
|
|
14
14
|
export type { MediaEditorProviderProps } from './provider';
|
|
15
15
|
export { createMediaEditorProvider } from './createMediaEditorProvider';
|
|
16
|
-
export { withRepeaterStackMediaFieldUi, withRepeaterThumbnailMediaFieldUi } from './fieldUi';
|
|
16
|
+
export { withRepeaterStackMediaFieldUi, withRepeaterThumbnailMediaFieldUi, withRepeaterThumbnailPickerOnlyMediaFieldUi, } from './fieldUi';
|
|
17
17
|
export type { MediaValue, MediaTransform, MediaHotspot } from './types';
|
|
18
18
|
export { DEFAULT_HOTSPOT } from './utils';
|
|
@@ -12,6 +12,7 @@ export type { PreviewDesignRow, PreviewSidebarOpenRequest, PreviewSidebarTab, }
|
|
|
12
12
|
export { getPreviewSidebarTab, onPreviewSidebarOpenRequest, requestPreviewSidebarOpen, setPreviewSidebarTab, } from "./preview/sidebarTabPreference";
|
|
13
13
|
export type { PreviewViewportControlsProps, ViewportMode, ViewportWidth, } from "./preview/PreviewViewportControls";
|
|
14
14
|
export { PreviewViewportControls } from "./preview/PreviewViewportControls";
|
|
15
|
+
export type { PreviewThemeResponsiveMode, PreviewThemeRuntime, } from "./preview/themeRuntime";
|
|
15
16
|
export { PreviewZoomControls } from "./preview/PreviewZoomControls";
|
|
16
17
|
export { PreviewEditorUI } from "./preview/PreviewEditorUI";
|
|
17
18
|
export { PreviewOpenEditorButton } from "./preview/PreviewOpenEditorButton";
|
|
@@ -8,6 +8,7 @@ import type { ContentTypeSchema } from '../../../../content-model/src/index';
|
|
|
8
8
|
import type { SdkConfigForBlockPicker } from '../../../../editor-blocks/src/index';
|
|
9
9
|
import type { SurfaceId } from '../../../../surfaces/src/index';
|
|
10
10
|
import { type PreviewBlock, type PreviewContentEntryData, type PreviewPageMetadata } from './PreviewEntryControllerProvider';
|
|
11
|
+
import { type PreviewThemeRuntime } from './themeRuntime';
|
|
11
12
|
import type { PreviewEditorSidebarProps, PreviewTemplateData } from './PreviewEditorSidebar';
|
|
12
13
|
import { type PreviewRuntimeSession } from '../../auth-contract';
|
|
13
14
|
type BaseFetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
@@ -71,11 +72,11 @@ export type PreviewShellProps = {
|
|
|
71
72
|
mediaAssets?: MediaAssetIndexItem[];
|
|
72
73
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
73
74
|
supabaseUrl?: string;
|
|
74
|
-
|
|
75
|
+
themeRuntime?: PreviewThemeRuntime;
|
|
75
76
|
designEditorEligibility?: PreviewDesignEditorEligibility;
|
|
76
77
|
baseFetch?: BaseFetch;
|
|
77
78
|
};
|
|
78
|
-
export declare function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl, surfaceId, theme, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, themeSelectionPaletteVariantId, themeSelectionPaletteOverrides, themeSelectionHeaderLayoutId, themeSelectionHeaderStyleId, themeSelectionTypographyPresetId, themeSelectionTypographyBodyFontOverride, themeSelectionTypographyHeadingFontOverride, themeSelectionHeaderLookId, themeSelectionFooterLookId, themeSelectionHeaderContext, themeSelectionFooterContext, pageId, routeId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, initialStatus, initialBlocks, pageMetadata, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, supabaseUrl,
|
|
79
|
+
export declare function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl, surfaceId, theme, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, themeSelectionPaletteVariantId, themeSelectionPaletteOverrides, themeSelectionHeaderLayoutId, themeSelectionHeaderStyleId, themeSelectionTypographyPresetId, themeSelectionTypographyBodyFontOverride, themeSelectionTypographyHeadingFontOverride, themeSelectionHeaderLookId, themeSelectionFooterLookId, themeSelectionHeaderContext, themeSelectionFooterContext, pageId, routeId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, initialStatus, initialBlocks, pageMetadata, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, supabaseUrl, themeRuntime, designEditorEligibility, baseFetch, }: PreviewShellProps): React.JSX.Element;
|
|
79
80
|
export declare function defaultDesignEditorEligibility(input: Readonly<{
|
|
80
81
|
pageId: string | null;
|
|
81
82
|
entryData?: PreviewContentEntryData | null;
|
|
@@ -9,6 +9,7 @@ import type { SdkConfigForBlockPicker } from "../../../../editor-blocks/src/inde
|
|
|
9
9
|
import type { SurfaceId } from "../../../../surfaces/src/index";
|
|
10
10
|
import { type PreviewEntryData, type PreviewTemplateData } from "./PreviewEditorSidebar";
|
|
11
11
|
import type { SiteStyleAccess } from "./siteStyleAccess";
|
|
12
|
+
import { type PreviewThemeRuntime } from "./themeRuntime";
|
|
12
13
|
export type PreviewShellLayoutProps = {
|
|
13
14
|
children: ReactNode;
|
|
14
15
|
theme: Theme;
|
|
@@ -47,7 +48,7 @@ export type PreviewShellLayoutProps = {
|
|
|
47
48
|
sdkConfig?: SdkConfigForBlockPicker | null;
|
|
48
49
|
mediaAssets?: MediaAssetIndexItem[];
|
|
49
50
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
50
|
-
|
|
51
|
+
themeRuntime?: PreviewThemeRuntime;
|
|
51
52
|
siteStyleAccess?: SiteStyleAccess;
|
|
52
53
|
};
|
|
53
|
-
export declare function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, apiClient, bearerToken, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, themeSelectionPaletteVariantId, themeSelectionPaletteOverrides, themeSelectionHeaderLayoutId, themeSelectionHeaderStyleId, themeSelectionTypographyPresetId, themeSelectionTypographyBodyFontOverride, themeSelectionTypographyHeadingFontOverride, themeSelectionHeaderLookId, themeSelectionFooterLookId, themeSelectionHeaderContext, themeSelectionFooterContext, supabaseUrl, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets,
|
|
54
|
+
export declare function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, apiClient, bearerToken, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, themeSelectionPaletteVariantId, themeSelectionPaletteOverrides, themeSelectionHeaderLayoutId, themeSelectionHeaderStyleId, themeSelectionTypographyPresetId, themeSelectionTypographyBodyFontOverride, themeSelectionTypographyHeadingFontOverride, themeSelectionHeaderLookId, themeSelectionFooterLookId, themeSelectionHeaderContext, themeSelectionFooterContext, supabaseUrl, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, themeRuntime, siteStyleAccess, }: PreviewShellLayoutProps): React.JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import { type SiteChromeRenderModel } from "../../../../blocks/src/client/site-chrome";
|
|
3
3
|
import type { ViewportMode } from "./PreviewViewportControls";
|
|
4
|
-
|
|
4
|
+
import { type PreviewThemeRuntime } from "./themeRuntime";
|
|
5
|
+
export declare function PreviewThemedSiteDocument({ children, themeRuntime, useContainerResponsiveMode, viewportMode, viewportWidth, scale, contentHeight, scaleContainerRef, contentRef, staticHeaderNode, bannerNode, staticFooterNode, siteChromeRenderModel, }: {
|
|
5
6
|
children: ReactNode;
|
|
6
|
-
|
|
7
|
+
themeRuntime?: PreviewThemeRuntime;
|
|
7
8
|
useContainerResponsiveMode: boolean;
|
|
8
9
|
viewportMode: ViewportMode;
|
|
9
10
|
viewportWidth: number | "full";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
export type SiteChromeEditableSurfaceKind = 'header' | 'footer';
|
|
3
3
|
type SiteChromeEditableSurfaceProps = Readonly<{
|
|
4
4
|
surface: SiteChromeEditableSurfaceKind;
|
|
@@ -12,5 +12,5 @@ type SiteChromeEditableSurfaceProps = Readonly<{
|
|
|
12
12
|
*/
|
|
13
13
|
preserveSingleComponentRoot?: boolean;
|
|
14
14
|
}>;
|
|
15
|
-
export declare function SiteChromeEditableSurface({ surface, children, preserveSingleComponentRoot, }: SiteChromeEditableSurfaceProps):
|
|
15
|
+
export declare function SiteChromeEditableSurface({ surface, children, preserveSingleComponentRoot, }: SiteChromeEditableSurfaceProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
16
16
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ThemeResponsiveMode, ThemeRuntime } from '../../../../theme-core/src/index';
|
|
2
|
+
export type PreviewThemeResponsiveMode = ThemeResponsiveMode;
|
|
3
|
+
export type PreviewThemeRuntime = ThemeRuntime;
|
|
4
|
+
export declare const defaultPreviewThemeRuntime: {
|
|
5
|
+
readonly kind: "cms-theme";
|
|
6
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { MediaAssetIndexItem } from "../../../../blocks/src/index";
|
|
2
2
|
import type { SurfaceId } from "../../../../surfaces/src/index";
|
|
3
3
|
import type { PreviewRuntimeSession } from "../../auth-contract";
|
|
4
|
+
import type { PreviewThemeRuntime } from "../preview/themeRuntime";
|
|
4
5
|
export { SdkPreviewModeRuntime as SdkPreviewMode } from "./SdkPreviewModeRuntime";
|
|
5
6
|
export type SdkPreviewModeContent = {
|
|
6
7
|
page: unknown;
|
|
@@ -27,5 +28,5 @@ export type SdkPreviewModeProps = {
|
|
|
27
28
|
previewToken: string;
|
|
28
29
|
content: SdkPreviewModeContent;
|
|
29
30
|
blockOverrides?: unknown;
|
|
30
|
-
|
|
31
|
+
themeRuntime?: PreviewThemeRuntime;
|
|
31
32
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OutputContext } from '../output';
|
|
2
|
+
export type DatedOfferingPullScope = 'venues' | 'event-categories' | 'events' | 'courses';
|
|
3
|
+
export declare function isDatedOfferingPullScope(scope: string): scope is DatedOfferingPullScope;
|
|
4
|
+
export declare function filterPullItemsByIdentifier<TItem>(items: readonly TItem[], identifier: string | undefined, getIdentifier: (item: TItem) => string): TItem[];
|
|
5
|
+
export declare function reportMissingScopedPullItem(input: Readonly<{
|
|
6
|
+
output: OutputContext;
|
|
7
|
+
scope: DatedOfferingPullScope;
|
|
8
|
+
identifier: string | undefined;
|
|
9
|
+
found: boolean;
|
|
10
|
+
}>): boolean;
|
|
@@ -15,12 +15,13 @@ export interface LocalEntry {
|
|
|
15
15
|
hasUnpublishedChanges?: boolean;
|
|
16
16
|
slug?: string;
|
|
17
17
|
manualOrder?: number;
|
|
18
|
-
blocks?:
|
|
19
|
-
identifier?: string | null;
|
|
20
|
-
kind: string;
|
|
21
|
-
content: Record<string, unknown>;
|
|
22
|
-
}>>;
|
|
18
|
+
blocks?: LocalEntrySlotBlocks;
|
|
23
19
|
}
|
|
20
|
+
export type LocalEntrySlotBlocks = Record<string, Array<{
|
|
21
|
+
identifier?: string | null;
|
|
22
|
+
kind: string;
|
|
23
|
+
content: Record<string, unknown>;
|
|
24
|
+
}>>;
|
|
24
25
|
export declare class LegacyEntryTitleError extends Error {
|
|
25
26
|
readonly filePath: string;
|
|
26
27
|
constructor(filePath: string);
|
|
@@ -168,6 +169,7 @@ export interface LocalEvent {
|
|
|
168
169
|
identifier: string;
|
|
169
170
|
title: string;
|
|
170
171
|
slug: string;
|
|
172
|
+
path?: string | null;
|
|
171
173
|
status?: 'draft' | 'active' | 'archived' | 'cancelled' | 'completed';
|
|
172
174
|
visibility?: 'private' | 'public' | 'unlisted';
|
|
173
175
|
schedule?: LocalEventSchedule;
|
|
@@ -181,7 +183,11 @@ export interface LocalEvent {
|
|
|
181
183
|
settings?: Record<string, unknown>;
|
|
182
184
|
presentation?: Record<string, unknown> | null;
|
|
183
185
|
tags?: string[];
|
|
186
|
+
blocks?: LocalEntrySlotBlocks;
|
|
184
187
|
}
|
|
188
|
+
export type LocalEventWithFilePath = LocalEvent & Readonly<{
|
|
189
|
+
filePath: string;
|
|
190
|
+
}>;
|
|
185
191
|
export interface LocalCourseSession {
|
|
186
192
|
startsAt: string;
|
|
187
193
|
endsAt: string;
|
|
@@ -291,6 +297,7 @@ export declare function readEventCategories(contentDir: string): Promise<LocalEv
|
|
|
291
297
|
* @returns Array of local events
|
|
292
298
|
*/
|
|
293
299
|
export declare function readEvents(contentDir: string): Promise<LocalEvent[]>;
|
|
300
|
+
export declare function readEventsWithFilePaths(contentDir: string): Promise<LocalEventWithFilePath[]>;
|
|
294
301
|
/**
|
|
295
302
|
* Read courses from content directory
|
|
296
303
|
*
|
|
@@ -7,6 +7,8 @@ import type { LinkPayload, NavigationLinkInput } from '../../public-api/contract
|
|
|
7
7
|
import type { SiteCommandOf } from '../../../../site-commands/src/index';
|
|
8
8
|
import type { SdkEventPricing, SdkEventPricingInput, SdkEventTicketTypeInput } from '../../../../api/src/sdk-event-pricing';
|
|
9
9
|
import type { SdkEventPaymentTerms, SdkEventPaymentTermsInput } from '../../../../api/src/sdk-event-payment-terms';
|
|
10
|
+
import type { SdkEventUpsertBody } from '../../../../api/src/sdk-event-upsert';
|
|
11
|
+
import type { SdkManagementEventSeries } from '../../../../api/src/sdkContracts';
|
|
10
12
|
import type { Theme } from '../../contracts';
|
|
11
13
|
export interface ManagementClientConfig {
|
|
12
14
|
/**
|
|
@@ -407,61 +409,8 @@ export interface EventContent {
|
|
|
407
409
|
image?: string | Record<string, unknown>;
|
|
408
410
|
[key: string]: unknown;
|
|
409
411
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
*/
|
|
413
|
-
export interface ManagementEventSeries {
|
|
414
|
-
id: string;
|
|
415
|
-
identifier: string;
|
|
416
|
-
title: string;
|
|
417
|
-
slug: string;
|
|
418
|
-
status: 'draft' | 'active' | 'archived' | 'cancelled' | 'completed';
|
|
419
|
-
visibility: 'private' | 'public' | 'unlisted';
|
|
420
|
-
schedule: EventSchedule;
|
|
421
|
-
capacity: number | null;
|
|
422
|
-
pricing: EventPricing;
|
|
423
|
-
paymentTerms?: EventPaymentTerms;
|
|
424
|
-
/** Venue slug reference */
|
|
425
|
-
venueRef: string | null;
|
|
426
|
-
/** Category identifier reference */
|
|
427
|
-
categoryRef: string | null;
|
|
428
|
-
/** Content entry data (embedded) */
|
|
429
|
-
content: EventContent;
|
|
430
|
-
/** Form slug reference for custom registration forms */
|
|
431
|
-
formRef: string | null;
|
|
432
|
-
settings: Record<string, unknown>;
|
|
433
|
-
presentation: Record<string, unknown> | null;
|
|
434
|
-
tags: string[];
|
|
435
|
-
createdAt: string;
|
|
436
|
-
updatedAt: string;
|
|
437
|
-
/** Content entry updatedAt (for stale detection) */
|
|
438
|
-
contentUpdatedAt: string | null;
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* Input for creating or updating an event series.
|
|
442
|
-
*/
|
|
443
|
-
export interface EventSeriesUpsertInput {
|
|
444
|
-
identifier: string;
|
|
445
|
-
title: string;
|
|
446
|
-
slug: string;
|
|
447
|
-
status?: 'draft' | 'active' | 'archived' | 'cancelled';
|
|
448
|
-
visibility?: 'private' | 'public' | 'unlisted';
|
|
449
|
-
schedule: EventScheduleUpsertInput;
|
|
450
|
-
capacity?: number | null;
|
|
451
|
-
pricing?: EventPricingInput;
|
|
452
|
-
paymentTerms?: EventPaymentTermsInput;
|
|
453
|
-
/** Venue slug - resolved to venue_id on push */
|
|
454
|
-
venueRef?: string | null;
|
|
455
|
-
/** Category identifier - resolved to event_category_id on push */
|
|
456
|
-
categoryRef?: string | null;
|
|
457
|
-
/** Content to embed in content_entry */
|
|
458
|
-
content?: EventContent;
|
|
459
|
-
/** Form slug - resolved to form_id on push */
|
|
460
|
-
formRef?: string | null;
|
|
461
|
-
settings?: Record<string, unknown>;
|
|
462
|
-
presentation?: Record<string, unknown> | null;
|
|
463
|
-
tags?: string[];
|
|
464
|
-
}
|
|
412
|
+
export type ManagementEventSeries = SdkManagementEventSeries;
|
|
413
|
+
export type EventSeriesUpsertInput = SdkEventUpsertBody;
|
|
465
414
|
export interface CourseSession {
|
|
466
415
|
startsAt: string;
|
|
467
416
|
endsAt: string;
|
|
@@ -739,6 +688,7 @@ export interface PulledEvents {
|
|
|
739
688
|
identifier: string;
|
|
740
689
|
title: string;
|
|
741
690
|
slug: string;
|
|
691
|
+
path?: string | null;
|
|
742
692
|
status: 'draft' | 'active' | 'archived' | 'cancelled' | 'completed';
|
|
743
693
|
visibility: 'private' | 'public' | 'unlisted';
|
|
744
694
|
schedule: EventSchedule;
|
|
@@ -755,6 +705,7 @@ export interface PulledEvents {
|
|
|
755
705
|
updatedAt: string;
|
|
756
706
|
createdAt: string;
|
|
757
707
|
contentUpdatedAt: string | null;
|
|
708
|
+
blocks?: EntrySlotBlocks;
|
|
758
709
|
}>;
|
|
759
710
|
meta: {
|
|
760
711
|
pulledAt: string;
|