@novaprose/core 0.7.0 → 0.9.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 (347) hide show
  1. package/README.md +15 -2
  2. package/dist/a11y.cjs +314 -0
  3. package/dist/a11y.cjs.map +1 -0
  4. package/dist/a11y.d.cts +51 -0
  5. package/dist/a11y.d.ts +51 -0
  6. package/dist/a11y.js +11 -0
  7. package/dist/a11y.js.map +1 -0
  8. package/dist/a11ychecker-6ES3UMU3.js +449 -0
  9. package/dist/a11ychecker-6ES3UMU3.js.map +1 -0
  10. package/dist/accordion-ui-B4I2FJXE.js +201 -0
  11. package/dist/accordion-ui-B4I2FJXE.js.map +1 -0
  12. package/dist/advcode-7S6N64C7.js +51 -0
  13. package/dist/advcode-7S6N64C7.js.map +1 -0
  14. package/dist/advcode-editor-ENCPFVLO.js +257 -0
  15. package/dist/advcode-editor-ENCPFVLO.js.map +1 -0
  16. package/dist/{advlist-5FNKPLUX.js → advlist-FEDGNLMQ.js} +10 -7
  17. package/dist/advlist-FEDGNLMQ.js.map +1 -0
  18. package/dist/advtable-ui-JAVJY4L4.js +364 -0
  19. package/dist/advtable-ui-JAVJY4L4.js.map +1 -0
  20. package/dist/ai-5KM776QW.js +1485 -0
  21. package/dist/ai-5KM776QW.js.map +1 -0
  22. package/dist/anchor-ui-VPKNKZ7J.js +81 -0
  23. package/dist/anchor-ui-VPKNKZ7J.js.map +1 -0
  24. package/dist/autocorrect-5QLICCRN.js +851 -0
  25. package/dist/autocorrect-5QLICCRN.js.map +1 -0
  26. package/dist/{autolink-45LTODWB.js → autolink-ZYIPRXBA.js} +11 -8
  27. package/dist/autolink-ZYIPRXBA.js.map +1 -0
  28. package/dist/{autoresize-UB3GOA6D.js → autoresize-YRZAVCNO.js} +2 -2
  29. package/dist/autoresize-YRZAVCNO.js.map +1 -0
  30. package/dist/{autosave-GMWJ5BPE.js → autosave-IC7YYG44.js} +7 -7
  31. package/dist/autosave-IC7YYG44.js.map +1 -0
  32. package/dist/casechange-R7IO2APS.js +201 -0
  33. package/dist/casechange-R7IO2APS.js.map +1 -0
  34. package/dist/{charmap-2GC7LF7G.js → charmap-CARYZFKD.js} +7 -7
  35. package/dist/charmap-CARYZFKD.js.map +1 -0
  36. package/dist/checklist-7E47QW6L.js +189 -0
  37. package/dist/checklist-7E47QW6L.js.map +1 -0
  38. package/dist/chunk-23ZLVT5D.js +163 -0
  39. package/dist/chunk-23ZLVT5D.js.map +1 -0
  40. package/dist/{chunk-ND2CWNVG.js → chunk-3BOK3S3T.js} +2 -27
  41. package/dist/chunk-3BOK3S3T.js.map +1 -0
  42. package/dist/chunk-3KBQEAX2.js +926 -0
  43. package/dist/chunk-3KBQEAX2.js.map +1 -0
  44. package/dist/chunk-3NNILZVB.js +259 -0
  45. package/dist/chunk-3NNILZVB.js.map +1 -0
  46. package/dist/{chunk-PVFKXRID.js → chunk-4VPDY3LF.js} +1 -1
  47. package/dist/chunk-4VPDY3LF.js.map +1 -0
  48. package/dist/chunk-53AY5NAF.js +214 -0
  49. package/dist/chunk-53AY5NAF.js.map +1 -0
  50. package/dist/{chunk-5AW2HHG6.js → chunk-5KERLFDD.js} +50 -3
  51. package/dist/chunk-5KERLFDD.js.map +1 -0
  52. package/dist/{chunk-FCMZ7TUQ.js → chunk-6BJEOL5V.js} +296 -43
  53. package/dist/chunk-6BJEOL5V.js.map +1 -0
  54. package/dist/chunk-6LQM7G4V.js +159 -0
  55. package/dist/chunk-6LQM7G4V.js.map +1 -0
  56. package/dist/chunk-AB67XUSR.js +178 -0
  57. package/dist/chunk-AB67XUSR.js.map +1 -0
  58. package/dist/chunk-ANE5ASXG.js +26 -0
  59. package/dist/chunk-ANE5ASXG.js.map +1 -0
  60. package/dist/{chunk-Z3ELZ77W.js → chunk-AP2PJFLB.js} +5 -2
  61. package/dist/chunk-AP2PJFLB.js.map +1 -0
  62. package/dist/chunk-ARBKIZZU.js +137 -0
  63. package/dist/chunk-ARBKIZZU.js.map +1 -0
  64. package/dist/chunk-AUQSATWL.js +322 -0
  65. package/dist/chunk-AUQSATWL.js.map +1 -0
  66. package/dist/chunk-BMCH63QN.js +165 -0
  67. package/dist/chunk-BMCH63QN.js.map +1 -0
  68. package/dist/chunk-BUABAYZL.js +160 -0
  69. package/dist/chunk-BUABAYZL.js.map +1 -0
  70. package/dist/chunk-DCMPJ25E.js +140 -0
  71. package/dist/chunk-DCMPJ25E.js.map +1 -0
  72. package/dist/chunk-DV7TGRU6.js +47 -0
  73. package/dist/chunk-DV7TGRU6.js.map +1 -0
  74. package/dist/chunk-F2WT77ZG.js +163 -0
  75. package/dist/chunk-F2WT77ZG.js.map +1 -0
  76. package/dist/chunk-FNJ7AEJK.js +955 -0
  77. package/dist/chunk-FNJ7AEJK.js.map +1 -0
  78. package/dist/chunk-G74HNSB6.js +9 -0
  79. package/dist/chunk-G74HNSB6.js.map +1 -0
  80. package/dist/chunk-GTLE2HEW.js +108 -0
  81. package/dist/chunk-GTLE2HEW.js.map +1 -0
  82. package/dist/chunk-GUZCRDK6.js +143 -0
  83. package/dist/chunk-GUZCRDK6.js.map +1 -0
  84. package/dist/chunk-HNEAVVBC.js +98 -0
  85. package/dist/chunk-HNEAVVBC.js.map +1 -0
  86. package/dist/chunk-HSVNJGK3.js +1149 -0
  87. package/dist/chunk-HSVNJGK3.js.map +1 -0
  88. package/dist/chunk-IFSD6O5M.js +29 -0
  89. package/dist/chunk-IFSD6O5M.js.map +1 -0
  90. package/dist/{table-SSNABG5W.js → chunk-IO5PU52K.js} +119 -61
  91. package/dist/chunk-IO5PU52K.js.map +1 -0
  92. package/dist/chunk-K4LFGNS7.js +137 -0
  93. package/dist/chunk-K4LFGNS7.js.map +1 -0
  94. package/dist/chunk-KGEHUWGL.js +79 -0
  95. package/dist/chunk-KGEHUWGL.js.map +1 -0
  96. package/dist/chunk-KW6ATQPN.js +151 -0
  97. package/dist/chunk-KW6ATQPN.js.map +1 -0
  98. package/dist/chunk-NX3KWIP5.js +207 -0
  99. package/dist/chunk-NX3KWIP5.js.map +1 -0
  100. package/dist/chunk-OOVNE6MB.js +28 -0
  101. package/dist/chunk-OOVNE6MB.js.map +1 -0
  102. package/dist/chunk-OQMMHWMZ.js +7 -0
  103. package/dist/chunk-OQMMHWMZ.js.map +1 -0
  104. package/dist/{chunk-JPJVTB45.js → chunk-QU3KXMYT.js} +8 -2
  105. package/dist/chunk-QU3KXMYT.js.map +1 -0
  106. package/dist/chunk-QWT56RVG.js +158 -0
  107. package/dist/chunk-QWT56RVG.js.map +1 -0
  108. package/dist/chunk-RJ7T56OH.js +3787 -0
  109. package/dist/chunk-RJ7T56OH.js.map +1 -0
  110. package/dist/{chunk-KWXFL4WS.js → chunk-RPHA4HRX.js} +8 -5
  111. package/dist/chunk-RPHA4HRX.js.map +1 -0
  112. package/dist/chunk-S4DCQA74.js +66 -0
  113. package/dist/chunk-S4DCQA74.js.map +1 -0
  114. package/dist/chunk-SCIRO4XK.js +144 -0
  115. package/dist/chunk-SCIRO4XK.js.map +1 -0
  116. package/dist/chunk-SNVYHGGO.js +127 -0
  117. package/dist/chunk-SNVYHGGO.js.map +1 -0
  118. package/dist/chunk-T4543CB2.js +67 -0
  119. package/dist/chunk-T4543CB2.js.map +1 -0
  120. package/dist/{chunk-T3GY6IVK.js → chunk-UHUOAQA6.js} +71 -9
  121. package/dist/chunk-UHUOAQA6.js.map +1 -0
  122. package/dist/chunk-UTMS2P2K.js +288 -0
  123. package/dist/chunk-UTMS2P2K.js.map +1 -0
  124. package/dist/{chunk-HPLT3XRZ.js → chunk-V7WUHUHM.js} +13 -1
  125. package/dist/chunk-V7WUHUHM.js.map +1 -0
  126. package/dist/chunk-WAOU5NGN.js +430 -0
  127. package/dist/chunk-WAOU5NGN.js.map +1 -0
  128. package/dist/{chunk-R2UMUCVI.js → chunk-XCXJD5DO.js} +53 -8
  129. package/dist/chunk-XCXJD5DO.js.map +1 -0
  130. package/dist/chunk-XIH4SCO6.js +112 -0
  131. package/dist/chunk-XIH4SCO6.js.map +1 -0
  132. package/dist/chunk-XR7CY4NI.js +11 -0
  133. package/dist/chunk-XR7CY4NI.js.map +1 -0
  134. package/dist/chunk-Y2OXWCM7.js +263 -0
  135. package/dist/chunk-Y2OXWCM7.js.map +1 -0
  136. package/dist/chunk-YDF55N6Z.js +164 -0
  137. package/dist/chunk-YDF55N6Z.js.map +1 -0
  138. package/dist/chunk-YOTA26H7.js +373 -0
  139. package/dist/chunk-YOTA26H7.js.map +1 -0
  140. package/dist/chunk-YP7N47QR.js +101 -0
  141. package/dist/chunk-YP7N47QR.js.map +1 -0
  142. package/dist/{chunk-KPE3QRPB.js → chunk-YYCDRUE2.js} +16 -315
  143. package/dist/chunk-YYCDRUE2.js.map +1 -0
  144. package/dist/codesample-FOWXMCTC.js +546 -0
  145. package/dist/codesample-FOWXMCTC.js.map +1 -0
  146. package/dist/{comments-panel-HXMWSRAW.js → comments-panel-SOLBZ46Q.js} +9 -5
  147. package/dist/comments-panel-SOLBZ46Q.js.map +1 -0
  148. package/dist/{directionality-5JLWQGP2.js → directionality-BXWXNPRZ.js} +13 -10
  149. package/dist/directionality-BXWXNPRZ.js.map +1 -0
  150. package/dist/document-B0hLRhuH.d.cts +39 -0
  151. package/dist/document-Dh-jz1SK.d.ts +39 -0
  152. package/dist/docx.cjs +23575 -0
  153. package/dist/docx.cjs.map +1 -0
  154. package/dist/docx.d.cts +83 -0
  155. package/dist/docx.d.ts +83 -0
  156. package/dist/docx.js +1826 -0
  157. package/dist/docx.js.map +1 -0
  158. package/dist/draghandle-3IBHVHDE.js +389 -0
  159. package/dist/draghandle-3IBHVHDE.js.map +1 -0
  160. package/dist/editimage-GTLFGHYU.js +683 -0
  161. package/dist/editimage-GTLFGHYU.js.map +1 -0
  162. package/dist/editor-DnAN9aPd.d.ts +2948 -0
  163. package/dist/editor-S8w_w5W0.d.cts +2948 -0
  164. package/dist/email-FDSENENR.js +177 -0
  165. package/dist/email-FDSENENR.js.map +1 -0
  166. package/dist/email.cjs +588 -0
  167. package/dist/email.cjs.map +1 -0
  168. package/dist/email.d.cts +7 -0
  169. package/dist/email.d.ts +7 -0
  170. package/dist/email.js +21 -0
  171. package/dist/email.js.map +1 -0
  172. package/dist/{emoticons-ZD6ZRIWG.js → emoticons-SHYSAEID.js} +7 -7
  173. package/dist/emoticons-SHYSAEID.js.map +1 -0
  174. package/dist/exportpdf-TEBDQZSN.js +91 -0
  175. package/dist/exportpdf-TEBDQZSN.js.map +1 -0
  176. package/dist/exportword-BGH2CZXO.js +16 -0
  177. package/dist/exportword-BGH2CZXO.js.map +1 -0
  178. package/dist/footnotes-ui-KPKFDSN7.js +449 -0
  179. package/dist/footnotes-ui-KPKFDSN7.js.map +1 -0
  180. package/dist/form-dialog-SNWFPM2K.js +379 -0
  181. package/dist/form-dialog-SNWFPM2K.js.map +1 -0
  182. package/dist/formatpainter-CB4ZTKR5.js +209 -0
  183. package/dist/formatpainter-CB4ZTKR5.js.map +1 -0
  184. package/dist/fullpagehtml-ui-JPGRMXHD.js +220 -0
  185. package/dist/fullpagehtml-ui-JPGRMXHD.js.map +1 -0
  186. package/dist/html-rules-api-BLDDW9MO.d.cts +42 -0
  187. package/dist/html-rules-api-BLDDW9MO.d.ts +42 -0
  188. package/dist/html-rules.cjs +21 -19
  189. package/dist/html-rules.cjs.map +1 -1
  190. package/dist/html-rules.d.cts +37 -35
  191. package/dist/html-rules.d.ts +37 -35
  192. package/dist/html-rules.js +26 -22
  193. package/dist/html-rules.js.map +1 -1
  194. package/dist/i18n/de.cjs +349 -0
  195. package/dist/i18n/de.cjs.map +1 -1
  196. package/dist/i18n/de.d.cts +1 -1
  197. package/dist/i18n/de.d.ts +1 -1
  198. package/dist/i18n/de.js +349 -0
  199. package/dist/i18n/de.js.map +1 -1
  200. package/dist/i18n/es.cjs +349 -0
  201. package/dist/i18n/es.cjs.map +1 -1
  202. package/dist/i18n/es.d.cts +1 -1
  203. package/dist/i18n/es.d.ts +1 -1
  204. package/dist/i18n/es.js +349 -0
  205. package/dist/i18n/es.js.map +1 -1
  206. package/dist/i18n/fr.cjs +349 -0
  207. package/dist/i18n/fr.cjs.map +1 -1
  208. package/dist/i18n/fr.d.cts +1 -1
  209. package/dist/i18n/fr.d.ts +1 -1
  210. package/dist/i18n/fr.js +349 -0
  211. package/dist/i18n/fr.js.map +1 -1
  212. package/dist/i18n/it.cjs +349 -0
  213. package/dist/i18n/it.cjs.map +1 -1
  214. package/dist/i18n/it.d.cts +1 -1
  215. package/dist/i18n/it.d.ts +1 -1
  216. package/dist/i18n/it.js +349 -0
  217. package/dist/i18n/it.js.map +1 -1
  218. package/dist/i18n/pt-BR.cjs +349 -0
  219. package/dist/i18n/pt-BR.cjs.map +1 -1
  220. package/dist/i18n/pt-BR.d.cts +1 -1
  221. package/dist/i18n/pt-BR.d.ts +1 -1
  222. package/dist/i18n/pt-BR.js +349 -0
  223. package/dist/i18n/pt-BR.js.map +1 -1
  224. package/dist/i18n/ru.cjs +349 -0
  225. package/dist/i18n/ru.cjs.map +1 -1
  226. package/dist/i18n/ru.d.cts +3 -3
  227. package/dist/i18n/ru.d.ts +3 -3
  228. package/dist/i18n/ru.js +349 -0
  229. package/dist/i18n/ru.js.map +1 -1
  230. package/dist/importcss-JLNIRKGH.js +127 -0
  231. package/dist/importcss-JLNIRKGH.js.map +1 -0
  232. package/dist/importword-ZOWLUWSN.js +73 -0
  233. package/dist/importword-ZOWLUWSN.js.map +1 -0
  234. package/dist/{index-C603bU6r.d.ts → index-Pb2r0V-S.d.cts} +39 -17
  235. package/dist/{index-C603bU6r.d.cts → index-Pb2r0V-S.d.ts} +39 -17
  236. package/dist/index.cjs +29422 -10640
  237. package/dist/index.cjs.map +1 -1
  238. package/dist/index.d.cts +139 -64
  239. package/dist/index.d.ts +139 -64
  240. package/dist/index.js +204 -1412
  241. package/dist/index.js.map +1 -1
  242. package/dist/{insertdatetime-CRO7TJAQ.js → insertdatetime-BXQ3XXPH.js} +7 -7
  243. package/dist/insertdatetime-BXQ3XXPH.js.map +1 -0
  244. package/dist/linkchecker-JASSETVI.js +287 -0
  245. package/dist/linkchecker-JASSETVI.js.map +1 -0
  246. package/dist/markdown-OTLTCK26.js +136 -0
  247. package/dist/markdown-OTLTCK26.js.map +1 -0
  248. package/dist/markdown.cjs +94 -11
  249. package/dist/markdown.cjs.map +1 -1
  250. package/dist/markdown.d.cts +12 -10
  251. package/dist/markdown.d.ts +12 -10
  252. package/dist/markdown.js +4 -235
  253. package/dist/markdown.js.map +1 -1
  254. package/dist/math-ui-TY4VZF7Q.js +157 -0
  255. package/dist/math-ui-TY4VZF7Q.js.map +1 -0
  256. package/dist/media-ui-IXN4ENVF.js +123 -0
  257. package/dist/media-ui-IXN4ENVF.js.map +1 -0
  258. package/dist/mediaembed-ui-ODX5ECXC.js +207 -0
  259. package/dist/mediaembed-ui-ODX5ECXC.js.map +1 -0
  260. package/dist/mentions-ui-55GCKC6F.js +58 -0
  261. package/dist/mentions-ui-55GCKC6F.js.map +1 -0
  262. package/dist/mergetags-ui-6T7Z7MAZ.js +73 -0
  263. package/dist/mergetags-ui-6T7Z7MAZ.js.map +1 -0
  264. package/dist/{nonbreaking-66LFZV2W.js → nonbreaking-PONHSOMJ.js} +7 -7
  265. package/dist/nonbreaking-PONHSOMJ.js.map +1 -0
  266. package/dist/pagebreak-ui-AKAW7M5I.js +50 -0
  267. package/dist/pagebreak-ui-AKAW7M5I.js.map +1 -0
  268. package/dist/pageembed-ui-GUNPKMBR.js +172 -0
  269. package/dist/pageembed-ui-GUNPKMBR.js.map +1 -0
  270. package/dist/pagelayout-ui-JSFVEMHS.js +236 -0
  271. package/dist/pagelayout-ui-JSFVEMHS.js.map +1 -0
  272. package/dist/{paste-office-F3QW4WWO.js → paste-office-TORLAZ5L.js} +94 -4
  273. package/dist/paste-office-TORLAZ5L.js.map +1 -0
  274. package/dist/permanentpen-EACURV5U.js +206 -0
  275. package/dist/permanentpen-EACURV5U.js.map +1 -0
  276. package/dist/print-4XJCOANX.js +178 -0
  277. package/dist/print-4XJCOANX.js.map +1 -0
  278. package/dist/{quickbars-7E2QRS7J.js → quickbars-BT5PETRX.js} +20 -12
  279. package/dist/quickbars-BT5PETRX.js.map +1 -0
  280. package/dist/{revisionhistory-DXE7KU4R.js → revisionhistory-3FKLMJHJ.js} +42 -153
  281. package/dist/revisionhistory-3FKLMJHJ.js.map +1 -0
  282. package/dist/save-ZHFXH222.js +120 -0
  283. package/dist/save-ZHFXH222.js.map +1 -0
  284. package/dist/search-bar-6MVRMTK6.js +212 -0
  285. package/dist/search-bar-6MVRMTK6.js.map +1 -0
  286. package/dist/spellchecker-JJKA6B4R.js +474 -0
  287. package/dist/spellchecker-JJKA6B4R.js.map +1 -0
  288. package/dist/suggestions-panel-X37NFLXE.js +596 -0
  289. package/dist/suggestions-panel-X37NFLXE.js.map +1 -0
  290. package/dist/suggestions-ui-WN7QNYHB.js +395 -0
  291. package/dist/suggestions-ui-WN7QNYHB.js.map +1 -0
  292. package/dist/table-PEF56QG5.js +54 -0
  293. package/dist/table-PEF56QG5.js.map +1 -0
  294. package/dist/table-dialogs-QS3VFZD2.js +119 -0
  295. package/dist/table-dialogs-QS3VFZD2.js.map +1 -0
  296. package/dist/tableofcontents-ui-U7EV3UU7.js +167 -0
  297. package/dist/tableofcontents-ui-U7EV3UU7.js.map +1 -0
  298. package/dist/template-ZRTKIP2J.js +278 -0
  299. package/dist/template-ZRTKIP2J.js.map +1 -0
  300. package/dist/typography-S7RO54DB.js +399 -0
  301. package/dist/typography-S7RO54DB.js.map +1 -0
  302. package/dist/upload.cjs +160 -0
  303. package/dist/upload.cjs.map +1 -0
  304. package/dist/upload.d.cts +72 -0
  305. package/dist/upload.d.ts +72 -0
  306. package/dist/upload.js +132 -0
  307. package/dist/upload.js.map +1 -0
  308. package/dist/{visualblocks-6DLBXYOA.js → visualblocks-KJYRHF2L.js} +7 -7
  309. package/dist/visualblocks-KJYRHF2L.js.map +1 -0
  310. package/dist/visualchars-TDLZKFXD.js +134 -0
  311. package/dist/visualchars-TDLZKFXD.js.map +1 -0
  312. package/package.json +53 -3
  313. package/src/style.css +376 -550
  314. package/dist/advlist-5FNKPLUX.js.map +0 -1
  315. package/dist/autolink-45LTODWB.js.map +0 -1
  316. package/dist/autoresize-UB3GOA6D.js.map +0 -1
  317. package/dist/autosave-GMWJ5BPE.js.map +0 -1
  318. package/dist/charmap-2GC7LF7G.js.map +0 -1
  319. package/dist/chunk-5AW2HHG6.js.map +0 -1
  320. package/dist/chunk-DWZLSZDG.js +0 -5664
  321. package/dist/chunk-DWZLSZDG.js.map +0 -1
  322. package/dist/chunk-FCMZ7TUQ.js.map +0 -1
  323. package/dist/chunk-HPLT3XRZ.js.map +0 -1
  324. package/dist/chunk-JPJVTB45.js.map +0 -1
  325. package/dist/chunk-KPE3QRPB.js.map +0 -1
  326. package/dist/chunk-KWXFL4WS.js.map +0 -1
  327. package/dist/chunk-ND2CWNVG.js.map +0 -1
  328. package/dist/chunk-PVFKXRID.js.map +0 -1
  329. package/dist/chunk-R2UMUCVI.js.map +0 -1
  330. package/dist/chunk-T3GY6IVK.js.map +0 -1
  331. package/dist/chunk-Z3ELZ77W.js.map +0 -1
  332. package/dist/comments-panel-HXMWSRAW.js.map +0 -1
  333. package/dist/directionality-5JLWQGP2.js.map +0 -1
  334. package/dist/editor-CXkltf1R.d.ts +0 -1886
  335. package/dist/editor-CgSBFTke.d.cts +0 -1886
  336. package/dist/emoticons-ZD6ZRIWG.js.map +0 -1
  337. package/dist/form-dialog-QH6KAERD.js +0 -180
  338. package/dist/form-dialog-QH6KAERD.js.map +0 -1
  339. package/dist/html-rules-api-D3fKQi-R.d.cts +0 -40
  340. package/dist/html-rules-api-D3fKQi-R.d.ts +0 -40
  341. package/dist/insertdatetime-CRO7TJAQ.js.map +0 -1
  342. package/dist/nonbreaking-66LFZV2W.js.map +0 -1
  343. package/dist/paste-office-F3QW4WWO.js.map +0 -1
  344. package/dist/quickbars-7E2QRS7J.js.map +0 -1
  345. package/dist/revisionhistory-DXE7KU4R.js.map +0 -1
  346. package/dist/table-SSNABG5W.js.map +0 -1
  347. package/dist/visualblocks-6DLBXYOA.js.map +0 -1
