@riverbankcms/sdk 0.70.3 → 0.70.4

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 (79) hide show
  1. package/dist/_dts/api/src/contentTypes.d.ts +2 -1
  2. package/dist/_dts/block-form/src/client/index.d.ts +1 -1
  3. package/dist/_dts/block-form/src/fields/types.d.ts +14 -2
  4. package/dist/_dts/block-form/src/registry/schemas.d.ts +2 -0
  5. package/dist/_dts/block-form/src/widgets/MediaField/mediaFieldDefaults.d.ts +2 -2
  6. package/dist/_dts/block-form/src/widgets/MediaField/mediaFieldSchema.d.ts +2 -2
  7. package/dist/_dts/blocks/src/lib/media.d.ts +1 -1
  8. package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1829 -149
  9. package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +1829 -149
  10. package/dist/_dts/blocks/src/system/blocks/cart.d.ts +1829 -149
  11. package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +1829 -149
  12. package/dist/_dts/blocks/src/system/blocks/collection.d.ts +1829 -149
  13. package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +1 -30727
  14. package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +11 -30827
  15. package/dist/_dts/blocks/src/system/blocks/faq.d.ts +1829 -149
  16. package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +3 -3
  17. package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +1829 -149
  18. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +106 -1
  19. package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +1829 -149
  20. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1829 -149
  21. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +1829 -149
  22. package/dist/_dts/blocks/src/system/defineBlock.d.ts +3 -3
  23. package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +2 -30793
  24. package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +2 -30727
  25. package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +2 -30779
  26. package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +33 -30743
  27. package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +2 -30770
  28. package/dist/_dts/blocks/src/system/fragments/types.d.ts +8 -7
  29. package/dist/_dts/blocks/src/system/manifest/derivedContent.d.ts +7 -5
  30. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +1 -1
  31. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +192 -3
  32. package/dist/_dts/blocks/src/system/runtime/nodes/file-download.d.ts +1 -1
  33. package/dist/_dts/content-model/src/content-types/schema.d.ts +7 -0
  34. package/dist/_dts/content-model/src/contentManifest.d.ts +4 -1
  35. package/dist/_dts/content-model/src/templates/bindingTypeCompatibility.d.ts +1 -1
  36. package/dist/_dts/core/src/index.d.ts +1 -1
  37. package/dist/_dts/core/src/planner.d.ts +4 -0
  38. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +53 -20
  39. package/dist/_dts/editor-blocks/src/index.d.ts +1 -1
  40. package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +6 -5
  41. package/dist/_dts/media-core/src/videoSlotPolicy.d.ts +0 -1
  42. package/dist/_dts/media-editor/src/context.d.ts +4 -1
  43. package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +8 -1
  44. package/dist/_dts/media-react/src/index.d.ts +1 -5
  45. package/dist/_dts/preview-next/src/client/widgets/PreviewMediaField.d.ts +2 -1
  46. package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -0
  47. package/dist/_dts/sdk/src/config/field-definitions.d.ts +6 -2
  48. package/dist/_dts/sdk/src/config/typed-entries.d.ts +4 -2
  49. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +2 -1
  50. package/dist/_dts/sdk/src/manifest/prompt/examples/cta.d.ts +5 -5
  51. package/dist/_dts/sdk/src/manifest/prompt/examples/features-grid.d.ts +2 -2
  52. package/dist/_dts/sdk/src/manifest/prompt/examples/hero.d.ts +2 -2
  53. package/dist/_dts/sdk/src/manifest/prompt/examples/pricing.d.ts +10 -10
  54. package/dist/_dts/sdk/src/manifest/prompt/examples/testimonials.d.ts +4 -4
  55. package/dist/_dts/sdk/src/manifest/validation/output-schema.d.ts +11 -1
  56. package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -1
  57. package/dist/_dts/sdk/src/version.d.ts +1 -1
  58. package/dist/cli/index.mjs +395 -190
  59. package/dist/cli/init-docs/content/workflow-preview-mode.md +167 -0
  60. package/dist/client/client.mjs +243 -203
  61. package/dist/client/hooks.mjs +172 -121
  62. package/dist/client/rendering/client.mjs +148 -112
  63. package/dist/client/rendering/islands.mjs +80 -31
  64. package/dist/client/rendering.mjs +242 -202
  65. package/dist/preview-next/client/runtime.mjs +386 -1135
  66. package/dist/server/components.mjs +219 -171
  67. package/dist/server/config-template-validation.mjs +31 -1
  68. package/dist/server/config-validation.mjs +172 -121
  69. package/dist/server/config.mjs +172 -121
  70. package/dist/server/data.mjs +172 -121
  71. package/dist/server/index.mjs +1 -1
  72. package/dist/server/next.mjs +220 -172
  73. package/dist/server/page-converter.mjs +379 -185
  74. package/dist/server/prebuild.mjs +1 -1
  75. package/dist/server/rendering/server.mjs +219 -171
  76. package/dist/server/rendering.mjs +219 -171
  77. package/dist/server/routing.mjs +175 -124
  78. package/dist/server/server.mjs +173 -122
  79. package/package.json +2 -1
