@riverbankcms/sdk 0.108.0 → 0.109.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 +21 -1
- package/dist/{PreviewEditorSidebar-BBT-kZAM.mjs → PreviewEditorSidebar-DWqwfy3_.mjs} +7 -22
- package/dist/{PreviewEditorUI-D69xNKT2.mjs → PreviewEditorUI-B7OL4sfR.mjs} +3 -3
- package/dist/{PreviewQueryProvider-RRu7wyQ5.mjs → PreviewQueryProvider-D0y2l8JN.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CuDjXH6o.mjs → SdkPreviewModeRuntime-D8Gt9Gbe.mjs} +212 -153
- package/dist/{SiteChromeCustomizeContext-BQUY2dEk.mjs → SiteChromeCustomizeContext-DUpalEdL.mjs} +1919 -1032
- package/dist/_dts/ai/src/contracts/proposals.d.ts +11244 -10741
- package/dist/_dts/api/src/bookingAdjustments.d.ts +5 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +2 -17
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +6 -6
- package/dist/_dts/api/src/common/envelope.d.ts +7 -0
- package/dist/_dts/api/src/courses.d.ts +1 -0
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/endpoints.d.ts +35 -0
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/participantMessaging.d.ts +18 -12
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +247 -1
- package/dist/_dts/api/src/siteInfrastructure.d.ts +13 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +1 -5
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +29 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +33 -27
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientField.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +3 -4
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/audio-player.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +1 -22
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -22
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +3 -0
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +16 -6
- package/dist/_dts/blocks/src/system/defineBlock.d.ts +9 -1
- package/dist/_dts/blocks/src/system/fields/ctas.d.ts +8 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +31 -0
- package/dist/_dts/content-model/src/content-types/scaffold.d.ts +58 -0
- package/dist/_dts/content-model/src/content-types/sentinels.d.ts +36 -0
- package/dist/_dts/content-model/src/index.d.ts +3 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +8 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3071 -3157
- package/dist/_dts/media-core/src/fileMimeDetection.d.ts +16 -0
- package/dist/_dts/media-core/src/fileStorage.d.ts +8 -0
- package/dist/_dts/media-core/src/storagePathDomain.d.ts +2 -0
- package/dist/_dts/media-core/src/uploadVerificationContract.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +18 -0
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +15 -0
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +12 -1
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/helpers.d.ts +22 -1
- package/dist/_dts/sdk/src/cli/index.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/output.d.ts +88 -0
- package/dist/_dts/sdk/src/cli/program.d.ts +29 -0
- package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +10 -0
- package/dist/_dts/sdk/src/client/management/http.d.ts +7 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +43 -19
- package/dist/_dts/sdk/src/date-time/index.d.ts +68 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +893 -823
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/core.d.ts +15 -46
- package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +147 -0
- package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +2 -3
- package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +44 -32
- package/dist/_dts/theme-core/src/buttons/presets.d.ts +4 -25
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +100 -0
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +16 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +101 -83
- package/dist/_dts/theme-core/src/cards/types.d.ts +16 -16
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/gradients/presets.d.ts +200 -8
- package/dist/_dts/theme-core/src/gradients/utils.d.ts +6 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +87 -126
- package/dist/_dts/theme-core/src/mock-themes/modern-minimal.d.ts +1 -1
- package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -2
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +5 -8
- package/dist/_dts/theme-core/src/palette/index.d.ts +0 -1
- package/dist/_dts/theme-core/src/schema.d.ts +112 -138
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +10 -10
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +13 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +29 -8
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +2 -2
- package/dist/cli/index.mjs +67956 -66745
- package/dist/cli/init-docs/content/cli-reference.md +50 -7
- package/dist/cli/init-docs/content/content-management.md +7 -4
- package/dist/cli/init-docs/content/workflow-publish.md +5 -1
- package/dist/client/{DiscountCodeDisclosure-D6TOf6Hi.mjs → DiscountCodeDisclosure-DU1ygxU2.mjs} +1 -1
- package/dist/client/{EventCombined.client-Dao3zxRk.mjs → EventCombined.client-DB5zagCo.mjs} +3 -3
- package/dist/client/{EventListing.client-B2NNt4y1.mjs → EventListing.client-CTX9JHBL.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BhwFo16w.mjs → LeafletStaticMap-BYImhgiB.mjs} +1 -1
- package/dist/client/{MagicLinkForm-BWnB7cMR.mjs → MagicLinkForm-CRkw_M3l.mjs} +2 -2
- package/dist/client/{StepIndicator-TzRiQ0BY.mjs → StepIndicator-BnmVBJJh.mjs} +2 -2
- package/dist/client/{accordion-BPy-AJ4_.mjs → accordion-CeGreumd.mjs} +1 -1
- package/dist/client/{bookingForm-BL4PGZds.mjs → bookingForm-CSzFNrpN.mjs} +6 -6
- package/dist/client/bookings.mjs +512 -252
- package/dist/client/{buttons-EBjyslaX.mjs → buttons-DoFV7KDL.mjs} +493 -230
- package/dist/client/{carousel-C2b7Cn9-.mjs → carousel-B2jDtogf.mjs} +1 -1
- package/dist/client/{cart-BQcbXIVD.mjs → cart-D-jZ-vaY.mjs} +3 -3
- package/dist/client/{checkout-DEmpGRJu.mjs → checkout-Dza-LA7N.mjs} +3 -3
- package/dist/client/client.mjs +1673 -785
- package/dist/client/{colorStyles-jZS6KfkP.mjs → colorStyles-CrgzoXsm.mjs} +1 -30
- package/dist/client/{courseRegistration-BqRZPmsq.mjs → courseRegistration-TYkNychb.mjs} +7 -7
- package/dist/client/{eventCalendar-B8N_tSl5.mjs → eventCalendar-BI_90SsT.mjs} +5 -5
- package/dist/client/{eventCombined-Gjn6gtq7.mjs → eventCombined-mNrpryE9.mjs} +2 -2
- package/dist/client/{eventDetails-M-VCxA-r.mjs → eventDetails-D4GVlCIY.mjs} +3 -3
- package/dist/client/{eventListing-DR19hqYi.mjs → eventListing-YhKN018y.mjs} +2 -2
- package/dist/client/{eventRegistration-BR02a0k3.mjs → eventRegistration-CdHGtilr.mjs} +7 -7
- package/dist/client/foregroundContract-xICPq59x.mjs +31 -0
- package/dist/client/{form-LY2xIbwg.mjs → form-AcAL45rA.mjs} +2 -2
- package/dist/client/{headerSection-CYwwXJfh.mjs → headerSection-uEC52ueD.mjs} +3 -3
- package/dist/client/hooks.mjs +890 -497
- package/dist/client/{locationMap-DWnBXrFq.mjs → locationMap-_wJDSUYe.mjs} +3 -3
- package/dist/client/{media-DHtSxS5V.mjs → media-BK0O3b-U.mjs} +3 -2
- package/dist/client/{newsletterForm-D9s-fQ2P.mjs → newsletterForm-DrArsb2B.mjs} +2 -2
- package/dist/client/{pricing-DDq80oYc.mjs → pricing-BSYVghwo.mjs} +1 -1
- package/dist/client/{productDetail-B0SbWd45.mjs → productDetail-Dyk90sMs.mjs} +3 -3
- package/dist/client/{productList-PwYlZn0y.mjs → productList-BCKThwAI.mjs} +3 -3
- package/dist/client/{propsDecoder-BRWBiH7i.mjs → propsDecoder-CkXxkdSR.mjs} +63 -24
- package/dist/client/rendering/client.mjs +1034 -486
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +1832 -760
- package/dist/client/{shop-CMwZPYME.mjs → shop-DeltVH10.mjs} +6 -6
- package/dist/client/{shop-commerce-BuxsFate.mjs → shop-commerce-BD9Jsm2Z.mjs} +6 -6
- package/dist/client/{shop-commerce-store-boYlEJ91.mjs → shop-commerce-store-CmXD6FDS.mjs} +1 -1
- package/dist/client/{shopShared-D2naaOes.mjs → shopShared-B8v-lH_F.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-D9RHpVoj.mjs → useDiscountCodeUi-DbWJN8ld.mjs} +1 -1
- package/dist/client/{useEventFilters-igGiK1re.mjs → useEventFilters-EJIMUnqT.mjs} +46 -69
- package/dist/client/{usePolling-CI7MbsFB.mjs → usePolling-Cmh14fc7.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +35 -0
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +35 -0
- package/dist/{previewAuthStore-a_cBD28m.mjs → previewAuthStore-CTO7CRPk.mjs} +35 -0
- package/dist/{sdk-runtime-MBzD-GmP.mjs → sdk-runtime-Dou0GAav.mjs} +2 -2
- package/dist/{separator-5ahRBC85.mjs → separator-CI5wZNXT.mjs} +1 -1
- package/dist/server/components.mjs +1832 -784
- package/dist/server/config-validation.mjs +890 -497
- package/dist/server/config.mjs +890 -497
- package/dist/server/data.mjs +890 -497
- package/dist/server/date-time.mjs +386 -0
- package/dist/server/index.mjs +36 -1
- package/dist/server/next.mjs +1868 -785
- package/dist/server/page-converter.mjs +849 -285
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1553 -718
- package/dist/server/rendering.mjs +1832 -784
- package/dist/server/routing.mjs +933 -522
- package/dist/server/server.mjs +929 -501
- package/dist/server/theme-bridge.mjs +1408 -392
- package/dist/server/theme.mjs +471 -228
- package/dist/styles/index.css +5 -0
- package/package.json +7 -1
- package/dist/_dts/theme-core/src/buttons/presets/types.d.ts +0 -88
- package/dist/_dts/theme-core/src/buttons/utils/contrast.d.ts +0 -38
- package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +0 -57
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ut as assertNever$1, _t as assertNever, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { Ut as assertNever$1, _t as assertNever, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder } from "./propsDecoder-CkXxkdSR.mjs";
|
|
3
3
|
import { n as useBlockApi } from "./context-BGZNlGXB.mjs";
|
|
4
|
-
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
6
|
-
import {
|
|
4
|
+
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-DbWJN8ld.mjs";
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-DU1ygxU2.mjs";
|
|
6
|
+
import { r as themeButtonClassName } from "./buttons-DoFV7KDL.mjs";
|
|
7
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
8
8
|
import { t as scrollToBlock } from "./scrollToBlock-C86BYkyV.mjs";
|
|
9
9
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
10
10
|
import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
|
|
11
11
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
12
|
-
import { _ as MembershipCardView, a as getDiscountApplyFeedback, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassesMembershipsSectionView } from "./shopShared-
|
|
13
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
12
|
+
import { _ as MembershipCardView, a as getDiscountApplyFeedback, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassesMembershipsSectionView } from "./shopShared-B8v-lH_F.mjs";
|
|
13
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-CmXD6FDS.mjs";
|
|
14
14
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
15
15
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { J as createRichTextDocFromMarkdown, St as reportWorkflowError, X as isRecord, Y as unwrapRichTextRoot, _t as assertNever, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, vt as clearWorkflowFeedback } from "./propsDecoder-
|
|
3
|
-
import { a as getCurrentResolveImageUrlContext, c as resolveImageUrlWithContext, t as ImagePresets } from "./media-
|
|
2
|
+
import { J as createRichTextDocFromMarkdown, St as reportWorkflowError, X as isRecord, Y as unwrapRichTextRoot, _t as assertNever, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, vt as clearWorkflowFeedback } from "./propsDecoder-CkXxkdSR.mjs";
|
|
3
|
+
import { a as getCurrentResolveImageUrlContext, c as resolveImageUrlWithContext, t as ImagePresets } from "./media-BK0O3b-U.mjs";
|
|
4
4
|
import { n as useBlockApi } from "./context-BGZNlGXB.mjs";
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
6
|
-
import {
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-DU1ygxU2.mjs";
|
|
6
|
+
import { r as themeButtonClassName } from "./buttons-DoFV7KDL.mjs";
|
|
7
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
8
8
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-Ct8Mxna3.mjs";
|
|
9
9
|
import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
|
|
10
10
|
import { t as CarouselNodeClient } from "./carousel.client-CpwTUhIo.mjs";
|
|
11
11
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
|
|
12
|
-
import { C as ProductListSectionView, S as ProductGalleryFrameView, a as getDiscountApplyFeedback, b as ProductCardView, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as VariantSelectView, x as ProductDetailView } from "./shopShared-
|
|
13
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
12
|
+
import { C as ProductListSectionView, S as ProductGalleryFrameView, a as getDiscountApplyFeedback, b as ProductCardView, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as VariantSelectView, x as ProductDetailView } from "./shopShared-B8v-lH_F.mjs";
|
|
13
|
+
import { n as useCommerceCart } from "./shop-commerce-store-CmXD6FDS.mjs";
|
|
14
14
|
import * as React$1 from "react";
|
|
15
15
|
import React, { useEffect, useState } from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-
|
|
2
|
+
import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-CkXxkdSR.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
5
5
|
const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { g as ok, h as err } from "./colorTokenParts-CMugwvX_.mjs";
|
|
3
|
-
import { _t as assertNever } from "./propsDecoder-
|
|
3
|
+
import { _t as assertNever } from "./propsDecoder-CkXxkdSR.mjs";
|
|
4
4
|
import { t as BlockApiProvider } from "./context-BGZNlGXB.mjs";
|
|
5
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
5
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-DU1ygxU2.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
7
7
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
8
8
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
2
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-DU1ygxU2.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/CheckIcon.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as parseColorTokenParts } from "./colorTokenParts-CMugwvX_.mjs";
|
|
3
|
-
import { A as formatDate, B as resolveEventCta, D as normalizeCsvIds, E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, I as formatTime, N as formatEventPrice, O as normalizeCsvString, Q as parseThemeColorToken, U as getEventAvailability, Z as normalizeCardVariantRole, _t as assertNever, j as formatEventCompactDateRail, k as normalizeOptionalId, q as normalizeEventBlockKind } from "./propsDecoder-
|
|
4
|
-
import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-
|
|
5
|
-
import { i as rgbColorValue } from "./colorStyles-
|
|
3
|
+
import { A as formatDate, B as resolveEventCta, D as normalizeCsvIds, E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, I as formatTime, N as formatEventPrice, O as normalizeCsvString, Q as parseThemeColorToken, U as getEventAvailability, Z as normalizeCardVariantRole, _t as assertNever, j as formatEventCompactDateRail, k as normalizeOptionalId, q as normalizeEventBlockKind } from "./propsDecoder-CkXxkdSR.mjs";
|
|
4
|
+
import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-BK0O3b-U.mjs";
|
|
5
|
+
import { i as rgbColorValue } from "./colorStyles-CrgzoXsm.mjs";
|
|
6
6
|
import { n as useBlockApi } from "./context-BGZNlGXB.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { t as LeafletStaticMap } from "./LeafletStaticMap-
|
|
7
|
+
import { n as hexToRgb, r as themeButtonClassName, t as relativeLuminance } from "./buttons-DoFV7KDL.mjs";
|
|
8
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-BYImhgiB.mjs";
|
|
9
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { z as z$1 } from "zod";
|
|
@@ -30,6 +30,47 @@ const EmptyState = ({ message = "No upcoming events scheduled.", className, hasA
|
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
|
+
//#region ../theme-core/src/palette/utils/textColor.ts
|
|
34
|
+
/**
|
|
35
|
+
* Pick the better of black/white text for a given background using actual
|
|
36
|
+
* contrast ratios, not a simple luminance cutoff.
|
|
37
|
+
*
|
|
38
|
+
* @param background - Background color in hex or rgb/rgba format (e.g., '#FFFFFF' or 'rgb(255, 255, 255)')
|
|
39
|
+
* @param minContrast - Preferred minimum contrast ratio for body-sized text
|
|
40
|
+
* @returns '#000000' for light backgrounds, '#FFFFFF' for dark backgrounds
|
|
41
|
+
*/
|
|
42
|
+
function pickBlackOrWhiteTextColor(background, minContrast = 4.5) {
|
|
43
|
+
const { r, g, b } = parseColorToRgb(background);
|
|
44
|
+
const luminance = relativeLuminance(r, g, b);
|
|
45
|
+
const blackContrast = (luminance + .05) / .05;
|
|
46
|
+
const whiteContrast = 1.05 / (luminance + .05);
|
|
47
|
+
if (blackContrast >= minContrast && whiteContrast < minContrast) return "#000000";
|
|
48
|
+
if (whiteContrast >= minContrast && blackContrast < minContrast) return "#FFFFFF";
|
|
49
|
+
return blackContrast >= whiteContrast ? "#000000" : "#FFFFFF";
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Backwards-compatible alias for callers that want the best black/white text
|
|
53
|
+
* color for a background.
|
|
54
|
+
*/
|
|
55
|
+
function getTextColorForBackground(background) {
|
|
56
|
+
return pickBlackOrWhiteTextColor(background);
|
|
57
|
+
}
|
|
58
|
+
function parseColorToRgb(input) {
|
|
59
|
+
const trimmed = input.trim();
|
|
60
|
+
if (trimmed.startsWith("#")) return hexToRgb(trimmed);
|
|
61
|
+
const rgbMatch = trimmed.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(?:0|1|0?\.\d+))?\s*\)$/i);
|
|
62
|
+
if (rgbMatch?.[1] && rgbMatch[2] && rgbMatch[3]) return {
|
|
63
|
+
r: clamp255(Number(rgbMatch[1])),
|
|
64
|
+
g: clamp255(Number(rgbMatch[2])),
|
|
65
|
+
b: clamp255(Number(rgbMatch[3]))
|
|
66
|
+
};
|
|
67
|
+
throw new Error("Unsupported color format");
|
|
68
|
+
}
|
|
69
|
+
function clamp255(value) {
|
|
70
|
+
if (Number.isNaN(value)) return 0;
|
|
71
|
+
return Math.max(0, Math.min(255, value));
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
33
74
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventFilters.tsx
|
|
34
75
|
/**
|
|
35
76
|
* EventFilters Component
|
|
@@ -135,70 +176,6 @@ const EventFilters = ({ categories, venues, staffMembers, selectedKind, selected
|
|
|
135
176
|
]
|
|
136
177
|
});
|
|
137
178
|
};
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region ../theme-core/src/palette/utils/colorConversion.ts
|
|
140
|
-
function hexToRgb(hex) {
|
|
141
|
-
const h = hex.replace(/^#/, "");
|
|
142
|
-
const m = h.length === 3 ? h.split("").map((c) => c + c).join("") : h;
|
|
143
|
-
if (m.length !== 6) throw new Error("Bad hex");
|
|
144
|
-
const int = parseInt(m, 16);
|
|
145
|
-
return {
|
|
146
|
-
r: int >> 16 & 255,
|
|
147
|
-
g: int >> 8 & 255,
|
|
148
|
-
b: int & 255
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
function srgbToLinear(u) {
|
|
152
|
-
const x = u / 255;
|
|
153
|
-
return x <= .04045 ? x / 12.92 : Math.pow((x + .055) / 1.055, 2.4);
|
|
154
|
-
}
|
|
155
|
-
//#endregion
|
|
156
|
-
//#region ../theme-core/src/palette/utils/contrast.ts
|
|
157
|
-
function relativeLuminance(r, g, b) {
|
|
158
|
-
const R = srgbToLinear(r), G = srgbToLinear(g), B = srgbToLinear(b);
|
|
159
|
-
return .2126 * R + .7152 * G + .0722 * B;
|
|
160
|
-
}
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region ../theme-core/src/palette/utils/textColor.ts
|
|
163
|
-
/**
|
|
164
|
-
* Pick the better of black/white text for a given background using actual
|
|
165
|
-
* contrast ratios, not a simple luminance cutoff.
|
|
166
|
-
*
|
|
167
|
-
* @param background - Background color in hex or rgb/rgba format (e.g., '#FFFFFF' or 'rgb(255, 255, 255)')
|
|
168
|
-
* @param minContrast - Preferred minimum contrast ratio for body-sized text
|
|
169
|
-
* @returns '#000000' for light backgrounds, '#FFFFFF' for dark backgrounds
|
|
170
|
-
*/
|
|
171
|
-
function pickBlackOrWhiteTextColor(background, minContrast = 4.5) {
|
|
172
|
-
const { r, g, b } = parseColorToRgb(background);
|
|
173
|
-
const luminance = relativeLuminance(r, g, b);
|
|
174
|
-
const blackContrast = (luminance + .05) / .05;
|
|
175
|
-
const whiteContrast = 1.05 / (luminance + .05);
|
|
176
|
-
if (blackContrast >= minContrast && whiteContrast < minContrast) return "#000000";
|
|
177
|
-
if (whiteContrast >= minContrast && blackContrast < minContrast) return "#FFFFFF";
|
|
178
|
-
return blackContrast >= whiteContrast ? "#000000" : "#FFFFFF";
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Backwards-compatible alias for callers that want the best black/white text
|
|
182
|
-
* color for a background.
|
|
183
|
-
*/
|
|
184
|
-
function getTextColorForBackground(background) {
|
|
185
|
-
return pickBlackOrWhiteTextColor(background);
|
|
186
|
-
}
|
|
187
|
-
function parseColorToRgb(input) {
|
|
188
|
-
const trimmed = input.trim();
|
|
189
|
-
if (trimmed.startsWith("#")) return hexToRgb(trimmed);
|
|
190
|
-
const rgbMatch = trimmed.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(?:0|1|0?\.\d+))?\s*\)$/i);
|
|
191
|
-
if (rgbMatch?.[1] && rgbMatch[2] && rgbMatch[3]) return {
|
|
192
|
-
r: clamp255(Number(rgbMatch[1])),
|
|
193
|
-
g: clamp255(Number(rgbMatch[2])),
|
|
194
|
-
b: clamp255(Number(rgbMatch[3]))
|
|
195
|
-
};
|
|
196
|
-
throw new Error("Unsupported color format");
|
|
197
|
-
}
|
|
198
|
-
function clamp255(value) {
|
|
199
|
-
if (Number.isNaN(value)) return 0;
|
|
200
|
-
return Math.max(0, Math.min(255, value));
|
|
201
|
-
}
|
|
202
179
|
z$1.string();
|
|
203
180
|
const CSS_COLOR_FUNCTION_PATTERN = /^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\(/i;
|
|
204
181
|
const CSS_HEX_COLOR_PATTERN = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _t as assertNever$2 } from "./propsDecoder-
|
|
3
|
-
import { r as formatPrice } from "./StepIndicator-
|
|
2
|
+
import { _t as assertNever$2 } from "./propsDecoder-CkXxkdSR.mjs";
|
|
3
|
+
import { r as formatPrice } from "./StepIndicator-BnmVBJJh.mjs";
|
|
4
4
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
5
5
|
//#region ../core/src/date-math.ts
|
|
6
6
|
function addDaysToDate(date, dayCount) {
|
|
@@ -6319,6 +6319,41 @@ const API_ENDPOINTS = {
|
|
|
6319
6319
|
auth: "service",
|
|
6320
6320
|
responseKind: "json"
|
|
6321
6321
|
},
|
|
6322
|
+
sdkCatalogTheme: {
|
|
6323
|
+
path: "/sdk/{siteId}/catalog/theme",
|
|
6324
|
+
method: "GET",
|
|
6325
|
+
errors: ["server:internal_error"],
|
|
6326
|
+
auth: "service",
|
|
6327
|
+
responseKind: "json"
|
|
6328
|
+
},
|
|
6329
|
+
sdkCatalogBlocks: {
|
|
6330
|
+
path: "/sdk/{siteId}/catalog/blocks",
|
|
6331
|
+
method: "GET",
|
|
6332
|
+
errors: ["server:internal_error"],
|
|
6333
|
+
auth: "service",
|
|
6334
|
+
responseKind: "json"
|
|
6335
|
+
},
|
|
6336
|
+
sdkCatalogContentTypes: {
|
|
6337
|
+
path: "/sdk/{siteId}/catalog/content-types",
|
|
6338
|
+
method: "GET",
|
|
6339
|
+
errors: ["server:internal_error"],
|
|
6340
|
+
auth: "service",
|
|
6341
|
+
responseKind: "json"
|
|
6342
|
+
},
|
|
6343
|
+
sdkCapabilities: {
|
|
6344
|
+
path: "/sdk/{siteId}/capabilities",
|
|
6345
|
+
method: "GET",
|
|
6346
|
+
errors: ["server:internal_error"],
|
|
6347
|
+
auth: "service",
|
|
6348
|
+
responseKind: "json"
|
|
6349
|
+
},
|
|
6350
|
+
sdkListDemoContent: {
|
|
6351
|
+
path: "/sdk/{siteId}/demo-content",
|
|
6352
|
+
method: "GET",
|
|
6353
|
+
errors: ["server:internal_error"],
|
|
6354
|
+
auth: "service",
|
|
6355
|
+
responseKind: "json"
|
|
6356
|
+
},
|
|
6322
6357
|
sdkPullPages: {
|
|
6323
6358
|
path: "/sdk/{siteId}/pull/pages",
|
|
6324
6359
|
method: "GET",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-
|
|
2
|
+
import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-D0y2l8JN.mjs";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/preview-next/client/runtime.tsx
|
|
6
6
|
const LazySdkPreviewMode = React.lazy(async () => {
|
|
7
|
-
return { default: (await import("../../SdkPreviewModeRuntime-
|
|
7
|
+
return { default: (await import("../../SdkPreviewModeRuntime-D8Gt9Gbe.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
|
|
8
8
|
});
|
|
9
9
|
const LazyPreviewShell = React.lazy(async () => {
|
|
10
|
-
return { default: (await import("../../sdk-runtime-
|
|
10
|
+
return { default: (await import("../../sdk-runtime-Dou0GAav.mjs")).PreviewShell };
|
|
11
11
|
});
|
|
12
12
|
const LazyPreviewShellLayout = React.lazy(async () => {
|
|
13
|
-
return { default: (await import("../../sdk-runtime-
|
|
13
|
+
return { default: (await import("../../sdk-runtime-Dou0GAav.mjs")).PreviewShellLayout };
|
|
14
14
|
});
|
|
15
15
|
function SdkPreviewMode(props) {
|
|
16
16
|
return /* @__PURE__ */ jsx(React.Suspense, {
|
|
@@ -6321,6 +6321,41 @@ const API_ENDPOINTS = {
|
|
|
6321
6321
|
auth: "service",
|
|
6322
6322
|
responseKind: "json"
|
|
6323
6323
|
},
|
|
6324
|
+
sdkCatalogTheme: {
|
|
6325
|
+
path: "/sdk/{siteId}/catalog/theme",
|
|
6326
|
+
method: "GET",
|
|
6327
|
+
errors: ["server:internal_error"],
|
|
6328
|
+
auth: "service",
|
|
6329
|
+
responseKind: "json"
|
|
6330
|
+
},
|
|
6331
|
+
sdkCatalogBlocks: {
|
|
6332
|
+
path: "/sdk/{siteId}/catalog/blocks",
|
|
6333
|
+
method: "GET",
|
|
6334
|
+
errors: ["server:internal_error"],
|
|
6335
|
+
auth: "service",
|
|
6336
|
+
responseKind: "json"
|
|
6337
|
+
},
|
|
6338
|
+
sdkCatalogContentTypes: {
|
|
6339
|
+
path: "/sdk/{siteId}/catalog/content-types",
|
|
6340
|
+
method: "GET",
|
|
6341
|
+
errors: ["server:internal_error"],
|
|
6342
|
+
auth: "service",
|
|
6343
|
+
responseKind: "json"
|
|
6344
|
+
},
|
|
6345
|
+
sdkCapabilities: {
|
|
6346
|
+
path: "/sdk/{siteId}/capabilities",
|
|
6347
|
+
method: "GET",
|
|
6348
|
+
errors: ["server:internal_error"],
|
|
6349
|
+
auth: "service",
|
|
6350
|
+
responseKind: "json"
|
|
6351
|
+
},
|
|
6352
|
+
sdkListDemoContent: {
|
|
6353
|
+
path: "/sdk/{siteId}/demo-content",
|
|
6354
|
+
method: "GET",
|
|
6355
|
+
errors: ["server:internal_error"],
|
|
6356
|
+
auth: "service",
|
|
6357
|
+
responseKind: "json"
|
|
6358
|
+
},
|
|
6324
6359
|
sdkPullPages: {
|
|
6325
6360
|
path: "/sdk/{siteId}/pull/pages",
|
|
6326
6361
|
method: "GET",
|
|
@@ -6292,6 +6292,41 @@ const API_ENDPOINTS = {
|
|
|
6292
6292
|
auth: "service",
|
|
6293
6293
|
responseKind: "json"
|
|
6294
6294
|
},
|
|
6295
|
+
sdkCatalogTheme: {
|
|
6296
|
+
path: "/sdk/{siteId}/catalog/theme",
|
|
6297
|
+
method: "GET",
|
|
6298
|
+
errors: ["server:internal_error"],
|
|
6299
|
+
auth: "service",
|
|
6300
|
+
responseKind: "json"
|
|
6301
|
+
},
|
|
6302
|
+
sdkCatalogBlocks: {
|
|
6303
|
+
path: "/sdk/{siteId}/catalog/blocks",
|
|
6304
|
+
method: "GET",
|
|
6305
|
+
errors: ["server:internal_error"],
|
|
6306
|
+
auth: "service",
|
|
6307
|
+
responseKind: "json"
|
|
6308
|
+
},
|
|
6309
|
+
sdkCatalogContentTypes: {
|
|
6310
|
+
path: "/sdk/{siteId}/catalog/content-types",
|
|
6311
|
+
method: "GET",
|
|
6312
|
+
errors: ["server:internal_error"],
|
|
6313
|
+
auth: "service",
|
|
6314
|
+
responseKind: "json"
|
|
6315
|
+
},
|
|
6316
|
+
sdkCapabilities: {
|
|
6317
|
+
path: "/sdk/{siteId}/capabilities",
|
|
6318
|
+
method: "GET",
|
|
6319
|
+
errors: ["server:internal_error"],
|
|
6320
|
+
auth: "service",
|
|
6321
|
+
responseKind: "json"
|
|
6322
|
+
},
|
|
6323
|
+
sdkListDemoContent: {
|
|
6324
|
+
path: "/sdk/{siteId}/demo-content",
|
|
6325
|
+
method: "GET",
|
|
6326
|
+
errors: ["server:internal_error"],
|
|
6327
|
+
auth: "service",
|
|
6328
|
+
responseKind: "json"
|
|
6329
|
+
},
|
|
6295
6330
|
sdkPullPages: {
|
|
6296
6331
|
path: "/sdk/{siteId}/pull/pages",
|
|
6297
6332
|
method: "GET",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./PreviewQueryProvider-
|
|
3
|
-
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-
|
|
2
|
+
import "./PreviewQueryProvider-D0y2l8JN.mjs";
|
|
3
|
+
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-D8Gt9Gbe.mjs";
|
|
4
4
|
export { PreviewShell, PreviewShellLayout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Zu as Primitive, td as cn } from "./SiteChromeCustomizeContext-DUpalEdL.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.17__@types+r_adfab47c9055efb8b0c4b77a2b96b053/node_modules/@radix-ui/react-separator/dist/index.mjs
|