@@ -1,7 +1,13 @@
1
+ import {
2
+ elementId
3
+ } from "./chunk-XR7CY4NI.js";
4
+ import {
5
+ codeLanguage
6
+ } from "./chunk-G74HNSB6.js";
1
7
  import {
2
8
  isSafeImageUrl,
3
9
  isSafeLinkUrl
4
- } from "./chunk-PVFKXRID.js";
10
+ } from "./chunk-4VPDY3LF.js";
5
11
 
6
12
  // src/table-nodes.ts
7
13
  function getCellAttrs(dom, extra) {
@@ -77,8 +83,104 @@ function isInTable(state) {
77
83
  return false;
78
84
  }
79
85
 
86
+ // src/language.ts
87
+ var DEFAULT_CONTENT_LANGS = [
88
+ "ar",
89
+ "de",
90
+ "el",
91
+ "en",
92
+ "es",
93
+ "fr",
94
+ "he",
95
+ "hi",
96
+ "it",
97
+ "ja",
98
+ "ko",
99
+ "la",
100
+ "nl",
101
+ "pl",
102
+ "pt",
103
+ "ru",
104
+ "sv",
105
+ "tr",
106
+ "uk",
107
+ "zh"
108
+ ];
109
+ var TAG = /^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$/;
110
+ function languageTag(value) {
111
+ if (typeof value !== "string") return null;
112
+ const tag = value.trim();
113
+ if (tag.length > 35 || !TAG.test(tag)) return null;
114
+ try {
115
+ return Intl.getCanonicalLocales(tag)[0] ?? null;
116
+ } catch {
117
+ return null;
118
+ }
119
+ }
120
+ var primaryLanguage = (tag) => tag.split("-")[0].toLowerCase();
121
+ function languageName(code, uiLanguage = "en") {
122
+ try {
123
+ return new Intl.DisplayNames([uiLanguage, "en"], { type: "language" }).of(code) ?? code;
124
+ } catch {
125
+ return code;
126
+ }
127
+ }
128
+ function contentLanguages(configured, uiLanguage = "en") {
129
+ const list = configured ?? DEFAULT_CONTENT_LANGS.map((code) => ({ code }));
130
+ const out = [];
131
+ for (const entry of list) {
132
+ const code = languageTag(entry?.code);
133
+ if (!code || out.some((o) => o.code === code)) continue;
134
+ const title = typeof entry.title === "string" && entry.title.trim() ? entry.title.trim() : languageName(code, uiLanguage);
135
+ out.push({ code, title });
136
+ }
137
+ if (!configured) out.sort((a, b) => a.title.localeCompare(b.title, uiLanguage));
138
+ return out;
139
+ }
140
+ function getTextLanguage(state) {
141
+ const type = state.schema.marks.language;
142
+ if (!type) return null;
143
+ const { $from, empty } = state.selection;
144
+ const marks2 = empty ? state.storedMarks ?? $from.marks() : $from.nodeAfter?.marks ?? $from.marks();
145
+ return languageTag(type.isInSet(marks2)?.attrs.lang);
146
+ }
147
+ function setTextLanguage(lang) {
148
+ return (state, dispatch) => {
149
+ const type = state.schema.marks.language;
150
+ const tag = lang === null ? null : languageTag(lang);
151
+ if (!type || lang !== null && !tag) return false;
152
+ const { selection } = state;
153
+ let applies = false;
154
+ if (selection.empty) applies = selection.$from.parent.type.allowsMarkType(type);
155
+ else
156
+ for (const { $from, $to } of selection.ranges)
157
+ state.doc.nodesBetween($from.pos, $to.pos, (node, _pos, parent) => {
158
+ if (applies) return false;
159
+ if (node.isInline && parent?.type.allowsMarkType(type)) applies = true;
160
+ return true;
161
+ });
162
+ if (!applies) return false;
163
+ if (!dispatch) return true;
164
+ const tr = state.tr;
165
+ if (selection.empty) {
166
+ tr.removeStoredMark(type);
167
+ if (tag) tr.addStoredMark(type.create({ lang: tag }));
168
+ } else {
169
+ for (const { $from, $to } of selection.ranges) {
170
+ tr.removeMark($from.pos, $to.pos, type);
171
+ if (tag) tr.addMark($from.pos, $to.pos, type.create({ lang: tag }));
172
+ }
173
+ }
174
+ dispatch(tr.scrollIntoView());
175
+ return true;
176
+ };
177
+ }
178
+
80
179
  // src/schema.ts
81
- import { Schema } from "prosemirror-model";
180
+ import {
181
+ Fragment,
182
+ Schema
183
+ } from "prosemirror-model";
82
184
  var ALIGNMENTS = ["left", "center", "right", "justify"];
83
185
  var COLOR_RE = /^(#[0-9a-f]{3,8}|rgba?\(\s*[\d.]+%?\s*,\s*[\d.]+%?\s*,\s*[\d.]+%?\s*(,\s*[\d.]+%?\s*)?\)|[a-z]{3,20})$/i;
84
186
  var LENGTH_RE = /^\d{1,4}(\.\d{1,3})?(px|pt|em|rem|%)$/;
@@ -97,7 +199,7 @@ function normalizeColor(value) {
97
199
  return v;
98
200
  }
99
201
  var cssValue = {
100
- color: (v) => typeof v === "string" && COLOR_RE.test(v.trim()) && // Не цвета, а «по умолчанию»: transparent (Google Docs), windowtext и auto (Word).
202
+ color: (v) => typeof v === "string" && COLOR_RE.test(v.trim()) && // Not colors but "default": transparent (Google Docs), windowtext and auto (Word).
101
203
  !/^(inherit|initial|unset|currentcolor|transparent|windowtext|window|auto|none)$/i.test(
102
204
  v.trim()
103
205
  ) ? normalizeColor(v) : null,
@@ -217,7 +319,7 @@ function buildTableNodes(allow) {
217
319
  tableGroup: "block",
218
320
  cellContent: "block+",
219
321
  cellAttributes: {
220
- // Стиль ячейки из списка (tableCellClassList) — рамки, отступы задаёт CSS сайта.
322
+ // A cell style from the list (tableCellClassList): the site's CSS sets borders and padding.
221
323
  class: {
222
324
  default: null,
223
325
  getFromDOM: (dom) => readClass(dom, allow),
@@ -228,7 +330,7 @@ function buildTableNodes(allow) {
228
330
  },
229
331
  background: {
230
332
  default: null,
231
- // Фон заранее перенесён в data-атрибут (parser.ts → preprocessDOM); style — запасной путь.
333
+ // The background was moved into a data attribute beforehand (parser.ts → preprocessDOM); style is the fallback.
232
334
  getFromDOM: (dom) => cssValue.color(
233
335
  dom.getAttribute("data-nova-cell-bg") ?? dom.style?.backgroundColor
234
336
  ),
@@ -255,7 +357,7 @@ function buildTableNodes(allow) {
255
357
  specs.table.attrs = {
256
358
  width: { default: null },
257
359
  align: { default: null },
258
- // Стиль таблицы из списка (tableClassList): «с рамками», «раскладка без рамок»…
360
+ // A table style from the list (tableClassList): "with borders", "layout without borders"…
259
361
  class: { default: null }
260
362
  };
261
363
  specs.table.parseDOM = [
@@ -300,6 +402,60 @@ function buildTableNodes(allow) {
300
402
  }
301
403
  var NO_CLASSES = () => false;
302
404
  var CLASS_TOKEN = /^-?[_a-zA-Z][\w-]*$/;
405
+ var LANGUAGE_CLASS = /(?:^|\s)lang(?:uage)?-(\S+)/;
406
+ function readCodeLanguage(pre) {
407
+ for (const el of [pre.querySelector("code"), pre]) {
408
+ if (!el) continue;
409
+ const value = codeLanguage(LANGUAGE_CLASS.exec(el.getAttribute("class") ?? "")?.[1]) ?? codeLanguage(el.getAttribute("data-language"));
410
+ if (value) return value;
411
+ }
412
+ return null;
413
+ }
414
+ var PRE_BLOCKS = /^(?:P|DIV|H[1-6]|LI|UL|OL|DL|DT|DD|TABLE|TR|BLOCKQUOTE|PRE|SECTION|ARTICLE|HEADER|FOOTER)$/;
415
+ function preText(pre) {
416
+ let out = "";
417
+ let pendingLine = false;
418
+ const add = (text) => {
419
+ if (!text) return;
420
+ if (pendingLine) out += "\n";
421
+ pendingLine = false;
422
+ out += text;
423
+ };
424
+ const walk = (node) => {
425
+ for (const child of node.childNodes) {
426
+ if (child.nodeType === 3) add(child.data);
427
+ else if (child.nodeType === 1) {
428
+ const tag = child.tagName;
429
+ if (tag === "BR") {
430
+ pendingLine = false;
431
+ out += "\n";
432
+ } else if (PRE_BLOCKS.test(tag)) {
433
+ if (out && (pendingLine || !out.endsWith("\n"))) out += "\n";
434
+ pendingLine = false;
435
+ walk(child);
436
+ pendingLine = true;
437
+ } else walk(child);
438
+ }
439
+ }
440
+ };
441
+ walk(pre);
442
+ return out;
443
+ }
444
+ function isChecklistElement(dom) {
445
+ return dom.getAttribute("data-type") === "taskList" || dom.classList.contains("tox-checklist") || dom.classList.contains("contains-task-list");
446
+ }
447
+ function readChecked(dom) {
448
+ const list = dom.parentElement;
449
+ if (!list || !isChecklistElement(list)) return null;
450
+ const data = dom.getAttribute("data-checked");
451
+ if (data === "true" || data === "false") return data === "true";
452
+ if (dom.classList.contains("tox-checklist--checked")) return true;
453
+ const box = [...dom.querySelectorAll('input[type="checkbox"]')].find(
454
+ (el) => el.closest("li") === dom
455
+ );
456
+ if (box) return box.hasAttribute("checked");
457
+ return false;
458
+ }
303
459
  function headingLevel(value) {
304
460
  const level = Math.trunc(Number(value));
305
461
  return level >= 1 && level <= 6 ? level : 1;
@@ -339,19 +495,25 @@ var buildNodes = (allow, rtl = false) => ({
339
495
  group: "block",
340
496
  content: "inline*",
341
497
  defining: true,
342
- attrs: { level: { default: 1 }, ...blockStyleSpec, ...classSpec },
498
+ // id is for links to a section (table of contents, #anchor); checked both when parsing and on output.
499
+ attrs: { level: { default: 1 }, id: { default: null }, ...blockStyleSpec, ...classSpec },
343
500
  parseDOM: [1, 2, 3, 4, 5, 6].map((level) => ({
344
501
  tag: `h${level}`,
345
502
  getAttrs: (dom) => ({
346
503
  level,
504
+ id: elementId(dom.getAttribute("id")),
347
505
  ...readBlockStyle(dom, rtl),
348
506
  class: readClass(dom, allow)
349
507
  })
350
508
  })),
351
509
  toDOM: (node) => [
352
- // Уровень мог прийти из JSON чем угодно — в имя тега попадает только 1–6.
510
+ // The level could come from JSON as anything: only 1–6 gets into the tag name.
353
511
  `h${headingLevel(node.attrs.level)}`,
354
- { ...classAttr(node.attrs.class), ...blockStyleAttrs(node.attrs, rtl) },
512
+ {
513
+ ...elementId(node.attrs.id) ? { id: node.attrs.id } : {},
514
+ ...classAttr(node.attrs.class),
515
+ ...blockStyleAttrs(node.attrs, rtl)
516
+ },
355
517
  0
356
518
  ]
357
519
  },
@@ -384,35 +546,39 @@ var buildNodes = (allow, rtl = false) => ({
384
546
  {
385
547
  tag: "pre",
386
548
  preserveWhitespace: "full",
387
- getAttrs: (dom) => {
388
- const code = dom.querySelector("code");
389
- const match = code?.className.match(/language-([\w-]+)/);
390
- return { language: match?.[1] ?? null };
549
+ getAttrs: (dom) => ({ language: readCodeLanguage(dom) }),
550
+ // The text, read as it is (see preText).
551
+ getContent: (dom, schema2) => {
552
+ const text = preText(dom);
553
+ return text ? Fragment.from(schema2.text(text)) : Fragment.empty;
391
554
  }
392
555
  }
393
556
  ],
394
- toDOM: (node) => [
395
- "pre",
396
- ["code", node.attrs.language ? { class: `language-${node.attrs.language}` } : {}, 0]
397
- ]
557
+ toDOM: (node) => {
558
+ const language = codeLanguage(node.attrs.language);
559
+ return ["pre", ["code", language ? { class: `language-${language}` } : {}, 0]];
560
+ }
398
561
  },
562
+ // A checklist is a bulleted list with the checklist flag (items with checked): all the list mechanics
563
+ // (Enter, Tab, indents, paste, Markdown) work without a second list type. The HTML is Tiptap's
564
+ // (data-type="taskList"/"taskItem", data-checked); parsing understands TinyMCE and GitHub too.
399
565
  bullet_list: {
400
566
  group: "block",
401
567
  content: "list_item+",
402
- attrs: { listStyle: { default: null } },
568
+ attrs: { listStyle: { default: null }, checklist: { default: false } },
403
569
  parseDOM: [
404
570
  {
405
571
  tag: "ul",
406
- getAttrs: (dom) => ({
407
- listStyle: readListStyle(dom, BULLET_STYLES, "disc")
408
- })
572
+ getAttrs: (dom) => {
573
+ const checklist = isChecklistElement(dom);
574
+ return {
575
+ listStyle: checklist ? null : readListStyle(dom, BULLET_STYLES, "disc"),
576
+ checklist
577
+ };
578
+ }
409
579
  }
410
580
  ],
411
- toDOM: (node) => [
412
- "ul",
413
- listStyleAttrs(node.attrs.listStyle, BULLET_STYLES),
414
- 0
415
- ]
581
+ toDOM: (node) => node.attrs.checklist === true ? ["ul", { "data-type": "taskList" }, 0] : ["ul", listStyleAttrs(node.attrs.listStyle, BULLET_STYLES), 0]
416
582
  },
417
583
  ordered_list: {
418
584
  group: "block",
@@ -442,14 +608,16 @@ var buildNodes = (allow, rtl = false) => ({
442
608
  list_item: {
443
609
  content: "paragraph block*",
444
610
  defining: true,
445
- parseDOM: [{ tag: "li" }],
446
- toDOM: () => ["li", 0]
611
+ // checked: null is a regular item; true/false is a checklist item (checked / not).
612
+ attrs: { checked: { default: null } },
613
+ parseDOM: [{ tag: "li", getAttrs: (dom) => ({ checked: readChecked(dom) }) }],
614
+ toDOM: (node) => typeof node.attrs.checked === "boolean" ? ["li", { "data-type": "taskItem", "data-checked": String(node.attrs.checked) }, 0] : ["li", 0]
447
615
  },
448
616
  text: { group: "inline" },
449
617
  /**
450
- * Картинка с подписью: <figure><img><figcaption>…</figcaption></figure> — как в HTML, два блока
451
- * внутри. Поэтому подпись нельзя превратить в заголовок или список (схема не пустит другой блок
452
- * в figure) — картинка не потеряется. Атрибуты картинки — у figure_image, выравнивание — у figure.
618
+ * An image with a caption: <figure><img><figcaption>…</figcaption></figure>, as in HTML — two
619
+ * blocks inside. So the caption can't become a heading or a list (the schema won't let another
620
+ * block into figure) and the image is never lost. Image attributes live on figure_image, alignment on figure.
453
621
  */
454
622
  figure: {
455
623
  group: "block",
@@ -475,12 +643,12 @@ var buildNodes = (allow, rtl = false) => ({
475
643
  return ["figure", { ...classAttr(node.attrs.class), ...style ? { style } : {} }, 0];
476
644
  }
477
645
  },
478
- /** Картинка внутри figure (блочная, в отличие от картинки в строке). */
646
+ /** An image inside figure (a block, unlike an image in a line). */
479
647
  figure_image: {
480
648
  atom: true,
481
649
  selectable: false,
482
650
  attrs: {
483
- // Значение по умолчанию нужно ProseMirror, чтобы обязательный узел можно было достроить.
651
+ // ProseMirror needs a default value so that a required node can be filled in.
484
652
  src: { default: "" },
485
653
  alt: { default: null },
486
654
  title: { default: null },
@@ -514,7 +682,9 @@ var buildNodes = (allow, rtl = false) => ({
514
682
  "img",
515
683
  {
516
684
  src,
517
- ...alt ? { alt } : {},
685
+ // alt="" (a decorative image) is kept: screen readers skip such an image instead of
686
+ // reading its file name. No alt at all means it was never given.
687
+ ...alt === null || alt === void 0 ? {} : { alt: String(alt) },
518
688
  ...title ? { title } : {},
519
689
  ...width ? { width: String(width) } : {},
520
690
  ...height ? { height: String(height) } : {}
@@ -569,7 +739,9 @@ var buildNodes = (allow, rtl = false) => ({
569
739
  {
570
740
  src,
571
741
  ...classAttr(node.attrs.class),
572
- ...alt ? { alt } : {},
742
+ // alt="" (a decorative image) is kept: screen readers skip such an image instead of
743
+ // reading its file name. No alt at all means it was never given.
744
+ ...alt === null || alt === void 0 ? {} : { alt: String(alt) },
573
745
  ...title ? { title } : {},
574
746
  ...width ? { width: String(width) } : {},
575
747
  ...height ? { height: String(height) } : {},
@@ -589,6 +761,31 @@ var buildNodes = (allow, rtl = false) => ({
589
761
  });
590
762
  var nodes = buildNodes(NO_CLASSES);
591
763
  var buildMarks = (allow) => ({
764
+ /**
765
+ * <span lang="…"> — a passage in another language (WCAG 3.1.2): screen readers read it with that
766
+ * language's voice. Any element's lang reaches its text: <p lang="fr"> stays a paragraph and its
767
+ * text is marked. The rule doesn't consume the element, so its own rules still apply.
768
+ */
769
+ language: {
770
+ // A JSON document can leave it out: no language, a plain span.
771
+ attrs: { lang: { default: null } },
772
+ parseDOM: [
773
+ {
774
+ tag: "[lang]",
775
+ // Before the rules of em, strong, a…: they consume their element.
776
+ priority: 60,
777
+ consuming: false,
778
+ getAttrs: (dom) => {
779
+ const lang = languageTag(dom.getAttribute("lang"));
780
+ return lang ? { lang } : false;
781
+ }
782
+ }
783
+ ],
784
+ toDOM: (mark) => {
785
+ const lang = languageTag(mark.attrs.lang);
786
+ return lang ? ["span", { lang }, 0] : ["span", 0];
787
+ }
788
+ },
592
789
  link: {
593
790
  attrs: { href: {}, title: { default: null }, target: { default: null } },
594
791
  inclusive: false,
@@ -623,7 +820,7 @@ var buildMarks = (allow) => ({
623
820
  bold: {
624
821
  parseDOM: [
625
822
  { tag: "strong" },
626
- // <b style="font-weight: normal"> встречается при вставке из Google Docs — это не жирный.
823
+ // <b style="font-weight: normal"> shows up in content pasted from Google Docs: that is not bold.
627
824
  {
628
825
  tag: "b",
629
826
  getAttrs: (dom) => dom.style?.fontWeight !== "normal" && null
@@ -653,12 +850,14 @@ var buildMarks = (allow) => ({
653
850
  toDOM: () => ["s", 0]
654
851
  },
655
852
  code: {
853
+ // Code: typing rules (-- → —, ... → …) and autocorrect leave it as typed.
854
+ code: true,
656
855
  parseDOM: [{ tag: "code" }],
657
856
  toDOM: () => ["code", 0]
658
857
  },
659
858
  subscript: {
660
859
  excludes: "superscript",
661
- // vertical-align — так нижний индекс передают Google Docs и Word.
860
+ // vertical-align: the way Google Docs and Word pass subscript.
662
861
  parseDOM: [{ tag: "sub" }, { style: "vertical-align=sub" }],
663
862
  toDOM: () => ["sub", 0]
664
863
  },
@@ -667,7 +866,7 @@ var buildMarks = (allow) => ({
667
866
  parseDOM: [{ tag: "sup" }, { style: "vertical-align=super" }],
668
867
  toDOM: () => ["sup", 0]
669
868
  },
670
- // ---------- текстовые стили (PRD §4.2): <span style="…"> как у TinyMCE ----------
869
+ // ---------- text styles: <span style="…"> as in TinyMCE ----------
671
870
  color: {
672
871
  attrs: { value: {} },
673
872
  parseDOM: [
@@ -697,13 +896,13 @@ var buildMarks = (allow) => ({
697
896
  parseDOM: [{ style: "font-size", getAttrs: (v) => styleAttr(cssValue.length(v)) }],
698
897
  toDOM: (mark) => styleSpan("font-size", cssValue.length(mark.attrs.value))
699
898
  },
700
- /** <span class="…"> — инлайн-стиль из style_formats. Только разрешённые классы. */
899
+ /** <span class="…"> — an inline style from style_formats. Allowed classes only. */
701
900
  span_class: {
702
901
  attrs: { class: {} },
703
902
  parseDOM: [
704
903
  {
705
904
  tag: "span[class]",
706
- // Не «съедает» span: его style-атрибуты разбирают марки цвета и шрифта.
905
+ // Doesn't "consume" the span: the color and font marks parse its style attributes.
707
906
  consuming: false,
708
907
  getAttrs: (dom) => {
709
908
  const value = readClass(dom, allow);
@@ -722,11 +921,49 @@ function styleSpan(property, value) {
722
921
  return value ? ["span", { style: `${property}: ${value};` }, 0] : ["span", 0];
723
922
  }
724
923
  var schema = new Schema({ nodes, marks });
924
+ function withAttribute(name, attr, spec) {
925
+ const toDOM = spec.toDOM;
926
+ return {
927
+ ...spec,
928
+ attrs: { ...spec.attrs, [name]: { default: attr.default } },
929
+ parseDOM: spec.parseDOM?.map((rule) => {
930
+ if (!rule.tag) return rule;
931
+ const getAttrs = rule.getAttrs;
932
+ return {
933
+ ...rule,
934
+ getAttrs: (dom) => {
935
+ const base = getAttrs ? getAttrs(dom) : rule.attrs ?? null;
936
+ if (base === false) return false;
937
+ const value = attr.parse(dom);
938
+ return value == null ? base : { ...base, [name]: value };
939
+ }
940
+ };
941
+ }),
942
+ ...toDOM ? {
943
+ toDOM: (node) => {
944
+ const out = toDOM(node);
945
+ const extra = attr.render(node.attrs[name]);
946
+ if (!Array.isArray(out) || typeof out[0] !== "string" || !Object.keys(extra).length)
947
+ return out;
948
+ const second = out[1];
949
+ const hasAttrs = !!second && typeof second === "object" && !Array.isArray(second) && second.nodeType === void 0;
950
+ return [
951
+ out[0],
952
+ { ...hasAttrs ? second : {}, ...extra },
953
+ ...out.slice(hasAttrs ? 2 : 1)
954
+ ];
955
+ }
956
+ } : {}
957
+ };
958
+ }
959
+ var holdsText = (spec) => /\b(inline|text)\b/.test(spec.content ?? "");
725
960
  function createSchema(extensions = {}, classFilter, htmlRules, direction = "ltr") {
726
961
  const rtl = direction === "rtl";
727
962
  const extraNodes = Object.entries(extensions.nodes ?? {});
728
963
  const extraMarks = Object.entries(extensions.marks ?? {});
729
- if (!extraNodes.length && !extraMarks.length && !classFilter && !htmlRules && !rtl) return schema;
964
+ const attributes = Object.entries(extensions.attributes ?? {});
965
+ if (!extraNodes.length && !extraMarks.length && !attributes.length && !classFilter && !htmlRules && !rtl)
966
+ return schema;
730
967
  let baseNodes = classFilter || rtl ? buildNodes(classFilter ?? NO_CLASSES, rtl) : nodes;
731
968
  let baseMarks = classFilter ? buildMarks(classFilter) : marks;
732
969
  const ref = {};
@@ -742,8 +979,18 @@ function createSchema(extensions = {}, classFilter, htmlRules, direction = "ltr"
742
979
  for (const [name] of extraMarks) {
743
980
  if (name in marks) throw new Error(`[nova] mark "${name}" already exists in the base schema`);
744
981
  }
982
+ let allNodes = { ...baseNodes, ...Object.fromEntries(extraNodes) };
983
+ const gets = (attr, node, spec) => attr.nodes === "all" ? node !== "doc" && node !== "text" : attr.nodes === "textblock" ? holdsText(spec) : attr.nodes.includes(node);
984
+ for (const [name, attr] of attributes) {
985
+ allNodes = Object.fromEntries(
986
+ Object.entries(allNodes).map(([node, spec]) => [
987
+ node,
988
+ gets(attr, node, spec) && !spec.attrs?.[name] ? withAttribute(name, attr, spec) : spec
989
+ ])
990
+ );
991
+ }
745
992
  ref.schema = new Schema({
746
- nodes: { ...baseNodes, ...Object.fromEntries(extraNodes) },
993
+ nodes: allNodes,
747
994
  marks: { ...baseMarks, ...Object.fromEntries(extraMarks) }
748
995
  });
749
996
  return ref.schema;
@@ -751,6 +998,12 @@ function createSchema(extensions = {}, classFilter, htmlRules, direction = "ltr"
751
998
 
752
999
  export {
753
1000
  isInTable,
1001
+ languageTag,
1002
+ primaryLanguage,
1003
+ languageName,
1004
+ contentLanguages,
1005
+ getTextLanguage,
1006
+ setTextLanguage,
754
1007
  ALIGNMENTS,
755
1008
  cssValue,
756
1009
  indentLevel,
@@ -761,4 +1014,4 @@ export {
761
1014
  schema,
762
1015
  createSchema
763
1016
  };
764
- //# sourceMappingURL=chunk-FCMZ7TUQ.js.map
1017
+ //# sourceMappingURL=chunk-6BJEOL5V.js.map