@@ -6022,40 +6022,13 @@ var init_file_headphone = __esm({
6022
6022
  }
6023
6023
  });
6024
6024
 
6025
- // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/file-play.js
6026
- var __iconNode17, FilePlay;
6027
- var init_file_play = __esm({
6028
- "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/file-play.js"() {
6029
- "use strict";
6030
- init_createLucideIcon();
6031
- __iconNode17 = [
6032
- [
6033
- "path",
6034
- {
6035
- d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
6036
- key: "1oefj6"
6037
- }
6038
- ],
6039
- ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
6040
- [
6041
- "path",
6042
- {
6043
- d: "M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",
6044
- key: "1tzo1f"
6045
- }
6046
- ]
6047
- ];
6048
- FilePlay = createLucideIcon("file-play", __iconNode17);
6049
- }
6050
- });
6051
-
6052
6025
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js
6053
- var __iconNode18, FileSpreadsheet;
6026
+ var __iconNode17, FileSpreadsheet;
6054
6027
  var init_file_spreadsheet = __esm({
6055
6028
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js"() {
6056
6029
  "use strict";
6057
6030
  init_createLucideIcon();
6058
- __iconNode18 = [
6031
+ __iconNode17 = [
6059
6032
  [
6060
6033
  "path",
6061
6034
  {
@@ -6069,17 +6042,17 @@ var init_file_spreadsheet = __esm({
6069
6042
  ["path", { d: "M8 17h2", key: "2yhykz" }],
6070
6043
  ["path", { d: "M14 17h2", key: "10kma7" }]
6071
6044
  ];
6072
- FileSpreadsheet = createLucideIcon("file-spreadsheet", __iconNode18);
6045
+ FileSpreadsheet = createLucideIcon("file-spreadsheet", __iconNode17);
6073
6046
  }
6074
6047
  });
6075
6048
 
6076
6049
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/file-text.js
6077
- var __iconNode19, FileText;
6050
+ var __iconNode18, FileText;
6078
6051
  var init_file_text = __esm({
6079
6052
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/file-text.js"() {
6080
6053
  "use strict";
6081
6054
  init_createLucideIcon();
6082
- __iconNode19 = [
6055
+ __iconNode18 = [
6083
6056
  [
6084
6057
  "path",
6085
6058
  {
@@ -6092,46 +6065,46 @@ var init_file_text = __esm({
6092
6065
  ["path", { d: "M16 13H8", key: "t4e002" }],
6093
6066
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
6094
6067
  ];
6095
- FileText = createLucideIcon("file-text", __iconNode19);
6068
+ FileText = createLucideIcon("file-text", __iconNode18);
6096
6069
  }
6097
6070
  });
6098
6071
 
6099
6072
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/info.js
6100
- var __iconNode20, Info;
6073
+ var __iconNode19, Info;
6101
6074
  var init_info = __esm({
6102
6075
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/info.js"() {
6103
6076
  "use strict";
6104
6077
  init_createLucideIcon();
6105
- __iconNode20 = [
6078
+ __iconNode19 = [
6106
6079
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
6107
6080
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
6108
6081
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
6109
6082
  ];
6110
- Info = createLucideIcon("info", __iconNode20);
6083
+ Info = createLucideIcon("info", __iconNode19);
6111
6084
  }
6112
6085
  });
6113
6086
 
6114
6087
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/mail.js
6115
- var __iconNode21, Mail;
6088
+ var __iconNode20, Mail;
6116
6089
  var init_mail = __esm({
6117
6090
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/mail.js"() {
6118
6091
  "use strict";
6119
6092
  init_createLucideIcon();
6120
- __iconNode21 = [
6093
+ __iconNode20 = [
6121
6094
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
6122
6095
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
6123
6096
  ];
6124
- Mail = createLucideIcon("mail", __iconNode21);
6097
+ Mail = createLucideIcon("mail", __iconNode20);
6125
6098
  }
6126
6099
  });
6127
6100
 
6128
6101
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/map-pin.js
6129
- var __iconNode22, MapPin;
6102
+ var __iconNode21, MapPin;
6130
6103
  var init_map_pin = __esm({
6131
6104
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/map-pin.js"() {
6132
6105
  "use strict";
6133
6106
  init_createLucideIcon();
6134
- __iconNode22 = [
6107
+ __iconNode21 = [
6135
6108
  [
6136
6109
  "path",
6137
6110
  {
@@ -6141,28 +6114,28 @@ var init_map_pin = __esm({
6141
6114
  ],
6142
6115
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
6143
6116
  ];
6144
- MapPin = createLucideIcon("map-pin", __iconNode22);
6117
+ MapPin = createLucideIcon("map-pin", __iconNode21);
6145
6118
  }
6146
6119
  });
6147
6120
 
6148
6121
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/minus.js
6149
- var __iconNode23, Minus;
6122
+ var __iconNode22, Minus;
6150
6123
  var init_minus = __esm({
6151
6124
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/minus.js"() {
6152
6125
  "use strict";
6153
6126
  init_createLucideIcon();
6154
- __iconNode23 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
6155
- Minus = createLucideIcon("minus", __iconNode23);
6127
+ __iconNode22 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
6128
+ Minus = createLucideIcon("minus", __iconNode22);
6156
6129
  }
6157
6130
  });
6158
6131
 
6159
6132
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/phone.js
6160
- var __iconNode24, Phone;
6133
+ var __iconNode23, Phone;
6161
6134
  var init_phone = __esm({
6162
6135
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/phone.js"() {
6163
6136
  "use strict";
6164
6137
  init_createLucideIcon();
6165
- __iconNode24 = [
6138
+ __iconNode23 = [
6166
6139
  [
6167
6140
  "path",
6168
6141
  {
@@ -6171,17 +6144,17 @@ var init_phone = __esm({
6171
6144
  }
6172
6145
  ]
6173
6146
  ];
6174
- Phone = createLucideIcon("phone", __iconNode24);
6147
+ Phone = createLucideIcon("phone", __iconNode23);
6175
6148
  }
6176
6149
  });
6177
6150
 
6178
6151
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/play.js
6179
- var __iconNode25, Play;
6152
+ var __iconNode24, Play;
6180
6153
  var init_play = __esm({
6181
6154
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/play.js"() {
6182
6155
  "use strict";
6183
6156
  init_createLucideIcon();
6184
- __iconNode25 = [
6157
+ __iconNode24 = [
6185
6158
  [
6186
6159
  "path",
6187
6160
  {
@@ -6190,31 +6163,31 @@ var init_play = __esm({
6190
6163
  }
6191
6164
  ]
6192
6165
  ];
6193
- Play = createLucideIcon("play", __iconNode25);
6166
+ Play = createLucideIcon("play", __iconNode24);
6194
6167
  }
6195
6168
  });
6196
6169
 
6197
6170
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/plus.js
6198
- var __iconNode26, Plus;
6171
+ var __iconNode25, Plus;
6199
6172
  var init_plus = __esm({
6200
6173
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/plus.js"() {
6201
6174
  "use strict";
6202
6175
  init_createLucideIcon();
6203
- __iconNode26 = [
6176
+ __iconNode25 = [
6204
6177
  ["path", { d: "M5 12h14", key: "1ays0h" }],
6205
6178
  ["path", { d: "M12 5v14", key: "s699le" }]
6206
6179
  ];
6207
- Plus = createLucideIcon("plus", __iconNode26);
6180
+ Plus = createLucideIcon("plus", __iconNode25);
6208
6181
  }
6209
6182
  });
6210
6183
 
6211
6184
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/shopping-cart.js
6212
- var __iconNode27, ShoppingCart;
6185
+ var __iconNode26, ShoppingCart;
6213
6186
  var init_shopping_cart = __esm({
6214
6187
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/shopping-cart.js"() {
6215
6188
  "use strict";
6216
6189
  init_createLucideIcon();
6217
- __iconNode27 = [
6190
+ __iconNode26 = [
6218
6191
  ["circle", { cx: "8", cy: "21", r: "1", key: "jimo8o" }],
6219
6192
  ["circle", { cx: "19", cy: "21", r: "1", key: "13723u" }],
6220
6193
  [
@@ -6225,17 +6198,17 @@ var init_shopping_cart = __esm({
6225
6198
  }
6226
6199
  ]
6227
6200
  ];
6228
- ShoppingCart = createLucideIcon("shopping-cart", __iconNode27);
6201
+ ShoppingCart = createLucideIcon("shopping-cart", __iconNode26);
6229
6202
  }
6230
6203
  });
6231
6204
 
6232
6205
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/sparkles.js
6233
- var __iconNode28, Sparkles;
6206
+ var __iconNode27, Sparkles;
6234
6207
  var init_sparkles = __esm({
6235
6208
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/sparkles.js"() {
6236
6209
  "use strict";
6237
6210
  init_createLucideIcon();
6238
- __iconNode28 = [
6211
+ __iconNode27 = [
6239
6212
  [
6240
6213
  "path",
6241
6214
  {
@@ -6247,17 +6220,17 @@ var init_sparkles = __esm({
6247
6220
  ["path", { d: "M22 4h-4", key: "gwowj6" }],
6248
6221
  ["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
6249
6222
  ];
6250
- Sparkles = createLucideIcon("sparkles", __iconNode28);
6223
+ Sparkles = createLucideIcon("sparkles", __iconNode27);
6251
6224
  }
6252
6225
  });
6253
6226
 
6254
6227
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/star.js
6255
- var __iconNode29, Star;
6228
+ var __iconNode28, Star;
6256
6229
  var init_star = __esm({
6257
6230
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/star.js"() {
6258
6231
  "use strict";
6259
6232
  init_createLucideIcon();
6260
- __iconNode29 = [
6233
+ __iconNode28 = [
6261
6234
  [
6262
6235
  "path",
6263
6236
  {
@@ -6266,17 +6239,17 @@ var init_star = __esm({
6266
6239
  }
6267
6240
  ]
6268
6241
  ];
6269
- Star = createLucideIcon("star", __iconNode29);
6242
+ Star = createLucideIcon("star", __iconNode28);
6270
6243
  }
6271
6244
  });
6272
6245
 
6273
6246
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/ticket.js
6274
- var __iconNode30, Ticket;
6247
+ var __iconNode29, Ticket;
6275
6248
  var init_ticket = __esm({
6276
6249
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/ticket.js"() {
6277
6250
  "use strict";
6278
6251
  init_createLucideIcon();
6279
- __iconNode30 = [
6252
+ __iconNode29 = [
6280
6253
  [
6281
6254
  "path",
6282
6255
  {
@@ -6288,36 +6261,36 @@ var init_ticket = __esm({
6288
6261
  ["path", { d: "M13 17v2", key: "1ont0d" }],
6289
6262
  ["path", { d: "M13 11v2", key: "1wjjxi" }]
6290
6263
  ];
6291
- Ticket = createLucideIcon("ticket", __iconNode30);
6264
+ Ticket = createLucideIcon("ticket", __iconNode29);
6292
6265
  }
6293
6266
  });
6294
6267
 
6295
6268
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/upload.js
6296
- var __iconNode31, Upload;
6269
+ var __iconNode30, Upload;
6297
6270
  var init_upload = __esm({
6298
6271
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/upload.js"() {
6299
6272
  "use strict";
6300
6273
  init_createLucideIcon();
6301
- __iconNode31 = [
6274
+ __iconNode30 = [
6302
6275
  ["path", { d: "M12 3v12", key: "1x0j5s" }],
6303
6276
  ["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
6304
6277
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
6305
6278
  ];
6306
- Upload = createLucideIcon("upload", __iconNode31);
6279
+ Upload = createLucideIcon("upload", __iconNode30);
6307
6280
  }
6308
6281
  });
6309
6282
 
6310
6283
  // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/x.js
6311
- var __iconNode32, X;
6284
+ var __iconNode31, X;
6312
6285
  var init_x = __esm({
6313
6286
  "../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/x.js"() {
6314
6287
  "use strict";
6315
6288
  init_createLucideIcon();
6316
- __iconNode32 = [
6289
+ __iconNode31 = [
6317
6290
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
6318
6291
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
6319
6292
  ];
6320
- X = createLucideIcon("x", __iconNode32);
6293
+ X = createLucideIcon("x", __iconNode31);
6321
6294
  }
6322
6295
  });
6323
6296
 
@@ -6328,7 +6301,6 @@ var init_lucide_react = __esm({
6328
6301
  init_circle_minus();
6329
6302
  init_circle_plus();
6330
6303
  init_file_headphone();
6331
- init_file_play();
6332
6304
  init_sparkles();
6333
6305
  init_arrow_down();
6334
6306
  init_arrow_left();
@@ -6528,8 +6500,7 @@ var init_media2 = __esm({
6528
6500
  "document",
6529
6501
  "spreadsheet",
6530
6502
  "archive",
6531
- "audio",
6532
- "video"
6503
+ "audio"
6533
6504
  ];
6534
6505
  hotspotSchema = z6.object({
6535
6506
  x: z6.number().min(0).max(1),
@@ -6617,8 +6588,6 @@ function iconForMediaType(type) {
6617
6588
  switch (type) {
6618
6589
  case "audio":
6619
6590
  return /* @__PURE__ */ jsx13(FileHeadphone, { "aria-hidden": "true" });
6620
- case "video":
6621
- return /* @__PURE__ */ jsx13(FilePlay, { "aria-hidden": "true" });
6622
6591
  case "document":
6623
6592
  return /* @__PURE__ */ jsx13(FileText, { "aria-hidden": "true" });
6624
6593
  case "spreadsheet":
@@ -6657,8 +6626,22 @@ function FileDownloadNode({
6657
6626
  }
6658
6627
  ),
6659
6628
  /* @__PURE__ */ jsxs("div", { className: "rb-min-w-0 rb-space-y-1", children: [
6660
- /* @__PURE__ */ jsx13("h2", { className: "rb-m-0 rb-text-lg rb-font-semibold", style: textColorStyle("heading"), children: heading }),
6661
- body ? /* @__PURE__ */ jsx13("p", { className: "rb-m-0 rb-text-sm", style: textColorStyle("mutedText"), children: body }) : null,
6629
+ /* @__PURE__ */ jsx13(
6630
+ "h2",
6631
+ {
6632
+ className: "rb-m-0 rb-text-lg rb-font-semibold",
6633
+ style: textColorStyle("heading"),
6634
+ children: heading
6635
+ }
6636
+ ),
6637
+ body ? /* @__PURE__ */ jsx13(
6638
+ "p",
6639
+ {
6640
+ className: "rb-m-0 rb-text-sm",
6641
+ style: textColorStyle("mutedText"),
6642
+ children: body
6643
+ }
6644
+ ) : null,
6662
6645
  /* @__PURE__ */ jsx13(
6663
6646
  "p",
6664
6647
  {
@@ -6696,7 +6679,12 @@ var init_file_download = __esm({
6696
6679
  init_media2();
6697
6680
  init_buttons();
6698
6681
  init_media();
6699
- FILE_DOWNLOAD_BUTTON_VARIANTS = ["primary", "secondary", "outline", "link"];
6682
+ FILE_DOWNLOAD_BUTTON_VARIANTS = [
6683
+ "primary",
6684
+ "secondary",
6685
+ "outline",
6686
+ "link"
6687
+ ];
6700
6688
  }
6701
6689
  });
6702
6690
 
@@ -17471,6 +17459,9 @@ var init_repeaterGrid = __esm({
17471
17459
 
17472
17460
  // ../blocks/src/system/manifest/schema.ts
17473
17461
  import { z as z32 } from "zod";
17462
+ function isDisplayMediaKind(kind) {
17463
+ return DISPLAY_MEDIA_KINDS.includes(kind);
17464
+ }
17474
17465
  function assertNeverSelectSource(value) {
17475
17466
  throw new Error(`Unhandled select source: ${JSON.stringify(value)}`);
17476
17467
  }
@@ -17482,6 +17473,7 @@ function getFieldSchemaInternal() {
17482
17473
  textFieldSchema,
17483
17474
  richTextFieldSchema,
17484
17475
  mediaFieldSchema,
17476
+ fileFieldSchema,
17485
17477
  booleanFieldSchema,
17486
17478
  numberFieldSchema,
17487
17479
  dateFieldSchema,
@@ -17530,7 +17522,7 @@ function createSiteOptionSelectField(input) {
17530
17522
  })
17531
17523
  );
17532
17524
  }
17533
- var visibilityLevels, siteOptionSources, mediaDeliverySchema, selectOptionSchema, selectSourceSchema, uiSchema, baseFieldSchema, textFieldSchema, richTextFieldSchema, mediaFieldSchema, booleanFieldSchema, dateFieldSchema, timeFieldSchema, dateTimeFieldSchema, slugFieldSchema, urlFieldSchema, linkFieldSchema, selectFieldSchema, referenceFieldSchema, itemTypeSchema, repeaterFieldSchema, groupFieldSchema, modalFieldSchema, numberFieldSchema, tabDefinitionSchema, tabGroupFieldSchema, presetOptionSchema, presetOrCustomFieldSchema, contentTypeSelectFieldSchema, entryPickerFieldSchema, _fieldSchemaInternal, fieldSchema, slotSchema, typographyTokens, colorTokens, spacingTokens, radiusTokens, styleTokenSchema, behaviourSchema, blockCategoryEnum, manifestSchema;
17525
+ var visibilityLevels, MEDIA_KINDS, DISPLAY_MEDIA_KINDS, PUBLIC_FILE_FIELD_KINDS, siteOptionSources, mediaDeliverySchema, selectOptionSchema, selectSourceSchema, uiSchema, baseFieldSchema, textFieldSchema, richTextFieldSchema, mediaFieldSchema, fileFieldSchema, booleanFieldSchema, dateFieldSchema, timeFieldSchema, dateTimeFieldSchema, slugFieldSchema, urlFieldSchema, linkFieldSchema, selectFieldSchema, referenceFieldSchema, itemTypeSchema, repeaterFieldSchema, groupFieldSchema, modalFieldSchema, numberFieldSchema, tabDefinitionSchema, tabGroupFieldSchema, presetOptionSchema, presetOrCustomFieldSchema, contentTypeSelectFieldSchema, entryPickerFieldSchema, _fieldSchemaInternal, fieldSchema, slotSchema, typographyTokens, colorTokens, spacingTokens, radiusTokens, styleTokenSchema, behaviourSchema, blockCategoryEnum, manifestSchema;
17534
17526
  var init_schema3 = __esm({
17535
17527
  "../blocks/src/system/manifest/schema.ts"() {
17536
17528
  "use strict";
@@ -17538,6 +17530,25 @@ var init_schema3 = __esm({
17538
17530
  init_node();
17539
17531
  init_repeaterGrid();
17540
17532
  visibilityLevels = ["admin", "designer", "author"];
17533
+ MEDIA_KINDS = [
17534
+ "image",
17535
+ "video",
17536
+ "audio",
17537
+ "document",
17538
+ "spreadsheet",
17539
+ "archive"
17540
+ ];
17541
+ DISPLAY_MEDIA_KINDS = [
17542
+ "image",
17543
+ "video",
17544
+ "audio"
17545
+ ];
17546
+ PUBLIC_FILE_FIELD_KINDS = [
17547
+ "document",
17548
+ "spreadsheet",
17549
+ "archive",
17550
+ "audio"
17551
+ ];
17541
17552
  siteOptionSources = [
17542
17553
  "eventCategories",
17543
17554
  "venues",
@@ -17698,11 +17709,19 @@ var init_schema3 = __esm({
17698
17709
  });
17699
17710
  mediaFieldSchema = baseFieldSchema.extend({
17700
17711
  type: z32.literal("media"),
17701
- mediaKinds: z32.array(
17702
- z32.enum(["image", "video", "audio", "document", "spreadsheet", "archive"])
17703
- ).default(["image"]),
17712
+ // Keep full MEDIA_KINDS parse compatibility for pre-file-field manifests.
17713
+ // New authoring surfaces should use `file.fileKinds` for document/archive
17714
+ // style assets, but old saved schemas must not fail to open.
17715
+ mediaKinds: z32.array(z32.enum(MEDIA_KINDS)).default(["image"]).transform((kinds) => {
17716
+ const displayKinds = kinds.filter(isDisplayMediaKind);
17717
+ return displayKinds.length > 0 ? displayKinds : ["image"];
17718
+ }),
17704
17719
  aspectRatio: z32.string().optional()
17705
17720
  });
17721
+ fileFieldSchema = baseFieldSchema.extend({
17722
+ type: z32.literal("file"),
17723
+ fileKinds: z32.array(z32.enum(PUBLIC_FILE_FIELD_KINDS)).default([...PUBLIC_FILE_FIELD_KINDS])
17724
+ });
17706
17725
  booleanFieldSchema = baseFieldSchema.extend({
17707
17726
  type: z32.literal("boolean")
17708
17727
  });
@@ -18116,13 +18135,19 @@ function defineFragment(config) {
18116
18135
  function scopeFragmentFields(fragment, scope) {
18117
18136
  const normalizedScope = scope.trim();
18118
18137
  if (!normalizedScope) {
18119
- return fragment.fields.map((field) => cloneFieldDefinition2(field));
18138
+ return fragment.fields.map(
18139
+ (field) => cloneFieldDefinition2(field)
18140
+ );
18120
18141
  }
18121
- return fragment.fields.map((field) => prefixFieldId(field, normalizedScope));
18142
+ return fragment.fields.map(
18143
+ (field) => prefixFieldId(field, normalizedScope)
18144
+ );
18122
18145
  }
18123
18146
  function scopeFragmentLayout(fragment, scope) {
18124
18147
  const normalizedScope = scope.trim();
18125
- return fragment.layout.map((node) => cloneAndScopeNode(node, normalizedScope));
18148
+ return fragment.layout.map(
18149
+ (node) => cloneAndScopeNode(node, normalizedScope)
18150
+ );
18126
18151
  }
18127
18152
  function validateFieldDefinitions(fields, fragmentId) {
18128
18153
  const seen = /* @__PURE__ */ new Set();
@@ -18204,7 +18229,9 @@ function cloneAndScopeNode(node, scope) {
18204
18229
  ...node
18205
18230
  };
18206
18231
  if (node.children) {
18207
- cloned.children = node.children.map((child) => cloneAndScopeNode(child, scope));
18232
+ cloned.children = node.children.map(
18233
+ (child) => cloneAndScopeNode(child, scope)
18234
+ );
18208
18235
  }
18209
18236
  if (node.props) {
18210
18237
  cloned.props = scopePropBindings(node.props, scope);
@@ -18230,7 +18257,9 @@ function scopeBinding(binding, scope) {
18230
18257
  const cloned = {
18231
18258
  ...binding,
18232
18259
  transforms: binding.transforms?.map(
18233
- (step) => ({ ...step })
18260
+ (step) => ({
18261
+ ...step
18262
+ })
18234
18263
  ) ?? []
18235
18264
  };
18236
18265
  cloned.from = scopeContentPath(binding.from, scope);
@@ -18274,7 +18303,9 @@ function scopePropValue(value, scope) {
18274
18303
  };
18275
18304
  }
18276
18305
  const result = {};
18277
- for (const [key, entry] of Object.entries(value)) {
18306
+ for (const [key, entry] of Object.entries(
18307
+ value
18308
+ )) {
18278
18309
  result[key] = scopePropValue(entry, scope);
18279
18310
  }
18280
18311
  return result;
@@ -18321,13 +18352,18 @@ var init_types15 = __esm({
18321
18352
  loader: dataLoaderSchema.optional()
18322
18353
  });
18323
18354
  fragmentConfigSchema = z33.object({
18324
- id: z33.string().min(1, "Fragment id is required").regex(FRAGMENT_ID_PATTERN, "Fragment id must be alphanumeric with optional . _ - separators"),
18355
+ id: z33.string().min(1, "Fragment id is required").regex(
18356
+ FRAGMENT_ID_PATTERN,
18357
+ "Fragment id must be alphanumeric with optional . _ - separators"
18358
+ ),
18325
18359
  title: z33.string().optional(),
18326
18360
  description: z33.string().optional(),
18327
18361
  category: z33.enum(["content", "media", "interactive", "layout"]).optional(),
18328
18362
  icon: z33.string().optional(),
18329
18363
  fields: fieldSchema.array().default([]),
18330
- layout: z33.union([NodeSchema, NodeSchema.array()]).transform((value) => Array.isArray(value) ? value : [value]),
18364
+ layout: z33.union([NodeSchema, NodeSchema.array()]).transform(
18365
+ (value) => Array.isArray(value) ? value : [value]
18366
+ ),
18331
18367
  data: fragmentDataSchema.optional()
18332
18368
  });
18333
18369
  FragmentConfigError = class extends Error {
@@ -18677,35 +18713,36 @@ var init_ctaRow2 = __esm({
18677
18713
  });
18678
18714
 
18679
18715
  // ../blocks/src/system/fragments/library/heroCtaRow.ts
18680
- var heroCtaRowFragment;
18716
+ var heroCtaFields, heroCtaRowFragment;
18681
18717
  var init_heroCtaRow = __esm({
18682
18718
  "../blocks/src/system/fragments/library/heroCtaRow.ts"() {
18683
18719
  "use strict";
18684
18720
  init_types15();
18685
18721
  init_fragments();
18686
18722
  init_ctas();
18723
+ heroCtaFields = [
18724
+ createCtasRepeater({
18725
+ label: "Calls to action",
18726
+ itemLabel: "CTA",
18727
+ maxItems: 3,
18728
+ button: {
18729
+ variants: [
18730
+ { value: "default", label: "Default" },
18731
+ { value: "primary", label: "Primary" },
18732
+ { value: "secondary", label: "Secondary" },
18733
+ { value: "outline", label: "Outline" }
18734
+ ],
18735
+ defaultVariant: "default",
18736
+ includeSize: true,
18737
+ defaultSize: "lg"
18738
+ }
18739
+ })
18740
+ ];
18687
18741
  heroCtaRowFragment = defineFragment({
18688
18742
  id: "heroCtaRow",
18689
18743
  title: "Hero CTAs",
18690
18744
  description: "Repeatable hero calls to action rendered inline.",
18691
- fields: [
18692
- createCtasRepeater({
18693
- label: "Calls to action",
18694
- itemLabel: "CTA",
18695
- maxItems: 3,
18696
- button: {
18697
- variants: [
18698
- { value: "default", label: "Default" },
18699
- { value: "primary", label: "Primary" },
18700
- { value: "secondary", label: "Secondary" },
18701
- { value: "outline", label: "Outline" }
18702
- ],
18703
- defaultVariant: "default",
18704
- includeSize: true,
18705
- defaultSize: "lg"
18706
- }
18707
- })
18708
- ],
18745
+ fields: heroCtaFields,
18709
18746
  layout: [
18710
18747
  ctaRow({
18711
18748
  collectionPath: "content.ctas",
@@ -52576,7 +52613,6 @@ lucide-react/dist/esm/icons/download.js:
52576
52613
  lucide-react/dist/esm/icons/external-link.js:
52577
52614
  lucide-react/dist/esm/icons/file-archive.js:
52578
52615
  lucide-react/dist/esm/icons/file-headphone.js:
52579
- lucide-react/dist/esm/icons/file-play.js:
52580
52616
  lucide-react/dist/esm/icons/file-spreadsheet.js:
52581
52617
  lucide-react/dist/esm/icons/file-text.js:
52582
52618
  lucide-react/dist/esm/icons/info.js: