@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,30 @@
1
+ import { EditorView, ViewPlugin } from '@codemirror/view';
2
+ import { type Extension } from '@codemirror/state';
3
+ declare class DragMove {
4
+ private readonly view;
5
+ private state;
6
+ private ghost;
7
+ constructor(view: EditorView);
8
+ start(event: MouseEvent): boolean;
9
+ /** Begin a drag of an explicit range (a mention token) seeded from a pointer
10
+ * press the component already handled. The mention is selected on press, so a
11
+ * plain release keeps it selected; dragging past the threshold moves the whole
12
+ * token. mousemove/mouseup still fire after a prevented pointerdown. */
13
+ startFor(seed: {
14
+ clientX: number;
15
+ clientY: number;
16
+ }, from: number, to: number): void;
17
+ private removeListeners;
18
+ private onMove;
19
+ private onUp;
20
+ private isInside;
21
+ private showGhost;
22
+ private moveGhost;
23
+ private clearGhost;
24
+ destroy(): void;
25
+ }
26
+ export declare const dragMovePlugin: ViewPlugin<DragMove, undefined>;
27
+ /** Drag selected text to move it (shadow-DOM-safe; native DnD won't start here). */
28
+ export declare const dragToMove: Extension;
29
+ export {};
30
+ //# sourceMappingURL=text-editor.drag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.drag.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.drag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAmB,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAiG5E,cAAM,QAAQ;IAID,OAAO,CAAC,QAAQ,CAAC,IAAI;IAHjC,OAAO,CAAC,KAAK,CAA0B;IACvC,OAAO,CAAC,KAAK,CAA4B;gBAEZ,IAAI,EAAE,UAAU;IAE7C,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO;IAoBjC;;;6EAGyE;IACzE,QAAQ,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IASpF,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,MAAM,CAkBZ;IAEF,OAAO,CAAC,IAAI,CAuCV;IAEF,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,UAAU;IAKlB,OAAO,IAAI,IAAI;CAIf;AAED,eAAO,MAAM,cAAc,iCAMzB,CAAC;AAEH,oFAAoF;AACpF,eAAO,MAAM,UAAU,EAAE,SAA2D,CAAC"}
@@ -0,0 +1,231 @@
1
+ import { ViewPlugin } from '@codemirror/view';
2
+ import { StateEffect, StateField } from '@codemirror/state';
3
+ import { stripSentinels, docToClean } from './text-editor.annotation-sentinels.js';
4
+ import { annotationMove } from './text-editor.annotations.js';
5
+ /* Drag-to-move for selected text. The editor lives in a shadow DOM, where the
6
+ * browser refuses to start a native drag of the selection (the document-level
7
+ * selection is collapsed for shadow-tree selections), so the native HTML5 path
8
+ * never fires. This reimplements it with pointer tracking: mousedown on the
9
+ * selection → past a small threshold it becomes a drag → a drop cursor shows
10
+ * where it will land → mouseup moves the text there. */
11
+ const setDropPos = StateEffect.define();
12
+ // Holds the live drop position during a drag; the overlay plugin draws the cursor.
13
+ const dropPosField = StateField.define({
14
+ create: () => null,
15
+ update(value, tr) {
16
+ for (const effect of tr.effects)
17
+ if (effect.is(setDropPos))
18
+ return effect.value;
19
+ return value === null ? null : tr.changes.mapPos(value);
20
+ },
21
+ });
22
+ // Draws the drop cursor as an absolutely-positioned overlay instead of an inline
23
+ // widget. An inline widget dropped inside an annotation splits its tint into two
24
+ // rounded pills; an overlay sits above the text, so the annotation stays whole and
25
+ // the cursor can be a clearly visible bar. The position is read in a measure pass,
26
+ // so coordsAtPos (a layout read) never runs mid-update.
27
+ class DropCursorLayer {
28
+ constructor(view) {
29
+ this.view = view;
30
+ this.cursor = null;
31
+ this.readPos = () => {
32
+ const pos = this.view.state.field(dropPosField);
33
+ if (pos === null)
34
+ return null;
35
+ const rect = this.view.coordsAtPos(pos, 1);
36
+ if (!rect)
37
+ return null;
38
+ const base = this.view.scrollDOM.getBoundingClientRect();
39
+ return {
40
+ left: rect.left - base.left + this.view.scrollDOM.scrollLeft,
41
+ top: rect.top - base.top + this.view.scrollDOM.scrollTop,
42
+ height: rect.bottom - rect.top,
43
+ };
44
+ };
45
+ this.drawCursor = (rect) => {
46
+ if (!rect) {
47
+ this.remove();
48
+ return;
49
+ }
50
+ if (!this.cursor) {
51
+ this.cursor = document.createElement('div');
52
+ this.cursor.className = 'cm-drag-and-drop-cursor';
53
+ this.view.scrollDOM.appendChild(this.cursor);
54
+ }
55
+ this.cursor.style.left = `${rect.left}px`;
56
+ this.cursor.style.top = `${rect.top}px`;
57
+ this.cursor.style.height = `${rect.height}px`;
58
+ };
59
+ }
60
+ update(update) {
61
+ const pos = update.state.field(dropPosField);
62
+ if (pos === null) {
63
+ this.remove();
64
+ }
65
+ else if (update.startState.field(dropPosField) !== pos ||
66
+ update.docChanged ||
67
+ update.geometryChanged) {
68
+ this.view.requestMeasure({ read: this.readPos, write: this.drawCursor });
69
+ }
70
+ }
71
+ remove() {
72
+ this.cursor?.remove();
73
+ this.cursor = null;
74
+ }
75
+ destroy() {
76
+ this.remove();
77
+ }
78
+ }
79
+ const dropCursorLayer = ViewPlugin.fromClass(DropCursorLayer);
80
+ class DragMove {
81
+ constructor(view) {
82
+ this.view = view;
83
+ this.state = null;
84
+ this.ghost = null;
85
+ this.onMove = (event) => {
86
+ const st = this.state;
87
+ if (!st)
88
+ return;
89
+ if (!st.dragging) {
90
+ if (Math.abs(event.clientX - st.startX) + Math.abs(event.clientY - st.startY) < 4)
91
+ return;
92
+ st.dragging = true;
93
+ // Default cursor (no grab handle) plus a translucent copy of the text.
94
+ this.view.scrollDOM.style.cursor = 'default';
95
+ this.showGhost(st.from, st.to);
96
+ }
97
+ this.moveGhost(event.clientX, event.clientY);
98
+ // No drop cursor when outside the editor (the drop would be undone) or while
99
+ // hovering inside the dragged range (a no-op target).
100
+ const pos = this.isInside(event.clientX, event.clientY)
101
+ ? this.view.posAtCoords({ x: event.clientX, y: event.clientY })
102
+ : null;
103
+ const drop = pos === null || (pos >= st.from && pos <= st.to) ? null : pos;
104
+ this.view.dispatch({ effects: setDropPos.of(drop) });
105
+ };
106
+ this.onUp = (event) => {
107
+ this.removeListeners();
108
+ this.view.scrollDOM.style.cursor = '';
109
+ this.clearGhost();
110
+ const st = this.state;
111
+ this.state = null;
112
+ this.view.dispatch({ effects: setDropPos.of(null) });
113
+ if (!st)
114
+ return;
115
+ const pos = this.view.posAtCoords({ x: event.clientX, y: event.clientY });
116
+ if (!st.dragging) {
117
+ // A plain click on a mention keeps it selected (set on press); on a text
118
+ // selection it collapses the caret where you clicked.
119
+ if (!st.isMention && pos !== null)
120
+ this.view.dispatch({ selection: { anchor: pos } });
121
+ this.view.focus();
122
+ return;
123
+ }
124
+ if (this.isInside(event.clientX, event.clientY) && pos !== null && (pos < st.from || pos > st.to)) {
125
+ // Move clean text: any annotation sentinels in the slice are dropped here,
126
+ // and the document filter re-adds the ones it needs at the new location.
127
+ const doc = this.view.state.doc.toString();
128
+ const text = stripSentinels(this.view.state.sliceDoc(st.from, st.to));
129
+ const insertAt = pos > st.to ? pos - (st.to - st.from) : pos;
130
+ // Clean-coordinate move info so annotations inside the block travel with it
131
+ // (drop is always outside the block, so pos is before delFrom or after delTo).
132
+ const delFrom = docToClean(doc, st.from);
133
+ const delTo = docToClean(doc, st.to);
134
+ const cleanPos = docToClean(doc, pos);
135
+ const cleanInsertAt = cleanPos > delTo ? cleanPos - (delTo - delFrom) : cleanPos;
136
+ this.view.dispatch({
137
+ changes: [{ from: st.from, to: st.to }, { from: pos, insert: text }],
138
+ selection: { anchor: insertAt, head: insertAt + text.length },
139
+ effects: annotationMove.of({ from: delFrom, to: delTo, insertAt: cleanInsertAt }),
140
+ });
141
+ }
142
+ else {
143
+ // Dropped outside the editor (or back onto the selection): leave the text
144
+ // where it was and keep it selected — effectively undoing the drag.
145
+ this.view.dispatch({ selection: { anchor: st.from, head: st.to } });
146
+ }
147
+ this.view.focus();
148
+ };
149
+ }
150
+ start(event) {
151
+ if (event.button !== 0 || event.shiftKey || event.altKey || event.metaKey || event.ctrlKey)
152
+ return false;
153
+ // Leave multi-click to CM (double = word, triple = line). Otherwise the third
154
+ // click of a triple lands on the word the second click selected, starts a drag,
155
+ // and collapses to a caret on release — so it took a fourth click to select.
156
+ if (event.detail >= 2)
157
+ return false;
158
+ if (this.view.state.readOnly)
159
+ return false;
160
+ // Mentions own their own click (select-on-click); don't hijack it as a drag.
161
+ if (event.target?.closest?.('.cm-md-mention-token'))
162
+ return false;
163
+ const sel = this.view.state.selection.main;
164
+ if (sel.empty)
165
+ return false;
166
+ const pos = this.view.posAtCoords({ x: event.clientX, y: event.clientY });
167
+ if (pos === null || pos < sel.from || pos > sel.to)
168
+ return false; // not on the selection
169
+ this.state = { startX: event.clientX, startY: event.clientY, from: sel.from, to: sel.to, dragging: false, isMention: false };
170
+ window.addEventListener('mousemove', this.onMove, true);
171
+ window.addEventListener('mouseup', this.onUp, true);
172
+ event.preventDefault(); // we own this press; CM shouldn't start a new selection
173
+ return true;
174
+ }
175
+ /** Begin a drag of an explicit range (a mention token) seeded from a pointer
176
+ * press the component already handled. The mention is selected on press, so a
177
+ * plain release keeps it selected; dragging past the threshold moves the whole
178
+ * token. mousemove/mouseup still fire after a prevented pointerdown. */
179
+ startFor(seed, from, to) {
180
+ if (this.view.state.readOnly)
181
+ return;
182
+ this.state = { startX: seed.clientX, startY: seed.clientY, from, to, dragging: false, isMention: true };
183
+ // Pointer events, not mouse: the component preventDefault'd the pointerdown to
184
+ // own the press, which can suppress the compatibility mousemove/mouseup.
185
+ window.addEventListener('pointermove', this.onMove, true);
186
+ window.addEventListener('pointerup', this.onUp, true);
187
+ }
188
+ removeListeners() {
189
+ window.removeEventListener('mousemove', this.onMove, true);
190
+ window.removeEventListener('mouseup', this.onUp, true);
191
+ window.removeEventListener('pointermove', this.onMove, true);
192
+ window.removeEventListener('pointerup', this.onUp, true);
193
+ }
194
+ isInside(x, y) {
195
+ const r = this.view.scrollDOM.getBoundingClientRect();
196
+ return x >= r.left && x <= r.right && y >= r.top && y <= r.bottom;
197
+ }
198
+ // A translucent copy of the dragged text that follows the pointer.
199
+ showGhost(from, to) {
200
+ const ghost = document.createElement('div');
201
+ ghost.className = 'cm-drag-ghost';
202
+ // Show a mention as plain @Name — drop the markdown link wrapper and user id.
203
+ ghost.textContent = stripSentinels(this.view.state.sliceDoc(from, to)).replace(/\[(@[^\]]*)\]\(user:[^)]*\)/g, '$1');
204
+ this.view.dom.appendChild(ghost);
205
+ this.ghost = ghost;
206
+ }
207
+ moveGhost(x, y) {
208
+ if (this.ghost) {
209
+ this.ghost.style.left = `${x + 12}px`;
210
+ this.ghost.style.top = `${y + 12}px`;
211
+ }
212
+ }
213
+ clearGhost() {
214
+ this.ghost?.remove();
215
+ this.ghost = null;
216
+ }
217
+ destroy() {
218
+ this.removeListeners();
219
+ this.clearGhost();
220
+ }
221
+ }
222
+ export const dragMovePlugin = ViewPlugin.fromClass(DragMove, {
223
+ eventHandlers: {
224
+ mousedown(event) {
225
+ return this.start(event);
226
+ },
227
+ },
228
+ });
229
+ /** Drag selected text to move it (shadow-DOM-safe; native DnD won't start here). */
230
+ export const dragToMove = [dropPosField, dropCursorLayer, dragMovePlugin];
231
+ //# sourceMappingURL=text-editor.drag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.drag.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.drag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAmB,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAkB,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D;;;;;wDAKwD;AAExD,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,EAAiB,CAAC;AAEvD,mFAAmF;AACnF,MAAM,YAAY,GAAG,UAAU,CAAC,MAAM,CAAgB;IACrD,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;IAClB,MAAM,CAAC,KAAK,EAAE,EAAE;QACf,KAAK,MAAM,MAAM,IAAI,EAAE,CAAC,OAAO;YAAE,IAAI,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC;gBAAE,OAAO,MAAM,CAAC,KAAK,CAAC;QAChF,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;CACD,CAAC,CAAC;AAIH,iFAAiF;AACjF,iFAAiF;AACjF,mFAAmF;AACnF,mFAAmF;AACnF,wDAAwD;AACxD,MAAM,eAAe;IAGpB,YAA6B,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QAFrC,WAAM,GAAuB,IAAI,CAAC;QAiBlC,YAAO,GAAG,GAAoB,EAAE;YACvC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,Y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AM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,QAAQ,EAAE;IAC5D,aAAa,EAAE;QACd,SAAS,CAAiB,KAAiB;YAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;KACD;CACD,CAAC,CAAC;AAEH,oFAAoF;AACpF,MAAM,CAAC,MAAM,UAAU,GAAc,CAAC,YAAY,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const nlddTextEditorTranslations: {
2
+ 'components.text-editor.open-in-new-tab-label': string;
3
+ 'components.text-editor.annotation-count-label': string;
4
+ 'components.text-editor.annotation-singular-lowercase': string;
5
+ 'components.text-editor.annotation-plural-lowercase': string;
6
+ };
7
+ export type NLDDTextEditorTranslations = typeof nlddTextEditorTranslations;
8
+ //# sourceMappingURL=text-editor.i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;;CAWtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC"}
@@ -0,0 +1,13 @@
1
+ export const nlddTextEditorTranslations = {
2
+ // Accessible label on the "open link in new tab" badge that follows a real link.
3
+ // {url} is the link's destination.
4
+ 'components.text-editor.open-in-new-tab-label': 'Open link in nieuw tabblad: {url}',
5
+ // Accessible label on an annotation's count badge. {count} is the number of
6
+ // annotations on the range, {noun} is the singular/plural noun below, and {quote}
7
+ // is the (truncated) annotated text.
8
+ 'components.text-editor.annotation-count-label': "{count} {noun} op '{quote}'",
9
+ // The noun used in annotation-count-label: singular for one annotation, plural for more.
10
+ 'components.text-editor.annotation-singular-lowercase': 'annotatie',
11
+ 'components.text-editor.annotation-plural-lowercase': 'annotaties',
12
+ };
13
+ //# sourceMappingURL=text-editor.i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.i18n.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC,iFAAiF;IACjF,mCAAmC;IACnC,8CAA8C,EAAE,mCAAmC;IACnF,4EAA4E;IAC5E,kFAAkF;IAClF,qCAAqC;IACrC,+CAA+C,EAAE,6BAA6B;IAC9E,yFAAyF;IACzF,sDAAsD,EAAE,WAAW;IACnE,oDAAoD,EAAE,YAAY;CAClE,CAAC"}