@nextcloud/vue 8.37.0 → 8.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/Components/NcActionButton.cjs +1 -1
  3. package/dist/Components/NcActionButton.mjs +1 -1
  4. package/dist/Components/NcActionButtonGroup.cjs +1 -1
  5. package/dist/Components/NcActionButtonGroup.mjs +1 -1
  6. package/dist/Components/NcActionInput.cjs +1 -1
  7. package/dist/Components/NcActionInput.mjs +1 -1
  8. package/dist/Components/NcActionLink.cjs +2 -2
  9. package/dist/Components/NcActionLink.cjs.map +1 -1
  10. package/dist/Components/NcActionLink.mjs +2 -2
  11. package/dist/Components/NcActionLink.mjs.map +1 -1
  12. package/dist/Components/NcActionTextEditable.cjs +1 -1
  13. package/dist/Components/NcActionTextEditable.mjs +1 -1
  14. package/dist/Components/NcActions.cjs +1 -1
  15. package/dist/Components/NcActions.mjs +1 -1
  16. package/dist/Components/NcAppContent.cjs +1 -1
  17. package/dist/Components/NcAppContent.mjs +1 -1
  18. package/dist/Components/NcAppNavigation.cjs +1 -1
  19. package/dist/Components/NcAppNavigation.mjs +1 -1
  20. package/dist/Components/NcAppNavigationCaption.cjs +1 -1
  21. package/dist/Components/NcAppNavigationCaption.mjs +1 -1
  22. package/dist/Components/NcAppNavigationItem.cjs +1 -1
  23. package/dist/Components/NcAppNavigationItem.mjs +1 -1
  24. package/dist/Components/NcAppNavigationNew.cjs +1 -1
  25. package/dist/Components/NcAppNavigationNew.mjs +1 -1
  26. package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
  27. package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
  28. package/dist/Components/NcAppNavigationSearch.cjs +1 -1
  29. package/dist/Components/NcAppNavigationSearch.mjs +1 -1
  30. package/dist/Components/NcAppNavigationSettings.cjs +1 -1
  31. package/dist/Components/NcAppNavigationSettings.mjs +1 -1
  32. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  33. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  34. package/dist/Components/NcAppSettingsDialog.cjs +1 -1
  35. package/dist/Components/NcAppSettingsDialog.mjs +1 -1
  36. package/dist/Components/NcAppSidebar.cjs +1 -1
  37. package/dist/Components/NcAppSidebar.mjs +1 -1
  38. package/dist/Components/NcAssistantButton.cjs +1 -1
  39. package/dist/Components/NcAssistantButton.mjs +1 -1
  40. package/dist/Components/NcAvatar.cjs +1 -1
  41. package/dist/Components/NcAvatar.mjs +1 -1
  42. package/dist/Components/NcBreadcrumb.cjs +1 -1
  43. package/dist/Components/NcBreadcrumb.mjs +1 -1
  44. package/dist/Components/NcBreadcrumbs.cjs +1 -1
  45. package/dist/Components/NcBreadcrumbs.mjs +1 -1
  46. package/dist/Components/NcButton.cjs +1 -1
  47. package/dist/Components/NcButton.mjs +1 -1
  48. package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
  49. package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
  50. package/dist/Components/NcChip.cjs +2 -2
  51. package/dist/Components/NcChip.mjs +2 -2
  52. package/dist/Components/NcCollectionList.cjs +1 -1
  53. package/dist/Components/NcCollectionList.mjs +1 -1
  54. package/dist/Components/NcColorPicker.cjs +1 -1
  55. package/dist/Components/NcColorPicker.mjs +1 -1
  56. package/dist/Components/NcContent.cjs +1 -1
  57. package/dist/Components/NcContent.mjs +1 -1
  58. package/dist/Components/NcDashboardWidget.cjs +1 -1
  59. package/dist/Components/NcDashboardWidget.mjs +1 -1
  60. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  61. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  62. package/dist/Components/NcDateTimePicker.cjs +3 -3
  63. package/dist/Components/NcDateTimePicker.mjs +3 -3
  64. package/dist/Components/NcDateTimePickerNative.cjs +1 -1
  65. package/dist/Components/NcDateTimePickerNative.mjs +1 -1
  66. package/dist/Components/NcDialog.cjs +1 -1
  67. package/dist/Components/NcDialog.mjs +1 -1
  68. package/dist/Components/NcDialogButton.cjs +1 -1
  69. package/dist/Components/NcDialogButton.mjs +1 -1
  70. package/dist/Components/NcEmojiPicker.cjs +1 -1
  71. package/dist/Components/NcEmojiPicker.mjs +1 -1
  72. package/dist/Components/NcFilePicker.cjs +1 -1
  73. package/dist/Components/NcFilePicker.mjs +1 -1
  74. package/dist/Components/NcFormBoxButton.cjs +1 -1
  75. package/dist/Components/NcFormBoxButton.mjs +1 -1
  76. package/dist/Components/NcFormBoxCopyButton.cjs +1 -1
  77. package/dist/Components/NcFormBoxCopyButton.mjs +1 -1
  78. package/dist/Components/NcFormBoxSwitch.cjs +1 -1
  79. package/dist/Components/NcFormBoxSwitch.mjs +1 -1
  80. package/dist/Components/NcHeaderButton.cjs +1 -1
  81. package/dist/Components/NcHeaderButton.mjs +1 -1
  82. package/dist/Components/NcHeaderMenu.cjs +1 -1
  83. package/dist/Components/NcHeaderMenu.mjs +1 -1
  84. package/dist/Components/NcInputField.cjs +1 -1
  85. package/dist/Components/NcInputField.mjs +1 -1
  86. package/dist/Components/NcListItem.cjs +1 -1
  87. package/dist/Components/NcListItem.mjs +1 -1
  88. package/dist/Components/NcListItemIcon.cjs +1 -1
  89. package/dist/Components/NcListItemIcon.mjs +1 -1
  90. package/dist/Components/NcModal.cjs +3 -3
  91. package/dist/Components/NcModal.mjs +3 -3
  92. package/dist/Components/NcNoteCard.cjs +1 -1
  93. package/dist/Components/NcNoteCard.mjs +1 -1
  94. package/dist/Components/NcPasswordField.cjs +1 -1
  95. package/dist/Components/NcPasswordField.mjs +1 -1
  96. package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
  97. package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
  98. package/dist/Components/NcRichContenteditable.cjs +2 -2
  99. package/dist/Components/NcRichContenteditable.mjs +2 -2
  100. package/dist/Components/NcRichText.cjs +2 -2
  101. package/dist/Components/NcRichText.mjs +3 -3
  102. package/dist/Components/NcSelect.cjs +1 -1
  103. package/dist/Components/NcSelect.mjs +1 -1
  104. package/dist/Components/NcSelectTags.cjs +1 -1
  105. package/dist/Components/NcSelectTags.mjs +1 -1
  106. package/dist/Components/NcSelectUsers.cjs +1 -1
  107. package/dist/Components/NcSelectUsers.mjs +1 -1
  108. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  109. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  110. package/dist/Components/NcTextArea.cjs +1 -1
  111. package/dist/Components/NcTextArea.mjs +1 -1
  112. package/dist/Components/NcTextField.cjs +1 -1
  113. package/dist/Components/NcTextField.mjs +1 -1
  114. package/dist/Components/NcTimezonePicker.cjs +1 -1
  115. package/dist/Components/NcTimezonePicker.mjs +1 -1
  116. package/dist/Components/NcUserBubble.cjs +1 -1
  117. package/dist/Components/NcUserBubble.mjs +1 -1
  118. package/dist/Components/NcUserStatusIcon.cjs +1 -1
  119. package/dist/Components/NcUserStatusIcon.mjs +1 -1
  120. package/dist/Functions/emoji.cjs +1 -1
  121. package/dist/Functions/emoji.mjs +1 -1
  122. package/dist/Functions/reference.cjs +1 -1
  123. package/dist/Functions/reference.mjs +1 -1
  124. package/dist/Functions/usernameToColor.cjs +1 -1
  125. package/dist/Functions/usernameToColor.mjs +1 -1
  126. package/dist/Mixins/richEditor.cjs +1 -1
  127. package/dist/Mixins/richEditor.mjs +1 -1
  128. package/dist/assets/{NcActionButton-CG4V9b5b.css → NcActionButton-CjKx3679.css} +18 -18
  129. package/dist/assets/{NcActionButtonGroup-CRXLyFpx.css → NcActionButtonGroup-DqR0weTf.css} +8 -8
  130. package/dist/assets/{NcActionInput-B-c5cOfM.css → NcActionInput-CPu4Btyq.css} +65 -65
  131. package/dist/assets/{NcActionLink-BtpJIbvI.css → NcActionLink-Bt-73iBm.css} +13 -13
  132. package/dist/assets/{NcActionTextEditable-BCmDMuUg.css → NcActionTextEditable-AuLw5QVP.css} +65 -65
  133. package/dist/assets/{NcActions-CVw1SmBu.css → NcActions-CuFJSslC.css} +11 -11
  134. package/dist/assets/{NcAppNavigation-Dbpqdigp.css → NcAppNavigation-DfsSMVgo.css} +18 -12
  135. package/dist/assets/{NcAppNavigationItem-De04deJW.css → NcAppNavigationItem-CksjxOVP.css} +77 -40
  136. package/dist/assets/{NcAppNavigationNewItem-CYSjj3pD.css → NcAppNavigationNewItem-Dn_iz3og.css} +41 -4
  137. package/dist/assets/NcAppSettingsDialog-DRyLeR3T.css +222 -0
  138. package/dist/assets/{NcAppSidebar-BsMeIg8W.css → NcAppSidebar-B1bkEVQA.css} +75 -14
  139. package/dist/assets/{NcBreadcrumbs-DahxPGJY.css → NcBreadcrumbs-Dt1zdHzR.css} +6 -6
  140. package/dist/assets/{NcButton-8Y8d_1Z_.css → NcButton-o3s2D3Dl.css} +49 -46
  141. package/dist/assets/{NcCheckboxRadioSwitch-BACLOhMO.css → NcCheckboxRadioSwitch-BojbloxL.css} +38 -38
  142. package/dist/assets/{NcContent-a67pCVHO.css → NcContent-URJTZQq1.css} +22 -10
  143. package/dist/assets/{NcDateTimePicker-BzP7Sn12.css → NcDateTimePicker-DknygOcQ.css} +8 -8
  144. package/dist/assets/NcInputConfirmCancel-Brp9ZfY5.css +53 -0
  145. package/dist/assets/{NcPasswordField-CiN_phAQ.css → NcPasswordField-vrT0oftw.css} +2 -2
  146. package/dist/assets/{NcRelatedResourcesPanel-BgMc8bue.css → NcRelatedResourcesPanel-CTpqdDL9.css} +3 -3
  147. package/dist/assets/{NcRichContenteditable-3tL9zHn2.css → NcRichContenteditable-DwS6PNCv.css} +11 -11
  148. package/dist/assets/{NcRichText-CAhzDSty.css → NcRichText-Cp_5tfBy.css} +91 -98
  149. package/dist/assets/autolink-KPdaBewQ.css +25 -0
  150. package/dist/chunks/{NcActionButton-C5Dqge0c.cjs → NcActionButton-CiYel4_C.cjs} +3 -3
  151. package/dist/chunks/NcActionButton-CiYel4_C.cjs.map +1 -0
  152. package/dist/chunks/{NcActionButton-1gSJfFUC.mjs → NcActionButton-K4jUGMlW.mjs} +3 -3
  153. package/dist/chunks/NcActionButton-K4jUGMlW.mjs.map +1 -0
  154. package/dist/chunks/{NcActionButtonGroup-eZxqibUd.mjs → NcActionButtonGroup-B95wg_Q6.mjs} +3 -3
  155. package/dist/chunks/NcActionButtonGroup-B95wg_Q6.mjs.map +1 -0
  156. package/dist/chunks/{NcActionButtonGroup-CpZDTAQo.cjs → NcActionButtonGroup-CFGCmzTM.cjs} +3 -3
  157. package/dist/chunks/NcActionButtonGroup-CFGCmzTM.cjs.map +1 -0
  158. package/dist/chunks/{NcActionInput-UPwE2Dky.mjs → NcActionInput-BoKGVBu8.mjs} +5 -5
  159. package/dist/chunks/NcActionInput-BoKGVBu8.mjs.map +1 -0
  160. package/dist/chunks/{NcActionInput-eAmBylEO.cjs → NcActionInput-CcA3XFGe.cjs} +5 -5
  161. package/dist/chunks/NcActionInput-CcA3XFGe.cjs.map +1 -0
  162. package/dist/chunks/{NcActionTextEditable-RFLtWxrl.cjs → NcActionTextEditable-BqJ5wONY.cjs} +3 -3
  163. package/dist/chunks/NcActionTextEditable-BqJ5wONY.cjs.map +1 -0
  164. package/dist/chunks/{NcActionTextEditable-CIsAP-pp.mjs → NcActionTextEditable-YqvZGY07.mjs} +3 -3
  165. package/dist/chunks/NcActionTextEditable-YqvZGY07.mjs.map +1 -0
  166. package/dist/chunks/{NcActions-BSDvtMJD.cjs → NcActions-D51W1X9v.cjs} +4 -4
  167. package/dist/chunks/NcActions-D51W1X9v.cjs.map +1 -0
  168. package/dist/chunks/{NcActions-BcLis_nr.mjs → NcActions-DbPerbGE.mjs} +4 -4
  169. package/dist/chunks/NcActions-DbPerbGE.mjs.map +1 -0
  170. package/dist/chunks/{NcAppContent-DLGtJosF.cjs → NcAppContent-0hbQMH35.cjs} +2 -2
  171. package/dist/chunks/{NcAppContent-DLGtJosF.cjs.map → NcAppContent-0hbQMH35.cjs.map} +1 -1
  172. package/dist/chunks/{NcAppContent-CeVqX0gV.mjs → NcAppContent-DAN0qPID.mjs} +2 -2
  173. package/dist/chunks/{NcAppContent-CeVqX0gV.mjs.map → NcAppContent-DAN0qPID.mjs.map} +1 -1
  174. package/dist/chunks/{NcAppNavigation-D2Ds_2Dm.cjs → NcAppNavigation-DB3HqxPL.cjs} +24 -9
  175. package/dist/chunks/NcAppNavigation-DB3HqxPL.cjs.map +1 -0
  176. package/dist/chunks/{NcAppNavigation-BfzJA6cb.mjs → NcAppNavigation-DGufDPoi.mjs} +24 -9
  177. package/dist/chunks/NcAppNavigation-DGufDPoi.mjs.map +1 -0
  178. package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs → NcAppNavigationCaption-BZwuqQcm.mjs} +2 -2
  179. package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs.map → NcAppNavigationCaption-BZwuqQcm.mjs.map} +1 -1
  180. package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs → NcAppNavigationCaption-WVnxSeIf.cjs} +2 -2
  181. package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs.map → NcAppNavigationCaption-WVnxSeIf.cjs.map} +1 -1
  182. package/dist/chunks/{NcAppNavigationItem-Dc5Vdhb1.cjs → NcAppNavigationItem-0zDqIuUZ.cjs} +17 -11
  183. package/dist/chunks/NcAppNavigationItem-0zDqIuUZ.cjs.map +1 -0
  184. package/dist/chunks/{NcAppNavigationItem-D30ztZfZ.mjs → NcAppNavigationItem-CgYgq_nb.mjs} +17 -11
  185. package/dist/chunks/NcAppNavigationItem-CgYgq_nb.mjs.map +1 -0
  186. package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs → NcAppNavigationNew-BUVnumWS.mjs} +2 -2
  187. package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs.map → NcAppNavigationNew-BUVnumWS.mjs.map} +1 -1
  188. package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs → NcAppNavigationNew-DRdPwKOi.cjs} +2 -2
  189. package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs.map → NcAppNavigationNew-DRdPwKOi.cjs.map} +1 -1
  190. package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs → NcAppNavigationNewItem-Nz2HecTz.mjs} +3 -3
  191. package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs.map → NcAppNavigationNewItem-Nz2HecTz.mjs.map} +1 -1
  192. package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs → NcAppNavigationNewItem-SR744REn.cjs} +3 -3
  193. package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs.map → NcAppNavigationNewItem-SR744REn.cjs.map} +1 -1
  194. package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs → NcAppNavigationSearch-Czcwiin4.cjs} +2 -2
  195. package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs.map → NcAppNavigationSearch-Czcwiin4.cjs.map} +1 -1
  196. package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs → NcAppNavigationSearch-CzhlljAU.mjs} +2 -2
  197. package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs.map → NcAppNavigationSearch-CzhlljAU.mjs.map} +1 -1
  198. package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs → NcAppNavigationSettings-BaO-G72x.mjs} +3 -3
  199. package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs.map → NcAppNavigationSettings-BaO-G72x.mjs.map} +1 -1
  200. package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs → NcAppNavigationSettings-CotFe5aD.cjs} +3 -3
  201. package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs.map → NcAppNavigationSettings-CotFe5aD.cjs.map} +1 -1
  202. package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs → NcAppNavigationToggle-CXX1MFrf.mjs} +2 -2
  203. package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs.map → NcAppNavigationToggle-CXX1MFrf.mjs.map} +1 -1
  204. package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs → NcAppNavigationToggle-CkDMk16T.cjs} +2 -2
  205. package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs.map → NcAppNavigationToggle-CkDMk16T.cjs.map} +1 -1
  206. package/dist/chunks/{NcAppSettingsDialog-Ckf6dRRJ.cjs → NcAppSettingsDialog-Fa5DTfig.cjs} +10 -9
  207. package/dist/chunks/NcAppSettingsDialog-Fa5DTfig.cjs.map +1 -0
  208. package/dist/chunks/{NcAppSettingsDialog-vBeCGFqk.mjs → NcAppSettingsDialog-MxrFh-Ln.mjs} +8 -7
  209. package/dist/chunks/NcAppSettingsDialog-MxrFh-Ln.mjs.map +1 -0
  210. package/dist/chunks/{NcAppSidebar-Cx0PlofZ.mjs → NcAppSidebar-B7GuNZ4C.mjs} +10 -8
  211. package/dist/chunks/NcAppSidebar-B7GuNZ4C.mjs.map +1 -0
  212. package/dist/chunks/{NcAppSidebar-CPHVBBe0.cjs → NcAppSidebar-DXEl0_ou.cjs} +10 -8
  213. package/dist/chunks/NcAppSidebar-DXEl0_ou.cjs.map +1 -0
  214. package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs → NcAssistantButton-B7BLAkwW.mjs} +2 -2
  215. package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs.map → NcAssistantButton-B7BLAkwW.mjs.map} +1 -1
  216. package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs → NcAssistantButton-XS3UdAKm.cjs} +2 -2
  217. package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs.map → NcAssistantButton-XS3UdAKm.cjs.map} +1 -1
  218. package/dist/chunks/{NcAvatar-ffZLZnH_.cjs → NcAvatar-D09ZAgeJ.cjs} +7 -7
  219. package/dist/chunks/{NcAvatar-ffZLZnH_.cjs.map → NcAvatar-D09ZAgeJ.cjs.map} +1 -1
  220. package/dist/chunks/{NcAvatar-DC2fiCH-.mjs → NcAvatar-DkAX4nqq.mjs} +7 -7
  221. package/dist/chunks/{NcAvatar-DC2fiCH-.mjs.map → NcAvatar-DkAX4nqq.mjs.map} +1 -1
  222. package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs → NcBreadcrumb-14OmaYrH.cjs} +3 -3
  223. package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs.map → NcBreadcrumb-14OmaYrH.cjs.map} +1 -1
  224. package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs → NcBreadcrumb-D8xA3KcG.mjs} +3 -3
  225. package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs.map → NcBreadcrumb-D8xA3KcG.mjs.map} +1 -1
  226. package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs → NcBreadcrumbs-CZt3UuyO.cjs} +7 -7
  227. package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs.map → NcBreadcrumbs-CZt3UuyO.cjs.map} +1 -1
  228. package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs → NcBreadcrumbs-CesoXxTs.mjs} +7 -7
  229. package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs.map → NcBreadcrumbs-CesoXxTs.mjs.map} +1 -1
  230. package/dist/chunks/{NcButton-Dszi1Apb.cjs → NcButton-ByTFUhwJ.cjs} +14 -5
  231. package/dist/chunks/NcButton-ByTFUhwJ.cjs.map +1 -0
  232. package/dist/chunks/{NcButton-BaZAY-tN.mjs → NcButton-CCWEL9Ci.mjs} +14 -5
  233. package/dist/chunks/NcButton-CCWEL9Ci.mjs.map +1 -0
  234. package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs → NcCheckboxRadioSwitch-BQeglWXd.cjs} +8 -17
  235. package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs.map → NcCheckboxRadioSwitch-BQeglWXd.cjs.map} +1 -1
  236. package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs → NcCheckboxRadioSwitch-D4IV4zWy.mjs} +8 -17
  237. package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs.map → NcCheckboxRadioSwitch-D4IV4zWy.mjs.map} +1 -1
  238. package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs → NcCollectionList-2jk5XCm8.cjs} +6 -6
  239. package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs.map → NcCollectionList-2jk5XCm8.cjs.map} +1 -1
  240. package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs → NcCollectionList-DOAZ13vO.mjs} +6 -6
  241. package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs.map → NcCollectionList-DOAZ13vO.mjs.map} +1 -1
  242. package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs → NcColorPicker-BTiAa5mm.cjs} +3 -3
  243. package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs.map → NcColorPicker-BTiAa5mm.cjs.map} +1 -1
  244. package/dist/chunks/{NcColorPicker-BfApfazi.mjs → NcColorPicker-SlazeVcI.mjs} +3 -3
  245. package/dist/chunks/{NcColorPicker-BfApfazi.mjs.map → NcColorPicker-SlazeVcI.mjs.map} +1 -1
  246. package/dist/chunks/{NcContent-MiRvygrj.cjs → NcContent-BB-v-amq.cjs} +8 -6
  247. package/dist/chunks/{NcContent-MiRvygrj.cjs.map → NcContent-BB-v-amq.cjs.map} +1 -1
  248. package/dist/chunks/{NcContent-DFOsZ6pm.mjs → NcContent-BuTh0ZPb.mjs} +8 -6
  249. package/dist/chunks/{NcContent-DFOsZ6pm.mjs.map → NcContent-BuTh0ZPb.mjs.map} +1 -1
  250. package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs → NcDashboardWidget-CO1z9VUN.mjs} +3 -3
  251. package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs.map → NcDashboardWidget-CO1z9VUN.mjs.map} +1 -1
  252. package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs → NcDashboardWidget-dMwnFBzc.cjs} +3 -3
  253. package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs.map → NcDashboardWidget-dMwnFBzc.cjs.map} +1 -1
  254. package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs → NcDashboardWidgetItem-2VgB9qj2.mjs} +4 -4
  255. package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs.map → NcDashboardWidgetItem-2VgB9qj2.mjs.map} +1 -1
  256. package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs → NcDashboardWidgetItem-9tQgaPXS.cjs} +4 -4
  257. package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs.map → NcDashboardWidgetItem-9tQgaPXS.cjs.map} +1 -1
  258. package/dist/chunks/{NcDialog-CDFWleNp.mjs → NcDialog-DZ7xq7XA.mjs} +2 -2
  259. package/dist/chunks/{NcDialog-CDFWleNp.mjs.map → NcDialog-DZ7xq7XA.mjs.map} +1 -1
  260. package/dist/chunks/{NcDialog-gV238gzy.cjs → NcDialog-Qak1QTrv.cjs} +2 -2
  261. package/dist/chunks/{NcDialog-gV238gzy.cjs.map → NcDialog-Qak1QTrv.cjs.map} +1 -1
  262. package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs → NcDialogButton-BoetK2zm.cjs} +2 -2
  263. package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs.map → NcDialogButton-BoetK2zm.cjs.map} +1 -1
  264. package/dist/chunks/{NcDialogButton-tB5RGMME.mjs → NcDialogButton-KNF3Co74.mjs} +2 -2
  265. package/dist/chunks/{NcDialogButton-tB5RGMME.mjs.map → NcDialogButton-KNF3Co74.mjs.map} +1 -1
  266. package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs → NcEmojiPicker-2KIJVstd.cjs} +6 -6
  267. package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs.map → NcEmojiPicker-2KIJVstd.cjs.map} +1 -1
  268. package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs → NcEmojiPicker-DNxcceCn.mjs} +6 -6
  269. package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs.map → NcEmojiPicker-DNxcceCn.mjs.map} +1 -1
  270. package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs → NcFilePicker-BL6iajt2.cjs} +3 -3
  271. package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs.map → NcFilePicker-BL6iajt2.cjs.map} +1 -1
  272. package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs → NcFilePicker-Ck9o-ia3.mjs} +3 -3
  273. package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs.map → NcFilePicker-Ck9o-ia3.mjs.map} +1 -1
  274. package/dist/chunks/NcFormBox-DRGVpFeZ.cjs.map +1 -1
  275. package/dist/chunks/NcFormBox-DtoCXLMx.mjs.map +1 -1
  276. package/dist/chunks/{NcFormBoxButton-BQi11xQX.mjs → NcFormBoxButton-CFWCJ0-X.mjs} +2 -2
  277. package/dist/chunks/{NcFormBoxButton-BQi11xQX.mjs.map → NcFormBoxButton-CFWCJ0-X.mjs.map} +1 -1
  278. package/dist/chunks/{NcFormBoxButton-BO2bMnah.cjs → NcFormBoxButton-ozVuTgCZ.cjs} +2 -2
  279. package/dist/chunks/{NcFormBoxButton-BO2bMnah.cjs.map → NcFormBoxButton-ozVuTgCZ.cjs.map} +1 -1
  280. package/dist/chunks/{NcFormBoxCopyButton-B2GrmfEz.cjs → NcFormBoxCopyButton-BS9aM994.cjs} +2 -2
  281. package/dist/chunks/{NcFormBoxCopyButton-B2GrmfEz.cjs.map → NcFormBoxCopyButton-BS9aM994.cjs.map} +1 -1
  282. package/dist/chunks/{NcFormBoxCopyButton-BkunQ3me.mjs → NcFormBoxCopyButton-Da8RuDH1.mjs} +2 -2
  283. package/dist/chunks/{NcFormBoxCopyButton-BkunQ3me.mjs.map → NcFormBoxCopyButton-Da8RuDH1.mjs.map} +1 -1
  284. package/dist/chunks/{NcFormBoxItem-y2AfRFCy.cjs → NcFormBoxItem-3lI7Bu3S.cjs} +2 -2
  285. package/dist/chunks/{NcFormBoxItem-y2AfRFCy.cjs.map → NcFormBoxItem-3lI7Bu3S.cjs.map} +1 -1
  286. package/dist/chunks/{NcFormBoxItem-Cu3gWo1q.mjs → NcFormBoxItem-Bz-P0lVG.mjs} +2 -2
  287. package/dist/chunks/{NcFormBoxItem-Cu3gWo1q.mjs.map → NcFormBoxItem-Bz-P0lVG.mjs.map} +1 -1
  288. package/dist/chunks/{NcFormBoxSwitch-OoIgFMb9.cjs → NcFormBoxSwitch-7R8iAj1R.cjs} +2 -2
  289. package/dist/chunks/{NcFormBoxSwitch-OoIgFMb9.cjs.map → NcFormBoxSwitch-7R8iAj1R.cjs.map} +1 -1
  290. package/dist/chunks/{NcFormBoxSwitch-E6sxPL4n.mjs → NcFormBoxSwitch-DaaMuPnk.mjs} +2 -2
  291. package/dist/chunks/{NcFormBoxSwitch-E6sxPL4n.mjs.map → NcFormBoxSwitch-DaaMuPnk.mjs.map} +1 -1
  292. package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs → NcHeaderButton-BndVfb3e.cjs} +2 -2
  293. package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs.map → NcHeaderButton-BndVfb3e.cjs.map} +1 -1
  294. package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs → NcHeaderButton-GtIbBhEd.mjs} +2 -2
  295. package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs.map → NcHeaderButton-GtIbBhEd.mjs.map} +1 -1
  296. package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs → NcHeaderMenu-DUQ4pqU-.cjs} +2 -2
  297. package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs.map → NcHeaderMenu-DUQ4pqU-.cjs.map} +1 -1
  298. package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs → NcHeaderMenu-elBE_Ukl.mjs} +2 -2
  299. package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs.map → NcHeaderMenu-elBE_Ukl.mjs.map} +1 -1
  300. package/dist/chunks/{NcInputConfirmCancel-Ckda9G9Z.cjs → NcInputConfirmCancel-CEZVhgJR.cjs} +9 -5
  301. package/dist/chunks/NcInputConfirmCancel-CEZVhgJR.cjs.map +1 -0
  302. package/dist/chunks/{NcInputConfirmCancel-BvYpvopv.mjs → NcInputConfirmCancel-CwuZqsuC.mjs} +9 -5
  303. package/dist/chunks/NcInputConfirmCancel-CwuZqsuC.mjs.map +1 -0
  304. package/dist/chunks/{NcInputField-DDgBZ427.cjs → NcInputField-Brpn446B.cjs} +3 -3
  305. package/dist/chunks/{NcInputField-DDgBZ427.cjs.map → NcInputField-Brpn446B.cjs.map} +1 -1
  306. package/dist/chunks/{NcInputField-Cfm1bJR4.mjs → NcInputField-i4Z8nb4b.mjs} +3 -3
  307. package/dist/chunks/{NcInputField-Cfm1bJR4.mjs.map → NcInputField-i4Z8nb4b.mjs.map} +1 -1
  308. package/dist/chunks/{NcListItem-BLbG7272.cjs → NcListItem-C-e9iA9w.cjs} +2 -2
  309. package/dist/chunks/{NcListItem-BLbG7272.cjs.map → NcListItem-C-e9iA9w.cjs.map} +1 -1
  310. package/dist/chunks/{NcListItem-RKTfRg06.mjs → NcListItem-CaosvdEe.mjs} +2 -2
  311. package/dist/chunks/{NcListItem-RKTfRg06.mjs.map → NcListItem-CaosvdEe.mjs.map} +1 -1
  312. package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs → NcListItemIcon-BQ0f65Vg.cjs} +2 -2
  313. package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs.map → NcListItemIcon-BQ0f65Vg.cjs.map} +1 -1
  314. package/dist/chunks/{NcListItemIcon-D49wESTI.mjs → NcListItemIcon-DCKYv8Jr.mjs} +2 -2
  315. package/dist/chunks/{NcListItemIcon-D49wESTI.mjs.map → NcListItemIcon-DCKYv8Jr.mjs.map} +1 -1
  316. package/dist/chunks/{NcPasswordField-lE4m20vf.mjs → NcPasswordField-D4OFjLza.mjs} +7 -8
  317. package/dist/chunks/NcPasswordField-D4OFjLza.mjs.map +1 -0
  318. package/dist/chunks/{NcPasswordField-DNuolayr.cjs → NcPasswordField-PQt7wMbW.cjs} +7 -8
  319. package/dist/chunks/NcPasswordField-PQt7wMbW.cjs.map +1 -0
  320. package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs → NcRelatedResourcesPanel-I2ZOB3cx.mjs} +7 -7
  321. package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs.map → NcRelatedResourcesPanel-I2ZOB3cx.mjs.map} +1 -1
  322. package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs → NcRelatedResourcesPanel-l1AlGr83.cjs} +7 -7
  323. package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs.map → NcRelatedResourcesPanel-l1AlGr83.cjs.map} +1 -1
  324. package/dist/chunks/{NcRichContenteditable-SA1zbfkk.mjs → NcRichContenteditable-8ZA_LArB.mjs} +21 -19
  325. package/dist/chunks/NcRichContenteditable-8ZA_LArB.mjs.map +1 -0
  326. package/dist/chunks/{NcRichContenteditable-Bh-mMIQz.cjs → NcRichContenteditable-DZjIiOKo.cjs} +21 -19
  327. package/dist/chunks/NcRichContenteditable-DZjIiOKo.cjs.map +1 -0
  328. package/dist/chunks/{NcRichText-rNfwY_Oc.mjs → NcRichText-ByLPwUvM.mjs} +337 -325
  329. package/dist/chunks/NcRichText-ByLPwUvM.mjs.map +1 -0
  330. package/dist/chunks/{NcRichText-B1Fyj7k8.cjs → NcRichText-pqvg5l27.cjs} +338 -327
  331. package/dist/chunks/NcRichText-pqvg5l27.cjs.map +1 -0
  332. package/dist/chunks/{NcSelect-1P3nA044.cjs → NcSelect-BCcSawYf.cjs} +3 -3
  333. package/dist/chunks/{NcSelect-1P3nA044.cjs.map → NcSelect-BCcSawYf.cjs.map} +1 -1
  334. package/dist/chunks/{NcSelect-CbWXsDdZ.mjs → NcSelect-CHc1QupB.mjs} +3 -3
  335. package/dist/chunks/{NcSelect-CbWXsDdZ.mjs.map → NcSelect-CHc1QupB.mjs.map} +1 -1
  336. package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs → NcSelectTags-Bokig7ar.mjs} +2 -2
  337. package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs.map → NcSelectTags-Bokig7ar.mjs.map} +1 -1
  338. package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs → NcSelectTags-uU_mHbSm.cjs} +2 -2
  339. package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs.map → NcSelectTags-uU_mHbSm.cjs.map} +1 -1
  340. package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs → NcSelectUsers-B4w9UC_d.mjs} +3 -3
  341. package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs.map → NcSelectUsers-B4w9UC_d.mjs.map} +1 -1
  342. package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs → NcSelectUsers-BB9ZIHeB.cjs} +3 -3
  343. package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs.map → NcSelectUsers-BB9ZIHeB.cjs.map} +1 -1
  344. package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs → NcSettingsSelectGroup-BdXf7ytX.mjs} +2 -2
  345. package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs.map → NcSettingsSelectGroup-BdXf7ytX.mjs.map} +1 -1
  346. package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs → NcSettingsSelectGroup-BtNFBX1V.cjs} +2 -2
  347. package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs.map → NcSettingsSelectGroup-BtNFBX1V.cjs.map} +1 -1
  348. package/dist/chunks/{NcTextArea-UKiTMLga.cjs → NcTextArea-B9Vn3rQC.cjs} +2 -2
  349. package/dist/chunks/{NcTextArea-UKiTMLga.cjs.map → NcTextArea-B9Vn3rQC.cjs.map} +1 -1
  350. package/dist/chunks/{NcTextArea-fGUiK7p2.mjs → NcTextArea-DPJWqlJb.mjs} +2 -2
  351. package/dist/chunks/{NcTextArea-fGUiK7p2.mjs.map → NcTextArea-DPJWqlJb.mjs.map} +1 -1
  352. package/dist/chunks/{NcTextField-CkW-dl88.cjs → NcTextField-B92lM77I.cjs} +2 -2
  353. package/dist/chunks/{NcTextField-CkW-dl88.cjs.map → NcTextField-B92lM77I.cjs.map} +1 -1
  354. package/dist/chunks/{NcTextField-DZHP0Dfw.mjs → NcTextField-Czr9S6YO.mjs} +2 -2
  355. package/dist/chunks/{NcTextField-DZHP0Dfw.mjs.map → NcTextField-Czr9S6YO.mjs.map} +1 -1
  356. package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs → NcTimezonePicker-D2e7hW-Z.cjs} +2 -2
  357. package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs.map → NcTimezonePicker-D2e7hW-Z.cjs.map} +1 -1
  358. package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs → NcTimezonePicker-n9kr9A4o.mjs} +2 -2
  359. package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs.map → NcTimezonePicker-n9kr9A4o.mjs.map} +1 -1
  360. package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs → NcUserBubble-BGfZAi4c.mjs} +2 -2
  361. package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs.map → NcUserBubble-BGfZAi4c.mjs.map} +1 -1
  362. package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs → NcUserBubble-CNQJUk2l.cjs} +2 -2
  363. package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs.map → NcUserBubble-CNQJUk2l.cjs.map} +1 -1
  364. package/dist/chunks/{NcUserStatusIcon-Bw0m9Xza.cjs → NcUserStatusIcon-BnGtoiCy.cjs} +2 -2
  365. package/dist/chunks/{NcUserStatusIcon-Bw0m9Xza.cjs.map → NcUserStatusIcon-BnGtoiCy.cjs.map} +1 -1
  366. package/dist/chunks/{NcUserStatusIcon-Cq1RnTfF.mjs → NcUserStatusIcon-DdPPN-cP.mjs} +2 -2
  367. package/dist/chunks/{NcUserStatusIcon-Cq1RnTfF.mjs.map → NcUserStatusIcon-DdPPN-cP.mjs.map} +1 -1
  368. package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs → ScopeComponent-77Az-4PS.mjs} +2 -2
  369. package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs.map → ScopeComponent-77Az-4PS.mjs.map} +1 -1
  370. package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs → ScopeComponent-BLaRYUFv.cjs} +2 -2
  371. package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs.map → ScopeComponent-BLaRYUFv.cjs.map} +1 -1
  372. package/dist/chunks/{autolink-D2pIbi92.mjs → autolink-CeB9uxD9.mjs} +56 -21
  373. package/dist/chunks/autolink-CeB9uxD9.mjs.map +1 -0
  374. package/dist/chunks/{autolink-BPlRHRHR.cjs → autolink-VQMuzjxl.cjs} +57 -22
  375. package/dist/chunks/autolink-VQMuzjxl.cjs.map +1 -0
  376. package/dist/chunks/{colors-BmzDi7by.mjs → colors-Bp0JzIQ4.mjs} +5 -1
  377. package/dist/chunks/{colors-BmzDi7by.mjs.map → colors-Bp0JzIQ4.mjs.map} +1 -1
  378. package/dist/chunks/{colors-CND3oL8e.cjs → colors-CyIwf6gH.cjs} +5 -1
  379. package/dist/chunks/{colors-CND3oL8e.cjs.map → colors-CyIwf6gH.cjs.map} +1 -1
  380. package/dist/chunks/{emoji-BgZdRy3v.mjs → emoji-Dtn2mDf7.mjs} +2 -2
  381. package/dist/chunks/emoji-Dtn2mDf7.mjs.map +1 -0
  382. package/dist/chunks/{emoji-CEwczMT5.cjs → emoji-aWWWqkrJ.cjs} +2 -2
  383. package/dist/chunks/emoji-aWWWqkrJ.cjs.map +1 -0
  384. package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs → getAvatarUrl-4HsuXa3l.cjs} +2 -2
  385. package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs.map → getAvatarUrl-4HsuXa3l.cjs.map} +1 -1
  386. package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs → getAvatarUrl-BGOeDmNO.mjs} +2 -2
  387. package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs.map → getAvatarUrl-BGOeDmNO.mjs.map} +1 -1
  388. package/dist/chunks/{index-TmAR7I2T.mjs → index-BCqXu_og.mjs} +2 -2
  389. package/dist/chunks/{index-TmAR7I2T.mjs.map → index-BCqXu_og.mjs.map} +1 -1
  390. package/dist/chunks/{index-CgkN1xho.cjs → index-phHwkniW.cjs} +2 -2
  391. package/dist/chunks/{index-CgkN1xho.cjs.map → index-phHwkniW.cjs.map} +1 -1
  392. package/dist/chunks/legacy-Bk0qQxIg.cjs +8 -0
  393. package/dist/chunks/legacy-Bk0qQxIg.cjs.map +1 -0
  394. package/dist/chunks/legacy-DV3mGZdh.mjs +9 -0
  395. package/dist/chunks/legacy-DV3mGZdh.mjs.map +1 -0
  396. package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs → referencePickerModal-B69WouiU.mjs} +6 -6
  397. package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs.map → referencePickerModal-B69WouiU.mjs.map} +1 -1
  398. package/dist/chunks/{referencePickerModal-hGj81_Th.cjs → referencePickerModal-BGYbZYrX.cjs} +6 -6
  399. package/dist/chunks/{referencePickerModal-hGj81_Th.cjs.map → referencePickerModal-BGYbZYrX.cjs.map} +1 -1
  400. package/dist/index.cjs +55 -55
  401. package/dist/index.mjs +57 -57
  402. package/dist/utils/legacy.d.ts +1 -0
  403. package/dist/vendor.LICENSE.txt +4 -8
  404. package/package.json +15 -15
  405. package/dist/assets/NcAppSettingsDialog-N2RJYgHo.css +0 -103
  406. package/dist/assets/NcInputConfirmCancel-CkhRZCfD.css +0 -39
  407. package/dist/chunks/NcActionButton-1gSJfFUC.mjs.map +0 -1
  408. package/dist/chunks/NcActionButton-C5Dqge0c.cjs.map +0 -1
  409. package/dist/chunks/NcActionButtonGroup-CpZDTAQo.cjs.map +0 -1
  410. package/dist/chunks/NcActionButtonGroup-eZxqibUd.mjs.map +0 -1
  411. package/dist/chunks/NcActionInput-UPwE2Dky.mjs.map +0 -1
  412. package/dist/chunks/NcActionInput-eAmBylEO.cjs.map +0 -1
  413. package/dist/chunks/NcActionTextEditable-CIsAP-pp.mjs.map +0 -1
  414. package/dist/chunks/NcActionTextEditable-RFLtWxrl.cjs.map +0 -1
  415. package/dist/chunks/NcActions-BSDvtMJD.cjs.map +0 -1
  416. package/dist/chunks/NcActions-BcLis_nr.mjs.map +0 -1
  417. package/dist/chunks/NcAppNavigation-BfzJA6cb.mjs.map +0 -1
  418. package/dist/chunks/NcAppNavigation-D2Ds_2Dm.cjs.map +0 -1
  419. package/dist/chunks/NcAppNavigationItem-D30ztZfZ.mjs.map +0 -1
  420. package/dist/chunks/NcAppNavigationItem-Dc5Vdhb1.cjs.map +0 -1
  421. package/dist/chunks/NcAppSettingsDialog-Ckf6dRRJ.cjs.map +0 -1
  422. package/dist/chunks/NcAppSettingsDialog-vBeCGFqk.mjs.map +0 -1
  423. package/dist/chunks/NcAppSidebar-CPHVBBe0.cjs.map +0 -1
  424. package/dist/chunks/NcAppSidebar-Cx0PlofZ.mjs.map +0 -1
  425. package/dist/chunks/NcButton-BaZAY-tN.mjs.map +0 -1
  426. package/dist/chunks/NcButton-Dszi1Apb.cjs.map +0 -1
  427. package/dist/chunks/NcInputConfirmCancel-BvYpvopv.mjs.map +0 -1
  428. package/dist/chunks/NcInputConfirmCancel-Ckda9G9Z.cjs.map +0 -1
  429. package/dist/chunks/NcPasswordField-DNuolayr.cjs.map +0 -1
  430. package/dist/chunks/NcPasswordField-lE4m20vf.mjs.map +0 -1
  431. package/dist/chunks/NcRichContenteditable-Bh-mMIQz.cjs.map +0 -1
  432. package/dist/chunks/NcRichContenteditable-SA1zbfkk.mjs.map +0 -1
  433. package/dist/chunks/NcRichText-B1Fyj7k8.cjs.map +0 -1
  434. package/dist/chunks/NcRichText-rNfwY_Oc.mjs.map +0 -1
  435. package/dist/chunks/autolink-BPlRHRHR.cjs.map +0 -1
  436. package/dist/chunks/autolink-D2pIbi92.mjs.map +0 -1
  437. package/dist/chunks/emoji-BgZdRy3v.mjs.map +0 -1
  438. package/dist/chunks/emoji-CEwczMT5.cjs.map +0 -1
  439. package/dist/chunks/legacy-KBXhWdRy.cjs +0 -5
  440. package/dist/chunks/legacy-KBXhWdRy.cjs.map +0 -1
  441. package/dist/chunks/legacy-MK4GvP26.mjs +0 -6
  442. package/dist/chunks/legacy-MK4GvP26.mjs.map +0 -1
