@riverbankcms/sdk 0.89.1 → 0.90.1

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 (178) hide show
  1. package/README.md +27 -4
  2. package/dist/{PreviewEditorSidebar-JDR64FEC.mjs → PreviewEditorSidebar-FNFRVSIM.mjs} +3 -3
  3. package/dist/{PreviewEditorUI-67TMJMAF.mjs → PreviewEditorUI-3WXJFQXG.mjs} +3 -3
  4. package/dist/SdkPreviewModeRuntime-2UCIMKUB.mjs +8 -0
  5. package/dist/_dts/ai/src/contracts/proposals.d.ts +216 -0
  6. package/dist/_dts/altcha/src/AltchaWidget.d.ts +1 -1
  7. package/dist/_dts/api/src/bookingConfig.d.ts +3 -0
  8. package/dist/_dts/api/src/bookingOperations.d.ts +2 -0
  9. package/dist/_dts/api/src/bookingRecords.d.ts +4 -2
  10. package/dist/_dts/api/src/bookings.d.ts +3 -1
  11. package/dist/_dts/api/src/event-listing-destination.d.ts +59 -0
  12. package/dist/_dts/api/src/index.d.ts +10 -5
  13. package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +0 -1
  14. package/dist/_dts/api/src/navigation.d.ts +2 -0
  15. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +18 -6
  16. package/dist/_dts/api/src/request.d.ts +21 -0
  17. package/dist/_dts/api/src/sdk-event-upsert.d.ts +3 -1
  18. package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
  19. package/dist/_dts/api/src/settings/permissions.d.ts +273 -0
  20. package/dist/_dts/api/src/types.d.ts +4 -1
  21. package/dist/_dts/api/src/url.d.ts +6 -3
  22. package/dist/_dts/block-form/src/utils/visibleWhen.d.ts +1 -0
  23. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailCard.d.ts +5 -1
  24. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailGrid.d.ts +9 -1
  25. package/dist/_dts/block-form/src/widgets/RepeaterField/components/index.d.ts +1 -0
  26. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +7 -11
  27. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +6 -0
  28. package/dist/_dts/blocks/src/index.d.ts +2 -1
  29. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -6
  30. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +60 -2
  31. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +16 -5
  32. package/dist/_dts/blocks/src/system/blocks/hero.d.ts +0 -2
  33. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +9 -9
  34. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +3 -3
  35. package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +8 -0
  36. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +1 -1
  37. package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -1
  38. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +3 -1
  39. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -0
  40. package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +17 -5
  41. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +51 -6
  42. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -0
  43. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +2 -2
  44. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +1 -17
  45. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +5 -9
  46. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +5 -9
  47. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +7 -1
  48. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +48 -0
  49. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +5 -0
  50. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.d.ts +4 -4
  51. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +50 -0
  52. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
  53. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +21 -0
  54. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
  55. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +11 -1
  56. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +2 -1
  57. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -1
  58. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/calendarViewOptions.d.ts +10 -0
  59. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/destination.d.ts +8 -0
  60. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +24 -0
  61. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/pricing.d.ts +3 -0
  62. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +7 -0
  63. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +5 -2
  64. package/dist/_dts/blocks/src/system/runtime/nodes/shop-checkout-form.d.ts +2 -2
  65. package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
  66. package/dist/_dts/content-model/src/entry-slots/sdkBlocks.d.ts +21 -0
  67. package/dist/_dts/content-model/src/entry-slots/types.d.ts +7 -0
  68. package/dist/_dts/core/src/event-pricing.d.ts +12 -2
  69. package/dist/_dts/core/src/money-input.d.ts +18 -0
  70. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +50 -0
  71. package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -1
  72. package/dist/_dts/media-editor/src/fieldUi.d.ts +6 -0
  73. package/dist/_dts/media-editor/src/index.d.ts +1 -1
  74. package/dist/_dts/preview-next/src/client/index.d.ts +1 -0
  75. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -2
  76. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -2
  77. package/dist/_dts/preview-next/src/client/preview/PreviewThemedSiteDocument.d.ts +3 -2
  78. package/dist/_dts/preview-next/src/client/preview/SiteChromeEditableSurface.d.ts +2 -2
  79. package/dist/_dts/preview-next/src/client/preview/themeRuntime.d.ts +6 -0
  80. package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -1
  81. package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +10 -0
  82. package/dist/_dts/sdk/src/cli/content/reader.d.ts +12 -5
  83. package/dist/_dts/sdk/src/client/management/types.d.ts +6 -55
  84. package/dist/_dts/sdk/src/components.d.ts +1 -0
  85. package/dist/_dts/sdk/src/config/field-definitions.d.ts +3 -1
  86. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +3 -1
  87. package/dist/_dts/sdk/src/next/types.d.ts +8 -11
  88. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
  89. package/dist/_dts/sdk/src/public-api/contracts.d.ts +11 -1
  90. package/dist/_dts/sdk/src/rendering/blocks-theme-scope.d.ts +2 -1
  91. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +8 -7
  92. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +5 -6
  93. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
  94. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +11 -1
  95. package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
  96. package/dist/_dts/sdk/src/rendering/themeRuntime.d.ts +26 -0
  97. package/dist/_dts/sdk/src/version.d.ts +1 -1
  98. package/dist/_dts/site-commands/src/commands.d.ts +18 -0
  99. package/dist/_dts/theme-core/src/ResponsiveScope.d.ts +12 -0
  100. package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
  101. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +2 -2
  102. package/dist/_dts/theme-core/src/buttons/types.d.ts +5 -5
  103. package/dist/_dts/theme-core/src/cards/types.d.ts +2 -2
  104. package/dist/_dts/theme-core/src/index.d.ts +2 -0
  105. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +21 -21
  106. package/dist/_dts/theme-core/src/schema.d.ts +18 -18
  107. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
  108. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
  109. package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
  110. package/dist/_dts/theme-core/src/themeRuntime.d.ts +11 -0
  111. package/dist/{chunk-F645A5UV.mjs → chunk-BOQXMCSP.mjs} +129 -101
  112. package/dist/{chunk-7YUAXONX.mjs → chunk-CR2VX432.mjs} +1563 -877
  113. package/dist/{chunk-HKJQERFR.mjs → chunk-FA6LVZ7C.mjs} +91 -55
  114. package/dist/{chunk-TGBJWKMP.mjs → chunk-H6TT5ZXI.mjs} +9 -1
  115. package/dist/{chunk-ZQRBLCW5.mjs → chunk-SYYJZPKU.mjs} +2 -2
  116. package/dist/{chunk-7N46MZHI.mjs → chunk-UG7I7S7W.mjs} +1 -1
  117. package/dist/cli/index.mjs +1057 -632
  118. package/dist/cli/init-docs/content/cli-reference.md +6 -1
  119. package/dist/cli/init-docs/content/content-management.md +27 -0
  120. package/dist/client/{accordion-MUCVNGQ7.mjs → accordion-4K7VGZ3I.mjs} +2 -2
  121. package/dist/client/{bookingForm-PKD6EFIE.mjs → bookingForm-3QXA3CIS.mjs} +26 -271
  122. package/dist/client/bookings.mjs +1586 -825
  123. package/dist/client/{carousel-3TKQSNJC.mjs → carousel-BEJKNGQ7.mjs} +3 -3
  124. package/dist/client/{cart-6XHSZK23.mjs → cart-44BBM6XG.mjs} +7 -8
  125. package/dist/client/{checkout-FVSPM6FI.mjs → checkout-THMHEYKF.mjs} +7 -8
  126. package/dist/client/{chunk-25W2EQUN.mjs → chunk-3H5CLFKT.mjs} +8 -0
  127. package/dist/client/{chunk-ZJZZA5EP.mjs → chunk-4COPESPO.mjs} +13 -16
  128. package/dist/client/chunk-5AJIMWKS.mjs +436 -0
  129. package/dist/client/{chunk-UQFY4AHX.mjs → chunk-B4H6QMPY.mjs} +157 -49
  130. package/dist/client/{chunk-VGLXACVK.mjs → chunk-DQIRKNZE.mjs} +1 -1
  131. package/dist/client/{chunk-7DH35FGA.mjs → chunk-EJBHK74Y.mjs} +1 -1
  132. package/dist/client/{chunk-SDIYSQAY.mjs → chunk-HIHOQGIP.mjs} +2 -3
  133. package/dist/client/{chunk-CQKKFEQD.mjs → chunk-JV7ZNAOU.mjs} +378 -111
  134. package/dist/client/{chunk-FHU6PFPM.mjs → chunk-KNTLBQ3N.mjs} +1 -1
  135. package/dist/client/{chunk-RSQWWUAD.mjs → chunk-PEDNDLPB.mjs} +4 -4
  136. package/dist/client/{chunk-EY42X22F.mjs → chunk-SLY6UDAS.mjs} +157 -5
  137. package/dist/client/{chunk-STJ2NCQM.mjs → chunk-WHZQDPBZ.mjs} +19 -1
  138. package/dist/client/{chunk-ZT5XE7FK.mjs → chunk-ZIAF2DA4.mjs} +1 -1
  139. package/dist/client/client.mjs +3552 -2898
  140. package/dist/client/{courseRegistration-ATZSYDHM.mjs → courseRegistration-URX7RCCK.mjs} +20 -58
  141. package/dist/client/{eventCalendar-6T2UGKKP.mjs → eventCalendar-GTENOQCE.mjs} +10 -11
  142. package/dist/client/{eventCombined-Q4VANXVF.mjs → eventCombined-EZVB72MF.mjs} +10 -11
  143. package/dist/client/{eventDetails-DW37E7VW.mjs → eventDetails-CH4BJR5Z.mjs} +10 -11
  144. package/dist/client/{eventListing-XURTSAUW.mjs → eventListing-4BVOI5HS.mjs} +10 -11
  145. package/dist/client/{eventRegistration-MRKEVAXW.mjs → eventRegistration-37LPIKIE.mjs} +10 -11
  146. package/dist/client/{form-WZZFFGMU.mjs → form-FX3Y54YK.mjs} +7 -7
  147. package/dist/client/{headerSection-EQYVQBLM.mjs → headerSection-UOZZGVYL.mjs} +3 -3
  148. package/dist/client/hooks.mjs +1169 -1063
  149. package/dist/client/{locationMap-MFF5VAZR.mjs → locationMap-VSIPKV35.mjs} +3 -3
  150. package/dist/client/{newsletterForm-JQ77UYIE.mjs → newsletterForm-6FRJKNAF.mjs} +5 -5
  151. package/dist/client/{productDetail-25LMT3IZ.mjs → productDetail-6AHMLXCO.mjs} +7 -8
  152. package/dist/client/{productList-5ABEMKUG.mjs → productList-M2CYIZVH.mjs} +7 -8
  153. package/dist/client/rendering/client.mjs +2912 -2316
  154. package/dist/client/rendering/islands.mjs +19 -19
  155. package/dist/client/rendering.mjs +2874 -2230
  156. package/dist/client/{shop-OMMQZ6YO.mjs → shop-AUOT6GEX.mjs} +7 -8
  157. package/dist/client/spam-protection.mjs +4 -5
  158. package/dist/preview-next/before-render.mjs +2 -2
  159. package/dist/preview-next/client/runtime.mjs +5 -5
  160. package/dist/{sdk-runtime-WNLBZ3ZH.mjs → sdk-runtime-6GPJNLU6.mjs} +6 -6
  161. package/dist/server/components.mjs +1856 -1509
  162. package/dist/server/config-validation.mjs +1394 -1288
  163. package/dist/server/config.mjs +1394 -1288
  164. package/dist/server/data.mjs +1169 -1063
  165. package/dist/server/index.mjs +135 -100
  166. package/dist/server/navigation.mjs +20 -30
  167. package/dist/server/next.mjs +1936 -1576
  168. package/dist/server/page-converter.mjs +1081 -967
  169. package/dist/server/prebuild.mjs +1 -1
  170. package/dist/server/rendering/server.mjs +1868 -1521
  171. package/dist/server/rendering.mjs +1878 -1531
  172. package/dist/server/routing.mjs +1248 -1089
  173. package/dist/server/server.mjs +1312 -1171
  174. package/dist/server/theme-bridge.mjs +8 -5
  175. package/package.json +3 -3
  176. package/dist/SdkPreviewModeRuntime-ZBEMRV7N.mjs +0 -8
  177. package/dist/client/chunk-LQFDYWPJ.mjs +0 -184
  178. package/dist/client/chunk-ZFHRN6W2.mjs +0 -66
