@riverbankcms/sdk 0.92.0 → 0.94.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.
Files changed (74) hide show
  1. package/dist/{PreviewEditorSidebar-3CI5MKV3.mjs → PreviewEditorSidebar-D3PAF7NW.mjs} +3 -3
  2. package/dist/{PreviewEditorUI-DKEP636I.mjs → PreviewEditorUI-G5JVJEIJ.mjs} +3 -3
  3. package/dist/SdkPreviewModeRuntime-NHTLRNQD.mjs +8 -0
  4. package/dist/_dts/api/src/common/envelope.d.ts +10 -0
  5. package/dist/_dts/api/src/index.d.ts +2 -2
  6. package/dist/_dts/api/src/request.d.ts +1 -1
  7. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +1 -0
  8. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +14 -14
  9. package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +1 -1
  10. package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +5 -15
  11. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +46 -0
  12. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +43 -36
  13. package/dist/_dts/media-core/src/fileUploadFinalization.d.ts +29 -1
  14. package/dist/_dts/media-core/src/index.d.ts +1 -0
  15. package/dist/_dts/media-core/src/legacyMediaValue.d.ts +11 -0
  16. package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +2 -1
  17. package/dist/_dts/sdk/src/version.d.ts +1 -1
  18. package/dist/{chunk-UOMTCHZD.mjs → chunk-A63UXN3P.mjs} +21 -19
  19. package/dist/{chunk-U5YM4AWE.mjs → chunk-AJZGT6YG.mjs} +1 -1
  20. package/dist/{chunk-6D7PLF4M.mjs → chunk-AQ6RT6LZ.mjs} +2 -2
  21. package/dist/{chunk-ZA2S7H34.mjs → chunk-NT76QGIJ.mjs} +98 -1
  22. package/dist/{chunk-I6EOKV6B.mjs → chunk-PCNCETBI.mjs} +676 -386
  23. package/dist/{chunk-LERKJM3E.mjs → chunk-XIK2HYI3.mjs} +7 -7
  24. package/dist/cli/index.mjs +198 -87
  25. package/dist/client/{accordion-BUDH2G3S.mjs → accordion-RNQIPG55.mjs} +2 -2
  26. package/dist/client/{bookingForm-NQMCELVB.mjs → bookingForm-HYEEVRLP.mjs} +5 -5
  27. package/dist/client/{carousel-ONCEW6IJ.mjs → carousel-W7DQ3YPU.mjs} +3 -3
  28. package/dist/client/{cart-V2TCK2GI.mjs → cart-PXJ3SXXO.mjs} +6 -6
  29. package/dist/client/{checkout-ZI7SWNCS.mjs → checkout-X3JYSOXI.mjs} +6 -6
  30. package/dist/client/{chunk-R3CZQLXF.mjs → chunk-6SYGVVWA.mjs} +1 -1
  31. package/dist/client/{chunk-N2WJPTF7.mjs → chunk-DUOHLWLF.mjs} +3 -3
  32. package/dist/client/{chunk-KXYEKEV6.mjs → chunk-IXDSXF2D.mjs} +7 -7
  33. package/dist/client/{chunk-ZJDBOLX7.mjs → chunk-J6TMMMXW.mjs} +2 -2
  34. package/dist/client/{chunk-B5UC2D6X.mjs → chunk-JNE6UI6U.mjs} +1 -1
  35. package/dist/client/{chunk-QQNVQ62W.mjs → chunk-OLAOAZEO.mjs} +1 -1
  36. package/dist/client/{chunk-AUMRQ242.mjs → chunk-PICR3NTQ.mjs} +2 -2
  37. package/dist/client/{chunk-ERQDHUS2.mjs → chunk-Q47XGAGS.mjs} +1 -1
  38. package/dist/client/{chunk-HQWIJLYN.mjs → chunk-WERRJXNJ.mjs} +1 -1
  39. package/dist/client/{chunk-JXY6NHG6.mjs → chunk-YYVGSYBO.mjs} +5 -5
  40. package/dist/client/client.mjs +127 -17
  41. package/dist/client/{courseRegistration-JPWAQ6KM.mjs → courseRegistration-QZ67PVHO.mjs} +5 -5
  42. package/dist/client/{eventCalendar-QDOCHBBV.mjs → eventCalendar-V3BDHQNT.mjs} +8 -8
  43. package/dist/client/{eventCombined-ZS2CXSIE.mjs → eventCombined-XYFRN2RG.mjs} +8 -8
  44. package/dist/client/{eventDetails-5LOBMPLN.mjs → eventDetails-TFE5TWKV.mjs} +8 -8
  45. package/dist/client/{eventListing-SBGY4I3L.mjs → eventListing-IQ6AGWZ6.mjs} +8 -8
  46. package/dist/client/{eventRegistration-XGPIU3Z2.mjs → eventRegistration-WGJVFKQJ.mjs} +8 -8
  47. package/dist/client/{form-R7D4LZWW.mjs → form-6UZY6RUA.mjs} +2 -2
  48. package/dist/client/{headerSection-RRLYUCGC.mjs → headerSection-RSFXY6V3.mjs} +3 -3
  49. package/dist/client/hooks.mjs +35 -3
  50. package/dist/client/{locationMap-35ZJMRBZ.mjs → locationMap-24FH67I4.mjs} +3 -3
  51. package/dist/client/{newsletterForm-MJ2VCFUT.mjs → newsletterForm-QVL3MLTN.mjs} +2 -2
  52. package/dist/client/{productDetail-2O7YQNBX.mjs → productDetail-ZDYN3G4T.mjs} +6 -6
  53. package/dist/client/{productList-FDP5BH7W.mjs → productList-4BMJLQHZ.mjs} +6 -6
  54. package/dist/client/rendering/client.mjs +8 -0
  55. package/dist/client/rendering/islands.mjs +19 -19
  56. package/dist/client/rendering.mjs +69 -2
  57. package/dist/client/{shop-BGYJ3LDT.mjs → shop-U5C634FF.mjs} +6 -6
  58. package/dist/preview-next/client/runtime.mjs +5 -5
  59. package/dist/{sdk-runtime-B3TFXRXZ.mjs → sdk-runtime-VGV46WVB.mjs} +6 -6
  60. package/dist/server/components.mjs +121 -61
  61. package/dist/server/config-validation.mjs +35 -3
  62. package/dist/server/config.mjs +35 -3
  63. package/dist/server/data.mjs +35 -3
  64. package/dist/server/index.mjs +104 -29
  65. package/dist/server/next.mjs +183 -80
  66. package/dist/server/page-converter.mjs +3 -3
  67. package/dist/server/prebuild.mjs +1 -1
  68. package/dist/server/rendering/server.mjs +121 -61
  69. package/dist/server/rendering.mjs +121 -61
  70. package/dist/server/routing.mjs +102 -62
  71. package/dist/server/server.mjs +167 -92
  72. package/package.json +1 -1
  73. package/dist/SdkPreviewModeRuntime-BRGRDQFH.mjs +0 -8
  74. /package/dist/client/{chunk-GH6IIOOE.mjs → chunk-PCHACQEB.mjs} +0 -0
