@riverbankcms/sdk 0.104.3 → 0.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -51
- package/dist/{PreviewEditorSidebar-CBMhU9p_.mjs → PreviewEditorSidebar-BBT-kZAM.mjs} +1850 -1183
- package/dist/{PreviewEditorUI-C5KEw4M8.mjs → PreviewEditorUI-D69xNKT2.mjs} +10 -9
- package/dist/{PreviewQueryProvider-CStABBUh.mjs → PreviewQueryProvider-RRu7wyQ5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Iq12HjL7.mjs → SdkPreviewModeRuntime-CuDjXH6o.mjs} +2562 -457
- package/dist/{SiteChromeCustomizeContext-Cx0NMdyv.mjs → SiteChromeCustomizeContext-BQUY2dEk.mjs} +7689 -3196
- package/dist/_dts/ai/src/contracts/proposals.d.ts +36493 -1395
- package/dist/_dts/api/src/blocks.d.ts +41 -7
- package/dist/_dts/api/src/bookingConfig.d.ts +2 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +180 -115
- package/dist/_dts/api/src/cache-tags.d.ts +3 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +25 -16
- package/dist/_dts/api/src/courses.d.ts +68 -10
- package/dist/_dts/api/src/endpoints.d.ts +128 -0
- package/dist/_dts/api/src/footer-settings.d.ts +1 -0
- package/dist/_dts/api/src/footerSettings.d.ts +8 -0
- package/dist/_dts/api/src/index.d.ts +127 -124
- package/dist/_dts/api/src/navigation/contracts.d.ts +3 -3
- package/dist/_dts/api/src/previewContentContract.d.ts +4 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +9 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +178 -6
- package/dist/_dts/api/src/siteBanner.d.ts +2 -2
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +143 -55
- package/dist/_dts/api/src/siteOperations.d.ts +1 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +32 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +72 -47
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -4
- package/dist/_dts/blocks/src/definitions.d.ts +1 -1
- package/dist/_dts/blocks/src/portal/types.d.ts +25 -7
- package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +0 -1
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule-projection.d.ts +52 -0
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule.d.ts +22 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +45 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +10 -0
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +4 -1
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +9 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +8 -2
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +8 -8
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +29 -0
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +50 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +9 -48
- 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 +2 -5
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +2 -2
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -1
- package/dist/_dts/blocks/src/system/icons/social.d.ts +5 -0
- package/dist/_dts/blocks/src/system/icons/svg.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +2 -2
- package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +13 -0
- package/dist/_dts/blocks/src/system/node/fragments/footerNav.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledCard.d.ts +3 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledContainer.d.ts +4 -4
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +3 -12
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/blockComposition.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +90 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +45 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +9 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +106 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/RecurringSchedule.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +11 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/svg.d.ts +7 -0
- package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +27 -8
- package/dist/_dts/content-editor/src/footerComposer.d.ts +56 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +5 -5
- package/dist/_dts/content-editor/src/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +3 -1
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +20 -36
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +5 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +11 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/content-model/src/definitions/shared.d.ts +3 -0
- package/dist/_dts/core/src/branded.d.ts +47 -0
- package/dist/_dts/core/src/dated-offering-settlement.d.ts +47 -0
- package/dist/_dts/core/src/editor-state.d.ts +4 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +44 -0
- package/dist/_dts/core/src/footer-composition.d.ts +143 -0
- package/dist/_dts/core/src/index.d.ts +51 -47
- package/dist/_dts/core/src/public-profile.d.ts +73 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +4398 -2859
- package/dist/_dts/db/src/schemas/forms.d.ts +10 -10
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +5 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +4 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
- package/dist/_dts/media-core/src/index.d.ts +2 -1
- package/dist/_dts/media-core/src/storagePathDomain.d.ts +47 -0
- package/dist/_dts/media-core/src/url.d.ts +1 -21
- package/dist/_dts/path-utils/src/index.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +4 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -9
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +8 -11
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -9
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +2 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -9
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +81 -43
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.typography.d.ts +61 -0
- package/dist/_dts/preview-next/src/client/preview/previewErrorMessages.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +7 -17
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +15 -8
- package/dist/_dts/preview-next/src/client/preview/typographyFontCatalog.d.ts +57 -0
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +4 -7
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +24 -10
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +3 -3
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +16 -2
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +14 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +2 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +147 -24
- package/dist/_dts/sdk/src/client/types.d.ts +2 -0
- package/dist/_dts/sdk/src/config/content-types.d.ts +2 -0
- package/dist/_dts/sdk/src/config/content-validation.d.ts +4 -0
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +23 -3
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +17 -0
- package/dist/_dts/sdk/src/data/dataLoaderValue.d.ts +36 -0
- package/dist/_dts/sdk/src/data/defineOwnDataProperty.d.ts +2 -0
- package/dist/_dts/sdk/src/data/executeCodeLoaders.d.ts +36 -40
- package/dist/_dts/sdk/src/data/index.d.ts +3 -3
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +54 -0
- package/dist/_dts/sdk/src/data/types.d.ts +43 -78
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -0
- package/dist/_dts/sdk/src/next/index.d.ts +1 -0
- package/dist/_dts/sdk/src/next/redirect-destination.d.ts +1 -1
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +2 -1
- package/dist/_dts/sdk/src/next/types.d.ts +10 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -10
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +10 -5
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +6 -10
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/server.d.ts +4 -3
- 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/site-commands/src/capabilityGaps.d.ts +2 -2
- package/dist/_dts/site-commands/src/commands.d.ts +934 -40
- package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +5 -1
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/personalities/quiet-arrow.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/types.d.ts +12 -8
- package/dist/_dts/theme-core/src/cards/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/data.d.ts +12 -0
- package/dist/_dts/theme-core/src/fonts/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/fonts/types.d.ts +6 -0
- package/dist/_dts/theme-core/src/footer/mode.d.ts +15 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +72 -54
- package/dist/_dts/theme-core/src/navigation/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/colors.d.ts +12 -0
- package/dist/_dts/theme-core/src/palette/curated/brand-led.d.ts +10 -5
- package/dist/_dts/theme-core/src/palette/curated/high-contrast.d.ts +6 -3
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +31 -236
- package/dist/_dts/theme-core/src/palette/curated/soft-natural.d.ts +8 -4
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +14 -12
- package/dist/_dts/theme-core/src/palette/curated/warm-dark.d.ts +4 -2
- package/dist/_dts/theme-core/src/palette/curated/warm-neutral.d.ts +8 -4
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +33 -3
- package/dist/_dts/theme-core/src/palette/index.d.ts +0 -4
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +12 -6
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +20 -72
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +29 -4
- package/dist/_dts/theme-core/src/palette/selection.d.ts +6 -4
- package/dist/_dts/theme-core/src/schema.d.ts +1307 -38
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +218 -158
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +5 -6
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +218 -158
- package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +161 -51
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +12 -1
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +24 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -48
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +10 -23
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleThemeCompiler.d.ts +1 -2
- package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +456 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +52 -3
- package/dist/cli/index.mjs +4118 -2278
- package/dist/client/{DiscountCodeDisclosure-BXM73_E5.mjs → DiscountCodeDisclosure-D6TOf6Hi.mjs} +1 -1
- package/dist/client/{EventCombined.client-DT5elP7j.mjs → EventCombined.client-Dao3zxRk.mjs} +3 -3
- package/dist/client/{EventListing.client-pTYGfV9C.mjs → EventListing.client-B2NNt4y1.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-dQrhlUe3.mjs → LeafletStaticMap-BhwFo16w.mjs} +1 -1
- package/dist/client/{MagicLinkForm-u6Dul4j5.mjs → MagicLinkForm-BWnB7cMR.mjs} +2 -2
- package/dist/client/{StepIndicator-nWqineJ2.mjs → StepIndicator-TzRiQ0BY.mjs} +2 -2
- package/dist/client/{accordion-CSJcTUyH.mjs → accordion-BPy-AJ4_.mjs} +1 -1
- package/dist/client/{bookingForm-C73wOuVa.mjs → bookingForm-BL4PGZds.mjs} +7 -7
- package/dist/client/bookings.mjs +382 -204
- package/dist/client/{buttons-DfYyqt8C.mjs → buttons-EBjyslaX.mjs} +265 -152
- package/dist/client/{carousel-fMBb0JSc.mjs → carousel-C2b7Cn9-.mjs} +1 -1
- package/dist/client/{cart-BtaCwT3S.mjs → cart-BQcbXIVD.mjs} +3 -3
- package/dist/client/{checkout-DkTwZSnh.mjs → checkout-DEmpGRJu.mjs} +3 -3
- package/dist/client/client.mjs +5019 -1886
- package/dist/client/{colorStyles-Wyl6JujD.mjs → colorStyles-jZS6KfkP.mjs} +1 -1
- package/dist/client/{colorTokenParts-dT8MISgJ.mjs → colorTokenParts-CMugwvX_.mjs} +3 -1
- package/dist/client/{courseRegistration-DnLmapJu.mjs → courseRegistration-BqRZPmsq.mjs} +56 -21
- package/dist/client/{eventCalendar-BvLOc9KY.mjs → eventCalendar-B8N_tSl5.mjs} +29 -21
- package/dist/client/{eventCombined-kShgJPQr.mjs → eventCombined-Gjn6gtq7.mjs} +2 -2
- package/dist/client/{eventDetails-C5NTM0Vo.mjs → eventDetails-M-VCxA-r.mjs} +4 -4
- package/dist/client/{eventListing-B82ZdKP6.mjs → eventListing-DR19hqYi.mjs} +2 -2
- package/dist/client/{eventRegistration-qJVFqBWo.mjs → eventRegistration-BR02a0k3.mjs} +8 -8
- package/dist/client/{form-BvAcKiuu.mjs → form-LY2xIbwg.mjs} +2 -2
- package/dist/client/{headerSection-NvAiEHAg.mjs → headerSection-CYwwXJfh.mjs} +3 -3
- package/dist/client/hooks.mjs +3335 -2210
- package/dist/client/{locationMap-D0j52xfI.mjs → locationMap-DWnBXrFq.mjs} +3 -3
- package/dist/client/{media-BCW_g2cQ.mjs → media-DHtSxS5V.mjs} +61 -56
- package/dist/client/{newsletterForm-B8_i93qH.mjs → newsletterForm-D9s-fQ2P.mjs} +3 -3
- package/dist/client/{pricing-DIYnyHOk.mjs → pricing-DDq80oYc.mjs} +1 -1
- package/dist/client/{productDetail-w0eAHkuQ.mjs → productDetail-B0SbWd45.mjs} +3 -3
- package/dist/client/{productList-Vsguq5Xt.mjs → productList-PwYlZn0y.mjs} +3 -3
- package/dist/client/{propsDecoder-CD2pJ1WB.mjs → propsDecoder-BRWBiH7i.mjs} +225 -68
- package/dist/client/rendering/client.mjs +2266 -1267
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +5364 -1979
- package/dist/client/{shop-Dgxs-Q8F.mjs → shop-CMwZPYME.mjs} +8 -8
- package/dist/client/{shop-commerce-DJAhsTaT.mjs → shop-commerce-BuxsFate.mjs} +6 -6
- package/dist/client/{shop-commerce-store-CfCXltXW.mjs → shop-commerce-store-boYlEJ91.mjs} +1 -1
- package/dist/client/{shopShared-CmDcPXUt.mjs → shopShared-D2naaOes.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-CirrT2bM.mjs → useDiscountCodeUi-D9RHpVoj.mjs} +1 -1
- package/dist/client/{useEventFilters-CNZxlCcO.mjs → useEventFilters-igGiK1re.mjs} +6 -6
- package/dist/client/{usePolling-Baks_iBI.mjs → usePolling-CI7MbsFB.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +218 -1
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +218 -1
- package/dist/{previewAuthStore-CfquDtTh.mjs → previewAuthStore-a_cBD28m.mjs} +218 -1
- package/dist/{sdk-runtime-BfNiFeNJ.mjs → sdk-runtime-MBzD-GmP.mjs} +2 -2
- package/dist/{separator-BhAR_Xmf.mjs → separator-5ahRBC85.mjs} +1 -1
- package/dist/server/components.mjs +5218 -2529
- package/dist/server/config-validation.mjs +3112 -2210
- package/dist/server/config.mjs +3112 -2211
- package/dist/server/data.mjs +3758 -2277
- package/dist/server/index.mjs +224 -4
- package/dist/server/navigation.mjs +9 -3
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next.mjs +6468 -2749
- package/dist/server/page-converter.mjs +3524 -2635
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +5392 -2488
- package/dist/server/rendering.mjs +6241 -2851
- package/dist/server/routing.mjs +3414 -1826
- package/dist/server/server.mjs +4174 -2354
- package/dist/server/theme-bridge.mjs +9579 -8132
- package/dist/server/theme.mjs +313 -154
- package/dist/styles/index.css +1223 -31
- package/package.json +1 -1
- package/dist/_dts/preview-next/src/client/preview/typographySelectionInput.d.ts +0 -16
- package/dist/_dts/theme-core/src/palette/historicalThemePalette.d.ts +0 -44
- package/dist/_dts/theme-core/src/palette/legacyRuntimeProjection.d.ts +0 -55
- package/dist/_dts/theme-core/src/palette/legacySelection.d.ts +0 -45
- package/dist/_dts/theme-core/src/palette/paletteCompatibilityTransition.d.ts +0 -232
- package/dist/_dts/theme-core/src/site-styles/typographyPresets.d.ts +0 -234
|
@@ -364,12 +364,12 @@ export declare const formFieldSchema: z.ZodObject<{
|
|
|
364
364
|
date: "date";
|
|
365
365
|
time: "time";
|
|
366
366
|
email: "email";
|
|
367
|
+
url: "url";
|
|
367
368
|
text: "text";
|
|
368
369
|
textarea: "textarea";
|
|
369
370
|
select: "select";
|
|
370
371
|
checkbox: "checkbox";
|
|
371
372
|
radio: "radio";
|
|
372
|
-
url: "url";
|
|
373
373
|
consent: "consent";
|
|
374
374
|
tel: "tel";
|
|
375
375
|
}>;
|
|
@@ -425,12 +425,12 @@ declare const bookingQuestionScalarFieldSchema: z.ZodObject<{
|
|
|
425
425
|
date: "date";
|
|
426
426
|
time: "time";
|
|
427
427
|
email: "email";
|
|
428
|
+
url: "url";
|
|
428
429
|
text: "text";
|
|
429
430
|
textarea: "textarea";
|
|
430
431
|
select: "select";
|
|
431
432
|
checkbox: "checkbox";
|
|
432
433
|
radio: "radio";
|
|
433
|
-
url: "url";
|
|
434
434
|
tel: "tel";
|
|
435
435
|
}>;
|
|
436
436
|
}, z.core.$strict>;
|
|
@@ -481,12 +481,12 @@ export declare const bookingQuestionFieldSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
481
481
|
date: "date";
|
|
482
482
|
time: "time";
|
|
483
483
|
email: "email";
|
|
484
|
+
url: "url";
|
|
484
485
|
text: "text";
|
|
485
486
|
textarea: "textarea";
|
|
486
487
|
select: "select";
|
|
487
488
|
checkbox: "checkbox";
|
|
488
489
|
radio: "radio";
|
|
489
|
-
url: "url";
|
|
490
490
|
tel: "tel";
|
|
491
491
|
}>;
|
|
492
492
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -540,12 +540,12 @@ export declare const bookingQuestionsSectionSchema: z.ZodObject<{
|
|
|
540
540
|
date: "date";
|
|
541
541
|
time: "time";
|
|
542
542
|
email: "email";
|
|
543
|
+
url: "url";
|
|
543
544
|
text: "text";
|
|
544
545
|
textarea: "textarea";
|
|
545
546
|
select: "select";
|
|
546
547
|
checkbox: "checkbox";
|
|
547
548
|
radio: "radio";
|
|
548
|
-
url: "url";
|
|
549
549
|
tel: "tel";
|
|
550
550
|
}>;
|
|
551
551
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -602,12 +602,12 @@ export declare const bookingQuestionsDetailedSchemaSchema: z.ZodObject<{
|
|
|
602
602
|
date: "date";
|
|
603
603
|
time: "time";
|
|
604
604
|
email: "email";
|
|
605
|
+
url: "url";
|
|
605
606
|
text: "text";
|
|
606
607
|
textarea: "textarea";
|
|
607
608
|
select: "select";
|
|
608
609
|
checkbox: "checkbox";
|
|
609
610
|
radio: "radio";
|
|
610
|
-
url: "url";
|
|
611
611
|
tel: "tel";
|
|
612
612
|
}>;
|
|
613
613
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -646,12 +646,12 @@ export declare const formSchemaSchema: z.ZodObject<{
|
|
|
646
646
|
date: "date";
|
|
647
647
|
time: "time";
|
|
648
648
|
email: "email";
|
|
649
|
+
url: "url";
|
|
649
650
|
text: "text";
|
|
650
651
|
textarea: "textarea";
|
|
651
652
|
select: "select";
|
|
652
653
|
checkbox: "checkbox";
|
|
653
654
|
radio: "radio";
|
|
654
|
-
url: "url";
|
|
655
655
|
consent: "consent";
|
|
656
656
|
tel: "tel";
|
|
657
657
|
}>;
|
|
@@ -705,12 +705,12 @@ export declare const bookingQuestionsFlatSchemaSchema: z.ZodObject<{
|
|
|
705
705
|
date: "date";
|
|
706
706
|
time: "time";
|
|
707
707
|
email: "email";
|
|
708
|
+
url: "url";
|
|
708
709
|
text: "text";
|
|
709
710
|
textarea: "textarea";
|
|
710
711
|
select: "select";
|
|
711
712
|
checkbox: "checkbox";
|
|
712
713
|
radio: "radio";
|
|
713
|
-
url: "url";
|
|
714
714
|
tel: "tel";
|
|
715
715
|
}>;
|
|
716
716
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -763,12 +763,12 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
|
|
|
763
763
|
date: "date";
|
|
764
764
|
time: "time";
|
|
765
765
|
email: "email";
|
|
766
|
+
url: "url";
|
|
766
767
|
text: "text";
|
|
767
768
|
textarea: "textarea";
|
|
768
769
|
select: "select";
|
|
769
770
|
checkbox: "checkbox";
|
|
770
771
|
radio: "radio";
|
|
771
|
-
url: "url";
|
|
772
772
|
tel: "tel";
|
|
773
773
|
}>;
|
|
774
774
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -824,12 +824,12 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
|
|
|
824
824
|
date: "date";
|
|
825
825
|
time: "time";
|
|
826
826
|
email: "email";
|
|
827
|
+
url: "url";
|
|
827
828
|
text: "text";
|
|
828
829
|
textarea: "textarea";
|
|
829
830
|
select: "select";
|
|
830
831
|
checkbox: "checkbox";
|
|
831
832
|
radio: "radio";
|
|
832
|
-
url: "url";
|
|
833
833
|
tel: "tel";
|
|
834
834
|
}>;
|
|
835
835
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -900,12 +900,12 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
900
900
|
date: "date";
|
|
901
901
|
time: "time";
|
|
902
902
|
email: "email";
|
|
903
|
+
url: "url";
|
|
903
904
|
text: "text";
|
|
904
905
|
textarea: "textarea";
|
|
905
906
|
select: "select";
|
|
906
907
|
checkbox: "checkbox";
|
|
907
908
|
radio: "radio";
|
|
908
|
-
url: "url";
|
|
909
909
|
consent: "consent";
|
|
910
910
|
tel: "tel";
|
|
911
911
|
}>;
|
|
@@ -26,6 +26,11 @@ export type RichTextToolbarLayout = Readonly<{
|
|
|
26
26
|
kind: 'inline';
|
|
27
27
|
tone: 'light' | 'dark';
|
|
28
28
|
visibility: RichTextToolbarVisibility;
|
|
29
|
+
}> | Readonly<{
|
|
30
|
+
kind: 'external';
|
|
31
|
+
tone: 'light' | 'dark';
|
|
32
|
+
visibility: RichTextToolbarVisibility;
|
|
33
|
+
renderHost: (toolbar: ReactNode) => ReactNode;
|
|
29
34
|
}> | Readonly<{
|
|
30
35
|
kind: 'chrome';
|
|
31
36
|
tone: 'light' | 'dark';
|
|
@@ -54,6 +54,7 @@ export type BlockEditorProps = {
|
|
|
54
54
|
enableDeletion?: boolean;
|
|
55
55
|
onBlockSave?: (blockId: string, content: Record<string, unknown>) => void;
|
|
56
56
|
onBlocksChange?: (blocks: BlockItem[]) => void;
|
|
57
|
+
onStructuralRevisionChange?: (revision: string) => void;
|
|
57
58
|
theme?: Theme | null;
|
|
58
59
|
widgetOverrides?: Record<string, FieldWidgetComponent>;
|
|
59
60
|
headerLeftSlot?: ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SiteIconStyleGuideVersionId } from '../../../blocks/src/index';
|
|
2
2
|
import type { BlockItem, DraftsSlice, UiStore } from './types';
|
|
3
3
|
import { type GeneratedIconSetGenerateInput, type GeneratedIconSetGenerateResult } from './GeneratedIconSetDialog';
|
|
4
4
|
import { type GeneratedIconApplyState } from './generatedIconApplyCoordination';
|
|
@@ -31,12 +31,15 @@ export type GeneratedIconSetApplyResult = Readonly<{
|
|
|
31
31
|
kind: 'failed';
|
|
32
32
|
message: string;
|
|
33
33
|
}>;
|
|
34
|
-
export declare function GeneratedIconSetDialog({ open, onOpenChange, cards, styleGuideSummary, styleGuideEditHref, onGenerate, onApply, }: {
|
|
34
|
+
export declare function GeneratedIconSetDialog({ open, onOpenChange, cards, styleGuideSummary, styleGuideEditHref, generatedIconSizePx, onGeneratedIconSizeChange, hasStaleGeneratedIcons, onGenerate, onApply, }: {
|
|
35
35
|
open: boolean;
|
|
36
36
|
onOpenChange: (open: boolean) => void;
|
|
37
37
|
cards: readonly FeatureCardIconDialogCard[];
|
|
38
38
|
styleGuideSummary?: string | null;
|
|
39
39
|
styleGuideEditHref?: string | null;
|
|
40
|
+
generatedIconSizePx?: number;
|
|
41
|
+
onGeneratedIconSizeChange?: (value: number) => void;
|
|
42
|
+
hasStaleGeneratedIcons?: boolean;
|
|
40
43
|
onGenerate?: (input: GeneratedIconSetGenerateInput) => Promise<GeneratedIconSetGenerateResult>;
|
|
41
44
|
onApply?: (preview: GeneratedIconSetPreview) => GeneratedIconSetApplyResult | void | Promise<GeneratedIconSetApplyResult | void>;
|
|
42
45
|
}): import("react").JSX.Element;
|
|
@@ -10,7 +10,7 @@ type UiStore = {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export declare function useBlockCreation({ allowCreation, apiClient, siteId, owner, blockList, setBlockList, onBlocksChange, triggerFocus, uiStore, }: {
|
|
13
|
+
export declare function useBlockCreation({ allowCreation, apiClient, siteId, owner, blockList, setBlockList, onBlocksChange, triggerFocus, uiStore, onStructuralRevisionChange, }: {
|
|
14
14
|
allowCreation: boolean;
|
|
15
15
|
apiClient: ApiClient;
|
|
16
16
|
siteId: string;
|
|
@@ -20,6 +20,7 @@ export declare function useBlockCreation({ allowCreation, apiClient, siteId, own
|
|
|
20
20
|
onBlocksChange?: (blocks: BlockItem[]) => void;
|
|
21
21
|
triggerFocus?: (target: BlockFocusTarget) => void;
|
|
22
22
|
uiStore?: UiStore | null;
|
|
23
|
+
onStructuralRevisionChange?: (revision: string) => void;
|
|
23
24
|
}): {
|
|
24
25
|
pickerOpen: boolean;
|
|
25
26
|
creatingBlockName: string | null;
|
|
@@ -9,7 +9,7 @@ type UiStore = {
|
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export declare function useBlockDuplication({ allowCreation, apiClient, siteId, owner, blockList, setBlockList, onBlocksChange, triggerFocus, setErrorMessage, uiStore, }: {
|
|
12
|
+
export declare function useBlockDuplication({ allowCreation, apiClient, siteId, owner, blockList, setBlockList, onBlocksChange, triggerFocus, setErrorMessage, uiStore, onStructuralRevisionChange, }: {
|
|
13
13
|
allowCreation: boolean;
|
|
14
14
|
apiClient: ApiClient;
|
|
15
15
|
siteId: string;
|
|
@@ -20,6 +20,7 @@ export declare function useBlockDuplication({ allowCreation, apiClient, siteId,
|
|
|
20
20
|
triggerFocus?: (target: BlockFocusTarget) => void;
|
|
21
21
|
setErrorMessage: (msg: string | null) => void;
|
|
22
22
|
uiStore?: UiStore | null;
|
|
23
|
+
onStructuralRevisionChange?: (revision: string) => void;
|
|
23
24
|
}): {
|
|
24
25
|
duplicatingBlockId: string | null;
|
|
25
26
|
duplicateBlock: (blockId: string) => Promise<void>;
|
|
@@ -15,7 +15,7 @@ type UiStore = {
|
|
|
15
15
|
};
|
|
16
16
|
subscribe: (listener: () => void) => () => void;
|
|
17
17
|
};
|
|
18
|
-
export declare function useBlockReorder({ allowReordering, apiClient, siteId, owner, blockList, setBlockList, onBlocksChange, setErrorMessage, uiStore, }: {
|
|
18
|
+
export declare function useBlockReorder({ allowReordering, apiClient, siteId, owner, blockList, setBlockList, onBlocksChange, setErrorMessage, uiStore, onStructuralRevisionChange, }: {
|
|
19
19
|
allowReordering: boolean;
|
|
20
20
|
apiClient: ApiClient;
|
|
21
21
|
siteId: string;
|
|
@@ -25,6 +25,7 @@ export declare function useBlockReorder({ allowReordering, apiClient, siteId, ow
|
|
|
25
25
|
onBlocksChange?: (blocks: BlockItem[]) => void;
|
|
26
26
|
setErrorMessage: (msg: string | null) => void;
|
|
27
27
|
uiStore?: UiStore | null;
|
|
28
|
+
onStructuralRevisionChange?: (revision: string) => void;
|
|
28
29
|
}): {
|
|
29
30
|
reorderId: string | null;
|
|
30
31
|
handleMove: (blockId: string, direction: number) => void;
|
|
@@ -7,6 +7,11 @@ export type BlockEditorOwner = Readonly<{
|
|
|
7
7
|
type: string;
|
|
8
8
|
entryId: string;
|
|
9
9
|
slotKey: string;
|
|
10
|
+
}> | Readonly<{
|
|
11
|
+
kind: 'surface-slot';
|
|
12
|
+
pageSurfaceId: string;
|
|
13
|
+
slotKey: string;
|
|
14
|
+
compositionHash: string;
|
|
10
15
|
}>;
|
|
11
16
|
export type CreateEditableBlockInput = Readonly<{
|
|
12
17
|
kind: string;
|
|
@@ -18,6 +23,10 @@ export declare function blockEditorOwnerKey(owner: BlockEditorOwner): string;
|
|
|
18
23
|
export declare function createEditableBlockForOwner(apiClient: ApiClient, siteId: string, owner: BlockEditorOwner, input: CreateEditableBlockInput): Promise<{
|
|
19
24
|
ok: boolean;
|
|
20
25
|
block: Record<string, unknown>;
|
|
26
|
+
} | {
|
|
27
|
+
ok: boolean;
|
|
28
|
+
block: import("../../../api/src/index").BlockListItem;
|
|
29
|
+
compositionHash: string;
|
|
21
30
|
}>;
|
|
22
31
|
export declare function reorderEditableBlocksForOwner(apiClient: ApiClient, siteId: string, owner: BlockEditorOwner, blockIds: string[]): Promise<{
|
|
23
32
|
ok: boolean;
|
|
@@ -25,3 +34,4 @@ export declare function reorderEditableBlocksForOwner(apiClient: ApiClient, site
|
|
|
25
34
|
export declare function deleteEditableBlockForOwner(apiClient: ApiClient, siteId: string, owner: BlockEditorOwner, blockId: string): Promise<{
|
|
26
35
|
ok: boolean;
|
|
27
36
|
}>;
|
|
37
|
+
export declare function surfaceCompositionHashFromResponse(response: unknown): string | null;
|
|
@@ -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
|
+
optimisticHash?: string | null;
|
|
10
11
|
};
|
|
11
12
|
export type DraftBlockSnapshot = EditorStructuralDraftSnapshot;
|
|
12
13
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './types';
|
|
2
2
|
export * from './fileDomain';
|
|
3
3
|
export * from './fileStorage';
|
|
4
|
+
export * from './storagePathDomain';
|
|
4
5
|
export * from './fileSafety';
|
|
5
6
|
export * from './filePersistence';
|
|
6
7
|
export * from './fileAssetLegacyProjection';
|
|
@@ -26,7 +27,7 @@ export * from './classifyAllPlanning';
|
|
|
26
27
|
export * from './mediaSettingsState';
|
|
27
28
|
export * from './videoSlotPolicy';
|
|
28
29
|
export * from './identifiers';
|
|
29
|
-
export { getImageUrl, getDirectImageUrl, getDirectImageUrlForRelativePath, getDirectImageUrlForSiteScopedPath, getDirectImageUrlForBucketPath,
|
|
30
|
+
export { getImageUrl, getDirectImageUrl, getDirectImageUrlForRelativePath, getDirectImageUrlForSiteScopedPath, getDirectImageUrlForBucketPath, getDirectImageUrlForMediaAsset, isSiteScopedDirectImageStoragePath, type DirectImageMediaAsset, type DirectImageUrlOptions, type DirectImageUrlPathTarget, type ImageProxyFit, type ImageProxyParams, } from './url';
|
|
30
31
|
export { isSameTransformRect, isSameHotspot, type HotspotLike } from './compare';
|
|
31
32
|
export { asRecord, isRecord } from './typeGuards';
|
|
32
33
|
export { emitMediaCropDebug, isMediaCropDebugEnabled } from './cropDebug';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { RelativeStoragePath as CoreRelativeStoragePath, SiteScopedStoragePath as CoreSiteScopedStoragePath } from '../../core/src/index';
|
|
2
|
+
declare const __storagePathSiteBrand: unique symbol;
|
|
3
|
+
type SiteScopedStoragePathBrand<TSiteId extends string> = Readonly<{
|
|
4
|
+
kind: 'SiteScopedStoragePath';
|
|
5
|
+
siteId: TSiteId;
|
|
6
|
+
}>;
|
|
7
|
+
export type RelativeStoragePath = CoreRelativeStoragePath;
|
|
8
|
+
export type SiteScopedStoragePath<TSiteId extends string = string> = CoreSiteScopedStoragePath & {
|
|
9
|
+
readonly [__storagePathSiteBrand]: SiteScopedStoragePathBrand<TSiteId>;
|
|
10
|
+
};
|
|
11
|
+
export type StoragePathForSite<TSiteId extends string = string> = Readonly<{
|
|
12
|
+
relativePath: RelativeStoragePath;
|
|
13
|
+
fullPath: SiteScopedStoragePath<TSiteId>;
|
|
14
|
+
}>;
|
|
15
|
+
export type StoragePathParseError = {
|
|
16
|
+
tag: 'MISSING';
|
|
17
|
+
} | {
|
|
18
|
+
tag: 'EMPTY';
|
|
19
|
+
} | {
|
|
20
|
+
tag: 'LEADING_SLASH';
|
|
21
|
+
} | {
|
|
22
|
+
tag: 'DOUBLE_SLASH';
|
|
23
|
+
} | {
|
|
24
|
+
tag: 'TRAVERSAL';
|
|
25
|
+
} | {
|
|
26
|
+
tag: 'SITE_SCOPED_PATH';
|
|
27
|
+
} | {
|
|
28
|
+
tag: 'INVALID_SITE_PREFIX';
|
|
29
|
+
expectedPrefix: string;
|
|
30
|
+
};
|
|
31
|
+
export type StoragePathParseResult<T> = {
|
|
32
|
+
ok: true;
|
|
33
|
+
value: T;
|
|
34
|
+
} | {
|
|
35
|
+
ok: false;
|
|
36
|
+
error: StoragePathParseError;
|
|
37
|
+
};
|
|
38
|
+
export declare function unwrapRelativeStoragePath(value: RelativeStoragePath): string;
|
|
39
|
+
export declare function unwrapSiteScopedStoragePath<TSiteId extends string>(value: SiteScopedStoragePath<TSiteId>): string;
|
|
40
|
+
export declare function parseRelativeStoragePath(value: unknown): StoragePathParseResult<RelativeStoragePath>;
|
|
41
|
+
export declare function assertRelativeStoragePath(value: string): RelativeStoragePath;
|
|
42
|
+
export declare function toSiteScopedStoragePath<TSiteId extends string>(siteId: TSiteId, relativePath: RelativeStoragePath): SiteScopedStoragePath<TSiteId>;
|
|
43
|
+
export declare function normalizeRelativeStoragePathForSite<TSiteId extends string>(siteId: TSiteId, value: unknown): StoragePathParseResult<StoragePathForSite<TSiteId>>;
|
|
44
|
+
export declare function normalizeAmbiguousStoragePathForSite<TSiteId extends string>(siteId: TSiteId, value: unknown): StoragePathParseResult<StoragePathForSite<TSiteId>>;
|
|
45
|
+
export declare function parseSiteScopedStoragePathForSite<TSiteId extends string>(siteId: TSiteId, value: unknown): StoragePathParseResult<SiteScopedStoragePath<TSiteId>>;
|
|
46
|
+
export declare function assertSiteScopedStoragePathForSite<TSiteId extends string>(siteId: TSiteId, value: string): SiteScopedStoragePath<TSiteId>;
|
|
47
|
+
export {};
|
|
@@ -25,31 +25,11 @@ export type DirectImageUrlPathTarget = Readonly<{
|
|
|
25
25
|
kind: 'bucket-scoped';
|
|
26
26
|
storagePath: string;
|
|
27
27
|
}>;
|
|
28
|
-
export declare function isRelativeDirectImageStoragePath(storagePath: string): storagePath is RelativeStoragePath;
|
|
29
28
|
export declare function isSiteScopedDirectImageStoragePath(storagePath: string): storagePath is SiteScopedStoragePath;
|
|
29
|
+
export declare function getDirectImageUrl(supabaseUrl: string, target: DirectImageUrlPathTarget, storageBucket?: string, options?: DirectImageUrlOptions): string;
|
|
30
30
|
export declare function getDirectImageUrlForRelativePath(supabaseUrl: string, storagePath: RelativeStoragePath, siteId: string, storageBucket?: string, options?: DirectImageUrlOptions): string;
|
|
31
31
|
export declare function getDirectImageUrlForSiteScopedPath(supabaseUrl: string, storagePath: SiteScopedStoragePath, storageBucket?: string, options?: DirectImageUrlOptions): string;
|
|
32
32
|
export declare function getDirectImageUrlForBucketPath(supabaseUrl: string, storagePath: string, storageBucket?: string, options?: DirectImageUrlOptions): string;
|
|
33
|
-
export declare function getDirectImageUrlForStoragePath(supabaseUrl: string, storagePath: RelativeStoragePath | SiteScopedStoragePath | string, storageBucket?: string, siteId?: string, options?: DirectImageUrlOptions): string;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Prefer `getDirectImageUrlForMediaAsset`, `getDirectImageUrlForRelativePath`,
|
|
36
|
-
* `getDirectImageUrlForSiteScopedPath`, or `getDirectImageUrlForBucketPath` so path shape
|
|
37
|
-
* is explicit at the call site.
|
|
38
|
-
*
|
|
39
|
-
* Build a direct Supabase storage URL for an image.
|
|
40
|
-
*
|
|
41
|
-
* For images with transform options, uses the render endpoint which applies
|
|
42
|
-
* server-side transformations. For images without transforms (or SVGs),
|
|
43
|
-
* returns the direct public object URL.
|
|
44
|
-
*
|
|
45
|
-
* @param supabaseUrl - Supabase project URL (e.g., https://xxx.supabase.co)
|
|
46
|
-
* @param storagePath - Relative path within the bucket (e.g., originals/2024/12/img.png)
|
|
47
|
-
* @param storageBucket - Storage bucket name (default: 'media')
|
|
48
|
-
* @param siteId - Site UUID to prepend as path prefix
|
|
49
|
-
* @param options - Optional transform parameters
|
|
50
|
-
* @returns Direct URL to the image
|
|
51
|
-
*/
|
|
52
|
-
export declare function getDirectImageUrl(supabaseUrl: string, storagePath: RelativeStoragePath | SiteScopedStoragePath | string, storageBucket?: string, siteId?: string, options?: DirectImageUrlOptions): string;
|
|
53
33
|
export type DirectImageMediaAsset = Pick<MediaAsset, 'storageBucket' | 'storagePath'>;
|
|
54
34
|
export declare function getDirectImageUrlForMediaAsset(supabaseUrl: string, asset: DirectImageMediaAsset, options?: DirectImageUrlOptions): string;
|
|
55
35
|
export type ImageProxyFit = 'clip' | 'crop' | 'max';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export type PathSegment = string | number;
|
|
2
|
+
export declare class UnsafePathSegmentError extends Error {
|
|
3
|
+
readonly segment: string;
|
|
4
|
+
constructor(segment: string);
|
|
5
|
+
}
|
|
6
|
+
export declare function isUnsafePathSegment(segment: PathSegment): boolean;
|
|
2
7
|
export declare function parsePath(path: string | Array<PathSegment>): Array<PathSegment>;
|
|
3
8
|
export declare function segmentsToPath(segments: Array<PathSegment>): string | undefined;
|
|
4
9
|
export declare function siblingPath(path: string, siblingFieldPath: string): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BlockItem } from '../../../../editor-blocks/src/index';
|
|
2
|
-
import type { DesignRuntimeRules, PageDesignEditorReadModel, SurfaceResolutionContext } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
2
|
+
import type { DesignRuntimeRules, ComponentRuntimeRules, PageDesignEditorReadModel, SurfaceResolutionContext } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
3
3
|
import type { PreviewPageDesignEditorState } from '../preview/PageDesignEditorStateContext';
|
|
4
4
|
import { type RuntimeContentDecorationProjection } from './previewProjection';
|
|
5
5
|
export type RuntimePreviewSource = Readonly<{
|
|
@@ -9,13 +9,15 @@ export type RuntimePreviewSource = Readonly<{
|
|
|
9
9
|
editorModel: PageDesignEditorReadModel;
|
|
10
10
|
surfaceResolutionContext: SurfaceResolutionContext;
|
|
11
11
|
designRules?: DesignRuntimeRules;
|
|
12
|
+
componentRules?: ComponentRuntimeRules;
|
|
12
13
|
}>;
|
|
13
14
|
export declare function applyPageDesignRuntimeFieldsToBlockItems(blockItems: readonly BlockItem[], source: RuntimePreviewSource): BlockItem[];
|
|
14
15
|
export declare function applyPageDesignRuntimeFieldsToBlockContent(block: BlockItem, content: Record<string, unknown> | null, source: RuntimePreviewSource): Record<string, unknown> | null;
|
|
15
|
-
export declare function buildPageDesignRuntimeFieldsByBlockId(editorModel: PageDesignEditorReadModel, surfaceResolutionContext: SurfaceResolutionContext, designRules?: DesignRuntimeRules): RuntimeContentDecorationProjection['fieldsByBlockId'];
|
|
16
|
+
export declare function buildPageDesignRuntimeFieldsByBlockId(editorModel: PageDesignEditorReadModel, surfaceResolutionContext: SurfaceResolutionContext, designRules?: DesignRuntimeRules, componentRules?: ComponentRuntimeRules): RuntimeContentDecorationProjection['fieldsByBlockId'];
|
|
16
17
|
export declare function pageDesignRuntimeProjectionFromSource(source: RuntimePreviewSource): RuntimeContentDecorationProjection | null;
|
|
17
18
|
export declare function resolveRuntimePreviewSource(input: Readonly<{
|
|
18
19
|
pageDesignState: PreviewPageDesignEditorState;
|
|
19
20
|
surfaceResolutionContext: SurfaceResolutionContext | null;
|
|
20
21
|
designRules?: DesignRuntimeRules;
|
|
22
|
+
componentRules?: ComponentRuntimeRules;
|
|
21
23
|
}>): RuntimePreviewSource;
|
package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BlockItem } from '../../../../../editor-blocks/src/index';
|
|
2
2
|
import { type DesignRuntimeRules, type PageDesignEditorReadModel, type RuntimeContentAdjacency, type SurfaceResolutionContext } from '../../../../../theme-core/src/site-styles/previewCompiler';
|
|
3
3
|
import type { CanonicalBlockContent, PreviewRenderContent, RuntimeContentDecorationProjection } from './types';
|
|
4
|
-
|
|
4
|
+
import type { ComponentRuntimeRules } from '../../../../../theme-core/src/site-styles/previewCompiler';
|
|
5
|
+
export declare function runtimeContentDecorationProjectionFromEditorModel(editorModel: PageDesignEditorReadModel, surfaceResolutionContext: SurfaceResolutionContext, designRules?: DesignRuntimeRules, componentRules?: ComponentRuntimeRules): RuntimeContentDecorationProjection;
|
|
5
6
|
export declare function applyRuntimeContentDecorationProjection(block: BlockItem, content: CanonicalBlockContent | PreviewRenderContent | null, projection: RuntimeContentDecorationProjection, adjacency?: Pick<RuntimeContentAdjacency, 'nextContent'>): PreviewRenderContent;
|
|
@@ -23,6 +23,7 @@ type PageBlockEditorPanelProps = {
|
|
|
23
23
|
linkedEntrySection?: PreviewLinkedEntrySidebarSection | null;
|
|
24
24
|
designPanel?: ReactNode;
|
|
25
25
|
designOpenRequestId?: number | null;
|
|
26
|
+
designTakeoverActive?: boolean;
|
|
26
27
|
sdkConfig?: SdkConfigForBlockPicker | null;
|
|
27
28
|
mediaAssets?: MediaAssetIndexItem[];
|
|
28
29
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
@@ -33,5 +34,5 @@ type PageBlockEditorPanelProps = {
|
|
|
33
34
|
onViewportWidthChange: (width: ViewportWidth) => void;
|
|
34
35
|
onZoomChange: (zoom: ZoomLevel) => void;
|
|
35
36
|
};
|
|
36
|
-
export declare function PageBlockEditorPanel({ siteId, pageId, dashboardBaseUrl, theme, apiClient, bearerToken, supabaseUrl, blockItems, uiStoreForBlockEditor, blockEditorRef, onBlocksChange, metadataPanel, linkedEntrySection, designPanel, designOpenRequestId, sdkConfig, mediaAssets, bookingOfferingPresets, viewportMode, viewportWidth, zoom, onViewportModeChange, onViewportWidthChange, onZoomChange, }: PageBlockEditorPanelProps): React.JSX.Element;
|
|
37
|
+
export declare function PageBlockEditorPanel({ siteId, pageId, dashboardBaseUrl, theme, apiClient, bearerToken, supabaseUrl, blockItems, uiStoreForBlockEditor, blockEditorRef, onBlocksChange, metadataPanel, linkedEntrySection, designPanel, designOpenRequestId, designTakeoverActive, sdkConfig, mediaAssets, bookingOfferingPresets, viewportMode, viewportWidth, zoom, onViewportModeChange, onViewportWidthChange, onZoomChange, }: PageBlockEditorPanelProps): React.JSX.Element;
|
|
37
38
|
export {};
|
|
@@ -18,4 +18,9 @@ export declare function PreviewChromeFloatingControl({ anchorSelector, anchorTar
|
|
|
18
18
|
forceVisible?: boolean;
|
|
19
19
|
children: ReactNode;
|
|
20
20
|
}): React.JSX.Element;
|
|
21
|
+
export declare function PreviewChromeFloatingBar({ anchorSelector, gapPx, children, }: {
|
|
22
|
+
anchorSelector: string;
|
|
23
|
+
gapPx?: number;
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
}): React.JSX.Element;
|
|
21
26
|
export {};
|
|
@@ -6,8 +6,7 @@ import type { EntrySubrouteContextData, BookingOfferingPresetSummary, MediaAsset
|
|
|
6
6
|
import { type ContentTypeSchema } from "../../../../content-model/src/index";
|
|
7
7
|
import { type ZoomLevel } from "../../../../content-editor/src/index";
|
|
8
8
|
import type { ButtonPersonalityId } from "../../../../theme-core/src/buttons/index";
|
|
9
|
-
import type {
|
|
10
|
-
import type { FooterSelectionContext, FooterLookId, HeaderLayoutId, HeaderSelectionContext, HeaderLookId, HeaderStyleId, TypographyPresetId } from "../../../../theme-core/src/site-styles/index";
|
|
9
|
+
import type { FooterSelectionContext, FooterLookId, HeaderLayoutId, HeaderSelectionContext, HeaderLookId, HeaderStyleId } from "../../../../theme-core/src/site-styles/index";
|
|
11
10
|
import type { PreviewDesignRow } from "./sidebarTabPreference";
|
|
12
11
|
import type { ViewportMode, ViewportWidth } from "./PreviewViewportControls";
|
|
13
12
|
import { type SiteStyleAccess } from "./siteStyleAccess";
|
|
@@ -37,14 +36,9 @@ export type PreviewEditorSidebarProps = {
|
|
|
37
36
|
themeSelectionUpdatedAt?: string | null;
|
|
38
37
|
/** Persisted Style configurator selections (Phase C / E). */
|
|
39
38
|
themeSelectionButtonPersonalityId?: ButtonPersonalityId | null;
|
|
40
|
-
runtimePaletteState
|
|
41
|
-
themeSelectionPaletteVariantId?: CuratedPaletteId | null;
|
|
42
|
-
themeSelectionPaletteOverrides?: PaletteOverrides | null;
|
|
39
|
+
runtimePaletteState: import('./styleConfiguratorSnapshot').PreviewRuntimePaletteState;
|
|
43
40
|
themeSelectionHeaderLayoutId?: HeaderLayoutId | null;
|
|
44
41
|
themeSelectionHeaderStyleId?: HeaderStyleId | null;
|
|
45
|
-
themeSelectionTypographyPresetId?: TypographyPresetId | null;
|
|
46
|
-
themeSelectionTypographyBodyFontOverride?: string | null;
|
|
47
|
-
themeSelectionTypographyHeadingFontOverride?: string | null;
|
|
48
42
|
themeSelectionHeaderLookId?: HeaderLookId | null;
|
|
49
43
|
themeSelectionFooterLookId?: FooterLookId | null;
|
|
50
44
|
themeSelectionHeaderContext?: Partial<HeaderSelectionContext>;
|
|
@@ -65,6 +59,7 @@ export type PreviewEditorSidebarProps = {
|
|
|
65
59
|
activeTab: PreviewEditorSidebarTab;
|
|
66
60
|
onTabChange: (tab: PreviewEditorSidebarTab) => void;
|
|
67
61
|
onClose: () => void;
|
|
62
|
+
onFooterSaved?: () => void;
|
|
68
63
|
viewportMode: ViewportMode;
|
|
69
64
|
viewportWidth: ViewportWidth;
|
|
70
65
|
zoom: ZoomLevel;
|
|
@@ -72,4 +67,4 @@ export type PreviewEditorSidebarProps = {
|
|
|
72
67
|
onViewportWidthChange: (width: ViewportWidth) => void;
|
|
73
68
|
onZoomChange: (zoom: ZoomLevel) => void;
|
|
74
69
|
};
|
|
75
|
-
export declare function PreviewEditorSidebar({ surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, theme, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, runtimePaletteState,
|
|
70
|
+
export declare function PreviewEditorSidebar({ surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, theme, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, runtimePaletteState, themeSelectionHeaderLayoutId, themeSelectionHeaderStyleId, themeSelectionHeaderLookId, themeSelectionFooterLookId, themeSelectionHeaderContext, themeSelectionFooterContext, designRowRequest, apiClient, bearerToken, supabaseUrl, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, siteStyleAccess, activeTab, onTabChange, onClose, onFooterSaved, viewportMode, viewportWidth, zoom, onViewportModeChange, onViewportWidthChange, onZoomChange, }: PreviewEditorSidebarProps): React.JSX.Element;
|
|
@@ -10,6 +10,7 @@ export type PreviewBlock = {
|
|
|
10
10
|
draftContent?: Record<string, unknown> | null;
|
|
11
11
|
publishedContent?: Record<string, unknown> | null;
|
|
12
12
|
bindings?: Record<string, unknown> | null;
|
|
13
|
+
optimisticHash?: string | null;
|
|
13
14
|
};
|
|
14
15
|
export type PreviewPageMetadata = {
|
|
15
16
|
draftTitle: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { type ComponentProps, type ReactNode } from 'react';
|
|
2
2
|
import { BlockApiProvider } from '../../../../blocks/src/client';
|
|
3
3
|
import type { ButtonPersonalityId } from '../../../../theme-core/src/buttons/index';
|
|
4
|
-
import type {
|
|
5
|
-
import type { FooterSelectionContext, FooterLookId, HeaderLayoutId, HeaderSelectionContext, HeaderLookId, HeaderStyleId, TypographyPresetId } from '../../../../theme-core/src/site-styles/index';
|
|
4
|
+
import type { FooterSelectionContext, FooterLookId, HeaderLayoutId, HeaderSelectionContext, HeaderLookId, HeaderStyleId } from '../../../../theme-core/src/site-styles/index';
|
|
6
5
|
import type { EntrySubrouteContextData, BookingOfferingPresetSummary, MediaAssetIndexItem, Theme } from '../../../../blocks/src/index';
|
|
7
6
|
import type { ContentTypeSchema } from '../../../../content-model/src/index';
|
|
8
7
|
import type { SdkConfigForBlockPicker } from '../../../../editor-blocks/src/index';
|
|
@@ -39,18 +38,13 @@ export type PreviewShellProps = {
|
|
|
39
38
|
themeSelectionUpdatedAt?: string | null;
|
|
40
39
|
/**
|
|
41
40
|
* Persisted Style configurator selections. Forwarded into StyleConfigurator
|
|
42
|
-
* so reload renders the user's saved button personality
|
|
43
|
-
*
|
|
41
|
+
* so reload renders the user's saved button personality and authoritative
|
|
42
|
+
* complete palette state.
|
|
44
43
|
*/
|
|
45
44
|
themeSelectionButtonPersonalityId?: ButtonPersonalityId | null;
|
|
46
|
-
runtimePaletteState
|
|
47
|
-
themeSelectionPaletteVariantId?: CuratedPaletteId | null;
|
|
48
|
-
themeSelectionPaletteOverrides?: PaletteOverrides | null;
|
|
45
|
+
runtimePaletteState: import('./styleConfiguratorSnapshot').PreviewRuntimePaletteState;
|
|
49
46
|
themeSelectionHeaderLayoutId?: HeaderLayoutId | null;
|
|
50
47
|
themeSelectionHeaderStyleId?: HeaderStyleId | null;
|
|
51
|
-
themeSelectionTypographyPresetId?: TypographyPresetId | null;
|
|
52
|
-
themeSelectionTypographyBodyFontOverride?: string | null;
|
|
53
|
-
themeSelectionTypographyHeadingFontOverride?: string | null;
|
|
54
48
|
themeSelectionHeaderLookId?: HeaderLookId | null;
|
|
55
49
|
themeSelectionFooterLookId?: FooterLookId | null;
|
|
56
50
|
themeSelectionHeaderContext?: Partial<HeaderSelectionContext>;
|
|
@@ -75,9 +69,12 @@ export type PreviewShellProps = {
|
|
|
75
69
|
supabaseUrl?: string;
|
|
76
70
|
themeRuntime?: PreviewThemeRuntime;
|
|
77
71
|
designEditorEligibility?: PreviewDesignEditorEligibility;
|
|
72
|
+
/** Hides site-style controls for runtimes without palette authority. */
|
|
73
|
+
hideSiteStyleConfigurator?: boolean;
|
|
78
74
|
baseFetch?: BaseFetch;
|
|
75
|
+
onFooterSaved?: () => void;
|
|
79
76
|
};
|
|
80
|
-
export declare function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl, surfaceId, theme, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, runtimePaletteState,
|
|
77
|
+
export declare function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl, surfaceId, theme, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, runtimePaletteState, themeSelectionHeaderLayoutId, themeSelectionHeaderStyleId, themeSelectionHeaderLookId, themeSelectionFooterLookId, themeSelectionHeaderContext, themeSelectionFooterContext, pageId, routeId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, initialStatus, initialBlocks, pageMetadata, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, supabaseUrl, themeRuntime, designEditorEligibility, hideSiteStyleConfigurator, baseFetch, onFooterSaved, }: PreviewShellProps): React.JSX.Element;
|
|
81
78
|
export declare function defaultDesignEditorEligibility(input: Readonly<{
|
|
82
79
|
pageId: string | null;
|
|
83
80
|
entryData?: PreviewContentEntryData | null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
2
|
import { type EntrySubrouteContextData, type BookingOfferingPresetSummary, type MediaAssetIndexItem, type Theme } from "../../../../blocks/src/index";
|
|
3
3
|
import type { ButtonPersonalityId } from "../../../../theme-core/src/buttons/index";
|
|
4
|
-
import type {
|
|
5
|
-
import type { FooterSelectionContext, HeaderSelectionContext, FooterLookId, HeaderLayoutId, HeaderLookId, HeaderStyleId, TypographyPresetId } from "../../../../theme-core/src/site-styles/index";
|
|
4
|
+
import type { FooterSelectionContext, HeaderSelectionContext, FooterLookId, HeaderLayoutId, HeaderLookId, HeaderStyleId } from "../../../../theme-core/src/site-styles/index";
|
|
6
5
|
import type { ContentTypeSchema } from "../../../../content-model/src/index";
|
|
7
6
|
import type { ApiClient } from "../../../../api/src/request";
|
|
8
7
|
import type { SdkConfigForBlockPicker } from "../../../../editor-blocks/src/index";
|
|
@@ -29,14 +28,9 @@ export type PreviewShellLayoutProps = {
|
|
|
29
28
|
themeSelectionVersion?: number | null;
|
|
30
29
|
themeSelectionUpdatedAt?: string | null;
|
|
31
30
|
themeSelectionButtonPersonalityId?: ButtonPersonalityId | null;
|
|
32
|
-
runtimePaletteState
|
|
33
|
-
themeSelectionPaletteVariantId?: CuratedPaletteId | null;
|
|
34
|
-
themeSelectionPaletteOverrides?: PaletteOverrides | null;
|
|
31
|
+
runtimePaletteState: import('./styleConfiguratorSnapshot').PreviewRuntimePaletteState;
|
|
35
32
|
themeSelectionHeaderLayoutId?: HeaderLayoutId | null;
|
|
36
33
|
themeSelectionHeaderStyleId?: HeaderStyleId | null;
|
|
37
|
-
themeSelectionTypographyPresetId?: TypographyPresetId | null;
|
|
38
|
-
themeSelectionTypographyBodyFontOverride?: string | null;
|
|
39
|
-
themeSelectionTypographyHeadingFontOverride?: string | null;
|
|
40
34
|
themeSelectionHeaderLookId?: HeaderLookId | null;
|
|
41
35
|
themeSelectionFooterLookId?: FooterLookId | null;
|
|
42
36
|
themeSelectionHeaderContext?: Partial<HeaderSelectionContext>;
|
|
@@ -51,5 +45,6 @@ export type PreviewShellLayoutProps = {
|
|
|
51
45
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
52
46
|
themeRuntime?: PreviewThemeRuntime;
|
|
53
47
|
siteStyleAccess?: SiteStyleAccess;
|
|
48
|
+
onFooterSaved?: () => void;
|
|
54
49
|
};
|
|
55
|
-
export declare function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, apiClient, bearerToken, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, runtimePaletteState,
|
|
50
|
+
export declare function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseUrl, pageId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, apiClient, bearerToken, themeId, themeSelectionId, themeSelectionVersion, themeSelectionUpdatedAt, themeSelectionButtonPersonalityId, runtimePaletteState, themeSelectionHeaderLayoutId, themeSelectionHeaderStyleId, themeSelectionHeaderLookId, themeSelectionFooterLookId, themeSelectionHeaderContext, themeSelectionFooterContext, supabaseUrl, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, themeRuntime, siteStyleAccess, onFooterSaved, }: PreviewShellLayoutProps): React.JSX.Element;
|
|
@@ -2,8 +2,7 @@ import React, { type ReactNode } from 'react';
|
|
|
2
2
|
import { type ApiClient } from '../../../../api/src/request';
|
|
3
3
|
import type { Theme } from '../../../../blocks/src/index';
|
|
4
4
|
import type { ButtonPersonalityId } from '../../../../theme-core/src/buttons/index';
|
|
5
|
-
import type {
|
|
6
|
-
import type { BrandDisplayMode, FooterLayoutId, FooterLookId, HeaderNavFontSizePreference, HeaderNavTypographyPreference, FooterSelectionContext, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId, LogoSizePolicy, SiteChromeBackgroundColorToken, SiteChromeBackgroundOverride, TypographyPresetId } from '../../../../theme-core/src/site-styles/index';
|
|
5
|
+
import type { BrandDisplayMode, FooterLayoutId, FooterLookId, HeaderNavFontSizePreference, HeaderNavTypographyPreference, FooterSelectionContext, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId, LogoSizePolicy, SiteChromeBackgroundColorToken, SiteChromeBackgroundOverride } from '../../../../theme-core/src/site-styles/index';
|
|
7
6
|
import { headerNavFontSizeOptions, headerNavTypographyOptions } from '../../../../theme-core/src/site-styles/index';
|
|
8
7
|
import { type StyleConfiguratorHistoryEntry } from './StyleConfigurator.state';
|
|
9
8
|
import type { SiteStyleAccess } from './siteStyleAccess';
|
|
@@ -118,12 +117,9 @@ export type SiteChromeCustomizeProviderProps = Readonly<{
|
|
|
118
117
|
selectionVersion?: number | null;
|
|
119
118
|
selectionUpdatedAt?: string | null;
|
|
120
119
|
buttonPersonalityId: ButtonPersonalityId | null;
|
|
121
|
-
runtimePaletteState
|
|
120
|
+
runtimePaletteState: import('./styleConfiguratorSnapshot').PreviewRuntimePaletteState;
|
|
122
121
|
headerLayoutId?: HeaderLayoutId | null;
|
|
123
122
|
headerStyleId?: HeaderStyleId | null;
|
|
124
|
-
typographyPresetId?: TypographyPresetId | null;
|
|
125
|
-
typographyBodyFontOverride?: string | null;
|
|
126
|
-
typographyHeadingFontOverride?: string | null;
|
|
127
123
|
headerLookId?: HeaderLookId | null;
|
|
128
124
|
footerLookId?: FooterLookId | null;
|
|
129
125
|
}> & Readonly<Record<string, unknown>>;
|