@@ -21,8 +21,8 @@ export declare const axesSchema: z.ZodObject<{
21
21
  media: "media";
22
22
  }>;
23
23
  conversionBias: z.ZodEnum<{
24
- low: "low";
25
24
  high: "high";
25
+ low: "low";
26
26
  med: "med";
27
27
  }>;
28
28
  motion: z.ZodEnum<{
@@ -1554,8 +1554,8 @@ export declare const shadow: z.ZodObject<{
1554
1554
  elevation: z.ZodEnum<{
1555
1555
  medium: "medium";
1556
1556
  none: "none";
1557
- low: "low";
1558
1557
  high: "high";
1558
+ low: "low";
1559
1559
  }>;
1560
1560
  softness: z.ZodNullable<z.ZodEnum<{
1561
1561
  soft: "soft";
@@ -1582,8 +1582,8 @@ export declare const border: z.ZodObject<{
1582
1582
  export declare const motion: z.ZodObject<{
1583
1583
  level: z.ZodEnum<{
1584
1584
  medium: "medium";
1585
- low: "low";
1586
1585
  high: "high";
1586
+ low: "low";
1587
1587
  off: "off";
1588
1588
  }>;
1589
1589
  easing: z.ZodNullable<z.ZodEnum<{
@@ -1604,8 +1604,8 @@ export declare const cardStyle: z.ZodObject<{
1604
1604
  elevation: z.ZodEnum<{
1605
1605
  medium: "medium";
1606
1606
  none: "none";
1607
- low: "low";
1608
1607
  high: "high";
1608
+ low: "low";
1609
1609
  }>;
1610
1610
  border: z.ZodEnum<{
1611
1611
  none: "none";
@@ -2861,8 +2861,8 @@ export declare const themeSchema: z.ZodObject<{
2861
2861
  media: "media";
2862
2862
  }>;
2863
2863
  conversionBias: z.ZodEnum<{
2864
- low: "low";
2865
2864
  high: "high";
2865
+ low: "low";
2866
2866
  med: "med";
2867
2867
  }>;
2868
2868
  motion: z.ZodEnum<{
@@ -3167,8 +3167,8 @@ export declare const themeSchema: z.ZodObject<{
3167
3167
  elevation: z.ZodEnum<{
3168
3168
  medium: "medium";
3169
3169
  none: "none";
3170
- low: "low";
3171
3170
  high: "high";
3171
+ low: "low";
3172
3172
  }>;
3173
3173
  softness: z.ZodNullable<z.ZodEnum<{
3174
3174
  soft: "soft";
@@ -3183,8 +3183,8 @@ export declare const themeSchema: z.ZodObject<{
3183
3183
  motion: z.ZodObject<{
3184
3184
  level: z.ZodEnum<{
3185
3185
  medium: "medium";
3186
- low: "low";
3187
3186
  high: "high";
3187
+ low: "low";
3188
3188
  off: "off";
3189
3189
  }>;
3190
3190
  easing: z.ZodNullable<z.ZodEnum<{
@@ -4116,8 +4116,8 @@ export declare const themeSchema: z.ZodObject<{
4116
4116
  shadow: z.ZodEnum<{
4117
4117
  medium: "medium";
4118
4118
  none: "none";
4119
- low: "low";
4120
4119
  high: "high";
4120
+ low: "low";
4121
4121
  }>;
4122
4122
  textTransform: z.ZodEnum<{
4123
4123
  none: "none";
@@ -4199,8 +4199,8 @@ export declare const themeSchema: z.ZodObject<{
4199
4199
  elevation: z.ZodEnum<{
4200
4200
  medium: "medium";
4201
4201
  none: "none";
4202
- low: "low";
4203
4202
  high: "high";
4203
+ low: "low";
4204
4204
  }>;
4205
4205
  softness: z.ZodNullable<z.ZodEnum<{
4206
4206
  soft: "soft";
@@ -4347,8 +4347,8 @@ export declare const themeSchema: z.ZodObject<{
4347
4347
  elevation: z.ZodEnum<{
4348
4348
  medium: "medium";
4349
4349
  none: "none";
4350
- low: "low";
4351
4350
  high: "high";
4351
+ low: "low";
4352
4352
  }>;
4353
4353
  softness: z.ZodNullable<z.ZodEnum<{
4354
4354
  soft: "soft";
@@ -4444,8 +4444,8 @@ export declare const themeSchema: z.ZodObject<{
4444
4444
  elevation: z.ZodEnum<{
4445
4445
  medium: "medium";
4446
4446
  none: "none";
4447
- low: "low";
4448
4447
  high: "high";
4448
+ low: "low";
4449
4449
  }>;
4450
4450
  softness: z.ZodNullable<z.ZodEnum<{
4451
4451
  soft: "soft";
@@ -5171,8 +5171,8 @@ export declare const themesTurnSchema: z.ZodObject<{
5171
5171
  media: "media";
5172
5172
  }>;
5173
5173
  conversionBias: z.ZodEnum<{
5174
- low: "low";
5175
5174
  high: "high";
5175
+ low: "low";
5176
5176
  med: "med";
5177
5177
  }>;
5178
5178
  motion: z.ZodEnum<{
@@ -5477,8 +5477,8 @@ export declare const themesTurnSchema: z.ZodObject<{
5477
5477
  elevation: z.ZodEnum<{
5478
5478
  medium: "medium";
5479
5479
  none: "none";
5480
- low: "low";
5481
5480
  high: "high";
5481
+ low: "low";
5482
5482
  }>;
5483
5483
  softness: z.ZodNullable<z.ZodEnum<{
5484
5484
  soft: "soft";
@@ -5493,8 +5493,8 @@ export declare const themesTurnSchema: z.ZodObject<{
5493
5493
  motion: z.ZodObject<{
5494
5494
  level: z.ZodEnum<{
5495
5495
  medium: "medium";
5496
- low: "low";
5497
5496
  high: "high";
5497
+ low: "low";
5498
5498
  off: "off";
5499
5499
  }>;
5500
5500
  easing: z.ZodNullable<z.ZodEnum<{
@@ -6426,8 +6426,8 @@ export declare const themesTurnSchema: z.ZodObject<{
6426
6426
  shadow: z.ZodEnum<{
6427
6427
  medium: "medium";
6428
6428
  none: "none";
6429
- low: "low";
6430
6429
  high: "high";
6430
+ low: "low";
6431
6431
  }>;
6432
6432
  textTransform: z.ZodEnum<{
6433
6433
  none: "none";
@@ -6509,8 +6509,8 @@ export declare const themesTurnSchema: z.ZodObject<{
6509
6509
  elevation: z.ZodEnum<{
6510
6510
  medium: "medium";
6511
6511
  none: "none";
6512
- low: "low";
6513
6512
  high: "high";
6513
+ low: "low";
6514
6514
  }>;
6515
6515
  softness: z.ZodNullable<z.ZodEnum<{
6516
6516
  soft: "soft";
@@ -6657,8 +6657,8 @@ export declare const themesTurnSchema: z.ZodObject<{
6657
6657
  elevation: z.ZodEnum<{
6658
6658
  medium: "medium";
6659
6659
  none: "none";
6660
- low: "low";
6661
6660
  high: "high";
6661
+ low: "low";
6662
6662
  }>;
6663
6663
  softness: z.ZodNullable<z.ZodEnum<{
6664
6664
  soft: "soft";
@@ -6754,8 +6754,8 @@ export declare const themesTurnSchema: z.ZodObject<{
6754
6754
  elevation: z.ZodEnum<{
6755
6755
  medium: "medium";
6756
6756
  none: "none";
6757
- low: "low";
6758
6757
  high: "high";
6758
+ low: "low";
6759
6759
  }>;
6760
6760
  softness: z.ZodNullable<z.ZodEnum<{
6761
6761
  soft: "soft";
@@ -163,8 +163,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
163
163
  }>;
164
164
  emphasis: z.ZodEnum<{
165
165
  medium: "medium";
166
- low: "low";
167
166
  high: "high";
167
+ low: "low";
168
168
  }>;
169
169
  sectionHeight: z.ZodOptional<z.ZodEnum<{
170
170
  default: "default";
@@ -380,8 +380,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
380
380
  }>;
381
381
  emphasis: z.ZodEnum<{
382
382
  medium: "medium";
383
- low: "low";
384
383
  high: "high";
384
+ low: "low";
385
385
  }>;
386
386
  sectionHeight: z.ZodOptional<z.ZodEnum<{
387
387
  default: "default";
@@ -111,8 +111,8 @@ export declare const generatedBlockDesignIntentSchema: z.ZodObject<{
111
111
  kind: z.ZodLiteral<"explicit">;
112
112
  value: z.ZodEnum<{
113
113
  medium: "medium";
114
- low: "low";
115
114
  high: "high";
115
+ low: "low";
116
116
  }>;
117
117
  }, z.core.$strict>], "kind">;
118
118
  }, z.core.$strict>;
@@ -264,8 +264,8 @@ export declare const generatedPageDesignIntentSchema: z.ZodObject<{
264
264
  kind: z.ZodLiteral<"explicit">;
265
265
  value: z.ZodEnum<{
266
266
  medium: "medium";
267
- low: "low";
268
267
  high: "high";
268
+ low: "low";
269
269
  }>;
270
270
  }, z.core.$strict>], "kind">;
271
271
  }, z.core.$strict>;
@@ -42,16 +42,16 @@ export declare const logoContainsTextSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
42
42
  kind: z.ZodLiteral<"contains-text">;
43
43
  confidence: z.ZodEnum<{
44
44
  medium: "medium";
45
- low: "low";
46
45
  high: "high";
46
+ low: "low";
47
47
  }>;
48
48
  text: z.ZodOptional<z.ZodString>;
49
49
  }, z.core.$strip>, z.ZodObject<{
50
50
  kind: z.ZodLiteral<"no-text">;
51
51
  confidence: z.ZodEnum<{
52
52
  medium: "medium";
53
- low: "low";
54
53
  high: "high";
54
+ low: "low";
55
55
  }>;
56
56
  }, z.core.$strip>, z.ZodObject<{
57
57
  kind: z.ZodLiteral<"unknown">;
@@ -88,16 +88,16 @@ export declare const logoFactsSchema: z.ZodObject<{
88
88
  kind: z.ZodLiteral<"contains-text">;
89
89
  confidence: z.ZodEnum<{
90
90
  medium: "medium";
91
- low: "low";
92
91
  high: "high";
92
+ low: "low";
93
93
  }>;
94
94
  text: z.ZodOptional<z.ZodString>;
95
95
  }, z.core.$strip>, z.ZodObject<{
96
96
  kind: z.ZodLiteral<"no-text">;
97
97
  confidence: z.ZodEnum<{
98
98
  medium: "medium";
99
- low: "low";
100
99
  high: "high";
100
+ low: "low";
101
101
  }>;
102
102
  }, z.core.$strip>, z.ZodObject<{
103
103
  kind: z.ZodLiteral<"unknown">;
@@ -0,0 +1,11 @@
1
+ import type { ThemeResponsiveMode } from "./responsiveMode";
2
+ export type ThemeRuntime = {
3
+ kind: "cms-theme";
4
+ responsiveMode?: ThemeResponsiveMode;
5
+ } | {
6
+ kind: "responsive-only";
7
+ responsiveMode?: ThemeResponsiveMode;
8
+ } | {
9
+ kind: "none";
10
+ };
11
+ export type { ThemeResponsiveMode };
@@ -225,7 +225,10 @@ function normalizeDashboardOrigin(input) {
225
225
  }
226
226
  function deriveCmsApiUrlFromDashboardUrl(input) {
227
227
  const origin = normalizeDashboardOrigin(input);
228
- return origin ? `${origin}/api` : "";
228
+ return origin ? normalizeCmsApiBaseUrl(`${origin}/api`) : "";
229
+ }
230
+ function normalizeCmsApiBaseUrl(input) {
231
+ return input.trim().replace(/\/+$/, "").replace(/(?:\/api)+$/i, "/api");
229
232
  }
230
233
  function getDashboardBaseUrl() {
231
234
  const dashboardUrl = process.env.NEXT_PUBLIC_DASHBOARD_URL;
@@ -238,15 +241,16 @@ function getDashboardBaseUrl() {
238
241
  }
239
242
  function getCmsApiUrl() {
240
243
  if (typeof window !== "undefined") {
241
- return "/api";
244
+ return normalizeCmsApiBaseUrl("/api");
242
245
  }
243
246
  const internalUrl = process.env.CMS_API_URL;
244
247
  if (internalUrl) {
245
- return internalUrl.replace(/\/$/, "");
248
+ return normalizeCmsApiBaseUrl(internalUrl);
246
249
  }
247
250
  const dashboardUrl = process.env.NEXT_PUBLIC_DASHBOARD_URL;
248
251
  if (dashboardUrl) {
249
- return deriveCmsApiUrlFromDashboardUrl(dashboardUrl);
252
+ const apiUrl = deriveCmsApiUrlFromDashboardUrl(dashboardUrl);
253
+ if (apiUrl) return apiUrl;
250
254
  }
251
255
  throw new Error(
252
256
  "CMS_API_URL or NEXT_PUBLIC_DASHBOARD_URL is not configured. Set NEXT_PUBLIC_DASHBOARD_URL to your dashboard URL (e.g., http://localhost:4000)"
@@ -6729,7 +6733,6 @@ function getRevalidateTag() {
6729
6733
  }
6730
6734
  return revalidateTag;
6731
6735
  }
6732
- var sdkVersion;
6733
6736
  function generateRequestId() {
6734
6737
  if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
6735
6738
  return crypto.randomUUID();
@@ -6809,6 +6812,24 @@ function serializeQueryValue(value) {
6809
6812
  if (value instanceof Date) return value.toISOString();
6810
6813
  return null;
6811
6814
  }
6815
+ function normalizeHeaders(source) {
6816
+ const normalized = {};
6817
+ if (!source) return normalized;
6818
+ new Headers(source).forEach((value, key) => {
6819
+ normalized[key] = value;
6820
+ });
6821
+ return normalized;
6822
+ }
6823
+ function buildRequestHeaders(input) {
6824
+ const headers = {
6825
+ ...normalizeHeaders(input.optionsHeaders),
6826
+ ...normalizeHeaders(input.authHeaders)
6827
+ };
6828
+ if (input.includeJsonContentType) {
6829
+ headers["Content-Type"] = "application/json";
6830
+ }
6831
+ return headers;
6832
+ }
6812
6833
  function serializePathParam(endpoint, key, value) {
6813
6834
  if (typeof value === "string") {
6814
6835
  return value;
@@ -6944,104 +6965,18 @@ function createRawCMSClient(headers = {}, baseUrl) {
6944
6965
  params,
6945
6966
  options = {}
6946
6967
  }) => {
6947
- const resolvedBaseUrl = baseUrl ?? resolveApiBaseUrl();
6948
- let url = buildEndpointURL(resolvedBaseUrl, endpoint);
6949
- const originalPath = API_ENDPOINTS[endpoint].path;
6950
- const unusedParams = {};
6951
- if (params) {
6952
- Object.entries(params).forEach(([key, value]) => {
6953
- const bracePlaceholder = `{${key}}`;
6954
- const colonPlaceholder = `:${key}`;
6955
- if (originalPath.includes(bracePlaceholder) || originalPath.includes(colonPlaceholder)) {
6956
- const stringValue = serializePathParam(endpoint, key, value);
6957
- url = url.replace(bracePlaceholder, stringValue);
6958
- url = url.replace(colonPlaceholder, stringValue);
6959
- } else {
6960
- unusedParams[key] = value;
6961
- }
6962
- });
6963
- }
6964
- const unresolvedPathParams = [
6965
- ...url.match(/\{[^}]+\}/g) ?? [],
6966
- ...url.match(/(^|\/):([A-Za-z][A-Za-z0-9_]*)\b/g) ?? []
6967
- ];
6968
- if (unresolvedPathParams.length > 0) {
6969
- const missingParams = Array.from(
6970
- new Set(
6971
- unresolvedPathParams.map((token) => {
6972
- if (token.startsWith("{") && token.endsWith("}")) {
6973
- return token.slice(1, -1);
6974
- }
6975
- return token.replace(/^\//, "").slice(1);
6976
- })
6977
- )
6978
- );
6979
- throw new Error(
6980
- `Missing required path params for endpoint ${String(endpoint)}: ${missingParams.join(", ")}`
6981
- );
6982
- }
6983
- const endpointConfig = API_ENDPOINTS[endpoint];
6984
- const method = endpointConfig.method;
6985
- const isGetOrHead = method === "GET" || method === "HEAD";
6986
- const queryParams = new URLSearchParams();
6987
- Object.entries(unusedParams).forEach(([key, value]) => {
6988
- appendQueryParam(queryParams, key, value);
6989
- });
6990
- if (isGetOrHead && typeof body === "object" && body !== null && !isFormDataBody(body)) {
6991
- Object.entries(body).forEach(([key, value]) => {
6992
- appendQueryParam(queryParams, key, value);
6993
- });
6994
- }
6995
- const queryString = queryParams.toString();
6996
- if (queryString) {
6997
- url += (url.includes("?") ? "&" : "?") + queryString;
6998
- }
6999
- const formDataBody = isFormDataBody(body) ? body : void 0;
7000
- const optionsNext = options?.next;
7001
- const nextOptions = { ...optionsNext ?? {} };
7002
- const cacheIsNoStore = options?.cache === "no-store";
7003
- if (cacheIsNoStore) {
7004
- delete nextOptions.revalidate;
7005
- } else if (isGetOrHead && nextOptions.revalidate === void 0 && "revalidate" in endpointConfig && typeof endpointConfig.revalidate === "number") {
7006
- nextOptions.revalidate = endpointConfig.revalidate;
7007
- }
7008
- if ("tags" in endpointConfig && Array.isArray(endpointConfig.tags)) {
7009
- const processedTags = endpointConfig.tags.map((tag) => {
7010
- let processedTag = tag;
7011
- if (params) {
7012
- Object.entries(params).forEach(([key, value]) => {
7013
- processedTag = processedTag.replace(`{${key}}`, String(value));
7014
- });
7015
- }
7016
- return /\{[^}]+\}/.test(processedTag) ? null : processedTag;
7017
- }).filter((tag) => tag !== null);
7018
- nextOptions.tags = Array.from(/* @__PURE__ */ new Set([...nextOptions.tags ?? [], ...processedTags]));
7019
- }
7020
- const requestInit = {
7021
- method,
7022
- ...options,
7023
- // Include credentials for same-origin requests (sends cookies for auth)
7024
- credentials: "same-origin",
7025
- // Don't include body for GET/HEAD requests
7026
- // FormData is pre-narrowed via isFormDataBody() above
7027
- body: isGetOrHead || body == null ? void 0 : formDataBody ?? JSON.stringify(body),
7028
- headers: {
7029
- ...options.headers,
7030
- ...headers,
7031
- // Include SDK version if set
7032
- ...sdkVersion,
7033
- // Don't set Content-Type for GET/HEAD requests without body
7034
- ...isGetOrHead ? {} : formDataBody ? {} : { "Content-Type": "application/json" }
7035
- },
7036
- // Add Next.js caching options
7037
- next: Object.keys(nextOptions).length > 0 ? nextOptions : void 0
7038
- };
7039
- const fetchPromise = fetch(url, requestInit);
7040
- if (!isGetOrHead && "tags" in endpointConfig && Array.isArray(endpointConfig.tags)) {
7041
- const tags = endpointConfig.tags.map((tag) => tag);
6968
+ const plan = buildApiRequestPlan({
6969
+ endpoint,
6970
+ body,
6971
+ params,
6972
+ options,
6973
+ headers,
6974
+ baseUrl: normalizeCmsApiBaseUrl(baseUrl ?? resolveApiBaseUrl())});
6975
+ const fetchPromise = fetch(plan.url, plan.init);
6976
+ if (plan.cacheInvalidationTags) {
7042
6977
  return fetchPromise.then((response) => {
7043
6978
  if (response.ok) {
7044
- invalidateCacheTags(tags, params);
6979
+ invalidateCacheTags(plan.cacheInvalidationTags, params);
7045
6980
  }
7046
6981
  return response;
7047
6982
  });
@@ -7049,6 +6984,99 @@ function createRawCMSClient(headers = {}, baseUrl) {
7049
6984
  return fetchPromise;
7050
6985
  };
7051
6986
  }
6987
+ function buildApiRequestPlan(input) {
6988
+ const { endpoint, body, params, headers = {}, baseUrl } = input;
6989
+ const options = input.options ?? {};
6990
+ let url = buildEndpointURL(baseUrl, endpoint);
6991
+ const originalPath = API_ENDPOINTS[endpoint].path;
6992
+ const unusedParams = {};
6993
+ if (params) {
6994
+ Object.entries(params).forEach(([key, value]) => {
6995
+ const bracePlaceholder = `{${key}}`;
6996
+ const colonPlaceholder = `:${key}`;
6997
+ if (originalPath.includes(bracePlaceholder) || originalPath.includes(colonPlaceholder)) {
6998
+ const stringValue = serializePathParam(endpoint, key, value);
6999
+ url = url.replace(bracePlaceholder, stringValue);
7000
+ url = url.replace(colonPlaceholder, stringValue);
7001
+ } else {
7002
+ unusedParams[key] = value;
7003
+ }
7004
+ });
7005
+ }
7006
+ const unresolvedPathParams = [
7007
+ ...url.match(/\{[^}]+\}/g) ?? [],
7008
+ ...url.match(/(^|\/):([A-Za-z][A-Za-z0-9_]*)\b/g) ?? []
7009
+ ];
7010
+ if (unresolvedPathParams.length > 0) {
7011
+ const missingParams = Array.from(
7012
+ new Set(
7013
+ unresolvedPathParams.map((token) => {
7014
+ if (token.startsWith("{") && token.endsWith("}")) {
7015
+ return token.slice(1, -1);
7016
+ }
7017
+ return token.replace(/^\//, "").slice(1);
7018
+ })
7019
+ )
7020
+ );
7021
+ throw new Error(
7022
+ `Missing required path params for endpoint ${String(endpoint)}: ${missingParams.join(", ")}`
7023
+ );
7024
+ }
7025
+ const endpointConfig = API_ENDPOINTS[endpoint];
7026
+ const method = endpointConfig.method;
7027
+ const isGetOrHead = method === "GET" || method === "HEAD";
7028
+ const queryParams = new URLSearchParams();
7029
+ Object.entries(unusedParams).forEach(([key, value]) => {
7030
+ appendQueryParam(queryParams, key, value);
7031
+ });
7032
+ if (isGetOrHead && typeof body === "object" && body !== null && !isFormDataBody(body)) {
7033
+ Object.entries(body).forEach(([key, value]) => {
7034
+ appendQueryParam(queryParams, key, value);
7035
+ });
7036
+ }
7037
+ const queryString = queryParams.toString();
7038
+ if (queryString) {
7039
+ url += (url.includes("?") ? "&" : "?") + queryString;
7040
+ }
7041
+ const formDataBody = isFormDataBody(body) ? body : void 0;
7042
+ const optionsNext = options?.next;
7043
+ const nextOptions = { ...optionsNext ?? {} };
7044
+ const cacheIsNoStore = options?.cache === "no-store";
7045
+ if (cacheIsNoStore) {
7046
+ delete nextOptions.revalidate;
7047
+ } else if (isGetOrHead && nextOptions.revalidate === void 0 && "revalidate" in endpointConfig && typeof endpointConfig.revalidate === "number") {
7048
+ nextOptions.revalidate = endpointConfig.revalidate;
7049
+ }
7050
+ if ("tags" in endpointConfig && Array.isArray(endpointConfig.tags)) {
7051
+ const processedTags = endpointConfig.tags.map((tag) => {
7052
+ let processedTag = tag;
7053
+ if (params) {
7054
+ Object.entries(params).forEach(([key, value]) => {
7055
+ processedTag = processedTag.replace(`{${key}}`, String(value));
7056
+ });
7057
+ }
7058
+ return /\{[^}]+\}/.test(processedTag) ? null : processedTag;
7059
+ }).filter((tag) => tag !== null);
7060
+ nextOptions.tags = Array.from(/* @__PURE__ */ new Set([...nextOptions.tags ?? [], ...processedTags]));
7061
+ }
7062
+ const init = {
7063
+ method,
7064
+ ...options,
7065
+ credentials: "same-origin",
7066
+ body: isGetOrHead || body == null ? void 0 : formDataBody ?? JSON.stringify(body),
7067
+ headers: buildRequestHeaders({
7068
+ optionsHeaders: options.headers,
7069
+ authHeaders: headers,
7070
+ includeJsonContentType: !isGetOrHead && !formDataBody
7071
+ }),
7072
+ ...Object.keys(nextOptions).length > 0 ? { next: nextOptions } : {}
7073
+ };
7074
+ return {
7075
+ url,
7076
+ init,
7077
+ ...!isGetOrHead && "tags" in endpointConfig && Array.isArray(endpointConfig.tags) ? { cacheInvalidationTags: endpointConfig.tags.map((tag) => tag) } : {}
7078
+ };
7079
+ }
7052
7080
  function createParsedClient(rawClient) {
7053
7081
  return async (params) => {
7054
7082
  const response = await rawClient(params);