@@ -1,18 +1,18 @@
1
- import { EventListingClient } from './chunk-KXYEKEV6.mjs';
2
- import './chunk-HQWIJLYN.mjs';
3
- import './chunk-AUMRQ242.mjs';
1
+ import { EventListingClient } from './chunk-IXDSXF2D.mjs';
2
+ import './chunk-WERRJXNJ.mjs';
3
+ import './chunk-PICR3NTQ.mjs';
4
4
  import './chunk-6N7YRNYU.mjs';
5
- import './chunk-N2WJPTF7.mjs';
6
- import './chunk-QQNVQ62W.mjs';
5
+ import './chunk-DUOHLWLF.mjs';
6
+ import './chunk-OLAOAZEO.mjs';
7
7
  import { buildRouteIslandApiConfig } from './chunk-L4J5Y62O.mjs';
8
- import './chunk-ZJDBOLX7.mjs';
8
+ import './chunk-J6TMMMXW.mjs';
9
9
  import './chunk-3DCJ45Z2.mjs';
10
10
  import './chunk-WBQG7VJA.mjs';
11
11
  import './chunk-LJCX6V7Q.mjs';
12
12
  import { BlockApiProvider } from './chunk-TNGL2WJF.mjs';
13
13
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
14
- import { defineIslandPropsDecoder } from './chunk-R3CZQLXF.mjs';
15
- import './chunk-GH6IIOOE.mjs';
14
+ import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
15
+ import './chunk-PCHACQEB.mjs';
16
16
  import { jsx } from 'react/jsx-runtime';
