@riverbankcms/sdk 0.60.16 → 0.62.2
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/bookingManagementEndpoints.d.ts +41 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +100 -3
- package/dist/_dts/api/src/bookings.d.ts +2 -1
- package/dist/_dts/api/src/endpoints.d.ts +96 -0
- package/dist/_dts/api/src/index.d.ts +5 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +113 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +51 -47
- package/dist/_dts/api/src/types.d.ts +1 -0
- 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/shared/contract-schemas.d.ts +7 -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 +34 -6
- 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/customizeFacetControls.d.ts +9 -0
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +14 -0
- package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +9 -7
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +6 -3
- 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/rendering/helpers/bindings.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- 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/schema.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +515 -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 +119 -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 +6 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +12 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/siteChromeAppearancePresets.d.ts +67 -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 +22 -3
- package/dist/_dts/theme-core/src/siteChrome.d.ts +11 -0
- package/dist/cli/index.mjs +4310 -3464
- package/dist/client/bookings.mjs +310 -310
- package/dist/client/client.mjs +61329 -60359
- package/dist/client/hooks.mjs +1254 -731
- package/dist/client/rendering/client.mjs +5959 -5226
- package/dist/client/rendering/islands.mjs +3842 -3275
- package/dist/client/rendering.mjs +7495 -6519
- package/dist/preview-next/before-render.mjs +118 -0
- package/dist/preview-next/client/runtime.mjs +4489 -2773
- package/dist/preview-next/middleware.mjs +136 -0
- package/dist/server/components.mjs +1342 -765
- package/dist/server/config-validation.mjs +1256 -733
- package/dist/server/config.mjs +1256 -733
- package/dist/server/data.mjs +1254 -731
- package/dist/server/index.mjs +191 -18
- package/dist/server/next.mjs +1339 -760
- package/dist/server/page-converter.mjs +1088 -734
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1338 -762
- package/dist/server/rendering.mjs +1351 -770
- package/dist/server/routing.mjs +1340 -754
- package/dist/server/server.mjs +1260 -734
- package/dist/server/theme-bridge.mjs +198 -34
- package/dist/server/theme.mjs +6 -0
- package/dist/styles/index.css +28 -9
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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";
|
|
@@ -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 {};
|
|
@@ -3024,6 +3024,7 @@ export type Database = {
|
|
|
3024
3024
|
finalized_by_customer_at: string | null;
|
|
3025
3025
|
id: string;
|
|
3026
3026
|
original_filename: string;
|
|
3027
|
+
participant_participation_id: string;
|
|
3027
3028
|
rejection_reason: string | null;
|
|
3028
3029
|
requirement_id: string;
|
|
3029
3030
|
session_id: string;
|
|
@@ -3053,6 +3054,7 @@ export type Database = {
|
|
|
3053
3054
|
finalized_by_customer_at?: string | null;
|
|
3054
3055
|
id?: string;
|
|
3055
3056
|
original_filename: string;
|
|
3057
|
+
participant_participation_id: string;
|
|
3056
3058
|
rejection_reason?: string | null;
|
|
3057
3059
|
requirement_id: string;
|
|
3058
3060
|
session_id: string;
|
|
@@ -3082,6 +3084,7 @@ export type Database = {
|
|
|
3082
3084
|
finalized_by_customer_at?: string | null;
|
|
3083
3085
|
id?: string;
|
|
3084
3086
|
original_filename?: string;
|
|
3087
|
+
participant_participation_id?: string;
|
|
3085
3088
|
rejection_reason?: string | null;
|
|
3086
3089
|
requirement_id?: string;
|
|
3087
3090
|
session_id?: string;
|
|
@@ -3128,6 +3131,13 @@ export type Database = {
|
|
|
3128
3131
|
referencedRelation: "event_attendees";
|
|
3129
3132
|
referencedColumns: ["id"];
|
|
3130
3133
|
},
|
|
3134
|
+
{
|
|
3135
|
+
foreignKeyName: "booking_requirement_document_uploads_participant_participation_";
|
|
3136
|
+
columns: ["participant_participation_id"];
|
|
3137
|
+
isOneToOne: false;
|
|
3138
|
+
referencedRelation: "booking_participant_participations";
|
|
3139
|
+
referencedColumns: ["id"];
|
|
3140
|
+
},
|
|
3131
3141
|
{
|
|
3132
3142
|
foreignKeyName: "booking_requirement_document_uploads_requirement_id_fkey";
|
|
3133
3143
|
columns: ["requirement_id"];
|
|
@@ -3156,7 +3166,7 @@ export type Database = {
|
|
|
3156
3166
|
event_attendee_id: string | null;
|
|
3157
3167
|
id: string;
|
|
3158
3168
|
participant_id: string | null;
|
|
3159
|
-
participant_participation_id: string
|
|
3169
|
+
participant_participation_id: string;
|
|
3160
3170
|
requirement_id: string;
|
|
3161
3171
|
site_id: string;
|
|
3162
3172
|
snapshot_json: Json;
|
|
@@ -3173,7 +3183,7 @@ export type Database = {
|
|
|
3173
3183
|
event_attendee_id?: string | null;
|
|
3174
3184
|
id?: string;
|
|
3175
3185
|
participant_id?: string | null;
|
|
3176
|
-
participant_participation_id
|
|
3186
|
+
participant_participation_id: string;
|
|
3177
3187
|
requirement_id: string;
|
|
3178
3188
|
site_id: string;
|
|
3179
3189
|
snapshot_json?: Json;
|
|
@@ -3190,7 +3200,7 @@ export type Database = {
|
|
|
3190
3200
|
event_attendee_id?: string | null;
|
|
3191
3201
|
id?: string;
|
|
3192
3202
|
participant_id?: string | null;
|
|
3193
|
-
participant_participation_id?: string
|
|
3203
|
+
participant_participation_id?: string;
|
|
3194
3204
|
requirement_id?: string;
|
|
3195
3205
|
site_id?: string;
|
|
3196
3206
|
snapshot_json?: Json;
|
|
@@ -3336,7 +3346,7 @@ export type Database = {
|
|
|
3336
3346
|
event_attendee_id: string | null;
|
|
3337
3347
|
id: string;
|
|
3338
3348
|
participant_id: string | null;
|
|
3339
|
-
participant_participation_id: string
|
|
3349
|
+
participant_participation_id: string;
|
|
3340
3350
|
requirement_id: string;
|
|
3341
3351
|
site_id: string;
|
|
3342
3352
|
};
|
|
@@ -3350,7 +3360,7 @@ export type Database = {
|
|
|
3350
3360
|
event_attendee_id?: string | null;
|
|
3351
3361
|
id?: string;
|
|
3352
3362
|
participant_id?: string | null;
|
|
3353
|
-
participant_participation_id
|
|
3363
|
+
participant_participation_id: string;
|
|
3354
3364
|
requirement_id: string;
|
|
3355
3365
|
site_id: string;
|
|
3356
3366
|
};
|
|
@@ -3364,7 +3374,7 @@ export type Database = {
|
|
|
3364
3374
|
event_attendee_id?: string | null;
|
|
3365
3375
|
id?: string;
|
|
3366
3376
|
participant_id?: string | null;
|
|
3367
|
-
participant_participation_id?: string
|
|
3377
|
+
participant_participation_id?: string;
|
|
3368
3378
|
requirement_id?: string;
|
|
3369
3379
|
site_id?: string;
|
|
3370
3380
|
};
|
|
@@ -14717,6 +14727,24 @@ export type Database = {
|
|
|
14717
14727
|
order_id: string;
|
|
14718
14728
|
}[];
|
|
14719
14729
|
};
|
|
14730
|
+
postgres_fdw_disconnect: {
|
|
14731
|
+
Args: {
|
|
14732
|
+
"": string;
|
|
14733
|
+
};
|
|
14734
|
+
Returns: boolean;
|
|
14735
|
+
};
|
|
14736
|
+
postgres_fdw_disconnect_all: {
|
|
14737
|
+
Args: never;
|
|
14738
|
+
Returns: boolean;
|
|
14739
|
+
};
|
|
14740
|
+
postgres_fdw_get_connections: {
|
|
14741
|
+
Args: never;
|
|
14742
|
+
Returns: Record<string, unknown>[];
|
|
14743
|
+
};
|
|
14744
|
+
postgres_fdw_handler: {
|
|
14745
|
+
Args: never;
|
|
14746
|
+
Returns: unknown;
|
|
14747
|
+
};
|
|
14720
14748
|
redeem_pass_credits: {
|
|
14721
14749
|
Args: {
|
|
14722
14750
|
credits_amount?: number;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { FieldWidgetProps } from '@riverbankcms/block-form/client';
|
|
2
2
|
import type { MediaFieldConfig } from '@riverbankcms/block-form/client';
|
|
3
3
|
import type { UploadIntentContract } from '@riverbankcms/api';
|
|
4
|
+
import { type VideoPrepIntent } from '@riverbankcms/media-core';
|
|
4
5
|
import { type MediaValue } from '@riverbankcms/media-editor';
|
|
5
6
|
import type { VideoPrepIntentResolver } from '@riverbankcms/media-react';
|
|
6
7
|
export declare function uploadIntentForMediaField(blockKind: string | undefined, fieldPath: string): UploadIntentContract | undefined;
|
|
7
8
|
export declare function videoPrepIntentForMediaField(blockKind: string | undefined, fieldPath: string, mediaKinds: readonly NonNullable<MediaFieldConfig['mediaKinds']>[number][] | undefined): VideoPrepIntentResolver | undefined;
|
|
9
|
+
export declare function videoSelectionIntentForMediaField(blockKind: string | undefined, fieldPath: string, mediaKinds: readonly NonNullable<MediaFieldConfig['mediaKinds']>[number][] | undefined): VideoPrepIntent | undefined;
|
|
8
10
|
export declare function MediaField({ path, backend, config }: FieldWidgetProps<MediaValue, MediaFieldConfig>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import type { SiteId } from '@riverbankcms/core';
|
|
2
3
|
import type { EntryPickerWidgetAdapter } from './types';
|
|
3
4
|
type EntryPickerWidgetContextValue = {
|
|
4
|
-
siteId:
|
|
5
|
+
siteId: SiteId;
|
|
5
6
|
adapter: EntryPickerWidgetAdapter | null;
|
|
6
7
|
};
|
|
7
8
|
export type EntryPickerWidgetProviderProps = {
|
|
8
|
-
siteId:
|
|
9
|
+
siteId: SiteId;
|
|
9
10
|
adapter?: EntryPickerWidgetAdapter | null;
|
|
10
11
|
children: ReactNode;
|
|
11
12
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ContentEntrySummary } from '@riverbankcms/api/content-entries';
|
|
2
2
|
import type { ApiClient } from '@riverbankcms/api/request';
|
|
3
|
+
import type { SiteId } from '@riverbankcms/core';
|
|
3
4
|
import type { EntryPickerItem, EntryPickerValueFrom } from './types';
|
|
4
5
|
export type EntryPickerLoaderArgs = Readonly<{
|
|
5
6
|
apiClient: ApiClient;
|
|
6
|
-
siteId:
|
|
7
|
+
siteId: SiteId;
|
|
7
8
|
contentType: string;
|
|
8
9
|
valueFrom?: EntryPickerValueFrom;
|
|
9
10
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PickerLabels, PickerOption, PickerOptionBadgeVariant } from '@riverbankcms/ui';
|
|
2
|
+
import type { SiteId } from '@riverbankcms/core';
|
|
2
3
|
export type EntryPickerItemBadgeVariant = PickerOptionBadgeVariant;
|
|
3
4
|
export type EntryPickerValueFrom = 'id' | 'identifier' | 'slug';
|
|
4
5
|
export type EntryPickerItem = PickerOption & {
|
|
@@ -8,7 +9,7 @@ export type EntryPickerItem = PickerOption & {
|
|
|
8
9
|
slug?: string | null;
|
|
9
10
|
};
|
|
10
11
|
export type EntryPickerAdapterArgs = {
|
|
11
|
-
siteId:
|
|
12
|
+
siteId: SiteId;
|
|
12
13
|
contentType: string;
|
|
13
14
|
/** Determines what should be stored in the field value */
|
|
14
15
|
valueFrom?: EntryPickerValueFrom;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { RoutableContentItem } from '@riverbankcms/api/navigation';
|
|
2
|
+
import type { SiteId } from '@riverbankcms/core';
|
|
2
3
|
import type { LinkValue } from '@riverbankcms/blocks';
|
|
3
4
|
import type { LinkWidgetAdapters } from './types';
|
|
4
5
|
export type LinkPickerProps = {
|
|
5
|
-
siteId?:
|
|
6
|
+
siteId?: SiteId;
|
|
6
7
|
value: LinkValue | null;
|
|
7
8
|
onChange: (value: LinkValue | null) => void;
|
|
8
9
|
disabled?: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type LinkValue } from '@riverbankcms/blocks';
|
|
3
3
|
import type { RoutableContentItem } from '@riverbankcms/api/navigation';
|
|
4
|
+
import type { SiteId } from '@riverbankcms/core';
|
|
4
5
|
import type { LinkWidgetAdapters } from './types';
|
|
5
6
|
type LinkWidgetProps = {
|
|
6
|
-
siteId?:
|
|
7
|
+
siteId?: SiteId;
|
|
7
8
|
value: LinkValue | null;
|
|
8
9
|
onChange: (value: LinkValue | null) => void;
|
|
9
10
|
disabled?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { RoutableContentItem } from '@riverbankcms/api/navigation';
|
|
3
|
+
import type { SiteId } from '@riverbankcms/core';
|
|
3
4
|
import type { LinkWidgetAdapters } from './types';
|
|
4
5
|
/**
|
|
5
6
|
* Context value for LinkWidget
|
|
@@ -8,7 +9,7 @@ import type { LinkWidgetAdapters } from './types';
|
|
|
8
9
|
* without prop drilling through FormRenderer
|
|
9
10
|
*/
|
|
10
11
|
export type LinkWidgetContextValue = {
|
|
11
|
-
siteId?:
|
|
12
|
+
siteId?: SiteId;
|
|
12
13
|
adapters?: LinkWidgetAdapters;
|
|
13
14
|
initialItems?: RoutableContentItem[];
|
|
14
15
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { RoutableContentItem } from '@riverbankcms/api/navigation';
|
|
2
2
|
import type { ApiClient } from '@riverbankcms/api/request';
|
|
3
|
+
import type { SiteId } from '@riverbankcms/core';
|
|
3
4
|
export type RoutableContentLoaderArgs = Readonly<{
|
|
4
5
|
apiClient: ApiClient;
|
|
5
|
-
siteId:
|
|
6
|
+
siteId: SiteId;
|
|
6
7
|
}>;
|
|
7
8
|
export declare function loadRoutableContentItems({ apiClient, siteId, }: RoutableContentLoaderArgs): Promise<RoutableContentItem[]>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { RoutableContentItem } from '@riverbankcms/api/navigation';
|
|
2
|
+
import type { SiteId } from '@riverbankcms/core';
|
|
2
3
|
export type LinkWidgetAdapters = {
|
|
3
|
-
fetchRoutableContent?: (siteId:
|
|
4
|
+
fetchRoutableContent?: (siteId: SiteId) => Promise<RoutableContentItem[]>;
|
|
4
5
|
};
|
|
5
6
|
export type CreateLinkWidgetOptions = {
|
|
6
|
-
siteId?:
|
|
7
|
+
siteId?: SiteId;
|
|
7
8
|
adapters?: LinkWidgetAdapters;
|
|
8
9
|
initialItems?: RoutableContentItem[];
|
|
9
10
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReferenceContentTypeKey } from '@riverbankcms/content-model';
|
|
2
|
+
import type { ReferenceWidgetAdapter, ReferenceWidgetAdapters } from './types';
|
|
3
|
+
export type DynamicContentReferenceAdapterFactory = (contentTypeKey: ReferenceContentTypeKey) => ReferenceWidgetAdapter;
|
|
4
|
+
/**
|
|
5
|
+
* Adds dynamic `content:${contentTypeKey}` adapter resolution to a static
|
|
6
|
+
* reference adapter map while keeping symbol property lookups inert for
|
|
7
|
+
* framework/devtool probes.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createDynamicReferenceAdapters(staticAdapters: ReferenceWidgetAdapters, createDynamicContentAdapter: DynamicContentReferenceAdapterFactory): ReferenceWidgetAdapters;
|
|
@@ -15,13 +15,16 @@
|
|
|
15
15
|
* composition layer.
|
|
16
16
|
*/
|
|
17
17
|
import type { ApiClient } from '@riverbankcms/api/request';
|
|
18
|
-
import type { BuiltInReferenceKind } from '@riverbankcms/content-model';
|
|
18
|
+
import type { BuiltInReferenceKind, ReferenceContentTypeKey } from '@riverbankcms/content-model';
|
|
19
19
|
import type { SiteId } from '@riverbankcms/core';
|
|
20
20
|
import type { ReferenceWidgetItem } from './types';
|
|
21
21
|
export interface ReferenceLoaderArgs {
|
|
22
22
|
apiClient: ApiClient;
|
|
23
23
|
siteId: SiteId;
|
|
24
24
|
}
|
|
25
|
+
export interface DynamicContentReferenceLoaderArgs extends ReferenceLoaderArgs {
|
|
26
|
+
contentTypeKey: ReferenceContentTypeKey;
|
|
27
|
+
}
|
|
25
28
|
export type ReferenceLoader<K extends BuiltInReferenceKind = BuiltInReferenceKind> = ((args: ReferenceLoaderArgs) => Promise<ReferenceWidgetItem[]>) & Readonly<{
|
|
26
29
|
referenceKind: K;
|
|
27
30
|
}>;
|
|
@@ -35,6 +38,7 @@ export declare const loadAppointmentServiceReferenceItems: ReferenceLoader<"appo
|
|
|
35
38
|
export declare const loadAppointmentResourceReferenceItems: ReferenceLoader<"appointmentResource">;
|
|
36
39
|
export declare const loadPageReferenceItems: ReferenceLoader<"page">;
|
|
37
40
|
export declare const loadNewsletterListReferenceItems: ReferenceLoader<"newsletterList">;
|
|
41
|
+
export declare function loadDynamicContentReferenceItems({ apiClient, siteId, contentTypeKey, }: DynamicContentReferenceLoaderArgs): Promise<ReferenceWidgetItem[]>;
|
|
38
42
|
/**
|
|
39
43
|
* Typed map keyed by `BuiltInReferenceKind`. Adding a new built-in kind fails to
|
|
40
44
|
* compile here. The `satisfies` form preserves the literal's inferred shape while
|
|
@@ -15,6 +15,7 @@ export * from './fileAssetDeletion';
|
|
|
15
15
|
export * from './fileAssetCompatibility';
|
|
16
16
|
export * from './fileMimeDetection';
|
|
17
17
|
export * from './videoPrep';
|
|
18
|
+
export * from './videoSlotPolicy';
|
|
18
19
|
export * from './identifiers';
|
|
19
20
|
export { getImageUrl, getDirectImageUrl, getDirectImageUrlForRelativePath, getDirectImageUrlForSiteScopedPath, getDirectImageUrlForBucketPath, getDirectImageUrlForStoragePath, getDirectImageUrlForMediaAsset, isRelativeDirectImageStoragePath, isSiteScopedDirectImageStoragePath, type DirectImageMediaAsset, type DirectImageUrlOptions, type DirectImageUrlPathTarget, type ImageProxyFit, type ImageProxyParams, } from './url';
|
|
20
21
|
export { isSameTransformRect, isSameHotspot, type HotspotLike } from './compare';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type VideoPrepIntent } from './videoPrep';
|
|
2
|
+
export type VideoSlotPolicyIntent = Extract<VideoPrepIntent, {
|
|
3
|
+
readonly tag: 'inline-content';
|
|
4
|
+
} | {
|
|
5
|
+
readonly tag: 'background-video';
|
|
6
|
+
}>;
|
|
7
|
+
export type VideoSlotPolicy = Readonly<{
|
|
8
|
+
intent: VideoSlotPolicyIntent;
|
|
9
|
+
maxDurationSeconds: number;
|
|
10
|
+
}>;
|
|
11
|
+
export type VideoSlotAssetLike = Readonly<{
|
|
12
|
+
mimeType?: string | null;
|
|
13
|
+
durationSeconds?: number | null;
|
|
14
|
+
}>;
|
|
15
|
+
export type VideoSlotFieldInput = Readonly<{
|
|
16
|
+
blockKind?: string | null;
|
|
17
|
+
fieldPath: string;
|
|
18
|
+
mediaKinds?: readonly string[] | null;
|
|
19
|
+
}>;
|
|
20
|
+
export type VideoSlotAssetPolicyResult = Readonly<{
|
|
21
|
+
tag: 'allowed';
|
|
22
|
+
}> | Readonly<{
|
|
23
|
+
tag: 'not-video';
|
|
24
|
+
}> | Readonly<{
|
|
25
|
+
tag: 'unconstrained';
|
|
26
|
+
}> | Readonly<{
|
|
27
|
+
tag: 'duration-unknown';
|
|
28
|
+
maxSeconds: number;
|
|
29
|
+
}> | Readonly<{
|
|
30
|
+
tag: 'duration-too-long';
|
|
31
|
+
actualSeconds: number;
|
|
32
|
+
maxSeconds: number;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function deriveVideoSlotPolicy(intent: VideoPrepIntent | undefined): VideoSlotPolicy | undefined;
|
|
35
|
+
export declare function evaluateVideoSlotAssetPolicy(asset: VideoSlotAssetLike, policy: VideoSlotPolicy | undefined): VideoSlotAssetPolicyResult;
|
|
36
|
+
export declare function resolveVideoSelectionIntentForMediaField(input: VideoSlotFieldInput): VideoSlotPolicyIntent | undefined;
|
|
37
|
+
export declare function isVideoSlotAssetSelectable(result: VideoSlotAssetPolicyResult): boolean;
|
|
38
|
+
export declare function videoSlotAssetPolicyMessage(result: VideoSlotAssetPolicyResult): string | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MediaKind } from '@riverbankcms/media-storage-supabase';
|
|
2
2
|
import { type UploadIntentResolver, type VideoPrepIntentResolver } from '@riverbankcms/media-react';
|
|
3
|
+
import type { VideoPrepIntent } from '@riverbankcms/media-core';
|
|
3
4
|
import type { MediaValue } from './types';
|
|
4
5
|
export type MediaEditorProps = {
|
|
5
6
|
value: MediaValue | undefined;
|
|
@@ -20,5 +21,6 @@ export type MediaEditorProps = {
|
|
|
20
21
|
showRemoveAction?: boolean;
|
|
21
22
|
uploadIntent?: UploadIntentResolver;
|
|
22
23
|
videoPrepIntent?: VideoPrepIntentResolver;
|
|
24
|
+
videoSelectionIntent?: VideoPrepIntent;
|
|
23
25
|
};
|
|
24
|
-
export declare const MediaEditor: ({ value, onChange, allowedKinds, previewAspectRatio, minSourceWidth, minSourceHeight, showAltInput, cropEditorMode, cropEditorAutoOpen, mediaPickerAutoOpen, showPreview, showActionOverlay, onEditDetails, fullWidth, previewVariant, showRemoveAction, uploadIntent, videoPrepIntent, }: MediaEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const MediaEditor: ({ value, onChange, allowedKinds, previewAspectRatio, minSourceWidth, minSourceHeight, showAltInput, cropEditorMode, cropEditorAutoOpen, mediaPickerAutoOpen, showPreview, showActionOverlay, onEditDetails, fullWidth, previewVariant, showRemoveAction, uploadIntent, videoPrepIntent, videoSelectionIntent, }: MediaEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,5 +24,12 @@ export type MediaPickerDialogProps = {
|
|
|
24
24
|
export type MediaPickerPolicy = {
|
|
25
25
|
readonly allowsAsset?: (asset: MediaAssetWithLabels) => boolean;
|
|
26
26
|
readonly allowsUpload?: (file: File) => boolean;
|
|
27
|
+
readonly assetSelection?: (asset: MediaAssetWithLabels) => MediaPickerAssetSelection;
|
|
27
28
|
};
|
|
29
|
+
export type MediaPickerAssetSelection = Readonly<{
|
|
30
|
+
tag: 'selectable';
|
|
31
|
+
}> | Readonly<{
|
|
32
|
+
tag: 'disabled';
|
|
33
|
+
reason: string;
|
|
34
|
+
}>;
|
|
28
35
|
export declare const MediaPickerDialog: ({ allowedKinds, open, onOpenChange, assets, loading, hasMore, selectAsset, loadMore, enqueueUploads, uploads, closeOnSelect, disableSelection, statusMessage, statusTone, title, uploadButtonLabel, uploadAccept, showCameraInput, policy, }: MediaPickerDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type SystemCustomizeFacetId, type SystemCustomizeFacetValue } from '@riverbankcms/blocks/system/customize/facets';
|
|
2
|
+
import type { PageDesignEditorBlock } from '@riverbankcms/theme-core/site-styles/previewCompiler';
|
|
3
|
+
export type PreviewCustomizeFacetControl = Readonly<{
|
|
4
|
+
facetId: SystemCustomizeFacetId;
|
|
5
|
+
label: string;
|
|
6
|
+
value: SystemCustomizeFacetValue;
|
|
7
|
+
valueLabel: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function previewCustomizeFacetControlsFor(blockKind: string, content: Record<string, unknown>, designBlock: PageDesignEditorBlock | null): readonly PreviewCustomizeFacetControl[];
|