@riverbankcms/sdk 0.111.0 → 0.118.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/dist/{PreviewEditorSidebar-CTR6LUhN.mjs → PreviewEditorSidebar-BBcK1DjD.mjs} +4 -4
- package/dist/{PreviewEditorUI-DZg15Zip.mjs → PreviewEditorUI-CuBFoYes.mjs} +3 -3
- package/dist/{PreviewQueryProvider-kkmjklLG.mjs → PreviewQueryProvider-nKUT4TL-.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DeOTAFvR.mjs → SdkPreviewModeRuntime-BWIO_Dsi.mjs} +2579 -34325
- package/dist/{SiteChromeCustomizeContext-DOSDLCiJ.mjs → SiteChromeCustomizeContext-CciG60M5.mjs} +64575 -32787
- package/dist/_dts/ai/src/contracts/proposals.d.ts +5211 -639
- package/dist/_dts/ai/src/designer/themePatch.d.ts +1 -1
- package/dist/_dts/api/src/bookingAdjustments.d.ts +30 -36
- package/dist/_dts/api/src/bookingRecords.d.ts +6 -74
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +3 -3
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -1
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +4 -4
- package/dist/_dts/api/src/endpoints.d.ts +35 -0
- package/dist/_dts/api/src/event-presentation.d.ts +4 -0
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +2 -2
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +2 -2
- package/dist/_dts/api/src/sdkContracts.d.ts +85 -7
- package/dist/_dts/api/src/siteBanner.d.ts +8 -8
- package/dist/_dts/api/src/siteOperations.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +32 -4
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldDefaults.d.ts +3 -12
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +1 -5
- package/dist/_dts/blocks/src/bindings/index.d.ts +1 -10
- package/dist/_dts/blocks/src/index.d.ts +3 -6
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +2 -8
- package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +2 -15
- package/dist/_dts/blocks/src/system/blocks/intro.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +66 -66
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +2 -16
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +0 -3
- package/dist/_dts/blocks/src/system/fragments/index.d.ts +0 -1
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +19 -2
- package/dist/_dts/blocks/src/system/manifest/richTextSchema.d.ts +8 -70
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +6 -0
- package/dist/_dts/blocks/src/system/node/schema.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/buttonAffordance.d.ts +5 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/richText-coerce.d.ts +14 -2
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +17 -1
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +3 -2
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -2
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +3 -15
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +2 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/content-model/src/templates/defaults.d.ts +1 -21
- package/dist/_dts/core/src/editor-state.d.ts +14 -1
- package/dist/_dts/core/src/footer-composition.d.ts +2 -1
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/rich-text.d.ts +16 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +178 -48
- package/dist/_dts/editor/src/index.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/utils.d.ts +3 -5
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +15 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +3 -7
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +12 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/utils.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/index.d.ts +6 -5
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/media-core/src/contentMediaAudit.d.ts +104 -0
- package/dist/_dts/media-core/src/contentMediaAuditFieldAdapter.d.ts +8 -0
- package/dist/_dts/media-core/src/contentMediaSnapshotAudit.d.ts +22 -0
- package/dist/_dts/media-core/src/index.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +18 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +2 -16
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +8 -5
- package/dist/_dts/sdk/src/client/management/events.d.ts +2 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +36 -9
- package/dist/_dts/sdk/src/config/typed-entries.d.ts +7 -7
- package/dist/_dts/sdk/src/config/validation.d.ts +7 -7
- package/dist/_dts/sdk/src/contracts/content.d.ts +5 -15
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +12 -25
- package/dist/_dts/sdk/src/contracts/theme.d.ts +2 -18
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/three-pass-converter.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +1 -2
- package/dist/_dts/sdk/src/rendering/helpers/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -13
- package/dist/_dts/sdk/src/theme/index.d.ts +0 -29
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +31 -18
- package/dist/_dts/theme-core/src/buttons/affordanceIcons.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/core.d.ts +0 -1
- package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +22 -9
- package/dist/_dts/theme-core/src/buttons/effects/presets/background.d.ts +1 -2
- package/dist/_dts/theme-core/src/buttons/effects/presets/border.d.ts +1 -2
- package/dist/_dts/theme-core/src/buttons/effects/presets/overlay.d.ts +3 -1
- package/dist/_dts/theme-core/src/buttons/effects/presets/shadow.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +8 -18
- package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -4
- package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +36 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +1638 -93
- package/dist/_dts/theme-core/src/cards/types.d.ts +13 -13
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +969 -69
- package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/recommend/generateThemes.d.ts +0 -1
- package/dist/_dts/theme-core/src/schema.d.ts +1100 -116
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +14 -14
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
- package/dist/cli/index.mjs +5706 -4852
- package/dist/cli/init-docs/content/cli-reference.md +40 -1
- package/dist/cli/init-docs/content/content-management.md +6 -0
- package/dist/client/{DiscountCodeDisclosure-C4xvTBux.mjs → DiscountCodeDisclosure-DIWj-P9v.mjs} +1 -1
- package/dist/client/{EventCombined.client-Cr7G131j.mjs → EventCombined.client-De8YWBSr.mjs} +2 -2
- package/dist/client/{EventListing.client-CAjbseNy.mjs → EventListing.client-seHTjimY.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BMlWfwz3.mjs → LeafletStaticMap-BmQxFcJW.mjs} +1 -1
- package/dist/client/{MagicLinkForm-ChdFz96y.mjs → MagicLinkForm-OoJAIUIj.mjs} +1 -1
- package/dist/client/{StepIndicator-7D3GaBeM.mjs → StepIndicator-CiZ8kdPk.mjs} +2 -2
- package/dist/client/{accordion-D8JTs2Si.mjs → accordion-6lnN__XJ.mjs} +1 -1
- package/dist/client/{bookingForm-H3DCRBHs.mjs → bookingForm-5uyqhONU.mjs} +6 -6
- package/dist/client/bookings.mjs +2219 -527
- package/dist/client/{carousel-DMr_QWlz.mjs → carousel-Dtnifil_.mjs} +1 -1
- package/dist/client/{cart-DWMbfBdR.mjs → cart-5Tc5S7NV.mjs} +3 -3
- package/dist/client/{checkout-zmfdkXLx.mjs → checkout-CYKKN5Hr.mjs} +3 -3
- package/dist/client/client.mjs +1652 -1580
- package/dist/client/{colorTokenParts-FSS3al6l.mjs → colorStyles-BWpj_h4C.mjs} +88 -1
- package/dist/client/{courseRegistration-Z_mn18jy.mjs → courseRegistration-CxCBybB4.mjs} +6 -6
- package/dist/client/{eventCalendar-CYp0YJGF.mjs → eventCalendar-Xj2jZS9X.mjs} +4 -4
- package/dist/client/{eventCombined-rKyYZUa9.mjs → eventCombined-CgcMoOgM.mjs} +2 -2
- package/dist/client/{eventDetails-X0ZaUuMj.mjs → eventDetails-CEAH8Edc.mjs} +3 -3
- package/dist/client/{eventListing-W1SuL7EP.mjs → eventListing-qyPVQ0wP.mjs} +2 -2
- package/dist/client/{eventRegistration-ClWricui.mjs → eventRegistration-DDu79CtL.mjs} +6 -6
- package/dist/client/{form--eKPwAAD.mjs → form-Bc7JKI7I.mjs} +1 -1
- package/dist/client/{headerSection-BSeGr-FS.mjs → headerSection-vTku_LEl.mjs} +2 -2
- package/dist/client/hooks.mjs +373 -555
- package/dist/client/{locationMap-BpOrtNYn.mjs → locationMap-Bg7X4Jna.mjs} +3 -3
- package/dist/client/{media-DoF0dcVx.mjs → media-CNE1Z-wb.mjs} +1 -2
- package/dist/client/{newsletterForm-Bt7it7Dy.mjs → newsletterForm-lpylVdp5.mjs} +1 -1
- package/dist/client/{pricing-BTjSDDr4.mjs → pricing-DE8fjJiT.mjs} +1 -1
- package/dist/client/{productDetail-ICnVTcCg.mjs → productDetail-D7Bo2RMH.mjs} +3 -3
- package/dist/client/{productList-ZHr6D604.mjs → productList-VjnZqiqN.mjs} +3 -3
- package/dist/client/{propsDecoder-wWN0tBDF.mjs → propsDecoder-DreFXjNP.mjs} +2212 -621
- package/dist/client/rendering/client.mjs +21612 -21646
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +1528 -1546
- package/dist/client/{shop-C1u_BUn0.mjs → shop-IRsHHbf7.mjs} +5 -5
- package/dist/client/{shop-commerce-CleZdRha.mjs → shop-commerce-gnI8PieZ.mjs} +27 -10
- package/dist/client/{shop-commerce-store-ycnoB2Ce.mjs → shop-commerce-store-BTbrhObn.mjs} +1 -1
- package/dist/client/{shopShared-CPhByt2a.mjs → shopShared-D6KS2_qk.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-cStSQI6C.mjs → useDiscountCodeUi-DCccGCxV.mjs} +1 -1
- package/dist/client/{useEventFilters-DKPN7hSY.mjs → useEventFilters-eGs3rPZQ.mjs} +3 -104
- package/dist/client/{usePolling-BKAd6pkZ.mjs → usePolling-CvSU2sur.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +57 -0
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +57 -0
- package/dist/{previewAuthStore-BkT1D06A.mjs → previewAuthStore-DN7vcRsv.mjs} +57 -0
- package/dist/{sdk-runtime-hu3wr3ng.mjs → sdk-runtime-vW8QbyPN.mjs} +2 -2
- package/dist/{separator-Bln8izQ9.mjs → separator-DJ4bkeY3.mjs} +1 -1
- package/dist/server/components.mjs +3638 -3696
- package/dist/server/config-template-validation.mjs +4 -23
- package/dist/server/config-validation.mjs +373 -555
- package/dist/server/config.mjs +410 -558
- package/dist/server/data.mjs +373 -555
- package/dist/server/index.mjs +58 -1
- package/dist/server/next.mjs +32384 -32394
- package/dist/server/page-converter.mjs +369 -526
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +5329 -3174
- package/dist/server/rendering.mjs +3645 -3712
- package/dist/server/routing.mjs +758 -966
- package/dist/server/server.mjs +448 -632
- package/dist/server/theme-bridge.mjs +472 -525
- package/dist/server/theme.mjs +1074 -392
- package/package.json +1 -1
- package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +0 -40
- package/dist/_dts/blocks/src/system/fragments/library/footerBottomText.d.ts +0 -19
- package/dist/_dts/media-core/src/legacyMediaValue.d.ts +0 -11
- package/dist/_dts/theme-core/src/styles/buttons.d.ts +0 -27
- package/dist/_dts/theme-core/src/styles/buttonsLibrary.d.ts +0 -2
- package/dist/_dts/theme-core/src/styles/glow.d.ts +0 -3
- package/dist/client/colorStyles-gcTh5yZT.mjs +0 -89
|
@@ -12416,6 +12416,8 @@ export type Database = {
|
|
|
12416
12416
|
order_payment_receipts: {
|
|
12417
12417
|
Row: {
|
|
12418
12418
|
amount_cents: number;
|
|
12419
|
+
application_state: string;
|
|
12420
|
+
applied_cents: number;
|
|
12419
12421
|
created_at: string;
|
|
12420
12422
|
currency: string;
|
|
12421
12423
|
customer_id: string;
|
|
@@ -12440,6 +12442,8 @@ export type Database = {
|
|
|
12440
12442
|
};
|
|
12441
12443
|
Insert: {
|
|
12442
12444
|
amount_cents: number;
|
|
12445
|
+
application_state?: string;
|
|
12446
|
+
applied_cents?: number;
|
|
12443
12447
|
created_at?: string;
|
|
12444
12448
|
currency: string;
|
|
12445
12449
|
customer_id: string;
|
|
@@ -12464,6 +12468,8 @@ export type Database = {
|
|
|
12464
12468
|
};
|
|
12465
12469
|
Update: {
|
|
12466
12470
|
amount_cents?: number;
|
|
12471
|
+
application_state?: string;
|
|
12472
|
+
applied_cents?: number;
|
|
12467
12473
|
created_at?: string;
|
|
12468
12474
|
currency?: string;
|
|
12469
12475
|
customer_id?: string;
|
|
@@ -12535,6 +12541,7 @@ export type Database = {
|
|
|
12535
12541
|
Row: {
|
|
12536
12542
|
amount_refunded_cents: number;
|
|
12537
12543
|
amount_requested_cents: number;
|
|
12544
|
+
cash_conversion_reserved_cents: number;
|
|
12538
12545
|
created_at: string;
|
|
12539
12546
|
currency: string;
|
|
12540
12547
|
entitlement_action_status: string;
|
|
@@ -12549,9 +12556,11 @@ export type Database = {
|
|
|
12549
12556
|
order_id: string;
|
|
12550
12557
|
payment_last4: string | null;
|
|
12551
12558
|
payment_receipt_id: string | null;
|
|
12559
|
+
projection_settled_at: string | null;
|
|
12552
12560
|
reason: string | null;
|
|
12553
12561
|
refund_mode: string;
|
|
12554
12562
|
refund_rail: string | null;
|
|
12563
|
+
settled_at: string | null;
|
|
12555
12564
|
site_id: string;
|
|
12556
12565
|
source_record_id: string | null;
|
|
12557
12566
|
source_type: string | null;
|
|
@@ -12564,6 +12573,7 @@ export type Database = {
|
|
|
12564
12573
|
Insert: {
|
|
12565
12574
|
amount_refunded_cents: number;
|
|
12566
12575
|
amount_requested_cents: number;
|
|
12576
|
+
cash_conversion_reserved_cents?: number;
|
|
12567
12577
|
created_at?: string;
|
|
12568
12578
|
currency: string;
|
|
12569
12579
|
entitlement_action_status?: string;
|
|
@@ -12578,9 +12588,11 @@ export type Database = {
|
|
|
12578
12588
|
order_id: string;
|
|
12579
12589
|
payment_last4?: string | null;
|
|
12580
12590
|
payment_receipt_id?: string | null;
|
|
12591
|
+
projection_settled_at?: string | null;
|
|
12581
12592
|
reason?: string | null;
|
|
12582
12593
|
refund_mode?: string;
|
|
12583
12594
|
refund_rail?: string | null;
|
|
12595
|
+
settled_at?: string | null;
|
|
12584
12596
|
site_id: string;
|
|
12585
12597
|
source_record_id?: string | null;
|
|
12586
12598
|
source_type?: string | null;
|
|
@@ -12593,6 +12605,7 @@ export type Database = {
|
|
|
12593
12605
|
Update: {
|
|
12594
12606
|
amount_refunded_cents?: number;
|
|
12595
12607
|
amount_requested_cents?: number;
|
|
12608
|
+
cash_conversion_reserved_cents?: number;
|
|
12596
12609
|
created_at?: string;
|
|
12597
12610
|
currency?: string;
|
|
12598
12611
|
entitlement_action_status?: string;
|
|
@@ -12607,9 +12620,11 @@ export type Database = {
|
|
|
12607
12620
|
order_id?: string;
|
|
12608
12621
|
payment_last4?: string | null;
|
|
12609
12622
|
payment_receipt_id?: string | null;
|
|
12623
|
+
projection_settled_at?: string | null;
|
|
12610
12624
|
reason?: string | null;
|
|
12611
12625
|
refund_mode?: string;
|
|
12612
12626
|
refund_rail?: string | null;
|
|
12627
|
+
settled_at?: string | null;
|
|
12613
12628
|
site_id?: string;
|
|
12614
12629
|
source_record_id?: string | null;
|
|
12615
12630
|
source_type?: string | null;
|
|
@@ -14148,6 +14163,7 @@ export type Database = {
|
|
|
14148
14163
|
http_status: number;
|
|
14149
14164
|
id: string;
|
|
14150
14165
|
is_active: boolean;
|
|
14166
|
+
managed_route_id: string | null;
|
|
14151
14167
|
site_id: string;
|
|
14152
14168
|
to_path: string;
|
|
14153
14169
|
updated_at: string;
|
|
@@ -14159,6 +14175,7 @@ export type Database = {
|
|
|
14159
14175
|
http_status?: number;
|
|
14160
14176
|
id?: string;
|
|
14161
14177
|
is_active?: boolean;
|
|
14178
|
+
managed_route_id?: string | null;
|
|
14162
14179
|
site_id: string;
|
|
14163
14180
|
to_path: string;
|
|
14164
14181
|
updated_at?: string;
|
|
@@ -14170,11 +14187,19 @@ export type Database = {
|
|
|
14170
14187
|
http_status?: number;
|
|
14171
14188
|
id?: string;
|
|
14172
14189
|
is_active?: boolean;
|
|
14190
|
+
managed_route_id?: string | null;
|
|
14173
14191
|
site_id?: string;
|
|
14174
14192
|
to_path?: string;
|
|
14175
14193
|
updated_at?: string;
|
|
14176
14194
|
};
|
|
14177
14195
|
Relationships: [
|
|
14196
|
+
{
|
|
14197
|
+
foreignKeyName: "redirect_rules_managed_route_id_fkey";
|
|
14198
|
+
columns: ["managed_route_id"];
|
|
14199
|
+
isOneToOne: false;
|
|
14200
|
+
referencedRelation: "site_routes";
|
|
14201
|
+
referencedColumns: ["id"];
|
|
14202
|
+
},
|
|
14178
14203
|
{
|
|
14179
14204
|
foreignKeyName: "redirect_rules_site_id_fkey";
|
|
14180
14205
|
columns: ["site_id"];
|
|
@@ -17708,6 +17733,18 @@ export type Database = {
|
|
|
17708
17733
|
};
|
|
17709
17734
|
Returns: number;
|
|
17710
17735
|
};
|
|
17736
|
+
apply_canonical_order_refund_projection: {
|
|
17737
|
+
Args: {
|
|
17738
|
+
p_expected_order_refunded_cents: number;
|
|
17739
|
+
p_line_updates: Json;
|
|
17740
|
+
p_next_order_refunded_cents: number;
|
|
17741
|
+
p_next_order_status: string;
|
|
17742
|
+
p_order_id: string;
|
|
17743
|
+
p_refund_id: string;
|
|
17744
|
+
p_site_id: string;
|
|
17745
|
+
};
|
|
17746
|
+
Returns: string;
|
|
17747
|
+
};
|
|
17711
17748
|
apply_customer_profile_rectification: {
|
|
17712
17749
|
Args: {
|
|
17713
17750
|
audit_actor_user_id: string;
|
|
@@ -18817,6 +18854,14 @@ export type Database = {
|
|
|
18817
18854
|
used_capacity: number;
|
|
18818
18855
|
}[];
|
|
18819
18856
|
};
|
|
18857
|
+
delete_event_occurrence_if_unregistered: {
|
|
18858
|
+
Args: {
|
|
18859
|
+
p_occurrence_id: string;
|
|
18860
|
+
p_series_id: string;
|
|
18861
|
+
p_site_id: string;
|
|
18862
|
+
};
|
|
18863
|
+
Returns: string;
|
|
18864
|
+
};
|
|
18820
18865
|
discard_page_surface_draft_content_guarded: {
|
|
18821
18866
|
Args: {
|
|
18822
18867
|
p_expected_draft_updated_at: string;
|
|
@@ -19510,24 +19555,6 @@ export type Database = {
|
|
|
19510
19555
|
order_id: string;
|
|
19511
19556
|
}[];
|
|
19512
19557
|
};
|
|
19513
|
-
postgres_fdw_disconnect: {
|
|
19514
|
-
Args: {
|
|
19515
|
-
"": string;
|
|
19516
|
-
};
|
|
19517
|
-
Returns: boolean;
|
|
19518
|
-
};
|
|
19519
|
-
postgres_fdw_disconnect_all: {
|
|
19520
|
-
Args: never;
|
|
19521
|
-
Returns: boolean;
|
|
19522
|
-
};
|
|
19523
|
-
postgres_fdw_get_connections: {
|
|
19524
|
-
Args: never;
|
|
19525
|
-
Returns: Record<string, unknown>[];
|
|
19526
|
-
};
|
|
19527
|
-
postgres_fdw_handler: {
|
|
19528
|
-
Args: never;
|
|
19529
|
-
Returns: unknown;
|
|
19530
|
-
};
|
|
19531
19558
|
prepare_dated_offering_whole_series_checkout_v1_atomic: {
|
|
19532
19559
|
Args: {
|
|
19533
19560
|
p_allow_waitlist_conversion?: boolean;
|
|
@@ -19700,6 +19727,29 @@ export type Database = {
|
|
|
19700
19727
|
stale_until: string;
|
|
19701
19728
|
}[];
|
|
19702
19729
|
};
|
|
19730
|
+
record_unapplied_order_payment_receipt: {
|
|
19731
|
+
Args: {
|
|
19732
|
+
p_allocations: Json;
|
|
19733
|
+
p_amount_cents: number;
|
|
19734
|
+
p_currency: string;
|
|
19735
|
+
p_flexible_balance_contract_id: string;
|
|
19736
|
+
p_order_id: string;
|
|
19737
|
+
p_paid_at: string;
|
|
19738
|
+
p_payment_plan_id: string;
|
|
19739
|
+
p_payment_plan_instalment_id: string;
|
|
19740
|
+
p_purpose: string;
|
|
19741
|
+
p_rail: string;
|
|
19742
|
+
p_site_id: string;
|
|
19743
|
+
p_stripe_account_id: string;
|
|
19744
|
+
p_stripe_checkout_session_id: string;
|
|
19745
|
+
p_stripe_invoice_id: string;
|
|
19746
|
+
p_stripe_payment_intent_id: string;
|
|
19747
|
+
};
|
|
19748
|
+
Returns: {
|
|
19749
|
+
outcome: string;
|
|
19750
|
+
receipt_id: string;
|
|
19751
|
+
}[];
|
|
19752
|
+
};
|
|
19703
19753
|
redeem_pass_credits: {
|
|
19704
19754
|
Args: {
|
|
19705
19755
|
credits_amount?: number;
|
|
@@ -19855,6 +19905,12 @@ export type Database = {
|
|
|
19855
19905
|
reservation_id: string;
|
|
19856
19906
|
}[];
|
|
19857
19907
|
};
|
|
19908
|
+
reserve_order_refund_capacity: {
|
|
19909
|
+
Args: {
|
|
19910
|
+
p_refund: Json;
|
|
19911
|
+
};
|
|
19912
|
+
Returns: Json;
|
|
19913
|
+
};
|
|
19858
19914
|
resolve_dated_offering_engine_readiness: {
|
|
19859
19915
|
Args: {
|
|
19860
19916
|
p_site_id: string;
|
|
@@ -20652,6 +20708,7 @@ export type Database = {
|
|
|
20652
20708
|
created_at: string | null;
|
|
20653
20709
|
id: string;
|
|
20654
20710
|
last_accessed_at: string | null;
|
|
20711
|
+
level: number | null;
|
|
20655
20712
|
metadata: Json | null;
|
|
20656
20713
|
name: string | null;
|
|
20657
20714
|
owner: string | null;
|
|
@@ -20666,6 +20723,7 @@ export type Database = {
|
|
|
20666
20723
|
created_at?: string | null;
|
|
20667
20724
|
id?: string;
|
|
20668
20725
|
last_accessed_at?: string | null;
|
|
20726
|
+
level?: number | null;
|
|
20669
20727
|
metadata?: Json | null;
|
|
20670
20728
|
name?: string | null;
|
|
20671
20729
|
owner?: string | null;
|
|
@@ -20680,6 +20738,7 @@ export type Database = {
|
|
|
20680
20738
|
created_at?: string | null;
|
|
20681
20739
|
id?: string;
|
|
20682
20740
|
last_accessed_at?: string | null;
|
|
20741
|
+
level?: number | null;
|
|
20683
20742
|
metadata?: Json | null;
|
|
20684
20743
|
name?: string | null;
|
|
20685
20744
|
owner?: string | null;
|
|
@@ -20699,6 +20758,38 @@ export type Database = {
|
|
|
20699
20758
|
}
|
|
20700
20759
|
];
|
|
20701
20760
|
};
|
|
20761
|
+
prefixes: {
|
|
20762
|
+
Row: {
|
|
20763
|
+
bucket_id: string;
|
|
20764
|
+
created_at: string | null;
|
|
20765
|
+
level: number;
|
|
20766
|
+
name: string;
|
|
20767
|
+
updated_at: string | null;
|
|
20768
|
+
};
|
|
20769
|
+
Insert: {
|
|
20770
|
+
bucket_id: string;
|
|
20771
|
+
created_at?: string | null;
|
|
20772
|
+
level?: number;
|
|
20773
|
+
name: string;
|
|
20774
|
+
updated_at?: string | null;
|
|
20775
|
+
};
|
|
20776
|
+
Update: {
|
|
20777
|
+
bucket_id?: string;
|
|
20778
|
+
created_at?: string | null;
|
|
20779
|
+
level?: number;
|
|
20780
|
+
name?: string;
|
|
20781
|
+
updated_at?: string | null;
|
|
20782
|
+
};
|
|
20783
|
+
Relationships: [
|
|
20784
|
+
{
|
|
20785
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
20786
|
+
columns: ["bucket_id"];
|
|
20787
|
+
isOneToOne: false;
|
|
20788
|
+
referencedRelation: "buckets";
|
|
20789
|
+
referencedColumns: ["id"];
|
|
20790
|
+
}
|
|
20791
|
+
];
|
|
20792
|
+
};
|
|
20702
20793
|
s3_multipart_uploads: {
|
|
20703
20794
|
Row: {
|
|
20704
20795
|
bucket_id: string;
|
|
@@ -20706,7 +20797,6 @@ export type Database = {
|
|
|
20706
20797
|
id: string;
|
|
20707
20798
|
in_progress_size: number;
|
|
20708
20799
|
key: string;
|
|
20709
|
-
metadata: Json | null;
|
|
20710
20800
|
owner_id: string | null;
|
|
20711
20801
|
upload_signature: string;
|
|
20712
20802
|
user_metadata: Json | null;
|
|
@@ -20718,7 +20808,6 @@ export type Database = {
|
|
|
20718
20808
|
id: string;
|
|
20719
20809
|
in_progress_size?: number;
|
|
20720
20810
|
key: string;
|
|
20721
|
-
metadata?: Json | null;
|
|
20722
20811
|
owner_id?: string | null;
|
|
20723
20812
|
upload_signature: string;
|
|
20724
20813
|
user_metadata?: Json | null;
|
|
@@ -20730,7 +20819,6 @@ export type Database = {
|
|
|
20730
20819
|
id?: string;
|
|
20731
20820
|
in_progress_size?: number;
|
|
20732
20821
|
key?: string;
|
|
20733
|
-
metadata?: Json | null;
|
|
20734
20822
|
owner_id?: string | null;
|
|
20735
20823
|
upload_signature?: string;
|
|
20736
20824
|
user_metadata?: Json | null;
|
|
@@ -20849,17 +20937,12 @@ export type Database = {
|
|
|
20849
20937
|
[_ in never]: never;
|
|
20850
20938
|
};
|
|
20851
20939
|
Functions: {
|
|
20852
|
-
|
|
20853
|
-
Args: {
|
|
20854
|
-
expected_operations: string[];
|
|
20855
|
-
};
|
|
20856
|
-
Returns: boolean;
|
|
20857
|
-
};
|
|
20858
|
-
allow_only_operation: {
|
|
20940
|
+
add_prefixes: {
|
|
20859
20941
|
Args: {
|
|
20860
|
-
|
|
20942
|
+
_bucket_id: string;
|
|
20943
|
+
_name: string;
|
|
20861
20944
|
};
|
|
20862
|
-
Returns:
|
|
20945
|
+
Returns: undefined;
|
|
20863
20946
|
};
|
|
20864
20947
|
can_insert_object: {
|
|
20865
20948
|
Args: {
|
|
@@ -20870,6 +20953,20 @@ export type Database = {
|
|
|
20870
20953
|
};
|
|
20871
20954
|
Returns: undefined;
|
|
20872
20955
|
};
|
|
20956
|
+
delete_leaf_prefixes: {
|
|
20957
|
+
Args: {
|
|
20958
|
+
bucket_ids: string[];
|
|
20959
|
+
names: string[];
|
|
20960
|
+
};
|
|
20961
|
+
Returns: undefined;
|
|
20962
|
+
};
|
|
20963
|
+
delete_prefix: {
|
|
20964
|
+
Args: {
|
|
20965
|
+
_bucket_id: string;
|
|
20966
|
+
_name: string;
|
|
20967
|
+
};
|
|
20968
|
+
Returns: boolean;
|
|
20969
|
+
};
|
|
20873
20970
|
extension: {
|
|
20874
20971
|
Args: {
|
|
20875
20972
|
name: string;
|
|
@@ -20888,14 +20985,24 @@ export type Database = {
|
|
|
20888
20985
|
};
|
|
20889
20986
|
Returns: string[];
|
|
20890
20987
|
};
|
|
20891
|
-
|
|
20988
|
+
get_level: {
|
|
20892
20989
|
Args: {
|
|
20893
|
-
|
|
20894
|
-
|
|
20895
|
-
|
|
20990
|
+
name: string;
|
|
20991
|
+
};
|
|
20992
|
+
Returns: number;
|
|
20993
|
+
};
|
|
20994
|
+
get_prefix: {
|
|
20995
|
+
Args: {
|
|
20996
|
+
name: string;
|
|
20896
20997
|
};
|
|
20897
20998
|
Returns: string;
|
|
20898
20999
|
};
|
|
21000
|
+
get_prefixes: {
|
|
21001
|
+
Args: {
|
|
21002
|
+
name: string;
|
|
21003
|
+
};
|
|
21004
|
+
Returns: string[];
|
|
21005
|
+
};
|
|
20899
21006
|
get_size_by_bucket: {
|
|
20900
21007
|
Args: never;
|
|
20901
21008
|
Returns: {
|
|
@@ -20920,23 +21027,27 @@ export type Database = {
|
|
|
20920
21027
|
};
|
|
20921
21028
|
list_objects_with_delimiter: {
|
|
20922
21029
|
Args: {
|
|
20923
|
-
|
|
21030
|
+
bucket_id: string;
|
|
20924
21031
|
delimiter_param: string;
|
|
20925
21032
|
max_keys?: number;
|
|
20926
21033
|
next_token?: string;
|
|
20927
21034
|
prefix_param: string;
|
|
20928
|
-
sort_order?: string;
|
|
20929
21035
|
start_after?: string;
|
|
20930
21036
|
};
|
|
20931
21037
|
Returns: {
|
|
20932
|
-
created_at: string;
|
|
20933
21038
|
id: string;
|
|
20934
|
-
last_accessed_at: string;
|
|
20935
21039
|
metadata: Json;
|
|
20936
21040
|
name: string;
|
|
20937
21041
|
updated_at: string;
|
|
20938
21042
|
}[];
|
|
20939
21043
|
};
|
|
21044
|
+
lock_top_prefixes: {
|
|
21045
|
+
Args: {
|
|
21046
|
+
bucket_ids: string[];
|
|
21047
|
+
names: string[];
|
|
21048
|
+
};
|
|
21049
|
+
Returns: undefined;
|
|
21050
|
+
};
|
|
20940
21051
|
operation: {
|
|
20941
21052
|
Args: never;
|
|
20942
21053
|
Returns: string;
|
|
@@ -20961,21 +21072,40 @@ export type Database = {
|
|
|
20961
21072
|
updated_at: string;
|
|
20962
21073
|
}[];
|
|
20963
21074
|
};
|
|
20964
|
-
|
|
21075
|
+
search_legacy_v1: {
|
|
20965
21076
|
Args: {
|
|
20966
|
-
|
|
20967
|
-
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
|
|
21077
|
+
bucketname: string;
|
|
21078
|
+
levels?: number;
|
|
21079
|
+
limits?: number;
|
|
21080
|
+
offsets?: number;
|
|
21081
|
+
prefix: string;
|
|
21082
|
+
search?: string;
|
|
21083
|
+
sortcolumn?: string;
|
|
21084
|
+
sortorder?: string;
|
|
21085
|
+
};
|
|
21086
|
+
Returns: {
|
|
21087
|
+
created_at: string;
|
|
21088
|
+
id: string;
|
|
21089
|
+
last_accessed_at: string;
|
|
21090
|
+
metadata: Json;
|
|
21091
|
+
name: string;
|
|
21092
|
+
updated_at: string;
|
|
21093
|
+
}[];
|
|
21094
|
+
};
|
|
21095
|
+
search_v1_optimised: {
|
|
21096
|
+
Args: {
|
|
21097
|
+
bucketname: string;
|
|
21098
|
+
levels?: number;
|
|
21099
|
+
limits?: number;
|
|
21100
|
+
offsets?: number;
|
|
21101
|
+
prefix: string;
|
|
21102
|
+
search?: string;
|
|
21103
|
+
sortcolumn?: string;
|
|
21104
|
+
sortorder?: string;
|
|
20974
21105
|
};
|
|
20975
21106
|
Returns: {
|
|
20976
21107
|
created_at: string;
|
|
20977
21108
|
id: string;
|
|
20978
|
-
key: string;
|
|
20979
21109
|
last_accessed_at: string;
|
|
20980
21110
|
metadata: Json;
|
|
20981
21111
|
name: string;
|
|
@@ -22,7 +22,7 @@ export type { RichTextRoutableItem } from './primitives/rich-text/toolbar/linkPo
|
|
|
22
22
|
export { useRichTextEditor } from './primitives/rich-text/useRichTextEditor';
|
|
23
23
|
export { buildRichTextImageAttrs, getRichTextImagePositionFromTarget, getSelectedRichTextImagePosition, insertOrReplaceRichTextImage, } from './primitives/rich-text/imageActions';
|
|
24
24
|
export type { PickedRichTextImage } from './primitives/rich-text/imageActions';
|
|
25
|
-
export { EMPTY_DOC, isDocEmpty,
|
|
25
|
+
export { EMPTY_DOC, isDocEmpty, parseRichTextDoc, } from './primitives/rich-text/utils';
|
|
26
26
|
export { formatUnsupportedRichTextSummary, hasUnsupportedRichTextContent, sanitizeRichTextContentForSchema, } from './primitives/rich-text/sanitize';
|
|
27
27
|
export type { RichTextContentWarnings } from './primitives/rich-text/sanitize';
|
|
28
28
|
export { EditorContent } from '@tiptap/react';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type RichTextDoc } from '../../../../blocks/src/system/manifest/richTextSchema';
|
|
2
|
+
export type { RichTextDoc } from '../../../../blocks/src/system/manifest/richTextSchema';
|
|
1
3
|
export interface TextNode {
|
|
2
4
|
type: 'text';
|
|
3
5
|
text: string;
|
|
@@ -11,10 +13,6 @@ export interface ContentNode {
|
|
|
11
13
|
content?: Array<TextNode | ContentNode>;
|
|
12
14
|
[key: string]: unknown;
|
|
13
15
|
}
|
|
14
|
-
export interface RichTextDoc {
|
|
15
|
-
type: 'doc';
|
|
16
|
-
content: ContentNode[];
|
|
17
|
-
}
|
|
18
16
|
export declare const EMPTY_DOC: RichTextDoc;
|
|
19
17
|
export declare function isDocEmpty(doc: unknown): boolean;
|
|
20
|
-
export declare function
|
|
18
|
+
export declare function parseRichTextDoc(doc: unknown): RichTextDoc;
|
|
@@ -44,7 +44,7 @@ export type BlockEditorProps = {
|
|
|
44
44
|
siteId: string;
|
|
45
45
|
dashboardBaseUrl?: string | null;
|
|
46
46
|
owner: BlockEditorOwner;
|
|
47
|
-
blocks: BlockItem[];
|
|
47
|
+
blocks: readonly BlockItem[];
|
|
48
48
|
recoveryConflictBlockIds?: readonly string[];
|
|
49
49
|
recoveryConflictReviewRequestId?: number | null;
|
|
50
50
|
uiStore: StoreApi<UiState>;
|
|
@@ -23,7 +23,8 @@ type BlockCardStore = UiStore<Pick<UiSlice, 'activeBlockId' | 'setActiveBlockId'
|
|
|
23
23
|
drafts: Pick<DraftsSlice, 'getBlockSnapshot' | 'getCurrentValues' | 'getAtPath' | 'setAtPath' | 'edit' | 'initNewBlock' | 'updateBlockBaseline' | 'clearError'>;
|
|
24
24
|
arrayKeys: ArrayKeysManager;
|
|
25
25
|
} & GeneratedIconApplyState>;
|
|
26
|
-
export declare function BlockCard({ siteId, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
|
|
26
|
+
export declare function BlockCard({ interactionReady, siteId, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
|
|
27
|
+
interactionReady: boolean;
|
|
27
28
|
siteId: string;
|
|
28
29
|
block: BlockItem;
|
|
29
30
|
manifest: SystemBlockDefinition['manifest'];
|
|
@@ -12,7 +12,8 @@ type BlockCardHeaderStore = UiStore<GeneratedIconApplyState & {
|
|
|
12
12
|
drafts: Pick<DraftsSlice, 'getBlockSnapshot' | 'getCurrentValues' | 'initNewBlock' | 'updateBlockBaseline' | 'clearError' | 'setAtPath' | 'getAtPath'>;
|
|
13
13
|
arrayKeys: ArrayKeysManager;
|
|
14
14
|
}>;
|
|
15
|
-
export declare function BlockCardHeader({ block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onToggleCollapsed, contentId, uiStore, widgetOverrides, theme, hideThemeV2RawStyleFields, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
|
|
15
|
+
export declare function BlockCardHeader({ interactionReady, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onToggleCollapsed, contentId, uiStore, widgetOverrides, theme, hideThemeV2RawStyleFields, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
|
|
16
|
+
interactionReady: boolean;
|
|
16
17
|
block: BlockItem;
|
|
17
18
|
manifest: SystemBlockDefinition['manifest'];
|
|
18
19
|
isFirst: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type EditorBlockBaselineInput, type EditorBlockId, type EditorDraftBlockBaselineUpdateMetaInput, type EditorDraftBlockInitMetaInput } from '../../../core/src/index';
|
|
2
|
+
import type { BlockItem } from './types';
|
|
3
|
+
export type BlockFieldExtensions = Readonly<Record<string, {
|
|
4
|
+
fields?: ReadonlyArray<{
|
|
5
|
+
id: string;
|
|
6
|
+
defaultValue?: unknown;
|
|
7
|
+
}>;
|
|
8
|
+
}>>;
|
|
9
|
+
export type BlockDraftBaselineSeed = Readonly<{
|
|
10
|
+
blockId: EditorBlockId;
|
|
11
|
+
baseline: EditorBlockBaselineInput;
|
|
12
|
+
initMeta: EditorDraftBlockInitMetaInput;
|
|
13
|
+
refreshMeta: EditorDraftBlockBaselineUpdateMetaInput;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function buildBlockDraftBaselineSeed(block: BlockItem, index: number, blockFieldExtensions?: BlockFieldExtensions | null): BlockDraftBaselineSeed | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type EditorBlockId, type EditorBlockBaselineInput, type EditorDraftBlockBaselineUpdateMetaInput, type EditorDraftBlockInitMetaInput } from '../../../../core/src/index';
|
|
2
2
|
import type { BlockItem } from '../types';
|
|
3
|
+
import { type BlockFieldExtensions } from '../blockDraftBaselineSeed';
|
|
3
4
|
type DraftsSlice = {
|
|
4
5
|
getBlockSnapshot: (blockId: EditorBlockId) => {
|
|
5
6
|
id: EditorBlockId;
|
|
@@ -18,13 +19,8 @@ type UiStore = {
|
|
|
18
19
|
};
|
|
19
20
|
export declare function useBlockBaselineSync({ enabled, blockList, blockFieldExtensions, uiStore, }: {
|
|
20
21
|
enabled: boolean;
|
|
21
|
-
blockList: BlockItem[];
|
|
22
|
-
blockFieldExtensions?:
|
|
23
|
-
fields?: ReadonlyArray<{
|
|
24
|
-
id: string;
|
|
25
|
-
defaultValue?: unknown;
|
|
26
|
-
}>;
|
|
27
|
-
}>> | null;
|
|
22
|
+
blockList: readonly BlockItem[];
|
|
23
|
+
blockFieldExtensions?: BlockFieldExtensions | null;
|
|
28
24
|
uiStore: UiStore | null;
|
|
29
25
|
}): void;
|
|
30
26
|
export {};
|
|
@@ -9,6 +9,18 @@ type UiStore = {
|
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
export declare function buildDuplicatedBlockItem(input: Readonly<{
|
|
13
|
+
createdBlock: BlockItem;
|
|
14
|
+
copiedContent: Record<string, unknown> | null;
|
|
15
|
+
persistedCopy: Readonly<{
|
|
16
|
+
data: unknown;
|
|
17
|
+
optimistic_hash?: string | null;
|
|
18
|
+
}> | null;
|
|
19
|
+
orderIndex: number;
|
|
20
|
+
}>): BlockItem;
|
|
21
|
+
export declare function requirePersistedDuplicateRevision(owner: BlockEditorOwner, persistedCopy: Readonly<{
|
|
22
|
+
optimistic_hash?: string | null;
|
|
23
|
+
}>): string | null;
|
|
12
24
|
export declare function useBlockDuplication({ allowCreation, apiClient, siteId, owner, blockList, setBlockList, onBlocksChange, triggerFocus, setErrorMessage, uiStore, onStructuralRevisionChange, }: {
|
|
13
25
|
allowCreation: boolean;
|
|
14
26
|
apiClient: ApiClient;
|
|
@@ -7,6 +7,7 @@ export type BlockItem = {
|
|
|
7
7
|
draftContent?: Record<string, unknown> | null;
|
|
8
8
|
publishedContent?: Record<string, unknown> | null;
|
|
9
9
|
bindings?: Record<string, unknown> | null;
|
|
10
|
+
purpose?: string | null;
|
|
10
11
|
optimisticHash?: string | null;
|
|
11
12
|
};
|
|
12
13
|
export type DraftBlockSnapshot = EditorStructuralDraftSnapshot;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BlockItem } from './types';
|
|
2
|
-
export declare const normalizeBlockListInitial: (items: BlockItem[]) => BlockItem[];
|
|
2
|
+
export declare const normalizeBlockListInitial: (items: readonly BlockItem[]) => BlockItem[];
|
|
3
3
|
export declare const reindexBlockList: (items: BlockItem[]) => BlockItem[];
|
|
@@ -4,7 +4,8 @@ export type { BlockEditorOwner } from './block-editor/owner';
|
|
|
4
4
|
export { createCustomBlockRegistry, mergeBlockDescriptorsWithRegistry, mergeBlockDescriptors, getBlockManifestFromSdkConfig, transformSdkBlockToManifest, transformSdkBlockToDefinition, transformToBlockDescriptor, } from './block-editor/sdkBlockMerger';
|
|
5
5
|
export type { CustomBlockManifestSource, CustomBlockRegistry, CustomBlockRegistryEntry, ResolvedCustomBlockManifest, SdkCustomBlock, SdkConfigForBlockPicker, } from './block-editor/sdkBlockMerger';
|
|
6
6
|
export type { BlockEditorHandle, BlockFocusRequest, BlockFocusTarget, BlockItem, } from './block-editor/types';
|
|
7
|
-
export {
|
|
7
|
+
export { buildBlockDraftBaselineSeed, type BlockDraftBaselineSeed, type BlockFieldExtensions, } from './block-editor/blockDraftBaselineSeed';
|
|
8
|
+
export { useBlockListContext, useBlockListContextOptional, BlockListProvider, } from './block-editor/BlockListContext';
|
|
8
9
|
export type { BlockListContextValue } from './block-editor/BlockListContext';
|
|
9
10
|
export { BlockThumbnail } from './block-editor/BlockThumbnail';
|
|
10
11
|
export type { BlockThumbnailProps } from './block-editor/BlockThumbnail';
|
|
@@ -13,14 +14,14 @@ export { BlockForm } from './BlockForm';
|
|
|
13
14
|
export { FormProvider } from './FormProvider';
|
|
14
15
|
export type { FormProviderProps } from './FormProvider';
|
|
15
16
|
export { buildBlockContentPayload, formatManifestIssues } from './blockPayload';
|
|
16
|
-
export type { BlockContentPayloadResult, ManifestFieldIssue, BuildBlockContentPayloadOptions } from './blockPayload';
|
|
17
|
+
export type { BlockContentPayloadResult, ManifestFieldIssue, BuildBlockContentPayloadOptions, } from './blockPayload';
|
|
17
18
|
export { deriveBlockDraftSaveability, formatUnfinishedBlocksSummary, shouldShowBlockFieldValidation, unfinishedBlockCopy, validateBlockManifestValues, } from '../../block-form/src/client/index';
|
|
18
|
-
export type { BlockDraftSaveability, BlockDraftValidationIssue } from '../../block-form/src/client/index';
|
|
19
|
+
export type { BlockDraftSaveability, BlockDraftValidationIssue, } from '../../block-form/src/client/index';
|
|
19
20
|
export { applyManifestIssuesToForm } from './manifestIssues';
|
|
20
21
|
export { BlockPickerDialog } from './block-editor/BlockPickerDialog';
|
|
21
22
|
export { FileField, MediaField } from './media/MediaField';
|
|
22
23
|
export { hideThemeV2RawStyleFields, prepareBlockEditorManifest, } from './block-editor/preparedManifest';
|
|
23
|
-
export { stripTopLevelRoutingUi
|
|
24
|
+
export { stripTopLevelRoutingUi } from './block-editor/settingsIntent';
|
|
24
25
|
export * from './widgets/index';
|
|
25
|
-
export { createBlockFormLogger, setBlockFormLoggerFactory, setBlockFormAppLogger } from './block-form/debug';
|
|
26
|
+
export { createBlockFormLogger, setBlockFormLoggerFactory, setBlockFormAppLogger, } from './block-form/debug';
|
|
26
27
|
export type { BlockFormLogger } from './block-form/debug';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Content } from '@tiptap/react';
|
|
2
1
|
import type { FieldWidgetProps } from '../../../../block-form/src/client/index';
|
|
3
2
|
import type { RichTextFieldConfig } from '../../../../block-form/src/client/index';
|
|
4
|
-
type
|
|
3
|
+
import { type RichTextDoc } from '../../../../blocks/src/system/manifest/richTextSchema';
|
|
4
|
+
type RichTextValue = RichTextDoc;
|
|
5
5
|
export declare function RichTextField({ path, backend, config, }: FieldWidgetProps<RichTextValue, RichTextFieldConfig>): import("react").JSX.Element;
|
|
6
6
|
export {};
|