@nldd/design-system 0.8.64 → 0.8.65

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 (459) hide show
  1. package/dist/components/actions/button/button.d.ts.map +1 -1
  2. package/dist/components/actions/button/button.js +7 -6
  3. package/dist/components/actions/button/button.js.map +1 -1
  4. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  5. package/dist/components/actions/button/button.styles.js +9 -5
  6. package/dist/components/actions/button/button.styles.js.map +1 -1
  7. package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
  8. package/dist/components/actions/button-bar/button-bar.js +3 -2
  9. package/dist/components/actions/button-bar/button-bar.js.map +1 -1
  10. package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
  11. package/dist/components/actions/button-group/button-group.js +3 -2
  12. package/dist/components/actions/button-group/button-group.js.map +1 -1
  13. package/dist/components/actions/icon-button/icon-button.d.ts +4 -0
  14. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.js +13 -5
  16. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  18. package/dist/components/actions/icon-button/icon-button.styles.js +15 -10
  19. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  20. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.template.js +2 -0
  22. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  23. package/dist/components/actions/menu/menu.d.ts +1 -0
  24. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  25. package/dist/components/actions/menu/menu.js +33 -15
  26. package/dist/components/actions/menu/menu.js.map +1 -1
  27. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  28. package/dist/components/actions/menu/menu.styles.js +8 -0
  29. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  30. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  31. package/dist/components/actions/split-button/split-button.js +5 -4
  32. package/dist/components/actions/split-button/split-button.js.map +1 -1
  33. package/dist/components/actions/toolbar/toolbar.d.ts +11 -0
  34. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  35. package/dist/components/actions/toolbar/toolbar.js +112 -40
  36. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  37. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  38. package/dist/components/actions/toolbar/toolbar.styles.js +3 -12
  39. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  40. package/dist/components/components.js +104 -102
  41. package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
  42. package/dist/components/content/blockquote/blockquote.styles.js +0 -3
  43. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  44. package/dist/components/content/byline/byline.d.ts.map +1 -1
  45. package/dist/components/content/byline/byline.js +3 -2
  46. package/dist/components/content/byline/byline.js.map +1 -1
  47. package/dist/components/content/code-viewer/code-viewer.d.ts +24 -64
  48. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  49. package/dist/components/content/code-viewer/code-viewer.js +239 -156
  50. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  51. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  52. package/dist/components/content/code-viewer/code-viewer.styles.js +33 -92
  53. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  54. package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
  55. package/dist/components/content/code-viewer/code-viewer.template.js +10 -29
  56. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  57. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  58. package/dist/components/content/icon/icon-aliases.js +22 -1
  59. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  60. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  61. package/dist/components/content/icon/icon-registry.js +18 -0
  62. package/dist/components/content/icon/icon-registry.js.map +1 -1
  63. package/dist/components/content/icon/icon.d.ts.map +1 -1
  64. package/dist/components/content/icon/icon.js +3 -2
  65. package/dist/components/content/icon/icon.js.map +1 -1
  66. package/dist/components/content/image/image.d.ts.map +1 -1
  67. package/dist/components/content/image/image.js +7 -6
  68. package/dist/components/content/image/image.js.map +1 -1
  69. package/dist/components/content/image/image.styles.d.ts.map +1 -1
  70. package/dist/components/content/image/image.styles.js +2 -6
  71. package/dist/components/content/image/image.styles.js.map +1 -1
  72. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
  73. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +8 -7
  74. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  75. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  76. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +5 -1
  77. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  78. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  79. package/dist/components/content/rich-text/rich-text.js +3 -2
  80. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  81. package/dist/components/content/tag/tag.d.ts.map +1 -1
  82. package/dist/components/content/tag/tag.js +5 -4
  83. package/dist/components/content/tag/tag.js.map +1 -1
  84. package/dist/components/content/title/title.d.ts.map +1 -1
  85. package/dist/components/content/title/title.js +2 -1
  86. package/dist/components/content/title/title.js.map +1 -1
  87. package/dist/components/content/token/token.d.ts +70 -0
  88. package/dist/components/content/token/token.d.ts.map +1 -0
  89. package/dist/components/content/token/token.js +170 -0
  90. package/dist/components/content/token/token.js.map +1 -0
  91. package/dist/components/content/token/token.styles.d.ts.map +1 -0
  92. package/dist/components/content/token/token.styles.js +122 -0
  93. package/dist/components/content/token/token.styles.js.map +1 -0
  94. package/dist/components/content/token/token.template.d.ts +6 -0
  95. package/dist/components/content/token/token.template.d.ts.map +1 -0
  96. package/dist/components/content/token/token.template.js +47 -0
  97. package/dist/components/content/token/token.template.js.map +1 -0
  98. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  99. package/dist/components/content/tooltip/tooltip.js +14 -5
  100. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  101. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  102. package/dist/components/content/tooltip/tooltip.styles.js +11 -0
  103. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  104. package/dist/components/gherkin-DhZlEZiy.js +115 -0
  105. package/dist/components/index-BI4lrehT.js +66595 -0
  106. package/dist/components/index-BcdqzZql.js +703 -0
  107. package/dist/components/index-BlMqctke.js +81 -0
  108. package/dist/components/index-BseMFLNF.js +688 -0
  109. package/dist/components/index-ChjtFo6I.js +177 -0
  110. package/dist/components/index-D3NSlPL5.js +405 -0
  111. package/dist/components/index-D7B3n3QJ.js +384 -0
  112. package/dist/components/index.d.ts +20 -18
  113. package/dist/components/index.d.ts.map +1 -1
  114. package/dist/components/index.js +20 -18
  115. package/dist/components/index.js.map +1 -1
  116. package/dist/components/inputs/code-editor/code-editor.d.ts +58 -29
  117. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  118. package/dist/components/inputs/code-editor/code-editor.js +241 -52
  119. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  120. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  121. package/dist/components/inputs/code-editor/code-editor.styles.js +58 -46
  122. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  123. package/dist/components/inputs/code-editor/code-editor.template.d.ts +1 -1
  124. package/dist/components/inputs/code-editor/code-editor.template.d.ts.map +1 -1
  125. package/dist/components/inputs/code-editor/code-editor.template.js +5 -22
  126. package/dist/components/inputs/code-editor/code-editor.template.js.map +1 -1
  127. package/dist/components/inputs/combo-box/combo-box.d.ts +15 -4
  128. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  129. package/dist/components/inputs/combo-box/combo-box.js +53 -9
  130. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  131. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  132. package/dist/components/inputs/dropdown/dropdown.js +2 -1
  133. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  134. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +1 -1
  135. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
  136. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +6 -5
  137. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
  138. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
  139. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +8 -11
  140. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  141. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  142. package/dist/components/inputs/number-field/number-field.js +2 -1
  143. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  144. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  145. package/dist/components/inputs/password-field/password-field.js +3 -2
  146. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  147. package/dist/components/inputs/radio-button-group/radio-button-group.js +1 -1
  148. package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
  149. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  150. package/dist/components/inputs/search-field/search-field.js +2 -1
  151. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  152. package/dist/components/inputs/segmented-control/segmented-control.d.ts +1 -1
  153. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  154. package/dist/components/inputs/segmented-control/segmented-control.js +10 -9
  155. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  156. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  157. package/dist/components/inputs/segmented-control/segmented-control.styles.js +70 -36
  158. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  159. package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
  160. package/dist/components/inputs/stepper/stepper.js +2 -1
  161. package/dist/components/inputs/stepper/stepper.js.map +1 -1
  162. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  163. package/dist/components/inputs/switch/switch.js +2 -1
  164. package/dist/components/inputs/switch/switch.js.map +1 -1
  165. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts +51 -0
  166. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts.map +1 -0
  167. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js +148 -0
  168. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js.map +1 -0
  169. package/dist/components/inputs/text-editor/text-editor.annotations.d.ts +47 -0
  170. package/dist/components/inputs/text-editor/text-editor.annotations.d.ts.map +1 -0
  171. package/dist/components/inputs/text-editor/text-editor.annotations.js +327 -0
  172. package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -0
  173. package/dist/components/inputs/text-editor/text-editor.caret.d.ts +13 -0
  174. package/dist/components/inputs/text-editor/text-editor.caret.d.ts.map +1 -0
  175. package/dist/components/inputs/text-editor/text-editor.caret.js +27 -0
  176. package/dist/components/inputs/text-editor/text-editor.caret.js.map +1 -0
  177. package/dist/components/inputs/text-editor/text-editor.commands.d.ts +61 -0
  178. package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -0
  179. package/dist/components/inputs/text-editor/text-editor.commands.js +376 -0
  180. package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -0
  181. package/dist/components/inputs/text-editor/text-editor.d.ts +241 -0
  182. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -0
  183. package/dist/components/inputs/text-editor/text-editor.drag.d.ts +30 -0
  184. package/dist/components/inputs/text-editor/text-editor.drag.d.ts.map +1 -0
  185. package/dist/components/inputs/text-editor/text-editor.drag.js +231 -0
  186. package/dist/components/inputs/text-editor/text-editor.drag.js.map +1 -0
  187. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +8 -0
  188. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -0
  189. package/dist/components/inputs/text-editor/text-editor.i18n.js +13 -0
  190. package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -0
  191. package/dist/components/inputs/text-editor/text-editor.js +782 -0
  192. package/dist/components/inputs/text-editor/text-editor.js.map +1 -0
  193. package/dist/components/inputs/text-editor/text-editor.links.d.ts +18 -0
  194. package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -0
  195. package/dist/components/inputs/text-editor/text-editor.links.js +147 -0
  196. package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -0
  197. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts +20 -0
  198. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -0
  199. package/dist/components/inputs/text-editor/text-editor.markdown.js +372 -0
  200. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -0
  201. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +32 -0
  202. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -0
  203. package/dist/components/inputs/text-editor/text-editor.mentions.js +153 -0
  204. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -0
  205. package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts +12 -0
  206. package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts.map +1 -0
  207. package/dist/components/inputs/text-editor/text-editor.ordered-list.js +85 -0
  208. package/dist/components/inputs/text-editor/text-editor.ordered-list.js.map +1 -0
  209. package/dist/components/inputs/text-editor/text-editor.styles.d.ts +2 -0
  210. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -0
  211. package/dist/components/inputs/text-editor/text-editor.styles.js +592 -0
  212. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -0
  213. package/dist/components/inputs/text-editor/text-editor.template.d.ts +4 -0
  214. package/dist/components/inputs/text-editor/text-editor.template.d.ts.map +1 -0
  215. package/dist/components/inputs/text-editor/text-editor.template.js +7 -0
  216. package/dist/components/inputs/text-editor/text-editor.template.js.map +1 -0
  217. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  218. package/dist/components/inputs/text-field/text-field.js +3 -2
  219. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  220. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  221. package/dist/components/inputs/toggle-button/toggle-button.js +4 -3
  222. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  223. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  224. package/dist/components/inputs/toggle-button/toggle-button.styles.js +14 -10
  225. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  226. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +1 -1
  227. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
  228. package/dist/components/inputs/toggle-button-group/toggle-button-group.js +5 -4
  229. package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
  230. package/dist/components/inputs/token-field/token-field.d.ts +257 -0
  231. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -0
  232. package/dist/components/inputs/token-field/token-field.i18n.d.ts +9 -0
  233. package/dist/components/inputs/token-field/token-field.i18n.d.ts.map +1 -0
  234. package/dist/components/inputs/token-field/token-field.i18n.js +8 -0
  235. package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -0
  236. package/dist/components/inputs/token-field/token-field.js +877 -0
  237. package/dist/components/inputs/token-field/token-field.js.map +1 -0
  238. package/dist/components/inputs/token-field/token-field.styles.d.ts +2 -0
  239. package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -0
  240. package/dist/components/inputs/token-field/token-field.styles.js +194 -0
  241. package/dist/components/inputs/token-field/token-field.styles.js.map +1 -0
  242. package/dist/components/inputs/token-field/token-field.template.d.ts +8 -0
  243. package/dist/components/inputs/token-field/token-field.template.d.ts.map +1 -0
  244. package/dist/components/inputs/token-field/token-field.template.js +136 -0
  245. package/dist/components/inputs/token-field/token-field.template.js.map +1 -0
  246. package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
  247. package/dist/components/layout/app-view/app-view.js +2 -1
  248. package/dist/components/layout/app-view/app-view.js.map +1 -1
  249. package/dist/components/layout/box/box.d.ts.map +1 -1
  250. package/dist/components/layout/box/box.js +2 -1
  251. package/dist/components/layout/box/box.js.map +1 -1
  252. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  253. package/dist/components/layout/box/box.styles.js +1 -6
  254. package/dist/components/layout/box/box.styles.js.map +1 -1
  255. package/dist/components/layout/collection/collection.d.ts +5 -0
  256. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  257. package/dist/components/layout/collection/collection.js +17 -1
  258. package/dist/components/layout/collection/collection.js.map +1 -1
  259. package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
  260. package/dist/components/layout/collection/collection.styles.js +18 -17
  261. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  262. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  263. package/dist/components/layout/page-footer/page-footer.js +2 -1
  264. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  265. package/dist/components/layout/page-sections/hero/hero.d.ts +7 -23
  266. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  267. package/dist/components/layout/page-sections/hero/hero.js +12 -73
  268. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  269. package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
  270. package/dist/components/layout/page-sections/hero/hero.styles.js +13 -159
  271. package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
  272. package/dist/components/layout/popover/popover.d.ts +1 -0
  273. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  274. package/dist/components/layout/popover/popover.js +14 -1
  275. package/dist/components/layout/popover/popover.js.map +1 -1
  276. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  277. package/dist/components/layout/popover/popover.styles.js +11 -0
  278. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  279. package/dist/components/layout/sheet/sheet.d.ts +1 -1
  280. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  281. package/dist/components/layout/sheet/sheet.js +16 -6
  282. package/dist/components/layout/sheet/sheet.js.map +1 -1
  283. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  284. package/dist/components/layout/sheet/sheet.styles.js +60 -83
  285. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  286. package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
  287. package/dist/components/layout/spacer/spacer.js +2 -1
  288. package/dist/components/layout/spacer/spacer.js.map +1 -1
  289. package/dist/components/layout/spacer/spacer.styles.d.ts.map +1 -1
  290. package/dist/components/layout/spacer/spacer.styles.js +0 -1
  291. package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
  292. package/dist/components/layout/split-views/split-view-divider/split-view-divider.d.ts.map +1 -1
  293. package/dist/components/layout/split-views/split-view-divider/split-view-divider.js +2 -1
  294. package/dist/components/layout/split-views/split-view-divider/split-view-divider.js.map +1 -1
  295. package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js +10 -10
  296. package/dist/components/layout/window/window.d.ts.map +1 -1
  297. package/dist/components/layout/window/window.js +11 -2
  298. package/dist/components/layout/window/window.js.map +1 -1
  299. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
  300. package/dist/components/lists-and-tables/cells/cell/cell.js +4 -3
  301. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  302. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
  303. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +3 -2
  304. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
  305. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +1 -1
  306. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js +2 -1
  307. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +1 -1
  308. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
  309. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +3 -2
  310. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
  311. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  312. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +10 -9
  313. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  314. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
  315. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +3 -2
  316. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
  317. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  318. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +9 -8
  319. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  320. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  321. package/dist/components/lists-and-tables/list/list.js +5 -4
  322. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  323. package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
  324. package/dist/components/lists-and-tables/list/list.styles.js +3 -2
  325. package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
  326. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  327. package/dist/components/lists-and-tables/list-item/list-item.js +2 -1
  328. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  329. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  330. package/dist/components/lists-and-tables/table/table.js +4 -3
  331. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  332. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  333. package/dist/components/navigation/breadcrumbs/breadcrumbs.js +2 -1
  334. package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
  335. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  336. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +5 -4
  337. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  338. package/dist/components/navigation/link/link.d.ts.map +1 -1
  339. package/dist/components/navigation/link/link.js +2 -1
  340. package/dist/components/navigation/link/link.js.map +1 -1
  341. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  342. package/dist/components/navigation/menu-bar/menu-bar.js +2 -1
  343. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  344. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  345. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +4 -3
  346. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  347. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  348. package/dist/components/navigation/skip-link/skip-link.js +2 -1
  349. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  350. package/dist/components/navigation/tab-bar/tab-bar.d.ts +7 -0
  351. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  352. package/dist/components/navigation/tab-bar/tab-bar.js +31 -5
  353. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  354. package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
  355. package/dist/components/navigation/tab-bar/tab-bar.styles.js +74 -78
  356. package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
  357. package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
  358. package/dist/components/navigation/tab-bar/tab-bar.template.js +8 -1
  359. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  360. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  361. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +7 -6
  362. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  363. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  364. package/dist/components/navigation/top-title-bar/top-title-bar.js +5 -4
  365. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  366. package/dist/components/shell-BlsXDxCn.js +222 -0
  367. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
  368. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +4 -3
  369. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
  370. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
  371. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +0 -1
  372. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
  373. package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
  374. package/dist/components/status-and-feedback/badge/badge.js +4 -3
  375. package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
  376. package/dist/components/status-and-feedback/banner/banner.d.ts +0 -1
  377. package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
  378. package/dist/components/status-and-feedback/banner/banner.js +13 -13
  379. package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
  380. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
  381. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +5 -4
  382. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
  383. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +1 -0
  384. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
  385. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +35 -4
  386. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
  387. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts.map +1 -1
  388. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +11 -0
  389. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js.map +1 -1
  390. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  391. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +4 -3
  392. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  393. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
  394. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +9 -8
  395. package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
  396. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
  397. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +0 -6
  398. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
  399. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
  400. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +8 -7
  401. package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
  402. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
  403. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +0 -2
  404. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
  405. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
  406. package/dist/components/status-and-feedback/status-bar/status-bar.js +3 -2
  407. package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
  408. package/dist/components/toml-BOuWGMcf.js +76 -0
  409. package/dist/css/fouc.css +30 -0
  410. package/dist/css/global.css +1 -0
  411. package/dist/css/rich-text.css +0 -5
  412. package/dist/css/settings.css +25 -10
  413. package/dist/utilities/codemirror/codemirror-element.d.ts +66 -0
  414. package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -0
  415. package/dist/utilities/codemirror/codemirror-element.js +121 -0
  416. package/dist/utilities/codemirror/codemirror-element.js.map +1 -0
  417. package/dist/utilities/codemirror/languages.d.ts +4 -0
  418. package/dist/utilities/codemirror/languages.d.ts.map +1 -0
  419. package/dist/utilities/codemirror/languages.js +39 -0
  420. package/dist/utilities/codemirror/languages.js.map +1 -0
  421. package/dist/utilities/codemirror/theme.d.ts +4 -0
  422. package/dist/utilities/codemirror/theme.d.ts.map +1 -0
  423. package/dist/utilities/codemirror/theme.js +84 -0
  424. package/dist/utilities/codemirror/theme.js.map +1 -0
  425. package/dist/utilities/dismiss-from-title-bar.d.ts +19 -0
  426. package/dist/utilities/dismiss-from-title-bar.d.ts.map +1 -0
  427. package/dist/utilities/dismiss-from-title-bar.js +21 -0
  428. package/dist/utilities/dismiss-from-title-bar.js.map +1 -0
  429. package/dist/utilities/reflect-non-default.d.ts +30 -0
  430. package/dist/utilities/reflect-non-default.d.ts.map +1 -0
  431. package/dist/utilities/reflect-non-default.js +34 -0
  432. package/dist/utilities/reflect-non-default.js.map +1 -0
  433. package/package.json +92 -68
  434. package/dist/components/index-BNhqNvDd.js +0 -36784
  435. package/dist/components/inputs/token/token.d.ts +0 -42
  436. package/dist/components/inputs/token/token.d.ts.map +0 -1
  437. package/dist/components/inputs/token/token.js +0 -86
  438. package/dist/components/inputs/token/token.js.map +0 -1
  439. package/dist/components/inputs/token/token.styles.d.ts.map +0 -1
  440. package/dist/components/inputs/token/token.styles.js +0 -142
  441. package/dist/components/inputs/token/token.styles.js.map +0 -1
  442. package/dist/components/inputs/token/token.template.d.ts +0 -4
  443. package/dist/components/inputs/token/token.template.d.ts.map +0 -1
  444. package/dist/components/inputs/token/token.template.js +0 -41
  445. package/dist/components/inputs/token/token.template.js.map +0 -1
  446. package/dist/components/prism-bash-vbqaw3JR.js +0 -226
  447. package/dist/components/prism-css-B93tXdOU.js +0 -59
  448. package/dist/components/prism-gherkin-CMPYyXOQ.js +0 -82
  449. package/dist/components/prism-javascript-DeC_17Pw.js +0 -140
  450. package/dist/components/prism-json-DIMpow89.js +0 -25
  451. package/dist/components/prism-markdown-D-uFBkiz.js +0 -339
  452. package/dist/components/prism-markup-DfJYPYHA.js +0 -177
  453. package/dist/components/prism-python--N285k7w.js +0 -99
  454. package/dist/components/prism-rust-Cnm1tSdo.js +0 -157
  455. package/dist/components/prism-sql-BGqCBMyJ.js +0 -33
  456. package/dist/components/prism-toml-Ubdq-a5x.js +0 -45
  457. package/dist/components/prism-typescript-BPJAiB1s.js +0 -87
  458. package/dist/components/prism-yaml-DO0f9pf6.js +0 -71
  459. /package/dist/components/{inputs → content}/token/token.styles.d.ts +0 -0
