@riverbankcms/sdk 0.162.0 → 0.164.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 (201) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +12 -1
  3. package/dist/_dts/{BlocksIslandsHydrator-PZUoA872.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
  4. package/dist/_dts/{Page-CdQS6C7i.d.ts → Page-CDzsagB2.d.ts} +15 -12
  5. package/dist/_dts/{SdkPreviewMode-CNGO-5f1.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
  6. package/dist/_dts/{client-DGa53rjL.d.ts → client-CbeYTSry.d.ts} +13 -41
  7. package/dist/_dts/{content-types-K9R7P-KF.d.ts → content-types--uYRIcIF.d.ts} +2 -2
  8. package/dist/_dts/{contracts-CyBaPaIq.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
  9. package/dist/_dts/{footerPageOutline-B6jmKmon.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-iemoR3AN.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
  11. package/dist/_dts/{index-DEu85xBt.d.ts → index-BZE-1azr.d.ts} +1 -1
  12. package/dist/_dts/{index-Wm62sXf2.d.ts → index-BpEbwDM7.d.ts} +4 -4
  13. package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
  14. package/dist/_dts/{index-8CN0Nd-Z.d.ts → index-CjdIn9-_.d.ts} +2 -2
  15. package/dist/_dts/{index-BtnsA14K.d.ts → index-DYQFmf--.d.ts} +4 -3
  16. package/dist/_dts/{index-Dbd0Sn0G.d.ts → index-D_pQO-AS.d.ts} +21723 -21361
  17. package/dist/_dts/{index-Du1IRglc.d.ts → index-DriYVLfT.d.ts} +2 -2
  18. package/dist/_dts/{index-DI2yaSPY.d.ts → index-JS8WYgD3.d.ts} +31248 -30975
  19. package/dist/_dts/{index-Jlcq6w69.d.ts → index-wegfy7lf.d.ts} +3 -3
  20. package/dist/_dts/{loadContent-BPfAAZDW.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
  21. package/dist/_dts/{resolvePageContent-DWbrtKf8.d.ts → resolvePageContent-JDE0ry6T.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/index.d.ts +8 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  32. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  36. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  37. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  40. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/index.d.ts +13 -7
  42. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  44. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  45. package/dist/_dts/sdk/src/server.d.ts +5 -5
  46. package/dist/_dts/sdk/src/spam-protection/index.d.ts +32 -52
  47. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  48. package/dist/_dts/{types-ClZ-BQL_.d.ts → types-DiciZDrk.d.ts} +3 -3
  49. package/dist/_dts/{types-CVv2H4AT.d.ts → types-DubJnBnI.d.ts} +7 -7
  50. package/dist/_dts/{types-CfNG5koF.d.ts → types-W40f2olO.d.ts} +3 -2
  51. package/dist/_dts/{validation-BJ6Lf_Dr.d.ts → validation-BF4_zNkR.d.ts} +4 -4
  52. package/dist/client/{BlocksIslandsHydrator-COqlgWYU.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
  53. package/dist/client/{BookingMailingListNote-CFYPDEHH.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
  54. package/dist/client/{CalendarNavigationChevron-COBVxgHb.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
  55. package/dist/client/{CheckboxChoice-C7X9dJ8A.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
  56. package/dist/client/{DemoBookingPortalAccess-CvT0E9AR.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
  57. package/dist/client/{DemoPortalSignInLink-EBOBN5dT.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
  58. package/dist/client/{EventCalendar.client-U6pKcntV.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
  59. package/dist/client/{EventCombined.client-CNzwEHws.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
  60. package/dist/client/{EventEmbeddedCheckoutStep-B9yAWV_k.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
  61. package/dist/client/{EventItem-M5rpaHxi.mjs → EventItem-hrSyTApW.mjs} +102 -22
  62. package/dist/client/{EventListWeekNavigation-D4ieBLDY.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
  63. package/dist/client/{EventListing.client-B8F40Rmn.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
  64. package/dist/client/{EventListing.view-k4lhuCn5.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -56
  65. package/dist/client/{EventRegistrationPayment-C3g8_Hqb.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
  66. package/dist/client/{LocationMapActions-CAjt7qVo.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
  67. package/dist/client/{MapDrawingSvg-_aIK2ojv.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
  68. package/dist/client/{Page-DJBIQBOw.mjs → Page-Dub71o3c.mjs} +956 -378
  69. package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
  70. package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
  71. package/dist/client/{StepIndicator-CFacB1z6.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
  72. package/dist/client/{TabBarFragment-BLsfQskO.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
  73. package/dist/client/{ThemedButton-BWsDgjMC.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
  74. package/dist/client/{accordion-CtO2XF7M.mjs → accordion-vCG_JC5t.mjs} +1 -1
  75. package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
  76. package/dist/client/{booking-form.client-RICCQ0h2.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
  77. package/dist/client/{bookingForm-SvjLPx8i.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
  78. package/dist/client/bookings.mjs +23 -32
  79. package/dist/client/{carousel-BR-zCD3O.mjs → carousel-FM1mkkL0.mjs} +2 -2
  80. package/dist/client/{carousel.client-CEWtoZd3.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
  81. package/dist/client/{cart-C6YpKbZZ.mjs → cart-BDFhbh9j.mjs} +3 -3
  82. package/dist/client/{cart.client-dC938WrX.mjs → cart.client-x3HOke6T.mjs} +1 -1
  83. package/dist/client/{checkout-Dy9RlREI.mjs → checkout-BibhwnTd.mjs} +3 -3
  84. package/dist/client/{checkout.client-CefG0d2F.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
  85. package/dist/client/client.mjs +216 -109
  86. package/dist/client/{context-BFwxgZpB.mjs → context-BNAM7NsW.mjs} +17 -3
  87. package/dist/client/{cta-DtA42Xio.mjs → cta-ChiN1Vgg.mjs} +1 -1
  88. package/dist/client/{dateFormatting-yP1B7F0O.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
  89. package/dist/client/{demoPortalMagicLink-WOiT5Ryi.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
  90. package/dist/client/{enhanceHeaderSection-Dh8c_Lq-.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
  91. package/dist/client/{event-details.client-BFgsLqTj.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
  92. package/dist/client/{event-registration.client-BaXZ1-Ky.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
  93. package/dist/client/{eventCalendar-COLwF80U.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
  94. package/dist/client/{eventCombined-D3Ltwu03.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
  95. package/dist/client/{eventDetails-CBrkimXu.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
  96. package/dist/client/{eventListing-CedKVA1S.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
  97. package/dist/client/{eventRegistration-DkQQfR1b.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
  98. package/dist/client/{form-XFy9uXSJ.mjs → form-GXqjObPC.mjs} +3 -3
  99. package/dist/client/{form.client-B0iancFK.mjs → form.client-CoKNba2e.mjs} +33 -24
  100. package/dist/client/{form.parts-DMbolu9Y.mjs → form.parts-magB_epJ.mjs} +6 -5
  101. package/dist/client/{formatDate-Jm5MQOCA.mjs → formatDate-BiloOyjS.mjs} +1 -1
  102. package/dist/client/gifting/client.mjs +4 -3
  103. package/dist/client/{headerSection-WjlECjtV.mjs → headerSection-BMQCPHT3.mjs} +2 -2
  104. package/dist/client/mediaAssets-BX-vWwQc.mjs +43 -0
  105. package/dist/client/{mediaContext-CNzWmoA4.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
  106. package/dist/client/{newsletter-form.client-D-XwJTjN.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
  107. package/dist/client/{newsletter-form.parts-H92f30y0.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
  108. package/dist/client/{newsletterForm-DMuxzu6I.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
  109. package/dist/client/{noop-B3RNPVrt.mjs → noop-C2vZse15.mjs} +3 -3
  110. package/dist/client/portal/client.mjs +13 -12
  111. package/dist/client/{product-detail.client-B3HuuykE.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
  112. package/dist/client/{product-list.client-CzsDrHQO.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
  113. package/dist/client/{productDetail-CbBUVWgd.mjs → productDetail-BsCao6X4.mjs} +3 -3
  114. package/dist/client/{productList-vqOKH2mh.mjs → productList-Cc-PmbEe.mjs} +3 -3
  115. package/dist/client/{propsDecoder-CkSUep5a.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
  116. package/dist/client/protection-C0PoH1lT.mjs +104 -0
  117. package/dist/client/purchase-BMsWpx8y.mjs +894 -0
  118. package/dist/client/{registry.server-cZ24QwtW.mjs → registry.server-BpLZo3bC.mjs} +27 -24
  119. package/dist/client/rendering/client.mjs +27 -27
  120. package/dist/client/rendering/islands.mjs +1 -1
  121. package/dist/client/rendering.mjs +23 -19
  122. package/dist/client/{richText-coerce-DDcCKvBJ.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
  123. package/dist/client/{routeIslandApiConfig-DYBioANh.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
  124. package/dist/client/{schema-DNHLlze-.mjs → schema-DMUkBtIO.mjs} +3517 -3147
  125. package/dist/client/{shop-CF0dhnfH.mjs → shop-DyXtB5TD.mjs} +3 -3
  126. package/dist/client/{shop-commerce-store-Ba8zPlIg.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
  127. package/dist/client/{shop-commerce-DQznNBEo.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
  128. package/dist/client/{shop.client-DqfYoqWH.mjs → shop.client-QOKqQPgK.mjs} +12 -12
  129. package/dist/client/{shop.interactive-CreQ0I7i.mjs → shop.interactive-BQdm441g.mjs} +62 -34
  130. package/dist/client/{shopShared-D-yh-P7g.mjs → shopShared-CyW6MU48.mjs} +2 -2
  131. package/dist/client/{site-styles-B9HgmY07.mjs → site-styles-BLHYJ8S7.mjs} +755 -35
  132. package/dist/client/spam-protection.mjs +4 -69
  133. package/dist/client/{timetableModel-DCdVErTJ.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
  134. package/dist/client/{useAvailableSlots-Cvgdp2DH.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
  135. package/dist/client/{useBookingNowIso-DrTnGNzD.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
  136. package/dist/client/{useDiscountApply-CULjnXGl.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
  137. package/dist/client/{useDiscountCodeUi-Gn_m7e0o.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
  138. package/dist/client/{useEventPagination-CsysCF22.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
  139. package/dist/client/{view-DMyTchi7.mjs → view-BnaOmrap.mjs} +4 -4
  140. package/dist/client/{view-BpBjo9Te.mjs → view-vhKGFfC3.mjs} +7 -7
  141. package/dist/client/{wizardSteps-BO2OmMO9.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
  142. package/dist/preview-next/before-render.mjs +1 -1
  143. package/dist/preview-next/chrome.css +1 -1
  144. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DLsSmZbO.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
  145. package/dist/preview-next/client/{PreviewEditorSidebar-ChrW9VEo.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +74 -72
  146. package/dist/preview-next/client/{PreviewEditorUI-VaHvYtrA.mjs → PreviewEditorUI-C-1zDCR_.mjs} +151 -126
  147. package/dist/preview-next/client/{SdkPreviewModeRuntime-DWwktlWs.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +371 -1433
  148. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bz7jR6nl.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
  149. package/dist/preview-next/client/{ThemedButton-CHKOWXxl.mjs → ThemedButton-g7NPrsGp.mjs} +462 -110
  150. package/dist/preview-next/client/{previewAuthStore-C0VUwEHz.mjs → previewAuthStore-By_zfrS5.mjs} +164988 -163471
  151. package/dist/preview-next/client/{previewChromeSurface-Dhyx2YrS.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
  152. package/dist/preview-next/client/runtime.mjs +3 -3
  153. package/dist/preview-next/client/{sdk-runtime-C2GWOCyj.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
  154. package/dist/preview-next/client/{siteStyleAccess-DHyzUpv4.mjs → siteStyleAccess-BiSyYyyr.mjs} +10854 -9509
  155. package/dist/preview-next/client/{spinner-BeR2S8oG.mjs → spinner-DnWpeDp2.mjs} +1 -1
  156. package/dist/preview-next/edit-map.css +37 -0
  157. package/dist/preview-next/keepAlive.mjs +1 -1
  158. package/dist/preview-next/maplibre-gl.css +1 -0
  159. package/dist/preview-next/middleware.mjs +1 -1
  160. package/dist/preview-next/{route-contract-CkrFDMrl.mjs → route-contract-D5tHZEz5.mjs} +40 -42
  161. package/dist/preview-next/upload-structure.css +18 -0
  162. package/dist/server/{Block.shared-DxvNGDig.mjs → Block.shared-Iy7g11iP.mjs} +17 -16
  163. package/dist/server/{bindings-BuhKvYkE.mjs → bindings-BVJGgUT0.mjs} +2 -2
  164. package/dist/server/{client-BobW6DOz.mjs → client-CiKaE8ms.mjs} +215 -109
  165. package/dist/server/config-validation.mjs +1 -1
  166. package/dist/server/config.mjs +2 -2
  167. package/dist/server/{effectiveNavLinkStyle-B-MKSt0p.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +725 -18
  168. package/dist/server/index.mjs +3 -3
  169. package/dist/server/{loadContent-CCG_3mbY.mjs → loadContent-BuintpdO.mjs} +6 -4
  170. package/dist/server/loadPage-BwjncpJf.mjs +2 -0
  171. package/dist/server/{loadPage-jntGoMrf.mjs → loadPage-Dk4wea8M.mjs} +3 -2
  172. package/dist/server/next.mjs +9 -9
  173. package/dist/server/{overrideResolution-BBOlgn4Z.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
  174. package/dist/server/{overrides-DByQwIyW.mjs → overrides-DVemf-GV.mjs} +231 -114
  175. package/dist/server/page-converter.mjs +1 -1
  176. package/dist/server/{prebuild-DrwcTk2t.mjs → prebuild-DubLNgRH.mjs} +1 -1
  177. package/dist/server/prebuild.mjs +1 -1
  178. package/dist/server/{prefetchBlockData-LfgxSJYE.mjs → prefetchBlockData-Bnbwoe5n.mjs} +53 -28
  179. package/dist/server/{publicProducts-8A3T5v4M.mjs → publicProducts-D3Fc5TKk.mjs} +85 -70
  180. package/dist/server/{registry-Digv02oV.mjs → registry-zjd1P2Dl.mjs} +127 -59
  181. package/dist/server/rendering/server.mjs +4 -4
  182. package/dist/server/rendering.mjs +8 -8
  183. package/dist/server/{resolveBlockData-C23t8-77.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
  184. package/dist/server/routing.mjs +1 -1
  185. package/dist/server/{schema-BiqpDRwB.mjs → schema-BlTWmTSl.mjs} +4163 -3793
  186. package/dist/server/server.mjs +3 -3
  187. package/dist/server/{site-styles-DrkprQPL.mjs → site-styles-yHytcXIB.mjs} +33 -20
  188. package/dist/server/{siteChromeOverlayClearance-BmKKkkbh.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +159 -107
  189. package/dist/server/{src-08GY1njw.mjs → src-cbbK3Bho.mjs} +547 -147
  190. package/dist/server/theme-bridge.mjs +1 -1
  191. package/dist/server/theme.mjs +1 -1
  192. package/dist/server/{themeAdmission-CSd_Vusz.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
  193. package/dist/server/{validation-DdUTkBOZ.mjs → validation-CGH-Xs4E.mjs} +2 -2
  194. package/dist/server/{version-DdIOqIDe.mjs → version-DoOG6F13.mjs} +1 -1
  195. package/dist/styles/index.css +399 -112
  196. package/package.json +2 -3
  197. package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
  198. package/dist/_dts/index-C39F9KaB.d.ts +0 -77
  199. package/dist/client/mediaAssets-BkoW_PEn.mjs +0 -16
  200. package/dist/client/src-BNZzXgWu.mjs +0 -102
  201. package/dist/server/loadPage-Bk9HDh9K.mjs +0 -2
@@ -1,4 +1,4 @@
1
- import { Rr as parseBackgroundContent, n as listBlockDescriptors } from "./registry-Digv02oV.mjs";
1
+ import { Rr as parseBackgroundContent, n as listBlockDescriptors } from "./registry-zjd1P2Dl.mjs";
2
2
  import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
3
3
  import { i as getJsonFromAiText, r as getJsonFromAi, t as convertHtmlToManifest } from "./three-pass-converter-Chnb1XD-.mjs";
4
4
  import { z } from "zod";
@@ -1,4 +1,4 @@
1
- import { t as SDK_VERSION } from "./version-DdIOqIDe.mjs";
1
+ import { t as SDK_VERSION } from "./version-DoOG6F13.mjs";
2
2
  import * as crypto$1 from "crypto";
3
3
  import * as path from "path";
4
4
  import * as fs from "fs";
@@ -1,2 +1,2 @@
1
- import { t as prebuildCache } from "./prebuild-DrwcTk2t.mjs";
1
+ import { t as prebuildCache } from "./prebuild-DubLNgRH.mjs";
2
2
  export { prebuildCache };
@@ -1,14 +1,14 @@
1
- import { $t as makeBoundaryId, Dr as ok, Er as err, Et as resolveManagedMediaReference, Ft as asDesignBlockId, Sr as parseUserId, St as runtimeMediaSchema, Tn as mapDrawingStyle, Tt as indexRenderableMediaAssets, Vt as asSiteStyleId, br as parseSiteId, bt as mediaSchema, dn as resolveSurface, hr as parseApiKeyId, ln as parseResolvedSurface, r as themeSchema, un as parseSurfaceTree, vt as stripStaleTransitionStyleGroup, wt as renderableMediaAssetSchema, xr as parseSiteTermsVersionId, zn as defaultThemeTokens, zt as asLayoutVariantKey } from "./schema-BiqpDRwB.mjs";
1
+ import { Cn as ok, Dn as parseResolvedSurface, Dt as indexRenderableMediaAssets, Et as renderableMediaAssetSchema, Lt as asDesignBlockId, On as parseSurfaceTree, Ot as resolveManagedMediaReference, Sn as err, St as mediaSchema, Ut as asSiteStyleId, Vt as asLayoutVariantKey, _n as parseSiteTermsVersionId, bt as stripStaleTransitionStyleGroup, dn as parseApiKeyId, dr as defaultThemeTokens, gn as parseSiteId, kn as resolveSurface, r as themeSchema, tn as makeBoundaryId, vn as parseUserId, wn as mapDrawingStyle, wt as runtimeMediaSchema } from "./schema-BlTWmTSl.mjs";
2
+ import { $r as lookSkinSlotTransform, Ai as validateManifestLookField, Br as parseRuntimeBackgroundContent, Bt as buildEventListWeek, Ci as blockCategoryEnum, Da as toUtcIsoDateTimeString, Ei as fieldSchema, F as projectRecurringSchedule, Fi as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, G as resolveCalendarReadProfile, Gn as headerRuntimeTransforms, Gt as eventCalendarWeekStart, Hn as readRuntimeNow, Hr as resolveSurfaceForegroundStyles, Jr as BACKGROUND_POSITION_PRESET_VALUES, Ki as augmentManifest, Kn as chromeLogoTransforms, Mi as validateSdkBlockDeclaration, Ni as NodeSchema, Pi as bindingSchema, Pr as boxStylesTransforms, Qr as lookQuoteLimitTransform, Rn as contentTransforms, Rr as parseBackgroundContent, Ti as builtInBlockKindsSchema, Un as resolveDateRuntimeContext, Ur as resolveBackgroundColorValue, Vr as resolveSectionSurfaceForeground, W as calendarWindowQuerySchema, Wn as mediaTransforms, Xn as uiTransforms, Xr as lookCarouselRegionTransform, Yn as resolveHeroTitleLength, Yr as getAnchorClasses, Zn as formattingTransforms, Zr as lookLeadSlotTransform, aa as parseMailingListProviderScope, bt as eventCalendarListLayoutOptions, ei as asPartialObject, ji as sdkBlockPresentationShape, la as locationValueSchema, ni as runTransforms, nt as computeMediaTransformStyle, pr as standardAspectRatioOptions, pt as resolveEventSelection, qn as layoutTransforms, qr as standardImageShapeOptions, t as getBlockDefinition, ti as createTransformRegistry, vt as eventCalendarListGroupingDecision, wi as blockSectionDeclarationShape, xa as getLocalScheduleDate, xt as resolveEventCalendarReadPlan, yt as eventCalendarListLayoutCompatibleDisplayModeValues, zr as parseBackgroundOverlay } from "./registry-zjd1P2Dl.mjs";
2
3
  import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
3
- import { $r as lookSkinSlotTransform, Ai as validateManifestLookField, Br as parseRuntimeBackgroundContent, Bt as buildEventListWeek, Ci as blockCategoryEnum, Da as toUtcIsoDateTimeString, Ei as fieldSchema, F as projectRecurringSchedule, Fi as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, G as resolveCalendarReadProfile, Gn as headerRuntimeTransforms, Gt as eventCalendarWeekStart, Hn as readRuntimeNow, Hr as resolveSurfaceForegroundStyles, Jr as BACKGROUND_POSITION_PRESET_VALUES, Ki as augmentManifest, Kn as chromeLogoTransforms, Mi as validateSdkBlockDeclaration, Ni as NodeSchema, Pi as bindingSchema, Pr as boxStylesTransforms, Qr as lookQuoteLimitTransform, Rn as contentTransforms, Rr as parseBackgroundContent, Ti as builtInBlockKindsSchema, Un as resolveDateRuntimeContext, Ur as resolveBackgroundColorValue, Vr as resolveSectionSurfaceForeground, W as calendarWindowQuerySchema, Wn as mediaTransforms, Xn as uiTransforms, Xr as lookCarouselRegionTransform, Yn as resolveHeroTitleLength, Yr as getAnchorClasses, Zn as formattingTransforms, Zr as lookLeadSlotTransform, aa as parseMailingListProviderScope, bt as eventCalendarListLayoutOptions, ei as asPartialObject, ji as sdkBlockPresentationShape, la as locationValueSchema, ni as runTransforms, nt as computeMediaTransformStyle, pr as standardAspectRatioOptions, pt as resolveEventSelection, qn as layoutTransforms, qr as standardImageShapeOptions, t as getBlockDefinition, ti as createTransformRegistry, vt as eventCalendarListGroupingDecision, wi as blockSectionDeclarationShape, xa as getLocalScheduleDate, xt as resolveEventCalendarReadPlan, yt as eventCalendarListLayoutCompatibleDisplayModeValues, zr as parseBackgroundOverlay } from "./registry-Digv02oV.mjs";
4
- import { n as parsePublicProductCategorySelector, p as SUPPORTED_LOADER_ENDPOINTS$1, r as isRecord$3 } from "./publicProducts-8A3T5v4M.mjs";
5
- import { B as cardListKnobBlocks, D as parseGradientPresetId, E as getGradientPreset, R as resolveEffectiveKnobs, T as gradientToCss, _ as resolveEffectiveArrangement, b as deriveSiteStyleBlockPolicy, f as arrangementSlotNames, g as readStoredMode, h as arrangementManifestFromVariants, m as resolveLookSlotSurfaces, p as resolveItemSurface, v as resolveModeArrangement, y as resolvePublishedLook, z as cardListFamilyBlocks } from "./effectiveNavLinkStyle-B-MKSt0p.mjs";
6
- import { a as heroPhotoPaintsGround, i as deriveSectionGround, n as composeBoundary, o as parseCanonicalRuntimeBackground, r as sectionFactsForContent, s as resolveSectionBackground, t as boundaryLayout } from "./site-styles-DrkprQPL.mjs";
4
+ import { m as SUPPORTED_LOADER_ENDPOINTS$1, n as parsePublicProductCategorySelector } from "./publicProducts-D3Fc5TKk.mjs";
5
+ import { D as getGradientPreset, E as gradientToCss, G as resolveEffectiveKnobs, K as cardListFamilyBlocks, O as parseGradientPresetId, _ as readStoredMode, b as resolvePublishedLook, g as arrangementManifestFromVariants, h as resolveLookSlotSurfaces, m as resolveItemSurface, p as arrangementSlotNames, q as cardListKnobBlocks, v as resolveEffectiveArrangement, x as deriveSiteStyleBlockPolicy, y as resolveModeArrangement } from "./effectiveNavLinkStyle-EDSdd_oK.mjs";
6
+ import { a as deriveSectionGround, c as resolveSectionBackground, i as applyLookPhotoTreatment, n as composeBoundary, o as heroPhotoPaintsGround, r as sectionFactsForContent, s as parseCanonicalRuntimeBackground, t as boundaryLayout } from "./site-styles-yHytcXIB.mjs";
7
7
  import { i as isObjectRecord, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
8
8
  import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
9
9
  import { z } from "zod";
10
10
  //#region ../core/src/rich-text.ts
11
- function isRecord$2(value) {
11
+ function isRecord$3(value) {
12
12
  return typeof value === "object" && value !== null && !Array.isArray(value);
13
13
  }
14
14
  function hasOnlyKeys(value, allowed) {
@@ -28,15 +28,15 @@ function isDenseArrayOf(value, predicate) {
28
28
  return true;
29
29
  }
30
30
  function isTipTapMark(value) {
31
- return isRecord$2(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord$2(value.attrs));
31
+ return isRecord$3(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord$3(value.attrs));
32
32
  }
33
33
  function isTipTapNode(value) {
34
- if (!isRecord$2(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord$2(value.attrs) || value.marks !== void 0 && (!Array.isArray(value.marks) || !isDenseArrayOf(value.marks, isTipTapMark)) || value.content !== void 0 && (!Array.isArray(value.content) || !isDenseArrayOf(value.content, isTipTapNode))) return false;
34
+ if (!isRecord$3(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord$3(value.attrs) || value.marks !== void 0 && (!Array.isArray(value.marks) || !isDenseArrayOf(value.marks, isTipTapMark)) || value.content !== void 0 && (!Array.isArray(value.content) || !isDenseArrayOf(value.content, isTipTapNode))) return false;
35
35
  if (value.type === "text") return typeof value.text === "string" && value.text.length > 0 && value.content === void 0;
36
36
  return value.text === void 0;
37
37
  }
38
38
  function isCanonicalRichTextDoc(value) {
39
- return isRecord$2(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
39
+ return isRecord$3(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
40
40
  }
41
41
  //#endregion
42
42
  //#region ../core/src/secret.ts
@@ -688,7 +688,10 @@ const systemCustomizeFacetDefinitions = [
688
688
  ], "icons"),
689
689
  blockKinds: cardListFamilyBlocks
690
690
  },
691
- fixedKnob("block.event-calendar", "showCapacity", "Show places left", onOff, "true", false, true)
691
+ {
692
+ ...fixedKnob("block.event-calendar", "showCapacity", "Places left", onOff, "true", false, true),
693
+ description: "Show how many places are left on each event"
694
+ }
692
695
  ];
693
696
  systemCustomizeFacetDefinitions.map((definition) => definition.id);
694
697
  Array.from(new Set(systemCustomizeFacetDefinitions.flatMap((definition) => definition.values.map((option) => option.value))));
@@ -1124,7 +1127,7 @@ const defaultTransforms = createTransformRegistry(builtinTransformDefinitions);
1124
1127
  //#region ../blocks/src/system/data/linkedContentEntries.ts
1125
1128
  const LINKED_CONTENT_ENTRY_META_KEY = "__rbLinkedContentEntry";
1126
1129
  function coerceLinkedContentEntriesPayload(payload) {
1127
- if (!isRecord$1(payload)) return payload;
1130
+ if (!isRecord$2(payload)) return payload;
1128
1131
  const response = payload;
1129
1132
  if (!Array.isArray(response.entries)) return payload;
1130
1133
  const contentType = parsePublicContentTypeMeta(response.contentType);
@@ -1132,16 +1135,16 @@ function coerceLinkedContentEntriesPayload(payload) {
1132
1135
  return response.entries.map((entry) => enrichLinkedContentEntry(entry, contentType));
1133
1136
  }
1134
1137
  function getLinkedContentEntryMeta(value) {
1135
- if (!isRecord$1(value)) return null;
1138
+ if (!isRecord$2(value)) return null;
1136
1139
  const candidate = value[LINKED_CONTENT_ENTRY_META_KEY];
1137
1140
  return isLinkedContentEntryMeta(candidate) ? candidate : null;
1138
1141
  }
1139
1142
  function buildLinkedContentEditTarget(input) {
1140
1143
  const { entry, sourceBlockId, sourceBlockKind, itemIndex } = input;
1141
- if (!isRecord$1(entry)) return null;
1144
+ if (!isRecord$2(entry)) return null;
1142
1145
  const meta = getLinkedContentEntryMeta(entry);
1143
1146
  if (!meta || meta.support.kind !== "supported") return null;
1144
- const content = isRecord$1(entry.content) ? entry.content : {};
1147
+ const content = isRecord$2(entry.content) ? entry.content : {};
1145
1148
  return {
1146
1149
  kind: "linked-content-entry",
1147
1150
  entryId: meta.entryId,
@@ -1205,12 +1208,12 @@ function resolveLinkedEntryInlineFieldEligibility(input) {
1205
1208
  };
1206
1209
  }
1207
1210
  function enrichLinkedContentEntry(entry, contentType) {
1208
- if (!isRecord$1(entry)) return entry;
1211
+ if (!isRecord$2(entry)) return entry;
1209
1212
  const entryId = typeof entry.id === "string" ? entry.id : null;
1210
1213
  if (!entryId) return entry;
1211
1214
  const title = typeof entry.title === "string" && entry.title.trim().length > 0 ? entry.title : entryId;
1212
1215
  const optimisticHash = typeof entry.optimisticHash === "string" && entry.optimisticHash.length > 0 ? entry.optimisticHash : null;
1213
- const content = isRecord$1(entry.content) ? entry.content : {};
1216
+ const content = isRecord$2(entry.content) ? entry.content : {};
1214
1217
  const meta = {
1215
1218
  kind: "linked-content-entry",
1216
1219
  entryId,
@@ -1306,7 +1309,7 @@ function capitalize(value) {
1306
1309
  return value.charAt(0).toUpperCase() + value.slice(1).toLowerCase();
1307
1310
  }
1308
1311
  function parsePublicContentTypeMeta(value) {
1309
- if (!isRecord$1(value)) return null;
1312
+ if (!isRecord$2(value)) return null;
1310
1313
  if (typeof value.key !== "string" || value.key.trim().length === 0) return null;
1311
1314
  return {
1312
1315
  key: value.key,
@@ -1316,7 +1319,7 @@ function parsePublicContentTypeMeta(value) {
1316
1319
  };
1317
1320
  }
1318
1321
  function parsePublicContentTypeLinkedEntryEditing(value) {
1319
- if (!isRecord$1(value) || typeof value.kind !== "string") return null;
1322
+ if (!isRecord$2(value) || typeof value.kind !== "string") return null;
1320
1323
  switch (value.kind) {
1321
1324
  case "generic": return { kind: "generic" };
1322
1325
  case "unsupported-domain-backed": return {
@@ -1327,7 +1330,7 @@ function parsePublicContentTypeLinkedEntryEditing(value) {
1327
1330
  }
1328
1331
  }
1329
1332
  function parsePublicContentTypeFieldMeta(value) {
1330
- if (!isRecord$1(value)) return [];
1333
+ if (!isRecord$2(value)) return [];
1331
1334
  if (typeof value.id !== "string" || typeof value.type !== "string") return [];
1332
1335
  return [{
1333
1336
  id: value.id,
@@ -1342,14 +1345,14 @@ function parseStringArray(value) {
1342
1345
  return value.filter((item) => typeof item === "string");
1343
1346
  }
1344
1347
  function isLinkedContentEntryMeta(value) {
1345
- if (!isRecord$1(value)) return false;
1348
+ if (!isRecord$2(value)) return false;
1346
1349
  if (value.kind !== "linked-content-entry") return false;
1347
1350
  if (typeof value.entryId !== "string") return false;
1348
1351
  if (typeof value.contentTypeKey !== "string") return false;
1349
1352
  if (typeof value.contentTypeLabel !== "string") return false;
1350
1353
  if (typeof value.title !== "string") return false;
1351
1354
  if (!(value.optimisticHash === null || typeof value.optimisticHash === "string")) return false;
1352
- if (!isRecord$1(value.contentType)) return false;
1355
+ if (!isRecord$2(value.contentType)) return false;
1353
1356
  if (!isLinkedEntryFieldSourceArray(value.fieldSources)) return false;
1354
1357
  return isLinkedContentEditSupport(value.support);
1355
1358
  }
@@ -1357,7 +1360,7 @@ function isLinkedEntryFieldSourceArray(value) {
1357
1360
  return Array.isArray(value) && value.every(isLinkedEntryFieldSource);
1358
1361
  }
1359
1362
  function isLinkedEntryFieldSource(value) {
1360
- if (!isRecord$1(value)) return false;
1363
+ if (!isRecord$2(value)) return false;
1361
1364
  if (typeof value.displayPath !== "string") return false;
1362
1365
  switch (value.kind) {
1363
1366
  case "content-field": return typeof value.fieldPath === "string" && (value.fieldType === "text" || value.fieldType === "richText");
@@ -1378,7 +1381,7 @@ function isLinkedEntryInlineFieldReadOnlyReason(value) {
1378
1381
  }
1379
1382
  }
1380
1383
  function isLinkedContentEditSupport(value) {
1381
- if (!isRecord$1(value) || typeof value.kind !== "string") return false;
1384
+ if (!isRecord$2(value) || typeof value.kind !== "string") return false;
1382
1385
  switch (value.kind) {
1383
1386
  case "supported": return true;
1384
1387
  case "unsupported-domain-backed":
@@ -1387,7 +1390,7 @@ function isLinkedContentEditSupport(value) {
1387
1390
  default: return false;
1388
1391
  }
1389
1392
  }
1390
- function isRecord$1(value) {
1393
+ function isRecord$2(value) {
1391
1394
  return typeof value === "object" && value !== null && !Array.isArray(value);
1392
1395
  }
1393
1396
  //#endregion
@@ -1772,10 +1775,15 @@ function arrangementRuntime(content) {
1772
1775
  const value = parseSurfaceTree(content._arrangementLooks);
1773
1776
  return isObjectRecord(value) && isObjectRecord(value.byMode) && Array.isArray(value.available) && Array.isArray(value.rhythm) ? restoreArrangementRuntime(value) : null;
1774
1777
  }
1775
- /** JSON transports carry resolver inputs; rebuild every surface at this boundary. */
1778
+ /**
1779
+ * JSON transports carry resolver inputs; rebuild every surface at this boundary.
1780
+ * A payload cached before compiled looks carried `slotRoles` gets the Look's own.
1781
+ */
1776
1782
  function restoreCompiledLook(look) {
1783
+ const transported = look;
1777
1784
  return {
1778
1785
  ...look,
1786
+ slotRoles: transported.slotRoles ?? look.look.structure.slotRoles ?? {},
1779
1787
  itemSurfaces: Object.fromEntries(Object.entries(look.itemSurfaces).map(([slot, surface]) => [slot, parseResolvedSurface(surface)])),
1780
1788
  ...look.roleSurfaces ? { roleSurfaces: {
1781
1789
  card: parseResolvedSurface(look.roleSurfaces.card),
@@ -1828,6 +1836,7 @@ function planArrangementContent(blockKind, manifest, content, audience) {
1828
1836
  });
1829
1837
  return {
1830
1838
  ...activeContent,
1839
+ ...arrangementPhotoTreatmentContent(activeContent, effective.look),
1831
1840
  ...mode !== null ? { variant: mode } : {},
1832
1841
  ...effectiveContent,
1833
1842
  ...photoContent,
@@ -1849,6 +1858,16 @@ function planArrangementContent(blockKind, manifest, content, audience) {
1849
1858
  blockLook: effective.look.id
1850
1859
  };
1851
1860
  }
1861
+ /** Typed Look composition owns contrast treatment; parsing preserves authored paint. */
1862
+ function arrangementPhotoTreatmentContent(content, look) {
1863
+ if (!look.structure.photoTreatment) return {};
1864
+ const authored = parseCanonicalRuntimeBackground(content);
1865
+ if (authored.kind === "none") return {};
1866
+ return { _sectionStyles: {
1867
+ ...isObjectRecord(content._sectionStyles) ? content._sectionStyles : {},
1868
+ background: applyLookPhotoTreatment(authored.background, look.structure.photoTreatment)
1869
+ } };
1870
+ }
1852
1871
  /** Widget section hooks use the theme; hero background geometry never travels to list islands. */
1853
1872
  function arrangementContentSlots(blockKind) {
1854
1873
  return Object.fromEntries(arrangementSlotNames.filter((slot) => (!slot.startsWith("price-") || blockKind === "block.shop") && slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
@@ -1940,6 +1959,7 @@ function applyArrangementRhythm(entry, position) {
1940
1959
  const tinted = resolveArrangementTints(updated, grounded, runtime, surface) ?? grounded;
1941
1960
  return {
1942
1961
  ...entry,
1962
+ styleBackground: arrangementGroundToken(resolveSectionBackground({ kind: "none" }, null, rhythm)),
1943
1963
  renderableContent: {
1944
1964
  ...updated,
1945
1965
  _effectiveLook: tinted,
@@ -2050,7 +2070,7 @@ function resolveArrangementRoleSurfaces(look, runtime, background) {
2050
2070
  ...look,
2051
2071
  ground,
2052
2072
  roleSurfaces,
2053
- itemSurfaces: resolveLookSlotSurfaces(look.look, look.itemRoles, roleSurfaces)
2073
+ itemSurfaces: resolveLookSlotSurfaces(look, look.itemRoles, roleSurfaces)
2054
2074
  };
2055
2075
  }
2056
2076
  /** The arrangement key is resolved once by planBlock, including pinned Looks. */
@@ -2661,6 +2681,11 @@ z.object({
2661
2681
  limit: z.coerce.number().int().min(1).max(100).default(50),
2662
2682
  search: z.string().trim().min(1).max(120).optional()
2663
2683
  });
2684
+ //#endregion
2685
+ //#region ../api/src/utils/isRecord.ts
2686
+ function isRecord$1(value) {
2687
+ return typeof value === "object" && value !== null && !Array.isArray(value);
2688
+ }
2664
2689
  z.object({
2665
2690
  formulaVersion: z.literal("managed-domain-overage-v1"),
2666
2691
  conversionRule: z.literal("usd-to-gbp-1-to-1-v1"),
@@ -3586,7 +3611,7 @@ function sanitizeMarks(marks) {
3586
3611
  if (!Array.isArray(marks) || marks.length === 0) return;
3587
3612
  const sanitized = marks.flatMap((mark) => {
3588
3613
  if (mark.type === "bold" || mark.type === "strong" || mark.type === "italic" || mark.type === "em") return [{ type: mark.type }];
3589
- if (mark.type === "link" && isRecord$3(mark.attrs) && typeof mark.attrs.href === "string") {
3614
+ if (mark.type === "link" && isRecord$1(mark.attrs) && typeof mark.attrs.href === "string") {
3590
3615
  const attrs = { href: mark.attrs.href };
3591
3616
  if (typeof mark.attrs.target === "string" && mark.attrs.target.trim().length > 0) attrs.target = mark.attrs.target;
3592
3617
  if (typeof mark.attrs.rel === "string" && mark.attrs.rel.trim().length > 0) attrs.rel = mark.attrs.rel;
@@ -3693,7 +3718,7 @@ function collectCartLinkStats(items, depth = 0) {
3693
3718
  return result;
3694
3719
  }
3695
3720
  function isNavigationMenuValidationItem(value) {
3696
- if (!isRecord$3(value)) return false;
3721
+ if (!isRecord$1(value)) return false;
3697
3722
  return typeof value.label === "string";
3698
3723
  }
3699
3724
  //#endregion
@@ -1,5 +1,5 @@
1
- import { br as parseSiteId, un as parseSurfaceTree } from "./schema-BiqpDRwB.mjs";
2
- import "./site-styles-DrkprQPL.mjs";
1
+ import { On as parseSurfaceTree, gn as parseSiteId } from "./schema-BlTWmTSl.mjs";
2
+ import "./site-styles-yHytcXIB.mjs";
3
3
  import { z } from "zod";
4
4
  const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
5
5
  function availability(transport) {
@@ -556,6 +556,26 @@ function normalizeSiteCacheId(id) {
556
556
  const parsed = parseSiteId(id);
557
557
  return parsed.ok ? parsed.value : id;
558
558
  }
559
+ /** Memory caches follow the same public-read policy as HTTP and batch readers. */
560
+ function buildPublicReadMemoryCacheTags(endpoint, params) {
561
+ const policy = getPublicReadCachePolicy(endpoint);
562
+ if (policy.kind === "live") return [];
563
+ const templates = {
564
+ published_content: TAG_TEMPLATES.siteRoutableContent,
565
+ public_team_members: TAG_TEMPLATES.publicTeamMembers,
566
+ public_products: TAG_TEMPLATES.publicShop,
567
+ site_forms: TAG_TEMPLATES.siteForms
568
+ };
569
+ return buildCacheReadTags([
570
+ ...policy.tags.map((kind) => templates[kind]),
571
+ ...endpoint === "checkRedirect" ? [
572
+ TAG_TEMPLATES.siteRedirects,
573
+ TAG_TEMPLATES.siteBySlug,
574
+ TAG_TEMPLATES.siteById
575
+ ] : [],
576
+ ...endpoint === "getPublicFormById" ? [TAG_TEMPLATES.formById] : []
577
+ ], params);
578
+ }
559
579
  //#endregion
560
580
  //#region ../api/src/sdkEntryReadEndpoints.ts
561
581
  const SDK_ENTRY_READ_ENDPOINTS = {
@@ -3137,6 +3157,15 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3137
3157
  auth: "user",
3138
3158
  responseKind: "json"
3139
3159
  },
3160
+ /** Prepare or reconcile the card page; only the attempt's owner. */
3161
+ prepareOnboardingPlanCheckout: {
3162
+ path: "/onboarding/attempts/{attemptToken}/plan",
3163
+ method: "POST",
3164
+ tags: ["billing"],
3165
+ auth: "user",
3166
+ errors: [],
3167
+ responseKind: "json"
3168
+ },
3140
3169
  /** Continue on Free from the onboarding card page; only the attempt's owner. */
3141
3170
  continueOnboardingOnFree: {
3142
3171
  path: "/onboarding/attempts/{attemptToken}/plan/free",
@@ -4671,6 +4700,29 @@ const API_ENDPOINTS = {
4671
4700
  auth: "user",
4672
4701
  responseKind: "json"
4673
4702
  },
4703
+ previewSiteBrandingOperation: {
4704
+ path: "/sites/{siteId}/settings/general/preview",
4705
+ method: "POST",
4706
+ auth: "user",
4707
+ responseKind: "json",
4708
+ errors: [
4709
+ "validation:invalid_input",
4710
+ "auth:insufficient_permissions",
4711
+ "server:internal_error"
4712
+ ]
4713
+ },
4714
+ confirmSiteBrandingOperation: {
4715
+ path: "/sites/{siteId}/settings/general/confirm",
4716
+ method: "POST",
4717
+ auth: "user",
4718
+ responseKind: "json",
4719
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
4720
+ errors: [
4721
+ "validation:invalid_input",
4722
+ "auth:insufficient_permissions",
4723
+ "server:internal_error"
4724
+ ]
4725
+ },
4674
4726
  getSiteFooterBlocks: {
4675
4727
  path: "/sites/{siteId}/content/footer-blocks",
4676
4728
  method: "GET",
@@ -5751,48 +5803,6 @@ const API_ENDPOINTS = {
5751
5803
  auth: "user",
5752
5804
  responseKind: "json"
5753
5805
  },
5754
- classifyMediaAsset: {
5755
- path: "/media/{assetId}/classify",
5756
- method: "POST",
5757
- tags: ["media", "media-{assetId}"],
5758
- auth: "user",
5759
- responseKind: "json"
5760
- },
5761
- classifyMediaBatch: {
5762
- path: "/media/classify",
5763
- method: "POST",
5764
- tags: ["media"],
5765
- auth: "user",
5766
- responseKind: "json"
5767
- },
5768
- mediaJobsStatus: {
5769
- path: "/media/jobs/status",
5770
- method: "GET",
5771
- tags: ["media"],
5772
- auth: "user",
5773
- responseKind: "json"
5774
- },
5775
- enqueueMediaClassifyJob: {
5776
- path: "/media/jobs",
5777
- method: "POST",
5778
- tags: ["media"],
5779
- auth: "user",
5780
- responseKind: "json"
5781
- },
5782
- runMediaClassifyJob: {
5783
- path: "/media/jobs/run",
5784
- method: "POST",
5785
- tags: ["media"],
5786
- auth: "user",
5787
- responseKind: "json"
5788
- },
5789
- runAllMediaClassifyJobs: {
5790
- path: "/media/jobs/run-all",
5791
- method: "POST",
5792
- tags: ["media"],
5793
- auth: "user",
5794
- responseKind: "json"
5795
- },
5796
5806
  initSiteContent: {
5797
5807
  path: "/sites/{siteId}/content/init",
5798
5808
  method: "POST",
@@ -6683,6 +6693,14 @@ const API_ENDPOINTS = {
6683
6693
  auth: "admin",
6684
6694
  responseKind: "json"
6685
6695
  },
6696
+ adminClearSitePublicCache: {
6697
+ path: "/admin/sites/{siteId}/cache/clear",
6698
+ method: "POST",
6699
+ tags: ["admin", "sites"],
6700
+ auth: "admin",
6701
+ errors: [],
6702
+ responseKind: "json"
6703
+ },
6686
6704
  adminDeleteSite: {
6687
6705
  path: "/admin/sites/{siteId}",
6688
6706
  method: "DELETE",
@@ -8913,20 +8931,20 @@ function isApiError(result) {
8913
8931
  function isApiSuccess(result) {
8914
8932
  return result.success === true;
8915
8933
  }
8916
- function isRecord$1(value) {
8934
+ function isRecord(value) {
8917
8935
  return typeof value === "object" && value !== null && !Array.isArray(value);
8918
8936
  }
8919
8937
  function isFieldError(value) {
8920
- return isRecord$1(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string" && (value.capacityOverride === void 0 || isCapacityOverrideRefusal(value.capacityOverride));
8938
+ return isRecord(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string" && (value.capacityOverride === void 0 || isCapacityOverrideRefusal(value.capacityOverride));
8921
8939
  }
8922
8940
  function fieldErrorsFromUnknown(value) {
8923
8941
  if (!Array.isArray(value)) return null;
8924
8942
  return value.every(isFieldError) ? value : null;
8925
8943
  }
8926
8944
  function extractEnvelopeErrorObject(body) {
8927
- if (!isRecord$1(body)) return null;
8945
+ if (!isRecord(body)) return null;
8928
8946
  const error = body.error;
8929
- if (!isRecord$1(error)) return null;
8947
+ if (!isRecord(error)) return null;
8930
8948
  if ("success" in body && body.success !== false) return null;
8931
8949
  return error;
8932
8950
  }
@@ -8981,6 +8999,24 @@ function unwrapResponse(result) {
8981
8999
  throw new ApiEnvelopeError(result.error);
8982
9000
  }
8983
9001
  //#endregion
9002
+ //#region ../api/src/request-error.ts
9003
+ var ApiRequestError = class extends Error {
9004
+ constructor(message, options) {
9005
+ super(message);
9006
+ this.name = "ApiRequestError";
9007
+ this.endpoint = options.endpoint;
9008
+ this.status = options.status;
9009
+ this.method = options.method;
9010
+ this.auth = options.auth;
9011
+ this.requestId = options.requestId;
9012
+ this.body = options.body;
9013
+ this.cause = options.cause;
9014
+ this.errorCode = options.errorCode;
9015
+ this.tag = options.tag;
9016
+ this.retryAfterMs = options.retryAfterMs;
9017
+ }
9018
+ };
9019
+ //#endregion
8984
9020
  //#region ../surfaces/src/index.ts
8985
9021
  const SURFACE_IDS = ["core", "macadamia"];
8986
9022
  /**
@@ -9268,22 +9304,6 @@ function generateRequestId() {
9268
9304
  function setSdkVersion(version) {
9269
9305
  sdkVersion = version;
9270
9306
  }
9271
- var ApiRequestError = class extends Error {
9272
- constructor(message, options) {
9273
- super(message);
9274
- this.name = "ApiRequestError";
9275
- this.endpoint = options.endpoint;
9276
- this.status = options.status;
9277
- this.method = options.method;
9278
- this.auth = options.auth;
9279
- this.requestId = options.requestId;
9280
- this.body = options.body;
9281
- this.cause = options.cause;
9282
- this.errorCode = options.errorCode;
9283
- this.tag = options.tag;
9284
- this.retryAfterMs = options.retryAfterMs;
9285
- }
9286
- };
9287
9307
  /**
9288
9308
  * Parse the Retry-After header value to milliseconds.
9289
9309
  * The header can be either:
@@ -9585,11 +9605,6 @@ function requireUsableCommitProjection(response, parsed) {
9585
9605
  throw new ApiCommittedWriteNotice(pageCommitConfirmationEnvelopeSchema.parse(parsed).data);
9586
9606
  }
9587
9607
  //#endregion
9588
- //#region ../api/src/utils/isRecord.ts
9589
- function isRecord(value) {
9590
- return typeof value === "object" && value !== null && !Array.isArray(value);
9591
- }
9592
- //#endregion
9593
9608
  //#region ../api/src/bookingRecords.ts
9594
9609
  const BOOKING_QUESTION_ANSWER_EXPORT_SCOPES = {
9595
9610
  site: "site",
@@ -9640,4 +9655,4 @@ function parsePublicProductCategorySelector(value) {
9640
9655
  };
9641
9656
  }
9642
9657
  //#endregion
9643
- export { publicReadFreshnessSeconds as _, createBearerAPIClient as a, ApiEnvelopeError as c, PUBLIC_READ_ENDPOINT_DEFINITIONS as d, TAG_TEMPLATES as f, isPublicReadEndpoint as g, getPublicReadCachePolicy as h, ApiRequestError as i, isApiError as l, isSupportedLoaderEndpoint as m, parsePublicProductCategorySelector as n, createInternalAPIClient as o, SUPPORTED_LOADER_ENDPOINTS as p, isRecord as r, setSdkVersion as s, encodePublicProductCategorySelector as t, unwrapResponse as u };
9658
+ export { isPublicReadEndpoint as _, setSdkVersion as a, isApiError as c, TAG_TEMPLATES as d, buildPublicReadMemoryCacheTags as f, getPublicReadCachePolicy as g, isSupportedLoaderEndpoint as h, createInternalAPIClient as i, unwrapResponse as l, SUPPORTED_LOADER_ENDPOINTS as m, parsePublicProductCategorySelector as n, ApiRequestError as o, buildSiteReadTags as p, createBearerAPIClient as r, ApiEnvelopeError as s, encodePublicProductCategorySelector as t, PUBLIC_READ_ENDPOINT_DEFINITIONS as u, publicReadFreshnessSeconds as v };