@@ -1,29 +1,29 @@
1
- import '../assets/NcRichText-CAhzDSty.css';
1
+ import '../assets/NcRichText-Cp_5tfBy.css';
2
+ import { toString } from "mdast-util-to-string";
2
3
  import rehypeExternalLinks from "rehype-external-links";
3
4
  import rehype2react from "rehype-react";
4
5
  import breaks from "remark-breaks";
5
6
  import remarkParse from "remark-parse";
6
7
  import remark2rehype from "remark-rehype";
7
- import remarkStringify from "remark-stringify";
8
8
  import remarkUnlinkProtocols from "remark-unlink-protocols";
9
9
  import { unified } from "unified";
10
10
  import { defineComponent, ref } from "vue";
11
11
  import { RouterLink } from "vue-router";
12
- import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-DJmw98x9.mjs";
12
+ import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-D4IV4zWy.mjs";
13
13
  import { getCurrentUser } from "@nextcloud/auth";
14
14
  import axios from "@nextcloud/axios";
15
15
  import { generateOcsUrl } from "@nextcloud/router";
16
16
  import { getSharingToken } from "@nextcloud/sharing/public";
17
- import { f as NcReferenceWidget } from "./referencePickerModal-DD_GM6xV.mjs";
17
+ import { f as NcReferenceWidget } from "./referencePickerModal-B69WouiU.mjs";
18
18
  import { l as logger } from "./logger-D3RVzcfQ.mjs";
