@krizaka/ui 3.86.0 → 4.0.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 (655) hide show
  1. package/README.md +14 -14
  2. package/dist/account-menu.d.ts +1 -1
  3. package/dist/account-menu.js +1 -1
  4. package/dist/account-settings.d.ts +1 -1
  5. package/dist/account-settings.js +1 -1
  6. package/dist/achievement.d.ts +2 -2
  7. package/dist/achievement.js +1 -1
  8. package/dist/achievement.js.map +1 -1
  9. package/dist/activity-feed.d.ts +4 -4
  10. package/dist/activity-feed.js +11 -5
  11. package/dist/activity-feed.js.map +1 -1
  12. package/dist/app-frame.d.ts +4 -4
  13. package/dist/app-frame.js.map +1 -1
  14. package/dist/app-header.d.ts +2 -2
  15. package/dist/app-header.js.map +1 -1
  16. package/dist/app-shell.d.ts +1 -1
  17. package/dist/app-shell.js +1 -1
  18. package/dist/app-shell.js.map +1 -1
  19. package/dist/auth-layout.d.ts +1 -1
  20. package/dist/auth-layout.js.map +1 -1
  21. package/dist/avatar/defaults.d.ts +2 -2
  22. package/dist/avatar/defaults.js +4 -4
  23. package/dist/avatar/defaults.js.map +1 -1
  24. package/dist/{avatar-CNV6ld8l.d.ts → avatar-Cd2uJgRh.d.ts} +2 -2
  25. package/dist/avatar.d.ts +3 -3
  26. package/dist/avatar.js +4 -4
  27. package/dist/avatar.js.map +1 -1
  28. package/dist/bird-plate.d.ts +1 -1
  29. package/dist/bird-plate.js +1 -1
  30. package/dist/blocks.css +5 -5
  31. package/dist/card-grid.d.ts +1 -1
  32. package/dist/card-grid.js.map +1 -1
  33. package/dist/changelog-page.d.ts +1 -1
  34. package/dist/changelog-page.js +18 -6
  35. package/dist/changelog-page.js.map +1 -1
  36. package/dist/chat.js +1 -1
  37. package/dist/chip.js +1 -1
  38. package/dist/choice-grid.d.ts +2 -2
  39. package/dist/choice-grid.js +1 -1
  40. package/dist/choice-grid.js.map +1 -1
  41. package/dist/{chunk-RCHKIOVV.js → chunk-2DHL7NJW.js} +2 -2
  42. package/dist/chunk-2DHL7NJW.js.map +1 -0
  43. package/dist/{chunk-TN5JJ6JI.js → chunk-2YBG4ZCY.js} +23 -2
  44. package/dist/{chunk-TN5JJ6JI.js.map → chunk-2YBG4ZCY.js.map} +1 -1
  45. package/dist/{chunk-6KZDARNX.js → chunk-54WTUZWE.js} +16 -12
  46. package/dist/chunk-54WTUZWE.js.map +1 -0
  47. package/dist/{chunk-DSDFXPL6.js → chunk-757ZTGU5.js} +2 -2
  48. package/dist/chunk-CDNOT2KR.js +310 -0
  49. package/dist/chunk-CDNOT2KR.js.map +1 -0
  50. package/dist/{chunk-IOTY5HYG.js → chunk-EOWV6BNQ.js} +4 -4
  51. package/dist/chunk-EOWV6BNQ.js.map +1 -0
  52. package/dist/{chunk-DRTIE44Z.js → chunk-FM42KOAU.js} +2 -2
  53. package/dist/chunk-FM42KOAU.js.map +1 -0
  54. package/dist/{chunk-CEW3LQOZ.js → chunk-IEGTRCDI.js} +5 -5
  55. package/dist/{chunk-KVDB4GXV.js → chunk-KR2W4ONJ.js} +2 -2
  56. package/dist/{chunk-TPITVAUW.js → chunk-LH5J3VLZ.js} +1 -1
  57. package/dist/{chunk-TPITVAUW.js.map → chunk-LH5J3VLZ.js.map} +1 -1
  58. package/dist/{chunk-E46AEUPH.js → chunk-PK3L6WQT.js} +4 -4
  59. package/dist/chunk-PK3L6WQT.js.map +1 -0
  60. package/dist/{chunk-GOGEYAYK.js → chunk-PRD7JRQX.js} +3 -3
  61. package/dist/{chunk-VYZFQE3P.js → chunk-QD6SNXF5.js} +2 -2
  62. package/dist/{chunk-M3T5RQYV.js → chunk-SB5WSVPI.js} +1 -1
  63. package/dist/chunk-SB5WSVPI.js.map +1 -0
  64. package/dist/{chunk-UYGUSYIC.js → chunk-SNSQLGGS.js} +1 -1
  65. package/dist/{chunk-BQ4EOR2O.js.map → chunk-SNSQLGGS.js.map} +1 -1
  66. package/dist/{chunk-YQWYGQTV.js → chunk-UIP3WX5O.js} +2 -2
  67. package/dist/{chunk-EHTXLZSM.js → chunk-VS3MWRBX.js} +1 -1
  68. package/dist/{chunk-EHTXLZSM.js.map → chunk-VS3MWRBX.js.map} +1 -1
  69. package/dist/{chunk-BQ4EOR2O.js → chunk-XWJDBQU7.js} +1 -1
  70. package/dist/{chunk-UYGUSYIC.js.map → chunk-XWJDBQU7.js.map} +1 -1
  71. package/dist/{chunk-ZKKMYIDN.js → chunk-Y3P5B4XS.js} +2 -2
  72. package/dist/{chunk-GW5EI7MI.js → chunk-YXETEQQJ.js} +3 -3
  73. package/dist/{chunk-FZBWEDQI.js → chunk-ZSCNMFE6.js} +1 -1
  74. package/dist/{chunk-FZBWEDQI.js.map → chunk-ZSCNMFE6.js.map} +1 -1
  75. package/dist/collection-switcher.d.ts +1 -1
  76. package/dist/combobox.js +3 -3
  77. package/dist/continue-prompt.js +1 -1
  78. package/dist/dashboard-layout.js +1 -1
  79. package/dist/dashboard-layout.js.map +1 -1
  80. package/dist/data-table.js +6 -6
  81. package/dist/date-picker.js +1 -1
  82. package/dist/{default-avatar-Bh4atFDo.d.ts → default-avatar-DHv7g-K1.d.ts} +1 -1
  83. package/dist/detail-layout.js.map +1 -1
  84. package/dist/docs-hub-page.d.ts +1 -1
  85. package/dist/docs-hub-page.js.map +1 -1
  86. package/dist/document-viewer.js +1 -1
  87. package/dist/engine-flow.d.ts +6 -6
  88. package/dist/engine-flow.js.map +1 -1
  89. package/dist/entity-header.d.ts +1 -1
  90. package/dist/file-upload.js +1 -1
  91. package/dist/filter-bar.d.ts +3 -3
  92. package/dist/filter-bar.js +2 -2
  93. package/dist/flock.js +1 -1
  94. package/dist/{frame-CNZ5VgDD.d.ts → frame-CmDztC_y.d.ts} +1 -1
  95. package/dist/genui.js +6 -6
  96. package/dist/genui.js.map +1 -1
  97. package/dist/{geometry-DDlFDtiQ.d.ts → geometry-8O5Nq-yA.d.ts} +2 -2
  98. package/dist/{geometry-DuUQyHZ1.d.ts → geometry-haB2EgO4.d.ts} +2 -2
  99. package/dist/goal-gauge.d.ts +1 -1
  100. package/dist/goal-gauge.js +1 -1
  101. package/dist/goal-gauge.js.map +1 -1
  102. package/dist/image-cropper.js +1 -1
  103. package/dist/index.d.ts +26 -26
  104. package/dist/index.js +8 -11
  105. package/dist/index.js.map +1 -1
  106. package/dist/kind-config-editor.js +1 -1
  107. package/dist/list.js +1 -1
  108. package/dist/loader.d.ts +1 -1
  109. package/dist/loader.js +2 -2
  110. package/dist/loader.js.map +1 -1
  111. package/dist/map.js +3 -3
  112. package/dist/map.js.map +1 -1
  113. package/dist/mascot-quote.d.ts +1 -1
  114. package/dist/mascot-quote.js +1 -1
  115. package/dist/mascot-state.js +1 -1
  116. package/dist/mascots.d.ts +2 -2
  117. package/dist/mascots.js +1 -1
  118. package/dist/match-dialog.js +1 -1
  119. package/dist/media-capture.js +1 -1
  120. package/dist/media-carousel.d.ts +115 -45
  121. package/dist/media-carousel.js +378 -56
  122. package/dist/media-carousel.js.map +1 -1
  123. package/dist/media-gallery.d.ts +3 -3
  124. package/dist/media-guard-bin.js +171 -0
  125. package/dist/media-guard-bin.js.map +1 -0
  126. package/dist/media-guard.d.ts +88 -0
  127. package/dist/media-guard.js +153 -0
  128. package/dist/media-guard.js.map +1 -0
  129. package/dist/media-player.d.ts +3 -3
  130. package/dist/media-player.js +3 -3
  131. package/dist/native/map.js +3 -3
  132. package/dist/native/map.js.map +1 -1
  133. package/dist/native.d.ts +43 -43
  134. package/dist/native.js +1233 -1210
  135. package/dist/native.js.map +1 -1
  136. package/dist/nav-bar.d.ts +1 -1
  137. package/dist/nav-bar.js +2 -2
  138. package/dist/notification-preferences.js +1 -1
  139. package/dist/pausable-loop.js +3 -13
  140. package/dist/pausable-loop.js.map +1 -1
  141. package/dist/{player-lightbox-ASFOSUSD.js → player-lightbox-BYQ57OXT.js} +3 -3
  142. package/dist/product-page.d.ts +1 -1
  143. package/dist/product-page.js.map +1 -1
  144. package/dist/profile-card.d.ts +2 -2
  145. package/dist/profile-card.js +1 -1
  146. package/dist/profile-card.js.map +1 -1
  147. package/dist/promise-card.d.ts +1 -1
  148. package/dist/promise-card.js +1 -1
  149. package/dist/promise-card.js.map +1 -1
  150. package/dist/rail-nav.d.ts +6 -6
  151. package/dist/rail-nav.js.map +1 -1
  152. package/dist/retro-tv-playlist.js.map +1 -1
  153. package/dist/retro-tv.js +2 -2
  154. package/dist/schema-form.d.ts +13 -1
  155. package/dist/schema-form.js +24 -13
  156. package/dist/schema-form.js.map +1 -1
  157. package/dist/scroll-stage.d.ts +1 -1
  158. package/dist/scroll-stage.js +1 -1
  159. package/dist/scroll-stage.js.map +1 -1
  160. package/dist/search-field.js +2 -2
  161. package/dist/shop/booking.js +1 -1
  162. package/dist/shop/bulletin.js +1 -1
  163. package/dist/shop/faq.js +1 -1
  164. package/dist/shop/gallery.js +1 -1
  165. package/dist/shop/look.js.map +1 -1
  166. package/dist/shop/policies.js +1 -1
  167. package/dist/shop/reviews.js +1 -1
  168. package/dist/shop/services.js +1 -1
  169. package/dist/shop/social.js +1 -1
  170. package/dist/shop/story.js +1 -1
  171. package/dist/shop/team.js +1 -1
  172. package/dist/shop/video.js +1 -1
  173. package/dist/shop/visit.js +1 -1
  174. package/dist/shop-composer.d.ts +1 -1
  175. package/dist/shop-composer.js +2 -2
  176. package/dist/shop-composer.js.map +1 -1
  177. package/dist/shop.d.ts +1 -1
  178. package/dist/shop.js +2 -2
  179. package/dist/shop.js.map +1 -1
  180. package/dist/site-cahier.d.ts +1 -1
  181. package/dist/site-cahier.js +188 -181
  182. package/dist/site-cahier.js.map +1 -1
  183. package/dist/site-footer.d.ts +1 -1
  184. package/dist/site-footer.js +2 -2
  185. package/dist/{sites-CSBwUnbJ.d.ts → sites-A5cNWG2Z.d.ts} +1 -1
  186. package/dist/sites.d.ts +2 -2
  187. package/dist/sites.js +15 -11
  188. package/dist/sites.js.map +1 -1
  189. package/dist/stage-banner.d.ts +1 -1
  190. package/dist/stage-banner.js +1 -1
  191. package/dist/stage-banner.js.map +1 -1
  192. package/dist/status-page.d.ts +1 -1
  193. package/dist/status-page.js.map +1 -1
  194. package/dist/step-showcase.d.ts +2 -2
  195. package/dist/step-showcase.js.map +1 -1
  196. package/dist/swipe-deck.js +1 -1
  197. package/dist/tag-input.js +3 -3
  198. package/dist/tag-selector.js +1 -1
  199. package/dist/terminal-replay.d.ts +1 -1
  200. package/dist/terminal-replay.js.map +1 -1
  201. package/dist/tree-view.js +1 -1
  202. package/dist/update-prompt.d.ts +1 -1
  203. package/dist/update-prompt.js.map +1 -1
  204. package/dist/versus-card.js +1 -1
  205. package/dist/vertical-video.js +1 -1
  206. package/dist/video-player.js +2 -2
  207. package/dist/video-trimmer.js +1 -1
  208. package/dist/virtual.js +2 -2
  209. package/dist/waveform.js.map +1 -1
  210. package/package.json +25 -12
  211. package/registry/account-menu.json +3 -3
  212. package/registry/account-settings.json +6 -6
  213. package/registry/achievement.json +8 -8
  214. package/registry/action-bar.json +4 -4
  215. package/registry/activity-feed.json +24 -24
  216. package/registry/agenda.json +3 -3
  217. package/registry/alert.json +1 -1
  218. package/registry/analysis-report.json +3 -3
  219. package/registry/anatomy-plate.json +1 -1
  220. package/registry/app-frame.json +33 -29
  221. package/registry/app-header.json +16 -16
  222. package/registry/app-shell.json +13 -13
  223. package/registry/argument-card.json +3 -3
  224. package/registry/auth-layout.json +9 -9
  225. package/registry/avatar.json +8 -8
  226. package/registry/badge.json +1 -1
  227. package/registry/bird-plate.json +2 -2
  228. package/registry/button.json +1 -1
  229. package/registry/captcha.json +1 -1
  230. package/registry/card-grid.json +9 -9
  231. package/registry/card.json +1 -1
  232. package/registry/catalogue-page.json +2 -2
  233. package/registry/changelog-page.json +2 -2
  234. package/registry/chapter.json +5 -5
  235. package/registry/chat.json +1 -1
  236. package/registry/checkbox.json +1 -1
  237. package/registry/chip-link.json +1 -1
  238. package/registry/chip-row.json +1 -1
  239. package/registry/chip.json +2 -2
  240. package/registry/choice-grid.json +6 -6
  241. package/registry/code-block.json +1 -1
  242. package/registry/collection-switcher.json +2 -2
  243. package/registry/combobox.json +2 -2
  244. package/registry/command.json +1 -1
  245. package/registry/comparison-table.json +5 -5
  246. package/registry/component-page.json +1 -1
  247. package/registry/confirm-button.json +1 -1
  248. package/registry/contact-page.json +1 -1
  249. package/registry/continue-prompt.json +2 -2
  250. package/registry/copy-button.json +1 -1
  251. package/registry/countdown.json +1 -1
  252. package/registry/cover-hero.json +1 -1
  253. package/registry/cta-panel.json +3 -3
  254. package/registry/dashboard-layout.json +11 -11
  255. package/registry/data-table.json +2 -2
  256. package/registry/date-picker.json +2 -2
  257. package/registry/decision-list.json +1 -1
  258. package/registry/description-list.json +1 -1
  259. package/registry/desktop-window.json +5 -5
  260. package/registry/detail-layout.json +7 -7
  261. package/registry/dialog.json +1 -1
  262. package/registry/docs-article-page.json +6 -6
  263. package/registry/docs-hub-page.json +4 -4
  264. package/registry/docs-layout.json +3 -3
  265. package/registry/docs-nav.json +1 -1
  266. package/registry/document-viewer.json +4 -4
  267. package/registry/doodle.json +1 -1
  268. package/registry/drop-overlay.json +3 -3
  269. package/registry/dropdown-menu.json +1 -1
  270. package/registry/elephant.json +1 -1
  271. package/registry/embed-facade.json +1 -1
  272. package/registry/empty-state.json +2 -2
  273. package/registry/engine-flow.json +8 -8
  274. package/registry/entity-header.json +1 -1
  275. package/registry/environment-notice.json +1 -1
  276. package/registry/error-page.json +1 -1
  277. package/registry/examples/account-menu/default.js +2 -2
  278. package/registry/examples/account-menu/default.tsx +2 -2
  279. package/registry/examples/account-settings/appearance.js +2 -2
  280. package/registry/examples/account-settings/appearance.tsx +2 -2
  281. package/registry/examples/account-settings/avatar-picker-folder.js +1 -1
  282. package/registry/examples/account-settings/avatar-picker-folder.tsx +1 -1
  283. package/registry/examples/account-settings/avatar-picker.js +1 -1
  284. package/registry/examples/account-settings/avatar-picker.tsx +1 -1
  285. package/registry/examples/account-settings/profile.js +2 -2
  286. package/registry/examples/account-settings/profile.tsx +3 -3
  287. package/registry/examples/achievement/arcade.js +1 -1
  288. package/registry/examples/achievement/arcade.tsx +1 -1
  289. package/registry/examples/action-bar/buttons.js +1 -1
  290. package/registry/examples/action-bar/buttons.tsx +1 -1
  291. package/registry/examples/action-bar/icons.js +1 -1
  292. package/registry/examples/action-bar/icons.tsx +1 -1
  293. package/registry/examples/activity-feed/job-activity.tsx +1 -1
  294. package/registry/examples/app-frame/admin.js +3 -3
  295. package/registry/examples/app-frame/admin.tsx +3 -3
  296. package/registry/examples/app-frame/app.js +5 -5
  297. package/registry/examples/app-frame/app.tsx +6 -6
  298. package/registry/examples/app-frame/touch.js +3 -3
  299. package/registry/examples/app-frame/touch.tsx +3 -3
  300. package/registry/examples/app-header/basic.js +2 -2
  301. package/registry/examples/app-header/basic.tsx +2 -2
  302. package/registry/examples/app-header/family.js +3 -3
  303. package/registry/examples/app-header/family.tsx +3 -3
  304. package/registry/examples/app-header/native/family.dark.png +0 -0
  305. package/registry/examples/app-header/native/family.js +2 -2
  306. package/registry/examples/app-header/native/family.light.png +0 -0
  307. package/registry/examples/app-header/native/family.tsx +2 -2
  308. package/registry/examples/app-shell/admin-console.js +1 -1
  309. package/registry/examples/app-shell/admin-console.tsx +1 -1
  310. package/registry/examples/app-shell/basic.js +1 -1
  311. package/registry/examples/app-shell/basic.tsx +1 -1
  312. package/registry/examples/app-shell/collapse-overflow.js +4 -4
  313. package/registry/examples/app-shell/collapse-overflow.tsx +4 -4
  314. package/registry/examples/app-shell/creator-studio.js +2 -2
  315. package/registry/examples/app-shell/creator-studio.tsx +2 -2
  316. package/registry/examples/app-shell/desktop.js +3 -3
  317. package/registry/examples/app-shell/desktop.tsx +1 -1
  318. package/registry/examples/argument-card/building-block.js +1 -1
  319. package/registry/examples/argument-card/building-block.tsx +1 -1
  320. package/registry/examples/auth-layout/onboarding.js +2 -2
  321. package/registry/examples/auth-layout/onboarding.tsx +2 -2
  322. package/registry/examples/auth-layout/sign-in.js +2 -2
  323. package/registry/examples/auth-layout/sign-in.tsx +2 -2
  324. package/registry/examples/avatar/default.js +1 -1
  325. package/registry/examples/avatar/default.tsx +1 -1
  326. package/registry/examples/bird-plate/single.tsx +1 -1
  327. package/registry/examples/card-grid/aligned.js +3 -3
  328. package/registry/examples/card-grid/aligned.tsx +3 -3
  329. package/registry/examples/card-grid/foundation.js +6 -6
  330. package/registry/examples/card-grid/foundation.tsx +6 -6
  331. package/registry/examples/card-grid/hover-quiet.js +3 -3
  332. package/registry/examples/card-grid/hover-quiet.tsx +3 -3
  333. package/registry/examples/card-grid/products.js +2 -2
  334. package/registry/examples/card-grid/products.tsx +2 -2
  335. package/registry/examples/catalogue-page/clients.js +1 -1
  336. package/registry/examples/catalogue-page/clients.tsx +1 -1
  337. package/registry/examples/chapter/detail.js +1 -1
  338. package/registry/examples/chapter/detail.tsx +1 -1
  339. package/registry/examples/chapter/foot.js +1 -1
  340. package/registry/examples/chapter/foot.tsx +1 -1
  341. package/registry/examples/chapter/index.js +1 -1
  342. package/registry/examples/chapter/index.tsx +1 -1
  343. package/registry/examples/choice-grid/line-up.js +2 -2
  344. package/registry/examples/choice-grid/line-up.tsx +2 -2
  345. package/registry/examples/collection-switcher/entity.js +2 -2
  346. package/registry/examples/collection-switcher/entity.tsx +2 -2
  347. package/registry/examples/comparison-table/versus.js +5 -5
  348. package/registry/examples/comparison-table/versus.tsx +5 -5
  349. package/registry/examples/cta-panel/discuss.js +1 -1
  350. package/registry/examples/cta-panel/discuss.tsx +1 -1
  351. package/registry/examples/dashboard-layout/{orazaka-eric.js → sovkora-eric.js} +4 -4
  352. package/registry/examples/dashboard-layout/{orazaka-eric.tsx → sovkora-eric.tsx} +3 -3
  353. package/registry/examples/dashboard-layout/today.js +1 -1
  354. package/registry/examples/dashboard-layout/today.tsx +1 -1
  355. package/registry/examples/desktop-window/library.js +2 -2
  356. package/registry/examples/desktop-window/library.tsx +1 -1
  357. package/registry/examples/detail-layout/checkout.js +1 -1
  358. package/registry/examples/detail-layout/checkout.tsx +1 -1
  359. package/registry/examples/detail-layout/client.js +1 -1
  360. package/registry/examples/detail-layout/client.tsx +1 -1
  361. package/registry/examples/detail-layout/new-invoice.js +1 -1
  362. package/registry/examples/detail-layout/new-invoice.tsx +1 -1
  363. package/registry/examples/detail-layout/profile.js +1 -1
  364. package/registry/examples/detail-layout/profile.tsx +1 -1
  365. package/registry/examples/detail-layout/video.js +1 -1
  366. package/registry/examples/detail-layout/video.tsx +1 -1
  367. package/registry/examples/docs-article-page/cli.js +5 -5
  368. package/registry/examples/docs-article-page/cli.tsx +6 -6
  369. package/registry/examples/docs-article-page/faq.js +4 -4
  370. package/registry/examples/docs-article-page/faq.tsx +4 -4
  371. package/registry/examples/docs-hub-page/krizaka.js +5 -5
  372. package/registry/examples/docs-hub-page/krizaka.tsx +5 -5
  373. package/registry/examples/docs-layout/page.js +1 -1
  374. package/registry/examples/docs-layout/page.tsx +1 -1
  375. package/registry/examples/empty-state/library.js +1 -1
  376. package/registry/examples/empty-state/library.tsx +1 -1
  377. package/registry/examples/engine-flow/calm.js +4 -4
  378. package/registry/examples/engine-flow/calm.tsx +4 -4
  379. package/registry/examples/engine-flow/compact.js +5 -5
  380. package/registry/examples/engine-flow/compact.tsx +5 -5
  381. package/registry/examples/engine-flow/radial.js +6 -6
  382. package/registry/examples/engine-flow/radial.tsx +6 -6
  383. package/registry/examples/force-update-screen/default.js +1 -1
  384. package/registry/examples/force-update-screen/default.tsx +1 -1
  385. package/registry/examples/force-update-screen/native/default.js +1 -1
  386. package/registry/examples/force-update-screen/native/default.tsx +1 -1
  387. package/registry/examples/form/native/sign-up.js +1 -1
  388. package/registry/examples/form/native/sign-up.tsx +1 -1
  389. package/registry/examples/gallery-page/made-here.js +2 -2
  390. package/registry/examples/gallery-page/made-here.tsx +3 -3
  391. package/registry/examples/goal-gauge/arcade.js +1 -1
  392. package/registry/examples/goal-gauge/arcade.tsx +1 -1
  393. package/registry/examples/landing-page/krizaka.js +5 -5
  394. package/registry/examples/landing-page/krizaka.tsx +5 -5
  395. package/registry/examples/landscape/brand.js +1 -1
  396. package/registry/examples/landscape/brand.tsx +1 -1
  397. package/registry/examples/link-card/docs-hub.js +3 -3
  398. package/registry/examples/link-card/docs-hub.tsx +3 -3
  399. package/registry/examples/link-card/hover-quiet.js +3 -3
  400. package/registry/examples/link-card/hover-quiet.tsx +3 -3
  401. package/registry/examples/link-card/stack.js +3 -3
  402. package/registry/examples/link-card/stack.tsx +3 -3
  403. package/registry/examples/list/jobs.tsx +1 -1
  404. package/registry/examples/loader/branded.js +2 -2
  405. package/registry/examples/loader/branded.tsx +3 -3
  406. package/registry/examples/loader/native/branded.js +1 -1
  407. package/registry/examples/loader/native/branded.tsx +2 -2
  408. package/registry/examples/loader/native/job-wait.tsx +1 -1
  409. package/registry/examples/longform-page/case-study.js +2 -2
  410. package/registry/examples/longform-page/case-study.tsx +3 -3
  411. package/registry/examples/longform-page/story.js +2 -2
  412. package/registry/examples/longform-page/story.tsx +2 -2
  413. package/registry/examples/maintenance-screen/default.js +1 -1
  414. package/registry/examples/maintenance-screen/default.tsx +1 -1
  415. package/registry/examples/maintenance-screen/native/default.js +1 -1
  416. package/registry/examples/maintenance-screen/native/default.tsx +1 -1
  417. package/registry/examples/marketing-layout/docs-hub.js +3 -3
  418. package/registry/examples/marketing-layout/docs-hub.tsx +3 -3
  419. package/registry/examples/marketing-layout/product-page.js +3 -3
  420. package/registry/examples/marketing-layout/product-page.tsx +3 -3
  421. package/registry/examples/mascots/flock.tsx +2 -2
  422. package/registry/examples/media-gallery/carousel-autoplay.js +23 -0
  423. package/registry/examples/media-gallery/carousel-autoplay.tsx +21 -0
  424. package/registry/examples/media-gallery/carousel-cahier.d.ts +4 -0
  425. package/registry/examples/media-gallery/carousel-cahier.js +27 -0
  426. package/registry/examples/media-gallery/carousel-cahier.tsx +26 -0
  427. package/registry/examples/media-gallery/carousel-demo.d.ts +4 -0
  428. package/registry/examples/media-gallery/carousel-demo.js +36 -0
  429. package/registry/examples/media-gallery/carousel-demo.tsx +34 -0
  430. package/registry/examples/nav-bar/family-admin.js +5 -5
  431. package/registry/examples/nav-bar/family-admin.tsx +4 -4
  432. package/registry/examples/nav-bar/family-java.js +1 -1
  433. package/registry/examples/nav-bar/family-java.tsx +1 -1
  434. package/registry/examples/nav-bar/family-product.js +4 -4
  435. package/registry/examples/nav-bar/family-product.tsx +3 -3
  436. package/registry/examples/nav-bar/site.js +2 -2
  437. package/registry/examples/nav-bar/site.tsx +2 -2
  438. package/registry/examples/pricing-page/credits.js +1 -1
  439. package/registry/examples/pricing-page/credits.tsx +2 -2
  440. package/registry/examples/product-page/sovkora.d.ts +4 -0
  441. package/registry/examples/product-page/{orazaka.js → sovkora.js} +7 -7
  442. package/registry/examples/product-page/{orazaka.tsx → sovkora.tsx} +5 -5
  443. package/registry/examples/profile-card/arcade.js +2 -2
  444. package/registry/examples/profile-card/arcade.tsx +2 -2
  445. package/registry/examples/profile-card/banner.js +2 -2
  446. package/registry/examples/profile-card/banner.tsx +2 -2
  447. package/registry/examples/profile-card/match.js +1 -1
  448. package/registry/examples/profile-card/match.tsx +1 -1
  449. package/registry/examples/profile-card/native/banner.js +1 -1
  450. package/registry/examples/profile-card/native/banner.tsx +1 -1
  451. package/registry/examples/promise-card/arcade.js +1 -1
  452. package/registry/examples/promise-card/arcade.tsx +1 -1
  453. package/registry/examples/pull-to-refresh/native/branded.js +1 -1
  454. package/registry/examples/pull-to-refresh/native/branded.tsx +1 -1
  455. package/registry/examples/rail-nav/expandable.js +3 -3
  456. package/registry/examples/rail-nav/expandable.tsx +3 -3
  457. package/registry/examples/rail-nav/shortcuts.js +6 -6
  458. package/registry/examples/rail-nav/shortcuts.tsx +6 -6
  459. package/registry/examples/rail-nav/studio.js +5 -5
  460. package/registry/examples/rail-nav/studio.tsx +5 -5
  461. package/registry/examples/scroll-stage/arcade.js +1 -1
  462. package/registry/examples/scroll-stage/arcade.tsx +1 -1
  463. package/registry/examples/shop/booking-closing-mark.js +2 -2
  464. package/registry/examples/shop/booking-closing-mark.tsx +2 -2
  465. package/registry/examples/site-footer/app.js +1 -1
  466. package/registry/examples/site-footer/app.tsx +2 -2
  467. package/registry/examples/site-footer/configured.js +1 -1
  468. package/registry/examples/site-footer/configured.tsx +1 -1
  469. package/registry/examples/site-footer/product.js +3 -3
  470. package/registry/examples/site-footer/product.tsx +4 -4
  471. package/registry/examples/sites/french.js +1 -1
  472. package/registry/examples/sites/french.tsx +1 -1
  473. package/registry/examples/specimen-tag/product.js +4 -4
  474. package/registry/examples/specimen-tag/product.tsx +4 -4
  475. package/registry/examples/specimen-tag/wire.js +3 -3
  476. package/registry/examples/specimen-tag/wire.tsx +3 -3
  477. package/registry/examples/splash-handoff/native/default.js +1 -1
  478. package/registry/examples/splash-handoff/native/default.tsx +1 -1
  479. package/registry/examples/split-view/notifications.js +1 -1
  480. package/registry/examples/split-view/notifications.tsx +1 -1
  481. package/registry/examples/stage-banner/steps.js +1 -1
  482. package/registry/examples/stage-banner/steps.tsx +1 -1
  483. package/registry/examples/status-page/building.js +1 -1
  484. package/registry/examples/status-page/building.tsx +1 -1
  485. package/registry/examples/status-page/operational.js +1 -1
  486. package/registry/examples/status-page/operational.tsx +1 -1
  487. package/registry/examples/step-showcase/desktop.js +2 -2
  488. package/registry/examples/step-showcase/desktop.tsx +2 -2
  489. package/registry/examples/step-showcase/phone.js +1 -1
  490. package/registry/examples/step-showcase/phone.tsx +1 -1
  491. package/registry/examples/stepper/native/run.tsx +1 -1
  492. package/registry/examples/stuck/card.js +1 -1
  493. package/registry/examples/stuck/card.tsx +1 -1
  494. package/registry/examples/stuck/tag.js +1 -1
  495. package/registry/examples/stuck/tag.tsx +2 -2
  496. package/registry/examples/tree-view/docs.js +4 -4
  497. package/registry/examples/tree-view/docs.tsx +4 -4
  498. package/registry/examples/update-prompt/default.js +1 -1
  499. package/registry/examples/update-prompt/default.tsx +1 -1
  500. package/registry/examples/update-prompt/native/default.js +1 -1
  501. package/registry/examples/update-prompt/native/default.tsx +1 -1
  502. package/registry/examples/video-player/signed-source.js +1 -1
  503. package/registry/examples/video-player/signed-source.tsx +1 -1
  504. package/registry/field.json +1 -1
  505. package/registry/file-upload.json +2 -2
  506. package/registry/filter-bar.json +1 -1
  507. package/registry/flock.json +1 -1
  508. package/registry/footnote.json +1 -1
  509. package/registry/force-update-screen.json +4 -4
  510. package/registry/form-flow.json +1 -1
  511. package/registry/form.json +2 -2
  512. package/registry/gallery-page.json +5 -5
  513. package/registry/genui.json +4 -4
  514. package/registry/glossary-term.json +1 -1
  515. package/registry/glossary.json +1 -1
  516. package/registry/glow-card.json +1 -1
  517. package/registry/goal-gauge.json +6 -6
  518. package/registry/grade-stamp.json +1 -1
  519. package/registry/identity-card.json +1 -1
  520. package/registry/image-cropper.json +2 -2
  521. package/registry/index.json +33 -33
  522. package/registry/kanban.json +1 -1
  523. package/registry/kbd.json +1 -1
  524. package/registry/kind-config-editor.json +1 -1
  525. package/registry/kpi-explained.json +1 -1
  526. package/registry/landing-page.json +3 -3
  527. package/registry/landscape.json +2 -2
  528. package/registry/language-switch.json +1 -1
  529. package/registry/legal-page.json +1 -1
  530. package/registry/link-card.json +5 -5
  531. package/registry/list.json +7 -7
  532. package/registry/loader.json +12 -12
  533. package/registry/longform-page.json +4 -4
  534. package/registry/maintenance-screen.json +4 -4
  535. package/registry/map.json +3 -3
  536. package/registry/margin-layout.json +1 -1
  537. package/registry/markdown.json +1 -1
  538. package/registry/marketing-layout.json +6 -6
  539. package/registry/mascot-quote.json +1 -1
  540. package/registry/mascot-state.json +1 -1
  541. package/registry/mascots.json +5 -5
  542. package/registry/match-dialog.json +1 -1
  543. package/registry/media-capture.json +2 -2
  544. package/registry/media-gallery.json +62 -10
  545. package/registry/meter.json +1 -1
  546. package/registry/money-input.json +1 -1
  547. package/registry/nav-bar.json +27 -23
  548. package/registry/next-actions.json +1 -1
  549. package/registry/notification-preferences.json +1 -1
  550. package/registry/number-ticker.json +1 -1
  551. package/registry/opening-hours.json +1 -1
  552. package/registry/page-header.json +1 -1
  553. package/registry/page-hero.json +1 -1
  554. package/registry/page-index.json +1 -1
  555. package/registry/page.json +1 -1
  556. package/registry/pagination.json +1 -1
  557. package/registry/pointer-light.json +1 -1
  558. package/registry/popover.json +1 -1
  559. package/registry/price-catalogue-editor.json +3 -3
  560. package/registry/pricing-page.json +5 -5
  561. package/registry/product-page.json +13 -13
  562. package/registry/profile-card.json +12 -12
  563. package/registry/progress.json +1 -1
  564. package/registry/promise-card.json +6 -6
  565. package/registry/promo-code-field.json +3 -3
  566. package/registry/proposal.json +4 -4
  567. package/registry/pull-to-refresh.json +2 -2
  568. package/registry/qr-code.json +1 -1
  569. package/registry/quota-meter.json +3 -3
  570. package/registry/radio-group.json +1 -1
  571. package/registry/rail-nav.json +38 -34
  572. package/registry/recipes.json +1 -1
  573. package/registry/retro-tv.json +2 -2
  574. package/registry/reviews.json +1 -1
  575. package/registry/router.json +1 -1
  576. package/registry/schema-form.json +4 -4
  577. package/registry/scroll-stage.json +6 -6
  578. package/registry/search-field.json +2 -2
  579. package/registry/section-backdrop.json +1 -1
  580. package/registry/separator.json +3 -3
  581. package/registry/service-card.json +1 -1
  582. package/registry/settings-layout.json +1 -1
  583. package/registry/shop-composer.json +8 -8
  584. package/registry/shop-gallery.json +3 -3
  585. package/registry/shop.json +12 -12
  586. package/registry/showcase.json +1 -1
  587. package/registry/signature.json +1 -1
  588. package/registry/site-cahier.json +1 -1
  589. package/registry/site-footer.json +29 -25
  590. package/registry/sites.json +3 -3
  591. package/registry/skeleton.json +1 -1
  592. package/registry/skip-link.json +1 -1
  593. package/registry/slider.json +1 -1
  594. package/registry/slot-picker.json +1 -1
  595. package/registry/slot.json +1 -1
  596. package/registry/specimen-tag.json +4 -4
  597. package/registry/speed-lines.json +1 -1
  598. package/registry/spinner.json +1 -1
  599. package/registry/splash-handoff.json +4 -4
  600. package/registry/split-view.json +2 -2
  601. package/registry/stage-banner.json +7 -7
  602. package/registry/stat.json +3 -3
  603. package/registry/state-screen.json +1 -1
  604. package/registry/status-chip.json +1 -1
  605. package/registry/status-page.json +9 -9
  606. package/registry/step-progress.json +1 -1
  607. package/registry/step-showcase.json +10 -10
  608. package/registry/stepper.json +2 -2
  609. package/registry/sticky-action.json +1 -1
  610. package/registry/stuck.json +4 -4
  611. package/registry/swipe-deck.json +2 -2
  612. package/registry/switch.json +1 -1
  613. package/registry/tabs.json +1 -1
  614. package/registry/tag-input.json +2 -2
  615. package/registry/tag-selector.json +1 -1
  616. package/registry/taped-photo.json +1 -1
  617. package/registry/terminal-replay.json +2 -2
  618. package/registry/text-style.json +1 -1
  619. package/registry/theme.json +1 -1
  620. package/registry/toast.json +1 -1
  621. package/registry/toc.json +1 -1
  622. package/registry/tooltip.json +1 -1
  623. package/registry/tree-view.json +4 -4
  624. package/registry/update-prompt.json +8 -8
  625. package/registry/upload-queue.json +3 -3
  626. package/registry/usage.json +3 -3
  627. package/registry/verified-badge.json +1 -1
  628. package/registry/versus-card.json +1 -1
  629. package/registry/vertical-video.json +1 -1
  630. package/registry/video-player.json +3 -3
  631. package/registry/video-trimmer.json +2 -2
  632. package/registry/virtual.json +2 -2
  633. package/registry/wall.json +1 -1
  634. package/registry/waveform.json +2 -2
  635. package/skills/form/SKILL.md +1 -1
  636. package/skills/map/SKILL.md +2 -2
  637. package/dist/chunk-6KZDARNX.js.map +0 -1
  638. package/dist/chunk-DRTIE44Z.js.map +0 -1
  639. package/dist/chunk-E46AEUPH.js.map +0 -1
  640. package/dist/chunk-IOTY5HYG.js.map +0 -1
  641. package/dist/chunk-LZK4IRVW.js +0 -307
  642. package/dist/chunk-LZK4IRVW.js.map +0 -1
  643. package/dist/chunk-M3T5RQYV.js.map +0 -1
  644. package/dist/chunk-RCHKIOVV.js.map +0 -1
  645. /package/dist/{chunk-DSDFXPL6.js.map → chunk-757ZTGU5.js.map} +0 -0
  646. /package/dist/{chunk-CEW3LQOZ.js.map → chunk-IEGTRCDI.js.map} +0 -0
  647. /package/dist/{chunk-KVDB4GXV.js.map → chunk-KR2W4ONJ.js.map} +0 -0
  648. /package/dist/{chunk-GOGEYAYK.js.map → chunk-PRD7JRQX.js.map} +0 -0
  649. /package/dist/{chunk-VYZFQE3P.js.map → chunk-QD6SNXF5.js.map} +0 -0
  650. /package/dist/{chunk-YQWYGQTV.js.map → chunk-UIP3WX5O.js.map} +0 -0
  651. /package/dist/{chunk-ZKKMYIDN.js.map → chunk-Y3P5B4XS.js.map} +0 -0
  652. /package/dist/{chunk-GW5EI7MI.js.map → chunk-YXETEQQJ.js.map} +0 -0
  653. /package/dist/{player-lightbox-ASFOSUSD.js.map → player-lightbox-BYQ57OXT.js.map} +0 -0
  654. /package/registry/examples/dashboard-layout/{orazaka-eric.d.ts → sovkora-eric.d.ts} +0 -0
  655. /package/registry/examples/{product-page/orazaka.d.ts → media-gallery/carousel-autoplay.d.ts} +0 -0