17
17
 
18
18
  var decode = defineIslandPropsDecoder("event-listing");
@@ -1,18 +1,18 @@
1
- import { EventRegistrationIslandClient } from './chunk-KXYEKEV6.mjs';
2
- import './chunk-HQWIJLYN.mjs';
3
- import './chunk-AUMRQ242.mjs';
1
+ import { EventRegistrationIslandClient } from './chunk-IXDSXF2D.mjs';
2
+ import './chunk-WERRJXNJ.mjs';
3
+ import './chunk-PICR3NTQ.mjs';
4
4
  import './chunk-6N7YRNYU.mjs';
5
- import './chunk-N2WJPTF7.mjs';
6
- import './chunk-QQNVQ62W.mjs';
5
+ import './chunk-DUOHLWLF.mjs';
6
+ import './chunk-OLAOAZEO.mjs';
7
7
  import { buildRouteIslandApiConfig } from './chunk-L4J5Y62O.mjs';
8
- import './chunk-ZJDBOLX7.mjs';
8
+ import './chunk-J6TMMMXW.mjs';
9
9
  import './chunk-3DCJ45Z2.mjs';
10
10
  import './chunk-WBQG7VJA.mjs';
11
11
  import './chunk-LJCX6V7Q.mjs';
12
12
  import { BlockApiProvider } from './chunk-TNGL2WJF.mjs';
13
13
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
14
- import { defineIslandPropsDecoder } from './chunk-R3CZQLXF.mjs';
15
- import './chunk-GH6IIOOE.mjs';
14
+ import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
15
+ import './chunk-PCHACQEB.mjs';
16
16
  import { jsx } from 'react/jsx-runtime';
17
17
 
18
18
  var decode = defineIslandPropsDecoder("event-registration");
@@ -2,8 +2,8 @@
2
2
  import { isSpamProtectionEnabled, AltchaWidget, getChallengeUrl } from './chunk-LJCX6V7Q.mjs';
3
3
  import { BlockApiProvider, FeedbackMessage, useBlockApi } from './chunk-TNGL2WJF.mjs';
4
4
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
5
- import { defineIslandPropsDecoder, themeButtonClassName, assertNever, err, ok } from './chunk-R3CZQLXF.mjs';
6
- import { clsx_default } from './chunk-GH6IIOOE.mjs';
5
+ import { defineIslandPropsDecoder, themeButtonClassName, assertNever, err, ok } from './chunk-6SYGVVWA.mjs';
6
+ import { clsx_default } from './chunk-PCHACQEB.mjs';
7
7
  import { useState, useReducer, useRef } from 'react';
8
8
  import { jsx, jsxs } from 'react/jsx-runtime';
9
9
 
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { useCommerceCart } from './chunk-ERQDHUS2.mjs';
2
+ import { useCommerceCart } from './chunk-Q47XGAGS.mjs';
3
3
  import { resolveDedicatedCheckoutPath, ModalShell } from './chunk-WBQG7VJA.mjs';
4
- import { defineIslandPropsDecoder, buildCartDisplay, themeButtonClassName } from './chunk-R3CZQLXF.mjs';
5
- import './chunk-GH6IIOOE.mjs';
4
+ import { defineIslandPropsDecoder, buildCartDisplay, themeButtonClassName } from './chunk-6SYGVVWA.mjs';
5
+ import './chunk-PCHACQEB.mjs';
6
6
  import * as React2 from 'react';
7
7
  import { createPortal } from 'react-dom';
8
8
  import { createRoot } from 'react-dom/client';
