@jxsuite/studio 10.4.0 → 10.6.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 (346) hide show
  1. package/data/locales/en/elements.json +434 -0
  2. package/data/webdata.json +116 -139
  3. package/dist/chunks/2020-rqm7qrje.js +4 -0
  4. package/dist/chunks/adapter-cyy8vbcx.js +4 -0
  5. package/dist/chunks/add-new-flow-8cgtejv2.js +4 -0
  6. package/dist/chunks/{cf-account-picker-xb8vvt2h.js → cf-account-picker-v3qd2dhw.js} +3 -3
  7. package/dist/chunks/cf-settings-1fnw874z.js +4 -0
  8. package/dist/chunks/{color-area-h8dbasp1.js → color-area-frd9y9q6.js} +2 -2
  9. package/dist/chunks/color-field-rebpbe33.js +4 -0
  10. package/dist/chunks/{color-slider-nz2mrzky.js → color-slider-6bzmk3s7.js} +2 -2
  11. package/dist/chunks/color-t2bnnj8y.js +4 -0
  12. package/dist/chunks/{combobox-6hs00996.js → combobox-c49x7gf1.js} +3 -3
  13. package/dist/chunks/components-y8yhdd7d.js +4 -0
  14. package/dist/chunks/content-source-9e7qvmsf.js +4 -0
  15. package/dist/chunks/convert-to-repeater-pd2w4z21.js +4 -0
  16. package/dist/chunks/editor-mb9jzdrw.js +4 -0
  17. package/dist/chunks/entry-commands-at0wnx3f.js +4 -0
  18. package/dist/chunks/extension-sections-4z9qq0gh.js +4 -0
  19. package/dist/chunks/file-ops-dtdvjmza.js +4 -0
  20. package/dist/chunks/files-8pf70854.js +4 -0
  21. package/dist/chunks/format-host-fd3m2y2a.js +4 -0
  22. package/dist/chunks/fs-events-hrk29vcv.js +4 -0
  23. package/dist/chunks/grid-open-bh74v82z.js +4 -0
  24. package/dist/chunks/{grid-view-2f03wcgw.js → grid-view-a51mgzmq.js} +17 -17
  25. package/dist/chunks/{icons-gb967qc8.js → icons-qp8fn1k8.js} +2 -2
  26. package/dist/chunks/{iframe-entry-btck0e9s.js → iframe-entry-mpwe5pwk.js} +4 -4
  27. package/dist/chunks/{iframe-entry-2x9bn5ng.js → iframe-entry-msd43x9h.js} +4 -4
  28. package/dist/chunks/iframe-entry-rt8jz5t8.js +5 -0
  29. package/dist/chunks/{iframe-entry-b5qgggyp.js → iframe-entry-v40cr813.js} +4 -4
  30. package/dist/chunks/iframe-host-q0s0wwy3.js +4 -0
  31. package/dist/chunks/{image-bake-4afr4y6a.js → image-bake-q9ajdjsj.js} +3 -3
  32. package/dist/chunks/{image-editor-x7t8jbjn.js → image-editor-ke9std9b.js} +3 -3
  33. package/dist/chunks/index-57ang7ma.js +4 -0
  34. package/dist/chunks/index-eytr7av4.js +17 -0
  35. package/dist/chunks/{index-yjrfeks8.js → index-x495reff.js} +3 -3
  36. package/dist/chunks/{javascript-hy2mws8v.js → javascript-qe34bvaz.js} +3 -3
  37. package/dist/chunks/jsonMode-m8rseh31.js +13 -0
  38. package/dist/chunks/jx-validate-bbd1mary.js +4 -0
  39. package/dist/chunks/layers-panel-wcjtdqsa.js +4 -0
  40. package/dist/chunks/layers-yscpys6q.js +4 -0
  41. package/dist/chunks/{listbox-7gka1h86.js → listbox-tktzq5xj.js} +2 -2
  42. package/dist/chunks/lit-html-qm5wbhqz.js +4 -0
  43. package/dist/chunks/media-library-2hfff88g.js +4 -0
  44. package/dist/chunks/media-open-4pb05cne.js +4 -0
  45. package/dist/chunks/media-picker-bzktmmwr.js +4 -0
  46. package/dist/chunks/menu-xc3cbgsd.js +4 -0
  47. package/dist/chunks/{monaco-binding-a51py33c.js → monaco-binding-7t38arh9.js} +3 -3
  48. package/dist/chunks/monaco-buffer-3vz94c9f.js +4 -0
  49. package/dist/chunks/monaco-setup-fstdew02.js +4 -0
  50. package/dist/chunks/notify-gbdcckrh.js +4 -0
  51. package/dist/chunks/parse-fpdzgk4c.js +4 -0
  52. package/dist/chunks/platform-9g72gdqr.js +4 -0
  53. package/dist/chunks/popover-cnmsav6b.js +4 -0
  54. package/dist/chunks/publish-panel-91x1cb5d.js +4 -0
  55. package/dist/chunks/publish-quick-e2dmf7eg.js +4 -0
  56. package/dist/chunks/publish-workspace-1x8mnzrj.js +4 -0
  57. package/dist/chunks/quick-search-2m4y6p1x.js +4 -0
  58. package/dist/chunks/references-yg1g9rwx.js +4 -0
  59. package/dist/chunks/right-panel-7mfyhzrk.js +4 -0
  60. package/dist/chunks/source-control-rrc4jgp5.js +4 -0
  61. package/dist/chunks/{split-m5rwn31z.js → split-d15yencd.js} +2 -2
  62. package/dist/chunks/studio-0jhhznxy.js +9 -0
  63. package/dist/chunks/studio-0nb57pjg.js +7 -0
  64. package/dist/chunks/{studio-s24mhq0z.js → studio-0wa4wv4s.js} +4 -4
  65. package/dist/chunks/studio-0z8kp4xk.js +5 -0
  66. package/dist/chunks/{studio-g0hxtcga.js → studio-18gc5t3v.js} +4 -4
  67. package/dist/chunks/{studio-4fnb5648.js → studio-1b79rpcb.js} +4 -4
  68. package/dist/chunks/studio-211q5j7m.js +4 -0
  69. package/dist/chunks/studio-213pyfxh.js +16 -0
  70. package/dist/chunks/studio-2b1smjvp.js +5 -0
  71. package/dist/chunks/{studio-nwf0c32p.js → studio-2v6tc9jp.js} +4 -4
  72. package/dist/chunks/studio-30j0wz99.js +5 -0
  73. package/dist/chunks/studio-3kmqhwtt.js +5 -0
  74. package/dist/chunks/studio-44drsmhw.js +5 -0
  75. package/dist/chunks/{studio-2pk7kc7z.js → studio-495b6f2r.js} +4 -4
  76. package/dist/chunks/{studio-jma2q8r9.js → studio-4gthb2fd.js} +4 -4
  77. package/dist/chunks/{studio-0gvvqj3h.js → studio-4xadhxj1.js} +4 -4
  78. package/dist/chunks/{studio-nvcn2ykc.js → studio-52mzbxqm.js} +4 -4
  79. package/dist/chunks/{studio-v7a7yb5w.js → studio-56mmnsw8.js} +7 -7
  80. package/dist/chunks/studio-59hz8f4r.js +5 -0
  81. package/dist/chunks/{studio-sce30r7b.js → studio-5k9mfafh.js} +3 -3
  82. package/dist/chunks/{studio-rr00ex23.js → studio-5qez462c.js} +6 -6
  83. package/dist/chunks/studio-6tnpg0vx.js +5 -0
  84. package/dist/chunks/studio-6w8mt734.js +6 -0
  85. package/dist/chunks/studio-7hm04x5z.js +5 -0
  86. package/dist/chunks/studio-8atmfjjm.js +7 -0
  87. package/dist/chunks/{studio-wmjmsw0p.js → studio-8n99z71s.js} +4 -4
  88. package/dist/chunks/studio-8vmad6x2.js +5 -0
  89. package/dist/chunks/studio-93p5k4r4.js +5 -0
  90. package/dist/chunks/{studio-2x972v58.js → studio-9gb0m81w.js} +4 -4
  91. package/dist/chunks/studio-a4ymg4vd.js +5 -0
  92. package/dist/chunks/studio-anc8067x.js +5 -0
  93. package/dist/chunks/{studio-2e4hry72.js → studio-dbdt67kr.js} +5 -5
  94. package/dist/chunks/studio-dbex091t.js +5 -0
  95. package/dist/chunks/{studio-amaz545p.js → studio-dj8ctxey.js} +4 -4
  96. package/dist/chunks/{studio-k2evngrj.js → studio-ed9bz68j.js} +5 -5
  97. package/dist/chunks/{studio-4bgvvzhv.js → studio-fe2d1fp5.js} +4 -4
  98. package/dist/chunks/{studio-45mj4jqe.js → studio-fgp4cyy3.js} +4 -4
  99. package/dist/chunks/studio-ft706q02.js +5 -0
  100. package/dist/chunks/studio-g79s1dyg.js +6 -0
  101. package/dist/chunks/{studio-pj216fmn.js → studio-gahswxp4.js} +4 -4
  102. package/dist/chunks/studio-gbqc12bk.js +5 -0
  103. package/dist/chunks/studio-gxphbetb.js +6 -0
  104. package/dist/chunks/studio-hdf01j7q.js +7 -0
  105. package/dist/chunks/studio-hf259xzd.js +48 -0
  106. package/dist/chunks/studio-jbva4wxw.js +5 -0
  107. package/dist/chunks/studio-jj9gf1qc.js +5 -0
  108. package/dist/chunks/studio-jsjg3mjv.js +5 -0
  109. package/dist/chunks/studio-jtvb8hd7.js +5 -0
  110. package/dist/chunks/{studio-g9brbewz.js → studio-kp4vzrct.js} +4 -4
  111. package/dist/chunks/studio-kpx02gaa.js +7 -0
  112. package/dist/chunks/{studio-3na1r48j.js → studio-kv1728ex.js} +8 -8
  113. package/dist/chunks/studio-m25ry0mf.js +5 -0
  114. package/dist/chunks/studio-mcbwmkyh.js +5 -0
  115. package/dist/chunks/studio-meajkr51.js +5 -0
  116. package/dist/chunks/studio-mkjrjpr2.js +6 -0
  117. package/dist/chunks/{studio-eqcddvc2.js → studio-mr084886.js} +201 -201
  118. package/dist/chunks/studio-mrb10hv3.js +5 -0
  119. package/dist/chunks/{studio-0939t1q1.js → studio-nhpg405j.js} +4 -4
  120. package/dist/chunks/studio-nsec0hxm.js +64 -0
  121. package/dist/chunks/{studio-xx3r3sb0.js → studio-nv0mh0p5.js} +4 -4
  122. package/dist/chunks/studio-pafmb06w.js +5 -0
  123. package/dist/chunks/{studio-pm17wdc4.js → studio-pgftd79b.js} +4 -4
  124. package/dist/chunks/{studio-4zd6an2b.js → studio-pk961xgz.js} +4 -4
  125. package/dist/chunks/studio-pzbr7g05.js +5 -0
  126. package/dist/chunks/studio-qcc5hsw2.js +10 -0
  127. package/dist/chunks/studio-qfq58c8n.js +5 -0
  128. package/dist/chunks/studio-qvb2jr83.js +5 -0
  129. package/dist/chunks/studio-r85zw6ay.js +5 -0
  130. package/dist/chunks/studio-s0kwce5w.js +9 -0
  131. package/dist/chunks/studio-s6ymkf3q.js +14 -0
  132. package/dist/chunks/{studio-0x6f3nk9.js → studio-s7p5ccxa.js} +4 -4
  133. package/dist/chunks/{studio-1410q5dw.js → studio-s9jjap3x.js} +4 -4
  134. package/dist/chunks/{studio-evq47j2z.js → studio-t5hde1ws.js} +4 -4
  135. package/dist/chunks/studio-vj9yv897.js +5 -0
  136. package/dist/chunks/studio-wmak8xjw.js +5 -0
  137. package/dist/chunks/{studio-bnc50f9h.js → studio-wqsmvtqj.js} +4 -4
  138. package/dist/chunks/studio-x3z3rhej.js +5 -0
  139. package/dist/chunks/{studio-bg8pzprg.js → studio-xb55kpmy.js} +4 -4
  140. package/dist/chunks/studio-xxtdajmv.js +12 -0
  141. package/dist/chunks/studio-xxttcym1.js +5 -0
  142. package/dist/chunks/{studio-90zkgne5.js → studio-y2zsnzye.js} +7 -7
  143. package/dist/chunks/{studio-3qr08sxq.js → studio-y3tjh2xb.js} +3 -3
  144. package/dist/chunks/studio-y4f1rdsj.js +5 -0
  145. package/dist/chunks/studio-ybkd5w8k.js +5 -0
  146. package/dist/chunks/{studio-tpxcryf2.js → studio-yetr4gg1.js} +4 -4
  147. package/dist/chunks/studio-z295anhs.js +6 -0
  148. package/dist/chunks/studio-z89e6wpg.js +9 -0
  149. package/dist/chunks/{studio-5tet77de.js → studio-zbwr6prc.js} +3 -3
  150. package/dist/chunks/{studio-daksw8kh.js → studio-zdbsv5q2.js} +4 -4
  151. package/dist/chunks/{studio-abh9kfdh.js → studio-zvthj8hg.js} +4 -4
  152. package/dist/chunks/toast-2kn2vrn4.js +4 -0
  153. package/dist/chunks/{toast-host-g3r2s0kn.js → toast-host-3rxeyj3d.js} +3 -3
  154. package/dist/chunks/{tooltip-dj1pvgz7.js → tooltip-ghkxkasp.js} +3 -3
  155. package/dist/chunks/{tree-j0ebwr5s.js → tree-vw4nc63s.js} +2 -2
  156. package/dist/chunks/tsMode-7gngmamr.js +14 -0
  157. package/dist/chunks/workspace-gv0hxgsm.js +4 -0
  158. package/dist/chunks/workspace-home-j7e0mjy5.js +4 -0
  159. package/dist/chunks/{ws-client-arz2qsy9.js → ws-client-vs11sxc5.js} +3 -3
  160. package/dist/iframe-entry.js +14 -14
  161. package/dist/manifest.json +84 -83
  162. package/dist/studio.js +99 -98
  163. package/dist/workers/ts.worker.js +3 -3
  164. package/package.json +12 -12
  165. package/src/browse/library-layouts.ts +9 -12
  166. package/src/browse/library-pane.ts +22 -16
  167. package/src/browse/library-source.ts +3 -4
  168. package/src/browse/preview-style.ts +2 -1
  169. package/src/canvas/canvas-live-render.ts +2 -5
  170. package/src/canvas/canvas-page-context.ts +5 -0
  171. package/src/canvas/canvas-render.ts +6 -1
  172. package/src/canvas/iframe-drop.ts +84 -1
  173. package/src/canvas/iframe-entry.ts +9 -6
  174. package/src/canvas/iframe-render.ts +13 -0
  175. package/src/collab/collab-session.ts +2 -2
  176. package/src/commands/levels.ts +1 -1
  177. package/src/content/entry-commands.ts +32 -27
  178. package/src/content/entry-editor.ts +46 -44
  179. package/src/content/entry-inspector.ts +15 -12
  180. package/src/content/entry-model.ts +3 -3
  181. package/src/content/entry-summaries.ts +5 -5
  182. package/src/content/hold-state.ts +172 -0
  183. package/src/content/page-summaries.ts +10 -14
  184. package/src/create/add-new-flow.ts +2 -1
  185. package/src/editor/convert-targets.ts +2 -23
  186. package/src/editor/inline-edit.ts +6 -1
  187. package/src/editor/repeater-scope.ts +333 -74
  188. package/src/editor/slash-menu.ts +35 -17
  189. package/src/files/files.ts +18 -0
  190. package/src/format/format-choices.ts +5 -5
  191. package/src/format/format-host.ts +35 -3
  192. package/src/grid/redirects-grid.ts +4 -4
  193. package/src/grid/sources/content-source.ts +42 -66
  194. package/src/locale/element-names.ts +131 -0
  195. package/src/panels/block-action-bar.ts +3 -4
  196. package/src/panels/dnd.ts +3 -1
  197. package/src/panels/elements-panel.ts +93 -36
  198. package/src/panels/events-panel.ts +6 -2
  199. package/src/panels/formula-workspace.ts +9 -0
  200. package/src/panels/imports-panel.ts +3 -2
  201. package/src/panels/navigator-panels.ts +10 -10
  202. package/src/panels/panel-registry.ts +3 -3
  203. package/src/panels/properties-panel.ts +127 -35
  204. package/src/panels/site-panel.ts +2 -1
  205. package/src/panels/statement-editor.ts +4 -0
  206. package/src/panels/style-panel.ts +2 -1
  207. package/src/panels/styles-panel.ts +2 -2
  208. package/src/panels/tab-strip.ts +29 -26
  209. package/src/platforms/cloud.ts +5 -2
  210. package/src/services/ai-command-tools.ts +2 -1
  211. package/src/services/ai-project-tools.ts +21 -8
  212. package/src/services/ai-tools.ts +5 -5
  213. package/src/services/ai-write-report.ts +22 -4
  214. package/src/services/context-manager.ts +110 -2
  215. package/src/services/document-assistant.ts +2 -2
  216. package/src/services/harness/chat-reducer.ts +9 -4
  217. package/src/services/jxn-language.ts +110 -0
  218. package/src/services/model-uri.ts +3 -0
  219. package/src/services/monaco-setup.ts +6 -2
  220. package/src/services/render-critic.ts +234 -12
  221. package/src/services/tool-executor.ts +16 -8
  222. package/src/settings/contributed-section.ts +2 -1
  223. package/src/settings/extension-commands.ts +2 -1
  224. package/src/settings/general-settings.ts +2 -2
  225. package/src/settings/settings-document.ts +5 -5
  226. package/src/shell.ts +1 -1
  227. package/src/studio.ts +28 -11
  228. package/src/style/variables-view.ts +2 -2
  229. package/src/surfaces/collections-panel.json +1 -1
  230. package/src/surfaces/collections-panel.ts +1 -1
  231. package/src/surfaces/entry-editor.json +10 -10
  232. package/src/surfaces/entry-editor.ts +22 -19
  233. package/src/surfaces/entry-inspector.json +11 -11
  234. package/src/surfaces/entry-inspector.ts +17 -10
  235. package/src/surfaces/panel-elements.json +466 -206
  236. package/src/surfaces/panel-elements.ts +61 -25
  237. package/src/surfaces/tab-strip.json +5 -5
  238. package/src/surfaces/tab-strip.ts +2 -2
  239. package/src/tabs/project-config.ts +13 -13
  240. package/src/tabs/tab.ts +7 -2
  241. package/src/types.ts +13 -2
  242. package/src/ui/expression-editor.ts +10 -5
  243. package/src/ui/schema-form.ts +18 -1
  244. package/src/utils/edit-display.ts +27 -1
  245. package/src/view.ts +9 -2
  246. package/src/workspace/tab-workspace.ts +2 -2
  247. package/src/workspace/workspace-back.ts +2 -2
  248. package/dist/chunks/2020-906vx2dq.js +0 -4
  249. package/dist/chunks/adapter-hnvad61x.js +0 -4
  250. package/dist/chunks/add-new-flow-v0pm96mr.js +0 -4
  251. package/dist/chunks/cf-settings-mkbcz4z2.js +0 -4
  252. package/dist/chunks/color-04361ttk.js +0 -4
  253. package/dist/chunks/color-field-qv5r2b16.js +0 -4
  254. package/dist/chunks/components-w5zqwva1.js +0 -4
  255. package/dist/chunks/content-source-g38w0d3f.js +0 -4
  256. package/dist/chunks/convert-to-repeater-r8sfxjjm.js +0 -4
  257. package/dist/chunks/editor-wvf5e6j9.js +0 -4
  258. package/dist/chunks/entry-commands-t13dyw3c.js +0 -4
  259. package/dist/chunks/extension-sections-vjzw46xb.js +0 -4
  260. package/dist/chunks/file-ops-1sghzgcr.js +0 -4
  261. package/dist/chunks/files-zrqtgt41.js +0 -4
  262. package/dist/chunks/format-host-9gy76erh.js +0 -4
  263. package/dist/chunks/fs-events-45rhg3me.js +0 -4
  264. package/dist/chunks/grid-open-t4fq6bbm.js +0 -4
  265. package/dist/chunks/iframe-entry-42hpmwz5.js +0 -5
  266. package/dist/chunks/iframe-host-9aq8ze3q.js +0 -4
  267. package/dist/chunks/index-f9qr7kzh.js +0 -4
  268. package/dist/chunks/jsonMode-vj30te2h.js +0 -13
  269. package/dist/chunks/jx-validate-r4ax11e3.js +0 -4
  270. package/dist/chunks/layers-m49nmwvx.js +0 -4
  271. package/dist/chunks/layers-panel-zr92pwdp.js +0 -4
  272. package/dist/chunks/lit-html-k2mb9k0r.js +0 -4
  273. package/dist/chunks/media-library-j74rt0w4.js +0 -4
  274. package/dist/chunks/media-open-mypr0k6b.js +0 -4
  275. package/dist/chunks/media-picker-pemtbsjv.js +0 -4
  276. package/dist/chunks/menu-d2jxpgma.js +0 -4
  277. package/dist/chunks/monaco-buffer-pa0g6ax7.js +0 -4
  278. package/dist/chunks/monaco-setup-0hw9f835.js +0 -4
  279. package/dist/chunks/notify-bwehrp7q.js +0 -4
  280. package/dist/chunks/parse-hee7ne9b.js +0 -4
  281. package/dist/chunks/platform-kv0k65cy.js +0 -4
  282. package/dist/chunks/popover-9tf4cjrk.js +0 -4
  283. package/dist/chunks/publish-panel-vg1n880b.js +0 -4
  284. package/dist/chunks/publish-quick-4fwngwrw.js +0 -4
  285. package/dist/chunks/publish-workspace-jv4w2bx2.js +0 -4
  286. package/dist/chunks/quick-search-nh29rt8a.js +0 -4
  287. package/dist/chunks/references-vqyr5s9x.js +0 -4
  288. package/dist/chunks/right-panel-3ws9f2w0.js +0 -4
  289. package/dist/chunks/source-control-h3hcs5gy.js +0 -4
  290. package/dist/chunks/studio-0khd8xtx.js +0 -4
  291. package/dist/chunks/studio-1ctnw3xv.js +0 -5
  292. package/dist/chunks/studio-1ks5d9y4.js +0 -5
  293. package/dist/chunks/studio-1y9mab9m.js +0 -5
  294. package/dist/chunks/studio-2kpxm0eh.js +0 -7
  295. package/dist/chunks/studio-2zz4qbv9.js +0 -5
  296. package/dist/chunks/studio-3pz4t5a2.js +0 -5
  297. package/dist/chunks/studio-4f7thq0p.js +0 -5
  298. package/dist/chunks/studio-61rg2cz5.js +0 -5
  299. package/dist/chunks/studio-7rrdbvex.js +0 -5
  300. package/dist/chunks/studio-9c6cbq2c.js +0 -4
  301. package/dist/chunks/studio-9dq7rwc7.js +0 -5
  302. package/dist/chunks/studio-9gr7xs9r.js +0 -6
  303. package/dist/chunks/studio-a88ej93p.js +0 -7
  304. package/dist/chunks/studio-acer0g8w.js +0 -5
  305. package/dist/chunks/studio-az3wvyh2.js +0 -5
  306. package/dist/chunks/studio-brh8d2pr.js +0 -5
  307. package/dist/chunks/studio-c2fa783p.js +0 -9
  308. package/dist/chunks/studio-cfnn70h1.js +0 -5
  309. package/dist/chunks/studio-cqxj4fcy.js +0 -5
  310. package/dist/chunks/studio-cw11h078.js +0 -5
  311. package/dist/chunks/studio-dn56z7sn.js +0 -5
  312. package/dist/chunks/studio-egnjpyde.js +0 -9
  313. package/dist/chunks/studio-ejrypvmq.js +0 -5
  314. package/dist/chunks/studio-frc16j8v.js +0 -10
  315. package/dist/chunks/studio-gnazwtv3.js +0 -5
  316. package/dist/chunks/studio-hfqpfmpk.js +0 -5
  317. package/dist/chunks/studio-hh394phe.js +0 -5
  318. package/dist/chunks/studio-j0zf5x2x.js +0 -5
  319. package/dist/chunks/studio-j5fcp6gj.js +0 -5
  320. package/dist/chunks/studio-jd1qb1st.js +0 -7
  321. package/dist/chunks/studio-k0xzrse2.js +0 -64
  322. package/dist/chunks/studio-k1xqrgm5.js +0 -5
  323. package/dist/chunks/studio-k3we3kqb.js +0 -5
  324. package/dist/chunks/studio-knsjyx7n.js +0 -5
  325. package/dist/chunks/studio-mrjtnm62.js +0 -5
  326. package/dist/chunks/studio-n9qba0gx.js +0 -5
  327. package/dist/chunks/studio-nzemfbkk.js +0 -14
  328. package/dist/chunks/studio-pwctzka3.js +0 -16
  329. package/dist/chunks/studio-q80fg1d6.js +0 -12
  330. package/dist/chunks/studio-q9hx2qp0.js +0 -5
  331. package/dist/chunks/studio-qrzmfaf6.js +0 -5
  332. package/dist/chunks/studio-r6mx7vm5.js +0 -7
  333. package/dist/chunks/studio-swedpd82.js +0 -5
  334. package/dist/chunks/studio-tmfcn347.js +0 -6
  335. package/dist/chunks/studio-v5wktj6f.js +0 -5
  336. package/dist/chunks/studio-vpevkfxw.js +0 -5
  337. package/dist/chunks/studio-wqfaqw4m.js +0 -5
  338. package/dist/chunks/studio-xpx91fby.js +0 -6
  339. package/dist/chunks/studio-xva3hzkv.js +0 -5
  340. package/dist/chunks/studio-z3fztxrp.js +0 -9
  341. package/dist/chunks/studio-z9453ypn.js +0 -6
  342. package/dist/chunks/toast-w11qpkyz.js +0 -4
  343. package/dist/chunks/tsMode-jg1dtphj.js +0 -14
  344. package/dist/chunks/workspace-6ztqcrsh.js +0 -4
  345. package/dist/chunks/workspace-home-rse9h8a0.js +0 -4
  346. package/src/content/draft-state.ts +0 -108