@@ -0,0 +1,327 @@
1
+ import { Decoration, EditorView, WidgetType } from '@codemirror/view';
2
+ import { EditorState, Prec, StateEffect, StateField } from '@codemirror/state';
3
+ import { invertedEffects } from '@codemirror/commands';
4
+ import { ANNOTATION_SENTINEL as S, stripSentinels, sentinelPositions, docToClean, cleanToDoc, reconcileSentinels, } from './text-editor.annotation-sentinels.js';
5
+ import { textCaretBox } from './text-editor.caret.js';
6
+ /** Replace the editor's annotation set (consumer offsets are clean). */
7
+ export const setAnnotations = StateEffect.define();
8
+ /** Internal: the filter's freshly computed clean anchors. The field only ever
9
+ * updates from this, so anchoring lives in one place (the filter). */
10
+ const setAnchored = StateEffect.define();
11
+ /** A drag-move, in CLEAN offsets: the block [from, to) is being relocated so its
12
+ * first character lands at `insertAt`. mapPos can't follow moved content, so the
13
+ * filter uses this to carry annotations inside the block along with their text. */
14
+ export const annotationMove = StateEffect.define();
15
+ /** A cut→paste inside the same editor: re-attach the annotations that were cut at the
16
+ * paste point. `at` is the CLEAN paste offset; each entry's from/to are relative to
17
+ * the pasted text. Carries the original ids, so a cut→paste is a move, not a copy. */
18
+ export const pasteAnnotations = StateEffect.define();
19
+ /** The annotations currently anchored in the document, in clean offsets. Lets the
20
+ * host capture what sits inside a cut so it can re-attach them on paste. */
21
+ export function currentAnnotations(state) {
22
+ return state.field(annotationField, false) ?? [];
23
+ }
24
+ function anchorClean(list, cleanLength) {
25
+ return list
26
+ .map((a) => ({
27
+ id: a.id,
28
+ from: Math.max(0, Math.min(a.start, cleanLength)),
29
+ to: Math.max(0, Math.min(a.end, cleanLength)),
30
+ }))
31
+ .filter((a) => a.to > a.from);
32
+ }
33
+ /** A clean annotation's doc range: text start, and text end (just before the end
34
+ * sentinel). Used to map through a user edit in doc space, where the sentinel
35
+ * physically separates the inside edge from the outside one. */
36
+ function annToDoc(a, sents) {
37
+ return { from: cleanToDoc(sents, a.from), to: cleanToDoc(sents, a.to - 1) + 1 };
38
+ }
39
+ /** Annotations in clean coordinates. Updated only via `setAnchored`, which the
40
+ * transaction filter computes (mapping through edits in doc space). */
41
+ const annotationField = StateField.define({
42
+ create: () => [],
43
+ update: (value, tr) => {
44
+ const set = tr.effects.find((e) => e.is(setAnchored));
45
+ return set ? set.value : value;
46
+ },
47
+ });
48
+ function groupOverlapping(anns) {
49
+ const groups = [];
50
+ for (const a of [...anns].sort((x, y) => x.from - y.from || x.to - y.to)) {
51
+ const last = groups[groups.length - 1];
52
+ // Strict overlap only: two ranges that merely touch (one ends where the next
53
+ // begins, e.g. [0,3] and [3,6]) stay separate tints/badges. The sentinel
54
+ // machinery already places two sentinels at such a seam.
55
+ if (last && a.from < last.to) {
56
+ last.to = Math.max(last.to, a.to);
57
+ last.ids.push(a.id);
58
+ }
59
+ else {
60
+ groups.push({ from: a.from, to: a.to, ids: [a.id] });
61
+ }
62
+ }
63
+ return groups;
64
+ }
65
+ // The badge's accessible label quotes the annotated text, truncated so a long range
66
+ // can't produce a huge label. Screen-reader-only; the visible badge shows the count.
67
+ const ANNOTATION_LABEL_MAX = 40;
68
+ function truncateQuote(text) {
69
+ return text.length > ANNOTATION_LABEL_MAX ? `${text.slice(0, ANNOTATION_LABEL_MAX)}…` : text;
70
+ }
71
+ class AnnotationBadge extends WidgetType {
72
+ constructor(ids, quote, label) {
73
+ super();
74
+ this.ids = ids;
75
+ this.quote = quote;
76
+ this.label = label;
77
+ }
78
+ eq(other) {
79
+ return (other.quote === this.quote &&
80
+ other.ids.length === this.ids.length &&
81
+ other.ids.every((id, i) => id === this.ids[i]));
82
+ }
83
+ toDOM() {
84
+ const badge = document.createElement('button');
85
+ badge.className = 'cm-annotation-badge';
86
+ badge.type = 'button';
87
+ badge.dataset.annotations = this.ids.join(' ');
88
+ badge.textContent = String(this.ids.length);
89
+ badge.setAttribute('aria-label', this.label(this.ids.length, truncateQuote(this.quote)));
90
+ return badge;
91
+ }
92
+ /** Give the caret at either edge of the badge a stable, text-height rectangle.
93
+ * Without this, drawSelection measures the caret from the badge's own small font,
94
+ * so it renders short next to the badge and its height flips with the arrival
95
+ * direction (the queried side follows the cursor's assoc). */
96
+ coordsAt(dom, pos, _side) {
97
+ const badge = dom.getBoundingClientRect();
98
+ const cs = getComputedStyle(dom);
99
+ const box = textCaretBox(dom) ?? { top: badge.top, bottom: badge.bottom };
100
+ // Inside edge: the text's end (before the badge's left margin). Outside edge:
101
+ // just past the badge (its right edge + margin). The badge is a single inline
102
+ // box on the annotation's last line, so this stays correct for multi-line
103
+ // annotations — where the tint's bounding box would be the union of every
104
+ // line and push the caret to the far right edge.
105
+ const x = pos <= 0
106
+ ? badge.left - parseFloat(cs.marginLeft)
107
+ : badge.right + parseFloat(cs.marginRight);
108
+ return { left: x, right: x, top: box.top, bottom: box.bottom };
109
+ }
110
+ }
111
+ // inclusiveEnd lets the end sentinel's replace (the badge) nest inside the tint span.
112
+ const annotationMark = Decoration.mark({ class: 'cm-annotation', inclusiveEnd: true });
113
+ const annotationFullSelectedMark = Decoration.mark({ class: 'cm-annotation is-selected', inclusiveEnd: true });
114
+ const annotationSelectedMark = Decoration.mark({ class: 'is-selected' });
115
+ class AnnotationStart extends WidgetType {
116
+ eq(other) {
117
+ return other instanceof AnnotationStart;
118
+ }
119
+ toDOM() {
120
+ const span = document.createElement('span');
121
+ span.className = 'cm-annotation-start';
122
+ return span;
123
+ }
124
+ coordsAt(dom, pos, _side) {
125
+ // CodeMirror inserts a zero-width cm-widgetBuffer between the widget and the
126
+ // content, so skip it to reach the tint span.
127
+ let tint = dom.nextElementSibling;
128
+ while (tint instanceof HTMLElement && tint.classList.contains('cm-widgetBuffer'))
129
+ tint = tint.nextElementSibling;
130
+ if (!(tint instanceof HTMLElement) || !tint.classList.contains('cm-annotation'))
131
+ return null;
132
+ const padLeft = parseFloat(getComputedStyle(tint).paddingInlineStart || '0');
133
+ // The start sentinel sits on the tint's FIRST line, so measure that line, not
134
+ // tint.getBoundingClientRect() — which for a multi-line annotation is the union
135
+ // of every line and would draw a caret as tall as the whole token. textCaretBox
136
+ // gives the exact body caret, but it throws (→ null) during drawSelection's
137
+ // measure pass; the fallback then uses the first client rect, never the union.
138
+ const firstLine = tint.getClientRects()[0] ?? tint.getBoundingClientRect();
139
+ const box = textCaretBox(dom) ?? { top: firstLine.top, bottom: firstLine.bottom };
140
+ const x = pos <= 0 ? firstLine.left : firstLine.left + padLeft;
141
+ return { left: x, right: x, top: box.top, bottom: box.bottom };
142
+ }
143
+ }
144
+ // The start sentinel: an invisible widget that pins the caret to the token's edges.
145
+ const startSentinelDeco = Decoration.replace({ widget: new AnnotationStart() });
146
+ // Dummy value for the atomic-range set (positions only; never rendered).
147
+ const atomicMark = Decoration.mark({});
148
+ // Glues the annotated text's last word to the badge so the badge never wraps onto
149
+ // a line by itself (an orphan). Only the tail is nowrap, so a long annotation still
150
+ // wraps at its earlier spaces.
151
+ // inclusiveEnd so the mark wraps the trailing badge widget at its end boundary,
152
+ // keeping the badge inside the nowrap span (a plain mark would leave it a sibling).
153
+ const badgeTailMark = Decoration.mark({ class: 'cm-annotation-tail', inclusiveEnd: true });
154
+ /** Resolve a group's doc geometry: the text span, and where its sentinels actually
155
+ * sit (they may be absent when placement was guarded). */
156
+ function resolveGroup(group, doc, sents) {
157
+ const docFrom = cleanToDoc(sents, group.from);
158
+ const textTo = cleanToDoc(sents, group.to - 1) + 1; // just after the last text char
159
+ const startSent = docFrom - 1 >= 0 && doc[docFrom - 1] === S ? docFrom - 1 : null;
160
+ const endSent = textTo < doc.length && doc[textTo] === S ? textTo : null;
161
+ return { docFrom, textTo, startSent, endSent };
162
+ }
163
+ function buildAll(state, label) {
164
+ const doc = state.doc.toString();
165
+ const sel = state.selection.main;
166
+ const sents = sentinelPositions(doc);
167
+ // Clamp anchors to the CLEAN document length before building. The field and the
168
+ // document can be transiently inconsistent — most sharply on undo/redo, where
169
+ // history reverts the text (and any non-historized sentinels linger) while the
170
+ // field still holds pre-revert offsets. Building unclamped then emits decoration
171
+ // ranges past the document end, and CodeMirror throws "Position N out of range"
172
+ // diffing them. Clamping keeps every range in-bounds; the next consistent update
173
+ // re-renders the real anchors.
174
+ const cleanLen = doc.length - sents.length;
175
+ const clean = stripSentinels(doc);
176
+ const anns = state.field(annotationField)
177
+ .map((a) => ({ id: a.id, from: Math.min(a.from, cleanLen), to: Math.min(a.to, cleanLen) }))
178
+ .filter((a) => a.to > a.from);
179
+ const deco = [];
180
+ const atomic = [];
181
+ for (const group of groupOverlapping(anns)) {
182
+ if (group.to <= group.from)
183
+ continue;
184
+ const { docFrom, textTo, startSent, endSent } = resolveGroup(group, doc, sents);
185
+ // The annotated text (sentinel-free) for the badge's accessible label.
186
+ const quote = clean.slice(group.from, group.to);
187
+ // The tint covers the text, plus the end sentinel (badge) when present so the
188
+ // badge shares the tint.
189
+ const tintTo = endSent !== null ? textTo + 1 : textTo;
190
+ const fully = !sel.empty && sel.from <= docFrom && sel.to >= tintTo;
191
+ deco.push((fully ? annotationFullSelectedMark : annotationMark).range(docFrom, tintTo));
192
+ if (!fully && !sel.empty) {
193
+ const f = Math.max(docFrom, sel.from);
194
+ const t = Math.min(tintTo, sel.to);
195
+ if (t > f)
196
+ deco.push(annotationSelectedMark.range(f, t));
197
+ }
198
+ // The badge end (just past it): the sentinel slot when present, else the text end.
199
+ const badgeEnd = endSent !== null ? endSent + 1 : textTo;
200
+ // Start of the annotated text's last word — nowrap from here through the badge
201
+ // keeps the two together so the badge can't orphan onto the next line.
202
+ const tail = doc.slice(docFrom, textTo).match(/\S+$/);
203
+ if (tail)
204
+ deco.push(badgeTailMark.range(docFrom + (tail.index ?? 0), badgeEnd));
205
+ if (endSent !== null) {
206
+ // Two caret stops: the badge replaces the end sentinel, atomic so the caret
207
+ // treats it as a unit and stops just before (inside) and just after (outside).
208
+ deco.push(Decoration.replace({ widget: new AnnotationBadge(group.ids, quote, label) }).range(endSent, endSent + 1));
209
+ atomic.push(atomicMark.range(endSent, endSent + 1));
210
+ }
211
+ else {
212
+ // Guarded edge (would break the markdown parse): fall back to the old
213
+ // single-stop nub — a zero-width widget at the range end, inside the tint.
214
+ deco.push(Decoration.widget({ widget: new AnnotationBadge(group.ids, quote, label), side: -1 }).range(textTo));
215
+ }
216
+ if (startSent !== null) {
217
+ deco.push(startSentinelDeco.range(startSent, startSent + 1));
218
+ atomic.push(atomicMark.range(startSent, startSent + 1));
219
+ }
220
+ }
221
+ return { deco: Decoration.set(deco, true), atomic: Decoration.set(atomic, true) };
222
+ }
223
+ /** The render field carries the badge label so its accessible text is localizable.
224
+ * A fresh field per overlay keeps the two concerns (rendering, atomic ranges) reading
225
+ * the same instance. */
226
+ function makeAnnotationRender(label) {
227
+ return StateField.define({
228
+ create: (state) => buildAll(state, label),
229
+ update: (value, tr) => {
230
+ if (tr.docChanged || !tr.startState.selection.eq(tr.state.selection) || tr.effects.some((e) => e.is(setAnnotations))) {
231
+ return buildAll(tr.state, label);
232
+ }
233
+ return value;
234
+ },
235
+ provide: (f) => EditorView.decorations.from(f, (v) => v.deco),
236
+ });
237
+ }
238
+ /** Maintains the document sentinels: after any annotation or text change, ensures
239
+ * exactly one sentinel at each group's start and end (minus guarded edges). Runs in
240
+ * the same transaction (atomic, single undo step) via a transaction filter. */
241
+ const annotationSentinelFilter = EditorState.transactionFilter.of((tr) => {
242
+ const set = tr.effects.find((e) => e.is(setAnnotations));
243
+ if (!tr.docChanged && !set)
244
+ return tr;
245
+ const postUserDoc = tr.newDoc.toString(); // after the user's changes, before sentinels
246
+ const cleanLen = stripSentinels(postUserDoc).length;
247
+ let anns;
248
+ if (set) {
249
+ anns = anchorClean(set.value, cleanLen);
250
+ }
251
+ else {
252
+ // Map each annotation through the user edit in DOC space (to leans right, so a
253
+ // character typed just inside the end — before the sentinel — grows it, while
254
+ // one typed just outside — after the sentinel — does not), then back to clean.
255
+ const oldSents = sentinelPositions(tr.startState.doc.toString());
256
+ const move = tr.effects.find((e) => e.is(annotationMove))?.value;
257
+ anns = (tr.startState.field(annotationField, false) ?? [])
258
+ .map((a) => {
259
+ // A drag relocates whole annotations with their text. mapPos can't follow
260
+ // moved content (a delete + a separate insert), so an annotation sitting
261
+ // fully inside the moved block is translated to its landing spot instead of
262
+ // being collapsed by the delete.
263
+ if (move && a.from >= move.from && a.to <= move.to) {
264
+ return { id: a.id, from: move.insertAt + (a.from - move.from), to: move.insertAt + (a.to - move.from) };
265
+ }
266
+ const doc = annToDoc(a, oldSents);
267
+ const from = tr.changes.mapPos(doc.from, -1);
268
+ const to = tr.changes.mapPos(doc.to, 1);
269
+ return { id: a.id, from: docToClean(postUserDoc, from), to: docToClean(postUserDoc, to) };
270
+ })
271
+ .filter((a) => a.to > a.from);
272
+ // A cut→paste re-attaches the cut annotations at the paste point (clean offsets
273
+ // relative to the pasted text), clamped into the document.
274
+ const paste = tr.effects.find((e) => e.is(pasteAnnotations))?.value;
275
+ if (paste) {
276
+ anns = anns.concat(paste.anns
277
+ .map((a) => ({
278
+ id: a.id,
279
+ from: Math.max(0, Math.min(paste.at + a.from, cleanLen)),
280
+ to: Math.max(0, Math.min(paste.at + a.to, cleanLen)),
281
+ }))
282
+ .filter((a) => a.to > a.from));
283
+ }
284
+ }
285
+ const groups = groupOverlapping(anns);
286
+ const changes = reconcileSentinels(postUserDoc, groups);
287
+ // Re-anchor the field to the freshly computed clean annotations (authoritative).
288
+ return [tr, { changes, effects: [setAnchored.of(anns)], sequential: true }];
289
+ });
290
+ // The transaction filter re-anchors the field on live edits, but it does NOT run on
291
+ // history transactions — so on undo/redo the document (and its sentinels) revert while
292
+ // the clean anchors would keep their pre-undo positions, drifting the annotations.
293
+ // invertedEffects stores the field's prior value alongside each anchoring change, so
294
+ // history restores the anchors in step with the document it belongs to.
295
+ const annotationHistory = invertedEffects.of((tr) => {
296
+ if (!tr.effects.some((e) => e.is(setAnchored)))
297
+ return [];
298
+ const prior = tr.startState.field(annotationField, false) ?? [];
299
+ return [setAnchored.of(prior)];
300
+ });
301
+ // Keep sentinels out of the clipboard: copy/cut strip them from the outgoing text,
302
+ // and paste strips any that rode in from another editor instance. The document's own
303
+ // filter re-adds the sentinels it needs, so clipboard text stays clean either way.
304
+ const annotationClipboard = [
305
+ EditorView.clipboardOutputFilter.of((text) => stripSentinels(text)),
306
+ EditorView.clipboardInputFilter.of((text) => stripSentinels(text)),
307
+ ];
308
+ /** The annotation overlay: clean-coordinate anchoring, sentinel maintenance, and
309
+ * tint/badge rendering with a caret stop on each side of every edge. `countLabel`
310
+ * builds each badge's accessible label (count + quote, singular/plural), so the
311
+ * host can localize it. */
312
+ // Prec.low keeps the tint the INNERMOST mark, so it hugs the raw text and inherits
313
+ // its font (a heading, bold, etc.) — the token then scales with whatever it marks,
314
+ // instead of sitting at the base font size as an outer wrapper.
315
+ export function annotations(countLabel) {
316
+ const annotationRender = makeAnnotationRender(countLabel);
317
+ const annotationAtomic = EditorView.atomicRanges.of((view) => view.state.field(annotationRender).atomic);
318
+ return [
319
+ annotationField,
320
+ Prec.highest(annotationRender),
321
+ annotationAtomic,
322
+ annotationSentinelFilter,
323
+ annotationHistory,
324
+ annotationClipboard,
325
+ ];
326
+ }
327
+ //# sourceMappingURL=text-editor.annotations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.annotations.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,E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ACrF,mFAAmF;AACnF,MAAM,mBAAmB,GAAc;IACtC,UAAU,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACnE,UAAU,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;CAClE,CAAC;AAEF;;;4BAG4B;AAC5B,mFAAmF;AACnF,mFAAmF;AACnF,gEAAgE;AAChE,MAAM,UAAU,WAAW,CAAC,UAAgC;IAC3D,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC1D,MAAM,gBAAgB,GAAG,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IACzG,OAAO;QACN,eAAe;QACf,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAC9B,gBAAgB;QAChB,wBAAwB;QACxB,iBAAiB;QACjB,mBAAmB;KACnB,CAAC;AACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ /** The caret rectangle CodeMirror renders for the plain text just before `dom` (an
2
+ * inline widget), taken from CodeMirror's own coordsAtPos. A widget's own box would
3
+ * otherwise make the caret beside it too tall or too short and flip its height with
4
+ * the cursor's arrival direction; measuring the neighbouring text gives the exact
5
+ * body caret for whatever font and line the widget sits on.
6
+ *
7
+ * Widgets use this in their `coordsAt` to place a stable, text-height caret at their
8
+ * edges. */
9
+ export declare function textCaretBox(dom: HTMLElement): {
10
+ top: number;
11
+ bottom: number;
12
+ } | null;
13
+ //# sourceMappingURL=text-editor.caret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.caret.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.caret.ts"],"names":[],"mappings":"AAEA;;;;;;;aAOa;AACb,wBAAgB,YAAY,CAAC,GAAG,EAAE,WAAW,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAcrF"}
@@ -0,0 +1,27 @@
1
+ import { EditorView } from '@codemirror/view';
2
+ /** The caret rectangle CodeMirror renders for the plain text just before `dom` (an
3
+ * inline widget), taken from CodeMirror's own coordsAtPos. A widget's own box would
4
+ * otherwise make the caret beside it too tall or too short and flip its height with
5
+ * the cursor's arrival direction; measuring the neighbouring text gives the exact
6
+ * body caret for whatever font and line the widget sits on.
7
+ *
8
+ * Widgets use this in their `coordsAt` to place a stable, text-height caret at their
9
+ * edges. */
10
+ export function textCaretBox(dom) {
11
+ const view = EditorView.findFromDOM(dom);
12
+ if (!view)
13
+ return null;
14
+ const pos = view.posAtDOM(dom);
15
+ const line = view.state.doc.lineAt(pos);
16
+ // coordsAtPos reads layout; when a widget's coordsAt is itself invoked during an
17
+ // update/measure pass, CM forbids that reentrant read and throws. Fall back to the
18
+ // caller's own rect in that case rather than letting the exception escape.
19
+ try {
20
+ const coords = view.coordsAtPos(Math.max(line.from, pos - 1), 1);
21
+ return coords ? { top: coords.top, bottom: coords.bottom } : null;
22
+ }
23
+ catch {
24
+ return null;
25
+ }
26
+ }
27
+ //# sourceMappingURL=text-editor.caret.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.caret.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.caret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;;aAOa;AACb,MAAM,UAAU,YAAY,CAAC,GAAgB;IAC5C,MAAM,IAAI,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACzC,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IACvB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxC,iFAAiF;IACjF,mFAAmF;IACnF,2EAA2E;IAC3E,IAAI,CAAC;QACJ,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACjE,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACnE,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,IAAI,CAAC;IACb,CAAC;AACF,CAAC"}
@@ -0,0 +1,61 @@
1
+ import type { EditorView } from '@codemirror/view';
2
+ export type HeadingLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6;
3
+ export interface TextEditorActiveFormats {
4
+ bold: boolean;
5
+ italic: boolean;
6
+ inlineCode: boolean;
7
+ codeBlock: boolean;
8
+ strikethrough: boolean;
9
+ link: boolean;
10
+ bulletList: boolean;
11
+ orderedList: boolean;
12
+ quote: boolean;
13
+ heading: HeadingLevel;
14
+ }
15
+ export interface TextEditorState {
16
+ active: TextEditorActiveFormats;
17
+ /** Whether the selection is collapsed (a caret, no range). */
18
+ empty: boolean;
19
+ /** Whether the list item at the caret can be nested deeper / outdented. */
20
+ canIndent: boolean;
21
+ canOutdent: boolean;
22
+ /** Whether there is history to undo / redo (drives the history buttons). */
23
+ canUndo: boolean;
24
+ canRedo: boolean;
25
+ }
26
+ export declare const EMPTY_FORMATS: TextEditorActiveFormats;
27
+ /** Wrap (or, if already wrapped, unwrap) each selection range with `marker`. */
28
+ export declare function toggleInlineWrap(view: EditorView, marker: string, nodeName: string): void;
29
+ /** Set the selected lines to heading `level`, or toggle them back to body. */
30
+ export declare function toggleHeading(view: EditorView, level: HeadingLevel): void;
31
+ /** Set the selected lines to heading `level` (0 = paragraph), without toggling.
32
+ * Suited to a picker where choosing a level always applies it. */
33
+ export declare function setHeading(view: EditorView, level: HeadingLevel): void;
34
+ export declare function toggleBulletList(view: EditorView): void;
35
+ /** Set the selected lines to a list of `type`, replacing any existing list
36
+ * marker; `'none'` strips it. Ordered items are numbered within the selection.
37
+ * Unlike the toggles, this cleanly switches between list types (for a picker). */
38
+ export declare function setList(view: EditorView, type: 'none' | 'bullet' | 'ordered'): void;
39
+ /** Nest the selected list item(s) under the nearest preceding item at the same
40
+ * level, indenting only as far as that parent's content column. That keeps the
41
+ * item a valid nested list — 4+ spaces with no parent would parse as an indented
42
+ * code block — so a first or standalone item (no parent) is left untouched. */
43
+ export declare function indentListItems(view: EditorView): void;
44
+ /** Whether the list item at the caret can be nested deeper (it has a preceding
45
+ * item at the same level to nest under). Drives the indent button's disabled state. */
46
+ export declare function canIndentListItem(view: EditorView): boolean;
47
+ /** Whether the list item at the caret is nested (indented) and so can be outdented. */
48
+ export declare function canOutdentListItem(view: EditorView): boolean;
49
+ /** Backspace at a list item's content start (right after the marker) removes the
50
+ * marker and its trailing space — the item's own indent is kept — so a top-level
51
+ * item cleanly returns to column 0 for every number, not just the first. CodeMirror's
52
+ * default deleteMarkupBackward instead aligns the content under the previous item,
53
+ * leaving stray whitespace on items 2, 3, … Returns false (so other handlers run)
54
+ * unless the caret sits exactly at a list marker's end outside a code block. */
55
+ export declare function clearListMarkerBackward(view: EditorView): boolean;
56
+ export declare function toggleQuote(view: EditorView): void;
57
+ export declare function toggleLink(view: EditorView, href?: string): void;
58
+ /** Wrap the selected lines in a ``` fenced code block, or unwrap if already in one. */
59
+ export declare function toggleCodeBlock(view: EditorView): void;
60
+ export declare function readActiveFormats(view: EditorView): TextEditorActiveFormats;
61
+ //# sourceMappingURL=text-editor.commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.commands.d.ts","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