package/dist/shop.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { S as ShopPage } from './schema-DgjBz7-8.js';
2
2
  export { L as LocalizedText, P as ParsedSection, b as SECTION_DEFINITIONS, c as SECTION_TYPES, d as SHOP_SCHEMA_VERSION, a as Section, e as SectionDefinition, f as SectionOf, g as SectionSpec, h as SectionType, i as ShopPageIssue, j as ShopPageResult, k as defineSection, p as parseShopPage, s as sectionDefinition, l as shopPageSchema } from './schema-DgjBz7-8.js';
3
- export { b as ShopFrame, c as ShopFrameProps, a as ShopPhoto, d as ShopSection, S as ShopSectionProps } from './frame-CNZ5VgDD.js';
3
+ export { b as ShopFrame, c as ShopFrameProps, a as ShopPhoto, d as ShopSection, S as ShopSectionProps } from './frame-CmDztC_y.js';
4
4
  import 'zod/mini';
5
5
  import 'react';
6
6
 
package/dist/shop.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  ShopFrame,
12
12
  ShopSection
13
- } from "./chunk-M3T5RQYV.js";
13
+ } from "./chunk-SB5WSVPI.js";
14
14
  import "./chunk-B47WSPMP.js";
15
15
 
16
16
  // src/shop/schema.ts