package/data/webdata.json CHANGED
@@ -964,65 +964,42 @@
964
964
  ["zoom", "1"]
965
965
  ],
966
966
  "elements": {
967
- "Form": [
967
+ "text": [
968
968
  {
969
- "tag": "form"
970
- },
971
- {
972
- "tag": "input"
973
- },
974
- {
975
- "tag": "textarea"
976
- },
977
- {
978
- "tag": "select"
979
- },
980
- {
981
- "tag": "option"
982
- },
983
- {
984
- "tag": "optgroup"
985
- },
986
- {
987
- "tag": "button"
969
+ "tag": "h1"
988
970
  },
989
971
  {
990
- "tag": "label"
972
+ "tag": "h2"
991
973
  },
992
974
  {
993
- "tag": "fieldset"
975
+ "tag": "h3"
994
976
  },
995
977
  {
996
- "tag": "legend"
978
+ "tag": "h4"
997
979
  },
998
980
  {
999
- "tag": "output"
981
+ "tag": "h5"
1000
982
  },
1001
983
  {
1002
- "tag": "progress"
984
+ "tag": "h6"
1003
985
  },
1004
986
  {
1005
- "tag": "meter"
987
+ "tag": "p"
1006
988
  },
1007
989
  {
1008
- "tag": "datalist"
1009
- }
1010
- ],
1011
- "Interactive": [
1012
- {
1013
- "tag": "details"
990
+ "tag": "blockquote"
1014
991
  },
1015
992
  {
1016
- "tag": "summary"
993
+ "tag": "pre"
1017
994
  },
1018
995
  {
1019
- "tag": "dialog"
996
+ "tag": "hr"
1020
997
  },
1021
998
  {
1022
- "tag": "menu"
999
+ "tag": "address"
1023
1000
  }
1024
1001
  ],
1025
- "List & Table": [
1002
+ "lists": [
1026
1003
  {
1027
1004
  "tag": "ul"
1028
1005
  },
@@ -1042,279 +1019,279 @@
1042
1019
  "tag": "dd"
1043
1020
  },
1044
1021
  {
1045
- "tag": "table"
1046
- },
1022
+ "tag": "menu"
1023
+ }
1024
+ ],
1025
+ "media": [
1047
1026
  {
1048
- "tag": "thead"
1027
+ "tag": "img"
1049
1028
  },
1050
1029
  {
1051
- "tag": "tbody"
1030
+ "tag": "figure"
1052
1031
  },
1053
1032
  {
1054
- "tag": "tfoot"
1033
+ "tag": "figcaption"
1055
1034
  },
1056
1035
  {
1057
- "tag": "tr"
1036
+ "tag": "video"
1058
1037
  },
1059
1038
  {
1060
- "tag": "th"
1039
+ "tag": "audio"
1061
1040
  },
1062
1041
  {
1063
- "tag": "td"
1042
+ "tag": "picture"
1064
1043
  },
1065
1044
  {
1066
- "tag": "caption"
1045
+ "tag": "source"
1067
1046
  },
1068
1047
  {
1069
- "tag": "colgroup"
1048
+ "tag": "track"
1070
1049
  },
1071
1050
  {
1072
- "tag": "col"
1051
+ "tag": "iframe"
1073
1052
  }
1074
1053
  ],
1075
- "Media": [
1054
+ "layout": [
1076
1055
  {
1077
- "tag": "img"
1056
+ "tag": "section"
1078
1057
  },
1079
1058
  {
1080
- "tag": "picture"
1059
+ "tag": "div"
1081
1060
  },
1082
1061
  {
1083
- "tag": "source"
1062
+ "tag": "header"
1084
1063
  },
1085
1064
  {
1086
- "tag": "video"
1065
+ "tag": "footer"
1087
1066
  },
1088
1067
  {
1089
- "tag": "audio"
1068
+ "tag": "main"
1090
1069
  },
1091
1070
  {
1092
- "tag": "track"
1071
+ "tag": "nav"
1093
1072
  },
1094
1073
  {
1095
- "tag": "canvas"
1074
+ "tag": "article"
1096
1075
  },
1097
1076
  {
1098
- "tag": "iframe"
1077
+ "tag": "aside"
1099
1078
  },
1100
1079
  {
1101
- "tag": "embed"
1080
+ "tag": "search"
1102
1081
  },
1103
1082
  {
1104
- "tag": "object"
1083
+ "tag": "hgroup"
1105
1084
  }
1106
1085
  ],
1107
- "Structure": [
1086
+ "interactive": [
1108
1087
  {
1109
- "tag": "div"
1088
+ "tag": "a"
1110
1089
  },
1111
1090
  {
1112
- "tag": "section"
1091
+ "tag": "button"
1113
1092
  },
1114
1093
  {
1115
- "tag": "article"
1094
+ "tag": "details"
1116
1095
  },
1117
1096
  {
1118
- "tag": "aside"
1097
+ "tag": "summary"
1119
1098
  },
1120
1099
  {
1121
- "tag": "main"
1122
- },
1100
+ "tag": "dialog"
1101
+ }
1102
+ ],
1103
+ "forms": [
1123
1104
  {
1124
- "tag": "header"
1105
+ "tag": "form"
1125
1106
  },
1126
1107
  {
1127
- "tag": "footer"
1108
+ "tag": "label"
1128
1109
  },
1129
1110
  {
1130
- "tag": "nav"
1111
+ "tag": "input"
1131
1112
  },
1132
1113
  {
1133
- "tag": "search"
1114
+ "tag": "textarea"
1134
1115
  },
1135
1116
  {
1136
- "tag": "hgroup"
1117
+ "tag": "select"
1137
1118
  },
1138
1119
  {
1139
- "tag": "slot"
1140
- }
1141
- ],
1142
- "Text": [
1143
- {
1144
- "tag": "h1"
1120
+ "tag": "option"
1145
1121
  },
1146
1122
  {
1147
- "tag": "h2"
1123
+ "tag": "optgroup"
1148
1124
  },
1149
1125
  {
1150
- "tag": "h3"
1126
+ "tag": "datalist"
1151
1127
  },
1152
1128
  {
1153
- "tag": "h4"
1129
+ "tag": "fieldset"
1154
1130
  },
1155
1131
  {
1156
- "tag": "h5"
1132
+ "tag": "legend"
1157
1133
  },
1158
1134
  {
1159
- "tag": "h6"
1135
+ "tag": "output"
1160
1136
  },
1161
1137
  {
1162
- "tag": "p"
1138
+ "tag": "progress"
1163
1139
  },
1164
1140
  {
1165
- "tag": "span"
1166
- },
1141
+ "tag": "meter"
1142
+ }
1143
+ ],
1144
+ "tables": [
1167
1145
  {
1168
- "tag": "a"
1146
+ "tag": "table"
1169
1147
  },
1170
1148
  {
1171
- "tag": "strong"
1149
+ "tag": "caption"
1172
1150
  },
1173
1151
  {
1174
- "tag": "em"
1152
+ "tag": "thead"
1175
1153
  },
1176
1154
  {
1177
- "tag": "small"
1155
+ "tag": "tbody"
1178
1156
  },
1179
1157
  {
1180
- "tag": "mark"
1158
+ "tag": "tfoot"
1181
1159
  },
1182
1160
  {
1183
- "tag": "code"
1161
+ "tag": "tr"
1184
1162
  },
1185
1163
  {
1186
- "tag": "pre"
1164
+ "tag": "th"
1187
1165
  },
1188
1166
  {
1189
- "tag": "blockquote"
1167
+ "tag": "td"
1190
1168
  },
1191
1169
  {
1192
- "tag": "q"
1170
+ "tag": "colgroup"
1193
1171
  },
1194
1172
  {
1195
- "tag": "abbr"
1196
- },
1173
+ "tag": "col"
1174
+ }
1175
+ ],
1176
+ "inline": [
1197
1177
  {
1198
- "tag": "time"
1178
+ "tag": "span"
1199
1179
  },
1200
1180
  {
1201
- "tag": "sub"
1181
+ "tag": "strong"
1202
1182
  },
1203
1183
  {
1204
- "tag": "sup"
1184
+ "tag": "em"
1205
1185
  },
1206
1186
  {
1207
- "tag": "br"
1187
+ "tag": "b"
1208
1188
  },
1209
1189
  {
1210
- "tag": "hr"
1190
+ "tag": "i"
1211
1191
  },
1212
1192
  {
1213
- "tag": "wbr"
1214
- }
1215
- ],
1216
- "Other": [
1217
- {
1218
- "tag": "address"
1193
+ "tag": "u"
1219
1194
  },
1220
1195
  {
1221
- "tag": "area"
1196
+ "tag": "s"
1222
1197
  },
1223
1198
  {
1224
- "tag": "b"
1199
+ "tag": "small"
1225
1200
  },
1226
1201
  {
1227
- "tag": "base"
1202
+ "tag": "mark"
1228
1203
  },
1229
1204
  {
1230
- "tag": "bdi"
1205
+ "tag": "code"
1231
1206
  },
1232
1207
  {
1233
- "tag": "bdo"
1208
+ "tag": "kbd"
1234
1209
  },
1235
1210
  {
1236
- "tag": "body"
1211
+ "tag": "samp"
1237
1212
  },
1238
1213
  {
1239
- "tag": "cite"
1214
+ "tag": "var"
1240
1215
  },
1241
1216
  {
1242
- "tag": "data"
1217
+ "tag": "sub"
1243
1218
  },
1244
1219
  {
1245
- "tag": "del"
1220
+ "tag": "sup"
1246
1221
  },
1247
1222
  {
1248
- "tag": "dfn"
1223
+ "tag": "q"
1249
1224
  },
1250
1225
  {
1251
- "tag": "figcaption"
1226
+ "tag": "cite"
1252
1227
  },
1253
1228
  {
1254
- "tag": "figure"
1229
+ "tag": "abbr"
1255
1230
  },
1256
1231
  {
1257
- "tag": "head"
1232
+ "tag": "dfn"
1258
1233
  },
1259
1234
  {
1260
- "tag": "html"
1235
+ "tag": "time"
1261
1236
  },
1262
1237
  {
1263
- "tag": "i"
1238
+ "tag": "data"
1264
1239
  },
1265
1240
  {
1266
- "tag": "ins"
1241
+ "tag": "del"
1267
1242
  },
1268
1243
  {
1269
- "tag": "kbd"
1244
+ "tag": "ins"
1270
1245
  },
1271
1246
  {
1272
- "tag": "link"
1247
+ "tag": "br"
1273
1248
  },
1274
1249
  {
1275
- "tag": "map"
1250
+ "tag": "wbr"
1276
1251
  },
1277
1252
  {
1278
- "tag": "meta"
1253
+ "tag": "bdi"
1279
1254
  },
1280
1255
  {
1281
- "tag": "noscript"
1256
+ "tag": "bdo"
1282
1257
  },
1283
1258
  {
1284
- "tag": "rp"
1259
+ "tag": "ruby"
1285
1260
  },
1286
1261
  {
1287
1262
  "tag": "rt"
1288
1263
  },
1289
1264
  {
1290
- "tag": "ruby"
1291
- },
1265
+ "tag": "rp"
1266
+ }
1267
+ ],
1268
+ "advanced": [
1292
1269
  {
1293
- "tag": "s"
1270
+ "tag": "area"
1294
1271
  },
1295
1272
  {
1296
- "tag": "samp"
1273
+ "tag": "canvas"
1297
1274
  },
1298
1275
  {
1299
- "tag": "script"
1276
+ "tag": "embed"
1300
1277
  },
1301
1278
  {
1302
- "tag": "selectedcontent"
1279
+ "tag": "map"
1303
1280
  },
1304
1281
  {
1305
- "tag": "style"
1282
+ "tag": "noscript"
1306
1283
  },
1307
1284
  {
1308
- "tag": "template"
1285
+ "tag": "object"
1309
1286
  },
1310
1287
  {
1311
- "tag": "title"
1288
+ "tag": "selectedcontent"
1312
1289
  },
1313
1290
  {
1314
- "tag": "u"
1291
+ "tag": "slot"
1315
1292
  },
1316
1293
  {
1317
- "tag": "var"
1294
+ "tag": "template"
1318
1295
  }
1319
1296
  ]