@@ -6830,9 +6830,6 @@ function formatKeyAsLabel(key) {
6830
6830
  return key.replace(/([A-Z])/g, " $1").replace(/[-_]/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
6831
6831
  }
6832
6832
 
6833
- // ../blocks/src/system/manifest/schema.ts
6834
- import { z as z4 } from "zod";
6835
-
6836
6833
  // ../media-core/src/transformRect.ts
6837
6834
  function isValidTransformRectStructure(rect) {
6838
6835
  if (!Array.isArray(rect) || rect.length !== 4) return false;
@@ -6926,6 +6923,9 @@ function rotateNormalizedPoint(point, rotation) {
6926
6923
  }
6927
6924
  }
6928
6925
 
6926
+ // ../blocks/src/system/manifest/schema.ts
6927
+ import { z as z4 } from "zod";
6928
+
6929
6929
  // ../blocks/src/system/node/schema.ts
6930
6930
  import { z as z3 } from "zod";
6931
6931
  var transformStepSchema = z3.object({
@@ -38839,6 +38839,38 @@ var NAMED_SURFACE_IDS = SURFACE_IDS.filter(
38839
38839
  (surfaceId) => surfaceId !== DEFAULT_SURFACE_ID
38840
38840
  );
38841
38841
 
38842
+ // ../api/src/common/envelope.ts
38843
+ var API_ERROR_CODES = [
38844
+ "auth:unauthenticated",
38845
+ "auth:token_expired",
38846
+ "auth:token_invalid",
38847
+ "auth:forbidden",
38848
+ "auth:mfa_required",
38849
+ "auth:sudo_required",
38850
+ "auth:insufficient_permissions",
38851
+ "auth:impersonation_restricted",
38852
+ "validation:invalid_input",
38853
+ "validation:missing_field",
38854
+ "validation:invalid_format",
38855
+ "validation:payload_too_large",
38856
+ "resource:not_found",
38857
+ "resource:already_exists",
38858
+ "resource:conflict",
38859
+ "resource:gone",
38860
+ "rate_limit:exceeded",
38861
+ "billing:payment_required",
38862
+ "billing:plan_limit_exceeded",
38863
+ "billing:pass_redemption_failed",
38864
+ "server:internal_error",
38865
+ "server:unavailable",
38866
+ "external:service_error",
38867
+ "external:registrar_orphaned_contact_profile",
38868
+ "network:connection_error",
38869
+ "network:timeout",
38870
+ "network:dns_error"
38871
+ ];
38872
+ var API_ERROR_CODE_SET = new Set(API_ERROR_CODES);
38873
+
38842
38874
  // ../api/src/customerMembershipOutcomes.ts
38843
38875
  var CANONICAL_REFUND_CONFLICT_CODES = [
38844
38876
  "already_refunded",
@@ -1,7 +1,7 @@
1
- import { LeafletStaticMap } from './chunk-HQWIJLYN.mjs';
1
+ import { LeafletStaticMap } from './chunk-WERRJXNJ.mjs';
2
2
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
3
- import { defineIslandPropsDecoder } from './chunk-R3CZQLXF.mjs';
4
- import { normalizeLocationAddressText, toLocationCoordinates, textColorStyle, mergeStyles, borderColorStyle, backgroundColorStyle } from './chunk-GH6IIOOE.mjs';
3
+ import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
4
+ import { normalizeLocationAddressText, toLocationCoordinates, textColorStyle, mergeStyles, borderColorStyle, backgroundColorStyle } from './chunk-PCHACQEB.mjs';
5
5
  import { jsx, jsxs } from 'react/jsx-runtime';
6
6
 
7
7
  // ../blocks/src/system/runtime/nodes/location-map.shared.ts
@@ -3,8 +3,8 @@ import { getFieldValidationControlProps, FieldValidationMessage } from './chunk-
3
3
  import { isSpamProtectionEnabled, AltchaWidget, getChallengeUrl } from './chunk-LJCX6V7Q.mjs';
4
4
  import { BlockApiProvider, useBlockApi, FeedbackMessage } from './chunk-TNGL2WJF.mjs';
5
5
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
6
- import { defineIslandPropsDecoder, themeButtonClassName, assertNever } from './chunk-R3CZQLXF.mjs';
7
- import { clsx_default } from './chunk-GH6IIOOE.mjs';
6
+ import { defineIslandPropsDecoder, themeButtonClassName, assertNever } from './chunk-6SYGVVWA.mjs';
7
+ import { clsx_default } from './chunk-PCHACQEB.mjs';
8
8
  import { useReducer, useState } from 'react';
9
9
  import { jsx, jsxs } from 'react/jsx-runtime';
10
10
 
@@ -1,15 +1,15 @@
1
- import { mountShopBlockIsland, ProductDetailClient } from './chunk-JXY6NHG6.mjs';
2
- import './chunk-ERQDHUS2.mjs';
3
- import './chunk-B5UC2D6X.mjs';
1
+ import { mountShopBlockIsland, ProductDetailClient } from './chunk-YYVGSYBO.mjs';
2
+ import './chunk-Q47XGAGS.mjs';
3
+ import './chunk-JNE6UI6U.mjs';
4
4
  import './chunk-6N7YRNYU.mjs';
5
5
  import './chunk-L4J5Y62O.mjs';
6
- import './chunk-ZJDBOLX7.mjs';
6
+ import './chunk-J6TMMMXW.mjs';
7
7
  import './chunk-3DCJ45Z2.mjs';
8
8
  import './chunk-WBQG7VJA.mjs';
9
9
  import './chunk-TNGL2WJF.mjs';
10
10
  import './chunk-N7PBWBWQ.mjs';
11
- import { defineIslandPropsDecoder } from './chunk-R3CZQLXF.mjs';
12
- import './chunk-GH6IIOOE.mjs';
11
+ import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
12
+ import './chunk-PCHACQEB.mjs';
13
13
 
14
14
  // src/rendering/islands/enhancers/productDetail.tsx
15
15
  var decode = defineIslandPropsDecoder("product-detail");
@@ -1,15 +1,15 @@
1
- import { mountShopBlockIsland, ProductListClient } from './chunk-JXY6NHG6.mjs';
2
- import './chunk-ERQDHUS2.mjs';
3
- import './chunk-B5UC2D6X.mjs';
1
+ import { mountShopBlockIsland, ProductListClient } from './chunk-YYVGSYBO.mjs';
2
+ import './chunk-Q47XGAGS.mjs';
3
+ import './chunk-JNE6UI6U.mjs';
4
4
  import './chunk-6N7YRNYU.mjs';
5
5
  import './chunk-L4J5Y62O.mjs';
6
- import './chunk-ZJDBOLX7.mjs';
6
+ import './chunk-J6TMMMXW.mjs';
7
7
  import './chunk-3DCJ45Z2.mjs';
8
8
  import './chunk-WBQG7VJA.mjs';
9
9
  import './chunk-TNGL2WJF.mjs';
10
10
  import './chunk-N7PBWBWQ.mjs';
11
- import { defineIslandPropsDecoder } from './chunk-R3CZQLXF.mjs';
12
- import './chunk-GH6IIOOE.mjs';
11
+ import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
12
+ import './chunk-PCHACQEB.mjs';
13
13
 
14
14
  // src/rendering/islands/enhancers/productList.tsx
15
15
  var decode = defineIslandPropsDecoder("product-list");
@@ -4621,6 +4621,13 @@ var init_renderableMediaAsset = __esm({
4621
4621
  }
4622
4622
  });
4623
4623
 
4624
+ // ../media-core/src/legacyMediaValue.ts
4625
+ var init_legacyMediaValue = __esm({
4626
+ "../media-core/src/legacyMediaValue.ts"() {
4627
+ "use strict";
4628
+ }
4629
+ });
4630
+
4624
4631
  // ../media-core/src/index.ts
4625
4632
  var init_src2 = __esm({
4626
4633
  "../media-core/src/index.ts"() {
@@ -4663,6 +4670,7 @@ var init_src2 = __esm({
4663
4670
  init_mediaUsageProjection();
4664
4671
  init_portableMediaReferences();
4665
4672
  init_renderableMediaAsset();
4673
+ init_legacyMediaValue();
4666
4674
  }
4667
4675
  });
4668
4676
 
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { buildResolveImageUrlContext, setContextResolveImageUrlContext, unsafeAsMediaAssetId } from '../chunk-GH6IIOOE.mjs';
2
+ import { buildResolveImageUrlContext, setContextResolveImageUrlContext, unsafeAsMediaAssetId } from '../chunk-PCHACQEB.mjs';
3
3
  import { useEffect } from 'react';
4
4
 
5
5
  // src/rendering/islands/deferredVideoEmbeds.ts
@@ -80,24 +80,24 @@ function isSafeHttpsUrl(value) {
80
80
 
81
81
  // src/rendering/islands/hydrateBlocksIslands.ts
82
82
  var defaultEnhancerLoaders = {
83
- accordion: () => import('../accordion-BUDH2G3S.mjs'),
84
- headerSection: () => import('../headerSection-RRLYUCGC.mjs'),
85
- carousel: () => import('../carousel-ONCEW6IJ.mjs'),
86
- form: () => import('../form-R7D4LZWW.mjs'),
87
- "booking-form": () => import('../bookingForm-NQMCELVB.mjs'),
88
- "event-registration": () => import('../eventRegistration-XGPIU3Z2.mjs'),
89
- "event-details": () => import('../eventDetails-5LOBMPLN.mjs'),
90
- "location-map": () => import('../locationMap-35ZJMRBZ.mjs'),
91
- "course-registration": () => import('../courseRegistration-JPWAQ6KM.mjs'),
92
- "event-listing": () => import('../eventListing-SBGY4I3L.mjs'),
93
- "event-calendar": () => import('../eventCalendar-QDOCHBBV.mjs'),
94
- "event-combined": () => import('../eventCombined-ZS2CXSIE.mjs'),
95
- "product-list": () => import('../productList-FDP5BH7W.mjs'),
96
- "product-detail": () => import('../productDetail-2O7YQNBX.mjs'),
97
- "cart": () => import('../cart-V2TCK2GI.mjs'),
98
- "checkout": () => import('../checkout-ZI7SWNCS.mjs'),
99
- shop: () => import('../shop-BGYJ3LDT.mjs'),
100
- "newsletter-form": () => import('../newsletterForm-MJ2VCFUT.mjs')
83
+ accordion: () => import('../accordion-RNQIPG55.mjs'),
84
+ headerSection: () => import('../headerSection-RSFXY6V3.mjs'),
85
+ carousel: () => import('../carousel-W7DQ3YPU.mjs'),
86
+ form: () => import('../form-6UZY6RUA.mjs'),
87
+ "booking-form": () => import('../bookingForm-HYEEVRLP.mjs'),
88
+ "event-registration": () => import('../eventRegistration-WGJVFKQJ.mjs'),
89
+ "event-details": () => import('../eventDetails-TFE5TWKV.mjs'),
90
+ "location-map": () => import('../locationMap-24FH67I4.mjs'),
91
+ "course-registration": () => import('../courseRegistration-QZ67PVHO.mjs'),
92
+ "event-listing": () => import('../eventListing-IQ6AGWZ6.mjs'),
93
+ "event-calendar": () => import('../eventCalendar-V3BDHQNT.mjs'),
94
+ "event-combined": () => import('../eventCombined-XYFRN2RG.mjs'),
95
+ "product-list": () => import('../productList-4BMJLQHZ.mjs'),
96
+ "product-detail": () => import('../productDetail-ZDYN3G4T.mjs'),
97
+ "cart": () => import('../cart-PXJ3SXXO.mjs'),
98
+ "checkout": () => import('../checkout-X3JYSOXI.mjs'),
99
+ shop: () => import('../shop-U5C634FF.mjs'),
100
+ "newsletter-form": () => import('../newsletterForm-QVL3MLTN.mjs')
101
101
  };
102
102
  var DEFAULT_MAX_RETRIES = 2;
103
103
  var RETRY_DELAYS_MS = [250, 1e3];
@@ -1744,6 +1744,28 @@ var init_renderableMediaAsset = __esm({
1744
1744
  }
1745
1745
  });
1746
1746
 
1747
+ // ../media-core/src/legacyMediaValue.ts
1748
+ function legacyStringMediaTypeForField(field) {
1749
+ if (field.type === "file") {
1750
+ return field.fileKinds?.[0] ?? "document";
1751
+ }
1752
+ return field.mediaKinds?.[0] ?? "image";
1753
+ }
1754
+ function normalizeLegacyStringMediaValueForField(value, field) {
1755
+ if (typeof value !== "string") return value;
1756
+ const src = value.trim();
1757
+ if (!src) return value;
1758
+ return {
1759
+ type: legacyStringMediaTypeForField(field),
1760
+ src
1761
+ };
1762
+ }
1763
+ var init_legacyMediaValue = __esm({
1764
+ "../media-core/src/legacyMediaValue.ts"() {
1765
+ "use strict";
1766
+ }
1767
+ });
1768
+
1747
1769
  // ../media-core/src/index.ts
1748
1770
  var init_src2 = __esm({
1749
1771
  "../media-core/src/index.ts"() {
@@ -1786,6 +1808,7 @@ var init_src2 = __esm({
1786
1808
  init_mediaUsageProjection();
1787
1809
  init_portableMediaReferences();
1788
1810
  init_renderableMediaAsset();
1811
+ init_legacyMediaValue();
1789
1812
  }
1790
1813
  });
1791
1814
 
@@ -56028,6 +56051,7 @@ import * as React37 from "react";
56028
56051
  import * as React35 from "react";
56029
56052
 
56030
56053
  // ../blocks/src/system/manifest/fieldValidation/index.ts
56054
+ init_src2();
56031
56055
  import { z as z53 } from "zod";
56032
56056
 
56033
56057
  // ../blocks/src/system/types/link.ts
@@ -56756,7 +56780,10 @@ function deriveFieldValidationPlan(field, path = [field.id]) {
56756
56780
  return makePlan("richText", "object", field, path, required, commonConstraints(required, { kind: "richTextDoc" }));
56757
56781
  case "media":
56758
56782
  case "file":
56759
- return makePlan("media", "object", field, path, required, commonConstraints(required, { kind: "mediaObject" }));
56783
+ return {
56784
+ ...makePlan("media", "object", field, path, required, commonConstraints(required, { kind: "mediaObject" })),
56785
+ legacyStringType: legacyStringMediaTypeForField(field)
56786
+ };
56760
56787
  case "link":
56761
56788
  return makePlan("link", "object", field, path, required, commonConstraints(required, { kind: "linkObject" }));
56762
56789
  case "boolean":
@@ -56941,15 +56968,23 @@ function normalizeFieldValue(plan, value, ctx) {
56941
56968
  return normalizeRepeaterItems(plan, value, ctx);
56942
56969
  case "boolean":
56943
56970
  case "richText":
56944
- case "media":
56945
56971
  case "link":
56946
56972
  case "select":
56947
56973
  case "passthrough":
56948
56974
  return value;
56975
+ case "media":
56976
+ return normalizeMediaInput(plan, value);
56949
56977
  default:
56950
56978
  return assertNever7(plan);
56951
56979
  }
56952
56980
  }
56981
+ function normalizeMediaInput(plan, value) {
56982
+ return normalizeLegacyStringMediaValueForField(value, {
56983
+ type: plan.fieldType,
56984
+ mediaKinds: plan.fieldType === "media" ? [plan.legacyStringType] : void 0,
56985
+ fileKinds: plan.fieldType === "file" ? [plan.legacyStringType] : void 0
56986
+ });
56987
+ }
56953
56988
  function normalizeObjectChildren(children, value, ctx) {
56954
56989
  if (!value || typeof value !== "object" || Array.isArray(value)) return value;
56955
56990
  const normalized = {
@@ -98342,6 +98377,38 @@ var NAMED_SURFACE_IDS = SURFACE_IDS.filter(
98342
98377
  (surfaceId) => surfaceId !== DEFAULT_SURFACE_ID
98343
98378
  );
98344
98379
 
98380
+ // ../api/src/common/envelope.ts
98381
+ var API_ERROR_CODES = [
98382
+ "auth:unauthenticated",
98383
+ "auth:token_expired",
98384
+ "auth:token_invalid",
98385
+ "auth:forbidden",
98386
+ "auth:mfa_required",
98387
+ "auth:sudo_required",
98388
+ "auth:insufficient_permissions",
98389
+ "auth:impersonation_restricted",
98390
+ "validation:invalid_input",
98391
+ "validation:missing_field",
98392
+ "validation:invalid_format",
98393
+ "validation:payload_too_large",
98394
+ "resource:not_found",
98395
+ "resource:already_exists",
98396
+ "resource:conflict",
98397
+ "resource:gone",
98398
+ "rate_limit:exceeded",
98399
+ "billing:payment_required",
98400
+ "billing:plan_limit_exceeded",
98401
+ "billing:pass_redemption_failed",
98402
+ "server:internal_error",
98403
+ "server:unavailable",
98404
+ "external:service_error",
98405
+ "external:registrar_orphaned_contact_profile",
98406
+ "network:connection_error",
98407
+ "network:timeout",
98408
+ "network:dns_error"
98409
+ ];
98410
+ var API_ERROR_CODE_SET = new Set(API_ERROR_CODES);
98411
+
98345
98412
  // ../api/src/customerMembershipOutcomes.ts
98346
98413
  var CANONICAL_REFUND_CONFLICT_CODES = [
98347
98414
  "already_refunded",
@@ -1,15 +1,15 @@
1
- import { mountShopBlockIsland, ShopClient } from './chunk-JXY6NHG6.mjs';
2
- import './chunk-ERQDHUS2.mjs';
3
- import './chunk-B5UC2D6X.mjs';
1
+ import { mountShopBlockIsland, ShopClient } from './chunk-YYVGSYBO.mjs';
2
+ import './chunk-Q47XGAGS.mjs';
3
+ import './chunk-JNE6UI6U.mjs';
4
4
  import './chunk-6N7YRNYU.mjs';
5
5
  import './chunk-L4J5Y62O.mjs';
6
- import './chunk-ZJDBOLX7.mjs';
6
+ import './chunk-J6TMMMXW.mjs';
7
7
  import './chunk-3DCJ45Z2.mjs';
8
8
  import './chunk-WBQG7VJA.mjs';
9
9
  import './chunk-TNGL2WJF.mjs';
10
10
  import './chunk-N7PBWBWQ.mjs';
11
- import { defineIslandPropsDecoder } from './chunk-R3CZQLXF.mjs';
12
- import './chunk-GH6IIOOE.mjs';
11
+ import { defineIslandPropsDecoder } from './chunk-6SYGVVWA.mjs';
12
+ import './chunk-PCHACQEB.mjs';
13
13
 
14
14
  // src/rendering/islands/enhancers/shop.tsx
15
15
  var decode = defineIslandPropsDecoder("shop");
@@ -1,24 +1,24 @@
1
1
  "use client";
2
- export { PreviewLayoutProvider, PreviewQueryProvider, createPreviewQueryClient, useOptionalPreviewLayout, usePreviewLayout } from '../../chunk-U5YM4AWE.mjs';
3
- import '../../chunk-ZA2S7H34.mjs';
2
+ export { PreviewLayoutProvider, PreviewQueryProvider, createPreviewQueryClient, useOptionalPreviewLayout, usePreviewLayout } from '../../chunk-AJZGT6YG.mjs';
3
+ import '../../chunk-NT76QGIJ.mjs';
4
4
  import '../../chunk-R7POPVJR.mjs';
5
5
  import React from 'react';
6
6
  import { jsx } from 'react/jsx-runtime';
7
7
 
8
8
  var LazySdkPreviewMode = React.lazy(async () => {
9
- const mod = await import('../../SdkPreviewModeRuntime-BRGRDQFH.mjs');
9
+ const mod = await import('../../SdkPreviewModeRuntime-NHTLRNQD.mjs');
10
10
  return {
11
11
  default: mod.SdkPreviewModeRuntime
12
12
  };
13
13
  });
14
14
  var LazyPreviewShell = React.lazy(async () => {
15
- const mod = await import('../../sdk-runtime-B3TFXRXZ.mjs');
15
+ const mod = await import('../../sdk-runtime-VGV46WVB.mjs');
16
16
  return {
17
17
  default: mod.PreviewShell
18
18
  };
19
19
  });
20
20
  var LazyPreviewShellLayout = React.lazy(async () => {
21
- const mod = await import('../../sdk-runtime-B3TFXRXZ.mjs');
21
+ const mod = await import('../../sdk-runtime-VGV46WVB.mjs');
22
22
  return {
23
23
  default: mod.PreviewShellLayout
24
24
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- export { PreviewShell, PreviewShellLayout, SdkPreviewModeRuntime as SdkPreviewMode } from './chunk-LERKJM3E.mjs';
3
- export { PreviewLayoutProvider, PreviewQueryProvider, createPreviewQueryClient, useOptionalPreviewLayout, usePreviewLayout } from './chunk-U5YM4AWE.mjs';
4
- import './chunk-UOMTCHZD.mjs';
5
- import './chunk-6D7PLF4M.mjs';
6
- import './chunk-I6EOKV6B.mjs';
7
- import './chunk-ZA2S7H34.mjs';
2
+ export { PreviewShell, PreviewShellLayout, SdkPreviewModeRuntime as SdkPreviewMode } from './chunk-XIK2HYI3.mjs';
3
+ export { PreviewLayoutProvider, PreviewQueryProvider, createPreviewQueryClient, useOptionalPreviewLayout, usePreviewLayout } from './chunk-AJZGT6YG.mjs';
4
+ import './chunk-A63UXN3P.mjs';
5
+ import './chunk-AQ6RT6LZ.mjs';
6
+ import './chunk-PCNCETBI.mjs';
7
+ import './chunk-NT76QGIJ.mjs';
8
8
  import './chunk-R7POPVJR.mjs';