@riverbankcms/sdk 0.60.16 → 0.62.4
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/dist/_dts/api/src/accessAdmin.d.ts +7 -0
- package/dist/_dts/api/src/bookingClosures.d.ts +106 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +59 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +101 -4
- package/dist/_dts/api/src/bookings.d.ts +2 -1
- package/dist/_dts/api/src/calendar.d.ts +11 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
- package/dist/_dts/api/src/contentVersionHistory.d.ts +52 -0
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +45 -0
- package/dist/_dts/api/src/endpoints.d.ts +206 -6
- package/dist/_dts/api/src/index.d.ts +9 -2
- package/dist/_dts/api/src/participantMessaging.d.ts +113 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +31 -7
- package/dist/_dts/api/src/siteMembers.d.ts +10 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +76 -51
- package/dist/_dts/api/src/types.d.ts +3 -1
- package/dist/_dts/api/src/url.d.ts +3 -3
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/index.d.ts +66 -62
- package/dist/_dts/blocks/src/lib/media.d.ts +60 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/audio-player.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/blog-post.d.ts +0 -21
- package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +2 -6
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +0 -10
- package/dist/_dts/blocks/src/system/blocks/columns.d.ts +0 -10
- package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -20
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +0 -20
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +15 -15
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +5 -10
- package/dist/_dts/blocks/src/system/blocks/embed.d.ts +0 -11
- package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +0 -20
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +0 -20
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +43 -27
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +24 -15
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +132 -12
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +2 -10
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +2 -24
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +2 -3
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +0 -13
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +17 -17
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +2 -10
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +9 -9
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/single-button.d.ts +16 -15
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +2 -6
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +0 -11
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +2 -2
- package/dist/_dts/blocks/src/system/constants/events.d.ts +18 -0
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +105 -0
- package/dist/_dts/blocks/src/system/defineBlock.d.ts +29 -5
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +2 -1
- package/dist/_dts/blocks/src/system/fragments/library/blogFeaturedPost.d.ts +0 -24
- package/dist/_dts/blocks/src/system/fragments/library/bodyCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/bookingForm.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/columnContent.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/ctaCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/faqAccordion.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/footerBottomText.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/formCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/formEmbed.d.ts +0 -18
- package/dist/_dts/blocks/src/system/fragments/library/headerCta.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/heading.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/heroCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/heroLayoutControls.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/image.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/newsletterCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/quote.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/richText.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/singleButton.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/spinner.d.ts +0 -5
- package/dist/_dts/blocks/src/system/fragments/library/teamMember.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +0 -31
- package/dist/_dts/blocks/src/system/fragments/library/testimonialsHeading.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/videoEmbed.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/types.d.ts +11 -3
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +4 -0
- package/dist/_dts/blocks/src/system/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/derivedContent.d.ts +3 -3
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +10 -10
- package/dist/_dts/blocks/src/system/media/constrainedVideoMedia.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/FieldValidationMessage.d.ts +19 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/TerminalPanel.d.ts +8 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/themeColorResolution.d.ts +7 -0
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +24 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -0
- package/dist/_dts/content-model/src/contentManifest.d.ts +2 -2
- package/dist/_dts/content-model/src/referenceFields.d.ts +7 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +242 -6
- package/dist/_dts/db/src/schemas/forms.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerWidgetProvider.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/types.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/reference/dynamicAdapters.d.ts +9 -0
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +5 -1
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/media-core/src/videoSlotPolicy.d.ts +38 -0
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/index.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +31 -8
- package/dist/_dts/preview-next/src/client/blocks/customizeFacetControls.d.ts +9 -0
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +6 -5
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +14 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +72 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +8 -5
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +11 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +6 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +13 -2
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +7 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeControlStyles.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +7 -3
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +9 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +8 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +49 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/content.d.ts +10 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/prompt/examples/features-grid.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/prompt/examples/pricing.d.ts +5 -5
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +3 -0
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +2 -21
- package/dist/_dts/theme-core/src/schema.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +451 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +12 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +61 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresets.d.ts +5 -563
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +448 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +30 -0
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +94 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +12 -0
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +59 -0
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +155 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +15 -1
- package/dist/_dts/theme-core/src/site-styles/records.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +96 -0
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +6 -6
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +23 -5
- package/dist/_dts/theme-core/src/siteChrome.d.ts +53 -0
- package/dist/_dts/theme-core/src/tokens/colorTokenParts.d.ts +13 -0
- package/dist/_dts/theme-core/src/tokens/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +29 -0
- package/dist/_dts/theme-core/src/utils/tokenOrColor.d.ts +27 -1
- package/dist/cli/index.mjs +5149 -3635
- package/dist/client/bookings.mjs +711 -560
- package/dist/client/client.mjs +10110 -8168
- package/dist/client/hooks.mjs +3861 -2739
- package/dist/client/rendering/client.mjs +8606 -7009
- package/dist/client/rendering/islands.mjs +25202 -23768
- package/dist/client/rendering.mjs +10661 -8713
- package/dist/preview-next/before-render.mjs +256 -6
- package/dist/preview-next/client/runtime.mjs +7700 -4016
- package/dist/preview-next/editor-base.css +31 -0
- package/dist/preview-next/middleware.mjs +267 -6
- package/dist/server/components.mjs +4501 -3270
- package/dist/server/config-validation.mjs +4089 -2967
- package/dist/server/config.mjs +4089 -2967
- package/dist/server/data.mjs +3861 -2739
- package/dist/server/index.mjs +322 -24
- package/dist/server/next.mjs +4274 -3041
- package/dist/server/page-converter.mjs +3520 -2717
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4500 -3270
- package/dist/server/rendering.mjs +4526 -3291
- package/dist/server/routing.mjs +4006 -2723
- package/dist/server/server.mjs +3897 -2772
- package/dist/server/theme-bridge.mjs +1435 -788
- package/dist/server/theme.mjs +628 -497
- package/dist/styles/index.css +61 -9
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/colorResolution.d.ts +0 -13
- package/dist/_dts/preview-next/src/client/blocks/overlay.d.ts +0 -30
|
@@ -28,9 +28,6 @@ export declare function buildGridLayout(): NodeDefinition;
|
|
|
28
28
|
* functions combined with the variant system via createBlockManifest().
|
|
29
29
|
*/
|
|
30
30
|
export declare const testimonialsCarouselFragment: import("..").DefinedFragment<{
|
|
31
|
-
readonly id: "testimonialsCarousel";
|
|
32
|
-
readonly title: "Testimonials";
|
|
33
|
-
readonly description: "Testimonials layout with variant support (carousel, grid).";
|
|
34
31
|
readonly fields: readonly [{
|
|
35
32
|
readonly id: "slidesToShow";
|
|
36
33
|
readonly type: "select";
|
|
@@ -210,32 +207,4 @@ export declare const testimonialsCarouselFragment: import("..").DefinedFragment<
|
|
|
210
207
|
readonly label: "9 testimonials";
|
|
211
208
|
}];
|
|
212
209
|
}];
|
|
213
|
-
readonly layout: readonly [];
|
|
214
|
-
readonly data: {
|
|
215
|
-
readonly key: "entries";
|
|
216
|
-
readonly loader: {
|
|
217
|
-
readonly endpoint: "listPublishedEntries";
|
|
218
|
-
readonly params: {
|
|
219
|
-
readonly type: "testimonial";
|
|
220
|
-
readonly siteId: {
|
|
221
|
-
readonly $bind: {
|
|
222
|
-
readonly from: "$root.siteId";
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
readonly limit: {
|
|
226
|
-
readonly $bind: {
|
|
227
|
-
readonly from: "maxEntries";
|
|
228
|
-
readonly fallback: "6";
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
readonly stage: {
|
|
232
|
-
readonly $bind: {
|
|
233
|
-
readonly from: "$root.previewStage";
|
|
234
|
-
readonly fallback: "published";
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
readonly mode: "server";
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
210
|
}>;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export declare const testimonialsHeadingFragment: import("..").DefinedFragment<{
|
|
2
|
-
readonly id: "testimonialsHeading";
|
|
3
|
-
readonly title: "Testimonials Heading";
|
|
4
|
-
readonly description: "Heading and subheading copy for testimonials section.";
|
|
5
2
|
readonly fields: readonly [{
|
|
6
3
|
readonly id: "heading";
|
|
7
4
|
readonly type: "text";
|
|
@@ -14,5 +11,4 @@ export declare const testimonialsHeadingFragment: import("..").DefinedFragment<{
|
|
|
14
11
|
readonly multiline: true;
|
|
15
12
|
readonly description: "Optional supporting copy shown below the heading.";
|
|
16
13
|
}];
|
|
17
|
-
readonly layout: readonly [import("../..").NodeDefinition];
|
|
18
14
|
}>;
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
* Video embed fragment - YouTube/Vimeo/Instagram embed with optional caption
|
|
3
3
|
*/
|
|
4
4
|
export declare const videoEmbedFragment: import("..").DefinedFragment<{
|
|
5
|
-
readonly id: "videoEmbed";
|
|
6
|
-
readonly title: "Video";
|
|
7
|
-
readonly description: "YouTube, Vimeo, or Instagram embed";
|
|
8
|
-
readonly category: "media";
|
|
9
|
-
readonly icon: "Video";
|
|
10
5
|
readonly fields: readonly [{
|
|
11
6
|
readonly id: "url";
|
|
12
7
|
readonly type: "url";
|
|
@@ -41,5 +36,4 @@ export declare const videoEmbedFragment: import("..").DefinedFragment<{
|
|
|
41
36
|
readonly label: "21:9 (Ultrawide)";
|
|
42
37
|
}];
|
|
43
38
|
}];
|
|
44
|
-
readonly layout: import("../..").NodeDefinition;
|
|
45
39
|
}>;
|
|
@@ -30,16 +30,24 @@ export type FragmentDefinition = Omit<FragmentConfig, "fields" | "layout" | "dat
|
|
|
30
30
|
data?: FragmentDataConfig;
|
|
31
31
|
};
|
|
32
32
|
declare const FragmentInput: unique symbol;
|
|
33
|
+
type PickFragmentProperty<C, K extends keyof FragmentConfig> = K extends keyof C ? {
|
|
34
|
+
readonly [P in K]: C[P];
|
|
35
|
+
} : {};
|
|
36
|
+
/**
|
|
37
|
+
* Content derivation needs only a fragment's declared fields. Layout and data
|
|
38
|
+
* loader details stay runtime-only, keeping block manifest phantoms compact.
|
|
39
|
+
*/
|
|
40
|
+
export type FragmentContentShapeInput<C extends FragmentConfig> = PickFragmentProperty<C, "fields">;
|
|
33
41
|
export type DefinedFragment<C> = FragmentDefinition & {
|
|
34
|
-
readonly [FragmentInput]
|
|
42
|
+
readonly [FragmentInput]: C;
|
|
35
43
|
};
|
|
36
44
|
export type FragmentConfigInputOf<F> = F extends {
|
|
37
|
-
readonly [FragmentInput]
|
|
45
|
+
readonly [FragmentInput]: infer C;
|
|
38
46
|
} ? C : never;
|
|
39
47
|
export declare class FragmentConfigError extends Error {
|
|
40
48
|
constructor(message: string);
|
|
41
49
|
}
|
|
42
|
-
export declare function defineFragment<const C extends FragmentConfig>(config: C): DefinedFragment<C
|
|
50
|
+
export declare function defineFragment<const C extends FragmentConfig>(config: C): DefinedFragment<FragmentContentShapeInput<C>>;
|
|
43
51
|
export declare function scopeFragmentFields(fragment: FragmentDefinition, scope: string): FieldDefinition[];
|
|
44
52
|
export declare function scopeFragmentLayout(fragment: FragmentDefinition, scope: string): NodeDefinition[];
|
|
45
53
|
export {};
|
|
@@ -72,6 +72,10 @@ export type ResolvedBackground = {
|
|
|
72
72
|
width?: number;
|
|
73
73
|
/** Original height */
|
|
74
74
|
height?: number;
|
|
75
|
+
/** Poster URL for decorative video fallbacks */
|
|
76
|
+
poster?: string;
|
|
77
|
+
/** Poster URL to render as the mobile-only fallback layer */
|
|
78
|
+
mobileFallbackPoster?: string;
|
|
75
79
|
} | null;
|
|
76
80
|
/** Inline styles for the image/video element */
|
|
77
81
|
imageStyle: React.CSSProperties;
|
|
@@ -184,10 +184,10 @@ type FieldsFromFragmentInstance<Instance> = Instance extends {
|
|
|
184
184
|
} ? ScopeFields<FieldsFromFragment<Fragment>, Scope> : Instance extends {
|
|
185
185
|
fragment: infer Fragment;
|
|
186
186
|
} ? FieldsFromFragment<Fragment> : never;
|
|
187
|
-
type FieldsFromFragment<Fragment> = FragmentConfigInputOf<Fragment> extends {
|
|
188
|
-
fields?: infer Fs extends ReadonlyArray<DerivableField>;
|
|
189
|
-
} ? Fs[number] : Fragment extends {
|
|
187
|
+
type FieldsFromFragment<Fragment> = [FragmentConfigInputOf<Fragment>] extends [never] ? Fragment extends {
|
|
190
188
|
fields: infer Fs extends ReadonlyArray<DerivableField>;
|
|
189
|
+
} ? Fs[number] : never : FragmentConfigInputOf<Fragment> extends {
|
|
190
|
+
fields?: infer Fs extends ReadonlyArray<DerivableField>;
|
|
191
191
|
} ? Fs[number] : never;
|
|
192
192
|
type ScopeFields<F extends DerivableField, Scope> = Scope extends string ? Scope extends '' ? F : Omit<F, 'id'> & {
|
|
193
193
|
id: `${Scope}.${F['id']}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import type { NodeDefinition } from
|
|
3
|
-
import type { Binding } from
|
|
4
|
-
import type { SupportedLoaderEndpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { NodeDefinition } from '../node';
|
|
3
|
+
import type { Binding } from '../node';
|
|
4
|
+
import type { SupportedLoaderEndpoint } from '../data/loaderEndpoints';
|
|
5
5
|
/**
|
|
6
6
|
* Visibility levels gate editor access to fields/slots.
|
|
7
7
|
*/
|
|
@@ -3988,7 +3988,7 @@ type FieldSchemaMembers = readonly [
|
|
|
3988
3988
|
typeof contentTypeSelectFieldSchema,
|
|
3989
3989
|
typeof entryPickerFieldSchema
|
|
3990
3990
|
];
|
|
3991
|
-
type FieldSchemaUnion = z.ZodDiscriminatedUnion<FieldSchemaMembers,
|
|
3991
|
+
type FieldSchemaUnion = z.ZodDiscriminatedUnion<FieldSchemaMembers, 'type'>;
|
|
3992
3992
|
export declare function getFieldSchema(): FieldSchemaUnion;
|
|
3993
3993
|
export declare const fieldSchema: FieldSchemaUnion;
|
|
3994
3994
|
export type FieldSchema = FieldSchemaUnion;
|
|
@@ -3996,7 +3996,7 @@ export declare function parseFieldDefinition(input: unknown): FieldDefinition;
|
|
|
3996
3996
|
export declare function parseFieldDefinitions(input: unknown[]): FieldDefinition[];
|
|
3997
3997
|
type SelectOptionInput = z.input<typeof selectOptionSchema>;
|
|
3998
3998
|
type UiSchemaInput = z.input<typeof uiSchema>;
|
|
3999
|
-
type SelectFieldBaseInput = Omit<z.input<typeof baseFieldSchema>,
|
|
3999
|
+
type SelectFieldBaseInput = Omit<z.input<typeof baseFieldSchema>, 'type' | 'ui'> & {
|
|
4000
4000
|
ui?: UiSchemaInput;
|
|
4001
4001
|
};
|
|
4002
4002
|
export type TextFieldDefinition = z.output<typeof textFieldSchema>;
|
|
@@ -4031,18 +4031,18 @@ export type ItemTypeDefinition = {
|
|
|
4031
4031
|
icon?: string;
|
|
4032
4032
|
fields: FieldDefinition[];
|
|
4033
4033
|
};
|
|
4034
|
-
export type RepeaterFieldDefinition = Omit<z.output<typeof repeaterFieldSchema>,
|
|
4034
|
+
export type RepeaterFieldDefinition = Omit<z.output<typeof repeaterFieldSchema>, 'schema' | 'itemTypes'> & {
|
|
4035
4035
|
schema?: {
|
|
4036
4036
|
fields: FieldDefinition[];
|
|
4037
4037
|
};
|
|
4038
4038
|
itemTypes?: Record<string, ItemTypeDefinition>;
|
|
4039
4039
|
};
|
|
4040
|
-
export type GroupFieldDefinition = Omit<z.output<typeof groupFieldSchema>,
|
|
4040
|
+
export type GroupFieldDefinition = Omit<z.output<typeof groupFieldSchema>, 'schema'> & {
|
|
4041
4041
|
schema: {
|
|
4042
4042
|
fields: FieldDefinition[];
|
|
4043
4043
|
};
|
|
4044
4044
|
};
|
|
4045
|
-
export type ModalFieldDefinition = Omit<z.output<typeof modalFieldSchema>,
|
|
4045
|
+
export type ModalFieldDefinition = Omit<z.output<typeof modalFieldSchema>, 'schema'> & {
|
|
4046
4046
|
schema: {
|
|
4047
4047
|
fields: FieldDefinition[];
|
|
4048
4048
|
};
|
|
@@ -4059,7 +4059,7 @@ export type TabDefinition = {
|
|
|
4059
4059
|
*/
|
|
4060
4060
|
sdkSectionOption?: 'backgroundColor' | 'backgroundGradient' | 'backgroundImage';
|
|
4061
4061
|
};
|
|
4062
|
-
export type TabGroupFieldDefinition = Omit<z.output<typeof tabGroupFieldSchema>,
|
|
4062
|
+
export type TabGroupFieldDefinition = Omit<z.output<typeof tabGroupFieldSchema>, 'tabs'> & {
|
|
4063
4063
|
tabs: TabDefinition[];
|
|
4064
4064
|
};
|
|
4065
4065
|
export type PresetOption = {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VideoSlotPolicy } from '@riverbankcms/media-core';
|
|
2
|
+
import type { FieldDefinition } from '../manifest/schema';
|
|
3
|
+
export type ConstrainedVideoMediaValue = Readonly<{
|
|
4
|
+
fieldPath: string;
|
|
5
|
+
policy: VideoSlotPolicy;
|
|
6
|
+
value: Record<string, unknown>;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function collectConstrainedVideoMediaValues(options: Readonly<{
|
|
9
|
+
blockKind: string;
|
|
10
|
+
fields: readonly FieldDefinition[];
|
|
11
|
+
currentValue: unknown;
|
|
12
|
+
parentPath?: readonly string[];
|
|
13
|
+
}>): ConstrainedVideoMediaValue[];
|
|
@@ -656,6 +656,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
656
656
|
siteId: string;
|
|
657
657
|
apiBaseUrl?: string;
|
|
658
658
|
stage?: "preview" | "published";
|
|
659
|
+
variant?: import("../..").DisplayMode | null;
|
|
659
660
|
displayMode?: import("../..").DisplayMode | null;
|
|
660
661
|
listLayout?: import("../..").EventLayout;
|
|
661
662
|
listColumns?: import("../..").ColumnOption;
|
|
@@ -731,6 +732,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
731
732
|
siteId: string;
|
|
732
733
|
apiBaseUrl?: string;
|
|
733
734
|
stage?: "preview" | "published";
|
|
735
|
+
variant?: import("../..").DisplayMode | null;
|
|
734
736
|
displayMode?: import("../..").DisplayMode | null;
|
|
735
737
|
listLayout?: import("../..").EventLayout;
|
|
736
738
|
listColumns?: import("../..").ColumnOption;
|
|
@@ -765,6 +767,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
765
767
|
siteId: string;
|
|
766
768
|
apiBaseUrl?: string;
|
|
767
769
|
stage?: "preview" | "published";
|
|
770
|
+
variant?: import("../..").DisplayMode | null;
|
|
768
771
|
displayMode?: import("../..").DisplayMode | null;
|
|
769
772
|
listLayout?: import("../..").EventLayout;
|
|
770
773
|
listColumns?: import("../..").ColumnOption;
|
|
@@ -889,6 +892,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
889
892
|
siteId: string;
|
|
890
893
|
apiBaseUrl?: string;
|
|
891
894
|
stage?: "preview" | "published";
|
|
895
|
+
variant?: import("../..").DisplayMode | null;
|
|
892
896
|
displayMode?: import("../..").DisplayMode | null;
|
|
893
897
|
listLayout?: import("../..").EventLayout;
|
|
894
898
|
listColumns?: import("../..").ColumnOption;
|
|
@@ -964,6 +968,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
964
968
|
siteId: string;
|
|
965
969
|
apiBaseUrl?: string;
|
|
966
970
|
stage?: "preview" | "published";
|
|
971
|
+
variant?: import("../..").DisplayMode | null;
|
|
967
972
|
displayMode?: import("../..").DisplayMode | null;
|
|
968
973
|
listLayout?: import("../..").EventLayout;
|
|
969
974
|
listColumns?: import("../..").ColumnOption;
|
|
@@ -998,6 +1003,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
998
1003
|
siteId: string;
|
|
999
1004
|
apiBaseUrl?: string;
|
|
1000
1005
|
stage?: "preview" | "published";
|
|
1006
|
+
variant?: import("../..").DisplayMode | null;
|
|
1001
1007
|
displayMode?: import("../..").DisplayMode | null;
|
|
1002
1008
|
listLayout?: import("../..").EventLayout;
|
|
1003
1009
|
listColumns?: import("../..").ColumnOption;
|
|
@@ -335,6 +335,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
335
335
|
siteId: string;
|
|
336
336
|
apiBaseUrl?: string;
|
|
337
337
|
stage?: "preview" | "published";
|
|
338
|
+
variant?: import("../..").DisplayMode | null;
|
|
338
339
|
displayMode?: import("../..").DisplayMode | null;
|
|
339
340
|
listLayout?: import("../..").EventLayout;
|
|
340
341
|
listColumns?: import("../..").ColumnOption;
|
|
@@ -410,6 +411,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
410
411
|
siteId: string;
|
|
411
412
|
apiBaseUrl?: string;
|
|
412
413
|
stage?: "preview" | "published";
|
|
414
|
+
variant?: import("../..").DisplayMode | null;
|
|
413
415
|
displayMode?: import("../..").DisplayMode | null;
|
|
414
416
|
listLayout?: import("../..").EventLayout;
|
|
415
417
|
listColumns?: import("../..").ColumnOption;
|
|
@@ -444,6 +446,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
444
446
|
siteId: string;
|
|
445
447
|
apiBaseUrl?: string;
|
|
446
448
|
stage?: "preview" | "published";
|
|
449
|
+
variant?: import("../..").DisplayMode | null;
|
|
447
450
|
displayMode?: import("../..").DisplayMode | null;
|
|
448
451
|
listLayout?: import("../..").EventLayout;
|
|
449
452
|
listColumns?: import("../..").ColumnOption;
|
|
@@ -6,6 +6,7 @@ export type EventCalendarSourceProps = Readonly<{
|
|
|
6
6
|
siteId: string;
|
|
7
7
|
apiBaseUrl?: string;
|
|
8
8
|
stage?: "preview" | "published";
|
|
9
|
+
variant?: DisplayMode | null;
|
|
9
10
|
displayMode?: DisplayMode | null;
|
|
10
11
|
listLayout?: EventLayout;
|
|
11
12
|
listColumns?: ColumnOption;
|
|
@@ -92,6 +93,7 @@ export declare const eventCalendarBlockRuntime: Readonly<{
|
|
|
92
93
|
siteId: string;
|
|
93
94
|
apiBaseUrl?: string;
|
|
94
95
|
stage?: "preview" | "published";
|
|
96
|
+
variant?: DisplayMode | null;
|
|
95
97
|
displayMode?: DisplayMode | null;
|
|
96
98
|
listLayout?: EventLayout;
|
|
97
99
|
listColumns?: ColumnOption;
|
|
@@ -167,6 +169,7 @@ export declare const eventCalendarBlockRuntime: Readonly<{
|
|
|
167
169
|
siteId: string;
|
|
168
170
|
apiBaseUrl?: string;
|
|
169
171
|
stage?: "preview" | "published";
|
|
172
|
+
variant?: DisplayMode | null;
|
|
170
173
|
displayMode?: DisplayMode | null;
|
|
171
174
|
listLayout?: EventLayout;
|
|
172
175
|
listColumns?: ColumnOption;
|
|
@@ -201,6 +204,7 @@ export declare const eventCalendarBlockRuntime: Readonly<{
|
|
|
201
204
|
siteId: string;
|
|
202
205
|
apiBaseUrl?: string;
|
|
203
206
|
stage?: "preview" | "published";
|
|
207
|
+
variant?: DisplayMode | null;
|
|
204
208
|
displayMode?: DisplayMode | null;
|
|
205
209
|
listLayout?: EventLayout;
|
|
206
210
|
listColumns?: ColumnOption;
|
|
@@ -151,6 +151,7 @@ export declare function getSupabaseUrl(): string;
|
|
|
151
151
|
* Required for relative path resolution.
|
|
152
152
|
*/
|
|
153
153
|
export declare function getSiteId(): string | undefined;
|
|
154
|
+
export declare function resolveVideoPosterUrl(value: Media, context?: ResolveImageUrlContext | null): string | undefined;
|
|
154
155
|
export declare function resolveMediaWithContext<TMedia extends Media>(value: TMedia, context?: ResolveImageUrlContext | null): TMedia;
|
|
155
156
|
export type MediaNodeProps = {
|
|
156
157
|
value?: Media | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type NewsletterFormError = Readonly<{
|
|
2
|
+
kind: 'field';
|
|
3
|
+
fieldId: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}> | Readonly<{
|
|
6
|
+
kind: 'form';
|
|
7
|
+
message: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function newsletterFieldError(fieldId: string, message: string): NewsletterFormError;
|
|
10
|
+
export declare function newsletterFormError(message: string): NewsletterFormError;
|
|
11
|
+
export declare function getNewsletterFieldError(error: NewsletterFormError | null, fieldId: string): string | null;
|
|
12
|
+
export declare function getNewsletterFormError(error: NewsletterFormError | null): string | null;
|
|
@@ -19,6 +19,13 @@ export declare const eventLayoutSchema: z.ZodEnum<{
|
|
|
19
19
|
stack: "stack";
|
|
20
20
|
grid: "grid";
|
|
21
21
|
}>;
|
|
22
|
+
export declare const eventCalendarDisplayModeSchema: z.ZodEnum<{
|
|
23
|
+
month: "month";
|
|
24
|
+
list: "list";
|
|
25
|
+
combined: "combined";
|
|
26
|
+
week: "week";
|
|
27
|
+
timetable: "timetable";
|
|
28
|
+
}>;
|
|
22
29
|
export declare const columnOptionSchema: z.ZodEnum<{
|
|
23
30
|
2: "2";
|
|
24
31
|
3: "3";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { FeedbackLiveMode } from './FeedbackMessage';
|
|
3
|
+
export type FieldValidationMessageProps = Readonly<{
|
|
4
|
+
id: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
live?: FeedbackLiveMode;
|
|
8
|
+
}>;
|
|
9
|
+
export type FieldValidationControlProps = Readonly<{
|
|
10
|
+
'aria-invalid'?: 'true';
|
|
11
|
+
'aria-describedby'?: string;
|
|
12
|
+
}>;
|
|
13
|
+
export type FieldValidationControlInput = Readonly<{
|
|
14
|
+
message: ReactNode | null | undefined;
|
|
15
|
+
messageId: string;
|
|
16
|
+
describedBy?: string;
|
|
17
|
+
}>;
|
|
18
|
+
export declare function getFieldValidationControlProps({ message, messageId, describedBy, }: FieldValidationControlInput): FieldValidationControlProps;
|
|
19
|
+
export declare function FieldValidationMessage({ id, children, className, live, }: FieldValidationMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { FeedbackTone } from './FeedbackMessage';
|
|
2
|
+
import type { FeedbackLiveMode, FeedbackTone } from './FeedbackMessage';
|
|
3
|
+
export type TerminalPanelTitleElement = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3
4
|
export type TerminalPanelProps = Readonly<{
|
|
4
5
|
tone: FeedbackTone;
|
|
5
6
|
title: ReactNode;
|
|
7
|
+
titleAs?: TerminalPanelTitleElement;
|
|
6
8
|
body?: ReactNode;
|
|
9
|
+
secondaryBody?: ReactNode;
|
|
7
10
|
icon?: ReactNode;
|
|
8
11
|
actions?: ReactNode;
|
|
9
12
|
className?: string;
|
|
10
13
|
titleClassName?: string;
|
|
11
14
|
bodyClassName?: string;
|
|
15
|
+
secondaryBodyClassName?: string;
|
|
12
16
|
iconClassName?: string;
|
|
13
17
|
actionsClassName?: string;
|
|
18
|
+
role?: 'alert' | 'status';
|
|
19
|
+
live?: FeedbackLiveMode;
|
|
14
20
|
}>;
|
|
15
|
-
export declare function TerminalPanel({ tone, title, body, icon, actions, className, titleClassName, bodyClassName, iconClassName, actionsClassName, }: TerminalPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function TerminalPanel({ tone, title, titleAs: Title, body, secondaryBody, icon, actions, className, titleClassName, bodyClassName, secondaryBodyClassName, iconClassName, actionsClassName, role, live, }: TerminalPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,6 +6,8 @@ export { ClockIcon } from './ClockIcon';
|
|
|
6
6
|
export { CrossIcon } from './CrossIcon';
|
|
7
7
|
export { ActionRow } from './ActionRow';
|
|
8
8
|
export type { ActionRowProps } from './ActionRow';
|
|
9
|
+
export { FieldValidationMessage, getFieldValidationControlProps, } from './FieldValidationMessage';
|
|
10
|
+
export type { FieldValidationControlInput, FieldValidationControlProps, FieldValidationMessageProps, } from './FieldValidationMessage';
|
|
9
11
|
export { FeedbackMessage } from './FeedbackMessage';
|
|
10
12
|
export type { FeedbackLiveMode, FeedbackMessageProps, FeedbackTone } from './FeedbackMessage';
|
|
11
13
|
export { LoggedInAsUser } from './LoggedInAsUser';
|
|
@@ -16,6 +18,6 @@ export { ModalShell } from './ModalShell';
|
|
|
16
18
|
export type { ModalShellProps } from './ModalShell';
|
|
17
19
|
export { TabBarFragment } from './TabBarFragment';
|
|
18
20
|
export { TerminalPanel } from './TerminalPanel';
|
|
19
|
-
export type { TerminalPanelProps } from './TerminalPanel';
|
|
21
|
+
export type { TerminalPanelProps, TerminalPanelTitleElement } from './TerminalPanel';
|
|
20
22
|
export { StepIndicator } from './StepIndicator';
|
|
21
23
|
export type { StepIndicatorBaseProps, StepIndicatorProps } from './StepIndicator';
|
|
@@ -7,5 +7,5 @@ export type { FormData, ButtonVariant } from './types';
|
|
|
7
7
|
export { DEFAULT_CURRENCY } from './types';
|
|
8
8
|
export { buildCheckoutReturnUrls, resolveDedicatedBookingPath, formatPrice, scrollToBlock, consumeSearchParam, consumeSearchParams, validateFormData, getStepNumber, } from './utils';
|
|
9
9
|
export { createBodyThemePortalRoot } from './utils';
|
|
10
|
-
export { ActionRow, CheckIcon, ClockIcon, CrossIcon, FeedbackMessage, MembershipHero, ModalShell, StateIcon, StepIndicator, TerminalPanel, } from './components';
|
|
11
|
-
export type { ActionRowProps, FeedbackLiveMode, FeedbackMessageProps, FeedbackTone, ModalShellProps, StepIndicatorBaseProps, StepIndicatorProps, TerminalPanelProps, } from './components';
|
|
10
|
+
export { ActionRow, CheckIcon, ClockIcon, CrossIcon, FieldValidationMessage, FeedbackMessage, getFieldValidationControlProps, MembershipHero, ModalShell, StateIcon, StepIndicator, TerminalPanel, } from './components';
|
|
11
|
+
export type { ActionRowProps, FieldValidationControlInput, FieldValidationControlProps, FieldValidationMessageProps, FeedbackLiveMode, FeedbackMessageProps, FeedbackTone, ModalShellProps, StepIndicatorBaseProps, StepIndicatorProps, TerminalPanelProps, TerminalPanelTitleElement, } from './components';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type DebouncedLatestSaveHandle = {
|
|
2
|
+
trigger: () => void;
|
|
3
|
+
cancel: () => void;
|
|
4
|
+
flush: () => void;
|
|
5
|
+
isPending: () => boolean;
|
|
6
|
+
};
|
|
7
|
+
export type DebouncedLatestSaveConfig<TSnapshot, TPayload, TResult> = {
|
|
8
|
+
getSnapshot: () => TSnapshot;
|
|
9
|
+
buildPayload: (snapshot: TSnapshot) => TPayload | null | undefined;
|
|
10
|
+
save: (payload: TPayload) => Promise<TResult>;
|
|
11
|
+
shouldSkip?: (snapshot: TSnapshot) => boolean;
|
|
12
|
+
onSaving?: (snapshot: TSnapshot) => void;
|
|
13
|
+
onSaved?: (result: TResult, sentSnapshotRef: {
|
|
14
|
+
current: TSnapshot | null;
|
|
15
|
+
}) => void;
|
|
16
|
+
onFailed?: (error: unknown, sentSnapshotRef: {
|
|
17
|
+
current: TSnapshot | null;
|
|
18
|
+
}) => void;
|
|
19
|
+
delay?: number;
|
|
20
|
+
maxWait?: number;
|
|
21
|
+
enabled?: boolean;
|
|
22
|
+
retryDelay?: number;
|
|
23
|
+
};
|
|
24
|
+
export declare function useDebouncedLatestSave<TSnapshot, TPayload, TResult>(config: DebouncedLatestSaveConfig<TSnapshot, TPayload, TResult>): DebouncedLatestSaveHandle;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './registry';
|
|
2
2
|
export * from './services';
|
|
3
|
+
export { useDebouncedLatestSave, type DebouncedLatestSaveConfig, type DebouncedLatestSaveHandle } from './hooks/useDebouncedLatestSave';
|
|
3
4
|
export { useSimpleAutosave, useMultiAutosave } from './hooks/useSimpleAutosave';
|
|
4
5
|
export { useStoreAutosave, type StoreAutosaveConfig, type AutosaveScope } from './hooks/useStoreAutosave';
|
|
5
6
|
export { useBlockAutosave, type BlockAutosaveOptions } from './hooks/useBlockAutosave';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ContentTypeSchema } from './content-types/schema';
|
|
2
2
|
import type { EntryPickerValueFrom } from './referenceFields';
|
|
3
|
-
export { BUILT_IN_REFERENCE_KINDS, isAdapterReferenceKind, isBuiltInReferenceKind, parseReferenceKind, } from './referenceFields';
|
|
4
|
-
export type { BuiltInReferenceKind, EntryPickerValueFrom, ReferenceKind, ReferenceKindParseResult } from './referenceFields';
|
|
3
|
+
export { BUILT_IN_REFERENCE_KINDS, isAdapterReferenceKind, isBuiltInReferenceKind, parseReferenceContentTypeKey, parseReferenceKind, } from './referenceFields';
|
|
4
|
+
export type { BuiltInReferenceKind, EntryPickerValueFrom, ReferenceContentTypeKey, ReferenceKind, ReferenceKindParseResult, } from './referenceFields';
|
|
5
5
|
/**
|
|
6
6
|
* Context for mapping content schema fields
|
|
7
7
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare const BUILT_IN_REFERENCE_KINDS: readonly ["post", "form", "bookingForm", "appointmentService", "appointmentResource", "page", "newsletterList"];
|
|
2
2
|
export type BuiltInReferenceKind = (typeof BUILT_IN_REFERENCE_KINDS)[number];
|
|
3
3
|
export type EntryPickerValueFrom = 'id' | 'identifier' | 'slug';
|
|
4
|
+
declare const referenceContentTypeKeyBrand: unique symbol;
|
|
5
|
+
export type ReferenceContentTypeKey = string & {
|
|
6
|
+
readonly [referenceContentTypeKeyBrand]: 'ReferenceContentTypeKey';
|
|
7
|
+
};
|
|
4
8
|
/**
|
|
5
9
|
* Tagged template literal for dynamic content-type-keyed reference kinds.
|
|
6
10
|
* The string form is `content:${contentTypeKey}` (e.g. `content:product`).
|
|
@@ -18,7 +22,7 @@ export type ReferenceKindParseResult = Readonly<{
|
|
|
18
22
|
}> | Readonly<{
|
|
19
23
|
kind: 'dynamicContent';
|
|
20
24
|
referenceKind: DynamicContentReferenceKind;
|
|
21
|
-
contentTypeKey:
|
|
25
|
+
contentTypeKey: ReferenceContentTypeKey;
|
|
22
26
|
}> | Readonly<{
|
|
23
27
|
kind: 'unsupported';
|
|
24
28
|
referenceKind: string;
|
|
@@ -26,4 +30,6 @@ export type ReferenceKindParseResult = Readonly<{
|
|
|
26
30
|
export declare function isBuiltInReferenceKind(referenceKind: string): referenceKind is BuiltInReferenceKind;
|
|
27
31
|
export declare function isDynamicContentReferenceKind(referenceKind: string): referenceKind is DynamicContentReferenceKind;
|
|
28
32
|
export declare function isAdapterReferenceKind(referenceKind: string): referenceKind is ReferenceKind;
|
|
33
|
+
export declare function parseReferenceContentTypeKey(contentTypeKey: string): ReferenceContentTypeKey | null;
|
|
29
34
|
export declare function parseReferenceKind(referenceKind: string): ReferenceKindParseResult;
|
|
35
|
+
export {};
|