@riverbankcms/sdk 0.143.0 → 0.144.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PreviewEditorSidebar-DROGfMKi.mjs → PreviewEditorSidebar-CQZNnFiM.mjs} +19 -25
- package/dist/{PreviewEditorUI-BaRjhFu-.mjs → PreviewEditorUI-DCNxnmI0.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-OIABYLES.mjs → SdkPreviewModeRuntime-BJolUbr1.mjs} +15 -6
- package/dist/{SiteChromeCustomizeContext-ohjTvZbc.mjs → SiteChromeCustomizeContext-CKgEpoxi.mjs} +1915 -1463
- package/dist/_dts/api/src/billing.d.ts +1 -1
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
- package/dist/_dts/api/src/siteSettings.d.ts +17 -7
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
- package/dist/_dts/block-form/src/client/index.d.ts +1 -0
- package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
- package/dist/_dts/block-form/src/context/index.d.ts +1 -0
- package/dist/_dts/block-form/src/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +34 -10
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
- package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
- package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
- package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +13 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
- package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
- package/dist/_dts/logger/src/console.d.ts +3 -0
- package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
- package/dist/_dts/sdk/src/client/types.d.ts +3 -0
- package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +15 -7
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
- package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
- package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
- package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
- package/dist/_dts/ui/src/index.d.ts +1 -0
- package/dist/client/{BookingConsentAgreement-BoCtvzzu.mjs → BookingConsentAgreement-DoAILrkN.mjs} +4 -55
- package/dist/client/{DiscountCodeDisclosure-B5S30nZk.mjs → DiscountCodeDisclosure-X528hUTf.mjs} +27 -17
- package/dist/client/{EventCombined.client-CeZ2-zSt.mjs → EventCombined.client-DSBVwq5m.mjs} +54 -46
- package/dist/client/{EventListing.client-DJN3j8B3.mjs → EventListing.client-DmFAX7Vb.mjs} +3 -4
- package/dist/client/{LeafletStaticMap-RjtGzDQT.mjs → LeafletStaticMap-BAqXdfhq.mjs} +1 -1
- package/dist/client/ThemedButton-BwNFVwi4.mjs +412 -0
- package/dist/client/{accordion-DOmnDoyg.mjs → accordion-DRhMdkbd.mjs} +1 -1
- package/dist/client/{bookingForm-C0vk7pgS.mjs → bookingForm-iJ_nCsNF.mjs} +26 -32
- package/dist/client/bookings.mjs +201 -118
- package/dist/client/{carousel-BZJ7pno3.mjs → carousel-D8zuffZr.mjs} +2 -2
- package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
- package/dist/client/{cart-CaeVAHJl.mjs → cart-DeMGJViN.mjs} +3 -3
- package/dist/client/{checkout-7wmoNDtG.mjs → checkout-DXc06Km2.mjs} +3 -3
- package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
- package/dist/client/client.mjs +2271 -1983
- package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
- package/dist/client/{context-BOimxE3U.mjs → context-CDLCfDep.mjs} +24 -8
- package/dist/client/{dates-BnzVksi4.mjs → dates-ClFx7Epy.mjs} +2 -2
- package/dist/client/{eventCalendar-l-fpaslC.mjs → eventCalendar-BaGpnOGN.mjs} +39 -50
- package/dist/client/{eventCombined-DGGvssK6.mjs → eventCombined-ywONOx2m.mjs} +5 -4
- package/dist/client/{eventDetails-DRiCm_hL.mjs → eventDetails-B2LlOTYY.mjs} +4 -4
- package/dist/client/{eventListing-dph8loYX.mjs → eventListing-CMgxWpqP.mjs} +5 -4
- package/dist/client/{eventRegistration-ClBohmbY.mjs → eventRegistration-BarLDNHR.mjs} +83 -68
- package/dist/client/{form-BLVVAnd3.mjs → form-BjqKaBJ7.mjs} +9 -10
- package/dist/client/{headerSection-DHy4C8Ix.mjs → headerSection-CP4XDwz1.mjs} +23 -30
- package/dist/client/hooks.mjs +257 -63
- package/dist/client/{locationMap-6HuS28ck.mjs → locationMap-C5gW-d-w.mjs} +9 -10
- package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
- package/dist/client/{newsletterForm-xOdcOhZP.mjs → newsletterForm-afXlVSA0.mjs} +8 -9
- package/dist/client/{pricing-ChinRYFt.mjs → pricing-Bl1CAl28.mjs} +1 -1
- package/dist/client/{productDetail-0chA5gbK.mjs → productDetail-CvQ3jWQe.mjs} +3 -3
- package/dist/client/{productList-OoINA0h1.mjs → productList-U874PGO7.mjs} +3 -3
- package/dist/client/{propsDecoder-CIZ-hbIG.mjs → propsDecoder-DPXtCZWP.mjs} +87 -29
- package/dist/client/rendering/client.mjs +1891 -1740
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2225 -1913
- package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-NGYiUWXu.mjs} +8 -1
- package/dist/client/{scrollToBlock-BPZl0gPZ.mjs → scrollToBlock-0-C3DVhK.mjs} +1 -1
- package/dist/client/{shop-CLJFqNIq.mjs → shop-BXjXhM9P.mjs} +45 -58
- package/dist/client/{shop-commerce-PpANg5wB.mjs → shop-commerce-BZ6UlWJ7.mjs} +42 -55
- package/dist/client/{shop-commerce-store-TA_Kz2ku.mjs → shop-commerce-store-DlSBXb3D.mjs} +1 -1
- package/dist/client/{shopShared-DzcFcA5g.mjs → shopShared-kkEOiLPA.mjs} +6 -5
- package/dist/client/{useEventFilters-CFU21QZo.mjs → useEventFilters-zvnnE1ro.mjs} +66 -355
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/editor-chrome.css +8 -0
- package/dist/{sdk-runtime-CDKl0Fr7.mjs → sdk-runtime-DFJlQt3q.mjs} +1 -1
- package/dist/{separator-BTp96X32.mjs → separator-o8GHb1xh.mjs} +1 -1
- package/dist/server/components.mjs +828 -623
- package/dist/server/config-validation.mjs +257 -63
- package/dist/server/config.mjs +257 -63
- package/dist/server/data.mjs +257 -63
- package/dist/server/index.mjs +9 -5
- package/dist/server/navigation.mjs +28 -1
- package/dist/server/next.mjs +14129 -13947
- package/dist/server/page-converter.mjs +110 -59
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +832 -624
- package/dist/server/rendering.mjs +830 -624
- package/dist/server/routing.mjs +294 -69
- package/dist/server/server.mjs +266 -68
- package/dist/server/theme-bridge.mjs +40 -1
- package/dist/styles/index.css +6 -0
- package/package.json +1 -1
|
@@ -2238,16 +2238,28 @@ function backgroundColorStyle(token) {
|
|
|
2238
2238
|
return { backgroundColor: rgbColorValue(token) };
|
|
2239
2239
|
}
|
|
2240
2240
|
/**
|
|
2241
|
+
* Converts a text color token to a CSS color value that follows the enclosing
|
|
2242
|
+
* surface. The semantic text tokens (`text`, `heading`, `mutedText`) resolve
|
|
2243
|
+
* to the surface foreground variables, so text adapts when a section's
|
|
2244
|
+
* background changes; any other token is a fixed theme color.
|
|
2245
|
+
*
|
|
2246
|
+
* @param token - Theme color token
|
|
2247
|
+
* @returns CSS color value
|
|
2248
|
+
*/
|
|
2249
|
+
function textColorValue(token) {
|
|
2250
|
+
const parsed = parseToken(token);
|
|
2251
|
+
const surfaceRole = parsed.raw ? null : surfaceRoleForTextToken(parsed.token);
|
|
2252
|
+
if (!surfaceRole) return rgbColorValue(token);
|
|
2253
|
+
return parsed.opacityPercent === void 0 ? surfaceForegroundValue(surfaceRole) : surfaceForegroundValueWithOpacity(surfaceRole, parsed.opacityPercent);
|
|
2254
|
+
}
|
|
2255
|
+
/**
|
|
2241
2256
|
* Creates a text color style object from a theme token.
|
|
2242
2257
|
*
|
|
2243
2258
|
* @param token - Theme color token
|
|
2244
2259
|
* @returns CSSProperties with color
|
|
2245
2260
|
*/
|
|
2246
2261
|
function textColorStyle(token) {
|
|
2247
|
-
|
|
2248
|
-
const surfaceRole = parsed.raw ? null : surfaceRoleForTextToken(parsed.token);
|
|
2249
|
-
if (surfaceRole) return { color: parsed.opacityPercent === void 0 ? surfaceForegroundValue(surfaceRole) : surfaceForegroundValueWithOpacity(surfaceRole, parsed.opacityPercent) };
|
|
2250
|
-
return { color: rgbColorValue(token) };
|
|
2262
|
+
return { color: textColorValue(token) };
|
|
2251
2263
|
}
|
|
2252
2264
|
/**
|
|
2253
2265
|
* Creates a border color style object from a theme token.
|
|
@@ -14353,9 +14365,7 @@ function navRow(opts) {
|
|
|
14353
14365
|
rel: { $bind: { from: `${childItemName}.rel` } },
|
|
14354
14366
|
"data-active": { $bind: { from: `${childItemName}.active` } }
|
|
14355
14367
|
}, [text({ as: "span" }, bind(`${childItemName}.label`))], repeat(`${itemName}.children`, childItemName));
|
|
14356
|
-
const dropdown = el("div", { className: "nav-dropdown rb-relative" }, [
|
|
14357
|
-
type: "button",
|
|
14358
|
-
variantId: "",
|
|
14368
|
+
const dropdown = el("div", { className: "nav-dropdown rb-relative" }, [el("headerControl", {
|
|
14359
14369
|
className: prependClassName("nav-dropdown-trigger", linkClassName),
|
|
14360
14370
|
"aria-haspopup": "menu",
|
|
14361
14371
|
"aria-expanded": "false",
|
|
@@ -14423,9 +14433,7 @@ function navColumn(opts) {
|
|
|
14423
14433
|
const dropdown = el("div", {
|
|
14424
14434
|
className: "nav-mobile-dropdown",
|
|
14425
14435
|
"data-nav-mobile-dropdown": "true"
|
|
14426
|
-
}, [
|
|
14427
|
-
type: "button",
|
|
14428
|
-
variantId: "",
|
|
14436
|
+
}, [el("headerControl", {
|
|
14429
14437
|
className: triggerClassName,
|
|
14430
14438
|
"aria-expanded": "false",
|
|
14431
14439
|
"aria-controls": childrenId,
|
|
@@ -19221,46 +19229,42 @@ const whenTransformed = (from, transformId, equals = true) => (node) => ({
|
|
|
19221
19229
|
equals
|
|
19222
19230
|
}
|
|
19223
19231
|
});
|
|
19224
|
-
|
|
19232
|
+
/** Draw whichever site logo suits the surface this row sits on. */
|
|
19233
|
+
const bindChromeLogo = (surface) => bind("content", { transforms: [{
|
|
19234
|
+
id: "layout.chromeLogo",
|
|
19235
|
+
options: { surface }
|
|
19236
|
+
}] });
|
|
19237
|
+
/**
|
|
19238
|
+
* The brand link. The logo is chosen per surface because the open mobile menu
|
|
19239
|
+
* paints its own background, which may be the opposite tone to the header.
|
|
19240
|
+
*/
|
|
19241
|
+
const createLogoRow = (surface) => link({
|
|
19225
19242
|
href: "/",
|
|
19226
19243
|
className: bindProp("$root.theme.header.logo", {
|
|
19227
19244
|
transforms: pipe(tx("layout.headerLogoClass")),
|
|
19228
19245
|
fallback: "header-logo rb-flex rb-min-w-0 rb-items-center rb-gap-3 rb-no-underline rb-transition-opacity rb-hover-opacity-80"
|
|
19229
19246
|
})
|
|
19230
|
-
}, [
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
}) }, when("site.logo"), bind("site.logo"))], when("content.logo", { not: true })),
|
|
19239
|
-
text({
|
|
19240
|
-
as: "strong",
|
|
19241
|
-
className: "header-logo-text rb-truncate"
|
|
19242
|
-
}, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))
|
|
19243
|
-
]);
|
|
19247
|
+
}, [media({ className: bindProp("$root.theme.header.logo", {
|
|
19248
|
+
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
|
|
19249
|
+
fallback: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300"
|
|
19250
|
+
}) }, when("content.logo"), bindChromeLogo(surface)), text({
|
|
19251
|
+
as: "strong",
|
|
19252
|
+
className: "header-logo-text rb-truncate"
|
|
19253
|
+
}, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
|
|
19254
|
+
const logoRow = createLogoRow("header-root");
|
|
19244
19255
|
const centeredLogoRow = link({
|
|
19245
19256
|
href: "/",
|
|
19246
19257
|
className: bindProp("$root.theme.header.logo", {
|
|
19247
19258
|
transforms: pipe(tx("layout.headerLogoClass", { base: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80" })),
|
|
19248
19259
|
fallback: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80"
|
|
19249
19260
|
})
|
|
19250
|
-
}, [
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
fallback: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300"
|
|
19258
|
-
}) }, when("site.logo"), bind("site.logo"))], when("content.logo", { not: true })),
|
|
19259
|
-
text({
|
|
19260
|
-
as: "strong",
|
|
19261
|
-
className: "header-logo-text"
|
|
19262
|
-
}, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))
|
|
19263
|
-
]);
|
|
19261
|
+
}, [media({ className: bindProp("$root.theme.header.logo", {
|
|
19262
|
+
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300" })),
|
|
19263
|
+
fallback: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300"
|
|
19264
|
+
}) }, when("content.logo"), bindChromeLogo("header-root")), text({
|
|
19265
|
+
as: "strong",
|
|
19266
|
+
className: "header-logo-text"
|
|
19267
|
+
}, whenTransformed("$root.theme.header.logo", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
|
|
19264
19268
|
const createNavRow = (className, align = "end") => navRow({
|
|
19265
19269
|
className: `${className} header-nav-row`,
|
|
19266
19270
|
align,
|
|
@@ -19300,10 +19304,8 @@ const mobileToggleIcon = stack({
|
|
|
19300
19304
|
}
|
|
19301
19305
|
]);
|
|
19302
19306
|
const mobileToggleButton = {
|
|
19303
|
-
type: "
|
|
19307
|
+
type: "headerControl",
|
|
19304
19308
|
props: {
|
|
19305
|
-
type: "button",
|
|
19306
|
-
variantId: "",
|
|
19307
19309
|
className: `nav-mobile-toggle ${mobileOnlyDisplay("inline-flex")} rb-h-10 rb-w-10 rb-items-center rb-justify-center rb-rounded-md transition-theme-standard`,
|
|
19308
19310
|
"aria-label": "Open menu",
|
|
19309
19311
|
"aria-expanded": "false",
|
|
@@ -19313,10 +19315,8 @@ const mobileToggleButton = {
|
|
|
19313
19315
|
children: [mobileToggleIcon]
|
|
19314
19316
|
};
|
|
19315
19317
|
const mobileOverlayToggleButton = {
|
|
19316
|
-
type: "
|
|
19318
|
+
type: "headerControl",
|
|
19317
19319
|
props: {
|
|
19318
|
-
type: "button",
|
|
19319
|
-
variantId: "",
|
|
19320
19320
|
className: "nav-mobile-toggle rb-inline-flex rb-h-10 rb-w-10 rb-items-center rb-justify-center rb-rounded-md transition-theme-standard",
|
|
19321
19321
|
"aria-label": "Open menu",
|
|
19322
19322
|
"aria-expanded": "false",
|
|
@@ -19340,7 +19340,7 @@ const mobileOverlayHeader = inline({
|
|
|
19340
19340
|
align: "center",
|
|
19341
19341
|
justify: "between",
|
|
19342
19342
|
style: borderColorStyle("border")
|
|
19343
|
-
}, [
|
|
19343
|
+
}, [createLogoRow("header-mobile-panel"), mobileOverlayToggleButton]);
|
|
19344
19344
|
const mobileOverlayBody = stack({
|
|
19345
19345
|
className: "rb-flex-1 rb-px-6 rb-py-6",
|
|
19346
19346
|
gap: "md",
|
|
@@ -19527,7 +19527,10 @@ const brandLogo = link({
|
|
|
19527
19527
|
options: { base: "rb-h-10 rb-w-auto" }
|
|
19528
19528
|
}],
|
|
19529
19529
|
fallback: "rb-h-10 rb-w-auto"
|
|
19530
|
-
} } }, when("module.showLogo", { equals: true }), when("content.logo"), bind("content
|
|
19530
|
+
} } }, when("module.showLogo", { equals: true }), when("content.logo"), bind("content", { transforms: [{
|
|
19531
|
+
id: "layout.chromeLogo",
|
|
19532
|
+
options: { surface: "footer-root" }
|
|
19533
|
+
}] })), text({
|
|
19531
19534
|
as: "strong",
|
|
19532
19535
|
className: "footer-logo-text rb-nav-text"
|
|
19533
19536
|
}, when("module.showTitle", { equals: true }), bind("site.title", { fallback: "Your Site" }))], when("module.kind", { equals: "brand" }));
|
|
@@ -22313,6 +22316,12 @@ const occurrenceContextSchema = z.object({
|
|
|
22313
22316
|
capacityOverride: z.number().nullable().optional(),
|
|
22314
22317
|
overrides: z.record(z.string(), z.unknown()).nullable().optional()
|
|
22315
22318
|
}).nullable();
|
|
22319
|
+
//#endregion
|
|
22320
|
+
//#region ../blocks/src/system/runtime/api/readAuthority.ts
|
|
22321
|
+
const browserReadAuthoritySchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("published") }).strict(), z.object({
|
|
22322
|
+
kind: z.literal("preview"),
|
|
22323
|
+
token: z.string().min(1)
|
|
22324
|
+
}).strict()]);
|
|
22316
22325
|
const unsupportedEventRegistrationPageSurfaceSubjectSchema = z.object({
|
|
22317
22326
|
kind: z.literal("unsupported"),
|
|
22318
22327
|
reason: z.enum([
|
|
@@ -22423,6 +22432,33 @@ function normalizeEventCalendarDisplayMode$1(input) {
|
|
|
22423
22432
|
if (isEventCalendarDisplayMode(input.variant)) return input.variant;
|
|
22424
22433
|
return isEventCalendarDisplayMode(input.displayMode) ? input.displayMode : void 0;
|
|
22425
22434
|
}
|
|
22435
|
+
/** One closed authority for the projections required by each rendered mode. */
|
|
22436
|
+
function resolveEventCalendarReadPlan(input) {
|
|
22437
|
+
const mode = normalizeEventCalendarDisplayMode$1(input) ?? "combined";
|
|
22438
|
+
switch (mode) {
|
|
22439
|
+
case "combined": return {
|
|
22440
|
+
mode,
|
|
22441
|
+
jobs: "both",
|
|
22442
|
+
readProfile: "listing-card"
|
|
22443
|
+
};
|
|
22444
|
+
case "list": return {
|
|
22445
|
+
mode,
|
|
22446
|
+
jobs: "list",
|
|
22447
|
+
readProfile: "listing-card"
|
|
22448
|
+
};
|
|
22449
|
+
case "calendar": return {
|
|
22450
|
+
mode,
|
|
22451
|
+
jobs: "calendar",
|
|
22452
|
+
readProfile: "listing-card"
|
|
22453
|
+
};
|
|
22454
|
+
case "timetable":
|
|
22455
|
+
case "week-board": return {
|
|
22456
|
+
mode,
|
|
22457
|
+
jobs: "calendar",
|
|
22458
|
+
readProfile: "timetable"
|
|
22459
|
+
};
|
|
22460
|
+
}
|
|
22461
|
+
}
|
|
22426
22462
|
function isEventCalendarDefaultView(value) {
|
|
22427
22463
|
return typeof value === "string" && eventCalendarDefaultViewValues.includes(value);
|
|
22428
22464
|
}
|
|
@@ -22617,6 +22653,7 @@ const eventRegistrationSourceSchema = z.object({
|
|
|
22617
22653
|
apiBaseUrl: z.string().optional(),
|
|
22618
22654
|
portalToken: z.string().nullable().optional(),
|
|
22619
22655
|
previewToken: z.string().nullable().optional(),
|
|
22656
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
22620
22657
|
...eventRegistrationHydrationSchemaShape,
|
|
22621
22658
|
events: z.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
22622
22659
|
wholeSeriesRunEvents: z.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
@@ -22654,6 +22691,7 @@ z.object({
|
|
|
22654
22691
|
apiBaseUrl: z.string().optional(),
|
|
22655
22692
|
portalToken: z.string().nullable().optional(),
|
|
22656
22693
|
previewToken: z.string().nullable().optional(),
|
|
22694
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
22657
22695
|
stage: previewStageSchema.optional()
|
|
22658
22696
|
});
|
|
22659
22697
|
function buildEventRegistrationDisplayFromScopedEvents(source, scopedSourceEvents) {
|
|
@@ -22912,6 +22950,7 @@ const eventRegistrationBlockDefinition = {
|
|
|
22912
22950
|
text({ as: "h2" }, bind("content.heading"), when("content.heading")),
|
|
22913
22951
|
richText({ className: "rb-prose rb-max-w-none" }, bind("content.description"), when("content.description")),
|
|
22914
22952
|
eventRegistration(withApiBindings({
|
|
22953
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
22915
22954
|
occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
|
|
22916
22955
|
subject: { $bind: { from: "$root.subject" } },
|
|
22917
22956
|
portalToken: { $bind: {
|
|
@@ -23629,6 +23668,7 @@ const eventCollectionSourceSchemaShape = {
|
|
|
23629
23668
|
events: z.array(publicEventSchema).nullable().optional(),
|
|
23630
23669
|
siteId: z.string(),
|
|
23631
23670
|
apiBaseUrl: z.string().optional(),
|
|
23671
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
23632
23672
|
stage: previewStageSchema.optional(),
|
|
23633
23673
|
listLayout: eventLayoutSchema.optional(),
|
|
23634
23674
|
listColumns: columnOptionSchema.optional(),
|
|
@@ -23681,7 +23721,6 @@ const eventCollectionDisplaySchemaShape = {
|
|
|
23681
23721
|
const eventCollectionHydrationSchema = z.object({
|
|
23682
23722
|
siteId: z.string(),
|
|
23683
23723
|
calendarWindow: calendarWindowPageSchema.optional(),
|
|
23684
|
-
stage: previewStageSchema.optional(),
|
|
23685
23724
|
prefetchedEvents: z.boolean(),
|
|
23686
23725
|
eventSurface: eventSurfaceScopeSchema$1,
|
|
23687
23726
|
filterEventPresets: z.string().nullable(),
|
|
@@ -23756,7 +23795,6 @@ function buildEventCollectionHydration(source, now = /* @__PURE__ */ new Date())
|
|
|
23756
23795
|
return {
|
|
23757
23796
|
calendarWindow: source.calendarWindow ?? void 0,
|
|
23758
23797
|
siteId: source.siteId,
|
|
23759
|
-
stage: source.stage,
|
|
23760
23798
|
prefetchedEvents: source.events != null,
|
|
23761
23799
|
eventSurface: selected ? "all" : normalizeEventSurfaceScope(source.eventSurface),
|
|
23762
23800
|
filterEventPresets: selected ? null : normalizeEventSurfacePresetsCsv(source.filterEventPresets),
|
|
@@ -23776,6 +23814,7 @@ const eventListingSourceSchema = z.object({
|
|
|
23776
23814
|
events: z.array(publicEventSchema).nullable().optional(),
|
|
23777
23815
|
siteId: z.string(),
|
|
23778
23816
|
apiBaseUrl: z.string().optional(),
|
|
23817
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
23779
23818
|
stage: previewStageSchema.optional(),
|
|
23780
23819
|
layout: eventLayoutSchema.optional(),
|
|
23781
23820
|
columns: columnOptionSchema.optional(),
|
|
@@ -23816,7 +23855,6 @@ const eventListingDisplaySchema = z.object({
|
|
|
23816
23855
|
});
|
|
23817
23856
|
const eventListingHydrationSchema = z.object({
|
|
23818
23857
|
siteId: z.string(),
|
|
23819
|
-
stage: previewStageSchema.optional(),
|
|
23820
23858
|
eventsPerPage: eventPageSizeSchema,
|
|
23821
23859
|
paginationAction: eventListPaginationActionSchema,
|
|
23822
23860
|
showFilters: z.boolean(),
|
|
@@ -23839,6 +23877,7 @@ const eventListingRenderSchema = z.object({
|
|
|
23839
23877
|
z.object({
|
|
23840
23878
|
siteId: z.string(),
|
|
23841
23879
|
apiBaseUrl: z.string().optional(),
|
|
23880
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
23842
23881
|
stage: previewStageSchema.optional()
|
|
23843
23882
|
});
|
|
23844
23883
|
const eventListingBlockRuntime = defineProgressiveBlockRuntime({
|
|
@@ -23873,7 +23912,6 @@ const eventListingBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
23873
23912
|
},
|
|
23874
23913
|
hydration: {
|
|
23875
23914
|
siteId: source.siteId,
|
|
23876
|
-
stage: source.stage,
|
|
23877
23915
|
eventsPerPage: pageSize,
|
|
23878
23916
|
paginationAction: resolveEventListPaginationAction({
|
|
23879
23917
|
paginationMode: source.paginationMode,
|
|
@@ -24155,6 +24193,7 @@ const eventListingBlockDefinition = {
|
|
|
24155
24193
|
rootType: "stack",
|
|
24156
24194
|
rootProps: { gap: "lg" },
|
|
24157
24195
|
children: [...eventSectionHeaderLayoutNodes(), el("event-listing", withApiBindings({
|
|
24196
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
24158
24197
|
events: { $bind: { from: "data.events" } },
|
|
24159
24198
|
stage: { $bind: {
|
|
24160
24199
|
from: "$root.previewStage",
|
|
@@ -24352,6 +24391,7 @@ const eventCalendarRenderSchema = z.object({
|
|
|
24352
24391
|
z.object({
|
|
24353
24392
|
siteId: z.string(),
|
|
24354
24393
|
apiBaseUrl: z.string().optional(),
|
|
24394
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
24355
24395
|
stage: previewStageSchema.optional()
|
|
24356
24396
|
});
|
|
24357
24397
|
/**
|
|
@@ -24373,7 +24413,7 @@ function buildEventCalendarDisplay(source) {
|
|
|
24373
24413
|
listColumns: source.listColumns ?? source.columns
|
|
24374
24414
|
}),
|
|
24375
24415
|
kind: "event-calendar",
|
|
24376
|
-
displayMode:
|
|
24416
|
+
displayMode: resolveEventCalendarReadPlan(source).mode,
|
|
24377
24417
|
className: source.className ?? null,
|
|
24378
24418
|
events: (source.events ?? []).slice().sort((left, right) => new Date(left.startsAt).getTime() - new Date(right.startsAt).getTime()),
|
|
24379
24419
|
boardTitle: normalizeOptionalText(source.boardTitle),
|
|
@@ -24390,13 +24430,16 @@ const eventCalendarBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
24390
24430
|
source: createZodCodec(eventCalendarSourceSchema),
|
|
24391
24431
|
render: createZodCodec(eventCalendarRenderSchema)
|
|
24392
24432
|
},
|
|
24393
|
-
buildRender: (source) =>
|
|
24394
|
-
|
|
24395
|
-
|
|
24396
|
-
|
|
24397
|
-
|
|
24398
|
-
|
|
24399
|
-
|
|
24433
|
+
buildRender: (source) => {
|
|
24434
|
+
const plan = resolveEventCalendarReadPlan(source);
|
|
24435
|
+
return {
|
|
24436
|
+
display: buildEventCalendarDisplay(source.calendarWindow && plan.jobs === "calendar" ? {
|
|
24437
|
+
...source,
|
|
24438
|
+
events: source.calendarWindow.events
|
|
24439
|
+
} : source),
|
|
24440
|
+
hydration: buildEventCollectionHydration(source)
|
|
24441
|
+
};
|
|
24442
|
+
}
|
|
24400
24443
|
});
|
|
24401
24444
|
//#endregion
|
|
24402
24445
|
//#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
|
|
@@ -24546,6 +24589,7 @@ const eventCalendarLayout = [styledSection({
|
|
|
24546
24589
|
rootType: "stack",
|
|
24547
24590
|
rootProps: { gap: "lg" },
|
|
24548
24591
|
children: [...eventSectionHeaderLayoutNodes({ splitClassName: "event-section-head event-section-head--split" }), el("event-calendar", withApiBindings({
|
|
24592
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
24549
24593
|
events: { $bind: { from: "data.events" } },
|
|
24550
24594
|
calendarWindow: { $bind: { from: "data.calendarWindow" } },
|
|
24551
24595
|
stage: { $bind: {
|
|
@@ -28171,6 +28215,7 @@ const shopSourceSchema = z.object({
|
|
|
28171
28215
|
products: z.array(publicProductSchema).nullable().optional(),
|
|
28172
28216
|
siteId: z.string().optional(),
|
|
28173
28217
|
apiBaseUrl: z.string().optional(),
|
|
28218
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
28174
28219
|
stage: previewStageSchema.optional()
|
|
28175
28220
|
});
|
|
28176
28221
|
const productVariantOptionDisplaySchema = z.object({
|
|
@@ -28338,6 +28383,7 @@ function resolveShowPricePerCredit(source) {
|
|
|
28338
28383
|
z.object({
|
|
28339
28384
|
siteId: z.string().optional(),
|
|
28340
28385
|
apiBaseUrl: z.string().optional(),
|
|
28386
|
+
readAuthority: browserReadAuthoritySchema.optional(),
|
|
28341
28387
|
stage: previewStageSchema.optional()
|
|
28342
28388
|
});
|
|
28343
28389
|
const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
@@ -28678,6 +28724,7 @@ const shopBlockDefinition = {
|
|
|
28678
28724
|
baseClass: "",
|
|
28679
28725
|
spacing: "spacious",
|
|
28680
28726
|
children: sectionContainer([shop(withApiBindings({
|
|
28727
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
28681
28728
|
mode: "passes-memberships",
|
|
28682
28729
|
showPasses: { $bind: {
|
|
28683
28730
|
from: "content.showPasses",
|
|
@@ -28876,6 +28923,7 @@ const productListBlockDefinition = {
|
|
|
28876
28923
|
baseClass: "",
|
|
28877
28924
|
spacing: "spacious",
|
|
28878
28925
|
children: sectionContainer([productList(withApiBindings({
|
|
28926
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
28879
28927
|
mode: "product-list",
|
|
28880
28928
|
heading: { $bind: {
|
|
28881
28929
|
from: "content.heading",
|
|
@@ -29018,6 +29066,7 @@ const productDetailBlockDefinition = {
|
|
|
29018
29066
|
baseClass: "",
|
|
29019
29067
|
spacing: "spacious",
|
|
29020
29068
|
children: sectionContainer([productDetail(withApiBindings({
|
|
29069
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
29021
29070
|
mode: "product-detail",
|
|
29022
29071
|
heading: { $bind: {
|
|
29023
29072
|
from: "content.heading",
|
|
@@ -29134,6 +29183,7 @@ const cartBlockDefinition = {
|
|
|
29134
29183
|
baseClass: "",
|
|
29135
29184
|
spacing: "spacious",
|
|
29136
29185
|
children: sectionContainer([cart(withApiBindings({
|
|
29186
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
29137
29187
|
mode: "cart",
|
|
29138
29188
|
heading: { $bind: {
|
|
29139
29189
|
from: "content.heading",
|
|
@@ -29217,6 +29267,7 @@ const checkoutBlockDefinition = {
|
|
|
29217
29267
|
baseClass: "",
|
|
29218
29268
|
spacing: "spacious",
|
|
29219
29269
|
children: sectionContainer([checkout(withApiBindings({
|
|
29270
|
+
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
29220
29271
|
mode: "checkout",
|
|
29221
29272
|
heading: { $bind: {
|
|
29222
29273
|
from: "content.heading",
|
package/dist/server/prebuild.mjs
CHANGED