@@ -29,7 +29,7 @@ var shopPageSchema = z.object({
29
29
  preset: presetRef,
30
30
  /** Overrides the preset's density. */
31
31
  density: z.optional(z.enum(["compact", "airy"])),
32
- /** One of the accents the look lists as tested (`krizaka`, `akinaza:accent-2`…): the owner's choice within the look. */
32
+ /** One of the accents the look lists as tested (`krizaka`, `folioviv:accent-2`…): the owner's choice within the look. */
33
33
  accent: z.optional(z.string().check(z.regex(/^[a-z]+(:accent-2)?$/, "an accent of the look"))),
34
34
  sections: z.array(sectionUnion).check(z.minLength(1), z.maxLength(SHOP_LIMITS.sections))
35
35
  }).check(
package/dist/shop.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/shop/schema.ts","../src/shop/migrate.ts","../src/shop/preview.ts","../src/shop/starters.ts"],"sourcesContent":["// The document a shop page is (ADR-007 §1): an ordered list of sections, each a `type` × `variant` with its settings and\n// its blocks. Parsed on write (a route refuses an invalid one, with the path) and on read. The storage is the product's.\nimport * as z from \"zod/mini\";\n\nimport { SECTION_DEFINITIONS, type SectionType } from \"./catalogue\";\nimport { SHOP_LIMITS } from \"./limits\";\n\n/** The version of the document's format; migrations are pure functions schema n → n + 1 (`migrate.ts`). */\n// @fixed: ADR-007 §1 — the format version of the code, bumped with a migration; not a shop setting.\nexport const SHOP_SCHEMA_VERSION = 1;\n\n/** A look preset by id and version (`@krizaka/tokens`): `salon-atelier`. The mode is the visitor's, never stored. */\nexport const presetRef = z.object({\n id: z.string().check(z.regex(/^[a-z]+-[a-z]+$/, \"a preset id (trade-name)\")),\n version: z.int().check(z.minimum(1)),\n});\n\nconst sectionUnion = z.discriminatedUnion(\n \"type\",\n SECTION_DEFINITIONS.map((d) => d.schema) as unknown as [z.ZodMiniObject, ...z.ZodMiniObject[]],\n);\n\nexport const shopPageSchema = z\n .object({\n schema: z.literal(SHOP_SCHEMA_VERSION),\n preset: presetRef,\n /** Overrides the preset's density. */\n density: z.optional(z.enum([\"compact\", \"airy\"])),\n /** One of the accents the look lists as tested (`krizaka`, `akinaza:accent-2`…): the owner's choice within the look. */\n accent: z.optional(z.string().check(z.regex(/^[a-z]+(:accent-2)?$/, \"an accent of the look\"))),\n sections: z.array(sectionUnion).check(z.minLength(1), z.maxLength(SHOP_LIMITS.sections)),\n })\n .check(\n z.superRefine((page, ctx) => {\n const add = (path: (string | number)[], message: string) => ctx.issues.push({ code: \"custom\", message, path, input: page });\n const seen = new Set<string>();\n page.sections.forEach((section, i) => {\n const s = section as { key: string; type: string };\n if (seen.has(s.key)) add([\"sections\", i, \"key\"], `the key \"${s.key}\" is used twice`);\n seen.add(s.key);\n if (s.type === \"hero\" && i !== 0) add([\"sections\", i, \"type\"], \"the hero is the first section, and there is only one\");\n });\n }),\n );\n\n/** A section of any type, as parsed: its `settings` and `blocks` are the type's own. */\nexport type Section = z.output<(typeof SECTION_DEFINITIONS)[number][\"schema\"]>;\nexport type ShopPage = {\n schema: typeof SHOP_SCHEMA_VERSION;\n preset: z.output<typeof presetRef>;\n density?: \"compact\" | \"airy\" | undefined;\n accent?: string | undefined;\n sections: Section[];\n};\nexport type SectionOf<T extends SectionType> = Extract<Section, { type: T }>;\n\nexport type ShopPageIssue = { path: string; message: string };\nexport type ShopPageResult = { ok: true; page: ShopPage } | { ok: false; issues: ShopPageIssue[] };\n\n/** Validates a document; an invalid one answers every issue with its path (`sections.2.variant`), for a 422. */\nexport function parseShopPage(input: unknown): ShopPageResult {\n const result = shopPageSchema.safeParse(input);\n if (result.success) return { ok: true, page: result.data as unknown as ShopPage };\n return { ok: false, issues: result.error.issues.map((i) => ({ path: i.path.join(\".\"), message: i.message })) };\n}\n","// Migrations of the document (ADR-007 §1): pure functions schema n → n + 1, applied in memory when an older document is\n// read; the product writes the migrated one back on the next save. A newer document than this code knows is refused.\nimport { SHOP_SCHEMA_VERSION } from \"./schema\";\n\nexport type ShopMigration = {\n /** The schema it reads. */\n from: number;\n /** Pure: returns a new document, never mutates. */\n up: (doc: Record<string, unknown>) => Record<string, unknown>;\n};\n\n/** The migrations of the document, oldest first. Schema 1 is the first format: none yet. */\nexport const SHOP_MIGRATIONS: readonly ShopMigration[] = [];\n\nexport type MigrationResult = { ok: true; doc: Record<string, unknown>; from: number } | { ok: false; reason: string };\n\n/** A migrator over a list of migrations and a current version (the shop's own are `migrateShopPage`). */\nexport function createMigrator(migrations: readonly ShopMigration[], current: number) {\n return (input: unknown): MigrationResult => {\n if (typeof input !== \"object\" || input === null || Array.isArray(input)) return { ok: false, reason: \"a document is an object\" };\n let doc = input as Record<string, unknown>;\n const from = doc.schema;\n if (typeof from !== \"number\" || !Number.isInteger(from) || from < 1) return { ok: false, reason: \"the document has no schema version\" };\n if (from > current) return { ok: false, reason: `schema ${from} is newer than this code knows (${current})` };\n for (let n = from; n < current; n++) {\n const step = migrations.find((m) => m.from === n);\n if (!step) return { ok: false, reason: `no migration from schema ${n}` };\n doc = { ...step.up(doc), schema: n + 1 };\n }\n return { ok: true, doc, from };\n };\n}\n\n/** Brings a stored document to the current schema (then `parseShopPage` it). */\nexport const migrateShopPage = createMigrator(SHOP_MIGRATIONS, SHOP_SCHEMA_VERSION);\n","// The preview bridge (ADR-007 §5): the composer shows the product's real public page in an iframe of its own route\n// (`?draft=<id>`) and talks to it by `postMessage` — three messages only, every one origin-checked on both sides: `select` (outline\n// a section), `scroll` (bring it into view), `refresh` (the draft changed: reload the data). Nothing else crosses: no document, no\n// script, no style. Both halves are here, tiny and free of React, because the page side must not import the composer.\n\n/** The only messages: the composer to the page. */\nexport type PreviewMessage = { source: \"krizaka-shop-composer\"; type: \"select\" | \"scroll\"; key: string } | { source: \"krizaka-shop-composer\"; type: \"refresh\" };\n\nconst SOURCE = \"krizaka-shop-composer\";\nconst KEY = /^[A-Za-z0-9_-]{1,40}$/;\n\n/** Reads a message event: only if it comes from `origin`, is one of the three messages and carries a well-formed key. */\nexport function readPreviewMessage(event: Pick<MessageEvent, \"origin\" | \"data\">, origin: string): PreviewMessage | null {\n if (event.origin !== origin) return null;\n const d = event.data as Record<string, unknown> | null;\n if (typeof d !== \"object\" || d === null || d.source !== SOURCE) return null;\n if (d.type === \"refresh\") return { source: SOURCE, type: \"refresh\" };\n if ((d.type === \"select\" || d.type === \"scroll\") && typeof d.key === \"string\" && KEY.test(d.key)) return { source: SOURCE, type: d.type, key: d.key };\n return null;\n}\n\n/** The composer's side: posts to the preview's window, addressed to its origin only. */\nexport function postToPreview(target: Pick<Window, \"postMessage\"> | null | undefined, origin: string, message: PreviewMessage): void {\n target?.postMessage(message, origin);\n}\n\n/** The attribute that names a section in the preview page: `<div data-shop-key=\"s_8f2c\">` (a block: the outline is its ring). */\nexport const SHOP_KEY_ATTRIBUTE = \"data-shop-key\";\n\n/**\n * The page's side: outlines the selected section (`data-shop-selected`, drawn by `blocks.css`), scrolls it into view, and calls\n * `onRefresh` when the draft changed. Returns the function that removes it. Only runs in an iframe of the composer's origin.\n */\nexport function connectShopPreview({ composerOrigin, onRefresh, root = document }: { composerOrigin: string; onRefresh?: () => void; root?: Document }): () => void {\n const find = (key: string) => root.querySelector<HTMLElement>(`[${SHOP_KEY_ATTRIBUTE}=\"${key}\"]`);\n const handler = (event: MessageEvent) => {\n // The origin first, before anything else is read from the message.\n if (event.origin !== composerOrigin) return;\n const m = readPreviewMessage(event, composerOrigin);\n if (!m) return;\n if (m.type === \"refresh\") {\n onRefresh?.();\n return;\n }\n for (const selected of root.querySelectorAll<HTMLElement>(\"[data-shop-selected]\")) delete selected.dataset.shopSelected;\n const el = find(m.key);\n if (!el) return;\n el.dataset.shopSelected = \"\";\n if (m.type === \"scroll\") {\n const reduced = typeof matchMedia === \"function\" && matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n el.scrollIntoView({ block: \"center\", behavior: reduced ? \"auto\" : \"smooth\" });\n }\n };\n window.addEventListener(\"message\", handler);\n return () => window.removeEventListener(\"message\", handler);\n}\n","// The starter documents (ADR-007 §4, §8): the five compositions of the ADR as data — a section list and a preset. A\n// product's template becomes one of these; the composer's « Start from » lists them. They hold no price, no text of a\n// shop and no photo: references and rules only.\nimport type { SectionOf, ShopPage } from \"./schema\";\n\nconst s = (key: string) => key;\nconst doc = (preset: string, density: \"compact\" | \"airy\", sections: ShopPage[\"sections\"]): ShopPage => ({\n schema: 1,\n preset: { id: preset, version: 1 },\n density,\n sections,\n});\nconst hero = (variant: \"poster\" | \"split\" | \"banner\" | \"tv\"): SectionOf<\"hero\"> => ({\n key: s(\"s_hero\"),\n type: \"hero\",\n variant,\n settings: { focus: \"center\" },\n blocks: [\n { key: \"b_open\", type: \"fact\", settings: { kind: \"open-now\" } },\n { key: \"b_area\", type: \"fact\", settings: { kind: \"area\" } },\n { key: \"b_score\", type: \"fact\", settings: { kind: \"score\" } },\n ],\n});\nconst menu = (columns: 1 | 2, aside: \"hours\" | \"none\"): SectionOf<\"services\"> => ({\n key: s(\"s_services\"),\n type: \"services\",\n variant: \"menu\",\n settings: { source: \"all\", groupBy: \"category\", columns, aside },\n});\nconst booking = (variant: \"strip\" | \"panel\" | \"sticky\", key: string): SectionOf<\"booking\"> => ({ key, type: \"booking\", variant, settings: { count: 4 } });\nconst gallery = (variant: \"mosaic\" | \"filmstrip\" | \"wall\" | \"grid\", key: string, extra: Partial<Pick<SectionOf<\"gallery\">, \"settings\" | \"blocks\">> = {}): SectionOf<\"gallery\"> => ({\n key,\n type: \"gallery\",\n variant,\n settings: { source: \"all\", texture: \"plaster\" },\n ...extra,\n});\n\n/** The salon, compact: the poster, the next free times, the price board beside the hours, a filmstrip, the reviews. */\nexport const salonCompact = doc(\"salon-vitrine\", \"compact\", [\n hero(\"poster\"),\n booking(\"strip\", \"s_times\"),\n menu(1, \"hours\"),\n gallery(\"filmstrip\", \"s_photos\"),\n { key: \"s_reviews\", type: \"reviews\", variant: \"summary-cards\", settings: { rule: \"best\", count: 2 } },\n booking(\"panel\", \"s_book\"),\n]);\n\n/** The salon, editorial: a split hero, the quote, the two-column menu, the mosaic, the visit. */\nexport const salonEditorial = doc(\"salon-atelier\", \"airy\", [\n hero(\"split\"),\n { key: \"s_story\", type: \"story\", variant: \"quote\", settings: { body: {} } },\n menu(2, \"none\"),\n gallery(\"mosaic\", \"s_photos\"),\n { key: \"s_visit\", type: \"visit\", variant: \"split\", settings: { showPhone: true } },\n booking(\"panel\", \"s_book\"),\n]);\n\n/** The salon, gallery first: the sign and the old TV, the mosaic, the menu, the wall. */\nexport const salonGallery = doc(\"salon-atelier\", \"compact\", [\n hero(\"tv\"),\n gallery(\"mosaic\", \"s_photos\"),\n menu(1, \"hours\"),\n gallery(\"wall\", \"s_wall\", { blocks: [{ key: \"b_note\", type: \"note\", settings: { text: \"Merci Jade !\", signature: \"Nadia\" } }] }),\n booking(\"sticky\", \"s_sticky\"),\n]);\n\n/** The dog walker, route: the poster, the areas, the menu, the next free times, a filmstrip. */\nexport const petsRoute = doc(\"pets-canal\", \"compact\", [\n hero(\"poster\"),\n { key: \"s_visit\", type: \"visit\", variant: \"map\", settings: { showPhone: false } },\n menu(1, \"none\"),\n booking(\"strip\", \"s_times\"),\n gallery(\"filmstrip\", \"s_photos\"),\n]);\n\n/** The dog walker, journal: a hero on paper, the notebook wall, the menu, the TV with notes. */\nexport const petsJournal = doc(\"pets-carnet\", \"airy\", [\n hero(\"split\"),\n gallery(\"wall\", \"s_wall\", { settings: { source: \"all\", texture: \"ridge\" } }),\n menu(1, \"none\"),\n { key: \"s_tv\", type: \"video\", variant: \"tv\", settings: { cabinet: \"portable\" } },\n booking(\"panel\", \"s_book\"),\n]);\n\nexport const shopStarters = { salonCompact, salonEditorial, salonGallery, petsRoute, petsJournal } as const;\nexport type ShopStarterId = keyof typeof shopStarters;\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,YAAY,OAAO;AAOZ,IAAM,sBAAsB;AAG5B,IAAM,YAAc,SAAO;AAAA,EAChC,IAAM,SAAO,EAAE,MAAQ,QAAM,mBAAmB,0BAA0B,CAAC;AAAA,EAC3E,SAAW,MAAI,EAAE,MAAQ,UAAQ,CAAC,CAAC;AACrC,CAAC;AAED,IAAM,eAAiB;A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AQ;AAC3B,CAAC;AAGM,IAAM,eAAe,IAAI,iBAAiB,WAAW;AAAA,EAC1D,KAAK,IAAI;AAAA,EACT,QAAQ,UAAU,UAAU;AAAA,EAC5B,KAAK,GAAG,OAAO;AAAA,EACf,QAAQ,QAAQ,UAAU,EAAE,QAAQ,CAAC,EAAE,KAAK,UAAU,MAAM,QAAQ,UAAU,EAAE,MAAM,gBAAgB,WAAW,QAAQ,EAAE,CAAC,EAAE,CAAC;AAAA,EAC/H,QAAQ,UAAU,UAAU;AAC9B,CAAC;AAGM,IAAM,YAAY,IAAI,cAAc,WAAW;AAAA,EACpD,KAAK,QAAQ;AAAA,EACb,EAAE,KAAK,WAAW,MAAM,SAAS,SAAS,OAAO,UAAU,EAAE,WAAW,MAAM,EAAE;AAAA,EAChF,KAAK,GAAG,MAAM;AAAA,EACd,QAAQ,SAAS,SAAS;AAAA,EAC1B,QAAQ,aAAa,UAAU;AACjC,CAAC;AAGM,IAAM,cAAc,IAAI,eAAe,QAAQ;AAAA,EACpD,KAAK,OAAO;AAAA,EACZ,QAAQ,QAAQ,UAAU,EAAE,UAAU,EAAE,QAAQ,OAAO,SAAS,QAAQ,EAAE,CAAC;AAAA,EAC3E,KAAK,GAAG,MAAM;AAAA,EACd,EAAE,KAAK,QAAQ,MAAM,SAAS,SAAS,MAAM,UAAU,EAAE,SAAS,WAAW,EAAE;AAAA,EAC/E,QAAQ,SAAS,QAAQ;AAC3B,CAAC;AAEM,IAAM,eAAe,EAAE,cAAc,gBAAgB,cAAc,WAAW,YAAY;","names":["s","doc"]}
1
+ {"version":3,"sources":["../src/shop/schema.ts","../src/shop/migrate.ts","../src/shop/preview.ts","../src/shop/starters.ts"],"sourcesContent":["// The document a shop page is (ADR-007 §1): an ordered list of sections, each a `type` × `variant` with its settings and\n// its blocks. Parsed on write (a route refuses an invalid one, with the path) and on read. The storage is the product's.\nimport * as z from \"zod/mini\";\n\nimport { SECTION_DEFINITIONS, type SectionType } from \"./catalogue\";\nimport { SHOP_LIMITS } from \"./limits\";\n\n/** The version of the document's format; migrations are pure functions schema n → n + 1 (`migrate.ts`). */\n// @fixed: ADR-007 §1 — the format version of the code, bumped with a migration; not a shop setting.\nexport const SHOP_SCHEMA_VERSION = 1;\n\n/** A look preset by id and version (`@krizaka/tokens`): `salon-atelier`. The mode is the visitor's, never stored. */\nexport const presetRef = z.object({\n id: z.string().check(z.regex(/^[a-z]+-[a-z]+$/, \"a preset id (trade-name)\")),\n version: z.int().check(z.minimum(1)),\n});\n\nconst sectionUnion = z.discriminatedUnion(\n \"type\",\n SECTION_DEFINITIONS.map((d) => d.schema) as unknown as [z.ZodMiniObject, ...z.ZodMiniObject[]],\n);\n\nexport const shopPageSchema = z\n .object({\n schema: z.literal(SHOP_SCHEMA_VERSION),\n preset: presetRef,\n /** Overrides the preset's density. */\n density: z.optional(z.enum([\"compact\", \"airy\"])),\n /** One of the accents the look lists as tested (`krizaka`, `folioviv:accent-2`…): the owner's choice within the look. */\n accent: z.optional(z.string().check(z.regex(/^[a-z]+(:accent-2)?$/, \"an accent of the look\"))),\n sections: z.array(sectionUnion).check(z.minLength(1), z.maxLength(SHOP_LIMITS.sections)),\n })\n .check(\n z.superRefine((page, ctx) => {\n const add = (path: (string | number)[], message: string) => ctx.issues.push({ code: \"custom\", message, path, input: page });\n const seen = new Set<string>();\n page.sections.forEach((section, i) => {\n const s = section as { key: string; type: string };\n if (seen.has(s.key)) add([\"sections\", i, \"key\"], `the key \"${s.key}\" is used twice`);\n seen.add(s.key);\n if (s.type === \"hero\" && i !== 0) add([\"sections\", i, \"type\"], \"the hero is the first section, and there is only one\");\n });\n }),\n );\n\n/** A section of any type, as parsed: its `settings` and `blocks` are the type's own. */\nexport type Section = z.output<(typeof SECTION_DEFINITIONS)[number][\"schema\"]>;\nexport type ShopPage = {\n schema: typeof SHOP_SCHEMA_VERSION;\n preset: z.output<typeof presetRef>;\n density?: \"compact\" | \"airy\" | undefined;\n accent?: string | undefined;\n sections: Section[];\n};\nexport type SectionOf<T extends SectionType> = Extract<Section, { type: T }>;\n\nexport type ShopPageIssue = { path: string; message: string };\nexport type ShopPageResult = { ok: true; page: ShopPage } | { ok: false; issues: ShopPageIssue[] };\n\n/** Validates a document; an invalid one answers every issue with its path (`sections.2.variant`), for a 422. */\nexport function parseShopPage(input: unknown): ShopPageResult {\n const result = shopPageSchema.safeParse(input);\n if (result.success) return { ok: true, page: result.data as unknown as ShopPage };\n return { ok: false, issues: result.error.issues.map((i) => ({ path: i.path.join(\".\"), message: i.message })) };\n}\n","// Migrations of the document (ADR-007 §1): pure functions schema n → n + 1, applied in memory when an older document is\n// read; the product writes the migrated one back on the next save. A newer document than this code knows is refused.\nimport { SHOP_SCHEMA_VERSION } from \"./schema\";\n\nexport type ShopMigration = {\n /** The schema it reads. */\n from: number;\n /** Pure: returns a new document, never mutates. */\n up: (doc: Record<string, unknown>) => Record<string, unknown>;\n};\n\n/** The migrations of the document, oldest first. Schema 1 is the first format: none yet. */\nexport const SHOP_MIGRATIONS: readonly ShopMigration[] = [];\n\nexport type MigrationResult = { ok: true; doc: Record<string, unknown>; from: number } | { ok: false; reason: string };\n\n/** A migrator over a list of migrations and a current version (the shop's own are `migrateShopPage`). */\nexport function createMigrator(migrations: readonly ShopMigration[], current: number) {\n return (input: unknown): MigrationResult => {\n if (typeof input !== \"object\" || input === null || Array.isArray(input)) return { ok: false, reason: \"a document is an object\" };\n let doc = input as Record<string, unknown>;\n const from = doc.schema;\n if (typeof from !== \"number\" || !Number.isInteger(from) || from < 1) return { ok: false, reason: \"the document has no schema version\" };\n if (from > current) return { ok: false, reason: `schema ${from} is newer than this code knows (${current})` };\n for (let n = from; n < current; n++) {\n const step = migrations.find((m) => m.from === n);\n if (!step) return { ok: false, reason: `no migration from schema ${n}` };\n doc = { ...step.up(doc), schema: n + 1 };\n }\n return { ok: true, doc, from };\n };\n}\n\n/** Brings a stored document to the current schema (then `parseShopPage` it). */\nexport const migrateShopPage = createMigrator(SHOP_MIGRATIONS, SHOP_SCHEMA_VERSION);\n","// The preview bridge (ADR-007 §5): the composer shows the product's real public page in an iframe of its own route\n// (`?draft=<id>`) and talks to it by `postMessage` — three messages only, every one origin-checked on both sides: `select` (outline\n// a section), `scroll` (bring it into view), `refresh` (the draft changed: reload the data). Nothing else crosses: no document, no\n// script, no style. Both halves are here, tiny and free of React, because the page side must not import the composer.\n\n/** The only messages: the composer to the page. */\nexport type PreviewMessage = { source: \"krizaka-shop-composer\"; type: \"select\" | \"scroll\"; key: string } | { source: \"krizaka-shop-composer\"; type: \"refresh\" };\n\nconst SOURCE = \"krizaka-shop-composer\";\nconst KEY = /^[A-Za-z0-9_-]{1,40}$/;\n\n/** Reads a message event: only if it comes from `origin`, is one of the three messages and carries a well-formed key. */\nexport function readPreviewMessage(event: Pick<MessageEvent, \"origin\" | \"data\">, origin: string): PreviewMessage | null {\n if (event.origin !== origin) return null;\n const d = event.data as Record<string, unknown> | null;\n if (typeof d !== \"object\" || d === null || d.source !== SOURCE) return null;\n if (d.type === \"refresh\") return { source: SOURCE, type: \"refresh\" };\n if ((d.type === \"select\" || d.type === \"scroll\") && typeof d.key === \"string\" && KEY.test(d.key)) return { source: SOURCE, type: d.type, key: d.key };\n return null;\n}\n\n/** The composer's side: posts to the preview's window, addressed to its origin only. */\nexport function postToPreview(target: Pick<Window, \"postMessage\"> | null | undefined, origin: string, message: PreviewMessage): void {\n target?.postMessage(message, origin);\n}\n\n/** The attribute that names a section in the preview page: `<div data-shop-key=\"s_8f2c\">` (a block: the outline is its ring). */\nexport const SHOP_KEY_ATTRIBUTE = \"data-shop-key\";\n\n/**\n * The page's side: outlines the selected section (`data-shop-selected`, drawn by `blocks.css`), scrolls it into view, and calls\n * `onRefresh` when the draft changed. Returns the function that removes it. Only runs in an iframe of the composer's origin.\n */\nexport function connectShopPreview({ composerOrigin, onRefresh, root = document }: { composerOrigin: string; onRefresh?: () => void; root?: Document }): () => void {\n const find = (key: string) => root.querySelector<HTMLElement>(`[${SHOP_KEY_ATTRIBUTE}=\"${key}\"]`);\n const handler = (event: MessageEvent) => {\n // The origin first, before anything else is read from the message.\n if (event.origin !== composerOrigin) return;\n const m = readPreviewMessage(event, composerOrigin);\n if (!m) return;\n if (m.type === \"refresh\") {\n onRefresh?.();\n return;\n }\n for (const selected of root.querySelectorAll<HTMLElement>(\"[data-shop-selected]\")) delete selected.dataset.shopSelected;\n const el = find(m.key);\n if (!el) return;\n el.dataset.shopSelected = \"\";\n if (m.type === \"scroll\") {\n const reduced = typeof matchMedia === \"function\" && matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n el.scrollIntoView({ block: \"center\", behavior: reduced ? \"auto\" : \"smooth\" });\n }\n };\n window.addEventListener(\"message\", handler);\n return () => window.removeEventListener(\"message\", handler);\n}\n","// The starter documents (ADR-007 §4, §8): the five compositions of the ADR as data — a section list and a preset. A\n// product's template becomes one of these; the composer's « Start from » lists them. They hold no price, no text of a\n// shop and no photo: references and rules only.\nimport type { SectionOf, ShopPage } from \"./schema\";\n\nconst s = (key: string) => key;\nconst doc = (preset: string, density: \"compact\" | \"airy\", sections: ShopPage[\"sections\"]): ShopPage => ({\n schema: 1,\n preset: { id: preset, version: 1 },\n density,\n sections,\n});\nconst hero = (variant: \"poster\" | \"split\" | \"banner\" | \"tv\"): SectionOf<\"hero\"> => ({\n key: s(\"s_hero\"),\n type: \"hero\",\n variant,\n settings: { focus: \"center\" },\n blocks: [\n { key: \"b_open\", type: \"fact\", settings: { kind: \"open-now\" } },\n { key: \"b_area\", type: \"fact\", settings: { kind: \"area\" } },\n { key: \"b_score\", type: \"fact\", settings: { kind: \"score\" } },\n ],\n});\nconst menu = (columns: 1 | 2, aside: \"hours\" | \"none\"): SectionOf<\"services\"> => ({\n key: s(\"s_services\"),\n type: \"services\",\n variant: \"menu\",\n settings: { source: \"all\", groupBy: \"category\", columns, aside },\n});\nconst booking = (variant: \"strip\" | \"panel\" | \"sticky\", key: string): SectionOf<\"booking\"> => ({ key, type: \"booking\", variant, settings: { count: 4 } });\nconst gallery = (variant: \"mosaic\" | \"filmstrip\" | \"wall\" | \"grid\", key: string, extra: Partial<Pick<SectionOf<\"gallery\">, \"settings\" | \"blocks\">> = {}): SectionOf<\"gallery\"> => ({\n key,\n type: \"gallery\",\n variant,\n settings: { source: \"all\", texture: \"plaster\" },\n ...extra,\n});\n\n/** The salon, compact: the poster, the next free times, the price board beside the hours, a filmstrip, the reviews. */\nexport const salonCompact = doc(\"salon-vitrine\", \"compact\", [\n hero(\"poster\"),\n booking(\"strip\", \"s_times\"),\n menu(1, \"hours\"),\n gallery(\"filmstrip\", \"s_photos\"),\n { key: \"s_reviews\", type: \"reviews\", variant: \"summary-cards\", settings: { rule: \"best\", count: 2 } },\n booking(\"panel\", \"s_book\"),\n]);\n\n/** The salon, editorial: a split hero, the quote, the two-column menu, the mosaic, the visit. */\nexport const salonEditorial = doc(\"salon-atelier\", \"airy\", [\n hero(\"split\"),\n { key: \"s_story\", type: \"story\", variant: \"quote\", settings: { body: {} } },\n menu(2, \"none\"),\n gallery(\"mosaic\", \"s_photos\"),\n { key: \"s_visit\", type: \"visit\", variant: \"split\", settings: { showPhone: true } },\n booking(\"panel\", \"s_book\"),\n]);\n\n/** The salon, gallery first: the sign and the old TV, the mosaic, the menu, the wall. */\nexport const salonGallery = doc(\"salon-atelier\", \"compact\", [\n hero(\"tv\"),\n gallery(\"mosaic\", \"s_photos\"),\n menu(1, \"hours\"),\n gallery(\"wall\", \"s_wall\", { blocks: [{ key: \"b_note\", type: \"note\", settings: { text: \"Merci Jade !\", signature: \"Nadia\" } }] }),\n booking(\"sticky\", \"s_sticky\"),\n]);\n\n/** The dog walker, route: the poster, the areas, the menu, the next free times, a filmstrip. */\nexport const petsRoute = doc(\"pets-canal\", \"compact\", [\n hero(\"poster\"),\n { key: \"s_visit\", type: \"visit\", variant: \"map\", settings: { showPhone: false } },\n menu(1, \"none\"),\n booking(\"strip\", \"s_times\"),\n gallery(\"filmstrip\", \"s_photos\"),\n]);\n\n/** The dog walker, journal: a hero on paper, the notebook wall, the menu, the TV with notes. */\nexport const petsJournal = doc(\"pets-carnet\", \"airy\", [\n hero(\"split\"),\n gallery(\"wall\", \"s_wall\", { settings: { source: \"all\", texture: \"ridge\" } }),\n menu(1, \"none\"),\n { key: \"s_tv\", type: \"video\", variant: \"tv\", settings: { cabinet: \"portable\" } },\n booking(\"panel\", \"s_book\"),\n]);\n\nexport const shopStarters = { salonCompact, salonEditorial, salonGallery, petsRoute, petsJournal } as const;\nexport type ShopStarterId = keyof typeof shopStarters;\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,YAAY,OAAO;AAOZ,IAAM,sBAAsB;AAG5B,IAAM,YAAc,SAAO;AAAA,EAChC,IAAM,SAAO,EAAE,MAAQ,QAAM,mBAAmB,0BAA0B,CAAC;AAAA,EAC3E,SAAW,MAAI,EAAE,MAAQ,UAAQ,CAAC,CAAC;AACrC,CAAC;AAED,IAAM,eAAiB;AAAA,EACrB;AAAA,EACA,oBAAoB,IAAI,CAAC,MAAM,EAAE,MAAM;AACzC;AAEO,IAAM,iBACV,SAAO;AAAA,EACN,QAAU,UAAQ,mBAAmB;AAAA,EACrC,QAAQ;AAAA;AAAA,EAER,SAAW,WAAW,OAAK,CAAC,WAAW,MAAM,CAAC,CAAC;AAAA;AAAA,EAE/C,QAAU,WAAW,SAAO,EAAE,MAAQ,QAAM,wBAAwB,uBAAuB,CAAC,CAAC;AAAA,EAC7F,UAAY,QAAM,YAAY,EAAE,MAAQ,YAAU,CAAC,GAAK,YAAU,YAAY,QAAQ,CAAC;AACzF,CAAC,EACA;AAAA,EACG,cAAY,CAAC,MAAM,QAAQ;AAC3B,UAAM,MAAM,CAAC,MAA2B,YAAoB,IAAI,OAAO,KAAK,EAAE,MAAM,UAAU,SAAS,MAAM,OAAO,KAAK,CAAC;AAC1H,UAAM,OAAO,oBAAI,IAAY;AAC7B,SAAK,SAAS,QAAQ,CAAC,SAAS,MAAM;AACpC,YAAMA,KAAI;AACV,UAAI,KAAK,IAA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,QAAQ,QAAQ,UAAU,EAAE,UAAU,EAAE,QAAQ,OAAO,SAAS,QAAQ,EAAE,CAAC;AAAA,EAC3E,KAAK,GAAG,MAAM;AAAA,EACd,EAAE,KAAK,QAAQ,MAAM,SAAS,SAAS,MAAM,UAAU,EAAE,SAAS,WAAW,EAAE;AAAA,EAC/E,QAAQ,SAAS,QAAQ;AAC3B,CAAC;AAEM,IAAM,eAAe,EAAE,cAAc,gBAAgB,cAAc,WAAW,YAAY;","names":["s","doc"]}
@@ -40,7 +40,7 @@ type PageHeroProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
40
40
  };
41
41
 
42
42
  /** A site of the family. */
43
- type SiteId = "krizaka" | "orazaka" | "yomizaka" | "akinaza" | "ui" | "java" | "ts" | "motion" | "github";
43
+ type SiteId = "krizaka" | "sovkora" | "verikora" | "folioviv" | "ui" | "java" | "ts" | "motion" | "github";
44
44
  /** What a site is: the company, a product, or an open-source project. It chooses the footer's signature line. */
45
45
  type SiteKind = "company" | "product" | "open-source";
46
46
  /**