@nextcloud/vue 8.37.0 → 8.38.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 (376) hide show
  1. package/CHANGELOG.md +32 -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/NcHeaderButton.cjs +1 -1
  75. package/dist/Components/NcHeaderButton.mjs +1 -1
  76. package/dist/Components/NcHeaderMenu.cjs +1 -1
  77. package/dist/Components/NcHeaderMenu.mjs +1 -1
  78. package/dist/Components/NcInputField.cjs +1 -1
  79. package/dist/Components/NcInputField.mjs +1 -1
  80. package/dist/Components/NcListItem.cjs +1 -1
  81. package/dist/Components/NcListItem.mjs +1 -1
  82. package/dist/Components/NcListItemIcon.cjs +1 -1
  83. package/dist/Components/NcListItemIcon.mjs +1 -1
  84. package/dist/Components/NcModal.cjs +3 -3
  85. package/dist/Components/NcModal.mjs +3 -3
  86. package/dist/Components/NcPasswordField.cjs +1 -1
  87. package/dist/Components/NcPasswordField.mjs +1 -1
  88. package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
  89. package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
  90. package/dist/Components/NcRichContenteditable.cjs +2 -2
  91. package/dist/Components/NcRichContenteditable.mjs +2 -2
  92. package/dist/Components/NcRichText.cjs +2 -2
  93. package/dist/Components/NcRichText.mjs +3 -3
  94. package/dist/Components/NcSelect.cjs +1 -1
  95. package/dist/Components/NcSelect.mjs +1 -1
  96. package/dist/Components/NcSelectTags.cjs +1 -1
  97. package/dist/Components/NcSelectTags.mjs +1 -1
  98. package/dist/Components/NcSelectUsers.cjs +1 -1
  99. package/dist/Components/NcSelectUsers.mjs +1 -1
  100. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  101. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  102. package/dist/Components/NcTextField.cjs +1 -1
  103. package/dist/Components/NcTextField.mjs +1 -1
  104. package/dist/Components/NcTimezonePicker.cjs +1 -1
  105. package/dist/Components/NcTimezonePicker.mjs +1 -1
  106. package/dist/Components/NcUserBubble.cjs +1 -1
  107. package/dist/Components/NcUserBubble.mjs +1 -1
  108. package/dist/Functions/emoji.cjs +1 -1
  109. package/dist/Functions/emoji.mjs +1 -1
  110. package/dist/Functions/reference.cjs +1 -1
  111. package/dist/Functions/reference.mjs +1 -1
  112. package/dist/Mixins/richEditor.cjs +1 -1
  113. package/dist/Mixins/richEditor.mjs +1 -1
  114. package/dist/assets/{NcActionButton-CG4V9b5b.css → NcActionButton-CjKx3679.css} +18 -18
  115. package/dist/assets/{NcActionButtonGroup-CRXLyFpx.css → NcActionButtonGroup-DqR0weTf.css} +8 -8
  116. package/dist/assets/{NcActionInput-B-c5cOfM.css → NcActionInput-CPu4Btyq.css} +65 -65
  117. package/dist/assets/{NcActionLink-BtpJIbvI.css → NcActionLink-Bt-73iBm.css} +13 -13
  118. package/dist/assets/{NcActionTextEditable-BCmDMuUg.css → NcActionTextEditable-AuLw5QVP.css} +65 -65
  119. package/dist/assets/{NcActions-CVw1SmBu.css → NcActions-CuFJSslC.css} +11 -11
  120. package/dist/assets/{NcAppNavigation-Dbpqdigp.css → NcAppNavigation-mcR7I0Bd.css} +12 -12
  121. package/dist/assets/{NcAppSettingsDialog-N2RJYgHo.css → NcAppSettingsDialog-x8dImUGK.css} +11 -11
  122. package/dist/assets/{NcBreadcrumbs-DahxPGJY.css → NcBreadcrumbs-Dt1zdHzR.css} +6 -6
  123. package/dist/assets/{NcButton-8Y8d_1Z_.css → NcButton-C5JW43jM.css} +46 -46
  124. package/dist/assets/{NcCheckboxRadioSwitch-BACLOhMO.css → NcCheckboxRadioSwitch-BojbloxL.css} +38 -38
  125. package/dist/assets/{NcDateTimePicker-BzP7Sn12.css → NcDateTimePicker-DrfMaKM7.css} +8 -8
  126. package/dist/assets/{NcPasswordField-CiN_phAQ.css → NcPasswordField-vrT0oftw.css} +2 -2
  127. package/dist/assets/{NcRelatedResourcesPanel-BgMc8bue.css → NcRelatedResourcesPanel-CTpqdDL9.css} +3 -3
  128. package/dist/assets/{NcRichContenteditable-3tL9zHn2.css → NcRichContenteditable-DwS6PNCv.css} +11 -11
  129. package/dist/assets/{NcRichText-CAhzDSty.css → NcRichText-Cp_5tfBy.css} +91 -98
  130. package/dist/assets/autolink-KPdaBewQ.css +25 -0
  131. package/dist/chunks/{NcActionButton-C5Dqge0c.cjs → NcActionButton-CiYel4_C.cjs} +3 -3
  132. package/dist/chunks/NcActionButton-CiYel4_C.cjs.map +1 -0
  133. package/dist/chunks/{NcActionButton-1gSJfFUC.mjs → NcActionButton-K4jUGMlW.mjs} +3 -3
  134. package/dist/chunks/NcActionButton-K4jUGMlW.mjs.map +1 -0
  135. package/dist/chunks/{NcActionButtonGroup-eZxqibUd.mjs → NcActionButtonGroup-B95wg_Q6.mjs} +3 -3
  136. package/dist/chunks/NcActionButtonGroup-B95wg_Q6.mjs.map +1 -0
  137. package/dist/chunks/{NcActionButtonGroup-CpZDTAQo.cjs → NcActionButtonGroup-CFGCmzTM.cjs} +3 -3
  138. package/dist/chunks/NcActionButtonGroup-CFGCmzTM.cjs.map +1 -0
  139. package/dist/chunks/{NcActionInput-UPwE2Dky.mjs → NcActionInput-B_9GOTi6.mjs} +5 -5
  140. package/dist/chunks/NcActionInput-B_9GOTi6.mjs.map +1 -0
  141. package/dist/chunks/{NcActionInput-eAmBylEO.cjs → NcActionInput-D3w0eGfB.cjs} +5 -5
  142. package/dist/chunks/NcActionInput-D3w0eGfB.cjs.map +1 -0
  143. package/dist/chunks/{NcActionTextEditable-RFLtWxrl.cjs → NcActionTextEditable-BqJ5wONY.cjs} +3 -3
  144. package/dist/chunks/NcActionTextEditable-BqJ5wONY.cjs.map +1 -0
  145. package/dist/chunks/{NcActionTextEditable-CIsAP-pp.mjs → NcActionTextEditable-YqvZGY07.mjs} +3 -3
  146. package/dist/chunks/NcActionTextEditable-YqvZGY07.mjs.map +1 -0
  147. package/dist/chunks/{NcActions-BSDvtMJD.cjs → NcActions-0fAYsGbh.cjs} +4 -4
  148. package/dist/chunks/NcActions-0fAYsGbh.cjs.map +1 -0
  149. package/dist/chunks/{NcActions-BcLis_nr.mjs → NcActions-Ca_2vj8f.mjs} +4 -4
  150. package/dist/chunks/NcActions-Ca_2vj8f.mjs.map +1 -0
  151. package/dist/chunks/{NcAppContent-DLGtJosF.cjs → NcAppContent-B95Sj4-X.cjs} +2 -2
  152. package/dist/chunks/{NcAppContent-DLGtJosF.cjs.map → NcAppContent-B95Sj4-X.cjs.map} +1 -1
  153. package/dist/chunks/{NcAppContent-CeVqX0gV.mjs → NcAppContent-HZ-Lp090.mjs} +2 -2
  154. package/dist/chunks/{NcAppContent-CeVqX0gV.mjs.map → NcAppContent-HZ-Lp090.mjs.map} +1 -1
  155. package/dist/chunks/{NcAppNavigation-D2Ds_2Dm.cjs → NcAppNavigation-BDxzq-ai.cjs} +17 -7
  156. package/dist/chunks/NcAppNavigation-BDxzq-ai.cjs.map +1 -0
  157. package/dist/chunks/{NcAppNavigation-BfzJA6cb.mjs → NcAppNavigation-BPqJExo6.mjs} +17 -7
  158. package/dist/chunks/NcAppNavigation-BPqJExo6.mjs.map +1 -0
  159. package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs → NcAppNavigationCaption-Bt51pgle.mjs} +2 -2
  160. package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs.map → NcAppNavigationCaption-Bt51pgle.mjs.map} +1 -1
  161. package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs → NcAppNavigationCaption-CQZ7ZrEO.cjs} +2 -2
  162. package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs.map → NcAppNavigationCaption-CQZ7ZrEO.cjs.map} +1 -1
  163. package/dist/chunks/{NcAppNavigationItem-Dc5Vdhb1.cjs → NcAppNavigationItem-BBZ1SsqQ.cjs} +5 -5
  164. package/dist/chunks/{NcAppNavigationItem-Dc5Vdhb1.cjs.map → NcAppNavigationItem-BBZ1SsqQ.cjs.map} +1 -1
  165. package/dist/chunks/{NcAppNavigationItem-D30ztZfZ.mjs → NcAppNavigationItem-DcKt7SjF.mjs} +5 -5
  166. package/dist/chunks/{NcAppNavigationItem-D30ztZfZ.mjs.map → NcAppNavigationItem-DcKt7SjF.mjs.map} +1 -1
  167. package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs → NcAppNavigationNew-B5ikLvxM.mjs} +2 -2
  168. package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs.map → NcAppNavigationNew-B5ikLvxM.mjs.map} +1 -1
  169. package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs → NcAppNavigationNew-DljLy9CQ.cjs} +2 -2
  170. package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs.map → NcAppNavigationNew-DljLy9CQ.cjs.map} +1 -1
  171. package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs → NcAppNavigationNewItem-BqhwbJsJ.mjs} +2 -2
  172. package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs.map → NcAppNavigationNewItem-BqhwbJsJ.mjs.map} +1 -1
  173. package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs → NcAppNavigationNewItem-C6gqVpBt.cjs} +2 -2
  174. package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs.map → NcAppNavigationNewItem-C6gqVpBt.cjs.map} +1 -1
  175. package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs → NcAppNavigationSearch-B6u1Ln1_.mjs} +2 -2
  176. package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs.map → NcAppNavigationSearch-B6u1Ln1_.mjs.map} +1 -1
  177. package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs → NcAppNavigationSearch-CliHANzA.cjs} +2 -2
  178. package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs.map → NcAppNavigationSearch-CliHANzA.cjs.map} +1 -1
  179. package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs → NcAppNavigationSettings-BfysBg80.mjs} +2 -2
  180. package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs.map → NcAppNavigationSettings-BfysBg80.mjs.map} +1 -1
  181. package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs → NcAppNavigationSettings-ClcR05vZ.cjs} +2 -2
  182. package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs.map → NcAppNavigationSettings-ClcR05vZ.cjs.map} +1 -1
  183. package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs → NcAppNavigationToggle-CLPYPwyi.cjs} +2 -2
  184. package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs.map → NcAppNavigationToggle-CLPYPwyi.cjs.map} +1 -1
  185. package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs → NcAppNavigationToggle-DtJjJGQ5.mjs} +2 -2
  186. package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs.map → NcAppNavigationToggle-DtJjJGQ5.mjs.map} +1 -1
  187. package/dist/chunks/{NcAppSettingsDialog-Ckf6dRRJ.cjs → NcAppSettingsDialog-C2-LWcDG.cjs} +4 -4
  188. package/dist/chunks/{NcAppSettingsDialog-vBeCGFqk.mjs.map → NcAppSettingsDialog-C2-LWcDG.cjs.map} +1 -1
  189. package/dist/chunks/{NcAppSettingsDialog-vBeCGFqk.mjs → NcAppSettingsDialog-D0M18YFD.mjs} +4 -4
  190. package/dist/chunks/{NcAppSettingsDialog-Ckf6dRRJ.cjs.map → NcAppSettingsDialog-D0M18YFD.mjs.map} +1 -1
  191. package/dist/chunks/{NcAppSidebar-CPHVBBe0.cjs → NcAppSidebar-BYHXZjYR.cjs} +4 -4
  192. package/dist/chunks/{NcAppSidebar-CPHVBBe0.cjs.map → NcAppSidebar-BYHXZjYR.cjs.map} +1 -1
  193. package/dist/chunks/{NcAppSidebar-Cx0PlofZ.mjs → NcAppSidebar-Bljse39J.mjs} +4 -4
  194. package/dist/chunks/{NcAppSidebar-Cx0PlofZ.mjs.map → NcAppSidebar-Bljse39J.mjs.map} +1 -1
  195. package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs → NcAssistantButton-BdUkhzq1.mjs} +2 -2
  196. package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs.map → NcAssistantButton-BdUkhzq1.mjs.map} +1 -1
  197. package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs → NcAssistantButton-mPenTfuv.cjs} +2 -2
  198. package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs.map → NcAssistantButton-mPenTfuv.cjs.map} +1 -1
  199. package/dist/chunks/{NcAvatar-DC2fiCH-.mjs → NcAvatar-CGnqUtoy.mjs} +6 -6
  200. package/dist/chunks/{NcAvatar-DC2fiCH-.mjs.map → NcAvatar-CGnqUtoy.mjs.map} +1 -1
  201. package/dist/chunks/{NcAvatar-ffZLZnH_.cjs → NcAvatar-DP8TpFfy.cjs} +6 -6
  202. package/dist/chunks/{NcAvatar-ffZLZnH_.cjs.map → NcAvatar-DP8TpFfy.cjs.map} +1 -1
  203. package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs → NcBreadcrumb-DH2FV6QI.mjs} +3 -3
  204. package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs.map → NcBreadcrumb-DH2FV6QI.mjs.map} +1 -1
  205. package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs → NcBreadcrumb-hK0W8qx4.cjs} +3 -3
  206. package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs.map → NcBreadcrumb-hK0W8qx4.cjs.map} +1 -1
  207. package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs → NcBreadcrumbs-DrYYSHAS.mjs} +7 -7
  208. package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs.map → NcBreadcrumbs-DrYYSHAS.mjs.map} +1 -1
  209. package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs → NcBreadcrumbs-pDN1N49I.cjs} +7 -7
  210. package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs.map → NcBreadcrumbs-pDN1N49I.cjs.map} +1 -1
  211. package/dist/chunks/{NcButton-BaZAY-tN.mjs → NcButton-BgppWSl9.mjs} +12 -4
  212. package/dist/chunks/NcButton-BgppWSl9.mjs.map +1 -0
  213. package/dist/chunks/{NcButton-Dszi1Apb.cjs → NcButton-DaWD-X8V.cjs} +12 -4
  214. package/dist/chunks/NcButton-DaWD-X8V.cjs.map +1 -0
  215. package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs → NcCheckboxRadioSwitch-BQeglWXd.cjs} +8 -17
  216. package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs.map → NcCheckboxRadioSwitch-BQeglWXd.cjs.map} +1 -1
  217. package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs → NcCheckboxRadioSwitch-D4IV4zWy.mjs} +8 -17
  218. package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs.map → NcCheckboxRadioSwitch-D4IV4zWy.mjs.map} +1 -1
  219. package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs → NcCollectionList-BbmBJ4ET.mjs} +6 -6
  220. package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs.map → NcCollectionList-BbmBJ4ET.mjs.map} +1 -1
  221. package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs → NcCollectionList-DgLrYZ6o.cjs} +6 -6
  222. package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs.map → NcCollectionList-DgLrYZ6o.cjs.map} +1 -1
  223. package/dist/chunks/{NcColorPicker-BfApfazi.mjs → NcColorPicker-Bzzw1uKu.mjs} +2 -2
  224. package/dist/chunks/{NcColorPicker-BfApfazi.mjs.map → NcColorPicker-Bzzw1uKu.mjs.map} +1 -1
  225. package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs → NcColorPicker-DNpKf7gx.cjs} +2 -2
  226. package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs.map → NcColorPicker-DNpKf7gx.cjs.map} +1 -1
  227. package/dist/chunks/{NcContent-MiRvygrj.cjs → NcContent-CMjQ3dfw.cjs} +2 -2
  228. package/dist/chunks/{NcContent-MiRvygrj.cjs.map → NcContent-CMjQ3dfw.cjs.map} +1 -1
  229. package/dist/chunks/{NcContent-DFOsZ6pm.mjs → NcContent-DpGM2KRx.mjs} +2 -2
  230. package/dist/chunks/{NcContent-DFOsZ6pm.mjs.map → NcContent-DpGM2KRx.mjs.map} +1 -1
  231. package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs → NcDashboardWidget-DuoTxAyf.cjs} +3 -3
  232. package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs.map → NcDashboardWidget-DuoTxAyf.cjs.map} +1 -1
  233. package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs → NcDashboardWidget-NOuL4APU.mjs} +3 -3
  234. package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs.map → NcDashboardWidget-NOuL4APU.mjs.map} +1 -1
  235. package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs → NcDashboardWidgetItem-BFsKgWo2.cjs} +4 -4
  236. package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs.map → NcDashboardWidgetItem-BFsKgWo2.cjs.map} +1 -1
  237. package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs → NcDashboardWidgetItem-CBW263ij.mjs} +4 -4
  238. package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs.map → NcDashboardWidgetItem-CBW263ij.mjs.map} +1 -1
  239. package/dist/chunks/{NcDialog-CDFWleNp.mjs → NcDialog-BCCBuI6f.mjs} +2 -2
  240. package/dist/chunks/{NcDialog-CDFWleNp.mjs.map → NcDialog-BCCBuI6f.mjs.map} +1 -1
  241. package/dist/chunks/{NcDialog-gV238gzy.cjs → NcDialog-x3G0Nuve.cjs} +2 -2
  242. package/dist/chunks/{NcDialog-gV238gzy.cjs.map → NcDialog-x3G0Nuve.cjs.map} +1 -1
  243. package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs → NcDialogButton-DBtmgcol.cjs} +2 -2
  244. package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs.map → NcDialogButton-DBtmgcol.cjs.map} +1 -1
  245. package/dist/chunks/{NcDialogButton-tB5RGMME.mjs → NcDialogButton-DpA4mqr-.mjs} +2 -2
  246. package/dist/chunks/{NcDialogButton-tB5RGMME.mjs.map → NcDialogButton-DpA4mqr-.mjs.map} +1 -1
  247. package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs → NcEmojiPicker-C4jCrwQY.mjs} +5 -5
  248. package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs.map → NcEmojiPicker-C4jCrwQY.mjs.map} +1 -1
  249. package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs → NcEmojiPicker-DefnK492.cjs} +5 -5
  250. package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs.map → NcEmojiPicker-DefnK492.cjs.map} +1 -1
  251. package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs → NcFilePicker-BYWr-vcP.cjs} +3 -3
  252. package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs.map → NcFilePicker-BYWr-vcP.cjs.map} +1 -1
  253. package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs → NcFilePicker-DCPi6JGg.mjs} +3 -3
  254. package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs.map → NcFilePicker-DCPi6JGg.mjs.map} +1 -1
  255. package/dist/chunks/NcFormBox-DRGVpFeZ.cjs.map +1 -1
  256. package/dist/chunks/NcFormBox-DtoCXLMx.mjs.map +1 -1
  257. package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs → NcHeaderButton-DXdY8gct.mjs} +2 -2
  258. package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs.map → NcHeaderButton-DXdY8gct.mjs.map} +1 -1
  259. package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs → NcHeaderButton-iEtQ74pa.cjs} +2 -2
  260. package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs.map → NcHeaderButton-iEtQ74pa.cjs.map} +1 -1
  261. package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs → NcHeaderMenu-BZnnbLTo.mjs} +2 -2
  262. package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs.map → NcHeaderMenu-BZnnbLTo.mjs.map} +1 -1
  263. package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs → NcHeaderMenu-efsSG80P.cjs} +2 -2
  264. package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs.map → NcHeaderMenu-efsSG80P.cjs.map} +1 -1
  265. package/dist/chunks/{NcInputConfirmCancel-Ckda9G9Z.cjs → NcInputConfirmCancel-CTvNhtqM.cjs} +2 -2
  266. package/dist/chunks/{NcInputConfirmCancel-Ckda9G9Z.cjs.map → NcInputConfirmCancel-CTvNhtqM.cjs.map} +1 -1
  267. package/dist/chunks/{NcInputConfirmCancel-BvYpvopv.mjs → NcInputConfirmCancel-LAJSyhOn.mjs} +2 -2
  268. package/dist/chunks/{NcInputConfirmCancel-BvYpvopv.mjs.map → NcInputConfirmCancel-LAJSyhOn.mjs.map} +1 -1
  269. package/dist/chunks/{NcInputField-DDgBZ427.cjs → NcInputField-DX2Jz57P.cjs} +2 -2
  270. package/dist/chunks/{NcInputField-DDgBZ427.cjs.map → NcInputField-DX2Jz57P.cjs.map} +1 -1
  271. package/dist/chunks/{NcInputField-Cfm1bJR4.mjs → NcInputField-j5EyU7QH.mjs} +2 -2
  272. package/dist/chunks/{NcInputField-Cfm1bJR4.mjs.map → NcInputField-j5EyU7QH.mjs.map} +1 -1
  273. package/dist/chunks/{NcListItem-BLbG7272.cjs → NcListItem-C14yh4-n.cjs} +2 -2
  274. package/dist/chunks/{NcListItem-BLbG7272.cjs.map → NcListItem-C14yh4-n.cjs.map} +1 -1
  275. package/dist/chunks/{NcListItem-RKTfRg06.mjs → NcListItem-D0JDzXkL.mjs} +2 -2
  276. package/dist/chunks/{NcListItem-RKTfRg06.mjs.map → NcListItem-D0JDzXkL.mjs.map} +1 -1
  277. package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs → NcListItemIcon-BccR3hro.cjs} +2 -2
  278. package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs.map → NcListItemIcon-BccR3hro.cjs.map} +1 -1
  279. package/dist/chunks/{NcListItemIcon-D49wESTI.mjs → NcListItemIcon-D35XZDGI.mjs} +2 -2
  280. package/dist/chunks/{NcListItemIcon-D49wESTI.mjs.map → NcListItemIcon-D35XZDGI.mjs.map} +1 -1
  281. package/dist/chunks/{NcPasswordField-DNuolayr.cjs → NcPasswordField-BkY96Kt0.cjs} +7 -8
  282. package/dist/chunks/NcPasswordField-BkY96Kt0.cjs.map +1 -0
  283. package/dist/chunks/{NcPasswordField-lE4m20vf.mjs → NcPasswordField-HQK5d_nv.mjs} +7 -8
  284. package/dist/chunks/NcPasswordField-HQK5d_nv.mjs.map +1 -0
  285. package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs → NcRelatedResourcesPanel-BdmY-Mly.mjs} +7 -7
  286. package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs.map → NcRelatedResourcesPanel-BdmY-Mly.mjs.map} +1 -1
  287. package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs → NcRelatedResourcesPanel-BmpOFhV1.cjs} +7 -7
  288. package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs.map → NcRelatedResourcesPanel-BmpOFhV1.cjs.map} +1 -1
  289. package/dist/chunks/{NcRichContenteditable-SA1zbfkk.mjs → NcRichContenteditable-BcTSkyeW.mjs} +19 -17
  290. package/dist/chunks/NcRichContenteditable-BcTSkyeW.mjs.map +1 -0
  291. package/dist/chunks/{NcRichContenteditable-Bh-mMIQz.cjs → NcRichContenteditable-QnLNsBkB.cjs} +19 -17
  292. package/dist/chunks/NcRichContenteditable-QnLNsBkB.cjs.map +1 -0
  293. package/dist/chunks/{NcRichText-B1Fyj7k8.cjs → NcRichText-CiRdCF_B.cjs} +230 -305
  294. package/dist/chunks/NcRichText-CiRdCF_B.cjs.map +1 -0
  295. package/dist/chunks/{NcRichText-rNfwY_Oc.mjs → NcRichText-DZgAb6-3.mjs} +229 -303
  296. package/dist/chunks/NcRichText-DZgAb6-3.mjs.map +1 -0
  297. package/dist/chunks/{NcSelect-1P3nA044.cjs → NcSelect-DVXAVRT_.cjs} +2 -2
  298. package/dist/chunks/{NcSelect-1P3nA044.cjs.map → NcSelect-DVXAVRT_.cjs.map} +1 -1
  299. package/dist/chunks/{NcSelect-CbWXsDdZ.mjs → NcSelect-FwcxH76q.mjs} +2 -2
  300. package/dist/chunks/{NcSelect-CbWXsDdZ.mjs.map → NcSelect-FwcxH76q.mjs.map} +1 -1
  301. package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs → NcSelectTags-BNFcTbHy.cjs} +2 -2
  302. package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs.map → NcSelectTags-BNFcTbHy.cjs.map} +1 -1
  303. package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs → NcSelectTags-yZfa_z_z.mjs} +2 -2
  304. package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs.map → NcSelectTags-yZfa_z_z.mjs.map} +1 -1
  305. package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs → NcSelectUsers-5r-vvEVy.mjs} +3 -3
  306. package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs.map → NcSelectUsers-5r-vvEVy.mjs.map} +1 -1
  307. package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs → NcSelectUsers-fp6nf6ic.cjs} +3 -3
  308. package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs.map → NcSelectUsers-fp6nf6ic.cjs.map} +1 -1
  309. package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs → NcSettingsSelectGroup-CUM0vkbN.mjs} +2 -2
  310. package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs.map → NcSettingsSelectGroup-CUM0vkbN.mjs.map} +1 -1
  311. package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs → NcSettingsSelectGroup-D5EWVZ7k.cjs} +2 -2
  312. package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs.map → NcSettingsSelectGroup-D5EWVZ7k.cjs.map} +1 -1
  313. package/dist/chunks/{NcTextField-CkW-dl88.cjs → NcTextField-B2tcddKo.cjs} +2 -2
  314. package/dist/chunks/{NcTextField-CkW-dl88.cjs.map → NcTextField-B2tcddKo.cjs.map} +1 -1
  315. package/dist/chunks/{NcTextField-DZHP0Dfw.mjs → NcTextField-ByDOTNvC.mjs} +2 -2
  316. package/dist/chunks/{NcTextField-DZHP0Dfw.mjs.map → NcTextField-ByDOTNvC.mjs.map} +1 -1
  317. package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs → NcTimezonePicker-CeQXCjIR.cjs} +2 -2
  318. package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs.map → NcTimezonePicker-CeQXCjIR.cjs.map} +1 -1
  319. package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs → NcTimezonePicker-Cok_NaVd.mjs} +2 -2
  320. package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs.map → NcTimezonePicker-Cok_NaVd.mjs.map} +1 -1
  321. package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs → NcUserBubble-CIcwErdM.cjs} +2 -2
  322. package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs.map → NcUserBubble-CIcwErdM.cjs.map} +1 -1
  323. package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs → NcUserBubble-Csw7PXyG.mjs} +2 -2
  324. package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs.map → NcUserBubble-Csw7PXyG.mjs.map} +1 -1
  325. package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs → ScopeComponent-B6luC3XR.mjs} +2 -2
  326. package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs.map → ScopeComponent-B6luC3XR.mjs.map} +1 -1
  327. package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs → ScopeComponent-Co-1SOFK.cjs} +2 -2
  328. package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs.map → ScopeComponent-Co-1SOFK.cjs.map} +1 -1
  329. package/dist/chunks/{autolink-D2pIbi92.mjs → autolink-CeB9uxD9.mjs} +56 -21
  330. package/dist/chunks/autolink-CeB9uxD9.mjs.map +1 -0
  331. package/dist/chunks/{autolink-BPlRHRHR.cjs → autolink-VQMuzjxl.cjs} +57 -22
  332. package/dist/chunks/autolink-VQMuzjxl.cjs.map +1 -0
  333. package/dist/chunks/{emoji-BgZdRy3v.mjs → emoji-Dtn2mDf7.mjs} +2 -2
  334. package/dist/chunks/emoji-Dtn2mDf7.mjs.map +1 -0
  335. package/dist/chunks/{emoji-CEwczMT5.cjs → emoji-aWWWqkrJ.cjs} +2 -2
  336. package/dist/chunks/emoji-aWWWqkrJ.cjs.map +1 -0
  337. package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs → getAvatarUrl-4HsuXa3l.cjs} +2 -2
  338. package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs.map → getAvatarUrl-4HsuXa3l.cjs.map} +1 -1
  339. package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs → getAvatarUrl-BGOeDmNO.mjs} +2 -2
  340. package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs.map → getAvatarUrl-BGOeDmNO.mjs.map} +1 -1
  341. package/dist/chunks/{index-TmAR7I2T.mjs → index-BCqXu_og.mjs} +2 -2
  342. package/dist/chunks/{index-TmAR7I2T.mjs.map → index-BCqXu_og.mjs.map} +1 -1
  343. package/dist/chunks/{index-CgkN1xho.cjs → index-phHwkniW.cjs} +2 -2
  344. package/dist/chunks/{index-CgkN1xho.cjs.map → index-phHwkniW.cjs.map} +1 -1
  345. package/dist/chunks/{referencePickerModal-hGj81_Th.cjs → referencePickerModal-BOCqzVJk.cjs} +6 -6
  346. package/dist/chunks/{referencePickerModal-hGj81_Th.cjs.map → referencePickerModal-BOCqzVJk.cjs.map} +1 -1
  347. package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs → referencePickerModal-BQExd0w6.mjs} +6 -6
  348. package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs.map → referencePickerModal-BQExd0w6.mjs.map} +1 -1
  349. package/dist/index.cjs +50 -50
  350. package/dist/index.mjs +52 -52
  351. package/dist/vendor.LICENSE.txt +2 -6
  352. package/package.json +14 -14
  353. package/dist/chunks/NcActionButton-1gSJfFUC.mjs.map +0 -1
  354. package/dist/chunks/NcActionButton-C5Dqge0c.cjs.map +0 -1
  355. package/dist/chunks/NcActionButtonGroup-CpZDTAQo.cjs.map +0 -1
  356. package/dist/chunks/NcActionButtonGroup-eZxqibUd.mjs.map +0 -1
  357. package/dist/chunks/NcActionInput-UPwE2Dky.mjs.map +0 -1
  358. package/dist/chunks/NcActionInput-eAmBylEO.cjs.map +0 -1
  359. package/dist/chunks/NcActionTextEditable-CIsAP-pp.mjs.map +0 -1
  360. package/dist/chunks/NcActionTextEditable-RFLtWxrl.cjs.map +0 -1
  361. package/dist/chunks/NcActions-BSDvtMJD.cjs.map +0 -1
  362. package/dist/chunks/NcActions-BcLis_nr.mjs.map +0 -1
  363. package/dist/chunks/NcAppNavigation-BfzJA6cb.mjs.map +0 -1
  364. package/dist/chunks/NcAppNavigation-D2Ds_2Dm.cjs.map +0 -1
  365. package/dist/chunks/NcButton-BaZAY-tN.mjs.map +0 -1
  366. package/dist/chunks/NcButton-Dszi1Apb.cjs.map +0 -1
  367. package/dist/chunks/NcPasswordField-DNuolayr.cjs.map +0 -1
  368. package/dist/chunks/NcPasswordField-lE4m20vf.mjs.map +0 -1
  369. package/dist/chunks/NcRichContenteditable-Bh-mMIQz.cjs.map +0 -1
  370. package/dist/chunks/NcRichContenteditable-SA1zbfkk.mjs.map +0 -1
  371. package/dist/chunks/NcRichText-B1Fyj7k8.cjs.map +0 -1
  372. package/dist/chunks/NcRichText-rNfwY_Oc.mjs.map +0 -1
  373. package/dist/chunks/autolink-BPlRHRHR.cjs.map +0 -1
  374. package/dist/chunks/autolink-D2pIbi92.mjs.map +0 -1
  375. package/dist/chunks/emoji-BgZdRy3v.mjs.map +0 -1
  376. package/dist/chunks/emoji-CEwczMT5.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- require('../assets/NcRichText-CAhzDSty.css');
