@riverbankcms/sdk 0.96.0 → 0.99.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 +20 -1
- package/dist/{PreviewEditorSidebar-46VT4QVU.mjs → PreviewEditorSidebar-TPOKCCKY.mjs} +3 -3
- package/dist/{PreviewEditorUI-JD75GE5F.mjs → PreviewEditorUI-Y347GLC2.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-OGTXRQ4M.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +36 -36
- package/dist/_dts/api/src/billing.d.ts +2 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +35 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +246 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +109 -40
- package/dist/_dts/api/src/endpoints.d.ts +88 -0
- package/dist/_dts/api/src/index.d.ts +3 -2
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +10 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -1
- package/dist/_dts/api/src/siteOperations.d.ts +65 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +7 -1
- package/dist/_dts/billing/src/site-arrangements.d.ts +151 -0
- package/dist/_dts/billing/src/subscriptions/store.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/resolveThumbnail.d.ts +2 -1
- package/dist/_dts/blocks/src/PageRenderer.d.ts +8 -1
- package/dist/_dts/blocks/src/bindings/types.d.ts +0 -4
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +7 -0
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +12 -12
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/layout.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/weekly-slot-availability.d.ts +34 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -0
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +4 -1
- package/dist/_dts/blocks/src/system/node/builder.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/schema.d.ts +13 -0
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/components/booking/DatePicker.d.ts +6 -2
- package/dist/_dts/blocks/src/system/runtime/components/booking/SuccessMessage.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/components/booking/TimeSlotSelector.d.ts +10 -4
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAppointmentCheckoutVerification.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/StepIndicator.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +133 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.client.controller.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.client.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.client.state.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.server.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.view.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +31 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/FeedbackMessage.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/{nodes/event-registration → shared/components}/SelectableOptionCard.d.ts +11 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/StepIndicator.d.ts +16 -5
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +5 -0
- package/dist/_dts/blocks/src/utils/date-formatting.d.ts +18 -2
- package/dist/_dts/content-editor/src/primitives/PreviewInlineTextEditor.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +1 -1
- package/dist/_dts/content-model/src/templates/defaults.d.ts +5 -5
- package/dist/_dts/content-model/src/templates/types.d.ts +2 -6
- package/dist/_dts/core/src/branded.d.ts +8 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +767 -20
- package/dist/_dts/field-primitives/src/bindings/index.d.ts +8 -0
- package/dist/_dts/sdk/src/__mocks__/next-cache.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +15 -0
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +9 -3
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +34 -0
- package/dist/_dts/sdk/src/cli/commands/push.d.ts +13 -0
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +29 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +16 -14
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +6 -4
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/helpers.d.ts +6 -7
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +6 -18
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +2 -4
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +6 -18
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +2 -4
- package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +32 -0
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +27 -0
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +63 -0
- package/dist/_dts/sdk/src/cli/push-config.d.ts +13 -2
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +51 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +21 -0
- package/dist/_dts/sdk/src/client/index.d.ts +6 -0
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +1 -1
- package/dist/_dts/sdk/src/client/types.d.ts +18 -2
- 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/bindings.d.ts +3 -7
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +13 -0
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +6 -1
- package/dist/_dts/sdk/src/next/route-outcome-proxy.d.ts +3 -3
- package/dist/_dts/sdk/src/next/types.d.ts +19 -0
- package/dist/_dts/sdk/src/prebuild/loader.d.ts +8 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +174 -78
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +4 -0
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +58 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +8 -0
- package/dist/_dts/sdk/src/rendering/hooks/usePage.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +18 -66
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +2 -0
- package/dist/_dts/sdk/src/routing/resolveRoute.d.ts +18 -0
- package/dist/_dts/sdk/src/test/apiClient.d.ts +17 -0
- package/dist/_dts/sdk/src/test/bunDom.setup.d.ts +1 -0
- package/dist/_dts/sdk/src/test/env.d.ts +4 -0
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +3 -3
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/interactive/generateBaseCSS.d.ts +6 -0
- package/dist/_dts/theme-core/src/status/contextualColors.d.ts +6 -0
- package/dist/_dts/theme-core/src/status/index.d.ts +1 -0
- package/dist/{chunk-VHIMXQ7Z.mjs → chunk-4HXF2QLH.mjs} +2 -2
- package/dist/{chunk-VTPPVAOL.mjs → chunk-EMJIT3ZJ.mjs} +1 -1
- package/dist/{chunk-4TLTV7OB.mjs → chunk-PM7HGDHM.mjs} +2 -2
- package/dist/{chunk-XMATDBXO.mjs → chunk-XO34WBBP.mjs} +2139 -1348
- package/dist/{chunk-EL55VV6Q.mjs → chunk-YGTTEVUM.mjs} +31 -10
- package/dist/{chunk-7ED5UNHL.mjs → chunk-YWTCCOSF.mjs} +117 -0
- package/dist/cli/index.mjs +2690 -1503
- package/dist/cli/init-docs/content/cli-reference.md +29 -1
- package/dist/cli/init-docs/content/getting-started.md +8 -0
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +3 -1
- package/dist/cli/init-docs/content/workflow-preview-mode.md +6 -0
- package/dist/cli/init-docs/content/workflow-remote-setup.md +51 -0
- package/dist/client/{accordion-GUNXIIZR.mjs → accordion-QSUEYL4L.mjs} +2 -2
- package/dist/client/{bookingForm-AOU4VHP5.mjs → bookingForm-QYGAHPDP.mjs} +376 -302
- package/dist/client/bookings.mjs +795 -429
- package/dist/client/{carousel-4QSX2JPC.mjs → carousel-SM2LEWAU.mjs} +3 -3
- package/dist/client/{cart-JKN6C4ZB.mjs → cart-3N3SFKNQ.mjs} +7 -7
- package/dist/client/{checkout-YY6YMITW.mjs → checkout-YFAYPKPZ.mjs} +7 -7
- package/dist/client/{chunk-SY543WZ3.mjs → chunk-5DLGREUB.mjs} +1 -1
- package/dist/client/{chunk-A3YN7M3G.mjs → chunk-CLZ7NBSP.mjs} +147 -75
- package/dist/client/{chunk-GWCRCJLB.mjs → chunk-CYJ3MUFP.mjs} +18 -6
- package/dist/client/{chunk-JNE6UI6U.mjs → chunk-H3H3ODO7.mjs} +1 -1
- package/dist/client/{chunk-CPKMJVBD.mjs → chunk-HPEQ4YWW.mjs} +83 -109
- package/dist/client/{chunk-PCHACQEB.mjs → chunk-IIUIKJ4K.mjs} +15 -7
- package/dist/client/{chunk-TNGL2WJF.mjs → chunk-IOAHWAQG.mjs} +18 -0
- package/dist/client/{chunk-6H27K6AA.mjs → chunk-JTKBF3W2.mjs} +10 -4
- package/dist/client/{chunk-OLAOAZEO.mjs → chunk-K7KTSACR.mjs} +1 -1
- package/dist/client/{chunk-BFCJZODD.mjs → chunk-R32M5HFS.mjs} +6 -6
- package/dist/client/{chunk-VJROUYOQ.mjs → chunk-WEVT46PX.mjs} +3 -3
- package/dist/client/{chunk-H7A6PUGM.mjs → chunk-ZU65LTI3.mjs} +1 -1
- package/dist/client/client.mjs +5052 -4083
- package/dist/client/{courseRegistration-UU2KMPSQ.mjs → courseRegistration-LYBE7VVK.mjs} +7 -7
- package/dist/client/{eventCalendar-WIVNS2TM.mjs → eventCalendar-FMTB75X6.mjs} +9 -9
- package/dist/client/{eventCombined-P3G5MW4J.mjs → eventCombined-E4LUCJXT.mjs} +9 -9
- package/dist/client/{eventDetails-2VHJ2RDG.mjs → eventDetails-GELSRR4Z.mjs} +9 -9
- package/dist/client/{eventListing-TGO6JI3R.mjs → eventListing-TB623B6R.mjs} +9 -9
- package/dist/client/{eventRegistration-B46HEJES.mjs → eventRegistration-NRIKHXTI.mjs} +9 -9
- package/dist/client/{form-VKRTFUNQ.mjs → form-Y4U4IAXE.mjs} +3 -3
- package/dist/client/{headerSection-XUX4ZJLO.mjs → headerSection-QSOVV5P7.mjs} +3 -3
- package/dist/client/hooks.mjs +1776 -1355
- package/dist/client/{locationMap-NQFI5MJO.mjs → locationMap-QYCAHH7H.mjs} +3 -3
- package/dist/client/{newsletterForm-P2GETCQK.mjs → newsletterForm-NWHY5TBY.mjs} +3 -3
- package/dist/client/{productDetail-7NQ7O5IF.mjs → productDetail-FYDMU2CE.mjs} +7 -7
- package/dist/client/{productList-RX6ZJ7BL.mjs → productList-D76CGACQ.mjs} +7 -7
- package/dist/client/rendering/client.mjs +2990 -2470
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3236 -2236
- package/dist/client/{shop-BHN5AKY6.mjs → shop-SOUACT5N.mjs} +7 -7
- package/dist/preview-next/before-render.mjs +117 -0
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/middleware.mjs +117 -0
- package/dist/{sdk-runtime-X2LXQ5IC.mjs → sdk-runtime-XPVE3LBA.mjs} +6 -6
- package/dist/server/components.mjs +3115 -2484
- package/dist/server/config-template-validation.mjs +6 -2
- package/dist/server/config-validation.mjs +1961 -1580
- package/dist/server/config.mjs +1961 -1580
- package/dist/server/data.mjs +1762 -1352
- package/dist/server/index.mjs +266 -33
- package/dist/server/next/middleware.mjs +2 -2
- package/dist/server/next.mjs +3399 -2504
- package/dist/server/page-converter.mjs +1553 -1295
- package/dist/server/prebuild-loader.mjs +42 -23
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3151 -2489
- package/dist/server/rendering.mjs +3363 -2555
- package/dist/server/routing.mjs +1877 -1388
- package/dist/server/server.mjs +2057 -1402
- package/dist/server/theme-bridge.mjs +597 -505
- package/dist/server/theme.mjs +5 -4
- package/dist/styles/index.css +499 -490
- package/package.json +6 -4
- package/dist/SdkPreviewModeRuntime-MJUSYUFB.mjs +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { normalizeCarouselProps, CarouselNodeClient } from './chunk-
|
|
1
|
+
import { normalizeCarouselProps, CarouselNodeClient } from './chunk-H3H3ODO7.mjs';
|
|
2
2
|
import './chunk-6N7YRNYU.mjs';
|
|
3
3
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
4
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import { defineIslandPropsDecoder } from './chunk-CYJ3MUFP.mjs';
|
|
5
|
+
import './chunk-IIUIKJ4K.mjs';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var decode = defineIslandPropsDecoder("carousel");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { mountShopBlockIsland, CartClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { mountShopBlockIsland, CartClient } from './chunk-R32M5HFS.mjs';
|
|
2
|
+
import './chunk-ZU65LTI3.mjs';
|
|
3
|
+
import './chunk-H3H3ODO7.mjs';
|
|
4
4
|
import './chunk-6N7YRNYU.mjs';
|
|
5
5
|
import './chunk-L4J5Y62O.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-CLZ7NBSP.mjs';
|
|
7
7
|
import './chunk-3DCJ45Z2.mjs';
|
|
8
8
|
import './chunk-WBQG7VJA.mjs';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-IOAHWAQG.mjs';
|
|
10
10
|
import './chunk-N7PBWBWQ.mjs';
|
|
11
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import { defineIslandPropsDecoder } from './chunk-CYJ3MUFP.mjs';
|
|
12
|
+
import './chunk-IIUIKJ4K.mjs';
|
|
13
13
|
|
|
14
14
|
// src/rendering/islands/enhancers/cart.tsx
|
|
15
15
|
var decode = defineIslandPropsDecoder("cart");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { mountShopBlockIsland, CheckoutClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { mountShopBlockIsland, CheckoutClient } from './chunk-R32M5HFS.mjs';
|
|
2
|
+
import './chunk-ZU65LTI3.mjs';
|
|
3
|
+
import './chunk-H3H3ODO7.mjs';
|
|
4
4
|
import './chunk-6N7YRNYU.mjs';
|
|
5
5
|
import './chunk-L4J5Y62O.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-CLZ7NBSP.mjs';
|
|
7
7
|
import './chunk-3DCJ45Z2.mjs';
|
|
8
8
|
import './chunk-WBQG7VJA.mjs';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-IOAHWAQG.mjs';
|
|
10
10
|
import './chunk-N7PBWBWQ.mjs';
|
|
11
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import { defineIslandPropsDecoder } from './chunk-CYJ3MUFP.mjs';
|
|
12
|
+
import './chunk-IIUIKJ4K.mjs';
|
|
13
13
|
|
|
14
14
|
// src/rendering/islands/enhancers/checkout.tsx
|
|
15
15
|
var decode = defineIslandPropsDecoder("checkout");
|
|
@@ -1,9 +1,71 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { FeedbackMessage, discountAvailabilityHasDiscounts, getAutoAppliedDiscountPreview, discountAvailabilityAllowsManualEntry } from './chunk-
|
|
3
|
-
import { themeButtonClassName } from './chunk-
|
|
4
|
-
import { formatCurrencyAmount, clsx_default } from './chunk-
|
|
5
|
-
import { useReducer, useEffect, useId, useRef } from 'react';
|
|
2
|
+
import { FeedbackMessage, discountAvailabilityHasDiscounts, getAutoAppliedDiscountPreview, discountAvailabilityAllowsManualEntry } from './chunk-IOAHWAQG.mjs';
|
|
3
|
+
import { themeButtonClassName } from './chunk-CYJ3MUFP.mjs';
|
|
4
|
+
import { formatCurrencyAmount, clsx_default } from './chunk-IIUIKJ4K.mjs';
|
|
6
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
import { useReducer, useEffect, useId, useRef } from 'react';
|
|
7
|
+
|
|
8
|
+
function CheckIcon({ className, strokeWidth = 2 }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
"svg",
|
|
11
|
+
{
|
|
12
|
+
fill: "none",
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
strokeWidth,
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
stroke: "currentColor",
|
|
18
|
+
className,
|
|
19
|
+
width: "1em",
|
|
20
|
+
height: "1em",
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
children: /* @__PURE__ */ jsx("path", { d: "M5 13l4 4L19 7" })
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function StateIcon({ variant, children }) {
|
|
27
|
+
return /* @__PURE__ */ jsx("div", { className: `rb-state-icon rb-state-icon--${variant}`, "aria-hidden": "true", children });
|
|
28
|
+
}
|
|
29
|
+
function joinClasses(...parts) {
|
|
30
|
+
return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
|
|
31
|
+
}
|
|
32
|
+
function TerminalPanel({
|
|
33
|
+
tone,
|
|
34
|
+
title,
|
|
35
|
+
titleAs: Title = "h3",
|
|
36
|
+
body,
|
|
37
|
+
secondaryBody,
|
|
38
|
+
icon,
|
|
39
|
+
actions,
|
|
40
|
+
className,
|
|
41
|
+
titleClassName,
|
|
42
|
+
bodyClassName,
|
|
43
|
+
secondaryBodyClassName,
|
|
44
|
+
iconClassName,
|
|
45
|
+
actionsClassName,
|
|
46
|
+
role,
|
|
47
|
+
live
|
|
48
|
+
}) {
|
|
49
|
+
const resolvedRole = role ?? (tone === "error" ? "alert" : "status");
|
|
50
|
+
const resolvedLive = live ?? (resolvedRole === "alert" ? "assertive" : "polite");
|
|
51
|
+
return /* @__PURE__ */ jsxs(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
className,
|
|
55
|
+
"data-terminal-panel": true,
|
|
56
|
+
"data-terminal-tone": tone,
|
|
57
|
+
role: resolvedRole,
|
|
58
|
+
"aria-live": resolvedLive === "off" ? void 0 : resolvedLive,
|
|
59
|
+
children: [
|
|
60
|
+
icon ? /* @__PURE__ */ jsx("div", { className: joinClasses(iconClassName), "data-terminal-icon": true, children: icon }) : null,
|
|
61
|
+
/* @__PURE__ */ jsx(Title, { className: joinClasses(titleClassName), "data-terminal-title": true, children: title }),
|
|
62
|
+
body ? /* @__PURE__ */ jsx("div", { className: joinClasses(bodyClassName), "data-terminal-body": true, children: body }) : null,
|
|
63
|
+
actions ? /* @__PURE__ */ jsx("div", { className: joinClasses(actionsClassName), "data-terminal-actions": true, children: actions }) : null,
|
|
64
|
+
secondaryBody ? /* @__PURE__ */ jsx("div", { className: joinClasses(secondaryBodyClassName), "data-terminal-secondary-body": true, children: secondaryBody }) : null
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
7
69
|
|
|
8
70
|
// ../blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.ts
|
|
9
71
|
var initialDiscountCodeUiState = {
|
|
@@ -402,24 +464,6 @@ function getStepNumber(step, wizardSteps) {
|
|
|
402
464
|
const index = wizardSteps.indexOf(step);
|
|
403
465
|
return index >= 0 ? index + 1 : 1;
|
|
404
466
|
}
|
|
405
|
-
function CheckIcon({ className, strokeWidth = 2 }) {
|
|
406
|
-
return /* @__PURE__ */ jsx(
|
|
407
|
-
"svg",
|
|
408
|
-
{
|
|
409
|
-
fill: "none",
|
|
410
|
-
strokeLinecap: "round",
|
|
411
|
-
strokeLinejoin: "round",
|
|
412
|
-
strokeWidth,
|
|
413
|
-
viewBox: "0 0 24 24",
|
|
414
|
-
stroke: "currentColor",
|
|
415
|
-
className,
|
|
416
|
-
width: "1em",
|
|
417
|
-
height: "1em",
|
|
418
|
-
"aria-hidden": "true",
|
|
419
|
-
children: /* @__PURE__ */ jsx("path", { d: "M5 13l4 4L19 7" })
|
|
420
|
-
}
|
|
421
|
-
);
|
|
422
|
-
}
|
|
423
467
|
function CrossIcon({ className, strokeWidth = 2 }) {
|
|
424
468
|
return /* @__PURE__ */ jsx(
|
|
425
469
|
"svg",
|
|
@@ -443,7 +487,7 @@ var alignmentClasses = {
|
|
|
443
487
|
end: "rb-justify-end",
|
|
444
488
|
between: "rb-justify-between"
|
|
445
489
|
};
|
|
446
|
-
function
|
|
490
|
+
function joinClasses2(...parts) {
|
|
447
491
|
return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
|
|
448
492
|
}
|
|
449
493
|
function ActionRow({
|
|
@@ -454,55 +498,12 @@ function ActionRow({
|
|
|
454
498
|
return /* @__PURE__ */ jsx(
|
|
455
499
|
"div",
|
|
456
500
|
{
|
|
457
|
-
className:
|
|
501
|
+
className: joinClasses2("rb-flex rb-flex-wrap rb-items-center rb-gap-2", alignmentClasses[align], className),
|
|
458
502
|
"data-action-row": true,
|
|
459
503
|
children
|
|
460
504
|
}
|
|
461
505
|
);
|
|
462
506
|
}
|
|
463
|
-
function StateIcon({ variant, children }) {
|
|
464
|
-
return /* @__PURE__ */ jsx("div", { className: `rb-state-icon rb-state-icon--${variant}`, "aria-hidden": "true", children });
|
|
465
|
-
}
|
|
466
|
-
function joinClasses2(...parts) {
|
|
467
|
-
return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
|
|
468
|
-
}
|
|
469
|
-
function TerminalPanel({
|
|
470
|
-
tone,
|
|
471
|
-
title,
|
|
472
|
-
titleAs: Title = "h3",
|
|
473
|
-
body,
|
|
474
|
-
secondaryBody,
|
|
475
|
-
icon,
|
|
476
|
-
actions,
|
|
477
|
-
className,
|
|
478
|
-
titleClassName,
|
|
479
|
-
bodyClassName,
|
|
480
|
-
secondaryBodyClassName,
|
|
481
|
-
iconClassName,
|
|
482
|
-
actionsClassName,
|
|
483
|
-
role,
|
|
484
|
-
live
|
|
485
|
-
}) {
|
|
486
|
-
const resolvedRole = role ?? (tone === "error" ? "alert" : "status");
|
|
487
|
-
const resolvedLive = live ?? (resolvedRole === "alert" ? "assertive" : "polite");
|
|
488
|
-
return /* @__PURE__ */ jsxs(
|
|
489
|
-
"div",
|
|
490
|
-
{
|
|
491
|
-
className,
|
|
492
|
-
"data-terminal-panel": true,
|
|
493
|
-
"data-terminal-tone": tone,
|
|
494
|
-
role: resolvedRole,
|
|
495
|
-
"aria-live": resolvedLive === "off" ? void 0 : resolvedLive,
|
|
496
|
-
children: [
|
|
497
|
-
icon ? /* @__PURE__ */ jsx("div", { className: joinClasses2(iconClassName), "data-terminal-icon": true, children: icon }) : null,
|
|
498
|
-
/* @__PURE__ */ jsx(Title, { className: joinClasses2(titleClassName), "data-terminal-title": true, children: title }),
|
|
499
|
-
body ? /* @__PURE__ */ jsx("div", { className: joinClasses2(bodyClassName), "data-terminal-body": true, children: body }) : null,
|
|
500
|
-
actions ? /* @__PURE__ */ jsx("div", { className: joinClasses2(actionsClassName), "data-terminal-actions": true, children: actions }) : null,
|
|
501
|
-
secondaryBody ? /* @__PURE__ */ jsx("div", { className: joinClasses2(secondaryBodyClassName), "data-terminal-secondary-body": true, children: secondaryBody }) : null
|
|
502
|
-
]
|
|
503
|
-
}
|
|
504
|
-
);
|
|
505
|
-
}
|
|
506
507
|
function ClockIcon({ className, strokeWidth = 2 }) {
|
|
507
508
|
return /* @__PURE__ */ jsx(
|
|
508
509
|
"svg",
|
|
@@ -612,40 +613,66 @@ function TabBarFragment({
|
|
|
612
613
|
}
|
|
613
614
|
);
|
|
614
615
|
}
|
|
616
|
+
function buildClassChannels(slot, classPrefix, emitSharedClasses) {
|
|
617
|
+
const classes = [];
|
|
618
|
+
if (emitSharedClasses) classes.push(`rb-${slot}`);
|
|
619
|
+
if (classPrefix) classes.push(`${classPrefix}-${slot}`);
|
|
620
|
+
return classes;
|
|
621
|
+
}
|
|
615
622
|
function StepIndicator({
|
|
616
623
|
currentStep,
|
|
617
624
|
totalSteps,
|
|
618
625
|
stepLabels,
|
|
619
|
-
classPrefix
|
|
626
|
+
classPrefix,
|
|
627
|
+
emitSharedClasses
|
|
620
628
|
}) {
|
|
621
|
-
|
|
629
|
+
const slotClass = (slot, modifier) => {
|
|
630
|
+
const base = buildClassChannels(slot, classPrefix, emitSharedClasses);
|
|
631
|
+
if (!modifier) return base.join(" ");
|
|
632
|
+
const modified = buildClassChannels(
|
|
633
|
+
`${slot}--${modifier}`,
|
|
634
|
+
classPrefix,
|
|
635
|
+
emitSharedClasses
|
|
636
|
+
);
|
|
637
|
+
return [...base, ...modified].join(" ");
|
|
638
|
+
};
|
|
639
|
+
return /* @__PURE__ */ jsx("nav", { "aria-label": "Registration progress", className: slotClass("steps-nav"), children: /* @__PURE__ */ jsx("ol", { className: slotClass("steps"), children: Array.from({ length: totalSteps }, (_, i) => {
|
|
622
640
|
const stepNum = i + 1;
|
|
623
641
|
const isActive = stepNum === currentStep;
|
|
624
642
|
const isComplete = stepNum < currentStep;
|
|
625
643
|
return /* @__PURE__ */ jsxs(
|
|
626
644
|
"li",
|
|
627
645
|
{
|
|
628
|
-
className:
|
|
646
|
+
className: slotClass("step"),
|
|
629
647
|
"aria-current": isActive ? "step" : void 0,
|
|
630
648
|
children: [
|
|
631
649
|
/* @__PURE__ */ jsx(
|
|
632
650
|
"div",
|
|
633
651
|
{
|
|
634
|
-
className:
|
|
635
|
-
|
|
652
|
+
className: slotClass(
|
|
653
|
+
"step-circle",
|
|
654
|
+
isActive ? "active" : isComplete ? "completed" : void 0
|
|
655
|
+
),
|
|
656
|
+
children: isComplete ? /* @__PURE__ */ jsx(CheckIcon, { className: slotClass("step-check"), strokeWidth: 3 }) : stepNum
|
|
636
657
|
}
|
|
637
658
|
),
|
|
638
659
|
stepLabels?.[i] && /* @__PURE__ */ jsx(
|
|
639
660
|
"span",
|
|
640
661
|
{
|
|
641
|
-
className:
|
|
662
|
+
className: slotClass(
|
|
663
|
+
"step-label",
|
|
664
|
+
isActive ? "active" : void 0
|
|
665
|
+
),
|
|
642
666
|
children: stepLabels[i]
|
|
643
667
|
}
|
|
644
668
|
),
|
|
645
669
|
stepNum < totalSteps && /* @__PURE__ */ jsx(
|
|
646
670
|
"div",
|
|
647
671
|
{
|
|
648
|
-
className:
|
|
672
|
+
className: slotClass(
|
|
673
|
+
"step-connector",
|
|
674
|
+
isComplete ? "completed" : void 0
|
|
675
|
+
),
|
|
649
676
|
"aria-hidden": "true"
|
|
650
677
|
}
|
|
651
678
|
)
|
|
@@ -655,5 +682,50 @@ function StepIndicator({
|
|
|
655
682
|
);
|
|
656
683
|
}) }) });
|
|
657
684
|
}
|
|
685
|
+
function SelectableOptionCard(props) {
|
|
686
|
+
const {
|
|
687
|
+
baseClassName,
|
|
688
|
+
selectedClassName,
|
|
689
|
+
disabledClassName,
|
|
690
|
+
iconClassName,
|
|
691
|
+
labelClassName,
|
|
692
|
+
detailClassName,
|
|
693
|
+
icon,
|
|
694
|
+
label,
|
|
695
|
+
detail,
|
|
696
|
+
selected,
|
|
697
|
+
disabled,
|
|
698
|
+
tooltip,
|
|
699
|
+
extraClassNames = [],
|
|
700
|
+
onClick,
|
|
701
|
+
renderCheck,
|
|
702
|
+
renderDisabledTooltip
|
|
703
|
+
} = props;
|
|
704
|
+
const isSelected = selected && !disabled;
|
|
705
|
+
const className = [
|
|
706
|
+
baseClassName,
|
|
707
|
+
isSelected && selectedClassName,
|
|
708
|
+
disabled && disabledClassName,
|
|
709
|
+
...extraClassNames
|
|
710
|
+
].filter(Boolean).join(" ");
|
|
711
|
+
const showNativeTitle = Boolean(tooltip) && !(disabled && renderDisabledTooltip);
|
|
712
|
+
return /* @__PURE__ */ jsxs(
|
|
713
|
+
"button",
|
|
714
|
+
{
|
|
715
|
+
type: "button",
|
|
716
|
+
className,
|
|
717
|
+
onClick: disabled ? void 0 : onClick,
|
|
718
|
+
title: showNativeTitle ? tooltip : void 0,
|
|
719
|
+
"aria-disabled": disabled || void 0,
|
|
720
|
+
children: [
|
|
721
|
+
/* @__PURE__ */ jsx("div", { className: iconClassName, children: icon }),
|
|
722
|
+
/* @__PURE__ */ jsx("div", { className: labelClassName, children: label }),
|
|
723
|
+
/* @__PURE__ */ jsx("div", { className: detailClassName, children: detail }),
|
|
724
|
+
isSelected && renderCheck?.(),
|
|
725
|
+
disabled && tooltip && renderDisabledTooltip?.(tooltip)
|
|
726
|
+
]
|
|
727
|
+
}
|
|
728
|
+
);
|
|
729
|
+
}
|
|
658
730
|
|
|
659
|
-
export { ActionRow, CheckIcon, ClockIcon, CrossIcon, DiscountCodeDisclosure, LoggedInAsUser, MembershipHero, StateIcon, StepIndicator, TabBarFragment, TerminalPanel, buildCheckoutReturnUrls, consumeSearchParam, consumeSearchParams, createBodyThemePortalRoot, formatPrice, getStepNumber, logoutPortal, scrollToBlock, useDiscountCodeUi, validateFormData };
|
|
731
|
+
export { ActionRow, CheckIcon, ClockIcon, CrossIcon, DiscountCodeDisclosure, LoggedInAsUser, MembershipHero, SelectableOptionCard, StateIcon, StepIndicator, TabBarFragment, TerminalPanel, buildCheckoutReturnUrls, consumeSearchParam, consumeSearchParams, createBodyThemePortalRoot, formatPrice, getStepNumber, logoutPortal, scrollToBlock, useDiscountCodeUi, validateFormData };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseAspectRatioValue, parseColorTokenParts, toBookingTimeZone, formatBookingDate, toScheduledBookingDateTime, formatBookingTime, toScheduledBookingDateRange, formatBookingDateParts, formatEventPricing, ImagePresets, getBookingLocalDateKey, publicEventPricingType, formatCurrencyAmount, getCurrentResolveImageUrlContext, renderVideo, renderAudio, resolveMediaNodeResponsiveImage, MediaPlaceholder, computeMediaTransformStyle, rgbColorValue } from './chunk-
|
|
1
|
+
import { parseAspectRatioValue, parseColorTokenParts, toBookingTimeZone, formatBookingDate, toScheduledBookingDateTime, formatBookingTime, toScheduledBookingDateRange, formatBookingDateParts, formatEventPricing, ImagePresets, getBookingLocalDateKey, publicEventPricingType, formatCurrencyAmount, getCurrentResolveImageUrlContext, renderVideo, renderAudio, resolveMediaNodeResponsiveImage, MediaPlaceholder, computeMediaTransformStyle, rgbColorValue } from './chunk-IIUIKJ4K.mjs';
|
|
2
2
|
import z2, { z } from 'zod';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -584,10 +584,20 @@ var repeatSchema = z.object({
|
|
|
584
584
|
direction: z.enum(["asc", "desc"]).default("asc")
|
|
585
585
|
}).optional()
|
|
586
586
|
});
|
|
587
|
+
var conditionalAuthoringPresenceSchema = z.discriminatedUnion("kind", [
|
|
588
|
+
z.object({ kind: z.literal("visitor-only") }),
|
|
589
|
+
z.object({
|
|
590
|
+
kind: z.literal("recover-empty-when-active"),
|
|
591
|
+
placeholder: z.string().min(1).optional()
|
|
592
|
+
})
|
|
593
|
+
]);
|
|
587
594
|
var conditionSchema = z.object({
|
|
588
595
|
when: bindingSchema,
|
|
589
596
|
equals: z.unknown().optional(),
|
|
590
|
-
not: z.boolean().default(false)
|
|
597
|
+
not: z.boolean().default(false),
|
|
598
|
+
authoringPresence: conditionalAuthoringPresenceSchema.default({
|
|
599
|
+
kind: "visitor-only"
|
|
600
|
+
})
|
|
591
601
|
});
|
|
592
602
|
var dataScopeSchema = z.object({
|
|
593
603
|
name: z.string().min(1),
|
|
@@ -688,6 +698,7 @@ function when(path, options) {
|
|
|
688
698
|
$when: {
|
|
689
699
|
when: { from: path },
|
|
690
700
|
...{},
|
|
701
|
+
...{},
|
|
691
702
|
...{}
|
|
692
703
|
}
|
|
693
704
|
});
|
|
@@ -1694,15 +1705,16 @@ var joyStamp = defineButtonPersonality({
|
|
|
1694
1705
|
// 700, matching the mockup's chunky button labels.
|
|
1695
1706
|
typography: "heading",
|
|
1696
1707
|
fontWeight: 700,
|
|
1708
|
+
fontSize: "text-lg",
|
|
1697
1709
|
borderWidth: 2,
|
|
1698
1710
|
hoverTransform: "none",
|
|
1699
1711
|
hoverColor: "none"
|
|
1700
1712
|
},
|
|
1701
1713
|
sizes: {
|
|
1702
|
-
sm: { padding: "0.625rem 1.25rem", fontSize: "text-
|
|
1703
|
-
md: { padding: "0.875rem 1.75rem", fontSize: "text-
|
|
1704
|
-
lg: { padding: "1.125rem 2.25rem", fontSize: "text-
|
|
1705
|
-
xl: { padding: "1.25rem 2.75rem", fontSize: "text-
|
|
1714
|
+
sm: { padding: "0.625rem 1.25rem", fontSize: "text-base" },
|
|
1715
|
+
md: { padding: "0.875rem 1.75rem", fontSize: "text-lg" },
|
|
1716
|
+
lg: { padding: "1.125rem 2.25rem", fontSize: "text-xl" },
|
|
1717
|
+
xl: { padding: "1.25rem 2.75rem", fontSize: "text-2xl" }
|
|
1706
1718
|
},
|
|
1707
1719
|
variants: [
|
|
1708
1720
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { ChevronLeft, ChevronRight } from './chunk-6N7YRNYU.mjs';
|
|
3
|
-
import { clsx_default } from './chunk-
|
|
3
|
+
import { clsx_default } from './chunk-IIUIKJ4K.mjs';
|
|
4
4
|
import React, { useRef, useState, useCallback, useEffect } from 'react';
|
|
5
5
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|