1320
1297
  },
@@ -0,0 +1,4 @@
1
+ import{Bt,vn,Ac,ib,Xv,rb,H0,nE,iE,rE,oE,sE,aE,lE,cE,dE}from"./studio-xxtdajmv.js";import{pe}from"./studio-nhpg405j.js";var O=pe(function(k){Object.defineProperty(k,"__esModule",{value:!0});k.dynamicAnchor=void 0;var y=Bt(),Pe=Ac(),g=H0(),N=iE(),Re={keyword:"$dynamicAnchor",schemaType:"string",code:(e)=>T(e,e.schema)};function T(e,t){let{gen:r,it:o}=e;o.schemaEnv.root.dynamicAnchors[t]=!0;let n=y._`${Pe.default.dynamicAnchors}${y.getProperty(t)}`,s=o.errSchemaPath==="#"?o.validateName:Ae(e);r.if(y._`!${n}`,()=>r.assign(n,s))}k.dynamicAnchor=T;function Ae(e){let{schemaEnv:t,schema:r,self:o}=e.it,{root:n,baseId:s,localRefs:l,meta:d}=t.root,{schemaId:a}=o.opts,f=new g.SchemaEnv({schema:r,schemaId:a,root:n,baseId:s,localRefs:l,meta:d});return g.compileSchema.call(o,f),N.getValidate(e,f)}k.default=Re});var M=pe(function(V){Object.defineProperty(V,"__esModule",{value:!0});V.dynamicRef=void 0;var v=Bt(),Me=Ac(),_=iE(),Se={keyword:"$dynamicRef",schemaType:"string",code:(e)=>C(e,e.schema)};function C(e,t){let{gen:r,keyword:o,it:n}=e;if(t[0]!=="#")throw Error(`"${o}" only supports hash fragment reference`);let s=t.slice(1);if(n.allErrors)l();else{let a=r.let("valid",!1);l(a),e.ok(a)}function l(a){if(n.schemaEnv.root.dynamicAnchors[s]){let f=r.let("_v",v._`${Me.default.dynamicAnchors}${v.getProperty(s)}`);r.if(f,d(f,a),d(n.validateName,a))}else d(n.validateName,a)()}function d(a,f){return f?()=>r.block(()=>{_.callRef(e,a),r.let(f,!0)}):()=>_.callRef(e,a)}}V.dynamicRef=C;V.default=Se});var L=pe(function(z){Object.defineProperty(z,"__esModule",{value:!0});var K=O(),G=vn(),Ie={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){if(e.schema)K.dynamicAnchor(e,"");else G.checkStrictMode(e.it,"$recursiveAnchor: false is ignored")}};z.default=Ie});var F=pe(function(Z){Object.defineProperty(Z,"__esModule",{value:!0});var U=M(),Ne={keyword:"$recursiveRef",schemaType:"string",code:(e)=>U.dynamicRef(e,e.schema)};Z.default=Ne});var B=pe(function(H){Object.defineProperty(H,"__esModule",{value:!0});var ke=O(),Ee=M(),Ce=L(),Ve=F(),De=[ke.default,Ee.default,Ce.default,Ve.default];H.default=De});var Q=pe(function(J){Object.defineProperty(J,"__esModule",{value:!0});var j=sE(),Ge={keyword:"dependentRequired",type:"object",schemaType:"object",error:j.error,code:(e)=>j.validatePropertyDeps(e)};J.default=Ge});var Y=pe(function(X){Object.defineProperty(X,"__esModule",{value:!0});var W=sE(),Le={keyword:"dependentSchemas",type:"object",schemaType:"object",code:(e)=>W.validateSchemaDeps(e)};X.default=Le});var re=pe(function(te){Object.defineProperty(te,"__esModule",{value:!0});var ee=vn(),Ze={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){if(t.contains===void 0)ee.checkStrictMode(r,`"${e}" without "contains" is ignored`)}};te.default=Ze});var ne=pe(function(ae){Object.defineProperty(ae,"__esModule",{value:!0});var He=Q(),Be=Y(),Je=re(),Qe=[He.default,Be.default,Je.default];ae.default=Qe});var se=pe(function(oe){Object.defineProperty(oe,"__esModule",{value:!0});var i=Bt(),q=vn(),Xe=Ac(),Ye={message:"must NOT have unevaluated properties",params:({params:e})=>i._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},et={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Ye,code(e){let{gen:t,schema:r,data:o,errsCount:n,it:s}=e;if(!n)throw Error("ajv implementation error");let{allErrors:l,props:d}=s;if(d instanceof i.Name)t.if(i._`${d} !== true`,()=>t.forIn("key",o,(c)=>t.if(f(d,c),()=>a(c))));else if(d!==!0)t.forIn("key",o,(c)=>d===void 0?a(c):t.if(A(d,c),()=>a(c)));s.props=!0,e.ok(i._`${n} === ${Xe.default.errors}`);function a(c){if(r===!1){if(e.setParams({unevaluatedProperty:c}),e.error(),!l)t.break();return}if(!q.alwaysValidSchema(s,r)){let p=t.name("valid");if(e.subschema({keyword:"unevaluatedProperties",dataProp:c,dataPropType:q.Type.Str},p),!l)t.if(i.not(p),()=>t.break())}}function f(c,p){return i._`!${c} || !${c}[${p}]`}function A(c,p){let I=[];for(let w in c)if(c[w]===!0)I.push(i._`${p} !== ${w}`);return i.and(...I)}}};oe.default=et});var ce=pe(function(ie){Object.defineProperty(ie,"__esModule",{value:!0});var u=Bt(),P=vn(),rt={message:({params:{len:e}})=>u.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>u._`{limit: ${e}}`},at={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:rt,code(e){let{gen:t,schema:r,data:o,it:n}=e,s=n.items||0;if(s===!0)return;let l=t.const("len",u._`${o}.length`);if(r===!1)e.setParams({len:s}),e.fail(u._`${l} > ${s}`);else if(typeof r=="object"&&!P.alwaysValidSchema(n,r)){let a=t.var("valid",u._`${l} <= ${s}`);t.if(u.not(a),()=>d(a,s)),e.ok(a)}n.items=!0;function d(a,f){t.forRange("i",f,l,(A)=>{if(e.subschema({keyword:"unevaluatedItems",dataProp:A,dataPropType:P.Type.Num},a),!n.allErrors)t.if(u.not(a),()=>t.break())})}}};ie.default=at});var ue=pe(function(de){Object.defineProperty(de,"__esModule",{value:!0});var ot=se(),st=ce(),it=[ot.default,st.default];de.default=it});var fe=pe(function(me){Object.defineProperty(me,"__esModule",{value:!0});var dt=rE(),ut=oE(),mt=aE(),ft=B(),lt=ne(),pt=ue(),yt=lE(),R=cE(),ht=[ft.default,dt.default,ut.default,(0,mt.default)(!0),yt.default,R.metadataVocabulary,R.contentVocabulary,lt.default,pt.default];me.default=ht});var le=pe(function(ir,bt){bt.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var ye=pe(function(cr,gt){gt.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var he=pe(function(dr,vt){vt.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var $e=pe(function(ur,_t){_t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var be=pe(function(mr,jt){jt.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var ge=pe(function(fr,qt){qt.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var ve=pe(function(lr,Pt){Pt.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var _e=pe(function(pr,Rt){Rt.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var qe=pe(function(je){Object.defineProperty(je,"__esModule",{value:!0});var At=le(),Ot=ye(),Mt=he(),St=$e(),xt=be(),It=ge(),wt=ve(),Nt=_e(),Tt=["/properties"];function kt(e){return[At,Ot,Mt,St,xt,t(this,It),wt,t(this,Nt)].forEach((r)=>this.addMetaSchema(r,void 0,!1)),this;function t(r,o){return e?r.$dataMetaSchema(o,Tt):o}}je.default=kt});var Ft=pe(function(m,x){Object.defineProperty(m,"__esModule",{value:!0});m.MissingRefError=m.ValidationError=m.CodeGen=m.Name=m.nil=m.stringify=m.str=m._=m.KeywordCxt=m.Ajv2020=void 0;var Ct=nE(),Vt=fe(),Dt=dE(),Kt=qe(),S="https://json-schema.org/draft/2020-12/schema";class b extends Ct.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){if(super._addVocabularies(),Vt.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword(Dt.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:t}=this.opts;if(!t)return;Kt.default.call(this,e),this.refs["http://json-schema.org/schema"]=S}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(S)?S:void 0)}}m.Ajv2020=b;x.exports=m=b;x.exports.Ajv2020=b;Object.defineProperty(m,"__esModule",{value:!0});m.default=b;var Gt=ib();Object.defineProperty(m,"KeywordCxt",{enumerable:!0,get:function(){return Gt.KeywordCxt}});var h=Bt();Object.defineProperty(m,"_",{enumerable:!0,get:function(){return h._}});Object.defineProperty(m,"str",{enumerable:!0,get:function(){return h.str}});Object.defineProperty(m,"stringify",{enumerable:!0,get:function(){return h.stringify}});Object.defineProperty(m,"nil",{enumerable:!0,get:function(){return h.nil}});Object.defineProperty(m,"Name",{enumerable:!0,get:function(){return h.Name}});Object.defineProperty(m,"CodeGen",{enumerable:!0,get:function(){return h.CodeGen}});var zt=Xv();Object.defineProperty(m,"ValidationError",{enumerable:!0,get:function(){return zt.default}});var Lt=rb();Object.defineProperty(m,"MissingRefError",{enumerable:!0,get:function(){return Lt.default}})});export default Ft();
2
+
3
+ //# debugId=ACAB36201A5D466F64756E2164756E21
4
+ //# sourceMappingURL=2020-rqm7qrje.js.map
@@ -0,0 +1,4 @@
1
+ import{Xs,Qs,qo}from"./studio-y2zsnzye.js";export{qo as draggable,Xs as dropTargetForElements,Qs as monitorForElements};
2
+
3
+ //# debugId=8615C1C61218617664756E2164756E21
4
+ //# sourceMappingURL=adapter-cyy8vbcx.js.map
@@ -0,0 +1,4 @@
1
+ import{Z}from"./studio-mkjrjpr2.js";import{p}from"./studio-1b79rpcb.js";import{w}from"./studio-5k9mfafh.js";import"./studio-zbwr6prc.js";import{Gt,Ut,Oh}from"./studio-s6ymkf3q.js";import"./studio-52mzbxqm.js";import{an,it,dt}from"./studio-yetr4gg1.js";import{ae}from"./studio-dbex091t.js";import{jt,Fa,co,ja}from"./studio-hf259xzd.js";import{jn,Wt,ln,br,Qt}from"./studio-ybkd5w8k.js";import"./studio-r85zw6ay.js";import{iC}from"./studio-qcc5hsw2.js";import"./studio-pk961xgz.js";import"./studio-44drsmhw.js";import"./studio-wqsmvtqj.js";import"./studio-g79s1dyg.js";import"./studio-kp4vzrct.js";import{sc}from"./studio-3kmqhwtt.js";import"./studio-5qez462c.js";import"./studio-56mmnsw8.js";import"./studio-0nb57pjg.js";import"./studio-6tnpg0vx.js";import{hs,Zc,Ia,ea}from"./studio-jj9gf1qc.js";import"./studio-s9jjap3x.js";import"./studio-qvb2jr83.js";import{oh,ny}from"./studio-m25ry0mf.js";import{De,cy}from"./studio-mrb10hv3.js";import"./studio-y2zsnzye.js";import"./studio-a4ymg4vd.js";import"./studio-wmak8xjw.js";import"./studio-93p5k4r4.js";import"./studio-4gthb2fd.js";import"./studio-ed9bz68j.js";import{WS,UT,qw,JS,hi}from"./studio-8atmfjjm.js";import"./studio-zdbsv5q2.js";import"./studio-0wa4wv4s.js";import"./studio-8vmad6x2.js";import"./studio-k1wvtp03.js";import{km}from"./studio-dj8ctxey.js";import"./studio-fe2d1fp5.js";import"./studio-z89e6wpg.js";import"./studio-gahswxp4.js";import{PE,hw}from"./studio-hdf01j7q.js";import{Lb,Nw,qs,Bc,TS,Sm,Dw,$S,bT,sl,LS,Vu,RS,ED,yT,Cm,Rb,vT,wT,xT,TD,$D,IS}from"./studio-gbqc12bk.js";import{hb}from"./studio-y4f1rdsj.js";import{gb,Nd,Dd}from"./studio-kpx02gaa.js";import{yw,zE}from"./studio-jsjg3mjv.js";import"./studio-6w8mt734.js";import{Kl}from"./studio-jbva4wxw.js";import{n$,Xw}from"./studio-pafmb06w.js";import"./studio-gxphbetb.js";import"./studio-meajkr51.js";import{x,wn}from"./studio-anc8067x.js";import{ze,yt,E,I}from"./studio-xxttcym1.js";import{b}from"./studio-y3tjh2xb.js";import{vr}from"./studio-213pyfxh.js";import{n,f}from"./studio-0z8kp4xk.js";var R={$schema:"https://jxsuite.com/schema/v1",$id:"StudioAddNew",$description:"Add new: the one dialog that creates a page, a collection, a template, a component, a collection entry or an upload (`specs/studio.md` §9.1.1). One `jx-dialog`, so the platform owns modality, Escape, the backdrop and focus restoration. The kinds run down the left as a radiogroup and the chosen kind's name and options fill the right; the line above the buttons is the derived result, the same `deriveCreation` the write performs, so what it says is what is written. Nothing here composes a path, judges a name or knows a format: `create/add-new-flow.ts` keeps every decision and hands this document rows that are already strings, flags that are already booleans and a refusal that is already a sentence.",tagName:"jx-dialog",$props:{headline:"Add new",confirmLabel:{$ref:"#/state/cta"},confirmDisabled:{$ref:"#/state/blocked"},cancelLabel:"Cancel",size:"lg"},attributes:{part:"add-new","data-kind":"${state.kind}"},onconfirm:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]},oncancel:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},onclose:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},ondragover:{$prototype:"Function",body:[{preventDefault:!0}]},ondrop:{$prototype:"Function",body:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/drop"},value:[{$ref:"event#/dataTransfer/files"}]}]},style:{$description:"The board's two columns in the kit's scale. The kinds take a fixed gutter so the right side does not move under the reader as they switch kinds, and the options column scrolls on its own so a long template list never pushes the result line and the buttons off the dialog. No part here is named `field`, `label`, `body`, `error`, `text` or `actions`: the kit is light DOM, and `jx-textfield`, `jx-select` and `jx-dialog` each draw internal nodes under those names inside this same tree.",'& [part="sheet"]':{display:"flex",gap:"var(--jx-space-5)",minHeight:"360px"},'& [part="kinds-column"]':{flex:"0 0 208px",display:"flex",flexDirection:"column",gap:"var(--jx-space-3)",borderRight:"1px solid var(--border)",paddingRight:"var(--jx-space-3)"},'& [part="kinds"]':{display:"flex",flexDirection:"column",alignItems:"stretch",gap:"var(--jx-space-1)"},'& [part="kind"]':{display:"block"},'& [part="kind"] > [part="control"]':{$description:"A kind is a row with its own two lines, so the button's box stretches across the gutter and starts its content at the left edge rather than centring an icon.",width:"100%",height:"auto",justifyContent:"flex-start",alignItems:"flex-start",textAlign:"start",padding:"var(--jx-space-2) var(--jx-space-3)",gap:"var(--jx-space-3)"},'& [part="kind-text"]':{display:"flex",flexDirection:"column",gap:"2px"},'& [part="kind-name"]':{fontSize:"var(--jx-text-md)",color:"var(--fg)"},'& [part="kind-hint"], & [part="choice-note"]':{fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)",whiteSpace:"normal"},'& [part="chord-note"], & [part="note"], & [part="kind-intro"], & [part="drop-summary"]':{margin:"0",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="chord-note"]':{marginTop:"auto"},'& [part="detail"]':{flex:"1",minWidth:"0",display:"flex",flexDirection:"column",gap:"var(--jx-space-4)",maxHeight:"60vh",overflowY:"auto"},'& [part="options"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-3)"},'& [part="name-slot"], & [part="options-slot"], & [part="url-slot"], & [part="own-page-slot"], & [part="copy-slot"], & [part="locale-slot"], & [part="localized-slot"]':{$description:"Branch hosts are structure rather than layout: `display: contents` puts what they carry straight into the column, so one gap rule spaces every row whether it is drawn or not.",display:"contents"},'& [part="group-label"]':{margin:"0",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="url-row"], & [part="pattern-row"]':{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"var(--jx-space-2)"},'& [part="url-label"]':{fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="route"], & [part="pattern"]':{fontFamily:"var(--font-mono)",fontSize:"var(--jx-text-sm)",color:"var(--fg)"},'& [part="start-row"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-2)"},'& [part="start-from"], & [part="wrap-in"], & [part="component-start"]':{display:"flex",flexWrap:"wrap",gap:"var(--jx-space-2)"},'& [part="choice-card"] > [part="control"]':{$description:"A choice is a card with a name and a note, as the board draws it: its own two lines inside one radio, so the reader hears one name and sees both.",minWidth:"132px",height:"auto",flexDirection:"column",alignItems:"flex-start",textAlign:"start",padding:"var(--jx-space-2) var(--jx-space-3)",gap:"2px"},'& [part="choice-name"]':{display:"block",fontSize:"var(--jx-text-md)",color:"var(--fg)"},'& [part="choice-note"]':{display:"block"},'& [part="presets"]':{display:"flex",flexWrap:"wrap",gap:"var(--jx-space-2)"},'& [part="drop"]':{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"var(--jx-space-2)",minHeight:"200px",padding:"var(--jx-space-5)",border:"1px dashed var(--border)",borderRadius:"var(--radius)",textAlign:"center"},'& [part="drop"][data-drop="true"]':{borderColor:"var(--accent)",background:"var(--accent-10)"},'& [part="drop-title"]':{margin:"0",fontSize:"var(--jx-text-md)",color:"var(--fg)"},'& [part="browse"]':{display:"inline-flex",alignItems:"center",gap:"var(--jx-space-2)",padding:"var(--jx-space-1) var(--jx-space-3)",border:"1px solid var(--border)",borderRadius:"var(--radius)",color:"var(--fg)",cursor:"pointer"},'& [part="browse"]:focus-within':{outline:"var(--jx-focus-ring)",outlineOffset:"2px"},'& [part="browse-input"]':{$description:"Visually hidden, never `display: none`: the input is the control, and a hidden-from-layout one cannot take focus from the keyboard. The label around it is what is drawn and what is clicked.",position:"absolute",width:"1px",height:"1px",opacity:"0",overflow:"hidden"},'& [part="saved"]':{margin:"0",paddingTop:"var(--jx-space-3)",borderTop:"1px solid var(--border)",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)",overflowWrap:"anywhere"}},children:[{tagName:"div",attributes:{part:"sheet"},children:[{tagName:"div",attributes:{part:"kinds-column"},children:[{tagName:"jx-action-group",attributes:{part:"kinds"},$props:{selects:"single",label:"What to create",orientation:"vertical",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/kinds"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"kind","data-kind":"${$map.item.id}"},$props:{label:{$ref:"$map/item/label"},icon:{$ref:"$map/item/icon"},checked:{$ref:"$map/item/checked"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickKind"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",attributes:{part:"kind-text"},children:[{tagName:"span",attributes:{part:"kind-name"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"kind-hint"},textContent:"${$map.item.hint}"}]}]}}]},{tagName:"p",attributes:{part:"chord-note"},textContent:"${state.chordNote}"}]},{tagName:"section",attributes:{part:"detail","aria-label":"${state.kindLabel}"},children:[{tagName:"p",attributes:{part:"kind-intro"},textContent:"${state.kindHint}"},{tagName:"div",attributes:{part:"name-slot",role:"none"},$switch:{$ref:"#/state/named"},cases:{true:{tagName:"jx-field",attributes:{part:"name-row"},$props:{span:!0,label:{$ref:"#/state/nameLabel"},invalid:{$ref:"#/state/invalid"}},children:[{tagName:"jx-textfield",attributes:{part:"name"},$props:{value:{$ref:"#/state/name"},placeholder:{$ref:"#/state/placeholder"},invalid:{$ref:"#/state/invalid"},error:{$ref:"#/state/error"},required:!0,autocomplete:"off"},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setName"},value:[{$ref:"event#/target/value"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]}}]}}]}}},{tagName:"div",attributes:{part:"options-slot",role:"none"},$switch:{$ref:"#/state/kind"},cases:{page:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"div",attributes:{part:"locale-slot",role:"none"},$switch:{$ref:"#/state/localeShown"},cases:{true:{tagName:"jx-field",attributes:{part:"locale-row"},$props:{span:!0,label:"Language"},children:[{tagName:"jx-select",attributes:{part:"locale"},$props:{size:"sm",label:"Language",options:{$ref:"#/state/localeOptions"},value:{$ref:"#/state/locale"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickLocale"},value:[{$ref:"event#/target/value"}]}]}}]}}},{tagName:"div",attributes:{part:"url-row"},children:[{tagName:"span",attributes:{part:"url-label"},textContent:"URL"},{tagName:"code",attributes:{part:"route"},textContent:"${state.route}"},{tagName:"jx-action-button",attributes:{part:"edit-url"},$props:{label:"Edit URL",toggles:!0,selected:{$ref:"#/state/editingUrl"},size:"sm"},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/toggleUrl"},value:[]}]},children:[{tagName:"span",textContent:"Edit"}]}]},{tagName:"div",attributes:{part:"url-slot",role:"none"},$switch:{$ref:"#/state/editingUrl"},cases:{true:{tagName:"jx-field",attributes:{part:"url-row-field"},$props:{span:!0,label:"URL"},children:[{tagName:"jx-textfield",attributes:{part:"url"},$props:{size:"sm",mono:!0,value:{$ref:"#/state/url"},placeholder:"/pricing"},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setUrl"},value:[{$ref:"event#/target/value"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]}}]}}]}}},{tagName:"div",attributes:{part:"start-row"},children:[{tagName:"p",attributes:{part:"group-label"},textContent:"Start from"},{tagName:"jx-action-group",attributes:{part:"start-from"},$props:{selects:"single",label:"Start from",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/startChoices"},key:{$ref:"$map/item/value"},map:{tagName:"jx-action-button",attributes:{part:"choice-card","data-value":"${$map.item.value}"},$props:{label:{$ref:"$map/item/label"},checked:{$ref:"$map/item/checked"},disabled:{$ref:"$map/item/disabled"},hint:{$ref:"$map/item/reason"},quiet:!1},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickStart"},value:[{$ref:"$map/item/value"}]}]},children:[{tagName:"span",attributes:{part:"choice-name"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"choice-note"},textContent:"${$map.item.note}"}]}}]}]}]},collection:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"p",attributes:{part:"group-label"},textContent:"Each ${state.itemNoun} has"},{tagName:"jx-action-group",attributes:{part:"presets"},$props:{selects:"multiple",label:"Fields",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/presets"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"preset","data-preset":"${$map.item.id}"},$props:{label:{$ref:"$map/item/label"},toggles:!0,selected:{$ref:"$map/item/selected"},quiet:!1,size:"sm",icon:{$ref:"$map/item/icon"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/togglePreset"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",textContent:"${$map.item.label}"}]}}]},{tagName:"p",attributes:{part:"note"},textContent:"You can add or change fields later."},{tagName:"div",attributes:{part:"localized-slot",role:"none"},$switch:{$ref:"#/state/localizable"},cases:{true:{tagName:"jx-checkbox",attributes:{part:"localized"},$props:{checked:{$ref:"#/state/localized"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setLocalized"},value:[{$ref:"event#/target/checked"}]}]},children:[{tagName:"span",textContent:"One folder per language (${state.localeSummary})"}]}}},{tagName:"jx-checkbox",attributes:{part:"own-page"},$props:{checked:{$ref:"#/state/ownPage"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setOwnPage"},value:[{$ref:"event#/target/checked"}]}]},children:[{tagName:"span",textContent:"Give each ${state.itemNoun} its own page"}]},{tagName:"div",attributes:{part:"own-page-slot",role:"none"},$switch:{$ref:"#/state/ownPage"},cases:{true:{tagName:"div",attributes:{part:"pattern-row"},children:[{tagName:"span",attributes:{part:"url-label"},textContent:"at"},{tagName:"code",attributes:{part:"pattern"},textContent:"${state.pattern}"},{tagName:"span",attributes:{part:"url-label"},textContent:"using"},{tagName:"jx-select",attributes:{part:"page-template"},$props:{size:"sm",label:"Template for each page",options:{$ref:"#/state/templateOptions"},value:{$ref:"#/state/pageTemplate"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickPageTemplate"},value:[{$ref:"event#/target/value"}]}]}}]}}}]},template:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"p",attributes:{part:"group-label"},textContent:"Wrap it in"},{tagName:"jx-action-group",attributes:{part:"wrap-in"},$props:{selects:"single",label:"Wrap it in",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/wrapChoices"},key:{$ref:"$map/item/value"},map:{tagName:"jx-action-button",attributes:{part:"choice-card","data-value":"${$map.item.value}"},$props:{label:{$ref:"$map/item/label"},checked:{$ref:"$map/item/checked"},disabled:{$ref:"$map/item/disabled"},hint:{$ref:"$map/item/reason"},quiet:!1},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickWrap"},value:[{$ref:"$map/item/value"}]}]},children:[{tagName:"span",attributes:{part:"choice-name"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"choice-note"},textContent:"${$map.item.note}"}]}}]},{tagName:"p",attributes:{part:"note"},textContent:"Pages placed in this template fill its Content area. You can add more named areas later."}]},component:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"p",attributes:{part:"group-label"},textContent:"Start from"},{tagName:"jx-action-group",attributes:{part:"component-start"},$props:{selects:"single",label:"Start from",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/componentChoices"},key:{$ref:"$map/item/value"},map:{tagName:"jx-action-button",attributes:{part:"choice-card","data-value":"${$map.item.value}"},$props:{label:{$ref:"$map/item/label"},checked:{$ref:"$map/item/checked"},disabled:{$ref:"$map/item/disabled"},hint:{$ref:"$map/item/reason"},quiet:!1},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickComponentStart"},value:[{$ref:"$map/item/value"}]}]},children:[{tagName:"span",attributes:{part:"choice-name"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"choice-note"},textContent:"${$map.item.note}"}]}}]},{tagName:"div",attributes:{part:"copy-slot",role:"none"},$switch:{$ref:"#/state/copying"},cases:{true:{tagName:"jx-field",attributes:{part:"copy-row"},$props:{span:!0,label:"Copy of"},children:[{tagName:"jx-select",attributes:{part:"copy-of"},$props:{size:"sm",label:"Component to copy",options:{$ref:"#/state/copyOptions"},value:{$ref:"#/state/copyOf"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickCopy"},value:[{$ref:"event#/target/value"}]}]}}]}}},{tagName:"p",attributes:{part:"note"},textContent:"It appears under Components in the Site panel, ready to drag onto any page."}]},entry:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"jx-field",attributes:{part:"collection-row"},$props:{span:!0,label:"Collection"},children:[{tagName:"jx-select",attributes:{part:"collection"},$props:{size:"sm",label:"Collection",options:{$ref:"#/state/collectionOptions"},value:{$ref:"#/state/collection"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickCollection"},value:[{$ref:"event#/target/value"}]}]}}]},{tagName:"div",attributes:{part:"locale-slot",role:"none"},$switch:{$ref:"#/state/localeShown"},cases:{true:{tagName:"jx-field",attributes:{part:"locale-row"},$props:{span:!0,label:"Language"},children:[{tagName:"jx-select",attributes:{part:"locale"},$props:{size:"sm",label:"Language",options:{$ref:"#/state/localeOptions"},value:{$ref:"#/state/locale"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickLocale"},value:[{$ref:"event#/target/value"}]}]}}]}}}]},media:{tagName:"div",attributes:{part:"drop","data-drop":"${state.dropActive}"},ondragover:{$prototype:"Function",body:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/dragOver"},value:[]}]},ondragleave:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/dragOut"},value:[]}]},children:[{tagName:"jx-icon",attributes:{part:"drop-glyph"},$props:{name:"upload-simple"}},{tagName:"p",attributes:{part:"drop-title"},textContent:"Drop images, video or documents"},{tagName:"label",attributes:{part:"browse"},children:[{tagName:"input",attributes:{part:"browse-input",type:"file",multiple:!0,accept:"${state.uploadAccept}"},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/choose"},value:[{$ref:"event#/target"}]}]}},{tagName:"span",textContent:"Browse files"}]},{tagName:"p",attributes:{part:"drop-summary"},textContent:"${state.fileSummary}"}]}}}]}]},{tagName:"p",attributes:{part:"saved","aria-live":"polite"},textContent:"${state.saved}"}]};E("add-new",R);function T(e){return{...e,blocked:!e.canConfirm,invalid:e.error!=="",named:e.kind!=="media"}}function z(e){let t=document.createElement("div");t.style.pointerEvents="auto",t.setAttribute(ze,yt("dialog","add-new")),e.layer.append(t);let r=!1,o=()=>{if(r)return;r=!0,e.actions.closed()},l=()=>r,{actions:a}=e,d=b({...T(e.view),choose:a.choose,closed:o,confirm:a.confirm,dragOut:a.dragOut,dragOver:a.dragOver,drop:a.drop,pickCollection:a.pickCollection,pickComponentStart:a.pickComponentStart,pickCopy:a.pickCopy,pickKind:a.pickKind,pickLocale:a.pickLocale,pickPageTemplate:a.pickPageTemplate,pickStart:a.pickStart,pickWrap:a.pickWrap,setName:(m)=>{d.name=m,a.setName(m)},setLocalized:a.setLocalized,setOwnPage:a.setOwnPage,setUrl:(m)=>{d.url=m,a.setUrl(m)},toggleUrl:a.toggleUrl,togglePreset:a.togglePreset}),g=null,u=()=>{setTimeout(()=>{let m=g?.root;if(r||!(m instanceof HTMLElement))return;let c=m.querySelector('jx-textfield[part="name"]');if(c)Oh(c,"all")},0)},v=I("add-new",d,t).then(async(m)=>{g=m;let c=m.root;if(l())return m.dispose(),c;if(await an(c),l())return c;if(Gt(c),d.named)u();return c});return{close(){let m=g?.root;if(m instanceof HTMLElement)Ut(m);g?.dispose(),g=null,t.remove(),o()},host:t,ready:v,update(m){Object.assign(d,T(m))}}}var N="Add new";async function W(){return(await PE()).map((t)=>({name:t.name,ref:t.path})).toSorted((t,r)=>t.name.localeCompare(r.name))}function _(){for(let e of WS("page")){if(e.ext===".json")continue;let t=Fa(e.ext,"serialize");if(t)return{ext:e.ext,name:t.name}}return null}function B(){let e=co(),t=e?.extensions[0];return e&&t?{ext:t,name:e.name}:null}function J(){return ln(x?.projectConfig??{}).i18n}async function V(e){let t={},{i18n:r}=ln(x?.projectConfig??{});for(let o of await iC(e)){let l=jn(br(o,r));if(l!==null)t[l]=o}return t}async function L(){await jt().catch(()=>{});let e=await Promise.all(Xw().map(async(t)=>{let r={dir:t.dir,ext:t.ext,formatName:IS(t),name:t.name,schema:t.schema};if(Rb(t))r.localeDirs=await V(t);return r}));return{i18n:J(),article:_(),collections:e,componentTags:De.map((t)=>t.tagName),copyableTags:De.filter((t)=>D(t)).map((t)=>t.tagName),contentFormat:B(),declaredContent:n$(),defaultLayout:x?.projectConfig?.defaults?.layout??null,hasSelection:yw()!==null,layouts:await W()}}function D(e){let{path:t}=e;return n(t)&&e.source!=="npm"&&t.endsWith(".json")}async function Y(){let e=new Map;for(let t of De){let{path:r}=t;if(!D(t)||!n(r))continue;try{let o=JSON.parse(await p().readFile(r));if(f(o))e.set(t.tagName,o)}catch{}}return e}function U(e,t){let r=e.trim();if(r===qs||r==="none"||r==="")return qs;if(r===Bc)return Bc;let o=sl(r);return t.find((a)=>sl(a.ref)===o||sl(a.ref)===`layouts/${o}`||sl(a.ref)===`layouts/${o}.json`||a.name.toLowerCase()===r.toLowerCase())?.ref??null}function G(e,t){let r={};if(e.collection!==void 0)r.collection=e.collection;if(e.locale!==void 0){if(Cm(e.locale,t)===null){let o=t.i18n?.locales??[];throw RangeError(`command "file.new" argument "locale": "${e.locale}" is not a language this `+`project declares — declared: ${o.length===0?"none":o.join(", ")}`)}r.locale=e.locale}if(e.template!==void 0){let o=U(e.template,t.layouts);if(o===null){let l=t.layouts.map((a)=>sl(a.ref));throw RangeError(`command "file.new" argument "template": "${e.template}" names no template — `+`declared: ${[qs,Bc,...l].join(", ")}`)}if(e.kind==="collection")r.pageTemplate=o===Bc?qs:o;else if(e.kind==="template")r.startFrom=o===qs||o===Bc?"":o;else r.startFrom=o}return r}async function Q(e){if(e.format===null)return vr(e.doc,null);return ja(e.format,e.doc,{frontmatter:e.frontmatter??!0,mode:"roundtrip"})}async function F(e,t,r=!1){for(let o of TD(xT(e)))await Promise.all(o.map(async(l)=>{if(!r&&t.has(l))return;t.set(l,$D(l,t)?new Set:await qw(l))}))}function S(e){if(hb(e),Dd(),e.some((t)=>t.startsWith("pages/")))ny(),gb();UT(e).then((t)=>{if(t)Dd(),wn("leftPanel")})}async function P(e,t,r){let o;try{o=await Q(t)}catch(l){throw w.error(`Could not prepare ${e}.`,{detail:Z(l),path:e,source:N}),Error(`could not prepare ${e}`,{cause:l})}if(await JS(e,o,{quiet:r,source:N})===null)throw Error(`could not write ${e}`)}async function X(e){let t=e.config,r=x?.projectConfig?.content,o=f(r)?{...r}:{};if(o[t.name]=t.entry,!(await sc({content:o})).ok)return null;let a=[Qt()],d=[];for(let u of[{body:e.content,path:e.path},...e.extraWrites])try{await P(u.path,u.body,!0),a.push(u.path)}catch{d.push(u.path)}if(d.length===0)w.success(`Created the ${t.name} collection`);else w.warn(`Created the ${t.name} collection, but ${d.join(" and ")} could not be written.`,{source:N});S(a),km(t.name),it("content.showCollection",{collection:t.name},N);let g={kind:"collection",path:`content/${t.name}`,wrote:a};if(e.route!==void 0)g.route=e.route;return g}async function M(e,t,r){if(e.kind==="media"){let l=await ea(r,{dir:Ia,only:"media"});if(l.length===0)return null;let a=l.map((d)=>d.path);return S(a),it("media.browse",{select:l[0].path},N),{kind:"media",path:Ia,wrote:a}}if(e.kind==="collection")return X(e);let o={kind:e.kind,path:e.path,wrote:[e.path]};if(e.route!==void 0)o.route=e.route;if(e.tag!==void 0)o.tag=e.tag;if(e.kind==="component"&&t.startFrom===TS){let l=await zE(e.tag);if(l===null)return null;return S([l]),await hi(l),o}try{await P(e.path,e.content,!1)}catch{return null}switch(S([e.path]),e.kind){case"component":{cy(e.path,e.content.doc),await hi(e.path);break}case"template":{hw(),await hi(e.path);break}case"entry":{if(t.collection!==void 0)km(t.collection);await Kl(e.path);break}default:await hi(e.path)}return o}async function Ye(e){let t=e.kind??"page";if(t==="media")throw RangeError('command "file.new": Media is uploaded, not named; run file.new { kind: "media" } with no name to open the upload drop zone.');let r=await L(),o=G({...e,kind:t},r);if(t==="entry"&&o.collection===void 0&&r.collections.length===1)o.collection=r.collections[0].name;let l=vT(t,e.name,o,r),a=new Map;await F(l,a,!0);let d=wT(l,e.name,o,r,(u)=>a.get(u));if(d!=="")throw RangeError(`command "file.new": ${d}`);let g=await M(l,o,[]);if(g===null)throw Error(`file.new could not create ${l.path}; the reason is in Problems.`);return g}async function Ge(e){let t=await L(),r=t.collections.find((u)=>u.name===e);if(!r)return w.error(`"${e}" is not a collection this project declares.`,{source:N}),null;let o=`pages/${hs(e)||e}`,l=`${o}/[slug].json`;if((await qw(o)).has("[slug].json"))return w.error(`${l} already exists.`,{detail:"Open it in Design and point its $paths at this collection, or rename it first.",path:l,source:N}),null;let d=ED(r.schema,r.formatName!==null),g=yT(e,d,LS(Vu(t),t),t);try{await P(l,{doc:g,format:null},!1)}catch{return null}return S([l]),l}function j(e){switch(e.kind){case"page":{let t={startFrom:e.pageStart};if(e.editingUrl)t.url=e.url;if(e.locale!=="")t.locale=e.locale;return t}case"template":return{startFrom:e.wrap};case"component":{let t={startFrom:e.componentStart};if(e.componentStart===Sm&&e.copyOf!=="")t.copyOf=e.copyOf;return t}case"collection":return{fields:e.fields,localized:e.localized,ownPage:e.ownPage,pageTemplate:e.pageTemplate};case"entry":{let t={};if(e.collection!=="")t.collection=e.collection;if(e.locale!=="")t.locale=e.locale;return t}default:return{files:e.files.length}}}function y(e,t,r,o,l=""){return{checked:e===o?"true":"false",disabled:l!=="",label:t,note:r,reason:l,value:e}}function q(e,t){let r=t.layouts.map((o)=>y(o.ref,o.name,t.defaultLayout!==null&&sl(o.ref)===sl(t.defaultLayout)?"the site's default":"a template",e.pageStart));if(t.article!==null)r.push(y(Bc,"Article","mostly writing",e.pageStart));return r.push(y(qs,"Blank","no template",e.pageStart)),r}function ee(){let e=yw();if(!e)return"nothing selected";let r=1+(Array.isArray(e.node.children)?e.node.children.length:0);return r===1?"1 element":`${r} elements`}function te(){let e=ae()?.keymap,t=e?.bindingsFor("file.new")??[];if(!e||t.length===0)return"";let[r,...o]=t.map((l)=>e.format(l));return o.length===0?`${r} opens this anywhere.`:`${r} opens this in the desktop app, ${o.join(" or ")} anywhere.`}function O(e,t,r,o){let l=Nw[e.kind],a=Lb.filter((s)=>s!=="entry"||t.collections.length>0).map((s)=>({checked:s===e.kind?"true":"false",hint:Nw[s].hint,icon:Nw[s].icon,id:s,label:Nw[s].label})),d=r.config?.name??"",g=oh(d===""?"items":d),u=t.i18n?.locales??[],v=t.collections.find((s)=>s.name===e.collection),m=u.length>0&&(e.kind==="page"||e.kind==="entry"&&v!==void 0&&Rb(v)),c=[...t.layouts.map((s)=>({label:s.name,value:s.ref})),{label:"No template",value:qs}];return{canConfirm:o===""&&!e.busy,chordNote:te(),collection:e.collection,collectionOptions:t.collections.map((s)=>({label:Nd(s.name),value:s.name})),componentChoices:[y("blank","Blank","an empty block",e.componentStart),y(TS,"Current selection",ee(),e.componentStart,t.hasSelection===!0?"":"Select an element on the canvas first."),y(Sm,"Copy of…","an existing one",e.componentStart,(t.copyableTags??[]).length>0?"":"This project has no components of its own to copy yet.")],copyOf:e.copyOf,copyOptions:[...t.componentDocs?.keys()??[]].map((s)=>({label:`<${s}>`,value:s})),copying:e.componentStart===Sm,cta:l.cta,dropActive:e.dropActive?"true":"false",editingUrl:e.editingUrl,error:e.touched||e.kind==="media"?e.kind==="media"?"":o:"",fileSummary:e.files.length===0?"":e.files.map((s)=>s.name).join(", "),itemNoun:g,kind:e.kind,kindHint:l.hint,kindLabel:l.label,kinds:a,locale:e.locale,localeOptions:u.map((s)=>({label:Wt(s),value:s})),localeShown:m,localeSummary:u.join(", "),localizable:u.length>0,localized:e.localized,name:e.name,nameLabel:l.nameLabel,ownPage:e.ownPage,pageTemplate:e.pageTemplate,pattern:r.route??`/${d===""?"items":d}/:slug`,placeholder:l.placeholder,presets:Dw.filter((s)=>s!=="richText"||t.contentFormat!==null).map((s)=>{let k=e.fields.includes(s);return{icon:k?"check":"plus",id:s,label:$S[s].label,selected:k}}),route:r.route===void 0||r.route===""?"/":r.route,saved:r.saved,startChoices:q(e,t),templateOptions:c,uploadAccept:Zc(),url:e.url,wrapChoices:[...t.layouts.map((s)=>y(s.ref,s.name,"keeps its frame around this one",e.wrap)),y("","Nothing","a fresh frame",e.wrap)]}}function oe(e,t){let r=e.kind??"page";return r==="entry"&&t.collections.length===0?"page":r}var A=null;function Qe(e={}){if(A)return A.done;let t,r=new Promise((l)=>{t=l}),o={done:r,handle:null};return A=o,ne(e,t,o),r}async function ne(e,t,r){let o=await L(),l=new Map,a={busy:!1,collection:e.collection??o.collections[0]?.name??"",locale:Cm(e.locale,o)??o.i18n?.defaultLocale??"",localized:o.i18n!==null&&o.i18n!==void 0,componentStart:"blank",copyOf:"",dropActive:!1,editingUrl:!1,fields:[...bT],files:[],kind:oe(e,o),name:e.name??"",ownPage:!0,pageStart:RS(o,Cm(e.locale,o)??o.i18n?.defaultLocale??""),pageTemplate:Vu(o),templateChosen:e.template!==void 0,touched:(e.name??"")!=="",url:"",wrap:Vu(o)===qs?"":Vu(o)};if(e.template!==void 0){let i=U(e.template,o.layouts);if(i!==null)a.pageStart=i,a.pageTemplate=i===Bc?qs:i,a.wrap=i===qs||i===Bc?"":i}if(o.contentFormat===null)a.fields=a.fields.filter((i)=>i!=="richText");let d=!1,g=null,u=()=>vT(a.kind,a.name,j(a),o),v=(i)=>wT(i,a.name,j(a),o,(h)=>l.get(h)),m=()=>{let i=u();if(r.handle?.update(O(a,o,i,v(i))),xT(i).some((h)=>!l.has(h)))F(i,l).then(()=>{if(!d){let h=u();r.handle?.update(O(a,o,h,v(h)))}})},c=(i)=>{i(),m()},s=async()=>{if(a.busy)return;a.touched=!0;let i=u();if(await F(i,l,!0),v(i)!==""){m();return}a.busy=!0,m();try{g=await M(i,j(a),a.files)}catch(C){w.error("Could not create it.",{detail:Z(C),source:N}),g=null}if(a.busy=!1,g===null){m();return}r.handle?.close()},k=u(),K=z({actions:{choose:(i)=>{let h=[...i.files??[]];i.value="",c(()=>{a.files=[...a.files,...h]})},closed:()=>{if(d)return;d=!0,A=null,r.handle?.close(),t(g)},confirm:()=>{s()},dragOut:()=>{c(()=>{a.dropActive=!1})},dragOver:()=>{if(!a.dropActive)c(()=>{a.dropActive=!0})},drop:(i)=>{c(()=>{a.dropActive=!1;let h=i?[...i]:[];if(h.length>0)a.kind="media";a.files=[...a.files,...h]})},pickCollection:(i)=>{c(()=>{a.collection=i})},pickComponentStart:(i)=>{if(c(()=>{a.componentStart=i}),i===Sm&&o.componentDocs===void 0)Y().then((h)=>{if(o.componentDocs=h,a.copyOf==="")a.copyOf=h.keys().next().value??"";if(!d)m()})},pickLocale:(i)=>{c(()=>{if(a.locale=i,!a.templateChosen)a.pageStart=RS(o,i)})},setLocalized:(i)=>{c(()=>{a.localized=i})},pickCopy:(i)=>{c(()=>{a.copyOf=i})},pickKind:(i)=>{c(()=>{a.kind=i})},pickPageTemplate:(i)=>{c(()=>{a.pageTemplate=i})},pickStart:(i)=>{c(()=>{a.pageStart=i,a.templateChosen=!0})},pickWrap:(i)=>{c(()=>{a.wrap=i})},setName:(i)=>{c(()=>{a.name=i,a.touched=!0})},setOwnPage:(i)=>{c(()=>{a.ownPage=i})},setUrl:(i)=>{c(()=>{a.url=i,a.touched=!0})},toggleUrl:()=>{c(()=>{if(!a.editingUrl)a.url=u().route??"/";a.editingUrl=!a.editingUrl})},togglePreset:(i)=>{c(()=>{let h=Dw.find((C)=>C===i);if(h===void 0)return;a.fields=a.fields.includes(h)?a.fields.filter((C)=>C!==h):[...a.fields,h]})}},layer:dt("dialog"),view:O(a,o,k,v(k))});r.handle=K,m()}export{Ge as addCollectionPage,Ye as createDirect,Qe as openAddNew};
2
+
3
+ //# debugId=DB572A72AF94E6E464756E2164756E21
4
+ //# sourceMappingURL=add-new-flow-8cgtejv2.js.map