1
+ require('../assets/NcRichText-Cp_5tfBy.css');
2
2
  "use strict";
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
@@ -22,38 +22,37 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
23
  mod
24
24
  ));
25
+ const mdastUtilToString = require("mdast-util-to-string");
25
26
  const rehypeExternalLinks = require("rehype-external-links");
26
27
  const rehype2react = require("rehype-react");
27
28
  const breaks = require("remark-breaks");
28
29
  const remarkParse = require("remark-parse");
29
30
  const remark2rehype = require("remark-rehype");
30
- const remarkStringify = require("remark-stringify");
31
31
  const remarkUnlinkProtocols = require("remark-unlink-protocols");
32
32
  const unified = require("unified");
33
33
  const Vue = require("vue");
34
34
  const vueRouter = require("vue-router");
35
- const NcCheckboxRadioSwitch = require("./NcCheckboxRadioSwitch-NOpZzkFR.cjs");
35
+ const NcCheckboxRadioSwitch = require("./NcCheckboxRadioSwitch-BQeglWXd.cjs");
36
36
  const auth = require("@nextcloud/auth");
37
37
  const axios = require("@nextcloud/axios");
38
38
  const router = require("@nextcloud/router");
39
39
  const _public = require("@nextcloud/sharing/public");
40
- const referencePickerModal = require("./referencePickerModal-hGj81_Th.cjs");
40
+ const referencePickerModal = require("./referencePickerModal-BOCqzVJk.cjs");
41
41
  const logger = require("./logger-3HuiEIF6.cjs");
