@riverbankcms/sdk 0.80.0 → 0.81.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-QZG37QIF.mjs → PreviewEditorSidebar-RDCMEXIJ.mjs} +763 -255
- package/dist/{PreviewEditorUI-AXIKSMZA.mjs → PreviewEditorUI-NYGQ6K7B.mjs} +170 -29
- package/dist/SdkPreviewModeRuntime-AKCSCZEC.mjs +8 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +12 -0
- package/dist/_dts/api/src/contentTypes.d.ts +6 -0
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +53 -0
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +3 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +3 -3
- package/dist/_dts/blocks/src/PageRenderer.d.ts +3 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +20 -28
- package/dist/_dts/blocks/src/index.d.ts +6 -4
- package/dist/_dts/blocks/src/primitives/content/components/Text.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +1 -0
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +135 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +5 -0
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +20 -1
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +19 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +134 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -0
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +13 -3
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/data/linkedContentEntries.d.ts +64 -0
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +2 -2
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +6 -1
- package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +0 -1
- package/dist/_dts/blocks/src/system/media/slotContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/types.d.ts +8 -1
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +44 -50
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -24
- package/dist/_dts/blocks/src/system/runtime/headingDecoration.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +45 -14
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +2 -9
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +21 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +21 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +17 -28
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +50 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +29 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +7 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/sectionForegroundStyles.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +4 -2
- package/dist/_dts/calendar/src/grid.d.ts +27 -0
- package/dist/_dts/calendar/src/index.d.ts +2 -2
- package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +3 -1
- package/dist/_dts/content-editor/src/editorTransactionState.d.ts +1 -0
- package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +26 -0
- package/dist/_dts/content-editor/src/hooks/publishability.d.ts +1 -0
- package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +23 -0
- package/dist/_dts/content-editor/src/hooks/useReactiveToolbar.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +2 -2
- package/dist/_dts/content-editor/src/index.d.ts +3 -1
- package/dist/_dts/content-editor/src/lib/json.d.ts +2 -0
- package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +8 -0
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +58 -0
- package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +93 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +60 -3
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +43 -0
- package/dist/_dts/content-model/src/metadataConfig.d.ts +87 -47
- package/dist/_dts/core/src/branded.d.ts +5 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/stable-json.d.ts +1 -0
- package/dist/_dts/editor/src/EditorProvider.d.ts +26 -0
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +26 -0
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +45 -0
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +25 -0
- package/dist/_dts/editor/src/components/EditingToggle.d.ts +9 -0
- package/dist/_dts/editor/src/hooks/useEditableElement.d.ts +18 -0
- package/dist/_dts/editor/src/index.d.ts +29 -0
- package/dist/_dts/editor/src/inline/InlineTextEditor.d.ts +1 -0
- package/dist/_dts/editor/src/lib/utils.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/EditorPrimitivesProvider.d.ts +20 -0
- package/dist/_dts/editor/src/primitives/InlineFieldContext.d.ts +11 -0
- package/dist/_dts/editor/src/primitives/SaveContext.d.ts +12 -0
- package/dist/_dts/editor/src/primitives/helpers.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +26 -0
- package/dist/_dts/editor/src/primitives/rich-text/RichTextToolbar.d.ts +16 -0
- package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +23 -0
- package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextImage.d.ts +2 -0
- package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextLink.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/rich-text/imageActions.d.ts +22 -0
- package/dist/_dts/editor/src/primitives/rich-text/sanitize.d.ts +23 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/BlockTypeDropdown.d.ts +6 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/LinkPopover.d.ts +10 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/ToolbarIconButton.d.ts +11 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/linkPopoverUtils.d.ts +58 -0
- package/dist/_dts/editor/src/primitives/rich-text/useRichTextEditor.d.ts +19 -0
- package/dist/_dts/editor/src/primitives/rich-text/utils.d.ts +20 -0
- package/dist/_dts/editor/src/utils/optimisticTokens.d.ts +27 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/actionPresentation.d.ts +15 -0
- package/dist/_dts/editor-blocks/src/block-editor/blockHeaderActionPlan.d.ts +49 -0
- package/dist/_dts/editor-blocks/src/widgets/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/useImagePicker.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionWidgetProvider.d.ts +14 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/index.d.ts +6 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +51 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +20 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +5 -0
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/media-core/src/renderableMediaAsset.d.ts +18 -0
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +4 -1
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +2 -1
- package/dist/_dts/media-editor/src/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +5 -1
- package/dist/_dts/preview-next/src/client/blocks/blockCustomizePopoverRows.d.ts +25 -0
- 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 +4 -30
- package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +11 -0
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +3 -9
- package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/index.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/LinkedEntryEditEventBridge.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewDesignHistoryOrderContext.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewOpenEditorButton.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +19 -19
- package/dist/_dts/preview-next/src/client/preview/PreviewSidebarSection.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +47 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +14 -1
- package/dist/_dts/preview-next/src/client/preview/linkedEntryEditEvents.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/previewChromePlacement.d.ts +46 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeControls.d.ts +68 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +11 -9
- package/dist/_dts/preview-next/src/client/preview/previewDesignHistoryOrder.d.ts +18 -0
- package/dist/_dts/preview-next/src/client/preview/previewUndoDomains.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +41 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +101 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +29 -0
- package/dist/_dts/preview-next/src/client/preview/siteStyleHistoryState.d.ts +55 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +3 -2
- package/dist/_dts/preview-next/src/constants.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -3
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +1 -0
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +28 -2
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +10 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +42 -0
- package/dist/_dts/sdk/src/rendering/mediaAssets.d.ts +4 -0
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/constants.d.ts +26 -1
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/personalities/joy-stamp.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +9 -0
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +44 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/interactive/types.d.ts +10 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +27 -6
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +15 -0
- package/dist/_dts/theme-core/src/palette/variants/warm-dark.d.ts +27 -0
- package/dist/_dts/theme-core/src/schema.d.ts +40 -3
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +4 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +87 -31
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +6 -2
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +87 -31
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +30 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +18 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +6 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -23
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +276 -4
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +33 -3
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +508 -0
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +10 -10
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +24 -6
- package/dist/_dts/theme-core/src/site-styles/typographyPresets.d.ts +16 -1
- package/dist/{chunk-7PCYG6YV.mjs → chunk-3PTVPAT4.mjs} +1863 -1099
- package/dist/{chunk-5NZGBSJF.mjs → chunk-3QWQ2MUQ.mjs} +469 -1000
- package/dist/{chunk-HTB4BMKD.mjs → chunk-3VT7LZY2.mjs} +321 -113
- package/dist/{chunk-MPBNEVPB.mjs → chunk-4T5JIPWY.mjs} +1 -1
- package/dist/{chunk-BBLZSQEY.mjs → chunk-E3NZYEKF.mjs} +1 -7
- package/dist/{chunk-GYXKAUFV.mjs → chunk-WUHKQBB6.mjs} +9509 -2658
- package/dist/cli/index.mjs +1347 -324
- package/dist/client/{accordion-QFZMNB7O.mjs → accordion-SFIIZWNH.mjs} +2 -2
- package/dist/client/{bookingForm-NCIXFWIG.mjs → bookingForm-CFKZVWGA.mjs} +5 -5
- package/dist/client/bookings.mjs +281 -19
- package/dist/client/{carousel-EO4BJMWD.mjs → carousel-ELXWSBLA.mjs} +3 -3
- package/dist/client/{cart-FTYCLYUW.mjs → cart-6SSCPYY5.mjs} +6 -6
- package/dist/client/{checkout-NFGLVCOX.mjs → checkout-UFQ34HPV.mjs} +6 -6
- package/dist/client/{chunk-6GVVWSPU.mjs → chunk-76JUETXQ.mjs} +139 -186
- package/dist/client/{chunk-AUJ5DBZJ.mjs → chunk-7BXX7WXH.mjs} +112 -28
- package/dist/client/{chunk-IWFZSQNZ.mjs → chunk-G56BSZAM.mjs} +2 -2
- package/dist/client/{chunk-VDS5YFLX.mjs → chunk-IUEDYLFJ.mjs} +1 -1
- package/dist/client/{chunk-PYRBIURC.mjs → chunk-NP47RHIX.mjs} +5 -5
- package/dist/client/{chunk-PUOELU4O.mjs → chunk-NX6X3GRF.mjs} +330 -80
- package/dist/client/{chunk-Y37KDO7P.mjs → chunk-PA2LJH2M.mjs} +2 -2
- package/dist/client/{chunk-CE7IBGVW.mjs → chunk-RMWMT3ZD.mjs} +1 -1
- package/dist/client/{chunk-4W66ALYT.mjs → chunk-TCJS3NY5.mjs} +1 -1
- package/dist/client/{chunk-T6UIP6UZ.mjs → chunk-V6XI4M2Q.mjs} +1 -1
- package/dist/client/client.mjs +5924 -3138
- package/dist/client/{courseRegistration-2EORROPS.mjs → courseRegistration-HJIISAAG.mjs} +5 -5
- package/dist/client/{eventCalendar-WZI4VL6N.mjs → eventCalendar-F6YVUCZR.mjs} +7 -7
- package/dist/client/{eventCombined-QCB2TCNL.mjs → eventCombined-B5DSTIOK.mjs} +7 -7
- package/dist/client/{eventDetails-TFTATAPH.mjs → eventDetails-SEJDDHQC.mjs} +7 -7
- package/dist/client/{eventListing-A2CQEHEQ.mjs → eventListing-TPMWIIBO.mjs} +7 -7
- package/dist/client/{eventRegistration-OELPVLUY.mjs → eventRegistration-QU6W2PV6.mjs} +7 -7
- package/dist/client/{form-NTIFD6WQ.mjs → form-LVTYNTDE.mjs} +2 -2
- package/dist/client/{headerSection-7TBNKCLA.mjs → headerSection-SO3MFC4U.mjs} +54 -13
- package/dist/client/hooks.mjs +2266 -1179
- package/dist/client/{locationMap-LRLB5A3H.mjs → locationMap-5E5FLAKO.mjs} +2 -2
- package/dist/client/{newsletterForm-XI52RZSN.mjs → newsletterForm-GN32JEBQ.mjs} +2 -2
- package/dist/client/{productDetail-GSNKBFLY.mjs → productDetail-Q346KSVR.mjs} +6 -6
- package/dist/client/{productList-BGCGT4KZ.mjs → productList-DTDMQYGZ.mjs} +6 -6
- package/dist/client/rendering/client.mjs +4618 -3318
- package/dist/client/rendering/islands.mjs +32 -20
- package/dist/client/rendering.mjs +4898 -2108
- package/dist/client/{shop-RQHUCLNY.mjs → shop-OFUW7KPN.mjs} +6 -6
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/constants.mjs +0 -2
- package/dist/preview-next/index.mjs +0 -2
- package/dist/{sdk-runtime-A4LHT2RS.mjs → sdk-runtime-2GIX6I7X.mjs} +6 -6
- package/dist/server/components.mjs +4377 -1852
- package/dist/server/config-validation.mjs +2283 -1303
- package/dist/server/config.mjs +2283 -1303
- package/dist/server/data.mjs +2267 -1180
- package/dist/server/index.mjs +2 -1
- package/dist/server/next.mjs +4394 -1773
- package/dist/server/page-converter.mjs +1999 -1015
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4482 -1857
- package/dist/server/rendering.mjs +4484 -1859
- package/dist/server/routing.mjs +2302 -1120
- package/dist/server/server.mjs +2284 -1197
- package/dist/server/theme-bridge.mjs +757 -85
- package/dist/server/theme.mjs +69 -4
- package/dist/styles/index.css +474 -65
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-XE5M4UKM.mjs +0 -8
- package/dist/_dts/editor-blocks/src/block-editor/actionControlMode.d.ts +0 -2
- package/dist/_dts/preview-next/src/client/preview/previewSurface.d.ts +0 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { APIEndpoints } from '../../../../api/src/index';
|
|
2
2
|
import type { PreviewCustomizeAction } from '../blocks/previewCustomizeActions';
|
|
3
3
|
import { type PreviewCustomizeHistoryEntry, type PreviewCustomizeHistoryState } from './previewCustomizeHistory';
|
|
4
|
+
import { type EditorSaveBatch, type EditorTransaction } from '../../../../content-editor/src/editorTransactionState';
|
|
4
5
|
type ApiPageDesignEditorStateResponse = NonNullable<APIEndpoints['getPageDesignEditorState']['response']>;
|
|
5
6
|
type LoadedPageDesignEditorState = Extract<ApiPageDesignEditorStateResponse, Readonly<{
|
|
6
7
|
kind: 'loaded';
|
|
@@ -45,23 +46,24 @@ export type PreviewCustomizeMutationState = Readonly<{
|
|
|
45
46
|
actions: readonly PreviewCustomizePendingAction[];
|
|
46
47
|
}> | Readonly<{
|
|
47
48
|
kind: 'applying';
|
|
48
|
-
|
|
49
|
-
historyEntry: PreviewCustomizeHistoryEntry | null;
|
|
49
|
+
batch: PreviewCustomizeSaveBatch;
|
|
50
50
|
queuedActions: readonly PreviewCustomizePendingAction[];
|
|
51
51
|
}> | Readonly<{
|
|
52
52
|
kind: 'undoing';
|
|
53
|
-
|
|
53
|
+
actions: readonly PreviewCustomizeAction[];
|
|
54
54
|
entry: PreviewCustomizeHistoryEntry;
|
|
55
55
|
}> | Readonly<{
|
|
56
56
|
kind: 'redoing';
|
|
57
|
-
|
|
57
|
+
actions: readonly PreviewCustomizeAction[];
|
|
58
58
|
entry: PreviewCustomizeHistoryEntry;
|
|
59
59
|
}> | Readonly<{
|
|
60
60
|
kind: 'stale';
|
|
61
61
|
message: string;
|
|
62
|
+
actions: readonly PreviewCustomizePendingAction[];
|
|
62
63
|
}> | Readonly<{
|
|
63
64
|
kind: 'failed';
|
|
64
65
|
message: string;
|
|
66
|
+
actions: readonly PreviewCustomizePendingAction[];
|
|
65
67
|
}>;
|
|
66
68
|
export type PreviewCustomizeWorkflowState = Readonly<{
|
|
67
69
|
kind: 'unsupported';
|
|
@@ -79,14 +81,14 @@ export type PreviewCustomizeWorkflowState = Readonly<{
|
|
|
79
81
|
history: PreviewCustomizeHistoryState;
|
|
80
82
|
mutation: PreviewCustomizeMutationState;
|
|
81
83
|
}>;
|
|
82
|
-
type
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}>;
|
|
84
|
+
type PreviewCustomizeTargetKey = `block:${string}:layout` | `block:${string}:look` | `block:${string}:facet:${string}` | `block:${string}:background` | `boundary:${string}:${string}`;
|
|
85
|
+
type PreviewCustomizePendingAction = EditorTransaction<PreviewCustomizeAction, PreviewCustomizeHistoryEntry, PreviewCustomizeTargetKey>;
|
|
86
|
+
type PreviewCustomizeSaveBatch = EditorSaveBatch<PreviewCustomizeAction, PreviewCustomizeHistoryEntry, PreviewCustomizeTargetKey>;
|
|
86
87
|
export type PreviewCustomizeBeginResult = Readonly<{
|
|
87
88
|
kind: 'started';
|
|
88
89
|
state: PreviewCustomizeWorkflowState;
|
|
89
|
-
|
|
90
|
+
actions: readonly PreviewCustomizeAction[];
|
|
91
|
+
recordsHistoryEntry: boolean;
|
|
90
92
|
}> | Readonly<{
|
|
91
93
|
kind: 'skipped';
|
|
92
94
|
reason: PreviewCustomizeSkipReason;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type PreviewDesignHistoryDomainId = 'site-style-design' | 'site-chrome-quick-controls' | 'theme-customize';
|
|
2
|
+
export type PreviewDesignHistoryOrderState = Readonly<{
|
|
3
|
+
past: readonly PreviewDesignHistoryDomainId[];
|
|
4
|
+
future: readonly PreviewDesignHistoryDomainId[];
|
|
5
|
+
}>;
|
|
6
|
+
export type PreviewDesignHistoryCommand = 'undo' | 'redo';
|
|
7
|
+
export type PreviewDesignHistoryDomainCapabilities = Readonly<{
|
|
8
|
+
canUndo: boolean;
|
|
9
|
+
canRedo: boolean;
|
|
10
|
+
isPending: boolean;
|
|
11
|
+
isStale: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function createPreviewDesignHistoryOrderState(): PreviewDesignHistoryOrderState;
|
|
14
|
+
export declare function recordPreviewDesignHistoryDomain(state: PreviewDesignHistoryOrderState, domainId: PreviewDesignHistoryDomainId): PreviewDesignHistoryOrderState;
|
|
15
|
+
export declare function confirmPreviewDesignHistoryUndo(state: PreviewDesignHistoryOrderState, domainId: PreviewDesignHistoryDomainId): PreviewDesignHistoryOrderState;
|
|
16
|
+
export declare function confirmPreviewDesignHistoryRedo(state: PreviewDesignHistoryOrderState, domainId: PreviewDesignHistoryDomainId): PreviewDesignHistoryOrderState;
|
|
17
|
+
export declare function selectPreviewDesignHistoryDomain(state: PreviewDesignHistoryOrderState, command: PreviewDesignHistoryCommand, capabilities: Readonly<Record<PreviewDesignHistoryDomainId, PreviewDesignHistoryDomainCapabilities>>): PreviewDesignHistoryDomainId | null;
|
|
18
|
+
export declare function previewDesignHistoryDomainForCommand(state: PreviewDesignHistoryOrderState, command: PreviewDesignHistoryCommand): PreviewDesignHistoryDomainId | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type PreviewUndoDomainId = 'content' | 'theme-customize';
|
|
1
|
+
export type PreviewUndoDomainId = 'content' | 'preview-design-history' | 'theme-customize' | 'site-style-design';
|
|
2
2
|
export type PreviewUndoDomainStatus = 'idle' | 'pending' | 'stale' | 'failed';
|
|
3
3
|
export type PreviewUndoFocusOwner = 'preview-customize' | 'content' | 'native';
|
|
4
4
|
export type PreviewUndoDomainOwnership = Readonly<{
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Theme } from '../../../../blocks/src/index';
|
|
2
|
+
import type { BrandDisplayMode, HeaderSelectionContext, LogoSizePolicy } from '../../../../theme-core/src/site-styles/index';
|
|
3
|
+
export type HeaderBrandPreferences = Readonly<{
|
|
4
|
+
brandDisplay: BrandDisplayMode;
|
|
5
|
+
logoSize: LogoSizePolicy;
|
|
6
|
+
}>;
|
|
7
|
+
export type HeaderBrandDisplayOption = Readonly<{
|
|
8
|
+
value: BrandDisplayMode;
|
|
9
|
+
label: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
export type HeaderLogoSizeOption = Readonly<{
|
|
13
|
+
value: LogoSizePolicy;
|
|
14
|
+
label: string;
|
|
15
|
+
}>;
|
|
16
|
+
export type HeaderBrandControlState = Readonly<{
|
|
17
|
+
kind: 'logo-available';
|
|
18
|
+
preferences: HeaderBrandPreferences;
|
|
19
|
+
brandDisplayOptions: readonly HeaderBrandDisplayOption[];
|
|
20
|
+
logoSizeOptions: readonly HeaderLogoSizeOption[];
|
|
21
|
+
}> | Readonly<{
|
|
22
|
+
kind: 'no-logo';
|
|
23
|
+
preferences: HeaderBrandPreferences;
|
|
24
|
+
brandDisplayOptions: readonly HeaderBrandDisplayOption[];
|
|
25
|
+
logoSizeOptions: readonly HeaderLogoSizeOption[];
|
|
26
|
+
}>;
|
|
27
|
+
export declare const DEFAULT_HEADER_BRAND_PREFERENCES: HeaderBrandPreferences;
|
|
28
|
+
export declare const HEADER_LOGO_SIZE_OPTIONS: readonly HeaderLogoSizeOption[];
|
|
29
|
+
export declare function createHeaderBrandControlState({ theme, headerSelectionContext, }: {
|
|
30
|
+
theme: Theme | null;
|
|
31
|
+
headerSelectionContext: Partial<HeaderSelectionContext> | undefined;
|
|
32
|
+
}): HeaderBrandControlState;
|
|
33
|
+
export declare function createHeaderBrandControlStateFromPreferences({ preferences, headerSelectionContext, }: {
|
|
34
|
+
preferences: HeaderBrandPreferences;
|
|
35
|
+
headerSelectionContext: Partial<HeaderSelectionContext> | undefined;
|
|
36
|
+
}): HeaderBrandControlState;
|
|
37
|
+
export declare function readHeaderBrandPreferences(theme: Theme | null): HeaderBrandPreferences;
|
|
38
|
+
export declare function normalizeHeaderBrandPreferences(preferences: HeaderBrandPreferences, hasLogo: boolean): HeaderBrandPreferences;
|
|
39
|
+
export declare function withHeaderBrandThemePreferences(theme: Theme, preferences: HeaderBrandPreferences): Theme;
|
|
40
|
+
export declare function withHeaderBrandPreferences(context: Partial<HeaderSelectionContext> | undefined, preferences: HeaderBrandPreferences): Partial<HeaderSelectionContext> | undefined;
|
|
41
|
+
export declare function hasLogoInHeaderSelectionContext(context: Partial<HeaderSelectionContext> | undefined): boolean;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { type HistoryState } from '../../../../content-editor/src/index';
|
|
2
|
+
import { type BrandDisplayMode, type FooterLookId, type LogoSizePolicy } from '../../../../theme-core/src/site-styles/index';
|
|
3
|
+
import type { SelectionSnapshot } from './StyleConfigurator.state';
|
|
4
|
+
import type { HeaderBrandPreferences } from './siteChromeBrandPreferences';
|
|
5
|
+
type HeaderLayoutSelection = Pick<SelectionSnapshot, 'headerLayoutId' | 'headerStyleId' | 'headerLookId'>;
|
|
6
|
+
type HeaderStyleSelection = Pick<SelectionSnapshot, 'headerStyleId' | 'headerLookId'>;
|
|
7
|
+
export type SiteChromeQuickControlHistoryEntry = Readonly<{
|
|
8
|
+
kind: 'header-layout';
|
|
9
|
+
previous: HeaderLayoutSelection;
|
|
10
|
+
next: HeaderLayoutSelection;
|
|
11
|
+
}> | Readonly<{
|
|
12
|
+
kind: 'header-style';
|
|
13
|
+
previous: HeaderStyleSelection;
|
|
14
|
+
next: HeaderStyleSelection;
|
|
15
|
+
}> | Readonly<{
|
|
16
|
+
kind: 'footer-look';
|
|
17
|
+
previous: FooterLookId | null;
|
|
18
|
+
next: FooterLookId | null;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'header-brand-display';
|
|
21
|
+
previous: BrandDisplayMode;
|
|
22
|
+
next: BrandDisplayMode;
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'header-logo-size';
|
|
25
|
+
previous: LogoSizePolicy;
|
|
26
|
+
next: LogoSizePolicy;
|
|
27
|
+
}>;
|
|
28
|
+
export type SiteChromeQuickControlHistoryPresent = Readonly<{
|
|
29
|
+
selection: SelectionSnapshot;
|
|
30
|
+
headerBrandPreferences: HeaderBrandPreferences;
|
|
31
|
+
entry: SiteChromeQuickControlHistoryEntry | null;
|
|
32
|
+
}>;
|
|
33
|
+
export type SiteChromeQuickControlReplayPlan = Readonly<{
|
|
34
|
+
kind: 'selection';
|
|
35
|
+
surface: 'header' | 'footer';
|
|
36
|
+
selection: SelectionSnapshot;
|
|
37
|
+
}> | Readonly<{
|
|
38
|
+
kind: 'brand-preferences';
|
|
39
|
+
preferences: HeaderBrandPreferences;
|
|
40
|
+
}>;
|
|
41
|
+
export type SiteChromeQuickControlHistoryMutation = Readonly<{
|
|
42
|
+
kind: 'idle';
|
|
43
|
+
}> | Readonly<{
|
|
44
|
+
kind: 'undoing';
|
|
45
|
+
entry: SiteChromeQuickControlHistoryEntry;
|
|
46
|
+
base: SiteChromeQuickControlHistoryPresent;
|
|
47
|
+
target: SiteChromeQuickControlReplayPlan;
|
|
48
|
+
}> | Readonly<{
|
|
49
|
+
kind: 'redoing';
|
|
50
|
+
entry: SiteChromeQuickControlHistoryEntry;
|
|
51
|
+
base: SiteChromeQuickControlHistoryPresent;
|
|
52
|
+
target: SiteChromeQuickControlReplayPlan;
|
|
53
|
+
}> | Readonly<{
|
|
54
|
+
kind: 'failed';
|
|
55
|
+
message: string;
|
|
56
|
+
}> | Readonly<{
|
|
57
|
+
kind: 'stale';
|
|
58
|
+
message: string;
|
|
59
|
+
}>;
|
|
60
|
+
export type SiteChromeQuickControlHistoryState = Readonly<{
|
|
61
|
+
history: HistoryState<SiteChromeQuickControlHistoryPresent>;
|
|
62
|
+
mutation: SiteChromeQuickControlHistoryMutation;
|
|
63
|
+
}>;
|
|
64
|
+
export type SiteChromeQuickControlHistoryBeginResult = Readonly<{
|
|
65
|
+
kind: 'started';
|
|
66
|
+
state: SiteChromeQuickControlHistoryState;
|
|
67
|
+
entry: SiteChromeQuickControlHistoryEntry;
|
|
68
|
+
base: SiteChromeQuickControlHistoryPresent;
|
|
69
|
+
target: SiteChromeQuickControlReplayPlan;
|
|
70
|
+
}> | Readonly<{
|
|
71
|
+
kind: 'skipped';
|
|
72
|
+
reason: SiteChromeQuickControlHistorySkipReason;
|
|
73
|
+
}>;
|
|
74
|
+
export type SiteChromeQuickControlHistorySkipReason = 'not-ready' | 'mutation-pending' | 'stale' | 'cannot-undo' | 'cannot-redo' | 'no-history-entry';
|
|
75
|
+
export type SiteChromeQuickControlHistoryFailure = Readonly<{
|
|
76
|
+
kind: 'retryable' | 'stale';
|
|
77
|
+
message: string;
|
|
78
|
+
}>;
|
|
79
|
+
export type SiteChromeQuickControlSelectionTarget = 'header-layout' | 'header-style' | 'footer-look';
|
|
80
|
+
export type SiteChromeQuickControlBrandTarget = 'header-brand-display' | 'header-logo-size';
|
|
81
|
+
export declare function createSiteChromeQuickControlHistoryState(present: Omit<SiteChromeQuickControlHistoryPresent, 'entry'>): SiteChromeQuickControlHistoryState;
|
|
82
|
+
export declare function recordSiteChromeQuickControlHistoryEntry(state: SiteChromeQuickControlHistoryState, input: Readonly<{
|
|
83
|
+
entry: SiteChromeQuickControlHistoryEntry;
|
|
84
|
+
previous?: Omit<SiteChromeQuickControlHistoryPresent, 'entry'>;
|
|
85
|
+
persisted: Omit<SiteChromeQuickControlHistoryPresent, 'entry'>;
|
|
86
|
+
}>): SiteChromeQuickControlHistoryState;
|
|
87
|
+
export declare function quickControlHistoryEntryFromSelectionChange(previous: SelectionSnapshot, next: SelectionSnapshot, target: SiteChromeQuickControlSelectionTarget): SiteChromeQuickControlHistoryEntry | null;
|
|
88
|
+
export declare function quickControlHistoryEntryFromBrandPreferenceChange(previous: HeaderBrandPreferences, next: HeaderBrandPreferences, target: SiteChromeQuickControlBrandTarget): SiteChromeQuickControlHistoryEntry | null;
|
|
89
|
+
export declare function beginSiteChromeQuickControlHistoryUndo(state: SiteChromeQuickControlHistoryState): SiteChromeQuickControlHistoryBeginResult;
|
|
90
|
+
export declare function beginSiteChromeQuickControlHistoryRedo(state: SiteChromeQuickControlHistoryState): SiteChromeQuickControlHistoryBeginResult;
|
|
91
|
+
export declare function confirmSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, persisted: Omit<SiteChromeQuickControlHistoryPresent, 'entry'>): SiteChromeQuickControlHistoryState;
|
|
92
|
+
export declare function rejectSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, failure: SiteChromeQuickControlHistoryFailure): SiteChromeQuickControlHistoryState;
|
|
93
|
+
export declare function cancelSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, mutation: Extract<SiteChromeQuickControlHistoryMutation, {
|
|
94
|
+
kind: 'undoing' | 'redoing';
|
|
95
|
+
}>): SiteChromeQuickControlHistoryState;
|
|
96
|
+
export declare function siteChromeQuickControlHistoryCanUndo(state: SiteChromeQuickControlHistoryState | null): boolean;
|
|
97
|
+
export declare function siteChromeQuickControlHistoryCanRedo(state: SiteChromeQuickControlHistoryState | null): boolean;
|
|
98
|
+
export declare function siteChromeQuickControlHistoryIsPending(state: SiteChromeQuickControlHistoryState | null): boolean;
|
|
99
|
+
export declare function siteChromeQuickControlHistoryIsStale(state: SiteChromeQuickControlHistoryState | null): boolean;
|
|
100
|
+
export declare function siteChromeQuickControlHistoryFailureMessage(state: SiteChromeQuickControlHistoryState | null): string | null;
|
|
101
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { APIEndpoints } from '../../../../api/src/index';
|
|
2
|
+
import type { Theme } from '../../../../blocks/src/index';
|
|
3
|
+
import type { FooterSelectionContext, HeaderSelectionContext } from '../../../../theme-core/src/site-styles/index';
|
|
4
|
+
import type { CuratedSiteStyle } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
5
|
+
import type { SelectionSnapshot } from './StyleConfigurator.state';
|
|
6
|
+
import { type SiteStylePreviewPlan } from './siteStylePreviewPlanner';
|
|
7
|
+
import type { SiteChromeEditableSurfaceKind } from './SiteChromeEditableSurface';
|
|
8
|
+
import { type HeaderBrandPreferences } from './siteChromeBrandPreferences';
|
|
9
|
+
type SaveSiteChromeLookSelectionBody = NonNullable<APIEndpoints['saveSiteChromeLookSelection']['body']>;
|
|
10
|
+
export type SiteChromeSavePlan = Readonly<{
|
|
11
|
+
compiled: SiteStylePreviewPlan;
|
|
12
|
+
themeOverlay: Theme;
|
|
13
|
+
body: SaveSiteChromeLookSelectionBody;
|
|
14
|
+
}>;
|
|
15
|
+
export type BuildSiteChromeSavePlanInput = Readonly<{
|
|
16
|
+
surface: SiteChromeEditableSurfaceKind;
|
|
17
|
+
siteStyle: CuratedSiteStyle;
|
|
18
|
+
selection: SelectionSnapshot;
|
|
19
|
+
baseTheme: Theme | null | undefined;
|
|
20
|
+
headerSelectionContext: Partial<HeaderSelectionContext> | undefined;
|
|
21
|
+
footerSelectionContext: Partial<FooterSelectionContext> | undefined;
|
|
22
|
+
headerBrandPreferences: HeaderBrandPreferences;
|
|
23
|
+
themeId: string | null;
|
|
24
|
+
selectionId: string | null;
|
|
25
|
+
baseSelectionUpdatedAt: string | null;
|
|
26
|
+
}>;
|
|
27
|
+
export declare function buildSiteChromeSavePlan({ surface, siteStyle, selection, baseTheme, headerSelectionContext, footerSelectionContext, headerBrandPreferences, themeId, selectionId, baseSelectionUpdatedAt, }: BuildSiteChromeSavePlanInput): SiteChromeSavePlan;
|
|
28
|
+
export declare function siteChromeSavePlanBodyForBaseRevision(plan: SiteChromeSavePlan, baseSelectionUpdatedAt: string | null): SaveSiteChromeLookSelectionBody;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type HistoryState } from '../../../../content-editor/src/index';
|
|
2
|
+
import type { SelectionSnapshot, StyleConfiguratorHistoryEntry } from './StyleConfigurator.state';
|
|
3
|
+
export type SiteStyleHistoryPresent = Readonly<{
|
|
4
|
+
selection: SelectionSnapshot;
|
|
5
|
+
entry: StyleConfiguratorHistoryEntry | null;
|
|
6
|
+
}>;
|
|
7
|
+
export type SiteStyleHistoryMutation = Readonly<{
|
|
8
|
+
kind: 'idle';
|
|
9
|
+
}> | Readonly<{
|
|
10
|
+
kind: 'undoing';
|
|
11
|
+
entry: StyleConfiguratorHistoryEntry;
|
|
12
|
+
base: SelectionSnapshot;
|
|
13
|
+
target: SelectionSnapshot;
|
|
14
|
+
}> | Readonly<{
|
|
15
|
+
kind: 'redoing';
|
|
16
|
+
entry: StyleConfiguratorHistoryEntry;
|
|
17
|
+
base: SelectionSnapshot;
|
|
18
|
+
target: SelectionSnapshot;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'failed';
|
|
21
|
+
message: string;
|
|
22
|
+
}> | Readonly<{
|
|
23
|
+
kind: 'stale';
|
|
24
|
+
message: string;
|
|
25
|
+
}>;
|
|
26
|
+
export type SiteStyleHistoryState = Readonly<{
|
|
27
|
+
history: HistoryState<SiteStyleHistoryPresent>;
|
|
28
|
+
mutation: SiteStyleHistoryMutation;
|
|
29
|
+
}>;
|
|
30
|
+
export type SiteStyleHistoryBeginResult = Readonly<{
|
|
31
|
+
kind: 'started';
|
|
32
|
+
state: SiteStyleHistoryState;
|
|
33
|
+
entry: StyleConfiguratorHistoryEntry;
|
|
34
|
+
base: SelectionSnapshot;
|
|
35
|
+
target: SelectionSnapshot;
|
|
36
|
+
}> | Readonly<{
|
|
37
|
+
kind: 'skipped';
|
|
38
|
+
reason: SiteStyleHistorySkipReason;
|
|
39
|
+
}>;
|
|
40
|
+
export type SiteStyleHistorySkipReason = 'not-ready' | 'mutation-pending' | 'stale' | 'cannot-undo' | 'cannot-redo';
|
|
41
|
+
export type SiteStyleHistoryFailure = Readonly<{
|
|
42
|
+
kind: 'retryable' | 'stale';
|
|
43
|
+
message: string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare function createSiteStyleHistoryState(selection: SelectionSnapshot): SiteStyleHistoryState;
|
|
46
|
+
export declare function recordAppliedSiteStyleSelection(state: SiteStyleHistoryState, entry: StyleConfiguratorHistoryEntry): SiteStyleHistoryState;
|
|
47
|
+
export declare function beginSiteStyleHistoryUndo(state: SiteStyleHistoryState): SiteStyleHistoryBeginResult;
|
|
48
|
+
export declare function beginSiteStyleHistoryRedo(state: SiteStyleHistoryState): SiteStyleHistoryBeginResult;
|
|
49
|
+
export declare function confirmSiteStyleHistoryMutation(state: SiteStyleHistoryState, persisted: SelectionSnapshot): SiteStyleHistoryState;
|
|
50
|
+
export declare function rejectSiteStyleHistoryMutation(state: SiteStyleHistoryState, failure: SiteStyleHistoryFailure): SiteStyleHistoryState;
|
|
51
|
+
export declare function siteStyleHistoryCanUndo(state: SiteStyleHistoryState | null): boolean;
|
|
52
|
+
export declare function siteStyleHistoryCanRedo(state: SiteStyleHistoryState | null): boolean;
|
|
53
|
+
export declare function siteStyleHistoryIsPending(state: SiteStyleHistoryState | null): boolean;
|
|
54
|
+
export declare function siteStyleHistoryIsStale(state: SiteStyleHistoryState | null): boolean;
|
|
55
|
+
export declare function siteStyleHistoryFailureMessage(state: SiteStyleHistoryState | null): string | null;
|
|
@@ -6,3 +6,4 @@ export declare function buildApplySiteStyleSelectionBody(input: Readonly<{
|
|
|
6
6
|
previewed: SelectionSnapshot;
|
|
7
7
|
selectionId?: string | null;
|
|
8
8
|
}>): ApplySiteStyleSelectionBody;
|
|
9
|
+
export declare function selectionSnapshotFromApplySiteStyleSelectionResponse(saved: NonNullable<APIEndpoints['applySiteStyleSelection']['response']>, fallback: SelectionSnapshot): SelectionSnapshot;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ApiClient } from '../../../../api/src/request';
|
|
2
2
|
import { type BuiltInReferenceKind } from '../../../../content-model/src/index';
|
|
3
|
-
import type { EntryPickerWidgetAdapter, LinkWidgetAdapters, ReferenceWidgetAdapter } from '../../../../editor-blocks/src/index';
|
|
3
|
+
import type { EntryPickerWidgetAdapter, LinkWidgetAdapters, ReferenceWidgetAdapter, SiteOptionWidgetAdapters } from '../../../../editor-blocks/src/index';
|
|
4
4
|
type BuiltInReferenceWidgetAdapters = Record<BuiltInReferenceKind, ReferenceWidgetAdapter>;
|
|
5
5
|
export declare function createPreviewLinkAdapters(previewClient: ApiClient): LinkWidgetAdapters;
|
|
6
6
|
export declare function createPreviewEntryPickerAdapter(previewClient: ApiClient): EntryPickerWidgetAdapter;
|
|
7
|
+
export declare function createPreviewSiteOptionAdapters(previewClient: ApiClient): SiteOptionWidgetAdapters;
|
|
7
8
|
/**
|
|
8
9
|
* Builds the preview adapter record by iterating the canonical `referenceLoaders`
|
|
9
10
|
* map. The kind ↔ loader pairing is structurally impossible to mis-couple — each
|
|
@@ -3,7 +3,7 @@ import type { ApiClient } from '../../../../api/src/request';
|
|
|
3
3
|
import { type MediaAssetIndexItem, type Theme } from '../../../../blocks/src/index';
|
|
4
4
|
import type { FieldWidgetComponent } from '../../../../block-form/src/client/index';
|
|
5
5
|
import type { SdkConfigForBlockPicker } from '../../../../editor-blocks/src/index';
|
|
6
|
-
import { __testUtils, createPreviewEntryPickerAdapter, createPreviewLinkAdapters, createPreviewReferenceAdapters } from './widgetAdapters';
|
|
6
|
+
import { __testUtils, createPreviewEntryPickerAdapter, createPreviewLinkAdapters, createPreviewReferenceAdapters, createPreviewSiteOptionAdapters } from './widgetAdapters';
|
|
7
7
|
export declare function PreviewFormProvider({ siteId: rawSiteId, theme, previewClient, bearerToken, supabaseUrl, mediaAssets, sdkConfig, children, }: {
|
|
8
8
|
siteId: string;
|
|
9
9
|
theme?: Theme | null;
|
|
@@ -25,6 +25,7 @@ export declare const previewWidgetOverrides: {
|
|
|
25
25
|
readonly entryPicker: FieldWidgetComponent;
|
|
26
26
|
readonly iconPicker: FieldWidgetComponent;
|
|
27
27
|
readonly buttonVariant: FieldWidgetComponent;
|
|
28
|
+
readonly siteOptionPicker: FieldWidgetComponent;
|
|
28
29
|
};
|
|
29
30
|
export type { FieldWidgetComponent };
|
|
30
|
-
export { __testUtils, createPreviewEntryPickerAdapter, createPreviewLinkAdapters, createPreviewReferenceAdapters };
|
|
31
|
+
export { __testUtils, createPreviewEntryPickerAdapter, createPreviewLinkAdapters, createPreviewReferenceAdapters, createPreviewSiteOptionAdapters, };
|
|
@@ -2,5 +2,4 @@ export declare const PREVIEW_COOKIE_NAME = "preview_token";
|
|
|
2
2
|
export declare const PREVIEW_REFRESH_COOKIE_NAME = "preview_refresh_token";
|
|
3
3
|
export declare const PREVIEW_COOKIE_MAX_AGE: number;
|
|
4
4
|
export declare const PREVIEW_CODE_PARAM = "preview_code";
|
|
5
|
-
export declare const PREVIEW_SURFACE_PARAM = "preview_surface";
|
|
6
5
|
export declare const PREVIEW_THEME_COOKIE_NAME = "preview_theme_id";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Loads riverbank.config.ts and extracts CLI-relevant configuration
|
|
5
5
|
* (contentDir and sync settings) with appropriate defaults.
|
|
6
6
|
*/
|
|
7
|
-
import type { SyncConfig, BlockFieldExtensionsMap } from '../config/types';
|
|
7
|
+
import type { SyncConfig, BlockFieldExtensionsMap, SdkCustomBlock } from '../config/types';
|
|
8
8
|
/**
|
|
9
9
|
* Loaded CLI configuration with defaults applied.
|
|
10
10
|
*/
|
|
@@ -15,6 +15,8 @@ export interface LoadedCliConfig {
|
|
|
15
15
|
sync: Required<SyncConfig>;
|
|
16
16
|
/** Custom block field extensions from config (for validation) */
|
|
17
17
|
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
18
|
+
/** SDK custom block definitions from config (for validation) */
|
|
19
|
+
customBlocks?: SdkCustomBlock[];
|
|
18
20
|
/** Active theme name for local loading and default push */
|
|
19
21
|
activeTheme: string;
|
|
20
22
|
}
|
|
@@ -42,10 +42,12 @@ export interface LocalPage {
|
|
|
42
42
|
/**
|
|
43
43
|
* Navigation link types for local navigation files.
|
|
44
44
|
*
|
|
45
|
-
* These types
|
|
46
|
-
*
|
|
45
|
+
* These types accept the SDK config/file dropdown sentinel. Push command
|
|
46
|
+
* compilation lowers dropdown containers to linkless management inputs.
|
|
47
47
|
*/
|
|
48
|
-
export type LocalNavigationLinkType = NavigationLinkInput
|
|
48
|
+
export type LocalNavigationLinkType = NavigationLinkInput | {
|
|
49
|
+
kind: 'dropdown';
|
|
50
|
+
};
|
|
49
51
|
export interface LocalNavigationItem {
|
|
50
52
|
label: string;
|
|
51
53
|
/** Link configuration. Required for non-dropdown items. */
|
|
@@ -12,6 +12,7 @@ export type CommandSurfaceDispatchInput = Readonly<{
|
|
|
12
12
|
local: LocalContent;
|
|
13
13
|
client: ManagementClient;
|
|
14
14
|
blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
15
|
+
customBlocks?: Parameters<typeof compilePagePushCommands>[0]['customBlocks'];
|
|
15
16
|
onEntryCommandCount?: (commandCount: number) => void;
|
|
16
17
|
onFormCommandCount?: (commandCount: number) => void;
|
|
17
18
|
onNavigationCommandCount?: (commandCount: number) => void;
|
|
@@ -3,7 +3,7 @@ import { type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
|
3
3
|
import type { ManagementClient } from '../../client/management/types';
|
|
4
4
|
import type { LocalContent } from '../content/reader';
|
|
5
5
|
import type { EnvTarget } from '../helpers';
|
|
6
|
-
import type { BlockFieldExtensionsMap } from '../../config/types';
|
|
6
|
+
import type { BlockFieldExtensionsMap, SdkCustomBlock } from '../../config/types';
|
|
7
7
|
import type { ContentDiff } from '../sync/diff';
|
|
8
8
|
import type { SyncResult } from '../sync';
|
|
9
9
|
import { type CliBlockIdentifier, type CliPageIdentifier } from './commandKeys';
|
|
@@ -30,6 +30,7 @@ export type CliPageCommandCompileInput = Readonly<{
|
|
|
30
30
|
diff: Pick<ContentDiff, 'pages'>;
|
|
31
31
|
local: Pick<LocalContent, 'pages'>;
|
|
32
32
|
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
33
|
+
customBlocks?: readonly SdkCustomBlock[];
|
|
33
34
|
}>;
|
|
34
35
|
export type CliPageCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<PageSiteCommandType, PageCommandReportSubject> & Readonly<{
|
|
35
36
|
warnings: readonly string[];
|
|
@@ -78,5 +79,6 @@ export declare function pageCommandExecutionToReport(input: Readonly<{
|
|
|
78
79
|
export declare function preflightPageCommandPlanAsReport(input: Readonly<{
|
|
79
80
|
compiledPlan: PageCommandCompiledPlan;
|
|
80
81
|
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
82
|
+
customBlocks?: readonly SdkCustomBlock[];
|
|
81
83
|
}>): PageCommandExecutionReport;
|
|
82
84
|
export declare function pageCommandReportToSyncResult(report: PageCommandExecutionReport): SyncResult;
|
|
@@ -18,6 +18,7 @@ export type ContentPushExecutionInput = Readonly<{
|
|
|
18
18
|
local: LocalContent;
|
|
19
19
|
client: ManagementClient;
|
|
20
20
|
blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
21
|
+
customBlocks?: Parameters<typeof compilePagePushCommands>[0]['customBlocks'];
|
|
21
22
|
output: OutputContext;
|
|
22
23
|
onEntryCommandCount?: (commandCount: number) => void;
|
|
23
24
|
onFormCommandCount?: (commandCount: number) => void;
|
|
@@ -45,7 +45,7 @@ export type BlockCategory = 'marketing' | 'content' | 'blog' | 'media' | 'layout
|
|
|
45
45
|
*
|
|
46
46
|
* Re-exported from `@riverbankcms/blocks` (single source of truth).
|
|
47
47
|
*/
|
|
48
|
-
export declare const SUPPORTED_LOADER_ENDPOINTS: readonly ["listPublishedEntries", "getPublishedEntryPreview", "listPublicEvents", "getPublicEventDetails", "listPublicCourses", "listPublicTeamMembers", "listPublicProducts", "listPublicPasses", "listPublicMemberships", "getPublicFormById", "getPublicBookingServices"];
|
|
48
|
+
export declare const SUPPORTED_LOADER_ENDPOINTS: readonly ["listPublishedEntries", "getPublishedEntryPreview", "listPublicEvents", "getPublicEventDetails", "listPublicCourses", "listPublicRouteCandidates", "listPublicTeamMembers", "listPublicProducts", "listPublicPasses", "listPublicMemberships", "getPublicFormById", "getPublicBookingServices"];
|
|
49
49
|
export type SdkLoaderEndpoint = (typeof SUPPORTED_LOADER_ENDPOINTS)[number];
|
|
50
50
|
export type LoaderParamBinding = {
|
|
51
51
|
$bind: {
|
|
@@ -56,9 +56,9 @@ export declare const containerMaxWidthSchema: z.ZodEnum<{
|
|
|
56
56
|
* Schema for container alignment values.
|
|
57
57
|
*/
|
|
58
58
|
export declare const containerAlignmentSchema: z.ZodEnum<{
|
|
59
|
-
center: "center";
|
|
60
59
|
left: "left";
|
|
61
60
|
right: "right";
|
|
61
|
+
center: "center";
|
|
62
62
|
}>;
|
|
63
63
|
/**
|
|
64
64
|
* Schema for section options configuration.
|
|
@@ -85,9 +85,9 @@ export declare const containerOptionsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
85
85
|
wide: "wide";
|
|
86
86
|
}>>, z.ZodBoolean]>>;
|
|
87
87
|
alignment: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
88
|
-
center: "center";
|
|
89
88
|
left: "left";
|
|
90
89
|
right: "right";
|
|
90
|
+
center: "center";
|
|
91
91
|
}>>, z.ZodBoolean]>>;
|
|
92
92
|
}, z.core.$strip>>;
|
|
93
93
|
/**
|
|
@@ -118,9 +118,9 @@ export declare const siteStyleConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
118
118
|
wide: "wide";
|
|
119
119
|
}>>, z.ZodBoolean]>>;
|
|
120
120
|
alignment: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
121
|
-
center: "center";
|
|
122
121
|
left: "left";
|
|
123
122
|
right: "right";
|
|
123
|
+
center: "center";
|
|
124
124
|
}>>, z.ZodBoolean]>>;
|
|
125
125
|
}, z.core.$strip>>;
|
|
126
126
|
}, z.core.$strip>>;
|
|
@@ -44,6 +44,8 @@ export type CardStylesContent = {
|
|
|
44
44
|
spacing?: string | null;
|
|
45
45
|
raised?: boolean | null;
|
|
46
46
|
rounded?: string | null;
|
|
47
|
+
cardVariant?: string | null;
|
|
48
|
+
treatment?: 'accent-quote' | 'editorial-rule' | 'soft-panel' | 'editorial-serif-quote' | 'editorial-open' | null;
|
|
47
49
|
} | null;
|
|
48
50
|
export type ContainerStylesContent = {
|
|
49
51
|
background?: Record<string, unknown> | null;
|
|
@@ -232,8 +234,7 @@ export type EventCalendarContent = {
|
|
|
232
234
|
listColumns?: ColumnOption | null;
|
|
233
235
|
layout?: EventLayout | null;
|
|
234
236
|
columns?: ColumnOption | null;
|
|
235
|
-
eventsPerPage?: '6' | '12' | '24' | null;
|
|
236
|
-
compactEventsPerPage?: '10' | '20' | '30' | null;
|
|
237
|
+
eventsPerPage?: '6' | '10' | '12' | '20' | '24' | '30' | null;
|
|
237
238
|
loadMoreText?: string | null;
|
|
238
239
|
startOfWeek?: WeekStart | null;
|
|
239
240
|
calendarTabViews?: CalendarTabViews | null;
|
|
@@ -318,6 +319,30 @@ export type EventSpotlightContent = {
|
|
|
318
319
|
emptyMessage?: string | null;
|
|
319
320
|
_sectionStyles?: SectionStylesContent;
|
|
320
321
|
};
|
|
322
|
+
export type OfferingsPreviewSourceKey = 'eventPreset:class' | 'eventPreset:workshop' | 'eventPreset:retreat' | 'eventPreset:performance' | 'course';
|
|
323
|
+
export type OfferingsPreviewCtaMode = 'auto' | 'custom' | 'hidden';
|
|
324
|
+
export type OfferingsPreviewGroupPresentation = 'compact-list' | 'single-card';
|
|
325
|
+
export type OfferingsPreviewGroupOverride = {
|
|
326
|
+
sourceKey?: OfferingsPreviewSourceKey | null;
|
|
327
|
+
title?: string | null;
|
|
328
|
+
intro?: string | null;
|
|
329
|
+
hidden?: boolean | null;
|
|
330
|
+
presentation?: OfferingsPreviewGroupPresentation | null;
|
|
331
|
+
ctaMode?: OfferingsPreviewCtaMode | null;
|
|
332
|
+
ctaHref?: string | null;
|
|
333
|
+
ctaLabel?: string | null;
|
|
334
|
+
};
|
|
335
|
+
export type OfferingsPreviewContent = {
|
|
336
|
+
heading?: string | null;
|
|
337
|
+
description?: unknown;
|
|
338
|
+
itemLimit?: '1' | '2' | '3' | '4' | '5' | '6' | null;
|
|
339
|
+
groupOverrides?: readonly OfferingsPreviewGroupOverride[] | null;
|
|
340
|
+
_cardStyles?: CardStylesContent;
|
|
341
|
+
buttonVariant?: ButtonVariant | null;
|
|
342
|
+
buttonText?: string | null;
|
|
343
|
+
emptyMessage?: string | null;
|
|
344
|
+
_sectionStyles?: SectionStylesContent;
|
|
345
|
+
};
|
|
321
346
|
export type FaqItem = {
|
|
322
347
|
question: string;
|
|
323
348
|
answer: unknown;
|
|
@@ -661,6 +686,7 @@ export type SystemBlockContentByFullKind = {
|
|
|
661
686
|
'block.event-spotlight': EventSpotlightContent;
|
|
662
687
|
'block.event-listing': EventListingContent;
|
|
663
688
|
'block.event-calendar': EventCalendarContent;
|
|
689
|
+
'block.offerings-preview': OfferingsPreviewContent;
|
|
664
690
|
'block.shop': ShopContent;
|
|
665
691
|
'block.product-list': ProductListContent;
|
|
666
692
|
'block.product-detail': ProductDetailContent;
|
|
@@ -275,6 +275,15 @@ export type SiteRouteRecord = {
|
|
|
275
275
|
draftStatus?: string | null;
|
|
276
276
|
publishedAt?: string | null;
|
|
277
277
|
};
|
|
278
|
+
export type SiteBookingOfferingCanonicalBehaviour = "class" | "workshop" | "course" | "retreat" | "performance" | "appointment";
|
|
279
|
+
export type SiteBookingOfferingEngine = "event_series" | "course" | "appointment_service";
|
|
280
|
+
export type SiteBookingOfferingPresetSummary = Readonly<{
|
|
281
|
+
id: string;
|
|
282
|
+
canonicalBehaviour: SiteBookingOfferingCanonicalBehaviour;
|
|
283
|
+
engine: SiteBookingOfferingEngine;
|
|
284
|
+
label: string;
|
|
285
|
+
pluralLabel: string;
|
|
286
|
+
}>;
|
|
278
287
|
export type SiteResponse = {
|
|
279
288
|
site: {
|
|
280
289
|
id: string;
|
|
@@ -318,6 +327,7 @@ export type SiteResponse = {
|
|
|
318
327
|
appointmentsEnabled?: boolean;
|
|
319
328
|
portalEnabled?: boolean;
|
|
320
329
|
commerceEnabled?: boolean;
|
|
330
|
+
bookingOfferingPresets?: readonly SiteBookingOfferingPresetSummary[];
|
|
321
331
|
analytics?: SiteAnalyticsSettingsPayload;
|
|
322
332
|
privacyPolicy?: SiteRuntimePrivacyPolicy;
|
|
323
333
|
routes: Record<string, SiteRouteRecord>;
|
|
@@ -48,6 +48,47 @@ export type EventCategory = {
|
|
|
48
48
|
color: string | null;
|
|
49
49
|
};
|
|
50
50
|
export type PricingType = 'free' | 'paid' | 'pass_only' | 'membership_only';
|
|
51
|
+
export type PublicCoursePriceDisplay = {
|
|
52
|
+
kind: 'free';
|
|
53
|
+
currency: string;
|
|
54
|
+
} | {
|
|
55
|
+
kind: 'exact';
|
|
56
|
+
amount: number;
|
|
57
|
+
currency: string;
|
|
58
|
+
} | {
|
|
59
|
+
kind: 'from';
|
|
60
|
+
amount: number;
|
|
61
|
+
currency: string;
|
|
62
|
+
} | {
|
|
63
|
+
kind: 'unavailable';
|
|
64
|
+
currency: string;
|
|
65
|
+
};
|
|
66
|
+
export type PublicEventPriceDisplay = {
|
|
67
|
+
kind: 'free';
|
|
68
|
+
currency: string;
|
|
69
|
+
} | {
|
|
70
|
+
kind: 'exact';
|
|
71
|
+
amount: number;
|
|
72
|
+
currency: string;
|
|
73
|
+
} | {
|
|
74
|
+
kind: 'from';
|
|
75
|
+
amount: number;
|
|
76
|
+
currency: string;
|
|
77
|
+
} | {
|
|
78
|
+
kind: 'mixed';
|
|
79
|
+
paidFromAmount: number;
|
|
80
|
+
currency: string;
|
|
81
|
+
} | {
|
|
82
|
+
kind: 'pass_only';
|
|
83
|
+
} | {
|
|
84
|
+
kind: 'membership_only';
|
|
85
|
+
} | {
|
|
86
|
+
kind: 'unavailable';
|
|
87
|
+
currency: string;
|
|
88
|
+
} | {
|
|
89
|
+
kind: 'course';
|
|
90
|
+
display: PublicCoursePriceDisplay;
|
|
91
|
+
};
|
|
51
92
|
export type AccessRestriction = 'none' | 'category';
|
|
52
93
|
export type PublicEventTicketTypeAvailability = {
|
|
53
94
|
kind: 'available';
|
|
@@ -152,6 +193,7 @@ export type PublicEvent = {
|
|
|
152
193
|
pricingType: PricingType;
|
|
153
194
|
price: number | null;
|
|
154
195
|
currency: string;
|
|
196
|
+
priceDisplay: PublicEventPriceDisplay;
|
|
155
197
|
paymentTerms: BookingPaymentTerms;
|
|
156
198
|
pricingMode?: 'single' | 'ticket_types';
|
|
157
199
|
ticketTypes?: PublicEventTicketType[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MediaAssetIndexItem as BlocksMediaAssetIndexItem, ResolveImageUrlContextInput as BlocksResolveImageUrlContextInput } from '../../../blocks/src/index';
|
|
2
|
+
import type { MediaAssetIndexItem as SdkMediaAssetIndexItem, ResolveImageUrlContextInput as SdkResolveImageUrlContextInput } from '../contracts';
|
|
3
|
+
export declare function toBlocksMediaAssets(assets: readonly SdkMediaAssetIndexItem[] | undefined): readonly BlocksMediaAssetIndexItem[] | undefined;
|
|
4
|
+
export declare function toBlocksImageResolveContextInput(context: SdkResolveImageUrlContextInput | undefined): BlocksResolveImageUrlContextInput | undefined;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* `@riverbankcms/blocks` (which is not a public dependency). This list is a
|
|
8
8
|
* stable public contract; keep it in sync with the internal blocks runtime.
|
|
9
9
|
*/
|
|
10
|
-
export declare const SYSTEM_BLOCK_KINDS: readonly ["block.hero", "block.intro", "block.columns", "block.collection", "block.feature-cards", "block.media-text", "block.cta-full", "block.single-button", "block.body-text", "block.location-map", "block.faq", "block.testimonials", "block.team-members", "block.embed", "block.blog-post", "block.blog-listing", "block.site-header", "block.site-footer", "block.form", "block.appointment-booking", "block.event-registration", "block.event-details", "block.course-registration", "block.course-details", "block.event-spotlight", "block.event-listing", "block.event-calendar", "block.shop", "block.product-list", "block.product-detail", "block.cart", "block.checkout", "block.gifting", "block.newsletter-signup", "block.image-gallery", "block.video-grid", "block.audio-player", "block.file-download"];
|
|
10
|
+
export declare const SYSTEM_BLOCK_KINDS: readonly ["block.hero", "block.intro", "block.columns", "block.collection", "block.feature-cards", "block.media-text", "block.cta-full", "block.single-button", "block.body-text", "block.location-map", "block.faq", "block.testimonials", "block.team-members", "block.embed", "block.blog-post", "block.blog-listing", "block.site-header", "block.site-footer", "block.form", "block.appointment-booking", "block.event-registration", "block.event-details", "block.course-registration", "block.course-details", "block.event-spotlight", "block.event-listing", "block.event-calendar", "block.offerings-preview", "block.shop", "block.product-list", "block.product-detail", "block.cart", "block.checkout", "block.gifting", "block.newsletter-signup", "block.image-gallery", "block.video-grid", "block.audio-player", "block.file-download"];
|
|
11
11
|
export type SystemBlockKind = (typeof SYSTEM_BLOCK_KINDS)[number];
|
|
12
12
|
export type CustomBlockKind = `custom.${string}`;
|
|
13
13
|
export type BlockKind = SystemBlockKind | CustomBlockKind;
|