@riverbankcms/sdk 0.130.0 → 0.130.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +85 -0
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DiEpbOdw.mjs → PreviewEditorSidebar-BY-1QdE2.mjs} +18 -15
- package/dist/{PreviewEditorUI-C6MvxnIa.mjs → PreviewEditorUI-BS34jI9_.mjs} +3 -3
- package/dist/{PreviewQueryProvider-C2rnoPz6.mjs → PreviewQueryProvider-BD0kOjtI.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DRXA_m5L.mjs → SdkPreviewModeRuntime-B1pWnhu-.mjs} +48 -21
- package/dist/{SiteChromeCustomizeContext-BTHdv5_-.mjs → SiteChromeCustomizeContext-BhUG_72i.mjs} +6180 -5076
- package/dist/_dts/ai/src/contracts/proposals.d.ts +309 -32
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +969 -112
- package/dist/_dts/api/src/accountApi.d.ts +213 -0
- package/dist/_dts/api/src/accountEndpointDefinitions.d.ts +30 -0
- package/dist/_dts/api/src/accountEndpoints.d.ts +254 -0
- package/dist/_dts/api/src/apiCallParams.d.ts +60 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +10 -20
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +4 -5
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +15 -0
- package/dist/_dts/api/src/bookingSettingsSections.d.ts +9 -0
- package/dist/_dts/api/src/bookingVerticals.d.ts +2 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +2 -0
- package/dist/_dts/api/src/endpoints.d.ts +1253 -1209
- package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
- package/dist/_dts/api/src/eventManagementContracts.d.ts +83 -7
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +26 -0
- package/dist/_dts/api/src/eventSeriesPresentationPreset.d.ts +12 -0
- package/dist/_dts/api/src/index.d.ts +11 -3
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -0
- package/dist/_dts/api/src/oauth.d.ts +8 -0
- package/dist/_dts/api/src/preview-auth.d.ts +26 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +5 -5
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +2 -0
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +48 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +5 -13
- package/dist/_dts/api/src/sdkEventCategoryContracts.d.ts +9 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +40 -8
- package/dist/_dts/api/src/settings/permissions.d.ts +2 -2
- package/dist/_dts/api/src/siteApiKeyEndpointDefinitions.d.ts +66 -0
- package/dist/_dts/api/src/siteInfrastructure.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +12 -4
- package/dist/_dts/api/src/types.d.ts +7 -59
- package/dist/_dts/block-form/src/client/index.d.ts +15 -23
- package/dist/_dts/block-form/src/index.d.ts +23 -22
- package/dist/_dts/blocks/src/primitives/layout/Grid.d.ts +18 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +61 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +24 -22
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +25 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +7 -30
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +4 -63
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +1 -3
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +13 -1
- package/dist/_dts/blocks/src/system/fields/gridLayout.d.ts +20 -0
- package/dist/_dts/blocks/src/system/node/fragments/classNameBinding.d.ts +6 -1
- package/dist/_dts/blocks/src/system/node/fragments/styledCard.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +24 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.validationErrors.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/FeedbackMessage.d.ts +17 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/spacing.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/boxStyleClassNames.d.ts +90 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +4 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +26 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +4 -37
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -2
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +6 -6
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +6 -6
- package/dist/_dts/core/src/branded.d.ts +4 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +25 -4
- package/dist/_dts/core/src/index.d.ts +3 -0
- package/dist/_dts/core/src/public-event-booking-availability.d.ts +8 -0
- package/dist/_dts/core/src/secret.d.ts +44 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +341 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/blockPayload.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/inline-text/InlineTextField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewGroupOrderField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewSiteFontStorageContext.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/preview/siteFontPreview.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/sdk/contentStorage.d.ts +10 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -1
- package/dist/_dts/preview-next/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +3 -5
- package/dist/_dts/preview-next/src/refresh-contract.d.ts +1 -0
- package/dist/_dts/preview-next/src/route-contract.d.ts +7 -0
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +61 -39
- package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +9 -1
- package/dist/_dts/sdk/src/theme-bridge/types.d.ts +4 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/cards/core.d.ts +54 -10
- package/dist/_dts/theme-core/src/cards/decorations.d.ts +33 -0
- package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +7 -2
- package/dist/_dts/theme-core/src/cards/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/cards/openCardVariant.d.ts +24 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +38 -0
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +53 -8
- package/dist/_dts/theme-core/src/cards/types.d.ts +489 -21
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +59 -0
- package/dist/_dts/theme-core/src/header/paintTargets.d.ts +2 -2
- package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +3 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +12 -135
- package/dist/_dts/theme-core/src/palette/utils/contrast.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/utils/opaqueSurfaceColor.d.ts +6 -0
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -1
- package/dist/_dts/theme-core/src/schema.d.ts +301 -94
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +84 -102
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +12 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +9 -4
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +0 -20
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +84 -102
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +48 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +21 -385
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +10 -18
- package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +2 -4
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +2 -9
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +0 -2
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignAppearanceAvailability.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +22 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +9 -8
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntentEquality.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +19 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +9 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +1 -62
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +13 -12
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +50 -39
- package/dist/_dts/theme-core/src/siteChromePlanning.d.ts +9 -9
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +39 -0
- package/dist/_dts/ui/src/navigation-tabs.d.ts +3 -2
- package/dist/client/{CourseRegistrationWizard-Bvtz9G9g.mjs → CourseRegistrationWizard-DGW9F0SQ.mjs} +7 -7
- package/dist/client/{DiscountCodeDisclosure-Ur-Xx1U_.mjs → DiscountCodeDisclosure-BPZ-yfGI.mjs} +1 -1
- package/dist/client/{EventCombined.client-EhscD4U6.mjs → EventCombined.client-Cjt3kKYR.mjs} +4 -4
- package/dist/client/{EventListing.client-Bn26cFTY.mjs → EventListing.client-DY9dn6Fh.mjs} +2 -2
- package/dist/client/{FeedbackMessage-ByMrs3cr.mjs → FeedbackMessage-CtLvvS_d.mjs} +15 -3
- package/dist/client/{LeafletStaticMap-BUw9Ntzr.mjs → LeafletStaticMap--2c61XYn.mjs} +1 -1
- package/dist/client/{StepIndicator-BfbdiVQI.mjs → StepIndicator-CLjQhkDb.mjs} +3 -3
- package/dist/client/{accordion-CjIeof73.mjs → accordion-_boYwHHi.mjs} +1 -1
- package/dist/client/{bookingForm-DwEeovf_.mjs → bookingForm--AqEfyBX.mjs} +56 -39
- package/dist/client/bookings.mjs +393 -192
- package/dist/client/{carousel-BMrfgOba.mjs → carousel-CVI2dqZr.mjs} +2 -2
- package/dist/client/{carousel.client-CpwTUhIo.mjs → carousel.client-59G_WMr4.mjs} +1 -1
- package/dist/client/{cart-rXEdxTdb.mjs → cart-DR6IiPz9.mjs} +3 -3
- package/dist/client/{checkout-D3JlSzh3.mjs → checkout-CsrGAfQt.mjs} +3 -3
- package/dist/client/client.mjs +4524 -3512
- package/dist/client/{colorStyles-BWpj_h4C.mjs → colorStyles-CrxJrPjJ.mjs} +277 -1
- package/dist/client/{context-CJz1Vlsz.mjs → context-B83PiNzm.mjs} +6 -21
- package/dist/client/{courseRegistration-DO5XvMAA.mjs → courseRegistration-aNJVaLa3.mjs} +3 -3
- package/dist/client/{eventCalendar-DO6rTqCn.mjs → eventCalendar-OZ7h59VN.mjs} +6 -6
- package/dist/client/{eventCombined-bJ3i_ovU.mjs → eventCombined-BbJ6bFKz.mjs} +3 -3
- package/dist/client/{eventDetails-CCbrXE7o.mjs → eventDetails-BLyUBiCT.mjs} +3 -3
- package/dist/client/{eventListing-Bdlt9YTm.mjs → eventListing-DuP1yhBS.mjs} +3 -3
- package/dist/client/{eventRegistration-B02lt6iY.mjs → eventRegistration-BXyECPa-.mjs} +11 -12
- package/dist/client/{form-DrUBAAox.mjs → form-BA4t3kKU.mjs} +4 -4
- package/dist/client/{headerSection-MzqvHL6T.mjs → headerSection-CpNaJxhW.mjs} +2 -2
- package/dist/client/hooks.mjs +1967 -2059
- package/dist/client/{locationMap-DG8BxTBm.mjs → locationMap-3HGMCL7_.mjs} +3 -3
- package/dist/client/{media-CNE1Z-wb.mjs → media-BOHuueS5.mjs} +16 -4
- package/dist/client/{newsletterForm-BzO-Td3p.mjs → newsletterForm-C2s6Mw67.mjs} +4 -4
- package/dist/client/{pricing-NgK7ozkg.mjs → pricing-BiqIMgZk.mjs} +1 -1
- package/dist/client/{productDetail-CfQ7rhVK.mjs → productDetail-C9joWhdE.mjs} +3 -3
- package/dist/client/{productList-C23rOLUi.mjs → productList-CjzdU3pB.mjs} +3 -3
- package/dist/client/{propsDecoder-CAZdhwjs.mjs → propsDecoder-CBPGXEYX.mjs} +395 -402
- package/dist/client/rendering/client.mjs +2004 -2856
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +4605 -3496
- package/dist/client/{scrollToBlock-DSSqVQr1.mjs → scrollToBlock-DZ73aEX6.mjs} +1 -1
- package/dist/client/{shop-BMToKLK7.mjs → shop-CQRai7hj.mjs} +7 -7
- package/dist/client/{shop-commerce-DB4JRKmp.mjs → shop-commerce-hP9UboOx.mjs} +8 -8
- package/dist/client/{shop-commerce-store-BOqSIOuc.mjs → shop-commerce-store-DiD5a32e.mjs} +1 -1
- package/dist/client/{shopShared-B6SK9DZv.mjs → shopShared-DP8DXTkF.mjs} +5 -5
- package/dist/client/{useEventFilters-CULOa4nB.mjs → useEventFilters-pF_OJNQP.mjs} +137 -81
- package/dist/client/{usePolling-BGG_8-jl.mjs → usePolling-Cls91SD2.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +192 -108
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +7406 -29
- package/dist/preview-next/middleware.mjs +186 -107
- package/dist/{previewAuthStore-_GXFRg2W.mjs → previewAuthStore-CX1C_KJ4.mjs} +185 -107
- package/dist/{sdk-runtime-hhSOMShR.mjs → sdk-runtime-5CcPAI14.mjs} +2 -2
- package/dist/{separator-flRaFc14.mjs → separator-BXlYN_gr.mjs} +1 -1
- package/dist/server/components.mjs +6363 -4998
- package/dist/server/config-validation.mjs +1967 -2059
- package/dist/server/config.mjs +1967 -2059
- package/dist/server/data.mjs +1967 -2059
- package/dist/server/index.mjs +186 -108
- package/dist/server/next.mjs +6553 -5285
- package/dist/server/page-converter.mjs +1031 -1844
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3352 -3006
- package/dist/server/rendering.mjs +6289 -4924
- package/dist/server/routing.mjs +1906 -1036
- package/dist/server/server.mjs +1976 -2165
- package/dist/server/theme-bridge.mjs +949 -670
- package/dist/server/theme.mjs +252 -51
- package/dist/styles/index.css +295 -334
- package/package.json +3 -2
- package/dist/_dts/block-form/src/client/blockDraftSaveability.d.ts +0 -1
- package/dist/_dts/block-form/src/widgets/index.d.ts +0 -20
- package/dist/_dts/blocks/src/system/runtime/api/requestBody.d.ts +0 -7
- package/dist/client/clsx-DgIEfj3H.mjs +0 -16
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Changelog — `@riverbankcms/sdk`
|
|
2
|
+
|
|
3
|
+
Notable changes to the SDK's public contracts. Releases go out through the
|
|
4
|
+
release coordinator (`pnpm release sdk …`), so an entry sits under *Unreleased*
|
|
5
|
+
until the next version ships and then gets the version it went out in.
|
|
6
|
+
|
|
7
|
+
## Unreleased
|
|
8
|
+
|
|
9
|
+
### Breaking: the `transparent` header variant is gone
|
|
10
|
+
|
|
11
|
+
- **`Layout`'s `headerVariant` prop no longer accepts `'transparent'`.** The
|
|
12
|
+
union narrows from `'classic' | 'centered' | 'transparent' | 'floating'` to
|
|
13
|
+
`'classic' | 'centered' | 'floating'`. The variant never had any CSS of its
|
|
14
|
+
own, and everything it did — a transparent header background and content
|
|
15
|
+
flowing underneath an overlay header — is what `'floating'` already does, so
|
|
16
|
+
`headerVariant="floating"` is the replacement and should render the same.
|
|
17
|
+
- If you have a persisted theme that still says `variant: 'transparent'`, it
|
|
18
|
+
keeps working: the theme parse boundary reads the old spelling as
|
|
19
|
+
`floating`. Only the TypeScript prop is narrowed.
|
|
20
|
+
|
|
21
|
+
### Card contracts (issue #1297 follow-up)
|
|
22
|
+
|
|
23
|
+
Additive throughout — every value that parsed before still parses, so no
|
|
24
|
+
consumer needs to change anything.
|
|
25
|
+
|
|
26
|
+
- **`FeatureCard.surfaceRole` speaks the card-role vocabulary.** The union
|
|
27
|
+
widens from `'open' | 'panel'` to `'none' | 'open' | 'default' | 'alternative'
|
|
28
|
+
| 'panel'`. `panel` is a permanent alias of the `alternative` role, and `open`
|
|
29
|
+
keeps its historical meaning (an unmarked boxless card, which is role `none`)
|
|
30
|
+
rather than the `open` role. The exported type is
|
|
31
|
+
`FeatureCardSurfaceRole`. The `data-surface-role` attribute still carries the
|
|
32
|
+
authored value, so composition CSS selecting `[data-surface-role="open"]` is
|
|
33
|
+
unaffected.
|
|
34
|
+
- Worth knowing if you author the new spellings: the role values give you the
|
|
35
|
+
card surface but not the editorial-diptych composition. `'panel'` gets both
|
|
36
|
+
`.card-role-alternative` and the `[data-surface-role="panel"]` rules (the
|
|
37
|
+
filled media frame and background that variant's layout expects), while
|
|
38
|
+
`'alternative'` gets the card surface only. The two spellings of "statement
|
|
39
|
+
card" are therefore not interchangeable inside `editorial-diptych`.
|
|
40
|
+
- **`CardStylesContent` names a card surface with `role`.** `cardVariant` is the
|
|
41
|
+
legacy name for the same thing and still parses; where both are present,
|
|
42
|
+
`role` wins.
|
|
43
|
+
- **Missing compiled fields declared.** `MediaTextContent._frameStyles`,
|
|
44
|
+
`CollectionContent._cardStyles` and `EventCalendarContent._containerStyles`
|
|
45
|
+
are now part of the SDK's block content types, alongside the card fields on
|
|
46
|
+
team-members and media-text.
|
|
47
|
+
- **`EventCalendarContent` catches up with the block**: `variant`,
|
|
48
|
+
`paginationMode`, `seeAllUrl`, `showCapacity`, `boardTitle`, `footerNote`,
|
|
49
|
+
`elevated` and `banded`.
|
|
50
|
+
- **`EventSurfacePreset` gains `'term'`**, which the events blocks have accepted
|
|
51
|
+
for a while.
|
|
52
|
+
- **Theme bridge: `open` is the boxless card it claims to be.** A bridge theme's
|
|
53
|
+
`.card-role-open` now renders the boxless marked card the role contract
|
|
54
|
+
describes (transparent, a hairline plus a short accent, no elevation) instead
|
|
55
|
+
of the fully outlined box. `.card-outlined` keeps its old declarations as a
|
|
56
|
+
compatibility class with no role attached; naming it in
|
|
57
|
+
`components.cards.variants` enables that class only.
|
|
58
|
+
- **Fixed**: a bridge `open` card's media no longer keeps rounded top corners
|
|
59
|
+
while its container is square. Card media radii now resolve from the same
|
|
60
|
+
per-corner geometry as the container, so a variant that overrides its
|
|
61
|
+
corners overrides its media edge too.
|
|
62
|
+
- **`FeatureCardSurfaceRole` states the `open` exception in the type.** The
|
|
63
|
+
union is now built as `Exclude<CardRole, 'open'> | FeatureCardLegacySurfaceRole`
|
|
64
|
+
(`FeatureCardLegacySurfaceRole = 'open' | 'panel'`, also exported). The set of
|
|
65
|
+
accepted strings is unchanged — this is a documentation-in-types change, not a
|
|
66
|
+
behaviour change — but it now says out loud that `open` reaches this field
|
|
67
|
+
only as a legacy spelling. **The canonical `open` role is permanently
|
|
68
|
+
unaddressable per item on a feature card**: the alias always wins and maps it
|
|
69
|
+
to role `none`. A card that should render the marked boxless `open` surface
|
|
70
|
+
gets it from the block's card role, not from `surfaceRole`.
|
|
71
|
+
- **`CardRole` is exported.** The canonical card-role vocabulary
|
|
72
|
+
(`'none' | 'open' | 'default' | 'alternative'`) is now a named public type
|
|
73
|
+
rather than being spelled out inline, and a typetest pins it equal to
|
|
74
|
+
theme-core's in both directions so the two cannot drift.
|
|
75
|
+
- **Theme bridge: card role CSS is no longer opt-in.** `.card-role-default`,
|
|
76
|
+
`.card-role-alternative` and `.card-role-open` now emit from
|
|
77
|
+
`buildThemeBridgeRuntime` whether or not you configure `components.cards`.
|
|
78
|
+
They are the surface contract compiled content renders against, so a bridge
|
|
79
|
+
theme that omitted them left role-styled blocks unstyled. `components.cards`
|
|
80
|
+
continues to govern the named `.card-default` / `.card-elevated` /
|
|
81
|
+
`.card-outlined` catalogue exactly as before, including its `variants`
|
|
82
|
+
allow-list.
|
|
83
|
+
- **`CHANGELOG.md` ships in the published package.** It was written but not in
|
|
84
|
+
the `files` allowlist, so installed copies of the SDK had no release record.
|
|
85
|
+
The packed-package check now asserts its presence.
|
package/README.md
CHANGED
|
@@ -988,7 +988,7 @@ Override the header variant from your code:
|
|
|
988
988
|
```tsx
|
|
989
989
|
<Layout
|
|
990
990
|
siteData={siteData}
|
|
991
|
-
headerVariant="centered" // Options: classic, centered,
|
|
991
|
+
headerVariant="centered" // Options: classic, centered, floating
|
|
992
992
|
>
|
|
993
993
|
<main>Content with centered header</main>
|
|
994
994
|
</Layout>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as FooterComposerPanel, $i as
|
|
3
|
-
import { d as unwrapResponse, f as getDashboardUrl, r as usePreviewAuth } from "./previewAuthStore-
|
|
4
|
-
import { t as Separator } from "./separator-
|
|
5
|
-
import { _ as
|
|
2
|
+
import { $ as FooterComposerPanel, $i as SearchInput, A as markApplySaved, Ai as paletteColorsSchema, B as resetTypographyToSaved, Bt as useEditorUiStoreInstance, C as applyTypographyDraftPatch, Ca as DropdownMenuTrigger, Cr as curatedSiteStyles, D as dismissWarnings, Da as cn, Dr as findFooterLook, E as deriveStyleConfiguratorCapabilities, En as ThemeScope, F as previewCuratedPalette, Fa as X$1, Fr as curatedPalettes, H as styleConfiguratorHistoryEntryForPersistedSelection, Ha as SlidersHorizontal, I as previewFooterLook, Ja as Monitor, Ji as SelectItem, Ki as Select, L as previewHeaderLayout, M as openRow, N as palettePreviewProjection, Nt as BlockEditor, O as isPreviewingChange, Or as getHeaderLayout, P as previewButtonStyle, Q as resolvePreviewSidebarTab, Qi as CalloutDescription, R as previewHeaderStyle, S as applyResolvedSelections, Sa as DropdownMenuSeparator, Si as themeButtonClassName, T as createStyleConfiguratorState, Ta as Button, Tr as getCuratedSiteStyle, U as syncStyleConfiguratorState, V as setPaletteColors, Va as Smartphone, W as toggleRow, Xa as LoaderCircle, Xi as SelectValue, Ya as Maximize2, Yi as SelectTrigger, Z as createOptimisticActionRunner, Zi as Callout, _ as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, _a as Surface, _i as buttonStyleSelectionParameterValue, _n as listEntryPageContentSlots, aa as TabsContent, an as resolveContentTitle, at as useUISelector, b as cycleSiteChromeSelectionId, ba as DropdownMenuItem, bi as updateButtonStyleSelectionChoice, c as selectionSnapshotFromApplySiteStyleSelectionResponse, cn as ManifestForm, ct as useEntryController, d as resolveStyleConfiguratorInitialSnapshot, dn as FormRenderer, ea as Popover, ga as CollapsibleTrigger, ha as CollapsibleContent, ia as Tabs, in as resolvePageRouteSlug, io as Check, it as ContentFieldsForm, j as markApplySaving, ja as assertNever$1, k as markApplyFailed, ka as unsafeAsEditorBlockId, ki as paletteColorEntries, kr as getHeaderStyle, l as deriveSiteStylePreviewUpdate, ma as Collapsible, n as useSiteChromeCustomizeOptional, na as PopoverTrigger, no as ChevronLeft, oa as TabsList, p as usePreviewDesignCoordinator, pn as createStoreBackend, qi as SelectContent, ra as Input, rn as deriveRouteMetadataPresentation, s as buildApplySiteStyleSelectionBody, sa as TabsTrigger, ta as PopoverContent, tn as isAdapterReferenceKind, to as ChevronRight, u as planSiteStylePreviewChange, un as createManifestValidation, v as reportPreviewDesignError, va as DropdownMenu, vi as findButtonStyleRecipe, w as cancelPreview, x as planSiteChromeSelection, xa as DropdownMenuLabel, xi as buttonStyleSelectionKey, y as buildSiteChromeSelectionModels, ya as DropdownMenuContent, yi as resolveButtonStyleSelection, z as previewSiteStyle, za as Tablet, zt as useEditorUiStore } from "./SiteChromeCustomizeContext-BhUG_72i.mjs";
|
|
3
|
+
import { d as unwrapResponse, f as getDashboardUrl, r as usePreviewAuth } from "./previewAuthStore-CX1C_KJ4.mjs";
|
|
4
|
+
import { t as Separator } from "./separator-BXlYN_gr.mjs";
|
|
5
|
+
import { S as getSiteFontsStorageUrl, _ as usePreviewBlockCustomizeSelectionOptional, b as buildFontPreviewUrl, d as buildPreviewDashboardSetupUrl, f as resolvePreviewDashboardSetupHandoff, g as useBlockCustomizeControls, h as usePreviewSiteFontStorageUrl, m as resolvePreviewSidebarChromeModel, p as resolvePreviewEditorGuidanceModel, u as canInspectSiteStyle, v as PreviewFormProvider, x as generateFontFaceCss, y as previewWidgetOverrides } from "./SdkPreviewModeRuntime-B1pWnhu-.mjs";
|
|
6
6
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -2403,6 +2403,20 @@ function familyKey(family) {
|
|
|
2403
2403
|
return family.trim().toLocaleLowerCase();
|
|
2404
2404
|
}
|
|
2405
2405
|
//#endregion
|
|
2406
|
+
//#region ../preview-next/src/client/preview/siteFontPreview.tsx
|
|
2407
|
+
function buildSiteFontFaceCss(siteFonts, siteFontStorageUrl) {
|
|
2408
|
+
if (!siteFontStorageUrl || siteFonts.length === 0) return "";
|
|
2409
|
+
return generateFontFaceCss([...siteFonts], getSiteFontsStorageUrl(siteFontStorageUrl));
|
|
2410
|
+
}
|
|
2411
|
+
function SiteFontFaceStyles({ siteFonts }) {
|
|
2412
|
+
const siteFontStorageUrl = usePreviewSiteFontStorageUrl();
|
|
2413
|
+
const css = useMemo(() => buildSiteFontFaceCss(siteFonts, siteFontStorageUrl), [siteFontStorageUrl, siteFonts]);
|
|
2414
|
+
return css ? /* @__PURE__ */ jsx("style", {
|
|
2415
|
+
"data-typography-site-fonts": true,
|
|
2416
|
+
children: css
|
|
2417
|
+
}) : null;
|
|
2418
|
+
}
|
|
2419
|
+
//#endregion
|
|
2406
2420
|
//#region ../preview-next/src/client/preview/StyleConfigurator.typography.tsx
|
|
2407
2421
|
const typographyOverviewSurface = { kind: "overview" };
|
|
2408
2422
|
function useTypographyFontCatalog(apiClient, siteId, enabled) {
|
|
@@ -3078,17 +3092,6 @@ function FontPreviewText({ family, source, className, children }) {
|
|
|
3078
3092
|
children
|
|
3079
3093
|
});
|
|
3080
3094
|
}
|
|
3081
|
-
function SiteFontFaceStyles({ siteFonts }) {
|
|
3082
|
-
const css = useMemo(() => {
|
|
3083
|
-
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
|
|
3084
|
-
if (!supabaseUrl || siteFonts.length === 0) return "";
|
|
3085
|
-
return generateFontFaceCss([...siteFonts], getSiteFontsStorageUrl(supabaseUrl));
|
|
3086
|
-
}, [siteFonts]);
|
|
3087
|
-
return css ? /* @__PURE__ */ jsx("style", {
|
|
3088
|
-
"data-typography-site-fonts": true,
|
|
3089
|
-
children: css
|
|
3090
|
-
}) : null;
|
|
3091
|
-
}
|
|
3092
3095
|
function ensureGoogleFontPreviewLink(family) {
|
|
3093
3096
|
const url = buildFontPreviewUrl(family);
|
|
3094
3097
|
if (Array.from(document.head.querySelectorAll("link[data-font-preview]")).some((link) => link.href === url)) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { At as useEditor, Bt as useEditorUiStoreInstance, Da as
|
|
3
|
-
import { d as unwrapResponse, r as usePreviewAuth } from "./previewAuthStore-
|
|
4
|
-
import {
|
|
2
|
+
import { $a as Eye, At as useEditor, Ba as Sparkles, Bt as useEditorUiStoreInstance, Ca as DropdownMenuTrigger, Da as cn, Ea as cva, Ga as Pencil, Gi as TooltipTrigger, Ka as PenLine, La as Undo2, Ra as TriangleAlert, Rt as classifyHistoryShortcut, Ta as Button, Ui as Tooltip, Wa as Redo2, Wi as TooltipContent, Xa as LoaderCircle, Xt as useMultiAutosave, a as previewDesignHistoryDomainForCommand, ba as DropdownMenuItem, ca as Dialog, eo as EllipsisVertical, fa as DialogHeader, i as usePreviewDesignHistoryOrder, la as DialogContent, lt as useEntryEditorController, n as useSiteChromeCustomizeOptional, o as selectPreviewDesignHistoryDomain, pa as DialogTitle, qa as Palette, ro as ChevronDown, ua as DialogDescription, va as DropdownMenu, ya as DropdownMenuContent, zt as useEditorUiStore } from "./SiteChromeCustomizeContext-BhUG_72i.mjs";
|
|
3
|
+
import { d as unwrapResponse, r as usePreviewAuth } from "./previewAuthStore-CX1C_KJ4.mjs";
|
|
4
|
+
import { C as FixedBottomSurface, a as usePreviewPageDesignEditorState, c as applyPreviewChromeSurfaceToElement, l as resolvePreviewChromeSurface, o as PREVIEW_CHROME_PORTAL_CLASS_NAME, s as PREVIEW_CHROME_THEME_CLASS_NAME } from "./SdkPreviewModeRuntime-B1pWnhu-.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useState, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as markPreviewAuthExpired, s as ApiRequestError } from "./previewAuthStore-
|
|
2
|
+
import { n as markPreviewAuthExpired, s as ApiRequestError } from "./previewAuthStore-CX1C_KJ4.mjs";
|
|
3
3
|
import { createContext, useContext, useRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { MutationCache, QueryCache, QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
3
|
-
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-
|
|
4
|
-
import { _ as API_ENDPOINTS, a as usePreviewToken, c as createBearerAPIClient, d as unwrapResponse, g as resolveSurfaceDocumentAttributes, h as SURFACE_IDS, i as usePreviewAuthFetch, m as SURFACE_DOCUMENT_DATA_ATTRIBUTE, n as markPreviewAuthExpired, o as isPreviewRuntimeSessionEditable, r as usePreviewAuth, s as ApiRequestError, t as initPreviewAuth } from "./previewAuthStore-
|
|
2
|
+
import { $n as richTextFragment, $r as parseGeneratedIconAssetId, $t as createSnapshotFromPageRecord, Aa as unsafeAsEditorBlockValues, An as getResponsiveScopeSpec, Ar as gradientToCss, At as useEditor, Bi as unmapValueFromSelect, Bn as resolveEntryRouteTarget, Br as backgroundAppearanceColorTokenNames, Bt as useEditorUiStoreInstance, Ci as parseThemeForPersistence, Cn as useMediaEditorOptional, Ct as MediaField, Da as cn, Di as assertNever$1, Dn as containerResponsiveThemeCss, Dt as RichTextField, Ei as asDesignBlockId, En as ThemeScope, Er as surfaceResolutionContextFromTheme, Et as useRichTextImagePicker, Fa as X, Fi as SdkConfigProvider, Fn as getDefaultComponentRegistry, Ft as prepareBlockEditorManifest, G as beginAutosaveBatch, Gn as SITE_CHROME_VISIBLE_HEADER_SELECTOR, Gr as parseBackgroundContent, Gt as pushHistoryEntry, Hi as useField, Hn as resolveRouteTarget, Hr as parseBackgroundAppearanceColorToken, Ht as canRedoHistory, Ia as Upload, Ii as useSdkConfig, In as LINKED_CONTENT_ENTRY_META_KEY, Ir as defaultSectionTransitionVariantForFamily, It as stripTopLevelRoutingUi, J as enqueueTransaction, Ji as SelectItem, Jn as visibleHeaderClearancePx, Jr as eventCalendarListLayoutCompatibleDisplayModeValues, Jt as unsafeAsLinkedContentEntryId, K as confirmAutosaveBatch, Ki as Select, Kn as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Kr as runTransforms, Kt as redoHistory, Li as hasEmptyOption, Ln as coerceLinkedContentEntriesPayload, Lr as sectionTransitionFamilies, Lt as getBlockManifestFromSdkConfig, Ma as expectParsedBrandedId, Mi as BlockApiProvider, Mn as createCustomBlockRegistry, Mr as GRADIENT_PRESET_IDS, Mt as LinkWidgetProvider, Na as parseMediaAssetId, Ni as getFieldIntent, Nn as makeDefaultBlockComponent, Nr as getGradientPreset, Oa as parseFooterModuleId, Oi as textColorStyle, On as buildThemeRuntime, Ot as RichTextWidgetProvider, Pa as parseSiteId, Pi as isHeaderField, Pn as readBlockComposition, Pr as parseGradientPresetId, Pt as hideThemeV2RawStyleFields, Q as resolvePreviewSidebarTab, Qa as GripVertical, Qn as ImageResolveContextProvider, Qr as parseBlockIconValue, Qt as createRoutingHelpers, Ri as mapCurrentValueForSelect, Rn as getLinkedContentEntryMeta, Rr as sectionTransitionFamilyForBoundaryOptionId, Sn as MediaEditorContextProvider, Sr as componentRuntimeRulesForTheme, St as FileField, Ta as Button, Ti as pageDesignEditorBackgroundOverrideOwner, Tn as isSupportedLoaderEndpoint, Tt as ReferenceWidgetProvider, Ua as RotateCcw, Un as getBlockDefinition, Ur as defaultThemeTokens, Ut as canUndoHistory, Vi as FieldFrame, Vn as resolvePageRouteTarget, Vr as backgroundAppearanceQuickColorTokenNames, Vt as useOptionalEditorUiStoreInstance, Wn as projectRecurringSchedule, Wr as ctaButton, Wt as createHistoryState, X as rejectAutosaveBatch, Xi as SelectValue, Xn as createManifestValidator, Y as idleEditorTransactionQueueState, Yi as SelectTrigger, Yn as resolveVariantKey, Yr as eventCalendarListLayoutOptions, Yt as recordsEqual, Za as Image, Zn as clientComponentRegistry, Zr as planSiteChromePlacement, Zt as useDebouncedLatestSave, _ as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, _r as applyCompiledRuntimeFieldsToContent, _t as IconPickerField, aa as TabsContent, ai as inlineTextToPlainText, ao as __exportAll, ar as singleButtonFragment, at as useUISelector, bn as deriveLaunchReadiness, br as retargetCompiledRuntimeFieldsForContentAdjacency, bt as ButtonVariantField, ca as Dialog, ci as RichText$1, cr as testimonialsCarouselFragment, da as DialogFooter, di as resolveImageUrlWithContext, dn as FormRenderer, dr as heroCtaRowFragment, dt as createSiteOptionWidgetAdapters, ei as parseGeneratedIconSetId, en as BUILT_IN_REFERENCE_KINDS, er as headingFragment, et as renderSiteChromeBlock, f as PreviewDesignCoordinatorProvider, fa as DialogHeader, fi as setContextResolveImageUrlContext, fn as evaluateVisibility, fr as ctaRowFragment, ft as SiteOptionPickerField, g as PREVIEW_DESIGN_LOAD_ERROR_MESSAGE, gi as siblingPath, gn as getPageDesignEditorState, gr as formatSiteChromeBackgroundTokenLabel, gt as InlineTextField, h as usePreviewThemeOverlay, hi as getAtPath, hn as applyPageDesignEditorAction, hr as defineFragment, ht as OfferingsPreviewWidgetProvider, i as usePreviewDesignHistoryOrder, ia as Tabs, ii as coerceInlineTextWithFallback, ir as blogFeaturedPostFragment, ja as assertNever$2, ji as ORDINARY_TEXT_MIN_CONTRAST_RATIO, jn as escapeStyleContent, jr as GRADIENT_PRESETS, jt as LinkField, ka as unsafeAsEditorBlockId, kn as DEFAULT_THEME_RESPONSIVE_MODE, kt as EditorProvider, la as DialogContent, li as buildResolveImageUrlContext, ln as createManifestFormAdapter, lr as testimonialsHeadingFragment, lt as useEntryEditorController, m as PreviewThemeOverlayProvider, mi as attachRenderableMediaAssetFields, mn as MediaEditor, mr as bodyCopyFragment, mt as OfferingsPreviewGroupOrderField, n as useSiteChromeCustomizeOptional, ni as isObjectRecord, nn as parseReferenceKind, no as ChevronLeft, nr as faqAccordionFragment, nt as PreviewInlineTextEditor, oa as TabsList, oi as isInlineTextEmpty, on as PaletteProvider, or as formEmbedFragment, ot as EditableBlockProvider, pa as DialogTitle, pi as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, pn as createStoreBackend, pr as heroCopyFragment, pt as SiteOptionWidgetProvider, q as deriveTransactionCapabilities, qi as SelectContent, qn as planSiteOverlayHeaderClearance, qr as bindingSchema, qt as undoHistory, r as PreviewDesignHistoryOrderProvider, ri as isRecord$13, rr as faqHeadingFragment, rt as PreviewTextEditor, sa as TabsTrigger, si as Text$1, sn as usePalette, sr as formCopyFragment, st as EntryControllerProvider, t as SiteChromeCustomizeProvider, ti as renderInlineText, to as ChevronRight, tr as cardFragment, tt as PreviewRichTextEditor, ua as DialogDescription, ui as getCurrentResolveImageUrlContext, ur as ctaCopyFragment, ut as createSiteOptionApiLoader, v as reportPreviewDesignError, vn as decodePublicProductCategorySelectorQuery, vr as compileEditorModelRuntime, vt as EntryPickerField, wi as isThemeV2NormalEditorRawStyleFieldName, wn as useApiMediaUploader, wr as designRuntimeRulesForTheme, wt as ReferenceField, xn as AMBIENT_BACKGROUND_ROLES, xr as planPageDesignLayoutLookCompatibility, xt as ButtonWidgetProvider, yn as DEFAULT_LAUNCH_READINESS_INPUT, yr as retargetCompiledBoundaryRuntimeForContentAdjacency, yt as EntryPickerWidgetProvider, zi as mapOptionValueForSelect, zn as defaultTransforms, zr as sectionTransitionVariantForBoundaryOptionId, zt as useEditorUiStore } from "./SiteChromeCustomizeContext-BhUG_72i.mjs";
|
|
3
|
+
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-BD0kOjtI.mjs";
|
|
4
|
+
import { _ as API_ENDPOINTS, a as usePreviewToken, c as createBearerAPIClient, d as unwrapResponse, g as resolveSurfaceDocumentAttributes, h as SURFACE_IDS, i as usePreviewAuthFetch, m as SURFACE_DOCUMENT_DATA_ATTRIBUTE, n as markPreviewAuthExpired, o as isPreviewRuntimeSessionEditable, r as usePreviewAuth, s as ApiRequestError, t as initPreviewAuth } from "./previewAuthStore-CX1C_KJ4.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1133,6 +1133,8 @@ z.object({
|
|
|
1133
1133
|
])).optional() })]).optional(),
|
|
1134
1134
|
cards: z.union([z.boolean(), z.object({ variants: z.array(z.enum([
|
|
1135
1135
|
"default",
|
|
1136
|
+
"alternative",
|
|
1137
|
+
"open",
|
|
1136
1138
|
"elevated",
|
|
1137
1139
|
"outlined"
|
|
1138
1140
|
])).optional() })]).optional(),
|
|
@@ -1162,8 +1164,7 @@ function planSiteTopShell(input) {
|
|
|
1162
1164
|
contentStartsUnderHeader: false,
|
|
1163
1165
|
requiresHeaderOffset: false
|
|
1164
1166
|
};
|
|
1165
|
-
const
|
|
1166
|
-
const isOverlayHeader = input.headerVariant === "transparent" && input.headerPositioning === "fixed" || isFloatingOverlayHeader;
|
|
1167
|
+
const isOverlayHeader = input.headerVariant === "floating" && (input.headerPositioning === "sticky" || input.headerPositioning === "fixed");
|
|
1167
1168
|
if (input.hasVisibleBanner && isOverlayHeader) return {
|
|
1168
1169
|
behavior: "banner-above-overlay-header",
|
|
1169
1170
|
contentStartsUnderHeader: true,
|
|
@@ -3864,6 +3865,18 @@ function resolveBlockManifest(blockKind, sdkConfig) {
|
|
|
3864
3865
|
return getBlockManifestFromSdkConfig(blockKind, sdkConfig) ?? getBlockDefinition(blockKind)?.manifest ?? null;
|
|
3865
3866
|
}
|
|
3866
3867
|
//#endregion
|
|
3868
|
+
//#region ../preview-next/src/client/preview/PreviewSiteFontStorageContext.tsx
|
|
3869
|
+
const PreviewSiteFontStorageContext = createContext(void 0);
|
|
3870
|
+
function PreviewSiteFontStorageProvider({ siteFontStorageUrl, children }) {
|
|
3871
|
+
return /* @__PURE__ */ jsx(PreviewSiteFontStorageContext.Provider, {
|
|
3872
|
+
value: siteFontStorageUrl,
|
|
3873
|
+
children
|
|
3874
|
+
});
|
|
3875
|
+
}
|
|
3876
|
+
function usePreviewSiteFontStorageUrl() {
|
|
3877
|
+
return useContext(PreviewSiteFontStorageContext);
|
|
3878
|
+
}
|
|
3879
|
+
//#endregion
|
|
3867
3880
|
//#region ../preview-next/src/client/preview/previewChromeSurfacePolicy.ts
|
|
3868
3881
|
const PREVIEW_CHROME_SURFACE_POLICIES = {
|
|
3869
3882
|
core: {
|
|
@@ -4109,16 +4122,11 @@ function applyPreviewChromeSurfaceToElement(element, surface, options) {
|
|
|
4109
4122
|
function serializeBackgroundOverride(override) {
|
|
4110
4123
|
switch (override.kind) {
|
|
4111
4124
|
case "default": return null;
|
|
4112
|
-
case "color": {
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
color: override.token,
|
|
4118
|
-
textColor: foreground,
|
|
4119
|
-
headingColor: foreground
|
|
4120
|
-
};
|
|
4121
|
-
}
|
|
4125
|
+
case "color": return {
|
|
4126
|
+
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4127
|
+
type: "color",
|
|
4128
|
+
color: override.token
|
|
4129
|
+
};
|
|
4122
4130
|
case "gradient": return {
|
|
4123
4131
|
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4124
4132
|
type: "gradient",
|
|
@@ -4177,11 +4185,11 @@ function dedupeBackgroundColorTokensByPalette(tokens, palette) {
|
|
|
4177
4185
|
}
|
|
4178
4186
|
const TEXT_BACKGROUND_TREATMENT = {
|
|
4179
4187
|
kind: "theme-foreground",
|
|
4180
|
-
minContrastRatio:
|
|
4188
|
+
minContrastRatio: ORDINARY_TEXT_MIN_CONTRAST_RATIO
|
|
4181
4189
|
};
|
|
4182
4190
|
const IMAGE_BACKGROUND_TREATMENT = {
|
|
4183
4191
|
kind: "look-owned-image-overlay",
|
|
4184
|
-
minContrastRatio:
|
|
4192
|
+
minContrastRatio: ORDINARY_TEXT_MIN_CONTRAST_RATIO,
|
|
4185
4193
|
minOverlayOpacity: .64
|
|
4186
4194
|
};
|
|
4187
4195
|
const gradientPresetIds = GRADIENT_PRESET_IDS;
|
|
@@ -6379,6 +6387,7 @@ function planResendConfirmationSuccess(input) {
|
|
|
6379
6387
|
const previewBrowserEntries = { previewAuthEntry: { pathname: "/preview/auth" } };
|
|
6380
6388
|
const previewDashboardApiEndpoints = {
|
|
6381
6389
|
previewAuthExchange: { path: `/api${API_ENDPOINTS.previewExchangeCode.path}` },
|
|
6390
|
+
previewAuthRefresh: { path: `/api${API_ENDPOINTS.previewRefreshSession.path}` },
|
|
6382
6391
|
onboardingPreviewStatus: { path: `/api${API_ENDPOINTS.getOnboardingPreviewStatus.path}` },
|
|
6383
6392
|
onboardingResendConfirmation: { path: `/api${API_ENDPOINTS.resendOnboardingPreviewConfirmation.path}` }
|
|
6384
6393
|
};
|
|
@@ -8271,10 +8280,10 @@ function resolveShellThemeRoles(props) {
|
|
|
8271
8280
|
}
|
|
8272
8281
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
8273
8282
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
8274
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
8283
|
+
return { default: (await import("./PreviewEditorSidebar-BY-1QdE2.mjs")).PreviewEditorSidebar };
|
|
8275
8284
|
});
|
|
8276
8285
|
const PreviewEditorUI = React.lazy(async () => {
|
|
8277
|
-
return { default: (await import("./PreviewEditorUI-
|
|
8286
|
+
return { default: (await import("./PreviewEditorUI-BS34jI9_.mjs")).PreviewEditorUI };
|
|
8278
8287
|
});
|
|
8279
8288
|
const previewPaneContainmentStyle = {
|
|
8280
8289
|
contain: "layout paint",
|
|
@@ -8631,6 +8640,12 @@ function renderShellLayout(input) {
|
|
|
8631
8640
|
children: props.children
|
|
8632
8641
|
});
|
|
8633
8642
|
}
|
|
8643
|
+
function wrapPreviewSiteFontStorage(children, siteFontStorageUrl) {
|
|
8644
|
+
return /* @__PURE__ */ jsx(PreviewSiteFontStorageProvider, {
|
|
8645
|
+
siteFontStorageUrl,
|
|
8646
|
+
children
|
|
8647
|
+
});
|
|
8648
|
+
}
|
|
8634
8649
|
function PreviewShell(props) {
|
|
8635
8650
|
const { children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl = null, surfaceId, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null, themeSelectionHeaderSelection = null, themeSelectionFooterLookId = null, themeSelectionHeaderLogo, pageId, routeId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, initialStatus, initialBlocks, pageMetadata, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, supabaseUrl, designEditorEligibility, hideSiteStyleConfigurator = false, baseFetch, onFooterSaved } = props;
|
|
8636
8651
|
const apiClient = useMemo(() => createBearerAPIClient(previewToken, apiBaseUrl), [previewToken, apiBaseUrl]);
|
|
@@ -8678,7 +8693,7 @@ function PreviewShell(props) {
|
|
|
8678
8693
|
bearerToken: previewToken,
|
|
8679
8694
|
supabaseUrl,
|
|
8680
8695
|
mediaAssets,
|
|
8681
|
-
children: [/* @__PURE__ */ jsx(PreviewKeepAliveClient, { baseFetch }), shellLayout]
|
|
8696
|
+
children: [/* @__PURE__ */ jsx(PreviewKeepAliveClient, { baseFetch }), wrapPreviewSiteFontStorage(shellLayout, props.siteFontStorageUrl)]
|
|
8682
8697
|
})
|
|
8683
8698
|
}) })
|
|
8684
8699
|
})
|
|
@@ -11037,6 +11052,16 @@ function findVisibleHeaderMeasurementTarget(header) {
|
|
|
11037
11052
|
}) ?? null;
|
|
11038
11053
|
}
|
|
11039
11054
|
//#endregion
|
|
11055
|
+
//#region ../preview-next/src/client/sdk/contentStorage.ts
|
|
11056
|
+
/**
|
|
11057
|
+
* Reads the current content storage endpoint from the legacy content wire
|
|
11058
|
+
* shape. Keep the provider-specific field in this adapter so preview
|
|
11059
|
+
* rendering only depends on the neutral storage URL it receives.
|
|
11060
|
+
*/
|
|
11061
|
+
function resolveContentStorageUrl(content) {
|
|
11062
|
+
return typeof content.supabaseUrl === "string" && content.supabaseUrl.length > 0 ? content.supabaseUrl : void 0;
|
|
11063
|
+
}
|
|
11064
|
+
//#endregion
|
|
11040
11065
|
//#region ../preview-next/src/client/sdk/SdkPreviewModeRuntime.tsx
|
|
11041
11066
|
var SdkPreviewModeRuntime_exports = /* @__PURE__ */ __exportAll({ SdkPreviewModeRuntime: () => SdkPreviewModeRuntime });
|
|
11042
11067
|
function isSdkCustomBlockArray(value) {
|
|
@@ -11052,6 +11077,7 @@ function SdkPreviewModeRuntime(props) {
|
|
|
11052
11077
|
const { apiBaseUrl, siteId, siteSlug, previewSession, previewToken } = props;
|
|
11053
11078
|
const model = resolveSdkPreviewRuntimeModel(props);
|
|
11054
11079
|
const { content, customBlocks, dataContext, initialBlocks, page, pageMetadata, resolvedDashboardBaseUrl, routeMap, sdkConfig, surfaceId, typedBlockOverrides } = model;
|
|
11080
|
+
const siteFontStorageUrl = resolveContentStorageUrl(content);
|
|
11055
11081
|
const sdkConfigForEditor = useMemo(() => {
|
|
11056
11082
|
const blocks = customBlocks ?? sdkConfig?.customBlocks ?? void 0;
|
|
11057
11083
|
if (!blocks || blocks.length === 0) return null;
|
|
@@ -11111,6 +11137,7 @@ function SdkPreviewModeRuntime(props) {
|
|
|
11111
11137
|
sdkConfig: sdkConfigForEditor,
|
|
11112
11138
|
mediaAssets: content.mediaAssets,
|
|
11113
11139
|
supabaseUrl: content.supabaseUrl,
|
|
11140
|
+
siteFontStorageUrl,
|
|
11114
11141
|
designEditorEligibility: { kind: "sdk-page" },
|
|
11115
11142
|
hideSiteStyleConfigurator: true
|
|
11116
11143
|
};
|
|
@@ -11203,4 +11230,4 @@ function deriveDashboardBaseUrlFromApiBaseUrl(apiBaseUrl) {
|
|
|
11203
11230
|
}
|
|
11204
11231
|
}
|
|
11205
11232
|
//#endregion
|
|
11206
|
-
export { FixedBottomSurface as S,
|
|
11233
|
+
export { FixedBottomSurface as C, getSiteFontsStorageUrl as S, usePreviewBlockCustomizeSelectionOptional as _, usePreviewPageDesignEditorState as a, buildFontPreviewUrl as b, applyPreviewChromeSurfaceToElement as c, buildPreviewDashboardSetupUrl as d, resolvePreviewDashboardSetupHandoff as f, useBlockCustomizeControls as g, usePreviewSiteFontStorageUrl as h, PreviewShellLayout as i, resolvePreviewChromeSurface as l, resolvePreviewSidebarChromeModel as m, SdkPreviewModeRuntime_exports as n, PREVIEW_CHROME_PORTAL_CLASS_NAME as o, resolvePreviewEditorGuidanceModel as p, PreviewShell as r, PREVIEW_CHROME_THEME_CLASS_NAME as s, SdkPreviewModeRuntime as t, canInspectSiteStyle as u, PreviewFormProvider as v, generateFontFaceCss as x, previewWidgetOverrides as y };
|