42
- const autolink = require("./autolink-BPlRHRHR.cjs");
42
+ const autolink = require("./autolink-VQMuzjxl.cjs");
43
43
  const _pluginVue2_normalizer = require("./_plugin-vue2_normalizer-V0q-tHlQ.cjs");
44
- const NcButton = require("./NcButton-Dszi1Apb.cjs");
44
+ const NcButton = require("./NcButton-DaWD-X8V.cjs");
45
45
  const NcIconSvgWrapper = require("./NcIconSvgWrapper-Bbl4kXZI.cjs");
46
46
  const useCopy = require("./useCopy-3m2jDiIN.cjs");
47
47
  const GenRandomId = require("./GenRandomId-D7iOvpZS.cjs");
48
48
  const unistBuilder = require("unist-builder");
49
- const unistUtilVisit = require("unist-util-visit");
49
+ const unistUtilVisitParents = require("unist-util-visit-parents");
50
50
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
51
51
  const rehypeExternalLinks__default = /* @__PURE__ */ _interopDefault(rehypeExternalLinks);
52
52
  const rehype2react__default = /* @__PURE__ */ _interopDefault(rehype2react);
53
53
  const breaks__default = /* @__PURE__ */ _interopDefault(breaks);
54
54
  const remarkParse__default = /* @__PURE__ */ _interopDefault(remarkParse);
