@riverbankcms/sdk 0.124.0 → 0.126.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 +3 -1
- package/dist/{PreviewEditorSidebar-DBmAJJkQ.mjs → PreviewEditorSidebar-DcYJxTgc.mjs} +67 -266
- package/dist/{PreviewEditorUI-CfGaz9cY.mjs → PreviewEditorUI-Ctt1yTJr.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BH-3-jSj.mjs → PreviewQueryProvider-DgFDIwvK.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-BW9Z8j8T.mjs → SdkPreviewModeRuntime-CvW1vdQ4.mjs} +38 -30
- package/dist/{SiteChromeCustomizeContext-2z8moxYf.mjs → SiteChromeCustomizeContext-C87qlKWw.mjs} +493 -1378
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1354 -202
- package/dist/_dts/api/src/accessAdmin.d.ts +2 -14
- package/dist/_dts/api/src/common/envelope.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +0 -2
- package/dist/_dts/api/src/endpoints.d.ts +0 -7
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +42 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +11 -9
- package/dist/_dts/api/src/siteAccessAdmin.d.ts +23 -0
- package/dist/_dts/api/src/siteOperations.d.ts +18 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -14
- package/dist/_dts/billing/src/plans/types.d.ts +24 -5
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +4 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +15 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +331 -19
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +1 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -2
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -12
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -13
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -100
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -4
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +11 -21
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +12 -0
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +5 -0
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +17 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -10
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +24 -0
- package/dist/_dts/sdk/src/client/management/http.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -28
- package/dist/_dts/sdk/src/config/index.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -20
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commandContract.d.ts +33 -5
- package/dist/_dts/site-commands/src/commandDomain.d.ts +2 -2
- package/dist/_dts/site-commands/src/commands.d.ts +38 -9
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +28 -1
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +4 -4
- package/dist/_dts/theme-core/src/palette/concretePalette.d.ts +20 -0
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -17
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -6
- package/dist/_dts/theme-core/src/palette/schema.d.ts +39 -0
- package/dist/_dts/theme-core/src/schema.d.ts +38 -26
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +5 -6
- package/dist/cli/index.mjs +631 -525
- package/dist/cli/init-docs/content/cli-reference.md +6 -3
- package/dist/cli/init-docs/content/content-management.md +24 -13
- package/dist/client/{DiscountCodeDisclosure-DxvjKvck.mjs → DiscountCodeDisclosure-DS0AuFWW.mjs} +1 -1
- package/dist/client/{EventCombined.client-BydMGc4c.mjs → EventCombined.client-DtMxLr7q.mjs} +2 -2
- package/dist/client/{EventListing.client-vpzhhysN.mjs → EventListing.client-BdLSRNg1.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CB07rpf8.mjs → LeafletStaticMap-BrpC6vsT.mjs} +1 -1
- package/dist/client/{MagicLinkForm-BzyRJ8VF.mjs → MagicLinkForm-Bt3IuLMy.mjs} +1 -1
- package/dist/client/{StepIndicator-CTcGf8Be.mjs → StepIndicator-CBYPFVoy.mjs} +2 -2
- package/dist/client/{accordion-B-DUDLRD.mjs → accordion-BqqwPJWM.mjs} +1 -1
- package/dist/client/{bookingForm-DSbClLcZ.mjs → bookingForm-SneP3yxC.mjs} +5 -6
- package/dist/client/bookings.mjs +190 -24
- package/dist/client/{carousel-B6Ccdx8M.mjs → carousel-BTIR9L3I.mjs} +1 -1
- package/dist/client/{cart-BZh8G8wM.mjs → cart-bqiqd8SX.mjs} +3 -3
- package/dist/client/{checkout-o6zaC-kM.mjs → checkout-WbTFV5v4.mjs} +3 -3
- package/dist/client/client.mjs +175 -223
- package/dist/client/{courseRegistration-Cf11pNDs.mjs → courseRegistration-BcemLAdN.mjs} +6 -7
- package/dist/client/{eventCalendar-BeXrdsSE.mjs → eventCalendar-CsxIw0V_.mjs} +4 -4
- package/dist/client/{eventCombined-DA76PZgG.mjs → eventCombined-B6XMoHfa.mjs} +2 -2
- package/dist/client/{eventDetails-BLxg0rok.mjs → eventDetails-BJaoPPfo.mjs} +10 -5
- package/dist/client/{eventListing-tO9LheBX.mjs → eventListing-DgwdYHRT.mjs} +2 -2
- package/dist/client/{eventRegistration-Cnene9D9.mjs → eventRegistration-C0O3folu.mjs} +30 -22
- package/dist/client/{form-DZf72CHB.mjs → form-Bk9txGFt.mjs} +1 -1
- package/dist/client/{headerSection-Hioja5Cr.mjs → headerSection-yIBt0yTv.mjs} +2 -2
- package/dist/client/hooks.mjs +54 -102
- package/dist/client/{locationMap-DwhUXEix.mjs → locationMap-C-3KIpv-.mjs} +2 -2
- package/dist/client/{newsletterForm-C350bEQf.mjs → newsletterForm-CzB8g8h2.mjs} +1 -1
- package/dist/client/{pricing-BYWN_ATa.mjs → pricing-C1QeDes_.mjs} +1 -1
- package/dist/client/{productDetail-CCqCyXgU.mjs → productDetail-w7SBp5uc.mjs} +3 -3
- package/dist/client/{productList-BAiNJrOU.mjs → productList-D0tGKHGf.mjs} +3 -3
- package/dist/client/{propsDecoder-DeunRj6m.mjs → propsDecoder-Bcin2DB3.mjs} +172 -11
- package/dist/client/rendering/client.mjs +322 -363
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +231 -272
- package/dist/client/{useDiscountCodeUi-I-92-x2V.mjs → scrollToBlock-h-o_STf_.mjs} +18 -2
- package/dist/client/{shop-DUmCdBtw.mjs → shop-BGzmL8O_.mjs} +5 -6
- package/dist/client/{shop-commerce-CY27mEUr.mjs → shop-commerce-lX8QxjX-.mjs} +4 -4
- package/dist/client/{shop-commerce-store-ChXPbWfa.mjs → shop-commerce-store-CEurARtu.mjs} +1 -1
- package/dist/client/{shopShared-q0kin1cv.mjs → shopShared-DXxH8xxw.mjs} +2 -2
- package/dist/client/{useEventFilters-DlcVluZh.mjs → useEventFilters-B591g9vd.mjs} +2 -2
- package/dist/client/{usePolling-Bz7GFV_a.mjs → usePolling-BvnChV4m.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +0 -7
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +0 -7
- package/dist/{previewAuthStore-CJX21dGi.mjs → previewAuthStore-Dev9CdG9.mjs} +0 -7
- package/dist/{sdk-runtime-OnPM8Z69.mjs → sdk-runtime-M__i3Jce.mjs} +2 -2
- package/dist/{separator-CPtfzHqA.mjs → separator-VSlnI9bc.mjs} +1 -1
- package/dist/server/components.mjs +99 -141
- package/dist/server/config-validation.mjs +54 -102
- package/dist/server/config.mjs +54 -102
- package/dist/server/data.mjs +54 -102
- package/dist/server/index.mjs +1 -8
- package/dist/server/next.mjs +103 -152
- package/dist/server/page-converter.mjs +54 -102
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +62 -104
- package/dist/server/rendering.mjs +100 -142
- package/dist/server/routing.mjs +75 -147
- package/dist/server/server.mjs +55 -110
- package/dist/server/theme-bridge.mjs +172 -162
- package/dist/server/theme.mjs +167 -11
- package/package.json +1 -1
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +0 -64
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +0 -81
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/selection.d.ts +0 -74
- package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +0 -34
- package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
package/dist/client/client.mjs
CHANGED
|
@@ -6205,13 +6205,6 @@ const API_ENDPOINTS$1 = {
|
|
|
6205
6205
|
auth: "user",
|
|
6206
6206
|
responseKind: "json"
|
|
6207
6207
|
},
|
|
6208
|
-
listSiteThemePalettes: {
|
|
6209
|
-
path: "/sites/{siteId}/theme/palettes",
|
|
6210
|
-
method: "GET",
|
|
6211
|
-
auth: "user",
|
|
6212
|
-
errors: [],
|
|
6213
|
-
responseKind: "json"
|
|
6214
|
-
},
|
|
6215
6208
|
createSiteFontUploadUrl: {
|
|
6216
6209
|
path: "/sites/{siteId}/fonts/upload-url",
|
|
6217
6210
|
method: "POST",
|
|
@@ -7485,7 +7478,7 @@ var init_demo_runtime = __esmMin((() => {}));
|
|
|
7485
7478
|
var init_collections = __esmMin((() => {}));
|
|
7486
7479
|
//#endregion
|
|
7487
7480
|
//#region ../core/src/assert-never.ts
|
|
7488
|
-
function assertNever$
|
|
7481
|
+
function assertNever$24(value, message = "Unexpected variant") {
|
|
7489
7482
|
throw new Error(`${message}: ${String(value)}`);
|
|
7490
7483
|
}
|
|
7491
7484
|
var init_assert_never = __esmMin((() => {}));
|
|
@@ -7597,7 +7590,7 @@ function formatCoursePriceDisplayLabel(display, options) {
|
|
|
7597
7590
|
case "exact": return `Course (${formatCurrencyAmount(display.amount, display.currency, options)})`;
|
|
7598
7591
|
case "from": return `Course (From ${formatCurrencyAmount(display.amount, display.currency, options)})`;
|
|
7599
7592
|
case "range": return `Course (${formatCurrencyAmount(display.minAmount, display.currency, options)} - ${formatCurrencyAmount(display.maxAmount, display.currency, options)})`;
|
|
7600
|
-
default: return assertNever$
|
|
7593
|
+
default: return assertNever$24(display);
|
|
7601
7594
|
}
|
|
7602
7595
|
}
|
|
7603
7596
|
/**
|
|
@@ -7617,7 +7610,7 @@ function formatBookingPriceDisplay(display, options = {}) {
|
|
|
7617
7610
|
case "unavailable": return "Pricing unavailable";
|
|
7618
7611
|
case "external": return display.label;
|
|
7619
7612
|
case "course": return formatCoursePriceDisplayLabel(display.display, options);
|
|
7620
|
-
default: return assertNever$
|
|
7613
|
+
default: return assertNever$24(display);
|
|
7621
7614
|
}
|
|
7622
7615
|
}
|
|
7623
7616
|
/** Render an event's price directly from its pricing value. */
|
|
@@ -7696,10 +7689,10 @@ function resolveFlexibleBalanceDueAt(input) {
|
|
|
7696
7689
|
switch (input.dueDateRule.kind) {
|
|
7697
7690
|
case "relative_to_start_date": return subtractDaysFromIso(input.bookingStartAt, input.dueDateRule.daysBeforeStart);
|
|
7698
7691
|
case "fixed_calendar_date": return input.dueDateRule.dueAt;
|
|
7699
|
-
default: return assertNever$
|
|
7692
|
+
default: return assertNever$23(input.dueDateRule);
|
|
7700
7693
|
}
|
|
7701
7694
|
}
|
|
7702
|
-
function assertNever$
|
|
7695
|
+
function assertNever$23(value) {
|
|
7703
7696
|
throw new Error(`Unexpected value: ${String(value)}`);
|
|
7704
7697
|
}
|
|
7705
7698
|
var init_booking_flexible_balance = __esmMin((() => {
|
|
@@ -7713,7 +7706,7 @@ function isDepositBearingBookingInstalmentPlan(plan) {
|
|
|
7713
7706
|
case "deposit_plus_one_remainder":
|
|
7714
7707
|
case "deposit_plus_scheduled_instalments": return true;
|
|
7715
7708
|
case "equal_scheduled_instalments": return false;
|
|
7716
|
-
default: return assertNever$
|
|
7709
|
+
default: return assertNever$22(plan);
|
|
7717
7710
|
}
|
|
7718
7711
|
}
|
|
7719
7712
|
function getBookingInstalmentDepositRefundability(plan) {
|
|
@@ -7739,7 +7732,7 @@ function addIntervalPreservingMonthAnchor(isoString, intervalCount, intervalUnit
|
|
|
7739
7732
|
date.setUTCDate(date.getUTCDate() + intervalCount * 7);
|
|
7740
7733
|
return date.toISOString();
|
|
7741
7734
|
case "month": return addMonthsPreservingAnchorDay(date, intervalCount).toISOString();
|
|
7742
|
-
default: return assertNever$
|
|
7735
|
+
default: return assertNever$22(intervalUnit);
|
|
7743
7736
|
}
|
|
7744
7737
|
}
|
|
7745
7738
|
function getBookingInstalmentPlanIntervalCount(plan) {
|
|
@@ -7747,7 +7740,7 @@ function getBookingInstalmentPlanIntervalCount(plan) {
|
|
|
7747
7740
|
case "deposit_plus_one_remainder": return plan.remainderDueCount;
|
|
7748
7741
|
case "deposit_plus_scheduled_instalments":
|
|
7749
7742
|
case "equal_scheduled_instalments": return plan.intervalCount;
|
|
7750
|
-
default: return assertNever$
|
|
7743
|
+
default: return assertNever$22(plan);
|
|
7751
7744
|
}
|
|
7752
7745
|
}
|
|
7753
7746
|
function omitZeroAmountFutureRows(rows) {
|
|
@@ -7763,7 +7756,7 @@ function addMonthsPreservingAnchorDay(date, intervalCount) {
|
|
|
7763
7756
|
nextMonth.setUTCDate(Math.min(anchorDay, lastDayOfTargetMonth));
|
|
7764
7757
|
return nextMonth;
|
|
7765
7758
|
}
|
|
7766
|
-
function assertNever$
|
|
7759
|
+
function assertNever$22(value) {
|
|
7767
7760
|
throw new Error(`Unexpected value: ${String(value)}`);
|
|
7768
7761
|
}
|
|
7769
7762
|
var init_booking_instalments = __esmMin((() => {}));
|
|
@@ -8405,7 +8398,7 @@ function navigationAuthoringLinkToCommandLink(link) {
|
|
|
8405
8398
|
badge: link.badge,
|
|
8406
8399
|
label: link.label
|
|
8407
8400
|
};
|
|
8408
|
-
default: return assertNever$
|
|
8401
|
+
default: return assertNever$24(link);
|
|
8409
8402
|
}
|
|
8410
8403
|
}
|
|
8411
8404
|
function portalLabelsForCommand(labels) {
|
|
@@ -8448,7 +8441,7 @@ function navigationReadLinkToLocalLink(item) {
|
|
|
8448
8441
|
badge: link.badge,
|
|
8449
8442
|
label: link.label
|
|
8450
8443
|
};
|
|
8451
|
-
default: return assertNever$
|
|
8444
|
+
default: return assertNever$24(link);
|
|
8452
8445
|
}
|
|
8453
8446
|
}
|
|
8454
8447
|
function internalNavigationLinkToLocalLink(item) {
|
|
@@ -9498,7 +9491,7 @@ const linkSchema = z$1.union([
|
|
|
9498
9491
|
//#endregion
|
|
9499
9492
|
//#region ../blocks/src/system/node/schema.ts
|
|
9500
9493
|
var transformStepSchema, bindingPathSchema, bindingSchema, repeatSchema, conditionalAuthoringPresenceSchema, conditionSchema, dataScopeSchema, nodePropsSchema, nodeSchema, nodeTreeSchema, NodeSchema, NodeTreeSchema;
|
|
9501
|
-
var init_schema$
|
|
9494
|
+
var init_schema$3 = __esmMin((() => {
|
|
9502
9495
|
transformStepSchema = z$1.object({
|
|
9503
9496
|
id: z$1.string().min(1, "Transform requires an identifier"),
|
|
9504
9497
|
options: z$1.record(z$1.string(), z$1.unknown()).optional()
|
|
@@ -9702,7 +9695,7 @@ var init_validation_constants = __esmMin((() => {
|
|
|
9702
9695
|
//#endregion
|
|
9703
9696
|
//#region ../blocks/src/system/node/index.ts
|
|
9704
9697
|
var init_node = __esmMin((() => {
|
|
9705
|
-
init_schema$
|
|
9698
|
+
init_schema$3();
|
|
9706
9699
|
init_typeBasedLayout();
|
|
9707
9700
|
init_validation_constants();
|
|
9708
9701
|
}));
|
|
@@ -9853,7 +9846,7 @@ function createSdkSelectField(input) {
|
|
|
9853
9846
|
}));
|
|
9854
9847
|
}
|
|
9855
9848
|
var visibilityLevels, MEDIA_KINDS, DISPLAY_MEDIA_KINDS, DEFAULT_MEDIA_FIELD_KINDS, PUBLIC_FILE_FIELD_KINDS, siteOptionSources, mediaDeliverySchema, selectOptionSchema, selectSourceSchema, visibleWhenPredicateSchema, visibleWhenSchema, uiSchema, baseFieldSchema, textFieldSchema, richTextFieldSchema, inlineTextFieldSchema, mediaFieldSchema, fileFieldSchema, booleanFieldSchema, dateFieldSchema, timeFieldSchema, dateTimeFieldSchema, slugFieldSchema, urlFieldSchema, linkFieldSchema, selectFieldSchema, referenceFieldSchema, itemTypeSchema, repeaterFieldSchema, groupFieldSchema, modalFieldSchema, numberFieldSchema, tabDefinitionSchema, tabGroupFieldSchema, presetOptionSchema, presetOrCustomFieldSchema, contentTypeSelectFieldSchema, entryPickerFieldSchema, _fieldSchemaInternal, fieldSchema, slotSchema, typographyTokens$1, colorTokens$1, spacingTokens$1, radiusTokens$1, styleTokenSchema, behaviourSchema, quickFieldPrioritySchema, previewCustomizeManifestCurationSchema, blockCategoryEnum, blockContentSourceKinds, blockContentSourceSchema;
|
|
9856
|
-
var init_schema$
|
|
9849
|
+
var init_schema$2 = __esmMin((() => {
|
|
9857
9850
|
init_node();
|
|
9858
9851
|
init_repeaterGrid();
|
|
9859
9852
|
init_presets$2();
|
|
@@ -10440,7 +10433,7 @@ var init_schema$1 = __esmMin((() => {
|
|
|
10440
10433
|
}));
|
|
10441
10434
|
//#endregion
|
|
10442
10435
|
//#region ../blocks/src/system/inlineText.ts
|
|
10443
|
-
init_schema$
|
|
10436
|
+
init_schema$2();
|
|
10444
10437
|
const inlineTextMarkSchema = z$1.discriminatedUnion("kind", [
|
|
10445
10438
|
z$1.object({ kind: z$1.literal("strong") }),
|
|
10446
10439
|
z$1.object({ kind: z$1.literal("emphasis") }),
|
|
@@ -11788,7 +11781,7 @@ const ALLOWED_URL_PROTOCOLS = ["http:", "https:"];
|
|
|
11788
11781
|
const DATE_PATTERN = /^(?<year>[1-9]\d{3})-(?<month>\d{2})-(?<day>\d{2})$/;
|
|
11789
11782
|
const TIME_PATTERN = /^(?<hours>[01]\d|2[0-3]):(?<minutes>[0-5]\d)$/;
|
|
11790
11783
|
const DATETIME_PATTERN = /^(?<date>[1-9]\d{3}-\d{2}-\d{2})T(?<time>(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d)(?:\.\d+)?(?<offset>Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;
|
|
11791
|
-
function assertNever$
|
|
11784
|
+
function assertNever$16(value) {
|
|
11792
11785
|
throw new Error(`Unhandled field validation variant: ${JSON.stringify(value)}`);
|
|
11793
11786
|
}
|
|
11794
11787
|
function validationContext(options = {}) {
|
|
@@ -11841,7 +11834,7 @@ function fieldIssueToMessage(issue) {
|
|
|
11841
11834
|
case "invalidMedia": return `${issue.label} must be a media object with an identifier`;
|
|
11842
11835
|
case "invalidLink": return `${issue.label} must be a valid link`;
|
|
11843
11836
|
case "invalidReference": return `${issue.label} must reference a valid item`;
|
|
11844
|
-
default: return assertNever$
|
|
11837
|
+
default: return assertNever$16(issue);
|
|
11845
11838
|
}
|
|
11846
11839
|
}
|
|
11847
11840
|
function pluralize(label, count) {
|
|
@@ -11961,7 +11954,7 @@ function deriveFieldValidationPlan(field, path = [field.id]) {
|
|
|
11961
11954
|
case "presetOrCustom":
|
|
11962
11955
|
case "contentTypeSelect":
|
|
11963
11956
|
case "entryPicker": return makePlan("passthrough", "unknown", field, path, false, []);
|
|
11964
|
-
default: return assertNever$
|
|
11957
|
+
default: return assertNever$16(field);
|
|
11965
11958
|
}
|
|
11966
11959
|
}
|
|
11967
11960
|
function deriveFieldValidationPlans(fields, parentPath = []) {
|
|
@@ -12036,7 +12029,7 @@ function resolveSelectConstraintSource(field) {
|
|
|
12036
12029
|
kind: "runtime",
|
|
12037
12030
|
source: source.kind
|
|
12038
12031
|
};
|
|
12039
|
-
default: return assertNever$
|
|
12032
|
+
default: return assertNever$16(source);
|
|
12040
12033
|
}
|
|
12041
12034
|
}
|
|
12042
12035
|
function normalizeStoredContentValues(plans, content, options = {}) {
|
|
@@ -12055,7 +12048,7 @@ function allGroupChildPlans(plan) {
|
|
|
12055
12048
|
switch (plan.childSelection.kind) {
|
|
12056
12049
|
case "all": return plan.childSelection.fields;
|
|
12057
12050
|
case "discriminatedTabs": return plan.childSelection.tabs.flatMap((tab) => tab.fields);
|
|
12058
|
-
default: return assertNever$
|
|
12051
|
+
default: return assertNever$16(plan.childSelection);
|
|
12059
12052
|
}
|
|
12060
12053
|
}
|
|
12061
12054
|
function selectedGroupChildPlans(plan, value) {
|
|
@@ -12088,7 +12081,7 @@ function canonicalizeFieldValueForWrite(plan, value) {
|
|
|
12088
12081
|
case "link":
|
|
12089
12082
|
case "select":
|
|
12090
12083
|
case "passthrough": return value;
|
|
12091
|
-
default: return assertNever$
|
|
12084
|
+
default: return assertNever$16(plan);
|
|
12092
12085
|
}
|
|
12093
12086
|
}
|
|
12094
12087
|
function canonicalizeObjectForWrite(plans, value) {
|
|
@@ -12114,7 +12107,7 @@ function normalizeStoredFieldValueWithContext(plan, value, ctx) {
|
|
|
12114
12107
|
case "link":
|
|
12115
12108
|
case "select":
|
|
12116
12109
|
case "passthrough": return normalizeFieldValue(plan, value, ctx);
|
|
12117
|
-
default: return assertNever$
|
|
12110
|
+
default: return assertNever$16(plan);
|
|
12118
12111
|
}
|
|
12119
12112
|
}
|
|
12120
12113
|
function normalizeStoredObjectChildren(children, value, ctx) {
|
|
@@ -12151,7 +12144,7 @@ function normalizeFieldValue(plan, value, ctx) {
|
|
|
12151
12144
|
case "select":
|
|
12152
12145
|
case "passthrough": return value;
|
|
12153
12146
|
case "media": return value;
|
|
12154
|
-
default: return assertNever$
|
|
12147
|
+
default: return assertNever$16(plan);
|
|
12155
12148
|
}
|
|
12156
12149
|
}
|
|
12157
12150
|
function normalizeObjectChildren(children, value, ctx) {
|
|
@@ -12210,7 +12203,7 @@ function validateNormalizedFieldValue(plan, value, ctx) {
|
|
|
12210
12203
|
case "repeater": return validateRepeaterPlan(plan, value, ctx);
|
|
12211
12204
|
case "group": return validateGroupPlan(plan, value, ctx);
|
|
12212
12205
|
case "passthrough": return [];
|
|
12213
|
-
default: return assertNever$
|
|
12206
|
+
default: return assertNever$16(plan);
|
|
12214
12207
|
}
|
|
12215
12208
|
}
|
|
12216
12209
|
function shouldRequireValue(plan, value, ctx) {
|
|
@@ -12252,7 +12245,7 @@ function validateStringConstraint(plan, constraint, value) {
|
|
|
12252
12245
|
case "timeFormat": return typeof value === "string" && isValidTimeString(value) ? [] : [issue(plan, "invalidTime")];
|
|
12253
12246
|
case "datetimeFormat": return typeof value === "string" && isValidDateTimeInstantString(value) ? [] : [issue(plan, "invalidDateTime")];
|
|
12254
12247
|
case "slugFormat": return typeof value === "string" && SLUG_PATTERN.test(value) ? [] : [issue(plan, "invalidSlug")];
|
|
12255
|
-
default: return assertNever$
|
|
12248
|
+
default: return assertNever$16(constraint);
|
|
12256
12249
|
}
|
|
12257
12250
|
}
|
|
12258
12251
|
function isValidIconPickerValue(value) {
|
|
@@ -12271,7 +12264,7 @@ function validateNumberConstraint(plan, constraint, value) {
|
|
|
12271
12264
|
case "numberType": return [];
|
|
12272
12265
|
case "numberMin": return value < constraint.minimum ? [issue(plan, "tooSmall", { minimum: constraint.minimum })] : [];
|
|
12273
12266
|
case "numberMax": return value > constraint.maximum ? [issue(plan, "tooLarge", { maximum: constraint.maximum })] : [];
|
|
12274
|
-
default: return assertNever$
|
|
12267
|
+
default: return assertNever$16(constraint);
|
|
12275
12268
|
}
|
|
12276
12269
|
}
|
|
12277
12270
|
function validateSelectPlan(plan, value) {
|
|
@@ -12293,7 +12286,7 @@ function validateRepeaterPlan(plan, value, ctx) {
|
|
|
12293
12286
|
maximum: constraint.maximum,
|
|
12294
12287
|
itemLabel: "item"
|
|
12295
12288
|
})] : [];
|
|
12296
|
-
default: return assertNever$
|
|
12289
|
+
default: return assertNever$16(constraint);
|
|
12297
12290
|
}
|
|
12298
12291
|
}), ...value.flatMap((item, index) => validateRepeaterItem(plan, item, index, ctx))];
|
|
12299
12292
|
}
|
|
@@ -12384,7 +12377,7 @@ function rebaseFieldPlanPath(plan, fromPrefix, toPrefix) {
|
|
|
12384
12377
|
...plan,
|
|
12385
12378
|
path
|
|
12386
12379
|
};
|
|
12387
|
-
default: return assertNever$
|
|
12380
|
+
default: return assertNever$16(plan);
|
|
12388
12381
|
}
|
|
12389
12382
|
}
|
|
12390
12383
|
function validateInlineTextPlan(plan, value) {
|
|
@@ -12431,7 +12424,7 @@ function fieldPlanToObjectPropertyZod(plan, options = {}) {
|
|
|
12431
12424
|
switch (presence.kind) {
|
|
12432
12425
|
case "required": return schema;
|
|
12433
12426
|
case "optional": return schema.optional();
|
|
12434
|
-
default: return assertNever$
|
|
12427
|
+
default: return assertNever$16(presence);
|
|
12435
12428
|
}
|
|
12436
12429
|
}
|
|
12437
12430
|
function addFieldIssueToZodContext(zodCtx, validationIssue, rootPath) {
|
|
@@ -12501,7 +12494,7 @@ function addFieldIssueToZodContext(zodCtx, validationIssue, rootPath) {
|
|
|
12501
12494
|
message
|
|
12502
12495
|
});
|
|
12503
12496
|
return;
|
|
12504
|
-
default: assertNever$
|
|
12497
|
+
default: assertNever$16(validationIssue);
|
|
12505
12498
|
}
|
|
12506
12499
|
}
|
|
12507
12500
|
function relativeZodIssuePath(path, rootPath) {
|
|
@@ -12532,7 +12525,7 @@ function findNestedFieldValidationPlan(plan, path) {
|
|
|
12532
12525
|
case "link":
|
|
12533
12526
|
case "select":
|
|
12534
12527
|
case "passthrough": return null;
|
|
12535
|
-
default: return assertNever$
|
|
12528
|
+
default: return assertNever$16(plan);
|
|
12536
12529
|
}
|
|
12537
12530
|
}
|
|
12538
12531
|
function sameFieldPath(left, right) {
|
|
@@ -12556,7 +12549,7 @@ function validateExplicitNullForPushPlan(plan, value, ctx) {
|
|
|
12556
12549
|
case "link":
|
|
12557
12550
|
case "select":
|
|
12558
12551
|
case "passthrough": return [];
|
|
12559
|
-
default: return assertNever$
|
|
12552
|
+
default: return assertNever$16(plan);
|
|
12560
12553
|
}
|
|
12561
12554
|
}
|
|
12562
12555
|
function validateExplicitNullsForPushRepeater(plan, value, ctx) {
|
|
@@ -12730,7 +12723,7 @@ function resolveVariantKey(manifest, content) {
|
|
|
12730
12723
|
//#endregion
|
|
12731
12724
|
//#region ../blocks/src/system/manifest/index.ts
|
|
12732
12725
|
init_augmentManifest();
|
|
12733
|
-
init_schema$
|
|
12726
|
+
init_schema$2();
|
|
12734
12727
|
//#endregion
|
|
12735
12728
|
//#region ../theme-core/src/palette/utils/colorConversion.ts
|
|
12736
12729
|
function hexToRgb$1(hex) {
|
|
@@ -12995,7 +12988,7 @@ function asDesignSystemTemplateId(value) {
|
|
|
12995
12988
|
function makeBoundaryId(previousBlockId, nextBlockId) {
|
|
12996
12989
|
return asDesignBoundaryId(`boundary:${encodeURIComponent(previousBlockId)}:${encodeURIComponent(nextBlockId)}`);
|
|
12997
12990
|
}
|
|
12998
|
-
function assertNever$
|
|
12991
|
+
function assertNever$15(value, message = "Unhandled Theme V2 variant") {
|
|
12999
12992
|
throw new Error(`${message}: ${String(value)}`);
|
|
13000
12993
|
}
|
|
13001
12994
|
function brandNonEmptyString(value, label) {
|
|
@@ -15583,6 +15576,12 @@ function requirePaletteColorsFromEntries(entries) {
|
|
|
15583
15576
|
if (result.ok) return result.colors;
|
|
15584
15577
|
throw new Error(`Invalid complete palette: ${result.error.kind}`);
|
|
15585
15578
|
}
|
|
15579
|
+
function paletteColorEntries(colors) {
|
|
15580
|
+
return THEME_PALETTE_COLOR_ORDER.map((name) => ({
|
|
15581
|
+
name,
|
|
15582
|
+
hex: colors[name]
|
|
15583
|
+
}));
|
|
15584
|
+
}
|
|
15586
15585
|
function paletteColorFingerprint(colors) {
|
|
15587
15586
|
return PALETTE_TOKEN_NAMES.map((name) => `${name}:${colors[name]}`).join("|");
|
|
15588
15587
|
}
|
|
@@ -15615,11 +15614,26 @@ function parsePaletteValueKey(value) {
|
|
|
15615
15614
|
if (!colors.ok || paletteValueKey(colors.colors, mode.data) !== value) return null;
|
|
15616
15615
|
return value;
|
|
15617
15616
|
}
|
|
15618
|
-
var HEX_COLOR_REGEX, NORMALIZABLE_HEX_REGEX, hexColorSchema, paletteModeSchema, PALETTE_VALUE_KEY_PREFIX, paletteColorsSchema, paletteValueKeySchema;
|
|
15617
|
+
var HEX_COLOR_REGEX, NORMALIZABLE_HEX_REGEX, THEME_PALETTE_COLOR_ORDER, hexColorSchema, paletteModeSchema, PALETTE_VALUE_KEY_PREFIX, paletteColorsSchema, paletteValueKeySchema;
|
|
15619
15618
|
var init_colors = __esmMin((() => {
|
|
15620
15619
|
init_themeColorTokens();
|
|
15621
15620
|
HEX_COLOR_REGEX = /^#[0-9a-f]{6}$/;
|
|
15622
15621
|
NORMALIZABLE_HEX_REGEX = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
15622
|
+
THEME_PALETTE_COLOR_ORDER = [
|
|
15623
|
+
"primary",
|
|
15624
|
+
"secondary",
|
|
15625
|
+
"accent",
|
|
15626
|
+
"success",
|
|
15627
|
+
"warning",
|
|
15628
|
+
"destructive",
|
|
15629
|
+
"background",
|
|
15630
|
+
"surface",
|
|
15631
|
+
"surfaceAlt",
|
|
15632
|
+
"muted",
|
|
15633
|
+
"text",
|
|
15634
|
+
"primaryForeground",
|
|
15635
|
+
"border"
|
|
15636
|
+
];
|
|
15623
15637
|
hexColorSchema = z$1.string().regex(HEX_COLOR_REGEX, "Hex must be #RRGGBB (lowercase)").transform((value) => value);
|
|
15624
15638
|
paletteModeSchema = z$1.enum(["light", "dark"]);
|
|
15625
15639
|
PALETTE_VALUE_KEY_PREFIX = "palette-value:v1|";
|
|
@@ -15649,8 +15663,12 @@ var init_colors = __esmMin((() => {
|
|
|
15649
15663
|
return z$1.NEVER;
|
|
15650
15664
|
});
|
|
15651
15665
|
}));
|
|
15652
|
-
var
|
|
15653
|
-
|
|
15666
|
+
var init_concretePalette = __esmMin((() => {
|
|
15667
|
+
init_colors();
|
|
15668
|
+
}));
|
|
15669
|
+
var init_fromVibrant = __esmMin((() => {
|
|
15670
|
+
init_utils$6();
|
|
15671
|
+
}));
|
|
15654
15672
|
//#endregion
|
|
15655
15673
|
//#region ../theme-core/src/site-styles/styleTags.ts
|
|
15656
15674
|
var STYLE_AXIS_VALUES, styleTagsSchema;
|
|
@@ -16940,22 +16958,12 @@ var init_warm_dark = __esmMin((() => {
|
|
|
16940
16958
|
}));
|
|
16941
16959
|
//#endregion
|
|
16942
16960
|
//#region ../theme-core/src/palette/curated/index.ts
|
|
16943
|
-
/**
|
|
16944
|
-
* Curated palette library.
|
|
16945
|
-
*
|
|
16946
|
-
* Authoring keys are readable source aliases. Value keys are derived from the
|
|
16947
|
-
* complete mode and semantic colours and are the only curated identity used at
|
|
16948
|
-
* persistence and runtime boundaries.
|
|
16949
|
-
*/
|
|
16950
16961
|
function admitCuratedPaletteDefinition(definition) {
|
|
16951
16962
|
return {
|
|
16952
16963
|
...definition,
|
|
16953
16964
|
valueKey: definition.valueKey
|
|
16954
16965
|
};
|
|
16955
16966
|
}
|
|
16956
|
-
function findCuratedPalette(valueKey) {
|
|
16957
|
-
return curatedPalettesByValueKey.get(valueKey);
|
|
16958
|
-
}
|
|
16959
16967
|
function findCuratedPaletteByAuthoringKey(authoringKey) {
|
|
16960
16968
|
return curatedPalettesByAuthoringKey.get(authoringKey);
|
|
16961
16969
|
}
|
|
@@ -16964,9 +16972,8 @@ function requireCuratedPaletteValueKey(authoringKey) {
|
|
|
16964
16972
|
if (!palette) throw new Error(`Unknown curated palette authoring key "${authoringKey}"`);
|
|
16965
16973
|
return palette.valueKey;
|
|
16966
16974
|
}
|
|
16967
|
-
var curatedPalettes,
|
|
16975
|
+
var curatedPalettes, curatedPalettesByAuthoringKey;
|
|
16968
16976
|
var init_curated = __esmMin((() => {
|
|
16969
|
-
init_colors();
|
|
16970
16977
|
init_brand_led();
|
|
16971
16978
|
init_high_contrast();
|
|
16972
16979
|
init_soft_natural();
|
|
@@ -16993,107 +17000,8 @@ var init_curated = __esmMin((() => {
|
|
|
16993
17000
|
admitCuratedPaletteDefinition(warmDarkEmber),
|
|
16994
17001
|
admitCuratedPaletteDefinition(warmDarkKirtanGold)
|
|
16995
17002
|
];
|
|
16996
|
-
|
|
17003
|
+
new Map(curatedPalettes.map((palette) => [palette.valueKey, palette]));
|
|
16997
17004
|
curatedPalettesByAuthoringKey = new Map(curatedPalettes.map((palette) => [palette.authoringKey, palette]));
|
|
16998
|
-
knownCuratedPaletteValueKeySchema = z$1.string().transform((value, ctx) => {
|
|
16999
|
-
const valueKey = parsePaletteValueKey(value);
|
|
17000
|
-
if (!valueKey) {
|
|
17001
|
-
ctx.addIssue({
|
|
17002
|
-
code: "custom",
|
|
17003
|
-
message: "Invalid canonical palette value key"
|
|
17004
|
-
});
|
|
17005
|
-
return z$1.NEVER;
|
|
17006
|
-
}
|
|
17007
|
-
const palette = findCuratedPalette(valueKey);
|
|
17008
|
-
if (!palette) {
|
|
17009
|
-
ctx.addIssue({
|
|
17010
|
-
code: "custom",
|
|
17011
|
-
message: "Unknown curated palette value key"
|
|
17012
|
-
});
|
|
17013
|
-
return z$1.NEVER;
|
|
17014
|
-
}
|
|
17015
|
-
return palette.valueKey;
|
|
17016
|
-
});
|
|
17017
|
-
}));
|
|
17018
|
-
var init_resolveSelection = __esmMin((() => {
|
|
17019
|
-
init_curated();
|
|
17020
|
-
})), sitePaletteIdSchema, sitePaletteVersionSchema, paletteSelectionSchema, onboardingPaletteOriginSchema, curatedForkPaletteOriginSchema, manualPaletteOriginSchema, legacyCustomizedPaletteOriginSchema, sitePaletteOriginSchema, editorSitePaletteOriginSchema;
|
|
17021
|
-
var init_selection$1 = __esmMin((() => {
|
|
17022
|
-
init_colors();
|
|
17023
|
-
init_curated();
|
|
17024
|
-
sitePaletteIdSchema = z$1.string().uuid().transform((value) => value);
|
|
17025
|
-
sitePaletteVersionSchema = z$1.number().int().nonnegative().transform((value) => value);
|
|
17026
|
-
paletteSelectionSchema = z$1.discriminatedUnion("kind", [z$1.object({
|
|
17027
|
-
kind: z$1.literal("curated"),
|
|
17028
|
-
valueKey: knownCuratedPaletteValueKeySchema
|
|
17029
|
-
}), z$1.object({
|
|
17030
|
-
kind: z$1.literal("site"),
|
|
17031
|
-
paletteId: sitePaletteIdSchema
|
|
17032
|
-
})]);
|
|
17033
|
-
onboardingPaletteOriginSchema = z$1.object({
|
|
17034
|
-
kind: z$1.literal("onboarding"),
|
|
17035
|
-
sourceKey: z$1.string().min(1).nullable()
|
|
17036
|
-
});
|
|
17037
|
-
curatedForkPaletteOriginSchema = z$1.object({
|
|
17038
|
-
kind: z$1.literal("curated-fork"),
|
|
17039
|
-
sourceValueKey: paletteValueKeySchema
|
|
17040
|
-
});
|
|
17041
|
-
manualPaletteOriginSchema = z$1.object({ kind: z$1.literal("manual") });
|
|
17042
|
-
legacyCustomizedPaletteOriginSchema = z$1.object({
|
|
17043
|
-
kind: z$1.literal("legacy-customized"),
|
|
17044
|
-
sourceKey: z$1.string().min(1).nullable()
|
|
17045
|
-
});
|
|
17046
|
-
sitePaletteOriginSchema = z$1.discriminatedUnion("kind", [
|
|
17047
|
-
onboardingPaletteOriginSchema,
|
|
17048
|
-
curatedForkPaletteOriginSchema,
|
|
17049
|
-
manualPaletteOriginSchema,
|
|
17050
|
-
legacyCustomizedPaletteOriginSchema
|
|
17051
|
-
]);
|
|
17052
|
-
editorSitePaletteOriginSchema = z$1.discriminatedUnion("kind", [z$1.object({
|
|
17053
|
-
kind: z$1.literal("curated-fork"),
|
|
17054
|
-
sourceValueKey: knownCuratedPaletteValueKeySchema
|
|
17055
|
-
}), manualPaletteOriginSchema]);
|
|
17056
|
-
z$1.object({
|
|
17057
|
-
id: sitePaletteIdSchema,
|
|
17058
|
-
colors: paletteColorsSchema,
|
|
17059
|
-
mode: paletteModeSchema,
|
|
17060
|
-
origin: sitePaletteOriginSchema,
|
|
17061
|
-
version: sitePaletteVersionSchema
|
|
17062
|
-
});
|
|
17063
|
-
z$1.discriminatedUnion("kind", [
|
|
17064
|
-
z$1.object({ kind: z$1.literal("preserve") }),
|
|
17065
|
-
z$1.object({
|
|
17066
|
-
kind: z$1.literal("select"),
|
|
17067
|
-
selection: paletteSelectionSchema
|
|
17068
|
-
}),
|
|
17069
|
-
z$1.object({
|
|
17070
|
-
kind: z$1.literal("create-site"),
|
|
17071
|
-
colors: paletteColorsSchema,
|
|
17072
|
-
mode: paletteModeSchema,
|
|
17073
|
-
origin: editorSitePaletteOriginSchema
|
|
17074
|
-
}),
|
|
17075
|
-
z$1.object({
|
|
17076
|
-
kind: z$1.literal("update-site"),
|
|
17077
|
-
paletteId: sitePaletteIdSchema,
|
|
17078
|
-
expectedVersion: sitePaletteVersionSchema,
|
|
17079
|
-
colors: paletteColorsSchema,
|
|
17080
|
-
mode: paletteModeSchema
|
|
17081
|
-
})
|
|
17082
|
-
]);
|
|
17083
|
-
}));
|
|
17084
|
-
var init_persistenceReadSource = __esmMin((() => {
|
|
17085
|
-
init_curated();
|
|
17086
|
-
init_colors();
|
|
17087
|
-
init_resolveSelection();
|
|
17088
|
-
init_selection$1();
|
|
17089
|
-
}));
|
|
17090
|
-
var init_sitePalettePersistence = __esmMin((() => {
|
|
17091
|
-
init_curated();
|
|
17092
|
-
init_colors();
|
|
17093
|
-
init_selection$1();
|
|
17094
|
-
}));
|
|
17095
|
-
var init_fromVibrant = __esmMin((() => {
|
|
17096
|
-
init_utils$6();
|
|
17097
17005
|
}));
|
|
17098
17006
|
//#endregion
|
|
17099
17007
|
//#region ../theme-core/src/palette/index.ts
|
|
@@ -17109,12 +17017,7 @@ var init_palette$1 = __esmMin((() => {
|
|
|
17109
17017
|
init_paletteAccess();
|
|
17110
17018
|
init_extractPalette();
|
|
17111
17019
|
init_colors();
|
|
17112
|
-
|
|
17113
|
-
init_libraryModel();
|
|
17114
|
-
init_persistenceReadSource();
|
|
17115
|
-
init_resolveSelection();
|
|
17116
|
-
init_selection$1();
|
|
17117
|
-
init_sitePalettePersistence();
|
|
17020
|
+
init_concretePalette();
|
|
17118
17021
|
init_fromVibrant();
|
|
17119
17022
|
init_suggestRecipes();
|
|
17120
17023
|
init_allRecipes();
|
|
@@ -17513,7 +17416,7 @@ function applyNavTypography(style, typography) {
|
|
|
17513
17416
|
textSize: "sm",
|
|
17514
17417
|
letterSpacing: "wider"
|
|
17515
17418
|
};
|
|
17516
|
-
default: return assertNever$
|
|
17419
|
+
default: return assertNever$15(typography, "Unhandled header nav typography");
|
|
17517
17420
|
}
|
|
17518
17421
|
}
|
|
17519
17422
|
function underlineNavLinkStyle(colorToken, underlineColorToken, typography = "plain") {
|
|
@@ -17542,7 +17445,7 @@ function themedHeaderShadow(theme) {
|
|
|
17542
17445
|
case "low": return { elevation: "sm" };
|
|
17543
17446
|
case "medium": return { elevation: "md" };
|
|
17544
17447
|
case "high": return { elevation: "lg" };
|
|
17545
|
-
default: return assertNever$
|
|
17448
|
+
default: return assertNever$15(theme.shadow.elevation, "Unhandled theme shadow elevation");
|
|
17546
17449
|
}
|
|
17547
17450
|
}
|
|
17548
17451
|
function solidBrandHeader(theme) {
|
|
@@ -21881,6 +21784,38 @@ var init_media$2 = __esmMin((() => {
|
|
|
21881
21784
|
});
|
|
21882
21785
|
}));
|
|
21883
21786
|
//#endregion
|
|
21787
|
+
//#region ../theme-core/src/palette/schema.ts
|
|
21788
|
+
var colourHexString, paletteColorSchema, paletteMetaSchema, paletteSchema;
|
|
21789
|
+
var init_schema$1 = __esmMin((() => {
|
|
21790
|
+
init_colors();
|
|
21791
|
+
colourHexString = z$1.string().regex(/^#([0-9A-Fa-f]{3}){1,2}$/);
|
|
21792
|
+
paletteColorSchema = z$1.object({
|
|
21793
|
+
name: z$1.string().min(1),
|
|
21794
|
+
hex: colourHexString
|
|
21795
|
+
});
|
|
21796
|
+
paletteMetaSchema = z$1.object({ mode: z$1.enum(["light", "dark"]) });
|
|
21797
|
+
paletteSchema = z$1.object({
|
|
21798
|
+
colors: z$1.array(paletteColorSchema),
|
|
21799
|
+
meta: paletteMetaSchema
|
|
21800
|
+
}).transform((palette, ctx) => {
|
|
21801
|
+
const colors = paletteColorsFromEntries(palette.colors);
|
|
21802
|
+
if (!colors.ok) {
|
|
21803
|
+
ctx.addIssue({
|
|
21804
|
+
code: "custom",
|
|
21805
|
+
message: `Invalid complete palette: ${colors.error.kind}`
|
|
21806
|
+
});
|
|
21807
|
+
return z$1.NEVER;
|
|
21808
|
+
}
|
|
21809
|
+
return {
|
|
21810
|
+
colors: paletteColorEntries(colors.colors).map(({ name, hex }) => ({
|
|
21811
|
+
name: String(name),
|
|
21812
|
+
hex: String(hex)
|
|
21813
|
+
})),
|
|
21814
|
+
meta: palette.meta
|
|
21815
|
+
};
|
|
21816
|
+
});
|
|
21817
|
+
}));
|
|
21818
|
+
//#endregion
|
|
21884
21819
|
//#region ../theme-core/src/surfaces/foregroundRoles.ts
|
|
21885
21820
|
var SURFACE_FOREGROUND_ROLES;
|
|
21886
21821
|
var init_foregroundRoles = __esmMin((() => {
|
|
@@ -25887,9 +25822,10 @@ function normaliseHeaderNavFontRole(header) {
|
|
|
25887
25822
|
navFontRole: navTypography
|
|
25888
25823
|
} : rest;
|
|
25889
25824
|
}
|
|
25890
|
-
var axesSchema,
|
|
25825
|
+
var axesSchema, typographyStyleSchema, bodyTypographyStyleSchema, headingSizeSchema, headingTypographyOverridesSchema, headingTypographyStyleSchema, proseLinkUnderlineStyleSchema, proseLinkUnderlineThicknessSchema, proseLinkUnderlineOffsetSchema, proseLinkStyleSchema, semanticSpacingSchema, boxRoundedSchema, boxBackgroundOverlaySchema, boxBackgroundSchema, noHeadingDecorationSchema, visibleHeadingDecorationSchema, headingDecorationSchema, headingDecorationOverrideSchema, accordionIconTreatmentSchema, sectionStylesOverrideSchema, containerStylesOverrideSchema, cardBorderOverrideSchema, cardStylesOverrideSchema, blockStyleOverridesSchema, blockThemeOverrideSchema, typographyScaleSchema, eyebrowTypographyStyleSchema, typographySchema, spaceSchema, corners, shadow, border, motion, inputStyle, headerVariant, headerPositioning, headerNavStyle, navFontWeight, headerMaxWidth, headerBarFrame, headerContainerSchema, headerBorderSchema, logoStyleSchema, headerLogoTextSchema, navEffectsSchema, dropdownStyleSchema, headerCtaGapSchema, headerCtaTreatmentSchema, navContainerSchema, headerBackgroundSchema, headerSchema, footerVariant, footerMaxWidth, footerMode, footerNavLayoutMode, footerNavLayoutAlign, footerSpacing, footerLogoPlacement, footerLogoSize, footerLogoMaxHeight, footerBottomTextLinkStyleSchema, footerBottomBarSchema, footerNavLayoutSchema, footerLogoSchema, footerSchema, containerPaddingPresetSchema, layoutSchema, heroTypographySizeSchema, heroTypographyLineHeightSchema, heroResponsiveTypographySchema, heroTypographySchema, heroSchema, bodyTextIntroTypographySizeSchema, bodyTextSchema, gradientsSchema, testimonialQuoteTreatmentSchema, themeSchema;
|
|
25891
25826
|
var init_schema = __esmMin((() => {
|
|
25892
25827
|
init_media$2();
|
|
25828
|
+
init_schema$1();
|
|
25893
25829
|
init_buttons();
|
|
25894
25830
|
init_cards();
|
|
25895
25831
|
init_types$9();
|
|
@@ -25932,16 +25868,6 @@ var init_schema = __esmMin((() => {
|
|
|
25932
25868
|
"expressive"
|
|
25933
25869
|
])
|
|
25934
25870
|
});
|
|
25935
|
-
colourHexString = z$1.string().regex(/^#([0-9A-Fa-f]{3}){1,2}$/);
|
|
25936
|
-
paletteColorSchema = z$1.object({
|
|
25937
|
-
name: z$1.string().min(1),
|
|
25938
|
-
hex: colourHexString
|
|
25939
|
-
});
|
|
25940
|
-
paletteMetaSchema = z$1.object({ mode: z$1.enum(["light", "dark"]) });
|
|
25941
|
-
paletteSchema = z$1.object({
|
|
25942
|
-
colors: z$1.array(paletteColorSchema),
|
|
25943
|
-
meta: paletteMetaSchema
|
|
25944
|
-
});
|
|
25945
25871
|
typographyStyleSchema = z$1.object({
|
|
25946
25872
|
family: z$1.string().min(1),
|
|
25947
25873
|
weight: z$1.enum([
|
|
@@ -26934,7 +26860,6 @@ var init_runtimeCompiler = __esmMin((() => {
|
|
|
26934
26860
|
init_modern_minimal();
|
|
26935
26861
|
init_expandPalette();
|
|
26936
26862
|
init_styles();
|
|
26937
|
-
init_colors();
|
|
26938
26863
|
init_designState();
|
|
26939
26864
|
init_types$15();
|
|
26940
26865
|
init_accessibleSurfaces();
|
|
@@ -28800,7 +28725,7 @@ var init_siteStyleThemeCompiler = __esmMin((() => {
|
|
|
28800
28725
|
init_curatedSiteStyles();
|
|
28801
28726
|
init_runtimeCompiler();
|
|
28802
28727
|
init_curated();
|
|
28803
|
-
|
|
28728
|
+
init_concretePalette();
|
|
28804
28729
|
}));
|
|
28805
28730
|
var init_previewCustomization = __esmMin((() => {
|
|
28806
28731
|
init_types$15();
|
|
@@ -28810,7 +28735,7 @@ var init_previewCompiler = __esmMin((() => {
|
|
|
28810
28735
|
init_onColor();
|
|
28811
28736
|
init_tokens();
|
|
28812
28737
|
init_curated();
|
|
28813
|
-
|
|
28738
|
+
init_concretePalette();
|
|
28814
28739
|
init_curatedSiteStyles();
|
|
28815
28740
|
init_resolver();
|
|
28816
28741
|
init_types$15();
|
|
@@ -30197,7 +30122,7 @@ function devValidate(node) {
|
|
|
30197
30122
|
}
|
|
30198
30123
|
var section$1, headerSection, stack, inline, accordion, accordionItem, carousel, text, richText, icon, media, fileDownload, videoEmbed, spinner, button, link, form, bookingForm, eventRegistration, shop, productList, productDetail, cart, checkout$1, gifting, courseRegistration;
|
|
30199
30124
|
var init_builder$1 = __esmMin((() => {
|
|
30200
|
-
init_schema$
|
|
30125
|
+
init_schema$3();
|
|
30201
30126
|
init_types$6();
|
|
30202
30127
|
init_env();
|
|
30203
30128
|
section$1 = (props, children, ...mods) => el("section", props, children, ...mods);
|
|
@@ -31831,7 +31756,7 @@ function scopeContentPath(path, scope) {
|
|
|
31831
31756
|
}
|
|
31832
31757
|
var FRAGMENT_ID_PATTERN, FIELD_ID_PATTERN, dataLoaderSchema, fragmentDataSchema, fragmentConfigSchema, FragmentConfigError;
|
|
31833
31758
|
var init_types$5 = __esmMin((() => {
|
|
31834
|
-
init_schema$
|
|
31759
|
+
init_schema$2();
|
|
31835
31760
|
init_node();
|
|
31836
31761
|
FRAGMENT_ID_PATTERN = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/i;
|
|
31837
31762
|
FIELD_ID_PATTERN = /^[a-z][a-zA-Z0-9_-]*$/;
|
|
@@ -34765,7 +34690,7 @@ function deriveComponentName(id) {
|
|
|
34765
34690
|
return `${id.replace(/^block\./, "").replace(/-/g, ".").replace(/([a-z])([A-Z])/g, "$1.$2").toLowerCase()}.default`;
|
|
34766
34691
|
}
|
|
34767
34692
|
var init_defineBlock = __esmMin((() => {
|
|
34768
|
-
init_schema$
|
|
34693
|
+
init_schema$2();
|
|
34769
34694
|
init_fragments();
|
|
34770
34695
|
init_augmentManifest();
|
|
34771
34696
|
}));
|
|
@@ -35461,7 +35386,7 @@ const blogPostBlockDefinition = {
|
|
|
35461
35386
|
//#region ../blocks/src/system/blocks/blog-listing.ts
|
|
35462
35387
|
init_defineBlock();
|
|
35463
35388
|
init_boxStyles$1();
|
|
35464
|
-
init_schema$
|
|
35389
|
+
init_schema$2();
|
|
35465
35390
|
init_builder$1();
|
|
35466
35391
|
init_fragments$1();
|
|
35467
35392
|
init_colorStyles();
|
|
@@ -37210,7 +37135,7 @@ function planSiteChromePlacement(positioning) {
|
|
|
37210
37135
|
headerRootClassName: "rb-fixed rb-top-0 rb-left-0 rb-right-0",
|
|
37211
37136
|
standaloneShellClassName: "fixed left-0 right-0 top-0 z-40 w-full"
|
|
37212
37137
|
};
|
|
37213
|
-
default: return assertNever$
|
|
37138
|
+
default: return assertNever$15(positioning);
|
|
37214
37139
|
}
|
|
37215
37140
|
}
|
|
37216
37141
|
function splitSiteChromePlacementClasses(className) {
|
|
@@ -38433,7 +38358,7 @@ const siteFooterBlockDefinition = { manifest: createBlockManifest({
|
|
|
38433
38358
|
}) };
|
|
38434
38359
|
//#endregion
|
|
38435
38360
|
//#region ../blocks/src/system/blocks/testimonials.tsx
|
|
38436
|
-
init_schema$
|
|
38361
|
+
init_schema$2();
|
|
38437
38362
|
init_fragments$1();
|
|
38438
38363
|
init_styledSection();
|
|
38439
38364
|
init_boxStyles$1();
|
|
@@ -38644,7 +38569,7 @@ const testimonialsBlockDefinition = {
|
|
|
38644
38569
|
//#endregion
|
|
38645
38570
|
//#region ../blocks/src/system/blocks/columns.ts
|
|
38646
38571
|
init_fragments();
|
|
38647
|
-
init_schema$
|
|
38572
|
+
init_schema$2();
|
|
38648
38573
|
init_defineBlock();
|
|
38649
38574
|
init_node();
|
|
38650
38575
|
init_builder$1();
|
|
@@ -38902,7 +38827,7 @@ function repeaterFragmentLayout(args) {
|
|
|
38902
38827
|
//#endregion
|
|
38903
38828
|
//#region ../blocks/src/system/blocks/collection.ts
|
|
38904
38829
|
init_fragments();
|
|
38905
|
-
init_schema$
|
|
38830
|
+
init_schema$2();
|
|
38906
38831
|
init_defineBlock();
|
|
38907
38832
|
init_builder$1();
|
|
38908
38833
|
init_fragments$1();
|
|
@@ -42614,6 +42539,10 @@ var init_event_details = __esmMin((() => {
|
|
|
42614
42539
|
from: "$root.occurrenceContext",
|
|
42615
42540
|
fallback: null
|
|
42616
42541
|
} },
|
|
42542
|
+
subject: { $bind: {
|
|
42543
|
+
from: "$root.subject",
|
|
42544
|
+
fallback: null
|
|
42545
|
+
} },
|
|
42617
42546
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
42618
42547
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
42619
42548
|
showMap: { $bind: { from: "content.showMap" } },
|
|
@@ -46360,7 +46289,7 @@ var init_EventCalendar_interactive = __esmMin((() => {
|
|
|
46360
46289
|
}));
|
|
46361
46290
|
//#endregion
|
|
46362
46291
|
//#region ../blocks/src/system/blocks/events/event-calendar.ts
|
|
46363
|
-
init_schema$
|
|
46292
|
+
init_schema$2();
|
|
46364
46293
|
init_builder$1();
|
|
46365
46294
|
init_styledSection();
|
|
46366
46295
|
init_fragments$1();
|
|
@@ -48015,10 +47944,10 @@ function preferredPathsForSource(source) {
|
|
|
48015
47944
|
case "workshop": return ["/workshops", "/workshop"];
|
|
48016
47945
|
case "retreat": return ["/retreats", "/retreat"];
|
|
48017
47946
|
case "performance": return ["/performances", "/performance"];
|
|
48018
|
-
default: return assertNever$
|
|
47947
|
+
default: return assertNever$24(source.preset, "Unhandled offerings preview event preset");
|
|
48019
47948
|
}
|
|
48020
47949
|
case "course": return ["/courses", "/course"];
|
|
48021
|
-
default: return assertNever$
|
|
47950
|
+
default: return assertNever$24(source, "Unhandled offerings preview source");
|
|
48022
47951
|
}
|
|
48023
47952
|
}
|
|
48024
47953
|
function normalizeRoutePath(value) {
|
|
@@ -48445,7 +48374,7 @@ function isRecord$17(value) {
|
|
|
48445
48374
|
}
|
|
48446
48375
|
//#endregion
|
|
48447
48376
|
//#region ../blocks/src/system/blocks/embed.ts
|
|
48448
|
-
init_schema$
|
|
48377
|
+
init_schema$2();
|
|
48449
48378
|
init_builder$1();
|
|
48450
48379
|
init_fragments$1();
|
|
48451
48380
|
init_defineBlock();
|
|
@@ -48716,7 +48645,7 @@ const embedBlockDefinition = {
|
|
|
48716
48645
|
};
|
|
48717
48646
|
//#endregion
|
|
48718
48647
|
//#region ../blocks/src/system/blocks/image-gallery.ts
|
|
48719
|
-
init_schema$
|
|
48648
|
+
init_schema$2();
|
|
48720
48649
|
init_builder$1();
|
|
48721
48650
|
init_colorStyles();
|
|
48722
48651
|
init_defineBlock();
|
|
@@ -49509,7 +49438,7 @@ const imageGalleryBlockDefinition = { manifest: createBlockManifest({
|
|
|
49509
49438
|
}) };
|
|
49510
49439
|
//#endregion
|
|
49511
49440
|
//#region ../blocks/src/system/blocks/video-grid.ts
|
|
49512
|
-
init_schema$
|
|
49441
|
+
init_schema$2();
|
|
49513
49442
|
init_builder$1();
|
|
49514
49443
|
init_fragments$1();
|
|
49515
49444
|
init_colorStyles();
|
|
@@ -52366,7 +52295,7 @@ const newsletterSignupBlockDefinition = {
|
|
|
52366
52295
|
//#endregion
|
|
52367
52296
|
//#region ../blocks/src/system/blocks/team-members.ts
|
|
52368
52297
|
init_fragments();
|
|
52369
|
-
init_schema$
|
|
52298
|
+
init_schema$2();
|
|
52370
52299
|
init_defineBlock();
|
|
52371
52300
|
init_builder$1();
|
|
52372
52301
|
init_fragments$1();
|
|
@@ -52909,7 +52838,7 @@ var init_location_map_shared = __esmMin((() => {
|
|
|
52909
52838
|
}));
|
|
52910
52839
|
//#endregion
|
|
52911
52840
|
//#region ../blocks/src/system/blocks/location-map.ts
|
|
52912
|
-
init_schema$
|
|
52841
|
+
init_schema$2();
|
|
52913
52842
|
init_builder$1();
|
|
52914
52843
|
init_fragments$1();
|
|
52915
52844
|
init_defineBlock();
|
|
@@ -54513,7 +54442,7 @@ function resolveLinkedContentEditSupport(contentType) {
|
|
|
54513
54442
|
kind: "unsupported-domain-backed",
|
|
54514
54443
|
reason: metadata.reason
|
|
54515
54444
|
};
|
|
54516
|
-
default: return assertNever$
|
|
54445
|
+
default: return assertNever$24(metadata);
|
|
54517
54446
|
}
|
|
54518
54447
|
}
|
|
54519
54448
|
function contentTypeKeyToLabel(key) {
|
|
@@ -57047,7 +56976,10 @@ function uniqByOccurrenceId(events) {
|
|
|
57047
56976
|
return out;
|
|
57048
56977
|
}
|
|
57049
56978
|
function selectEventDetails(args) {
|
|
57050
|
-
const all = uniqByOccurrenceId((args.events ?? []).filter(Boolean)
|
|
56979
|
+
const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
|
|
56980
|
+
occurrenceContext: args.occurrenceContext,
|
|
56981
|
+
subject: args.subject
|
|
56982
|
+
}));
|
|
57051
56983
|
const occurrenceContext = args.occurrenceContext ?? null;
|
|
57052
56984
|
const otherLimit = parseLimit$1(args.otherDatesLimit, 5);
|
|
57053
56985
|
const selectedFromContext = (() => {
|
|
@@ -57086,6 +57018,7 @@ function selectEventDetails(args) {
|
|
|
57086
57018
|
}
|
|
57087
57019
|
var init_logic = __esmMin((() => {
|
|
57088
57020
|
init_src$3();
|
|
57021
|
+
init_eventScope();
|
|
57089
57022
|
init_eventProductEligibility();
|
|
57090
57023
|
}));
|
|
57091
57024
|
//#endregion
|
|
@@ -57330,11 +57263,14 @@ var init_view$2 = __esmMin((() => {
|
|
|
57330
57263
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
57331
57264
|
init_logic();
|
|
57332
57265
|
init_view$2();
|
|
57333
|
-
|
|
57266
|
+
init_eventScope();
|
|
57267
|
+
function EventDetailsSSR({ blockId, occurrenceContext, subject, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
57334
57268
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
57269
|
+
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
57335
57270
|
const selection = selectEventDetails({
|
|
57336
57271
|
events: events ?? null,
|
|
57337
57272
|
occurrenceContext: occurrenceContext ?? null,
|
|
57273
|
+
subject: normalizedSubject,
|
|
57338
57274
|
nowIso,
|
|
57339
57275
|
otherDatesLimit
|
|
57340
57276
|
});
|
|
@@ -57349,6 +57285,7 @@ function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true,
|
|
|
57349
57285
|
children: [
|
|
57350
57286
|
/* @__PURE__ */ jsx(IslandPropsScript, { value: {
|
|
57351
57287
|
occurrenceContext,
|
|
57288
|
+
subject: normalizedSubject,
|
|
57352
57289
|
events,
|
|
57353
57290
|
showVenue,
|
|
57354
57291
|
showMap,
|
|
@@ -57503,7 +57440,7 @@ function eventSeriesIdsForSubject(subject) {
|
|
|
57503
57440
|
switch (subject.kind) {
|
|
57504
57441
|
case "eventSeries": return [subject.eventSeriesId];
|
|
57505
57442
|
case "eventOffering": return subject.availableEventSeriesIds;
|
|
57506
|
-
default: return assertNever$
|
|
57443
|
+
default: return assertNever$24(subject);
|
|
57507
57444
|
}
|
|
57508
57445
|
}
|
|
57509
57446
|
var init_course_page_surface_scope = __esmMin((() => {
|
|
@@ -58263,7 +58200,7 @@ function renderOfferingGroupItems(presentation, items, options) {
|
|
|
58263
58200
|
children: items.map((item) => renderOfferingCompactItem(item, options))
|
|
58264
58201
|
})
|
|
58265
58202
|
});
|
|
58266
|
-
default: return assertNever$
|
|
58203
|
+
default: return assertNever$24(presentation, "Unhandled offerings preview presentation");
|
|
58267
58204
|
}
|
|
58268
58205
|
}
|
|
58269
58206
|
function compareCoursesByNextSession(left, right) {
|
|
@@ -58308,7 +58245,7 @@ function featuredSummaryDetails(item) {
|
|
|
58308
58245
|
const summary = deriveCourseScheduleSummary(item.course);
|
|
58309
58246
|
return summary ? formatFeaturedSummary(summary, item.course.venue?.name ?? null) : null;
|
|
58310
58247
|
}
|
|
58311
|
-
default: return assertNever$
|
|
58248
|
+
default: return assertNever$24(item, "Unhandled offerings preview item");
|
|
58312
58249
|
}
|
|
58313
58250
|
}
|
|
58314
58251
|
function formatFeaturedSummary(summary, venue) {
|
|
@@ -58317,7 +58254,7 @@ function formatFeaturedSummary(summary, venue) {
|
|
|
58317
58254
|
case "multi-day-span": return detailsFromOccurrences(summary.occurrence, summary.occurrence, venue, null, null, true);
|
|
58318
58255
|
case "fixed-recurring-run": return detailsFromOccurrences(summary.first, summary.last, venue, summary.recurrenceLabel, null);
|
|
58319
58256
|
case "irregular-multi-session-run": return detailsFromOccurrences(summary.first, summary.last, venue, null, `${summary.sessionCount} dates`);
|
|
58320
|
-
default: return assertNever$
|
|
58257
|
+
default: return assertNever$24(summary, "Unhandled offerings preview schedule summary");
|
|
58321
58258
|
}
|
|
58322
58259
|
}
|
|
58323
58260
|
function detailsFromOccurrences(first, last, venue, recurrence, sessionCount, spanUsesEndDate = false) {
|
|
@@ -58716,7 +58653,7 @@ function bookingActionContent(input) {
|
|
|
58716
58653
|
children: input.buttonText
|
|
58717
58654
|
});
|
|
58718
58655
|
case "unavailable": return null;
|
|
58719
|
-
default: return assertNever$
|
|
58656
|
+
default: return assertNever$24(input.booking);
|
|
58720
58657
|
}
|
|
58721
58658
|
}
|
|
58722
58659
|
function RecurringSchedule({ schedule, buttonText = "Book", buttonVariant = "primary", showVenue = true, emptyMessage = "Regular schedule details will be added shortly." }) {
|
|
@@ -60936,7 +60873,7 @@ function previewEditableTargetToPath(target) {
|
|
|
60936
60873
|
case "current-entry-field":
|
|
60937
60874
|
case "current-entry-metadata": return target.path;
|
|
60938
60875
|
case "read-only": return;
|
|
60939
|
-
default: return assertNever$
|
|
60876
|
+
default: return assertNever$24(target);
|
|
60940
60877
|
}
|
|
60941
60878
|
}
|
|
60942
60879
|
function previewEditableTargetToFieldKey(target) {
|
|
@@ -62013,7 +61950,7 @@ function collectNestedPreviewFieldConstraintEntries(field, path) {
|
|
|
62013
61950
|
case "text":
|
|
62014
61951
|
case "time":
|
|
62015
61952
|
case "url": return [];
|
|
62016
|
-
default: return assertNever$
|
|
61953
|
+
default: return assertNever$24(field);
|
|
62017
61954
|
}
|
|
62018
61955
|
}
|
|
62019
61956
|
function makeDefaultBlockComponent(args) {
|
|
@@ -66182,7 +66119,7 @@ function sourceLabel(source) {
|
|
|
66182
66119
|
case "managed-database": return "DB";
|
|
66183
66120
|
case "sdk-synced": return "SDK-synced DB";
|
|
66184
66121
|
case "sdk-config": return "SDK config";
|
|
66185
|
-
default: return assertNever$
|
|
66122
|
+
default: return assertNever$24(source);
|
|
66186
66123
|
}
|
|
66187
66124
|
}
|
|
66188
66125
|
//#endregion
|
|
@@ -82532,6 +82469,7 @@ var init_non_block_islands = __esmMin((() => {
|
|
|
82532
82469
|
init_shop_shared();
|
|
82533
82470
|
init_schemas();
|
|
82534
82471
|
init_event_details();
|
|
82472
|
+
init_eventScope();
|
|
82535
82473
|
accordionIslandSchema = z$1.object({
|
|
82536
82474
|
type: z$1.enum(["single", "multiple"]).optional(),
|
|
82537
82475
|
defaultValue: z$1.union([z$1.string(), z$1.array(z$1.string())]).optional(),
|
|
@@ -82573,6 +82511,7 @@ var init_non_block_islands = __esmMin((() => {
|
|
|
82573
82511
|
});
|
|
82574
82512
|
eventDetailsIslandSchema = z$1.object({
|
|
82575
82513
|
occurrenceContext: eventDetailsOccurrenceContextSchema.nullable().optional(),
|
|
82514
|
+
subject: eventRegistrationPageSurfaceSubjectSchema.nullable().optional(),
|
|
82576
82515
|
events: z$1.array(publicEventSchema).nullable().optional(),
|
|
82577
82516
|
showVenue: z$1.boolean().optional(),
|
|
82578
82517
|
showMap: z$1.boolean().optional(),
|
|
@@ -151481,15 +151420,20 @@ var init_usePaymentVerification = __esmMin((() => {
|
|
|
151481
151420
|
//#endregion
|
|
151482
151421
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.ts
|
|
151483
151422
|
function useEventRegistrationStripeReturn(options) {
|
|
151423
|
+
return useEventRegistrationStripeReturnWithDeps(options, eventRegistrationStripeReturnDeps);
|
|
151424
|
+
}
|
|
151425
|
+
function useEventRegistrationStripeReturnWithDeps(options, deps) {
|
|
151484
151426
|
const { api, events, occurrenceId, pendingAttendeeId, setErrorMessage, setFormData, setPaymentSelection, setPendingAttendeeId, setRegistrationResult, setSelectedEvent, setSelectedAttendanceMode, setTicketSelections, setStep, setTicketsCount, step } = options;
|
|
151485
|
-
const
|
|
151427
|
+
const verificationConfig = useMemo(() => step === "verifying-payment" && pendingAttendeeId ? { transactionId: pendingAttendeeId } : null, [step, pendingAttendeeId]);
|
|
151428
|
+
const verification = deps.usePaymentVerification(verificationConfig);
|
|
151486
151429
|
useEffect(() => {
|
|
151487
|
-
cleanupStaleRegistrations();
|
|
151488
|
-
const registrationStatus = consumeSearchParam("registration");
|
|
151489
|
-
if (
|
|
151430
|
+
deps.cleanupStaleRegistrations();
|
|
151431
|
+
const registrationStatus = deps.consumeSearchParam("registration");
|
|
151432
|
+
if (registrationStatus !== "cancelled" && registrationStatus !== "success") return;
|
|
151433
|
+
deps.scrollToBlock(EVENT_REGISTRATION_ANCHOR_ID);
|
|
151490
151434
|
const siteId = api.config.siteId;
|
|
151491
151435
|
if (!siteId) return;
|
|
151492
|
-
const pending = getPendingRegistration(siteId, occurrenceId || void 0);
|
|
151436
|
+
const pending = deps.getPendingRegistration(siteId, occurrenceId || void 0);
|
|
151493
151437
|
if (!pending) return;
|
|
151494
151438
|
setFormData(pending.formData);
|
|
151495
151439
|
setTicketSelections(pending.ticketSelections);
|
|
@@ -151509,7 +151453,7 @@ function useEventRegistrationStripeReturn(options) {
|
|
|
151509
151453
|
useEffect(() => {
|
|
151510
151454
|
if (verification.status === "completed") {
|
|
151511
151455
|
const siteId = api.config.siteId;
|
|
151512
|
-
if (siteId && occurrenceId) clearPendingRegistration(siteId, occurrenceId);
|
|
151456
|
+
if (siteId && occurrenceId) deps.clearPendingRegistration(siteId, occurrenceId);
|
|
151513
151457
|
setRegistrationResult({ status: "confirmed" });
|
|
151514
151458
|
setStep("success");
|
|
151515
151459
|
} else if (verification.status === "failed") {
|
|
@@ -151529,11 +151473,21 @@ function useEventRegistrationStripeReturn(options) {
|
|
|
151529
151473
|
]);
|
|
151530
151474
|
return verification;
|
|
151531
151475
|
}
|
|
151476
|
+
var eventRegistrationStripeReturnDeps;
|
|
151532
151477
|
var init_useEventRegistrationStripeReturn = __esmMin((() => {
|
|
151533
151478
|
init_usePaymentVerification();
|
|
151534
151479
|
init_shared();
|
|
151480
|
+
init_constants();
|
|
151535
151481
|
init_sessionStorage();
|
|
151536
151482
|
init_ticketSelectionLines();
|
|
151483
|
+
eventRegistrationStripeReturnDeps = {
|
|
151484
|
+
usePaymentVerification,
|
|
151485
|
+
consumeSearchParam,
|
|
151486
|
+
scrollToBlock,
|
|
151487
|
+
cleanupStaleRegistrations,
|
|
151488
|
+
clearPendingRegistration,
|
|
151489
|
+
getPendingRegistration
|
|
151490
|
+
};
|
|
151537
151491
|
}));
|
|
151538
151492
|
//#endregion
|
|
151539
151493
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.ts
|
|
@@ -151625,13 +151579,7 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
151625
151579
|
if (!result.alreadyRegistered && result.status === "confirmed" && result.pendingPayment && (method === "stripe" || method === "pass_bundle" || method === "membership_bundle")) {
|
|
151626
151580
|
options.setPendingAttendeeId(result.attendeeId);
|
|
151627
151581
|
options.setStep("redirecting");
|
|
151628
|
-
const
|
|
151629
|
-
const successParams = new URLSearchParams(currentUrl.search);
|
|
151630
|
-
successParams.set("registration", "success");
|
|
151631
|
-
const successUrl = `${currentUrl.origin}${currentUrl.pathname}?${successParams.toString()}${currentUrl.hash}`;
|
|
151632
|
-
const cancelParams = new URLSearchParams(currentUrl.search);
|
|
151633
|
-
cancelParams.set("registration", "cancelled");
|
|
151634
|
-
const cancelUrl = `${currentUrl.origin}${currentUrl.pathname}?${cancelParams.toString()}${currentUrl.hash}`;
|
|
151582
|
+
const { successUrl, cancelUrl } = buildCheckoutReturnUrls("registration", EVENT_REGISTRATION_ANCHOR_ID);
|
|
151635
151583
|
const checkoutType = method === "pass_bundle" ? "pass_bundle" : method === "membership_bundle" ? "membership_bundle" : "event";
|
|
151636
151584
|
const checkoutResult = await options.api.createEventCheckout({
|
|
151637
151585
|
attendeeId: result.attendeeId,
|
|
@@ -151696,6 +151644,8 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
151696
151644
|
}
|
|
151697
151645
|
var eventRegistrationSubmitDeps;
|
|
151698
151646
|
var init_useEventRegistrationSubmit = __esmMin((() => {
|
|
151647
|
+
init_shared();
|
|
151648
|
+
init_constants();
|
|
151699
151649
|
init_sessionStorage();
|
|
151700
151650
|
init_ticketSelectionLines();
|
|
151701
151651
|
eventRegistrationSubmitDeps = { savePendingRegistration };
|
|
@@ -153094,6 +153044,7 @@ var init_LeafletStaticMap = __esmMin((() => {
|
|
|
153094
153044
|
function toEventDetailsClientProps(props) {
|
|
153095
153045
|
return {
|
|
153096
153046
|
occurrenceContext: props.occurrenceContext,
|
|
153047
|
+
subject: props.subject,
|
|
153097
153048
|
events: props.events ? [...props.events] : props.events,
|
|
153098
153049
|
showVenue: props.showVenue,
|
|
153099
153050
|
showMap: props.showMap,
|
|
@@ -153109,10 +153060,11 @@ function toEventDetailsClientProps(props) {
|
|
|
153109
153060
|
nowIso: props.nowIso
|
|
153110
153061
|
};
|
|
153111
153062
|
}
|
|
153112
|
-
function EventDetailsClient({ occurrenceContext, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, nowIso, children }) {
|
|
153063
|
+
function EventDetailsClient({ occurrenceContext, subject, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, nowIso, children }) {
|
|
153113
153064
|
const selection = selectEventDetails({
|
|
153114
153065
|
events: events ?? null,
|
|
153115
153066
|
occurrenceContext: occurrenceContext ?? null,
|
|
153067
|
+
subject,
|
|
153116
153068
|
nowIso: nowIso ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
153117
153069
|
otherDatesLimit
|
|
153118
153070
|
});
|
|
@@ -158635,7 +158587,7 @@ function PassesMembershipsController({ render }) {
|
|
|
158635
158587
|
case "redirect":
|
|
158636
158588
|
window.location.href = result.checkoutUrl;
|
|
158637
158589
|
return;
|
|
158638
|
-
default: return assertNever$
|
|
158590
|
+
default: return assertNever$24(result);
|
|
158639
158591
|
}
|
|
158640
158592
|
} catch (submitError) {
|
|
158641
158593
|
dispatch({
|
|
@@ -159614,7 +159566,7 @@ function BlocksIslandsHydrator(props = {}) {
|
|
|
159614
159566
|
init_src$3();
|
|
159615
159567
|
//#endregion
|
|
159616
159568
|
//#region ../blocks/src/rendering/server.ts
|
|
159617
|
-
init_schema$
|
|
159569
|
+
init_schema$2();
|
|
159618
159570
|
//#endregion
|
|
159619
159571
|
//#region ../theme-core/src/index.ts
|
|
159620
159572
|
init_schema();
|
|
@@ -159705,7 +159657,7 @@ function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
|
|
|
159705
159657
|
children
|
|
159706
159658
|
});
|
|
159707
159659
|
case "none": return /* @__PURE__ */ jsx(Fragment, { children });
|
|
159708
|
-
default: return assertNever$
|
|
159660
|
+
default: return assertNever$24(themeRuntime);
|
|
159709
159661
|
}
|
|
159710
159662
|
}
|
|
159711
159663
|
//#endregion
|
|
@@ -159931,7 +159883,7 @@ var SimpleCache = class {
|
|
|
159931
159883
|
* 1. This constant
|
|
159932
159884
|
* 2. The "version" field in package.json
|
|
159933
159885
|
*/
|
|
159934
|
-
const SDK_VERSION = "0.
|
|
159886
|
+
const SDK_VERSION = "0.126.0";
|
|
159935
159887
|
//#endregion
|
|
159936
159888
|
//#region src/client/error.ts
|
|
159937
159889
|
let _Symbol$for;
|