19
- import { U as URL_PATTERN, p as parseUrl, r as remarkAutolink, g as getRoute } from "./autolink-D2pIbi92.mjs";
19
+ import { U as URL_PATTERN, p as parseUrl, r as remarkAutolink, g as getRoute, N as NcRichTextExternalLink } from "./autolink-CeB9uxD9.mjs";
20
20
  import { n as normalizeComponent } from "./_plugin-vue2_normalizer-DU4iP6Vu.mjs";
21
- import { N as NcButton } from "./NcButton-BaZAY-tN.mjs";
21
+ import { N as NcButton } from "./NcButton-CCWEL9Ci.mjs";
22
22
  import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-Bui9PhAS.mjs";
23
23
  import { u as useCopy } from "./useCopy-DDDe5RYH.mjs";
24
24
  import { G as GenRandomId } from "./GenRandomId-F5ebeBB_.mjs";
25
25
  import { u } from "unist-builder";
26
- import { visit, EXIT as EXIT$1, SKIP as SKIP$1 } from "unist-util-visit";
26
+ import { visitParents, EXIT, SKIP } from "unist-util-visit-parents";
27
27
  const _sfc_main$2 = {
28
28
  name: "NcReferenceList",
29
29
  components: {
@@ -228,7 +228,14 @@ const convert = (
228
228
  return castFactory(test);
229
229
  }
230
230
  if (typeof test === "object") {
231
- return Array.isArray(test) ? anyFactory(test) : propsFactory(test);
231
+ return Array.isArray(test) ? anyFactory(test) : (
232
+ // Cast because `ReadonlyArray` goes into the above but `isArray`
233
+ // narrows to `Array`.
234
+ propertiesFactory(
235
+ /** @type {Props} */
236
+ test
237
+ )
238
+ );
232
239
  }
233
240
  if (typeof test === "string") {
234
241
  return typeFactory(test);
@@ -251,17 +258,17 @@ function anyFactory(tests) {
251
258
  return false;
252
259
  }
253
260
  }
254
- function propsFactory(check) {
261
+ function propertiesFactory(check) {
255
262
  const checkAsRecord = (
256
263
  /** @type {Record<string, unknown>} */
257
264
  check
258
265
  );
259
- return castFactory(all2);
260
- function all2(node2) {
266
+ return castFactory(all);
267
+ function all(node) {
261
268
  const nodeAsRecord = (
262
269
  /** @type {Record<string, unknown>} */
263
270
  /** @type {unknown} */
264
- node2
271
+ node
265
272
  );
266
273
  let key;
267
274
  for (key in check) {
@@ -272,8 +279,8 @@ function propsFactory(check) {
272
279
  }
273
280
  function typeFactory(check) {
274
281
  return castFactory(type);
275
- function type(node2) {
276
- return node2 && node2.type === check;
282
+ function type(node) {
283
+ return node && node.type === check;
277
284
  }
278
285
  }
279
286
  function castFactory(testFunction) {
@@ -295,81 +302,6 @@ function ok() {
295
302
  function looksLikeANode(value) {
296
303
  return value !== null && typeof value === "object" && "type" in value;
297
304
  }
298
- function color(d) {
299
- return d;
300
- }
301
- const empty = [];
302
- const CONTINUE = true;
303
- const EXIT = false;
304
- const SKIP = "skip";
305
- function visitParents(tree, test, visitor, reverse) {
306
- let check;
307
- {
308
- check = test;
309
- }
310
- const is = convert(check);
311
- const step = 1;
312
- factory(tree, void 0, [])();
313
- function factory(node2, index, parents) {
314
- const value = (
315
- /** @type {Record<string, unknown>} */
316
- node2 && typeof node2 === "object" ? node2 : {}
317
- );
318
- if (typeof value.type === "string") {
319
- const name = (
320
- // `hast`
321
- typeof value.tagName === "string" ? value.tagName : (
322
- // `xast`
323
- typeof value.name === "string" ? value.name : void 0
324
- )
325
- );
326
- Object.defineProperty(visit2, "name", {
327
- value: "node (" + color(node2.type + (name ? "<" + name + ">" : "")) + ")"
328
- });
329
- }
330
- return visit2;
331
- function visit2() {
332
- let result = empty;
333
- let subresult;
334
- let offset;
335
- let grandparents;
336
- if (is(node2, index, parents[parents.length - 1] || void 0)) {
337
- result = toResult(visitor(node2, parents));
338
- if (result[0] === EXIT) {
339
- return result;
340
- }
341
- }
342
- if ("children" in node2 && node2.children) {
343
- const nodeAsParent = (
344
- /** @type {UnistParent} */
345
- node2
346
- );
347
- if (nodeAsParent.children && result[0] !== SKIP) {
348
- offset = -1 + step;
349
- grandparents = parents.concat(nodeAsParent);
350
- while (offset > -1 && offset < nodeAsParent.children.length) {
351
- const child = nodeAsParent.children[offset];
352
- subresult = factory(child, offset, grandparents)();
353
- if (subresult[0] === EXIT) {
354
- return subresult;
355
- }
356
- offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
357
- }
358
- }
359
- }
360
- return result;
361
- }
362
- }
363
- }
364
- function toResult(value) {
365
- if (Array.isArray(value)) {
366
- return value;
367
- }
368
- if (typeof value === "number") {
369
- return [CONTINUE, value];
370
- }
371
- return value === null || value === void 0 ? empty : [value];
372
- }
373
305
  function findAndReplace(tree, list2, options) {
374
306
  const settings = options || {};
375
307
  const ignored = convert(settings.ignore || []);
@@ -378,7 +310,7 @@ function findAndReplace(tree, list2, options) {
378
310
  while (++pairIndex < pairs.length) {
379
311
  visitParents(tree, "text", visitor);
380
312
  }
381
- function visitor(node2, parents) {
313
+ function visitor(node, parents) {
382
314
  let index = -1;
383
315
  let grandparent;
384
316
  while (++index < parents.length) {
@@ -394,26 +326,26 @@ function findAndReplace(tree, list2, options) {
394
326
  grandparent = parent;
395
327
  }
396
328
  if (grandparent) {
397
- return handler(node2, parents);
329
+ return handler(node, parents);
398
330
  }
399
331
  }
400
- function handler(node2, parents) {
332
+ function handler(node, parents) {
401
333
  const parent = parents[parents.length - 1];
402
334
  const find = pairs[pairIndex][0];
403
335
  const replace2 = pairs[pairIndex][1];
404
336
  let start = 0;
405
337
  const siblings = parent.children;
406
- const index = siblings.indexOf(node2);
338
+ const index = siblings.indexOf(node);
407
339
  let change = false;
408
340
  let nodes = [];
409
341
  find.lastIndex = 0;
410
- let match = find.exec(node2.value);
342
+ let match = find.exec(node.value);
411
343
  while (match) {
412
344
  const position = match.index;
413
345
  const matchObject = {
414
346
  index: match.index,
415
347
  input: match.input,
416
- stack: [...parents, node2]
348
+ stack: [...parents, node]
417
349
  };
418
350
  let value = replace2(...match, matchObject);
419
351
  if (typeof value === "string") {
@@ -425,7 +357,7 @@ function findAndReplace(tree, list2, options) {
425
357
  if (start !== position) {
426
358
  nodes.push({
427
359
  type: "text",
428
- value: node2.value.slice(start, position)
360
+ value: node.value.slice(start, position)
429
361
  });
430
362
  }
431
363
  if (Array.isArray(value)) {
@@ -439,15 +371,15 @@ function findAndReplace(tree, list2, options) {
439
371
  if (!find.global) {
440
372
  break;
441
373
  }
442
- match = find.exec(node2.value);
374
+ match = find.exec(node.value);
443
375
  }
444
376
  if (change) {
445
- if (start < node2.value.length) {
446
- nodes.push({ type: "text", value: node2.value.slice(start) });
377
+ if (start < node.value.length) {
378
+ nodes.push({ type: "text", value: node.value.slice(start) });
447
379
  }
448
380
  parent.children.splice(index, 1, ...nodes);
449
381
  } else {
450
- nodes = [node2];
382
+ nodes = [node];
451
383
  }
452
384
  return index + nodes.length;
453
385
  }
@@ -530,9 +462,9 @@ function exitLiteralAutolinkHttp(token) {
530
462
  }
531
463
  function exitLiteralAutolinkWww(token) {
532
464
  this.config.exit.data.call(this, token);
533
- const node2 = this.stack[this.stack.length - 1];
534
- ok$1(node2.type === "link");
535
- node2.url = "http://" + this.sliceSerialize(token);
465
+ const node = this.stack[this.stack.length - 1];
466
+ ok$1(node.type === "link");
467
+ node.url = "http://" + this.sliceSerialize(token);
536
468
  }
537
469
  function exitLiteralAutolinkEmail(token) {
538
470
  this.config.exit.autolinkEmail.call(this, token);
@@ -658,10 +590,10 @@ function enterFootnoteDefinitionLabelString() {
658
590
  }
659
591
  function exitFootnoteDefinitionLabelString(token) {
660
592
  const label = this.resume();
661
- const node2 = this.stack[this.stack.length - 1];
662
- ok$1(node2.type === "footnoteDefinition");
663
- node2.label = label;
664
- node2.identifier = normalizeIdentifier(
593
+ const node = this.stack[this.stack.length - 1];
594
+ ok$1(node.type === "footnoteDefinition");
595
+ node.label = label;
596
+ node.identifier = normalizeIdentifier(
665
597
  this.sliceSerialize(token)
666
598
  ).toLowerCase();
667
599
  }
@@ -676,23 +608,23 @@ function enterFootnoteCallString() {
676
608
  }
677
609
  function exitFootnoteCallString(token) {
678
610
  const label = this.resume();
679
- const node2 = this.stack[this.stack.length - 1];
680
- ok$1(node2.type === "footnoteReference");
681
- node2.label = label;
682
- node2.identifier = normalizeIdentifier(
611
+ const node = this.stack[this.stack.length - 1];
612
+ ok$1(node.type === "footnoteReference");
613
+ node.label = label;
614
+ node.identifier = normalizeIdentifier(
683
615
  this.sliceSerialize(token)
684
616
  ).toLowerCase();
685
617
  }
686
618
  function exitFootnoteCall(token) {
687
619
  this.exit(token);
688
620
  }
689
- function footnoteReference(node2, _, state, info) {
621
+ function footnoteReference(node, _, state, info) {
690
622
  const tracker = state.createTracker(info);
691
623
  let value = tracker.move("[^");
692
624
  const exit2 = state.enter("footnoteReference");
693
625
  const subexit = state.enter("reference");
694
626
  value += tracker.move(
695
- state.safe(state.associationId(node2), {
627
+ state.safe(state.associationId(node), {
696
628
  ...tracker.current(),
697
629
  before: value,
698
630
  after: "]"
@@ -706,13 +638,13 @@ function footnoteReference(node2, _, state, info) {
706
638
  function footnoteReferencePeek() {
707
639
  return "[";
708
640
  }
709
- function footnoteDefinition(node2, _, state, info) {
641
+ function footnoteDefinition(node, _, state, info) {
710
642
  const tracker = state.createTracker(info);
711
643
  let value = tracker.move("[^");
712
644
  const exit2 = state.enter("footnoteDefinition");
713
645
  const subexit = state.enter("label");
714
646
  value += tracker.move(
715
- state.safe(state.associationId(node2), {
647
+ state.safe(state.associationId(node), {
716
648
  ...tracker.current(),
717
649
  before: value,
718
650
  after: "]"
@@ -720,11 +652,11 @@ function footnoteDefinition(node2, _, state, info) {
720
652
  );
721
653
  subexit();
722
654
  value += tracker.move(
723
- "]:" + (node2.children && node2.children.length > 0 ? " " : "")
655
+ "]:" + (node.children && node.children.length > 0 ? " " : "")
724
656
  );
725
657
  tracker.shift(4);
726
658
  value += tracker.move(
727
- state.indentLines(state.containerFlow(node2, tracker.current()), map$2)
659
+ state.indentLines(state.containerFlow(node, tracker.current()), map$2)
728
660
  );
729
661
  exit2();
730
662
  return value;
@@ -769,11 +701,11 @@ function enterStrikethrough(token) {
769
701
  function exitStrikethrough(token) {
770
702
  this.exit(token);
771
703
  }
772
- function handleDelete(node2, _, state, info) {
704
+ function handleDelete(node, _, state, info) {
773
705
  const tracker = state.createTracker(info);
774
706
  const exit2 = state.enter("strikethrough");
775
707
  let value = tracker.move("~~");
776
- value += state.containerPhrasing(node2, {
708
+ value += state.containerPhrasing(node, {
777
709
  ...tracker.current(),
778
710
  before: value,
779
711
  after: "~"
@@ -923,13 +855,13 @@ function toAlignment(value) {
923
855
  const code2 = typeof value === "string" ? value.codePointAt(0) : 0;
924
856
  return code2 === 67 || code2 === 99 ? 99 : code2 === 76 || code2 === 108 ? 108 : code2 === 82 || code2 === 114 ? 114 : 0;
925
857
  }
926
- function blockquote(node2, _, state, info) {
858
+ function blockquote(node, _, state, info) {
927
859
  const exit2 = state.enter("blockquote");
928
860
  const tracker = state.createTracker(info);
929
861
  tracker.move("> ");
930
862
  tracker.shift(2);
931
863
  const value = state.indentLines(
932
- state.containerFlow(node2, tracker.current()),
864
+ state.containerFlow(node, tracker.current()),
933
865
  map$1
934
866
  );
935
867
  exit2();
@@ -987,12 +919,12 @@ function longestStreak(value, substring) {
987
919
  }
988
920
  return max;
989
921
  }
990
- function formatCodeAsIndented(node2, state) {
922
+ function formatCodeAsIndented(node, state) {
991
923
  return Boolean(
992
- state.options.fences === false && node2.value && // If there’s no info…
993
- !node2.lang && // And there’s a non-whitespace character…
994
- /[^ \r\n]/.test(node2.value) && // And the value doesn’t start or end in a blank…
995
- !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node2.value)
924
+ state.options.fences === false && node.value && // If there’s no info…
925
+ !node.lang && // And there’s a non-whitespace character…
926
+ /[^ \r\n]/.test(node.value) && // And the value doesn’t start or end in a blank…
927
+ !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value)
996
928
  );
997
929
  }
998
930
  function checkFence(state) {
@@ -1004,11 +936,11 @@ function checkFence(state) {
1004
936
  }
1005
937
  return marker;
1006
938
  }
1007
- function code$1(node2, _, state, info) {
939
+ function code$1(node, _, state, info) {
1008
940
  const marker = checkFence(state);
1009
- const raw = node2.value || "";
941
+ const raw = node.value || "";
1010
942
  const suffix = marker === "`" ? "GraveAccent" : "Tilde";
1011
- if (formatCodeAsIndented(node2, state)) {
943
+ if (formatCodeAsIndented(node, state)) {
1012
944
  const exit3 = state.enter("codeIndented");
1013
945
  const value2 = state.indentLines(raw, map);
1014
946
  exit3();
@@ -1018,10 +950,10 @@ function code$1(node2, _, state, info) {
1018
950
  const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
1019
951
  const exit2 = state.enter("codeFenced");
1020
952
  let value = tracker.move(sequence);
1021
- if (node2.lang) {
953
+ if (node.lang) {
1022
954
  const subexit = state.enter(`codeFencedLang${suffix}`);
1023
955
  value += tracker.move(
1024
- state.safe(node2.lang, {
956
+ state.safe(node.lang, {
1025
957
  before: value,
1026
958
  after: " ",
1027
959
  encode: ["`"],
@@ -1030,11 +962,11 @@ function code$1(node2, _, state, info) {
1030
962
  );
1031
963
  subexit();
1032
964
  }
1033
- if (node2.lang && node2.meta) {
965
+ if (node.lang && node.meta) {
1034
966
  const subexit = state.enter(`codeFencedMeta${suffix}`);
1035
967
  value += tracker.move(" ");
1036
968
  value += tracker.move(
1037
- state.safe(node2.meta, {
969
+ state.safe(node.meta, {
1038
970
  before: value,
1039
971
  after: "\n",
1040
972
  encode: ["`"],
@@ -1063,7 +995,7 @@ function checkQuote(state) {
1063
995
  }
1064
996
  return marker;
1065
997
  }
1066
- function definition(node2, _, state, info) {
998
+ function definition(node, _, state, info) {
1067
999
  const quote = checkQuote(state);
1068
1000
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1069
1001
  const exit2 = state.enter("definition");
@@ -1071,7 +1003,7 @@ function definition(node2, _, state, info) {
1071
1003
  const tracker = state.createTracker(info);
1072
1004
  let value = tracker.move("[");
1073
1005
  value += tracker.move(
1074
- state.safe(state.associationId(node2), {
1006
+ state.safe(state.associationId(node), {
1075
1007
  before: value,
1076
1008
  after: "]",
1077
1009
  ...tracker.current()
@@ -1081,31 +1013,31 @@ function definition(node2, _, state, info) {
1081
1013
  subexit();
1082
1014
  if (
1083
1015
  // If there’s no url, or…
1084
- !node2.url || // If there are control characters or whitespace.
1085
- /[\0- \u007F]/.test(node2.url)
1016
+ !node.url || // If there are control characters or whitespace.
1017
+ /[\0- \u007F]/.test(node.url)
1086
1018
  ) {
1087
1019
  subexit = state.enter("destinationLiteral");
1088
1020
  value += tracker.move("<");
1089
1021
  value += tracker.move(
1090
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1022
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1091
1023
  );
1092
1024
  value += tracker.move(">");
1093
1025
  } else {
1094
1026
  subexit = state.enter("destinationRaw");
1095
1027
  value += tracker.move(
1096
- state.safe(node2.url, {
1028
+ state.safe(node.url, {
1097
1029
  before: value,
1098
- after: node2.title ? " " : "\n",
1030
+ after: node.title ? " " : "\n",
1099
1031
  ...tracker.current()
1100
1032
  })
1101
1033
  );
1102
1034
  }
1103
1035
  subexit();
1104
- if (node2.title) {
1036
+ if (node.title) {
1105
1037
  subexit = state.enter(`title${suffix}`);
1106
1038
  value += tracker.move(" " + quote);
1107
1039
  value += tracker.move(
1108
- state.safe(node2.title, {
1040
+ state.safe(node.title, {
1109
1041
  before: value,
1110
1042
  after: quote,
1111
1043
  ...tracker.current()
@@ -1126,80 +1058,134 @@ function checkEmphasis(state) {
1126
1058
  }
1127
1059
  return marker;
1128
1060
  }
1061
+ function encodeCharacterReference(code2) {
1062
+ return "&#x" + code2.toString(16).toUpperCase() + ";";
1063
+ }
1064
+ function classifyCharacter(code2) {
1065
+ if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
1066
+ return 1;
1067
+ }
1068
+ if (unicodePunctuation(code2)) {
1069
+ return 2;
1070
+ }
1071
+ }
1072
+ function encodeInfo(outside, inside, marker) {
1073
+ const outsideKind = classifyCharacter(outside);
1074
+ const insideKind = classifyCharacter(inside);
1075
+ if (outsideKind === void 0) {
1076
+ return insideKind === void 0 ? (
1077
+ // Letter inside:
1078
+ // we have to encode *both* letters for `_` as it is looser.
1079
+ // it already forms for `*` (and GFMs `~`).
1080
+ marker === "_" ? { inside: true, outside: true } : { inside: false, outside: false }
1081
+ ) : insideKind === 1 ? (
1082
+ // Whitespace inside: encode both (letter, whitespace).
1083
+ { inside: true, outside: true }
1084
+ ) : (
1085
+ // Punctuation inside: encode outer (letter)
1086
+ { inside: false, outside: true }
1087
+ );
1088
+ }
1089
+ if (outsideKind === 1) {
1090
+ return insideKind === void 0 ? (
1091
+ // Letter inside: already forms.
1092
+ { inside: false, outside: false }
1093
+ ) : insideKind === 1 ? (
1094
+ // Whitespace inside: encode both (whitespace).
1095
+ { inside: true, outside: true }
1096
+ ) : (
1097
+ // Punctuation inside: already forms.
1098
+ { inside: false, outside: false }
1099
+ );
1100
+ }
1101
+ return insideKind === void 0 ? (
1102
+ // Letter inside: already forms.
1103
+ { inside: false, outside: false }
1104
+ ) : insideKind === 1 ? (
1105
+ // Whitespace inside: encode inner (whitespace).
1106
+ { inside: true, outside: false }
1107
+ ) : (
1108
+ // Punctuation inside: already forms.
1109
+ { inside: false, outside: false }
1110
+ );
1111
+ }
1129
1112
  emphasis.peek = emphasisPeek;
1130
- function emphasis(node2, _, state, info) {
1113
+ function emphasis(node, _, state, info) {
1131
1114
  const marker = checkEmphasis(state);
1132
1115
  const exit2 = state.enter("emphasis");
1133
1116
  const tracker = state.createTracker(info);
1134
- let value = tracker.move(marker);
1135
- value += tracker.move(
1136
- state.containerPhrasing(node2, {
1137
- before: value,
1117
+ const before = tracker.move(marker);
1118
+ let between = tracker.move(
1119
+ state.containerPhrasing(node, {
1138
1120
  after: marker,
1121
+ before,
1139
1122
  ...tracker.current()
1140
1123
  })
1141
1124
  );
1142
- value += tracker.move(marker);
1125
+ const betweenHead = between.charCodeAt(0);
1126
+ const open = encodeInfo(
1127
+ info.before.charCodeAt(info.before.length - 1),
1128
+ betweenHead,
1129
+ marker
1130
+ );
1131
+ if (open.inside) {
1132
+ between = encodeCharacterReference(betweenHead) + between.slice(1);
1133
+ }
1134
+ const betweenTail = between.charCodeAt(between.length - 1);
1135
+ const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
1136
+ if (close.inside) {
1137
+ between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
1138
+ }
1139
+ const after = tracker.move(marker);
1143
1140
  exit2();
1144
- return value;
1141
+ state.attentionEncodeSurroundingInfo = {
1142
+ after: close.outside,
1143
+ before: open.outside
1144
+ };
1145
+ return before + between + after;
1145
1146
  }
1146
1147
  function emphasisPeek(_, _1, state) {
1147
1148
  return state.options.emphasis || "*";
1148
1149
  }
1149
- const emptyOptions$1 = {};
1150
- function toString(value, options) {
1151
- const settings = emptyOptions$1;
1152
- const includeImageAlt = typeof settings.includeImageAlt === "boolean" ? settings.includeImageAlt : true;
1153
- const includeHtml = typeof settings.includeHtml === "boolean" ? settings.includeHtml : true;
1154
- return one(value, includeImageAlt, includeHtml);
1155
- }
1156
- function one(value, includeImageAlt, includeHtml) {
1157
- if (node(value)) {
1158
- if ("value" in value) {
1159
- return value.type === "html" && !includeHtml ? "" : value.value;
1160
- }
1161
- if (includeImageAlt && "alt" in value && value.alt) {
1162
- return value.alt;
1163
- }
1164
- if ("children" in value) {
1165
- return all(value.children, includeImageAlt, includeHtml);
1166
- }
1167
- }
1168
- if (Array.isArray(value)) {
1169
- return all(value, includeImageAlt, includeHtml);
1150
+ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
1151
+ let reverse;
1152
+ let test;
1153
+ let visitor;
1154
+ if (typeof testOrVisitor === "function" && typeof visitorOrReverse !== "function") {
1155
+ test = void 0;
1156
+ visitor = testOrVisitor;
1157
+ reverse = visitorOrReverse;
1158
+ } else {
1159
+ test = testOrVisitor;
1160
+ visitor = visitorOrReverse;
1161
+ reverse = maybeReverse;
1170
1162
  }
1171
- return "";
1172
- }
1173
- function all(values, includeImageAlt, includeHtml) {
1174
- const result = [];
1175
- let index = -1;
1176
- while (++index < values.length) {
1177
- result[index] = one(values[index], includeImageAlt, includeHtml);
1163
+ visitParents(tree, test, overload, reverse);
1164
+ function overload(node, parents) {
1165
+ const parent = parents[parents.length - 1];
1166
+ const index = parent ? parent.children.indexOf(node) : void 0;
1167
+ return visitor(node, index, parent);
1178
1168
  }
1179
- return result.join("");
1180
- }
1181
- function node(value) {
1182
- return Boolean(value && typeof value === "object");
1183
1169
  }
1184
- function formatHeadingAsSetext(node2, state) {
1170
+ function formatHeadingAsSetext(node, state) {
1185
1171
  let literalWithBreak = false;
1186
- visit(node2, function(node3) {
1187
- if ("value" in node3 && /\r?\n|\r/.test(node3.value) || node3.type === "break") {
1172
+ visit(node, function(node2) {
1173
+ if ("value" in node2 && /\r?\n|\r/.test(node2.value) || node2.type === "break") {
1188
1174
  literalWithBreak = true;
1189
- return EXIT$1;
1175
+ return EXIT;
1190
1176
  }
1191
1177
  });
1192
1178
  return Boolean(
1193
- (!node2.depth || node2.depth < 3) && toString(node2) && (state.options.setext || literalWithBreak)
1179
+ (!node.depth || node.depth < 3) && toString(node) && (state.options.setext || literalWithBreak)
1194
1180
  );
1195
1181
  }
1196
- function heading(node2, _, state, info) {
1197
- const rank = Math.max(Math.min(6, node2.depth || 1), 1);
1182
+ function heading(node, _, state, info) {
1183
+ const rank = Math.max(Math.min(6, node.depth || 1), 1);
1198
1184
  const tracker = state.createTracker(info);
1199
- if (formatHeadingAsSetext(node2, state)) {
1185
+ if (formatHeadingAsSetext(node, state)) {
1200
1186
  const exit3 = state.enter("headingSetext");
1201
1187
  const subexit2 = state.enter("phrasing");
1202
- const value2 = state.containerPhrasing(node2, {
1188
+ const value2 = state.containerPhrasing(node, {
1203
1189
  ...tracker.current(),
1204
1190
  before: "\n",
1205
1191
  after: "\n"
@@ -1217,13 +1203,13 @@ function heading(node2, _, state, info) {
1217
1203
  const exit2 = state.enter("headingAtx");
1218
1204
  const subexit = state.enter("phrasing");
1219
1205
  tracker.move(sequence + " ");
1220
- let value = state.containerPhrasing(node2, {
1206
+ let value = state.containerPhrasing(node, {
1221
1207
  before: "# ",
1222
1208
  after: "\n",
1223
1209
  ...tracker.current()
1224
1210
  });
1225
1211
  if (/^[\t ]/.test(value)) {
1226
- value = "&#x" + value.charCodeAt(0).toString(16).toUpperCase() + ";" + value.slice(1);
1212
+ value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1);
1227
1213
  }
1228
1214
  value = value ? sequence + " " + value : sequence;
1229
1215
  if (state.options.closeAtx) {
@@ -1234,14 +1220,14 @@ function heading(node2, _, state, info) {
1234
1220
  return value;
1235
1221
  }
1236
1222
  html.peek = htmlPeek;
1237
- function html(node2) {
1238
- return node2.value || "";
1223
+ function html(node) {
1224
+ return node.value || "";
1239
1225
  }
1240
1226
  function htmlPeek() {
1241
1227
  return "<";
1242
1228
  }
1243
1229
  image.peek = imagePeek;
1244
- function image(node2, _, state, info) {
1230
+ function image(node, _, state, info) {
1245
1231
  const quote = checkQuote(state);
1246
1232
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1247
1233
  const exit2 = state.enter("image");
@@ -1249,37 +1235,37 @@ function image(node2, _, state, info) {
1249
1235
  const tracker = state.createTracker(info);
1250
1236
  let value = tracker.move("![");
1251
1237
  value += tracker.move(
1252
- state.safe(node2.alt, { before: value, after: "]", ...tracker.current() })
1238
+ state.safe(node.alt, { before: value, after: "]", ...tracker.current() })
1253
1239
  );
1254
1240
  value += tracker.move("](");
1255
1241
  subexit();
1256
1242
  if (
1257
1243
  // If there’s no url but there is a title…
1258
- !node2.url && node2.title || // If there are control characters or whitespace.
1259
- /[\0- \u007F]/.test(node2.url)
1244
+ !node.url && node.title || // If there are control characters or whitespace.
1245
+ /[\0- \u007F]/.test(node.url)
1260
1246
  ) {
1261
1247
  subexit = state.enter("destinationLiteral");
1262
1248
  value += tracker.move("<");
1263
1249
  value += tracker.move(
1264
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1250
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1265
1251
  );
1266
1252
  value += tracker.move(">");
1267
1253
  } else {
1268
1254
  subexit = state.enter("destinationRaw");
1269
1255
  value += tracker.move(
1270
- state.safe(node2.url, {
1256
+ state.safe(node.url, {
1271
1257
  before: value,
1272
- after: node2.title ? " " : ")",
1258
+ after: node.title ? " " : ")",
1273
1259
  ...tracker.current()
1274
1260
  })
1275
1261
  );
1276
1262
  }
1277
1263
  subexit();
1278
- if (node2.title) {
1264
+ if (node.title) {
1279
1265
  subexit = state.enter(`title${suffix}`);
1280
1266
  value += tracker.move(" " + quote);
1281
1267
  value += tracker.move(
1282
- state.safe(node2.title, {
1268
+ state.safe(node.title, {
1283
1269
  before: value,
1284
1270
  after: quote,
1285
1271
  ...tracker.current()
@@ -1296,13 +1282,13 @@ function imagePeek() {
1296
1282
  return "!";
1297
1283
  }
1298
1284
  imageReference.peek = imageReferencePeek;
1299
- function imageReference(node2, _, state, info) {
1300
- const type = node2.referenceType;
1285
+ function imageReference(node, _, state, info) {
1286
+ const type = node.referenceType;
1301
1287
  const exit2 = state.enter("imageReference");
1302
1288
  let subexit = state.enter("label");
1303
1289
  const tracker = state.createTracker(info);
1304
1290
  let value = tracker.move("![");
1305
- const alt = state.safe(node2.alt, {
1291
+ const alt = state.safe(node.alt, {
1306
1292
  before: value,
1307
1293
  after: "]",
1308
1294
  ...tracker.current()
@@ -1312,7 +1298,7 @@ function imageReference(node2, _, state, info) {
1312
1298
  const stack = state.stack;
1313
1299
  state.stack = [];
1314
1300
  subexit = state.enter("reference");
1315
- const reference = state.safe(state.associationId(node2), {
1301
+ const reference = state.safe(state.associationId(node), {
1316
1302
  before: value,
1317
1303
  after: "]",
1318
1304
  ...tracker.current()
@@ -1333,8 +1319,8 @@ function imageReferencePeek() {
1333
1319
  return "!";
1334
1320
  }
1335
1321
  inlineCode.peek = inlineCodePeek;
1336
- function inlineCode(node2, _, state) {
1337
- let value = node2.value || "";
1322
+ function inlineCode(node, _, state) {
1323
+ let value = node.value || "";
1338
1324
  let sequence = "`";
1339
1325
  let index = -1;
1340
1326
  while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
@@ -1361,33 +1347,33 @@ function inlineCode(node2, _, state) {
1361
1347
  function inlineCodePeek() {
1362
1348
  return "`";
1363
1349
  }
1364
- function formatLinkAsAutolink(node2, state) {
1365
- const raw = toString(node2);
1350
+ function formatLinkAsAutolink(node, state) {
1351
+ const raw = toString(node);
1366
1352
  return Boolean(
1367
1353
  !state.options.resourceLink && // If there’s a url…
1368
- node2.url && // And there’s a no title…
1369
- !node2.title && // And the content of `node` is a single text node…
1370
- node2.children && node2.children.length === 1 && node2.children[0].type === "text" && // And if the url is the same as the content…
1371
- (raw === node2.url || "mailto:" + raw === node2.url) && // And that starts w/ a protocol…
1372
- /^[a-z][a-z+.-]+:/i.test(node2.url) && // And that doesn’t contain ASCII control codes (character escapes and
1354
+ node.url && // And there’s a no title…
1355
+ !node.title && // And the content of `node` is a single text node…
1356
+ node.children && node.children.length === 1 && node.children[0].type === "text" && // And if the url is the same as the content…
1357
+ (raw === node.url || "mailto:" + raw === node.url) && // And that starts w/ a protocol…
1358
+ /^[a-z][a-z+.-]+:/i.test(node.url) && // And that doesn’t contain ASCII control codes (character escapes and
1373
1359
  // references don’t work), space, or angle brackets…
1374
- !/[\0- <>\u007F]/.test(node2.url)
1360
+ !/[\0- <>\u007F]/.test(node.url)
1375
1361
  );
1376
1362
  }
1377
1363
  link.peek = linkPeek;
1378
- function link(node2, _, state, info) {
1364
+ function link(node, _, state, info) {
1379
1365
  const quote = checkQuote(state);
1380
1366
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1381
1367
  const tracker = state.createTracker(info);
1382
1368
  let exit2;
1383
1369
  let subexit;
1384
- if (formatLinkAsAutolink(node2, state)) {
1370
+ if (formatLinkAsAutolink(node, state)) {
1385
1371
  const stack = state.stack;
1386
1372
  state.stack = [];
1387
1373
  exit2 = state.enter("autolink");
1388
1374
  let value2 = tracker.move("<");
1389
1375
  value2 += tracker.move(
1390
- state.containerPhrasing(node2, {
1376
+ state.containerPhrasing(node, {
1391
1377
  before: value2,
1392
1378
  after: ">",
1393
1379
  ...tracker.current()
@@ -1402,7 +1388,7 @@ function link(node2, _, state, info) {
1402
1388
  subexit = state.enter("label");
1403
1389
  let value = tracker.move("[");
1404
1390
  value += tracker.move(
1405
- state.containerPhrasing(node2, {
1391
+ state.containerPhrasing(node, {
1406
1392
  before: value,
1407
1393
  after: "](",
1408
1394
  ...tracker.current()
@@ -1412,31 +1398,31 @@ function link(node2, _, state, info) {
1412
1398
  subexit();
1413
1399
  if (
1414
1400
  // If there’s no url but there is a title…
1415
- !node2.url && node2.title || // If there are control characters or whitespace.
1416
- /[\0- \u007F]/.test(node2.url)
1401
+ !node.url && node.title || // If there are control characters or whitespace.
1402
+ /[\0- \u007F]/.test(node.url)
1417
1403
  ) {
1418
1404
  subexit = state.enter("destinationLiteral");
1419
1405
  value += tracker.move("<");
1420
1406
  value += tracker.move(
1421
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1407
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1422
1408
  );
1423
1409
  value += tracker.move(">");
1424
1410
  } else {
1425
1411
  subexit = state.enter("destinationRaw");
1426
1412
  value += tracker.move(
1427
- state.safe(node2.url, {
1413
+ state.safe(node.url, {
1428
1414
  before: value,
1429
- after: node2.title ? " " : ")",
1415
+ after: node.title ? " " : ")",
1430
1416
  ...tracker.current()
1431
1417
  })
1432
1418
  );
1433
1419
  }
1434
1420
  subexit();
1435
- if (node2.title) {
1421
+ if (node.title) {
1436
1422
  subexit = state.enter(`title${suffix}`);
1437
1423
  value += tracker.move(" " + quote);
1438
1424
  value += tracker.move(
1439
- state.safe(node2.title, {
1425
+ state.safe(node.title, {
1440
1426
  before: value,
1441
1427
  after: quote,
1442
1428
  ...tracker.current()
@@ -1449,17 +1435,17 @@ function link(node2, _, state, info) {
1449
1435
  exit2();
1450
1436
  return value;
1451
1437
  }
1452
- function linkPeek(node2, _, state) {
1453
- return formatLinkAsAutolink(node2, state) ? "<" : "[";
1438
+ function linkPeek(node, _, state) {
1439
+ return formatLinkAsAutolink(node, state) ? "<" : "[";
1454
1440
  }
1455
1441
  linkReference.peek = linkReferencePeek;
1456
- function linkReference(node2, _, state, info) {
1457
- const type = node2.referenceType;
1442
+ function linkReference(node, _, state, info) {
1443
+ const type = node.referenceType;
1458
1444
  const exit2 = state.enter("linkReference");
1459
1445
  let subexit = state.enter("label");
1460
1446
  const tracker = state.createTracker(info);
1461
1447
  let value = tracker.move("[");
1462
- const text2 = state.containerPhrasing(node2, {
1448
+ const text2 = state.containerPhrasing(node, {
1463
1449
  before: value,
1464
1450
  after: "]",
1465
1451
  ...tracker.current()
@@ -1469,7 +1455,7 @@ function linkReference(node2, _, state, info) {
1469
1455
  const stack = state.stack;
1470
1456
  state.stack = [];
1471
1457
  subexit = state.enter("reference");
1472
- const reference = state.safe(state.associationId(node2), {
1458
+ const reference = state.safe(state.associationId(node), {
1473
1459
  before: value,
1474
1460
  after: "]",
1475
1461
  ...tracker.current()
@@ -1534,14 +1520,14 @@ function checkRule(state) {
1534
1520
  }
1535
1521
  return marker;
1536
1522
  }
1537
- function list(node2, parent, state, info) {
1523
+ function list(node, parent, state, info) {
1538
1524
  const exit2 = state.enter("list");
1539
1525
  const bulletCurrent = state.bulletCurrent;
1540
- let bullet = node2.ordered ? checkBulletOrdered(state) : checkBullet(state);
1541
- const bulletOther = node2.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1526
+ let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
1527
+ const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1542
1528
  let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
1543
- if (!node2.ordered) {
1544
- const firstListItem = node2.children ? node2.children[0] : void 0;
1529
+ if (!node.ordered) {
1530
+ const firstListItem = node.children ? node.children[0] : void 0;
1545
1531
  if (
1546
1532
  // Bullet could be used as a thematic break marker:
1547
1533
  (bullet === "*" || bullet === "-") && // Empty first list item:
@@ -1553,8 +1539,8 @@ function list(node2, parent, state, info) {
1553
1539
  }
1554
1540
  if (checkRule(state) === bullet && firstListItem) {
1555
1541
  let index = -1;
1556
- while (++index < node2.children.length) {
1557
- const item = node2.children[index];
1542
+ while (++index < node.children.length) {
1543
+ const item = node.children[index];
1558
1544
  if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
1559
1545
  useDifferentMarker = true;
1560
1546
  break;
@@ -1566,7 +1552,7 @@ function list(node2, parent, state, info) {
1566
1552
  bullet = bulletOther;
1567
1553
  }
1568
1554
  state.bulletCurrent = bullet;
1569
- const value = state.containerFlow(node2, info);
1555
+ const value = state.containerFlow(node, info);
1570
1556
  state.bulletLastUsed = bullet;
1571
1557
  state.bulletCurrent = bulletCurrent;
1572
1558
  exit2();
@@ -1581,14 +1567,14 @@ function checkListItemIndent(state) {
1581
1567
  }
1582
1568
  return style;
1583
1569
  }
1584
- function listItem(node2, parent, state, info) {
1570
+ function listItem(node, parent, state, info) {
1585
1571
  const listItemIndent = checkListItemIndent(state);
1586
1572
  let bullet = state.bulletCurrent || checkBullet(state);
1587
1573
  if (parent && parent.type === "list" && parent.ordered) {
1588
- bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node2)) + bullet;
1574
+ bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
1589
1575
  }
1590
1576
  let size = bullet.length + 1;
1591
- if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node2.spread)) {
1577
+ if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) {
1592
1578
  size = Math.ceil(size / 4) * 4;
1593
1579
  }
1594
1580
  const tracker = state.createTracker(info);
@@ -1596,7 +1582,7 @@ function listItem(node2, parent, state, info) {
1596
1582
  tracker.shift(size);
1597
1583
  const exit2 = state.enter("listItem");
1598
1584
  const value = state.indentLines(
1599
- state.containerFlow(node2, tracker.current()),
1585
+ state.containerFlow(node, tracker.current()),
1600
1586
  map2
1601
1587
  );
1602
1588
  exit2();
@@ -1608,10 +1594,10 @@ function listItem(node2, parent, state, info) {
1608
1594
  return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
1609
1595
  }
1610
1596
  }
1611
- function paragraph(node2, _, state, info) {
1597
+ function paragraph(node, _, state, info) {
1612
1598
  const exit2 = state.enter("paragraph");
1613
1599
  const subexit = state.enter("phrasing");
1614
- const value = state.containerPhrasing(node2, info);
1600
+ const value = state.containerPhrasing(node, info);
1615
1601
  subexit();
1616
1602
  exit2();
1617
1603
  return value;
@@ -1642,12 +1628,12 @@ const phrasing = (
1642
1628
  "textDirective"
1643
1629
  ])
1644
1630
  );
1645
- function root(node2, _, state, info) {
1646
- const hasPhrasing = node2.children.some(function(d) {
1631
+ function root(node, _, state, info) {
1632
+ const hasPhrasing = node.children.some(function(d) {
1647
1633
  return phrasing(d);
1648
1634
  });
1649
- const fn = hasPhrasing ? state.containerPhrasing : state.containerFlow;
1650
- return fn.call(state, node2, info);
1635
+ const container = hasPhrasing ? state.containerPhrasing : state.containerFlow;
1636
+ return container.call(state, node, info);
1651
1637
  }
1652
1638
  function checkStrong(state) {
1653
1639
  const marker = state.options.strong || "*";
@@ -1659,27 +1645,45 @@ function checkStrong(state) {
1659
1645
  return marker;
1660
1646
  }
1661
1647
  strong.peek = strongPeek;
1662
- function strong(node2, _, state, info) {
1648
+ function strong(node, _, state, info) {
1663
1649
  const marker = checkStrong(state);
1664
1650
  const exit2 = state.enter("strong");
1665
1651
  const tracker = state.createTracker(info);
1666
- let value = tracker.move(marker + marker);
1667
- value += tracker.move(
1668
- state.containerPhrasing(node2, {
1669
- before: value,
1652
+ const before = tracker.move(marker + marker);
1653
+ let between = tracker.move(
1654
+ state.containerPhrasing(node, {
1670
1655
  after: marker,
1656
+ before,
1671
1657
  ...tracker.current()
1672
1658
  })
1673
1659
  );
1674
- value += tracker.move(marker + marker);
1660
+ const betweenHead = between.charCodeAt(0);
1661
+ const open = encodeInfo(
1662
+ info.before.charCodeAt(info.before.length - 1),
1663
+ betweenHead,
1664
+ marker
1665
+ );
1666
+ if (open.inside) {
1667
+ between = encodeCharacterReference(betweenHead) + between.slice(1);
1668
+ }
1669
+ const betweenTail = between.charCodeAt(between.length - 1);
1670
+ const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
1671
+ if (close.inside) {
1672
+ between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
1673
+ }
1674
+ const after = tracker.move(marker + marker);
1675
1675
  exit2();
1676
- return value;
1676
+ state.attentionEncodeSurroundingInfo = {
1677
+ after: close.outside,
1678
+ before: open.outside
1679
+ };
1680
+ return before + between + after;
1677
1681
  }
1678
1682
  function strongPeek(_, _1, state) {
1679
1683
  return state.options.strong || "*";
1680
1684
  }
1681
- function text$1(node2, _, state, info) {
1682
- return state.safe(node2.value, info);
1685
+ function text$1(node, _, state, info) {
1686
+ return state.safe(node.value, info);
1683
1687
  }
1684
1688
  function checkRuleRepetition(state) {
1685
1689
  const repetition = state.options.ruleRepetition || 3;
@@ -1765,9 +1769,9 @@ function exitCodeText(token) {
1765
1769
  if (this.data.inTable) {
1766
1770
  value = value.replace(/\\([\\|])/g, replace);
1767
1771
  }
1768
- const node2 = this.stack[this.stack.length - 1];
1769
- ok$1(node2.type === "inlineCode");
1770
- node2.value = value;
1772
+ const node = this.stack[this.stack.length - 1];
1773
+ ok$1(node.type === "inlineCode");
1774
+ node.value = value;
1771
1775
  this.exit(token);
1772
1776
  }
1773
1777
  function replace($0, $1) {
@@ -1805,18 +1809,18 @@ function gfmTableToMarkdown(options) {
1805
1809
  tableRow: handleTableRow
1806
1810
  }
1807
1811
  };
1808
- function handleTable(node2, _, state, info) {
1809
- return serializeData(handleTableAsData(node2, state, info), node2.align);
1812
+ function handleTable(node, _, state, info) {
1813
+ return serializeData(handleTableAsData(node, state, info), node.align);
1810
1814
  }
1811
- function handleTableRow(node2, _, state, info) {
1812
- const row = handleTableRowAsData(node2, state, info);
1815
+ function handleTableRow(node, _, state, info) {
1816
+ const row = handleTableRowAsData(node, state, info);
1813
1817
  const value = serializeData([row]);
1814
1818
  return value.slice(0, value.indexOf("\n"));
1815
1819
  }
1816
- function handleTableCell(node2, _, state, info) {
1820
+ function handleTableCell(node, _, state, info) {
1817
1821
  const exit2 = state.enter("tableCell");
1818
1822
  const subexit = state.enter("phrasing");
1819
- const value = state.containerPhrasing(node2, {
1823
+ const value = state.containerPhrasing(node, {
1820
1824
  ...info,
1821
1825
  before: around,
1822
1826
  after: around
@@ -1836,8 +1840,8 @@ function gfmTableToMarkdown(options) {
1836
1840
  stringLength
1837
1841
  });
1838
1842
  }
1839
- function handleTableAsData(node2, state, info) {
1840
- const children = node2.children;
1843
+ function handleTableAsData(node, state, info) {
1844
+ const children = node.children;
1841
1845
  let index = -1;
1842
1846
  const result = [];
1843
1847
  const subexit = state.enter("table");
@@ -1847,19 +1851,19 @@ function gfmTableToMarkdown(options) {
1847
1851
  subexit();
1848
1852
  return result;
1849
1853
  }
1850
- function handleTableRowAsData(node2, state, info) {
1851
- const children = node2.children;
1854
+ function handleTableRowAsData(node, state, info) {
1855
+ const children = node.children;
1852
1856
  let index = -1;
1853
1857
  const result = [];
1854
1858
  const subexit = state.enter("tableRow");
1855
1859
  while (++index < children.length) {
1856
- result[index] = handleTableCell(children[index], node2, state, info);
1860
+ result[index] = handleTableCell(children[index], node, state, info);
1857
1861
  }
1858
1862
  subexit();
1859
1863
  return result;
1860
1864
  }
1861
- function inlineCodeWithTable(node2, parent, state) {
1862
- let value = handle.inlineCode(node2, parent, state);
1865
+ function inlineCodeWithTable(node, parent, state) {
1866
+ let value = handle.inlineCode(node, parent, state);
1863
1867
  if (state.stack.includes("tableCell")) {
1864
1868
  value = value.replace(/\|/g, "\\$&");
1865
1869
  }
@@ -1882,16 +1886,16 @@ function gfmTaskListItemToMarkdown() {
1882
1886
  };
1883
1887
  }
1884
1888
  function exitCheck(token) {
1885
- const node2 = this.stack[this.stack.length - 2];
1886
- ok$1(node2.type === "listItem");
1887
- node2.checked = token.type === "taskListCheckValueChecked";
1889
+ const node = this.stack[this.stack.length - 2];
1890
+ ok$1(node.type === "listItem");
1891
+ node.checked = token.type === "taskListCheckValueChecked";
1888
1892
  }
1889
1893
  function exitParagraphWithTaskListItem(token) {
1890
1894
  const parent = this.stack[this.stack.length - 2];
1891
1895
  if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
1892
- const node2 = this.stack[this.stack.length - 1];
1893
- ok$1(node2.type === "paragraph");
1894
- const head = node2.children[0];
1896
+ const node = this.stack[this.stack.length - 1];
1897
+ ok$1(node.type === "paragraph");
1898
+ const head = node.children[0];
1895
1899
  if (head && head.type === "text") {
1896
1900
  const siblings = parent.children;
1897
1901
  let index = -1;
@@ -1903,29 +1907,29 @@ function exitParagraphWithTaskListItem(token) {
1903
1907
  break;
1904
1908
  }
1905
1909
  }
1906
- if (firstParaghraph === node2) {
1910
+ if (firstParaghraph === node) {
1907
1911
  head.value = head.value.slice(1);
1908
1912
  if (head.value.length === 0) {
1909
- node2.children.shift();
1910
- } else if (node2.position && head.position && typeof head.position.start.offset === "number") {
1913
+ node.children.shift();
1914
+ } else if (node.position && head.position && typeof head.position.start.offset === "number") {
1911
1915
  head.position.start.column++;
1912
1916
  head.position.start.offset++;
1913
- node2.position.start = Object.assign({}, head.position.start);
1917
+ node.position.start = Object.assign({}, head.position.start);
1914
1918
  }
1915
1919
  }
1916
1920
  }
1917
1921
  }
1918
1922
  this.exit(token);
1919
1923
  }
1920
- function listItemWithTaskListItem(node2, parent, state, info) {
1921
- const head = node2.children[0];
1922
- const checkable = typeof node2.checked === "boolean" && head && head.type === "paragraph";
1923
- const checkbox = "[" + (node2.checked ? "x" : " ") + "] ";
1924
+ function listItemWithTaskListItem(node, parent, state, info) {
1925
+ const head = node.children[0];
1926
+ const checkable = typeof node.checked === "boolean" && head && head.type === "paragraph";
1927
+ const checkbox = "[" + (node.checked ? "x" : " ") + "] ";
1924
1928
  const tracker = state.createTracker(info);
1925
1929
  if (checkable) {
1926
1930
  tracker.move(checkbox);
1927
1931
  }
1928
- let value = handle.listItem(node2, parent, state, {
1932
+ let value = handle.listItem(node, parent, state, {
1929
1933
  ...info,
1930
1934
  ...tracker.current()
1931
1935
  });
@@ -1984,18 +1988,18 @@ function splice(list2, start, remove, items) {
1984
1988
  }
1985
1989
  const hasOwnProperty = {}.hasOwnProperty;
1986
1990
  function combineExtensions(extensions) {
1987
- const all2 = {};
1991
+ const all = {};
1988
1992
  let index = -1;
1989
1993
  while (++index < extensions.length) {
1990
- syntaxExtension(all2, extensions[index]);
1994
+ syntaxExtension(all, extensions[index]);
1991
1995
  }
1992
- return all2;
1996
+ return all;
1993
1997
  }
1994
- function syntaxExtension(all2, extension) {
1998
+ function syntaxExtension(all, extension) {
1995
1999
  let hook;
1996
2000
  for (hook in extension) {
1997
- const maybe = hasOwnProperty.call(all2, hook) ? all2[hook] : void 0;
1998
- const left = maybe || (all2[hook] = {});
2001
+ const maybe = hasOwnProperty.call(all, hook) ? all[hook] : void 0;
2002
+ const left = maybe || (all[hook] = {});
1999
2003
  const right = extension[hook];
2000
2004
  let code2;
2001
2005
  if (right) {
@@ -2364,14 +2368,6 @@ function previousUnbalanced(events) {
2364
2368
  }
2365
2369
  return result;
2366
2370
  }
2367
- function classifyCharacter(code2) {
2368
- if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
2369
- return 1;
2370
- }
2371
- if (unicodePunctuation(code2)) {
2372
- return 2;
2373
- }
2374
- }
2375
2371
  function resolveAll(constructs2, events, context) {
2376
2372
  const called = [];
2377
2373
  let index = -1;
@@ -3446,9 +3442,11 @@ var __component__$1 = /* @__PURE__ */ normalizeComponent(
3446
3442
  const NcRichTextCopyButton = __component__$1.exports;
3447
3443
  function remarkPlaceholder() {
3448
3444
  return function(ast) {
3449
- visit(ast, (node2) => node2.type === "text", visitor);
3450
- function visitor(node2, index, parent) {
3451
- const placeholders = node2.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3445
+ visitParents(ast, (node) => node.type === "text", visitor);
3446
+ function visitor(node, ancestors) {
3447
+ const parent = ancestors.at(-1);
3448
+ const index = parent.children.indexOf(node);
3449
+ const placeholders = node.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3452
3450
  const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
3453
3451
  if (!matches) {
3454
3452
  return u("text", entry);
@@ -3472,10 +3470,9 @@ function prepareTextNode({ h, context }, text2) {
3472
3470
  return entry;
3473
3471
  }
3474
3472
  const { component, props } = entry;
3475
- const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
3476
3473
  return h(component, {
3477
3474
  props,
3478
- class: componentClass
3475
+ class: "rich-text--component"
3479
3476
  });
3480
3477
  });
3481
3478
  }
@@ -3485,28 +3482,32 @@ function prepareTextNode({ h, context }, text2) {
3485
3482
  * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
3486
3483
  * SPDX-License-Identifier: AGPL-3.0-or-later
3487
3484
  */
3488
- function isCodeNode(node2) {
3489
- return ["code", "inlineCode"].includes(node2.type);
3485
+ function isCodeNode(node) {
3486
+ return ["code", "inlineCode"].includes(node.type);
3490
3487
  }
3491
3488
  const remarkStripCode = function() {
3492
3489
  return function(tree) {
3493
- visit(tree, isCodeNode, (node2, index, parent) => {
3490
+ visitParents(tree, isCodeNode, (node, ancestors) => {
3491
+ const parent = ancestors.at(-1);
3492
+ const index = parent.children.indexOf(node);
3494
3493
  parent.children.splice(index, 1, {
3495
- ...node2,
3494
+ ...node,
3496
3495
  value: ""
3497
3496
  });
3498
- return [SKIP$1, index + 1];
3497
+ return [SKIP, index + 1];
3499
3498
  });
3500
3499
  };
3501
3500
  };
3502
3501
  function remarkUnescape() {
3503
3502
  return function(tree) {
3504
- visit(tree, (node2) => ["text", "code", "inlineCode"].includes(node2.type), (node2, index, parent) => {
3503
+ visitParents(tree, (node) => ["text", "code", "inlineCode"].includes(node.type), (node, ancestors) => {
3504
+ const parent = ancestors.at(-1);
3505
+ const index = parent.children.indexOf(node);
3505
3506
  parent.children.splice(index, 1, {
3506
- ...node2,
3507
- value: node2.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3507
+ ...node,
3508
+ value: node.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3508
3509
  });
3509
- return [SKIP$1, index + 1];
3510
+ return [SKIP, index + 1];
3510
3511
  });
3511
3512
  };
3512
3513
  }
@@ -3623,8 +3624,8 @@ const _sfc_main = {
3623
3624
  useExtendedMarkdown: this.useExtendedMarkdown
3624
3625
  }).use(remarkUnescape).use(this.useExtendedMarkdown ? remarkGfm : void 0).use(breaks).use(remarkUnlinkProtocols, { except: LINK_PROTOCOLS }).use(remark2rehype, {
3625
3626
  handlers: {
3626
- component(toHast, node2) {
3627
- return toHast(node2, node2.component, { value: node2.value });
3627
+ component(toHast, node) {
3628
+ return toHast(node, node.component, { value: node.value });
3628
3629
  }
3629
3630
  }
3630
3631
  }).use(this.useExtendedMarkdown ? rehypeHighlight.value : void 0).use(remarkPlaceholder).use(rehypeExternalLinks, {
@@ -3687,6 +3688,15 @@ const _sfc_main = {
3687
3688
  }
3688
3689
  }, children);
3689
3690
  }
3691
+ const isAllowedScheme = /^(https?:\/\/|tel:|mailto:)/.test(attrs.attrs.href);
3692
+ if (isAllowedScheme) {
3693
+ attrs.attrs.href = attrs.attrs.href.trim();
3694
+ return h(NcRichTextExternalLink, attrs, children);
3695
+ } else {
3696
+ delete attrs.attrs.href;
3697
+ delete attrs.attrs.target;
3698
+ return h("span", attrs, children);
3699
+ }
3690
3700
  }
3691
3701
  return h(tag, attrs, children);
3692
3702
  }
@@ -3733,7 +3743,9 @@ const _sfc_main = {
3733
3743
  if (!this.useMarkdown && !this.useExtendedMarkdown) {
3734
3744
  return text2;
3735
3745
  }
3736
- return unified().use(remarkParse).use(remarkStripCode).use(remarkStringify).processSync(text2).value;
3746
+ const processor = unified();
3747
+ processor.compiler = (tree) => toString(tree);
3748
+ return processor.use(remarkParse).use(remarkStripCode).processSync(text2).value;
3737
3749
  }
3738
3750
  },
3739
3751
  render(h) {
@@ -3748,11 +3760,11 @@ var __component__ = /* @__PURE__ */ normalizeComponent(
3748
3760
  _sfc_staticRenderFns,
3749
3761
  false,
3750
3762
  null,
3751
- "1b584119"
3763
+ "177dd7c0"
3752
3764
  );
3753
3765
  const NcRichText = __component__.exports;
3754
3766
  export {
3755
3767
  NcRichText as N,
3756
3768
  NcReferenceList as a
3757
3769
  };
3758
- //# sourceMappingURL=NcRichText-rNfwY_Oc.mjs.map
3770
+ //# sourceMappingURL=NcRichText-ByLPwUvM.mjs.map