55
55
  const remark2rehype__default = /* @__PURE__ */ _interopDefault(remark2rehype);
56
- const remarkStringify__default = /* @__PURE__ */ _interopDefault(remarkStringify);
57
56
  const remarkUnlinkProtocols__default = /* @__PURE__ */ _interopDefault(remarkUnlinkProtocols);
58
57
  const axios__default = /* @__PURE__ */ _interopDefault(axios);
59
58
  const _sfc_main$2 = {
@@ -288,12 +287,12 @@ function propsFactory(check) {
288
287
  /** @type {Record<string, unknown>} */
289
288
  check
290
289
  );
291
- return castFactory(all2);
292
- function all2(node2) {
290
+ return castFactory(all);
291
+ function all(node) {
293
292
  const nodeAsRecord = (
294
293
  /** @type {Record<string, unknown>} */
295
294
  /** @type {unknown} */
296
- node2
295
+ node
297
296
  );
298
297
  let key;
299
298
  for (key in check) {
@@ -304,8 +303,8 @@ function propsFactory(check) {
304
303
  }
305
304
  function typeFactory(check) {
306
305
  return castFactory(type);
307
- function type(node2) {
308
- return node2 && node2.type === check;
306
+ function type(node) {
307
+ return node && node.type === check;
309
308
  }
310
309
  }
311
310
  function castFactory(testFunction) {
@@ -327,90 +326,15 @@ function ok() {
327
326
  function looksLikeANode(value) {
328
327
  return value !== null && typeof value === "object" && "type" in value;
329
328
  }
330
- function color(d) {
331
- return d;
332
- }
333
- const empty = [];
334
- const CONTINUE = true;
335
- const EXIT = false;
336
- const SKIP = "skip";
337
- function visitParents(tree, test, visitor, reverse) {
338
- let check;
339
- {
340
- check = test;
341
- }
342
- const is = convert(check);
343
- const step = 1;
344
- factory(tree, void 0, [])();
345
- function factory(node2, index, parents) {
346
- const value = (
347
- /** @type {Record<string, unknown>} */
348
- node2 && typeof node2 === "object" ? node2 : {}
349
- );
350
- if (typeof value.type === "string") {
351
- const name = (
352
- // `hast`
353
- typeof value.tagName === "string" ? value.tagName : (
354
- // `xast`
355
- typeof value.name === "string" ? value.name : void 0
356
- )
357
- );
358
- Object.defineProperty(visit, "name", {
359
- value: "node (" + color(node2.type + (name ? "<" + name + ">" : "")) + ")"
360
- });
361
- }
362
- return visit;
363
- function visit() {
364
- let result = empty;
365
- let subresult;
366
- let offset;
367
- let grandparents;
368
- if (is(node2, index, parents[parents.length - 1] || void 0)) {
369
- result = toResult(visitor(node2, parents));
370
- if (result[0] === EXIT) {
371
- return result;
372
- }
373
- }
374
- if ("children" in node2 && node2.children) {
375
- const nodeAsParent = (
376
- /** @type {UnistParent} */
377
- node2
378
- );
379
- if (nodeAsParent.children && result[0] !== SKIP) {
380
- offset = -1 + step;
381
- grandparents = parents.concat(nodeAsParent);
382
- while (offset > -1 && offset < nodeAsParent.children.length) {
383
- const child = nodeAsParent.children[offset];
384
- subresult = factory(child, offset, grandparents)();
385
- if (subresult[0] === EXIT) {
386
- return subresult;
387
- }
388
- offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
389
- }
390
- }
391
- }
392
- return result;
393
- }
394
- }
395
- }
396
- function toResult(value) {
397
- if (Array.isArray(value)) {
398
- return value;
399
- }
400
- if (typeof value === "number") {
401
- return [CONTINUE, value];
402
- }
403
- return value === null || value === void 0 ? empty : [value];
404
- }
405
329
  function findAndReplace(tree, list2, options) {
406
330
  const settings = options || {};
407
331
  const ignored = convert(settings.ignore || []);
408
332
  const pairs = toPairs(list2);
409
333
  let pairIndex = -1;
410
334
  while (++pairIndex < pairs.length) {
411
- visitParents(tree, "text", visitor);
335
+ unistUtilVisitParents.visitParents(tree, "text", visitor);
412
336
  }
413
- function visitor(node2, parents) {
337
+ function visitor(node, parents) {
414
338
  let index = -1;
415
339
  let grandparent;
416
340
  while (++index < parents.length) {
@@ -426,26 +350,26 @@ function findAndReplace(tree, list2, options) {
426
350
  grandparent = parent;
427
351
  }
428
352
  if (grandparent) {
429
- return handler(node2, parents);
353
+ return handler(node, parents);
430
354
  }
431
355
  }
432
- function handler(node2, parents) {
356
+ function handler(node, parents) {
433
357
  const parent = parents[parents.length - 1];
434
358
  const find = pairs[pairIndex][0];
435
359
  const replace2 = pairs[pairIndex][1];
436
360
  let start = 0;
437
361
  const siblings = parent.children;
438
- const index = siblings.indexOf(node2);
362
+ const index = siblings.indexOf(node);
439
363
  let change = false;
440
364
  let nodes = [];
441
365
  find.lastIndex = 0;
442
- let match = find.exec(node2.value);
366
+ let match = find.exec(node.value);
443
367
  while (match) {
444
368
  const position = match.index;
445
369
  const matchObject = {
446
370
  index: match.index,
447
371
  input: match.input,
448
- stack: [...parents, node2]
372
+ stack: [...parents, node]
449
373
  };
450
374
  let value = replace2(...match, matchObject);
451
375
  if (typeof value === "string") {
@@ -457,7 +381,7 @@ function findAndReplace(tree, list2, options) {
457
381
  if (start !== position) {
458
382
  nodes.push({
459
383
  type: "text",
460
- value: node2.value.slice(start, position)
384
+ value: node.value.slice(start, position)
461
385
  });
462
386
  }
463
387
  if (Array.isArray(value)) {
@@ -471,15 +395,15 @@ function findAndReplace(tree, list2, options) {
471
395
  if (!find.global) {
472
396
  break;
473
397
  }
474
- match = find.exec(node2.value);
398
+ match = find.exec(node.value);
475
399
  }
476
400
  if (change) {
477
- if (start < node2.value.length) {
478
- nodes.push({ type: "text", value: node2.value.slice(start) });
401
+ if (start < node.value.length) {
402
+ nodes.push({ type: "text", value: node.value.slice(start) });
479
403
  }
480
404
  parent.children.splice(index, 1, ...nodes);
481
405
  } else {
482
- nodes = [node2];
406
+ nodes = [node];
483
407
  }
484
408
  return index + nodes.length;
485
409
  }
@@ -562,9 +486,9 @@ function exitLiteralAutolinkHttp(token) {
562
486
  }
563
487
  function exitLiteralAutolinkWww(token) {
564
488
  this.config.exit.data.call(this, token);
565
- const node2 = this.stack[this.stack.length - 1];
566
- ok$1(node2.type === "link");
567
- node2.url = "http://" + this.sliceSerialize(token);
489
+ const node = this.stack[this.stack.length - 1];
490
+ ok$1(node.type === "link");
491
+ node.url = "http://" + this.sliceSerialize(token);
568
492
  }
569
493
  function exitLiteralAutolinkEmail(token) {
570
494
  this.config.exit.autolinkEmail.call(this, token);
@@ -690,10 +614,10 @@ function enterFootnoteDefinitionLabelString() {
690
614
  }
691
615
  function exitFootnoteDefinitionLabelString(token) {
692
616
  const label = this.resume();
693
- const node2 = this.stack[this.stack.length - 1];
694
- ok$1(node2.type === "footnoteDefinition");
695
- node2.label = label;
696
- node2.identifier = normalizeIdentifier(
617
+ const node = this.stack[this.stack.length - 1];
618
+ ok$1(node.type === "footnoteDefinition");
619
+ node.label = label;
620
+ node.identifier = normalizeIdentifier(
697
621
  this.sliceSerialize(token)
698
622
  ).toLowerCase();
699
623
  }
@@ -708,23 +632,23 @@ function enterFootnoteCallString() {
708
632
  }
709
633
  function exitFootnoteCallString(token) {
710
634
  const label = this.resume();
711
- const node2 = this.stack[this.stack.length - 1];
712
- ok$1(node2.type === "footnoteReference");
713
- node2.label = label;
714
- node2.identifier = normalizeIdentifier(
635
+ const node = this.stack[this.stack.length - 1];
636
+ ok$1(node.type === "footnoteReference");
637
+ node.label = label;
638
+ node.identifier = normalizeIdentifier(
715
639
  this.sliceSerialize(token)
716
640
  ).toLowerCase();
717
641
  }
718
642
  function exitFootnoteCall(token) {
719
643
  this.exit(token);
720
644
  }
721
- function footnoteReference(node2, _, state, info) {
645
+ function footnoteReference(node, _, state, info) {
722
646
  const tracker = state.createTracker(info);
723
647
  let value = tracker.move("[^");
724
648
  const exit2 = state.enter("footnoteReference");
725
649
  const subexit = state.enter("reference");
726
650
  value += tracker.move(
727
- state.safe(state.associationId(node2), {
651
+ state.safe(state.associationId(node), {
728
652
  ...tracker.current(),
729
653
  before: value,
730
654
  after: "]"
@@ -738,13 +662,13 @@ function footnoteReference(node2, _, state, info) {
738
662
  function footnoteReferencePeek() {
739
663
  return "[";
740
664
  }
741
- function footnoteDefinition(node2, _, state, info) {
665
+ function footnoteDefinition(node, _, state, info) {
742
666
  const tracker = state.createTracker(info);
743
667
  let value = tracker.move("[^");
744
668
  const exit2 = state.enter("footnoteDefinition");
745
669
  const subexit = state.enter("label");
746
670
  value += tracker.move(
747
- state.safe(state.associationId(node2), {
671
+ state.safe(state.associationId(node), {
748
672
  ...tracker.current(),
749
673
  before: value,
750
674
  after: "]"
@@ -752,11 +676,11 @@ function footnoteDefinition(node2, _, state, info) {
752
676
  );
753
677
  subexit();
754
678
  value += tracker.move(
755
- "]:" + (node2.children && node2.children.length > 0 ? " " : "")
679
+ "]:" + (node.children && node.children.length > 0 ? " " : "")
756
680
  );
757
681
  tracker.shift(4);
758
682
  value += tracker.move(
759
- state.indentLines(state.containerFlow(node2, tracker.current()), map$2)
683
+ state.indentLines(state.containerFlow(node, tracker.current()), map$2)
760
684
  );
761
685
  exit2();
762
686
  return value;
@@ -801,11 +725,11 @@ function enterStrikethrough(token) {
801
725
  function exitStrikethrough(token) {
802
726
  this.exit(token);
803
727
  }
804
- function handleDelete(node2, _, state, info) {
728
+ function handleDelete(node, _, state, info) {
805
729
  const tracker = state.createTracker(info);
806
730
  const exit2 = state.enter("strikethrough");
807
731
  let value = tracker.move("~~");
808
- value += state.containerPhrasing(node2, {
732
+ value += state.containerPhrasing(node, {
809
733
  ...tracker.current(),
810
734
  before: value,
811
735
  after: "~"
@@ -955,13 +879,13 @@ function toAlignment(value) {
955
879
  const code2 = typeof value === "string" ? value.codePointAt(0) : 0;
956
880
  return code2 === 67 || code2 === 99 ? 99 : code2 === 76 || code2 === 108 ? 108 : code2 === 82 || code2 === 114 ? 114 : 0;
957
881
  }
958
- function blockquote(node2, _, state, info) {
882
+ function blockquote(node, _, state, info) {
959
883
  const exit2 = state.enter("blockquote");
960
884
  const tracker = state.createTracker(info);
961
885
  tracker.move("> ");
962
886
  tracker.shift(2);
963
887
  const value = state.indentLines(
964
- state.containerFlow(node2, tracker.current()),
888
+ state.containerFlow(node, tracker.current()),
965
889
  map$1
966
890
  );
967
891
  exit2();
@@ -1019,12 +943,12 @@ function longestStreak(value, substring) {
1019
943
  }
1020
944
  return max;
1021
945
  }
1022
- function formatCodeAsIndented(node2, state) {
946
+ function formatCodeAsIndented(node, state) {
1023
947
  return Boolean(
1024
- state.options.fences === false && node2.value && // If there’s no info…
1025
- !node2.lang && // And there’s a non-whitespace character…
1026
- /[^ \r\n]/.test(node2.value) && // And the value doesn’t start or end in a blank…
1027
- !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node2.value)
948
+ state.options.fences === false && node.value && // If there’s no info…
949
+ !node.lang && // And there’s a non-whitespace character…
950
+ /[^ \r\n]/.test(node.value) && // And the value doesn’t start or end in a blank…
951
+ !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value)
1028
952
  );
1029
953
  }
1030
954
  function checkFence(state) {
@@ -1036,11 +960,11 @@ function checkFence(state) {
1036
960
  }
1037
961
  return marker;
1038
962
  }
1039
- function code$1(node2, _, state, info) {
963
+ function code$1(node, _, state, info) {
1040
964
  const marker = checkFence(state);
1041
- const raw = node2.value || "";
965
+ const raw = node.value || "";
1042
966
  const suffix = marker === "`" ? "GraveAccent" : "Tilde";
1043
- if (formatCodeAsIndented(node2, state)) {
967
+ if (formatCodeAsIndented(node, state)) {
1044
968
  const exit3 = state.enter("codeIndented");
1045
969
  const value2 = state.indentLines(raw, map);
1046
970
  exit3();
@@ -1050,10 +974,10 @@ function code$1(node2, _, state, info) {
1050
974
  const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
1051
975
  const exit2 = state.enter("codeFenced");
1052
976
  let value = tracker.move(sequence);
1053
- if (node2.lang) {
977
+ if (node.lang) {
1054
978
  const subexit = state.enter(`codeFencedLang${suffix}`);
1055
979
  value += tracker.move(
1056
- state.safe(node2.lang, {
980
+ state.safe(node.lang, {
1057
981
  before: value,
1058
982
  after: " ",
1059
983
  encode: ["`"],
@@ -1062,11 +986,11 @@ function code$1(node2, _, state, info) {
1062
986
  );
1063
987
  subexit();
1064
988
  }
1065
- if (node2.lang && node2.meta) {
989
+ if (node.lang && node.meta) {
1066
990
  const subexit = state.enter(`codeFencedMeta${suffix}`);
1067
991
  value += tracker.move(" ");
1068
992
  value += tracker.move(
1069
- state.safe(node2.meta, {
993
+ state.safe(node.meta, {
1070
994
  before: value,
1071
995
  after: "\n",
1072
996
  encode: ["`"],
@@ -1095,7 +1019,7 @@ function checkQuote(state) {
1095
1019
  }
1096
1020
  return marker;
1097
1021
  }
1098
- function definition(node2, _, state, info) {
1022
+ function definition(node, _, state, info) {
1099
1023
  const quote = checkQuote(state);
1100
1024
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1101
1025
  const exit2 = state.enter("definition");
@@ -1103,7 +1027,7 @@ function definition(node2, _, state, info) {
1103
1027
  const tracker = state.createTracker(info);
1104
1028
  let value = tracker.move("[");
1105
1029
  value += tracker.move(
1106
- state.safe(state.associationId(node2), {
1030
+ state.safe(state.associationId(node), {
1107
1031
  before: value,
1108
1032
  after: "]",
1109
1033
  ...tracker.current()
@@ -1113,31 +1037,31 @@ function definition(node2, _, state, info) {
1113
1037
  subexit();
1114
1038
  if (
1115
1039
  // If there’s no url, or…
1116
- !node2.url || // If there are control characters or whitespace.
1117
- /[\0- \u007F]/.test(node2.url)
1040
+ !node.url || // If there are control characters or whitespace.
1041
+ /[\0- \u007F]/.test(node.url)
1118
1042
  ) {
1119
1043
  subexit = state.enter("destinationLiteral");
1120
1044
  value += tracker.move("<");
1121
1045
  value += tracker.move(
1122
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1046
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1123
1047
  );
1124
1048
  value += tracker.move(">");
1125
1049
  } else {
1126
1050
  subexit = state.enter("destinationRaw");
1127
1051
  value += tracker.move(
1128
- state.safe(node2.url, {
1052
+ state.safe(node.url, {
1129
1053
  before: value,
1130
- after: node2.title ? " " : "\n",
1054
+ after: node.title ? " " : "\n",
1131
1055
  ...tracker.current()
1132
1056
  })
1133
1057
  );
1134
1058
  }
1135
1059
  subexit();
1136
- if (node2.title) {
1060
+ if (node.title) {
1137
1061
  subexit = state.enter(`title${suffix}`);
1138
1062
  value += tracker.move(" " + quote);
1139
1063
  value += tracker.move(
1140
- state.safe(node2.title, {
1064
+ state.safe(node.title, {
1141
1065
  before: value,
1142
1066
  after: quote,
1143
1067
  ...tracker.current()
@@ -1159,13 +1083,13 @@ function checkEmphasis(state) {
1159
1083
  return marker;
1160
1084
  }
1161
1085
  emphasis.peek = emphasisPeek;
1162
- function emphasis(node2, _, state, info) {
1086
+ function emphasis(node, _, state, info) {
1163
1087
  const marker = checkEmphasis(state);
1164
1088
  const exit2 = state.enter("emphasis");
1165
1089
  const tracker = state.createTracker(info);
1166
1090
  let value = tracker.move(marker);
1167
1091
  value += tracker.move(
1168
- state.containerPhrasing(node2, {
1092
+ state.containerPhrasing(node, {
1169
1093
  before: value,
1170
1094
  after: marker,
1171
1095
  ...tracker.current()
@@ -1178,60 +1102,45 @@ function emphasis(node2, _, state, info) {
1178
1102
  function emphasisPeek(_, _1, state) {
1179
1103
  return state.options.emphasis || "*";
1180
1104
  }
1181
- const emptyOptions$1 = {};
1182
- function toString(value, options) {
1183
- const settings = emptyOptions$1;
1184
- const includeImageAlt = typeof settings.includeImageAlt === "boolean" ? settings.includeImageAlt : true;
1185
- const includeHtml = typeof settings.includeHtml === "boolean" ? settings.includeHtml : true;
1186
- return one(value, includeImageAlt, includeHtml);
1187
- }
1188
- function one(value, includeImageAlt, includeHtml) {
1189
- if (node(value)) {
1190
- if ("value" in value) {
1191
- return value.type === "html" && !includeHtml ? "" : value.value;
1192
- }
1193
- if (includeImageAlt && "alt" in value && value.alt) {
1194
- return value.alt;
1195
- }
1196
- if ("children" in value) {
1197
- return all(value.children, includeImageAlt, includeHtml);
1198
- }
1199
- }
1200
- if (Array.isArray(value)) {
1201
- return all(value, includeImageAlt, includeHtml);
1105
+ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
1106
+ let reverse;
1107
+ let test;
1108
+ let visitor;
1109
+ if (typeof testOrVisitor === "function" && typeof visitorOrReverse !== "function") {
1110
+ test = void 0;
1111
+ visitor = testOrVisitor;
1112
+ reverse = visitorOrReverse;
1113
+ } else {
1114
+ test = testOrVisitor;
1115
+ visitor = visitorOrReverse;
1116
+ reverse = maybeReverse;
1202
1117
  }
1203
- return "";
1204
- }
1205
- function all(values, includeImageAlt, includeHtml) {
1206
- const result = [];
1207
- let index = -1;
1208
- while (++index < values.length) {
1209
- result[index] = one(values[index], includeImageAlt, includeHtml);
1118
+ unistUtilVisitParents.visitParents(tree, test, overload, reverse);
1119
+ function overload(node, parents) {
1120
+ const parent = parents[parents.length - 1];
1121
+ const index = parent ? parent.children.indexOf(node) : void 0;
1122
+ return visitor(node, index, parent);
1210
1123
  }
1211
- return result.join("");
1212
1124
  }
1213
- function node(value) {
1214
- return Boolean(value && typeof value === "object");
1215
- }
1216
- function formatHeadingAsSetext(node2, state) {
1125
+ function formatHeadingAsSetext(node, state) {
1217
1126
  let literalWithBreak = false;
1218
- unistUtilVisit.visit(node2, function(node3) {
1219
- if ("value" in node3 && /\r?\n|\r/.test(node3.value) || node3.type === "break") {
1127
+ visit(node, function(node2) {
1128
+ if ("value" in node2 && /\r?\n|\r/.test(node2.value) || node2.type === "break") {
1220
1129
  literalWithBreak = true;
1221
- return unistUtilVisit.EXIT;
1130
+ return unistUtilVisitParents.EXIT;
1222
1131
  }
1223
1132
  });
1224
1133
  return Boolean(
1225
- (!node2.depth || node2.depth < 3) && toString(node2) && (state.options.setext || literalWithBreak)
1134
+ (!node.depth || node.depth < 3) && mdastUtilToString.toString(node) && (state.options.setext || literalWithBreak)
1226
1135
  );
1227
1136
  }
1228
- function heading(node2, _, state, info) {
1229
- const rank = Math.max(Math.min(6, node2.depth || 1), 1);
1137
+ function heading(node, _, state, info) {
1138
+ const rank = Math.max(Math.min(6, node.depth || 1), 1);
1230
1139
  const tracker = state.createTracker(info);
1231
- if (formatHeadingAsSetext(node2, state)) {
1140
+ if (formatHeadingAsSetext(node, state)) {
1232
1141
  const exit3 = state.enter("headingSetext");
1233
1142
  const subexit2 = state.enter("phrasing");
1234
- const value2 = state.containerPhrasing(node2, {
1143
+ const value2 = state.containerPhrasing(node, {
1235
1144
  ...tracker.current(),
1236
1145
  before: "\n",
1237
1146
  after: "\n"
@@ -1249,7 +1158,7 @@ function heading(node2, _, state, info) {
1249
1158
  const exit2 = state.enter("headingAtx");
1250
1159
  const subexit = state.enter("phrasing");
1251
1160
  tracker.move(sequence + " ");
1252
- let value = state.containerPhrasing(node2, {
1161
+ let value = state.containerPhrasing(node, {
1253
1162
  before: "# ",
1254
1163
  after: "\n",
1255
1164
  ...tracker.current()
@@ -1266,14 +1175,14 @@ function heading(node2, _, state, info) {
1266
1175
  return value;
1267
1176
  }
1268
1177
  html.peek = htmlPeek;
1269
- function html(node2) {
1270
- return node2.value || "";
1178
+ function html(node) {
1179
+ return node.value || "";
1271
1180
  }
1272
1181
  function htmlPeek() {
1273
1182
  return "<";
1274
1183
  }
1275
1184
  image.peek = imagePeek;
1276
- function image(node2, _, state, info) {
1185
+ function image(node, _, state, info) {
1277
1186
  const quote = checkQuote(state);
1278
1187
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1279
1188
  const exit2 = state.enter("image");
@@ -1281,37 +1190,37 @@ function image(node2, _, state, info) {
1281
1190
  const tracker = state.createTracker(info);
1282
1191
  let value = tracker.move("![");
1283
1192
  value += tracker.move(
1284
- state.safe(node2.alt, { before: value, after: "]", ...tracker.current() })
1193
+ state.safe(node.alt, { before: value, after: "]", ...tracker.current() })
1285
1194
  );
1286
1195
  value += tracker.move("](");
1287
1196
  subexit();
1288
1197
  if (
1289
1198
  // If there’s no url but there is a title…
1290
- !node2.url && node2.title || // If there are control characters or whitespace.
1291
- /[\0- \u007F]/.test(node2.url)
1199
+ !node.url && node.title || // If there are control characters or whitespace.
1200
+ /[\0- \u007F]/.test(node.url)
1292
1201
  ) {
1293
1202
  subexit = state.enter("destinationLiteral");
1294
1203
  value += tracker.move("<");
1295
1204
  value += tracker.move(
1296
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1205
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1297
1206
  );
1298
1207
  value += tracker.move(">");
1299
1208
  } else {
1300
1209
  subexit = state.enter("destinationRaw");
1301
1210
  value += tracker.move(
1302
- state.safe(node2.url, {
1211
+ state.safe(node.url, {
1303
1212
  before: value,
1304
- after: node2.title ? " " : ")",
1213
+ after: node.title ? " " : ")",
1305
1214
  ...tracker.current()
1306
1215
  })
1307
1216
  );
1308
1217
  }
1309
1218
  subexit();
1310
- if (node2.title) {
1219
+ if (node.title) {
1311
1220
  subexit = state.enter(`title${suffix}`);
1312
1221
  value += tracker.move(" " + quote);
1313
1222
  value += tracker.move(
1314
- state.safe(node2.title, {
1223
+ state.safe(node.title, {
1315
1224
  before: value,
1316
1225
  after: quote,
1317
1226
  ...tracker.current()
@@ -1328,13 +1237,13 @@ function imagePeek() {
1328
1237
  return "!";
1329
1238
  }
1330
1239
  imageReference.peek = imageReferencePeek;
1331
- function imageReference(node2, _, state, info) {
1332
- const type = node2.referenceType;
1240
+ function imageReference(node, _, state, info) {
1241
+ const type = node.referenceType;
1333
1242
  const exit2 = state.enter("imageReference");
1334
1243
  let subexit = state.enter("label");
1335
1244
  const tracker = state.createTracker(info);
1336
1245
  let value = tracker.move("![");
1337
- const alt = state.safe(node2.alt, {
1246
+ const alt = state.safe(node.alt, {
1338
1247
  before: value,
1339
1248
  after: "]",
1340
1249
  ...tracker.current()
@@ -1344,7 +1253,7 @@ function imageReference(node2, _, state, info) {
1344
1253
  const stack = state.stack;
1345
1254
  state.stack = [];
1346
1255
  subexit = state.enter("reference");
1347
- const reference = state.safe(state.associationId(node2), {
1256
+ const reference = state.safe(state.associationId(node), {
1348
1257
  before: value,
1349
1258
  after: "]",
1350
1259
  ...tracker.current()
@@ -1365,8 +1274,8 @@ function imageReferencePeek() {
1365
1274
  return "!";
1366
1275
  }
1367
1276
  inlineCode.peek = inlineCodePeek;
1368
- function inlineCode(node2, _, state) {
1369
- let value = node2.value || "";
1277
+ function inlineCode(node, _, state) {
1278
+ let value = node.value || "";
1370
1279
  let sequence = "`";
1371
1280
  let index = -1;
1372
1281
  while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
@@ -1393,33 +1302,33 @@ function inlineCode(node2, _, state) {
1393
1302
  function inlineCodePeek() {
1394
1303
  return "`";
1395
1304
  }
1396
- function formatLinkAsAutolink(node2, state) {
1397
- const raw = toString(node2);
1305
+ function formatLinkAsAutolink(node, state) {
1306
+ const raw = mdastUtilToString.toString(node);
1398
1307
  return Boolean(
1399
1308
  !state.options.resourceLink && // If there’s a url…
1400
- node2.url && // And there’s a no title…
1401
- !node2.title && // And the content of `node` is a single text node…
1402
- node2.children && node2.children.length === 1 && node2.children[0].type === "text" && // And if the url is the same as the content…
1403
- (raw === node2.url || "mailto:" + raw === node2.url) && // And that starts w/ a protocol…
1404
- /^[a-z][a-z+.-]+:/i.test(node2.url) && // And that doesn’t contain ASCII control codes (character escapes and
1309
+ node.url && // And there’s a no title…
1310
+ !node.title && // And the content of `node` is a single text node…
1311
+ node.children && node.children.length === 1 && node.children[0].type === "text" && // And if the url is the same as the content…
1312
+ (raw === node.url || "mailto:" + raw === node.url) && // And that starts w/ a protocol…
1313
+ /^[a-z][a-z+.-]+:/i.test(node.url) && // And that doesn’t contain ASCII control codes (character escapes and
1405
1314
  // references don’t work), space, or angle brackets…
1406
- !/[\0- <>\u007F]/.test(node2.url)
1315
+ !/[\0- <>\u007F]/.test(node.url)
1407
1316
  );
1408
1317
  }
1409
1318
  link.peek = linkPeek;
1410
- function link(node2, _, state, info) {
1319
+ function link(node, _, state, info) {
1411
1320
  const quote = checkQuote(state);
1412
1321
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1413
1322
  const tracker = state.createTracker(info);
1414
1323
  let exit2;
1415
1324
  let subexit;
1416
- if (formatLinkAsAutolink(node2, state)) {
1325
+ if (formatLinkAsAutolink(node, state)) {
1417
1326
  const stack = state.stack;
1418
1327
  state.stack = [];
1419
1328
  exit2 = state.enter("autolink");
1420
1329
  let value2 = tracker.move("<");
1421
1330
  value2 += tracker.move(
1422
- state.containerPhrasing(node2, {
1331
+ state.containerPhrasing(node, {
1423
1332
  before: value2,
1424
1333
  after: ">",
1425
1334
  ...tracker.current()
@@ -1434,7 +1343,7 @@ function link(node2, _, state, info) {
1434
1343
  subexit = state.enter("label");
1435
1344
  let value = tracker.move("[");
1436
1345
  value += tracker.move(
1437
- state.containerPhrasing(node2, {
1346
+ state.containerPhrasing(node, {
1438
1347
  before: value,
1439
1348
  after: "](",
1440
1349
  ...tracker.current()
@@ -1444,31 +1353,31 @@ function link(node2, _, state, info) {
1444
1353
  subexit();
1445
1354
  if (
1446
1355
  // If there’s no url but there is a title…
1447
- !node2.url && node2.title || // If there are control characters or whitespace.
1448
- /[\0- \u007F]/.test(node2.url)
1356
+ !node.url && node.title || // If there are control characters or whitespace.
1357
+ /[\0- \u007F]/.test(node.url)
1449
1358
  ) {
1450
1359
  subexit = state.enter("destinationLiteral");
1451
1360
  value += tracker.move("<");
1452
1361
  value += tracker.move(
1453
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1362
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1454
1363
  );
1455
1364
  value += tracker.move(">");
1456
1365
  } else {
1457
1366
  subexit = state.enter("destinationRaw");
1458
1367
  value += tracker.move(
1459
- state.safe(node2.url, {
1368
+ state.safe(node.url, {
1460
1369
  before: value,
1461
- after: node2.title ? " " : ")",
1370
+ after: node.title ? " " : ")",
1462
1371
  ...tracker.current()
1463
1372
  })
1464
1373
  );
1465
1374
  }
1466
1375
  subexit();
1467
- if (node2.title) {
1376
+ if (node.title) {
1468
1377
  subexit = state.enter(`title${suffix}`);
1469
1378
  value += tracker.move(" " + quote);
1470
1379
  value += tracker.move(
1471
- state.safe(node2.title, {
1380
+ state.safe(node.title, {
1472
1381
  before: value,
1473
1382
  after: quote,
1474
1383
  ...tracker.current()
@@ -1481,17 +1390,17 @@ function link(node2, _, state, info) {
1481
1390
  exit2();
1482
1391
  return value;
1483
1392
  }
1484
- function linkPeek(node2, _, state) {
1485
- return formatLinkAsAutolink(node2, state) ? "<" : "[";
1393
+ function linkPeek(node, _, state) {
1394
+ return formatLinkAsAutolink(node, state) ? "<" : "[";
1486
1395
  }
1487
1396
  linkReference.peek = linkReferencePeek;
1488
- function linkReference(node2, _, state, info) {
1489
- const type = node2.referenceType;
1397
+ function linkReference(node, _, state, info) {
1398
+ const type = node.referenceType;
1490
1399
  const exit2 = state.enter("linkReference");
1491
1400
  let subexit = state.enter("label");
1492
1401
  const tracker = state.createTracker(info);
1493
1402
  let value = tracker.move("[");
1494
- const text2 = state.containerPhrasing(node2, {
1403
+ const text2 = state.containerPhrasing(node, {
1495
1404
  before: value,
1496
1405
  after: "]",
1497
1406
  ...tracker.current()
@@ -1501,7 +1410,7 @@ function linkReference(node2, _, state, info) {
1501
1410
  const stack = state.stack;
1502
1411
  state.stack = [];
1503
1412
  subexit = state.enter("reference");
1504
- const reference = state.safe(state.associationId(node2), {
1413
+ const reference = state.safe(state.associationId(node), {
1505
1414
  before: value,
1506
1415
  after: "]",
1507
1416
  ...tracker.current()
@@ -1566,14 +1475,14 @@ function checkRule(state) {
1566
1475
  }
1567
1476
  return marker;
1568
1477
  }
1569
- function list(node2, parent, state, info) {
1478
+ function list(node, parent, state, info) {
1570
1479
  const exit2 = state.enter("list");
1571
1480
  const bulletCurrent = state.bulletCurrent;
1572
- let bullet = node2.ordered ? checkBulletOrdered(state) : checkBullet(state);
1573
- const bulletOther = node2.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1481
+ let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
1482
+ const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1574
1483
  let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
1575
- if (!node2.ordered) {
1576
- const firstListItem = node2.children ? node2.children[0] : void 0;
1484
+ if (!node.ordered) {
1485
+ const firstListItem = node.children ? node.children[0] : void 0;
1577
1486
  if (
1578
1487
  // Bullet could be used as a thematic break marker:
1579
1488
  (bullet === "*" || bullet === "-") && // Empty first list item:
@@ -1585,8 +1494,8 @@ function list(node2, parent, state, info) {
1585
1494
  }
1586
1495
  if (checkRule(state) === bullet && firstListItem) {
1587
1496
  let index = -1;
1588
- while (++index < node2.children.length) {
1589
- const item = node2.children[index];
1497
+ while (++index < node.children.length) {
1498
+ const item = node.children[index];
1590
1499
  if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
1591
1500
  useDifferentMarker = true;
1592
1501
  break;
@@ -1598,7 +1507,7 @@ function list(node2, parent, state, info) {
1598
1507
  bullet = bulletOther;
1599
1508
  }
1600
1509
  state.bulletCurrent = bullet;
1601
- const value = state.containerFlow(node2, info);
1510
+ const value = state.containerFlow(node, info);
1602
1511
  state.bulletLastUsed = bullet;
1603
1512
  state.bulletCurrent = bulletCurrent;
1604
1513
  exit2();
@@ -1613,14 +1522,14 @@ function checkListItemIndent(state) {
1613
1522
  }
1614
1523
  return style;
1615
1524
  }
1616
- function listItem(node2, parent, state, info) {
1525
+ function listItem(node, parent, state, info) {
1617
1526
  const listItemIndent = checkListItemIndent(state);
1618
1527
  let bullet = state.bulletCurrent || checkBullet(state);
1619
1528
  if (parent && parent.type === "list" && parent.ordered) {
1620
- bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node2)) + bullet;
1529
+ bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
1621
1530
  }
1622
1531
  let size = bullet.length + 1;
1623
- if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node2.spread)) {
1532
+ if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) {
1624
1533
  size = Math.ceil(size / 4) * 4;
1625
1534
  }
1626
1535
  const tracker = state.createTracker(info);
@@ -1628,7 +1537,7 @@ function listItem(node2, parent, state, info) {
1628
1537
  tracker.shift(size);
1629
1538
  const exit2 = state.enter("listItem");
1630
1539
  const value = state.indentLines(
1631
- state.containerFlow(node2, tracker.current()),
1540
+ state.containerFlow(node, tracker.current()),
1632
1541
  map2
1633
1542
  );
1634
1543
  exit2();
@@ -1640,10 +1549,10 @@ function listItem(node2, parent, state, info) {
1640
1549
  return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
1641
1550
  }
1642
1551
  }
1643
- function paragraph(node2, _, state, info) {
1552
+ function paragraph(node, _, state, info) {
1644
1553
  const exit2 = state.enter("paragraph");
1645
1554
  const subexit = state.enter("phrasing");
1646
- const value = state.containerPhrasing(node2, info);
1555
+ const value = state.containerPhrasing(node, info);
1647
1556
  subexit();
1648
1557
  exit2();
1649
1558
  return value;
@@ -1674,12 +1583,12 @@ const phrasing = (
1674
1583
  "textDirective"
1675
1584
  ])
1676
1585
  );
1677
- function root(node2, _, state, info) {
1678
- const hasPhrasing = node2.children.some(function(d) {
1586
+ function root(node, _, state, info) {
1587
+ const hasPhrasing = node.children.some(function(d) {
1679
1588
  return phrasing(d);
1680
1589
  });
1681
1590
  const fn = hasPhrasing ? state.containerPhrasing : state.containerFlow;
1682
- return fn.call(state, node2, info);
1591
+ return fn.call(state, node, info);
1683
1592
  }
1684
1593
  function checkStrong(state) {
1685
1594
  const marker = state.options.strong || "*";
@@ -1691,13 +1600,13 @@ function checkStrong(state) {
1691
1600
  return marker;
1692
1601
  }
1693
1602
  strong.peek = strongPeek;
1694
- function strong(node2, _, state, info) {
1603
+ function strong(node, _, state, info) {
1695
1604
  const marker = checkStrong(state);
1696
1605
  const exit2 = state.enter("strong");
1697
1606
  const tracker = state.createTracker(info);
1698
1607
  let value = tracker.move(marker + marker);
1699
1608
  value += tracker.move(
1700
- state.containerPhrasing(node2, {
1609
+ state.containerPhrasing(node, {
1701
1610
  before: value,
1702
1611
  after: marker,
1703
1612
  ...tracker.current()
@@ -1710,8 +1619,8 @@ function strong(node2, _, state, info) {
1710
1619
  function strongPeek(_, _1, state) {
1711
1620
  return state.options.strong || "*";
1712
1621
  }
1713
- function text$1(node2, _, state, info) {
1714
- return state.safe(node2.value, info);
1622
+ function text$1(node, _, state, info) {
1623
+ return state.safe(node.value, info);
1715
1624
  }
1716
1625
  function checkRuleRepetition(state) {
1717
1626
  const repetition = state.options.ruleRepetition || 3;
@@ -1797,9 +1706,9 @@ function exitCodeText(token) {
1797
1706
  if (this.data.inTable) {
1798
1707
  value = value.replace(/\\([\\|])/g, replace);
1799
1708
  }
1800
- const node2 = this.stack[this.stack.length - 1];
1801
- ok$1(node2.type === "inlineCode");
1802
- node2.value = value;
1709
+ const node = this.stack[this.stack.length - 1];
1710
+ ok$1(node.type === "inlineCode");
1711
+ node.value = value;
1803
1712
  this.exit(token);
1804
1713
  }
1805
1714
  function replace($0, $1) {
@@ -1837,18 +1746,18 @@ function gfmTableToMarkdown(options) {
1837
1746
  tableRow: handleTableRow
1838
1747
  }
1839
1748
  };
1840
- function handleTable(node2, _, state, info) {
1841
- return serializeData(handleTableAsData(node2, state, info), node2.align);
1749
+ function handleTable(node, _, state, info) {
1750
+ return serializeData(handleTableAsData(node, state, info), node.align);
1842
1751
  }
1843
- function handleTableRow(node2, _, state, info) {
1844
- const row = handleTableRowAsData(node2, state, info);
1752
+ function handleTableRow(node, _, state, info) {
1753
+ const row = handleTableRowAsData(node, state, info);
1845
1754
  const value = serializeData([row]);
1846
1755
  return value.slice(0, value.indexOf("\n"));
1847
1756
  }
1848
- function handleTableCell(node2, _, state, info) {
1757
+ function handleTableCell(node, _, state, info) {
1849
1758
  const exit2 = state.enter("tableCell");
1850
1759
  const subexit = state.enter("phrasing");
1851
- const value = state.containerPhrasing(node2, {
1760
+ const value = state.containerPhrasing(node, {
1852
1761
  ...info,
1853
1762
  before: around,
1854
1763
  after: around
@@ -1868,8 +1777,8 @@ function gfmTableToMarkdown(options) {
1868
1777
  stringLength
1869
1778
  });
1870
1779
  }
1871
- function handleTableAsData(node2, state, info) {
1872
- const children = node2.children;
1780
+ function handleTableAsData(node, state, info) {
1781
+ const children = node.children;
1873
1782
  let index = -1;
1874
1783
  const result = [];
1875
1784
  const subexit = state.enter("table");
@@ -1879,19 +1788,19 @@ function gfmTableToMarkdown(options) {
1879
1788
  subexit();
1880
1789
  return result;
1881
1790
  }
1882
- function handleTableRowAsData(node2, state, info) {
1883
- const children = node2.children;
1791
+ function handleTableRowAsData(node, state, info) {
1792
+ const children = node.children;
1884
1793
  let index = -1;
1885
1794
  const result = [];
1886
1795
  const subexit = state.enter("tableRow");
1887
1796
  while (++index < children.length) {
1888
- result[index] = handleTableCell(children[index], node2, state, info);
1797
+ result[index] = handleTableCell(children[index], node, state, info);
1889
1798
  }
1890
1799
  subexit();
1891
1800
  return result;
1892
1801
  }
1893
- function inlineCodeWithTable(node2, parent, state) {
1894
- let value = handle.inlineCode(node2, parent, state);
1802
+ function inlineCodeWithTable(node, parent, state) {
1803
+ let value = handle.inlineCode(node, parent, state);
1895
1804
  if (state.stack.includes("tableCell")) {
1896
1805
  value = value.replace(/\|/g, "\\$&");
1897
1806
  }
@@ -1914,16 +1823,16 @@ function gfmTaskListItemToMarkdown() {
1914
1823
  };
1915
1824
  }
1916
1825
  function exitCheck(token) {
1917
- const node2 = this.stack[this.stack.length - 2];
1918
- ok$1(node2.type === "listItem");
1919
- node2.checked = token.type === "taskListCheckValueChecked";
1826
+ const node = this.stack[this.stack.length - 2];
1827
+ ok$1(node.type === "listItem");
1828
+ node.checked = token.type === "taskListCheckValueChecked";
1920
1829
  }
1921
1830
  function exitParagraphWithTaskListItem(token) {
1922
1831
  const parent = this.stack[this.stack.length - 2];
1923
1832
  if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
1924
- const node2 = this.stack[this.stack.length - 1];
1925
- ok$1(node2.type === "paragraph");
1926
- const head = node2.children[0];
1833
+ const node = this.stack[this.stack.length - 1];
1834
+ ok$1(node.type === "paragraph");
1835
+ const head = node.children[0];
1927
1836
  if (head && head.type === "text") {
1928
1837
  const siblings = parent.children;
1929
1838
  let index = -1;
@@ -1935,29 +1844,29 @@ function exitParagraphWithTaskListItem(token) {
1935
1844
  break;
1936
1845
  }
1937
1846
  }
1938
- if (firstParaghraph === node2) {
1847
+ if (firstParaghraph === node) {
1939
1848
  head.value = head.value.slice(1);
1940
1849
  if (head.value.length === 0) {
1941
- node2.children.shift();
1942
- } else if (node2.position && head.position && typeof head.position.start.offset === "number") {
1850
+ node.children.shift();
1851
+ } else if (node.position && head.position && typeof head.position.start.offset === "number") {
1943
1852
  head.position.start.column++;
1944
1853
  head.position.start.offset++;
1945
- node2.position.start = Object.assign({}, head.position.start);
1854
+ node.position.start = Object.assign({}, head.position.start);
1946
1855
  }
1947
1856
  }
1948
1857
  }
1949
1858
  }
1950
1859
  this.exit(token);
1951
1860
  }
1952
- function listItemWithTaskListItem(node2, parent, state, info) {
1953
- const head = node2.children[0];
1954
- const checkable = typeof node2.checked === "boolean" && head && head.type === "paragraph";
1955
- const checkbox = "[" + (node2.checked ? "x" : " ") + "] ";
1861
+ function listItemWithTaskListItem(node, parent, state, info) {
1862
+ const head = node.children[0];
1863
+ const checkable = typeof node.checked === "boolean" && head && head.type === "paragraph";
1864
+ const checkbox = "[" + (node.checked ? "x" : " ") + "] ";
1956
1865
  const tracker = state.createTracker(info);
1957
1866
  if (checkable) {
1958
1867
  tracker.move(checkbox);
1959
1868
  }
1960
- let value = handle.listItem(node2, parent, state, {
1869
+ let value = handle.listItem(node, parent, state, {
1961
1870
  ...info,
1962
1871
  ...tracker.current()
1963
1872
  });
@@ -2016,18 +1925,18 @@ function splice(list2, start, remove, items) {
2016
1925
  }
2017
1926
  const hasOwnProperty = {}.hasOwnProperty;
2018
1927
  function combineExtensions(extensions) {
2019
- const all2 = {};
1928
+ const all = {};
2020
1929
  let index = -1;
2021
1930
  while (++index < extensions.length) {
2022
- syntaxExtension(all2, extensions[index]);
1931
+ syntaxExtension(all, extensions[index]);
2023
1932
  }
2024
- return all2;
1933
+ return all;
2025
1934
  }
2026
- function syntaxExtension(all2, extension) {
1935
+ function syntaxExtension(all, extension) {
2027
1936
  let hook;
2028
1937
  for (hook in extension) {
2029
- const maybe = hasOwnProperty.call(all2, hook) ? all2[hook] : void 0;
2030
- const left = maybe || (all2[hook] = {});
1938
+ const maybe = hasOwnProperty.call(all, hook) ? all[hook] : void 0;
1939
+ const left = maybe || (all[hook] = {});
2031
1940
  const right = extension[hook];
2032
1941
  let code2;
2033
1942
  if (right) {
@@ -3478,9 +3387,11 @@ var __component__$1 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
3478
3387
  const NcRichTextCopyButton = __component__$1.exports;
3479
3388
  function remarkPlaceholder() {
3480
3389
  return function(ast) {
3481
- unistUtilVisit.visit(ast, (node2) => node2.type === "text", visitor);
3482
- function visitor(node2, index, parent) {
3483
- const placeholders = node2.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3390
+ unistUtilVisitParents.visitParents(ast, (node) => node.type === "text", visitor);
3391
+ function visitor(node, ancestors) {
3392
+ const parent = ancestors.at(-1);
3393
+ const index = parent.children.indexOf(node);
3394
+ const placeholders = node.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3484
3395
  const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
3485
3396
  if (!matches) {
3486
3397
  return unistBuilder.u("text", entry);
@@ -3504,10 +3415,9 @@ function prepareTextNode({ h, context }, text2) {
3504
3415
  return entry;
3505
3416
  }
3506
3417
  const { component, props } = entry;
3507
- const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
3508
3418
  return h(component, {
3509
3419
  props,
3510
- class: componentClass
3420
+ class: "rich-text--component"
3511
3421
  });
3512
3422
  });
3513
3423
  }
@@ -3517,28 +3427,32 @@ function prepareTextNode({ h, context }, text2) {
3517
3427
  * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
3518
3428
  * SPDX-License-Identifier: AGPL-3.0-or-later
3519
3429
  */
3520
- function isCodeNode(node2) {
3521
- return ["code", "inlineCode"].includes(node2.type);
3430
+ function isCodeNode(node) {
3431
+ return ["code", "inlineCode"].includes(node.type);
3522
3432
  }
3523
3433
  const remarkStripCode = function() {
3524
3434
  return function(tree) {
3525
- unistUtilVisit.visit(tree, isCodeNode, (node2, index, parent) => {
3435
+ unistUtilVisitParents.visitParents(tree, isCodeNode, (node, ancestors) => {
3436
+ const parent = ancestors.at(-1);
3437
+ const index = parent.children.indexOf(node);
3526
3438
  parent.children.splice(index, 1, {
3527
- ...node2,
3439
+ ...node,
3528
3440
  value: ""
3529
3441
  });
3530
- return [unistUtilVisit.SKIP, index + 1];
3442
+ return [unistUtilVisitParents.SKIP, index + 1];
3531
3443
  });
3532
3444
  };
3533
3445
  };
3534
3446
  function remarkUnescape() {
3535
3447
  return function(tree) {
3536
- unistUtilVisit.visit(tree, (node2) => ["text", "code", "inlineCode"].includes(node2.type), (node2, index, parent) => {
3448
+ unistUtilVisitParents.visitParents(tree, (node) => ["text", "code", "inlineCode"].includes(node.type), (node, ancestors) => {
3449
+ const parent = ancestors.at(-1);
3450
+ const index = parent.children.indexOf(node);
3537
3451
  parent.children.splice(index, 1, {
3538
- ...node2,
3539
- value: node2.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3452
+ ...node,
3453
+ value: node.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3540
3454
  });
3541
- return [unistUtilVisit.SKIP, index + 1];
3455
+ return [unistUtilVisitParents.SKIP, index + 1];
3542
3456
  });
3543
3457
  };
3544
3458
  }
@@ -3655,8 +3569,8 @@ const _sfc_main = {
3655
3569
  useExtendedMarkdown: this.useExtendedMarkdown
3656
3570
  }).use(remarkUnescape).use(this.useExtendedMarkdown ? remarkGfm : void 0).use(breaks__default.default).use(remarkUnlinkProtocols__default.default, { except: LINK_PROTOCOLS }).use(remark2rehype__default.default, {
3657
3571
  handlers: {
3658
- component(toHast, node2) {
3659
- return toHast(node2, node2.component, { value: node2.value });
3572
+ component(toHast, node) {
3573
+ return toHast(node, node.component, { value: node.value });
3660
3574
  }
3661
3575
  }
3662
3576
  }).use(this.useExtendedMarkdown ? rehypeHighlight.value : void 0).use(remarkPlaceholder).use(rehypeExternalLinks__default.default, {
@@ -3719,6 +3633,15 @@ const _sfc_main = {
3719
3633
  }
3720
3634
  }, children);
3721
3635
  }
3636
+ const isAllowedScheme = /^(https?:\/\/|tel:|mailto:)/.test(attrs.attrs.href);
3637
+ if (isAllowedScheme) {
3638
+ attrs.attrs.href = attrs.attrs.href.trim();
3639
+ return h(autolink.NcRichTextExternalLink, attrs, children);
3640
+ } else {
3641
+ delete attrs.attrs.href;
3642
+ delete attrs.attrs.target;
3643
+ return h("span", attrs, children);
3644
+ }
3722
3645
  }
3723
3646
  return h(tag, attrs, children);
3724
3647
  }
@@ -3765,7 +3688,9 @@ const _sfc_main = {
3765
3688
  if (!this.useMarkdown && !this.useExtendedMarkdown) {
3766
3689
  return text2;
3767
3690
  }
3768
- return unified.unified().use(remarkParse__default.default).use(remarkStripCode).use(remarkStringify__default.default).processSync(text2).value;
3691
+ const processor = unified.unified();
3692
+ processor.compiler = (tree) => mdastUtilToString.toString(tree);
3693
+ return processor.use(remarkParse__default.default).use(remarkStripCode).processSync(text2).value;
3769
3694
  }
3770
3695
  },
3771
3696
  render(h) {
@@ -3780,9 +3705,9 @@ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
3780
3705
  _sfc_staticRenderFns,
3781
3706
  false,
3782
3707
  null,
3783
- "1b584119"
3708
+ "177dd7c0"
3784
3709
  );
3785
3710
  const NcRichText = __component__.exports;
3786
3711
  exports.NcReferenceList = NcReferenceList;
3787
3712
  exports.NcRichText = NcRichText;
3788
- //# sourceMappingURL=NcRichText-B1Fyj7k8.cjs.map
3713
+ //# sourceMappingURL=NcRichText-CiRdCF_B.cjs.map