@nextcloud/vue 9.6.0 → 9.8.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 (320) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/assets/{NcActionButton-Bb0ihLdt.css → NcActionButton-DLer-aUY.css} +3 -2
  3. package/dist/assets/{NcActionCheckbox-DLJQfCUI.css → NcActionCheckbox-wD8m_a8-.css} +3 -2
  4. package/dist/assets/{NcActionInput-BO4gR6sg.css → NcActionInput-t9WvlgV0.css} +66 -66
  5. package/dist/assets/{NcActionLink-DAEr-vmd.css → NcActionLink-b4Ph5q10.css} +3 -2
  6. package/dist/assets/{NcActionRadio-Bd4RFH-l.css → NcActionRadio-D2rLM1ci.css} +3 -2
  7. package/dist/assets/{NcActionRouter-DeYzeM5W.css → NcActionRouter-BWXfCfxM.css} +3 -2
  8. package/dist/assets/{NcActionText-D9InmayH.css → NcActionText-Dzegj6AY.css} +3 -2
  9. package/dist/assets/{NcActionTextEditable-TPYz4ma-.css → NcActionTextEditable-BlZeHZ7J.css} +66 -66
  10. package/dist/assets/{NcAppNavigation-f2zUqaiQ.css → NcAppNavigation-ykL7Wz6L.css} +18 -12
  11. package/dist/assets/{NcAppNavigationCaption-HUg9fMCm.css → NcAppNavigationCaption-ggcWspH2.css} +8 -8
  12. package/dist/assets/{NcAppNavigationItem-qicc4X_c.css → NcAppNavigationItem-DF81QkEz.css} +78 -40
  13. package/dist/assets/{NcAppNavigationNewItem-e_CtdnzP.css → NcAppNavigationNewItem-vxkB61-C.css} +42 -4
  14. package/dist/assets/{NcAppNavigationSearch-Bpd_RlYz.css → NcAppNavigationSearch-DD7mo6OW.css} +8 -5
  15. package/dist/assets/{NcAppNavigationSettings-BmfpoWXN.css → NcAppNavigationSettings-HQEDobBQ.css} +1 -1
  16. package/dist/assets/NcAppSettingsDialog-B6-RqGYA.css +221 -0
  17. package/dist/assets/{NcAppSettingsSection-ObwpPdgW.css → NcAppSettingsSection-DIw8GLHR.css} +7 -7
  18. package/dist/assets/{NcAppSidebar-Ci7hXMpX.css → NcAppSidebar-BMon2CtX.css} +116 -70
  19. package/dist/assets/{NcAvatar-CuPj3fbb.css → NcAvatar-Bs7qEhkA.css} +25 -25
  20. package/dist/assets/{NcBreadcrumb-D9N_qB_o.css → NcBreadcrumb-BxhZKQlW.css} +16 -16
  21. package/dist/assets/{NcButton-CCY9S6Db.css → NcButton-Bf9wuDV-.css} +53 -50
  22. package/dist/assets/{NcCheckboxRadioSwitch-BBLFj8M-.css → NcCheckboxRadioSwitch-CZYa6mnQ.css} +51 -49
  23. package/dist/assets/{NcColorPicker-CCanY5eB.css → NcColorPicker-DVYGs8R3.css} +32 -32
  24. package/dist/assets/{NcContent-CVIwhwfc.css → NcContent-DXc6geEw.css} +23 -11
  25. package/dist/assets/{NcEmptyContent-CLjlZ-UT.css → NcEmptyContent-DJMDuGVz.css} +10 -10
  26. package/dist/assets/{NcFormBoxItem-CATNOTQx.css → NcFormBoxItem-Bjbi17-B.css} +4 -0
  27. package/dist/assets/{NcFormGroup-BjWhd5Ky.css → NcFormGroup-qFucmL8a.css} +1 -1
  28. package/dist/assets/{NcHotkeyList-Braxeyah.css → NcHotkeyList-BfrEkKmK.css} +1 -1
  29. package/dist/assets/NcInputConfirmCancel-BEmwC87z.css +53 -0
  30. package/dist/assets/{NcInputField-DR0FULeu.css → NcInputField-DpyFJ1xw.css} +44 -44
  31. package/dist/assets/NcListItem-1uR7AJIf.css +219 -0
  32. package/dist/assets/{NcModal-CUh8AdAE.css → NcModal-UuJKmueo.css} +59 -59
  33. package/dist/assets/{NcNoteCard-DZSuYX4-.css → NcNoteCard-DfescGKl.css} +11 -11
  34. package/dist/assets/{NcPasswordField-ftYon3Xm.css → NcPasswordField-BN4HFgU5.css} +2 -2
  35. package/dist/assets/{NcRadioGroupButton-xGU7fVa3.css → NcRadioGroupButton-DUF_3DDU.css} +1 -1
  36. package/dist/assets/{NcRelatedResourcesPanel-D1efpH8E.css → NcRelatedResourcesPanel-CiG_Ixb6.css} +30 -30
  37. package/dist/assets/{NcRichContenteditable-Do20Rmk1.css → NcRichContenteditable-DNABzVif.css} +12 -12
  38. package/dist/assets/{NcRichText-ZpC0uhOy.css → NcRichText-D0Dv1hVB.css} +95 -102
  39. package/dist/assets/{NcTextArea-DF9NgPUa.css → NcTextArea-BxGe3Lqn.css} +28 -28
  40. package/dist/assets/autolink-C_iad4O_.css +25 -0
  41. package/dist/assets/{referencePickerModal-CpzDUJ5f.css → referencePickerModal-Dod7nzta.css} +18 -18
  42. package/dist/chunks/{NcActionButton-BuRnYpJX.mjs → NcActionButton-BJKJG2zO.mjs} +2 -2
  43. package/dist/chunks/{NcActionButton-BuRnYpJX.mjs.map → NcActionButton-BJKJG2zO.mjs.map} +1 -1
  44. package/dist/chunks/{NcActionButtonGroup-CrbcMWK-.mjs → NcActionButtonGroup-CgYSlRXJ.mjs} +2 -2
  45. package/dist/chunks/{NcActionButtonGroup-CrbcMWK-.mjs.map → NcActionButtonGroup-CgYSlRXJ.mjs.map} +1 -1
  46. package/dist/chunks/{NcActionCheckbox-CjawS972.mjs → NcActionCheckbox-D2Fu35M_.mjs} +2 -2
  47. package/dist/chunks/{NcActionCheckbox-CjawS972.mjs.map → NcActionCheckbox-D2Fu35M_.mjs.map} +1 -1
  48. package/dist/chunks/{NcActionInput-BrI5iKHo.mjs → NcActionInput-gv6uLn_N.mjs} +7 -7
  49. package/dist/chunks/{NcActionInput-BrI5iKHo.mjs.map → NcActionInput-gv6uLn_N.mjs.map} +1 -1
  50. package/dist/chunks/{NcActionLink-CCszAEdZ.mjs → NcActionLink-BFiaYt9A.mjs} +2 -2
  51. package/dist/chunks/{NcActionLink-CCszAEdZ.mjs.map → NcActionLink-BFiaYt9A.mjs.map} +1 -1
  52. package/dist/chunks/{NcActionRadio-BV9Ra5tq.mjs → NcActionRadio-BJ4i9n8a.mjs} +2 -2
  53. package/dist/chunks/{NcActionRadio-BV9Ra5tq.mjs.map → NcActionRadio-BJ4i9n8a.mjs.map} +1 -1
  54. package/dist/chunks/{NcActionRouter-CvDVCQiQ.mjs → NcActionRouter-vYFtIOzD.mjs} +2 -2
  55. package/dist/chunks/{NcActionRouter-CvDVCQiQ.mjs.map → NcActionRouter-vYFtIOzD.mjs.map} +1 -1
  56. package/dist/chunks/{NcActionText-SU4ghOlw.mjs → NcActionText-CQ9qwJ0p.mjs} +2 -2
  57. package/dist/chunks/{NcActionText-SU4ghOlw.mjs.map → NcActionText-CQ9qwJ0p.mjs.map} +1 -1
  58. package/dist/chunks/{NcActionTextEditable-BC66QDvV.mjs → NcActionTextEditable-Bd6fU8b3.mjs} +3 -3
  59. package/dist/chunks/NcActionTextEditable-Bd6fU8b3.mjs.map +1 -0
  60. package/dist/chunks/{NcActions-B_QR93qv.mjs → NcActions-fCXSb_0o.mjs} +3 -3
  61. package/dist/chunks/{NcActions-B_QR93qv.mjs.map → NcActions-fCXSb_0o.mjs.map} +1 -1
  62. package/dist/chunks/{NcAppContent-D27Kyq5N.mjs → NcAppContent-taTvqnvd.mjs} +3 -3
  63. package/dist/chunks/{NcAppContent-D27Kyq5N.mjs.map → NcAppContent-taTvqnvd.mjs.map} +1 -1
  64. package/dist/chunks/{NcAppNavigation-DQzgUarc.mjs → NcAppNavigation-Bb54U_qJ.mjs} +17 -6
  65. package/dist/chunks/NcAppNavigation-Bb54U_qJ.mjs.map +1 -0
  66. package/dist/chunks/{NcAppNavigationCaption-DsM6rzrK.mjs → NcAppNavigationCaption-CwaRTmmd.mjs} +4 -4
  67. package/dist/chunks/{NcAppNavigationCaption-DsM6rzrK.mjs.map → NcAppNavigationCaption-CwaRTmmd.mjs.map} +1 -1
  68. package/dist/chunks/{NcAppNavigationItem-XSXn3qhJ.mjs → NcAppNavigationItem-Dg2d2AwS.mjs} +20 -14
  69. package/dist/chunks/NcAppNavigationItem-Dg2d2AwS.mjs.map +1 -0
  70. package/dist/chunks/{NcAppNavigationNew-BkybFzV0.mjs → NcAppNavigationNew-Ch_kPggd.mjs} +2 -2
  71. package/dist/chunks/{NcAppNavigationNew-BkybFzV0.mjs.map → NcAppNavigationNew-Ch_kPggd.mjs.map} +1 -1
  72. package/dist/chunks/{NcAppNavigationNewItem-CNb-I7xZ.mjs → NcAppNavigationNewItem-DYM8hEa7.mjs} +3 -3
  73. package/dist/chunks/{NcAppNavigationNewItem-CNb-I7xZ.mjs.map → NcAppNavigationNewItem-DYM8hEa7.mjs.map} +1 -1
  74. package/dist/chunks/{NcAppNavigationSearch-DpcjjmY5.mjs → NcAppNavigationSearch-BWHsAoc1.mjs} +7 -7
  75. package/dist/chunks/NcAppNavigationSearch-BWHsAoc1.mjs.map +1 -0
  76. package/dist/chunks/{NcAppNavigationSettings-CxjLIB1E.mjs → NcAppNavigationSettings-CJ2z5cYU.mjs} +5 -5
  77. package/dist/chunks/{NcAppNavigationSettings-CxjLIB1E.mjs.map → NcAppNavigationSettings-CJ2z5cYU.mjs.map} +1 -1
  78. package/dist/chunks/{NcAppSettingsDialog-Brgi3W2x.mjs → NcAppSettingsDialog-37Ko8yBC.mjs} +20 -14
  79. package/dist/chunks/NcAppSettingsDialog-37Ko8yBC.mjs.map +1 -0
  80. package/dist/chunks/{NcAppSettingsSection-B-ak1kbx.mjs → NcAppSettingsSection-MusCsTGg.mjs} +3 -3
  81. package/dist/chunks/{NcAppSettingsSection-B-ak1kbx.mjs.map → NcAppSettingsSection-MusCsTGg.mjs.map} +1 -1
  82. package/dist/chunks/{NcAppSettingsShortcutsSection-HmIjAN0a.mjs → NcAppSettingsShortcutsSection-C0io5RJP.mjs} +3 -3
  83. package/dist/chunks/{NcAppSettingsShortcutsSection-HmIjAN0a.mjs.map → NcAppSettingsShortcutsSection-C0io5RJP.mjs.map} +1 -1
  84. package/dist/chunks/{NcAppSidebar-KwLsRcZO.mjs → NcAppSidebar-CV2t1fDr.mjs} +18 -13
  85. package/dist/chunks/NcAppSidebar-CV2t1fDr.mjs.map +1 -0
  86. package/dist/chunks/{NcAssistantButton-DxNbEbqt.mjs → NcAssistantButton-u8m6vfFY.mjs} +2 -2
  87. package/dist/chunks/NcAssistantButton-u8m6vfFY.mjs.map +1 -0
  88. package/dist/chunks/{NcAvatar-ruClKRzS.mjs → NcAvatar-QYahYt2p.mjs} +13 -13
  89. package/dist/chunks/{NcAvatar-ruClKRzS.mjs.map → NcAvatar-QYahYt2p.mjs.map} +1 -1
  90. package/dist/chunks/{NcBreadcrumb-D2NtMTnk.mjs → NcBreadcrumb-CYI3eykz.mjs} +5 -5
  91. package/dist/chunks/{NcBreadcrumb-D2NtMTnk.mjs.map → NcBreadcrumb-CYI3eykz.mjs.map} +1 -1
  92. package/dist/chunks/{NcBreadcrumbs-DDutZRtm.mjs → NcBreadcrumbs-DLKGhmX6.mjs} +6 -6
  93. package/dist/chunks/{NcBreadcrumbs-DDutZRtm.mjs.map → NcBreadcrumbs-DLKGhmX6.mjs.map} +1 -1
  94. package/dist/chunks/{NcButton-lQra4n2g.mjs → NcButton-CdQzGSB6.mjs} +6 -5
  95. package/dist/chunks/NcButton-CdQzGSB6.mjs.map +1 -0
  96. package/dist/chunks/{NcCheckboxRadioSwitch-D0gFwEVl.mjs → NcCheckboxRadioSwitch-B0KUiKrb.mjs} +10 -19
  97. package/dist/chunks/NcCheckboxRadioSwitch-B0KUiKrb.mjs.map +1 -0
  98. package/dist/chunks/{NcChip-CrVOU2RM.mjs → NcChip-CjYZUIUu.mjs} +4 -4
  99. package/dist/chunks/{NcChip-CrVOU2RM.mjs.map → NcChip-CjYZUIUu.mjs.map} +1 -1
  100. package/dist/chunks/{NcCollectionList-pWG42SU1.mjs → NcCollectionList-CU1Tigay.mjs} +7 -7
  101. package/dist/chunks/{NcCollectionList-pWG42SU1.mjs.map → NcCollectionList-CU1Tigay.mjs.map} +1 -1
  102. package/dist/chunks/{NcColorPicker-D07Se8Xb.mjs → NcColorPicker-DUIppkpO.mjs} +6 -6
  103. package/dist/chunks/{NcColorPicker-D07Se8Xb.mjs.map → NcColorPicker-DUIppkpO.mjs.map} +1 -1
  104. package/dist/chunks/{NcContent-D69ktIEB.mjs → NcContent-Dd15hgck.mjs} +8 -7
  105. package/dist/chunks/{NcContent-D69ktIEB.mjs.map → NcContent-Dd15hgck.mjs.map} +1 -1
  106. package/dist/chunks/{NcDashboardWidget-CvpYMKur.mjs → NcDashboardWidget-CPI2VARK.mjs} +5 -5
  107. package/dist/chunks/{NcDashboardWidget-CvpYMKur.mjs.map → NcDashboardWidget-CPI2VARK.mjs.map} +1 -1
  108. package/dist/chunks/{NcDashboardWidgetItem-ZKImQn7Y.mjs → NcDashboardWidgetItem-DJ820dYQ.mjs} +4 -4
  109. package/dist/chunks/{NcDashboardWidgetItem-ZKImQn7Y.mjs.map → NcDashboardWidgetItem-DJ820dYQ.mjs.map} +1 -1
  110. package/dist/chunks/NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL.mjs.map +1 -1
  111. package/dist/chunks/{NcDateTimePicker-DksKisgE.mjs → NcDateTimePicker-8vIvIKoD.mjs} +4 -4
  112. package/dist/chunks/{NcDateTimePicker-DksKisgE.mjs.map → NcDateTimePicker-8vIvIKoD.mjs.map} +1 -1
  113. package/dist/chunks/{NcDateTimePickerNative-BvtMQDIe.mjs → NcDateTimePickerNative-XO_O44n2.mjs} +2 -2
  114. package/dist/chunks/{NcDateTimePickerNative-BvtMQDIe.mjs.map → NcDateTimePickerNative-XO_O44n2.mjs.map} +1 -1
  115. package/dist/chunks/{NcDialog-nDc1gW50.mjs → NcDialog-D-qxVQxL.mjs} +3 -3
  116. package/dist/chunks/{NcDialog-nDc1gW50.mjs.map → NcDialog-D-qxVQxL.mjs.map} +1 -1
  117. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-Z_bOZAn_.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-WZfDqDwc.mjs} +3 -3
  118. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-Z_bOZAn_.mjs.map → NcDialogButton.vue_vue_type_script_setup_true_lang-WZfDqDwc.mjs.map} +1 -1
  119. package/dist/chunks/{NcEmojiPicker-DGgqTnHp.mjs → NcEmojiPicker-DG3qO_fi.mjs} +7 -7
  120. package/dist/chunks/{NcEmojiPicker-DGgqTnHp.mjs.map → NcEmojiPicker-DG3qO_fi.mjs.map} +1 -1
  121. package/dist/chunks/{NcEmptyContent-CDgWCt_m.mjs → NcEmptyContent--TRhmNAW.mjs} +3 -3
  122. package/dist/chunks/{NcEmptyContent-CDgWCt_m.mjs.map → NcEmptyContent--TRhmNAW.mjs.map} +1 -1
  123. package/dist/chunks/{NcFilePicker-DtOsHB4q.mjs → NcFilePicker-DPiYJu5B.mjs} +3 -3
  124. package/dist/chunks/{NcFilePicker-DtOsHB4q.mjs.map → NcFilePicker-DPiYJu5B.mjs.map} +1 -1
  125. package/dist/chunks/{NcFormBoxButton-JvZ6_2E3.mjs → NcFormBoxButton-DhEpFn7z.mjs} +2 -2
  126. package/dist/chunks/{NcFormBoxButton-JvZ6_2E3.mjs.map → NcFormBoxButton-DhEpFn7z.mjs.map} +1 -1
  127. package/dist/chunks/{NcFormBoxCopyButton.vue_vue_type_script_setup_true_lang-CjJ09v8E.mjs → NcFormBoxCopyButton.vue_vue_type_script_setup_true_lang-DLh3Ylq_.mjs} +3 -3
  128. package/dist/chunks/{NcFormBoxCopyButton.vue_vue_type_script_setup_true_lang-CjJ09v8E.mjs.map → NcFormBoxCopyButton.vue_vue_type_script_setup_true_lang-DLh3Ylq_.mjs.map} +1 -1
  129. package/dist/chunks/{NcFormBoxItem-B7YVodqN.mjs → NcFormBoxItem-CHxCeuxj.mjs} +5 -5
  130. package/dist/chunks/{NcFormBoxItem-B7YVodqN.mjs.map → NcFormBoxItem-CHxCeuxj.mjs.map} +1 -1
  131. package/dist/chunks/{NcFormBoxSwitch-DP4dD4xe.mjs → NcFormBoxSwitch-QMisnf8C.mjs} +2 -2
  132. package/dist/chunks/{NcFormBoxSwitch-DP4dD4xe.mjs.map → NcFormBoxSwitch-QMisnf8C.mjs.map} +1 -1
  133. package/dist/chunks/{NcFormGroup-B3a2iUnT.mjs → NcFormGroup-BDjfDvq0.mjs} +2 -2
  134. package/dist/chunks/{NcFormGroup-B3a2iUnT.mjs.map → NcFormGroup-BDjfDvq0.mjs.map} +1 -1
  135. package/dist/chunks/{NcHeaderButton-CXu9xIQP.mjs → NcHeaderButton-lhDrtYWN.mjs} +2 -2
  136. package/dist/chunks/{NcHeaderButton-CXu9xIQP.mjs.map → NcHeaderButton-lhDrtYWN.mjs.map} +1 -1
  137. package/dist/chunks/{NcHeaderMenu-CYU4Y3h5.mjs → NcHeaderMenu-B5-BQbQ6.mjs} +2 -2
  138. package/dist/chunks/{NcHeaderMenu-CYU4Y3h5.mjs.map → NcHeaderMenu-B5-BQbQ6.mjs.map} +1 -1
  139. package/dist/chunks/{NcHotkey-DYevuX3i.mjs → NcHotkey-B0qDRy1t.mjs} +2 -2
  140. package/dist/chunks/{NcHotkey-DYevuX3i.mjs.map → NcHotkey-B0qDRy1t.mjs.map} +1 -1
  141. package/dist/chunks/{NcHotkeyList-CHLWkWfY.mjs → NcHotkeyList-Ca7AtgZ9.mjs} +3 -3
  142. package/dist/chunks/NcHotkeyList-Ca7AtgZ9.mjs.map +1 -0
  143. package/dist/chunks/{NcInputConfirmCancel-Ch0byKa3.mjs → NcInputConfirmCancel-BL_BkfXh.mjs} +16 -11
  144. package/dist/chunks/NcInputConfirmCancel-BL_BkfXh.mjs.map +1 -0
  145. package/dist/chunks/{NcInputField-CPL-a_MM.mjs → NcInputField-C3iof9pY.mjs} +5 -5
  146. package/dist/chunks/{NcInputField-CPL-a_MM.mjs.map → NcInputField-C3iof9pY.mjs.map} +1 -1
  147. package/dist/chunks/{NcKbd-DE1emmb_.mjs → NcKbd-Caeq706M.mjs} +2 -2
  148. package/dist/chunks/{NcKbd-DE1emmb_.mjs.map → NcKbd-Caeq706M.mjs.map} +1 -1
  149. package/dist/chunks/{NcListItem-DfFmqnmW.mjs → NcListItem-Chk9TtPa.mjs} +14 -7
  150. package/dist/chunks/NcListItem-Chk9TtPa.mjs.map +1 -0
  151. package/dist/chunks/{NcListItemIcon-DJJR4RtI.mjs → NcListItemIcon-vZ-OTxIa.mjs} +3 -3
  152. package/dist/chunks/{NcListItemIcon-DJJR4RtI.mjs.map → NcListItemIcon-vZ-OTxIa.mjs.map} +1 -1
  153. package/dist/chunks/{NcMentionBubble.vue_vue_type_style_index_0_scoped_45238efd_lang-D6LzDiYf.mjs → NcMentionBubble.vue_vue_type_style_index_0_scoped_45238efd_lang-BX_KxRP-.mjs} +2 -2
  154. package/dist/chunks/{NcMentionBubble.vue_vue_type_style_index_0_scoped_45238efd_lang-D6LzDiYf.mjs.map → NcMentionBubble.vue_vue_type_style_index_0_scoped_45238efd_lang-BX_KxRP-.mjs.map} +1 -1
  155. package/dist/chunks/{NcModal-kyWZ3UFC.mjs → NcModal-DyOZxq9E.mjs} +10 -11
  156. package/dist/chunks/NcModal-DyOZxq9E.mjs.map +1 -0
  157. package/dist/chunks/{NcNoteCard-CWiO3Dse.mjs → NcNoteCard-BJF9bD7S.mjs} +4 -4
  158. package/dist/chunks/{NcNoteCard-CWiO3Dse.mjs.map → NcNoteCard-BJF9bD7S.mjs.map} +1 -1
  159. package/dist/chunks/{NcPasswordField-BOLzDHBJ.mjs → NcPasswordField-ykWHv_hw.mjs} +12 -8
  160. package/dist/chunks/NcPasswordField-ykWHv_hw.mjs.map +1 -0
  161. package/dist/chunks/{NcRadioGroup-LkOsE5Mc.mjs → NcRadioGroup-EGc_x6uH.mjs} +2 -2
  162. package/dist/chunks/{NcRadioGroup-LkOsE5Mc.mjs.map → NcRadioGroup-EGc_x6uH.mjs.map} +1 -1
  163. package/dist/chunks/{NcRadioGroupButton-BtE_SLVd.mjs → NcRadioGroupButton-Dd5hMWx5.mjs} +2 -2
  164. package/dist/chunks/{NcRadioGroupButton-BtE_SLVd.mjs.map → NcRadioGroupButton-Dd5hMWx5.mjs.map} +1 -1
  165. package/dist/chunks/{NcRelatedResourcesPanel-Cn27rj0H.mjs → NcRelatedResourcesPanel-C7C0-pBV.mjs} +10 -10
  166. package/dist/chunks/NcRelatedResourcesPanel-C7C0-pBV.mjs.map +1 -0
  167. package/dist/chunks/{NcRichContenteditable-BREsny-v.mjs → NcRichContenteditable-DLPNb2TV.mjs} +26 -23
  168. package/dist/chunks/NcRichContenteditable-DLPNb2TV.mjs.map +1 -0
  169. package/dist/chunks/{NcRichText-D_ssz6sB.mjs → NcRichText-rS9gcduo.mjs} +243 -311
  170. package/dist/chunks/NcRichText-rS9gcduo.mjs.map +1 -0
  171. package/dist/chunks/{NcSelect-B1uITk_3.mjs → NcSelect-DK4ZWMha.mjs} +4 -5
  172. package/dist/chunks/NcSelect-DK4ZWMha.mjs.map +1 -0
  173. package/dist/chunks/{NcSelectTags-B3_tcJAf.mjs → NcSelectTags-D3tAMWYx.mjs} +3 -3
  174. package/dist/chunks/{NcSelectTags-B3_tcJAf.mjs.map → NcSelectTags-D3tAMWYx.mjs.map} +1 -1
  175. package/dist/chunks/{NcSelectUsers-B9ZFtd6B.mjs → NcSelectUsers-2L4I2yvb.mjs} +3 -3
  176. package/dist/chunks/{NcSelectUsers-B9ZFtd6B.mjs.map → NcSelectUsers-2L4I2yvb.mjs.map} +1 -1
  177. package/dist/chunks/{NcSettingsSection-DIcgD1vo.mjs → NcSettingsSection-DnzR8DRc.mjs} +2 -2
  178. package/dist/chunks/{NcSettingsSection-DIcgD1vo.mjs.map → NcSettingsSection-DnzR8DRc.mjs.map} +1 -1
  179. package/dist/chunks/{NcSettingsSelectGroup-CupkYUPJ.mjs → NcSettingsSelectGroup-CYgEv80h.mjs} +3 -3
  180. package/dist/chunks/{NcSettingsSelectGroup-CupkYUPJ.mjs.map → NcSettingsSelectGroup-CYgEv80h.mjs.map} +1 -1
  181. package/dist/chunks/{NcTextArea-CseOD9aM.mjs → NcTextArea-BwFQx9Bj.mjs} +4 -4
  182. package/dist/chunks/{NcTextArea-CseOD9aM.mjs.map → NcTextArea-BwFQx9Bj.mjs.map} +1 -1
  183. package/dist/chunks/{NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH.mjs → NcTextField.vue_vue_type_script_setup_true_lang-DgvCZDmR.mjs} +3 -3
  184. package/dist/chunks/{NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH.mjs.map → NcTextField.vue_vue_type_script_setup_true_lang-DgvCZDmR.mjs.map} +1 -1
  185. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-8CBGI3yi.mjs → NcTimezonePicker.vue_vue_type_script_setup_true_lang-53QSdjMX.mjs} +3 -3
  186. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-8CBGI3yi.mjs.map → NcTimezonePicker.vue_vue_type_script_setup_true_lang-53QSdjMX.mjs.map} +1 -1
  187. package/dist/chunks/{NcUserBubble-BE6yD-R0.mjs → NcUserBubble-BnaGHDoD.mjs} +2 -2
  188. package/dist/chunks/{NcUserBubble-BE6yD-R0.mjs.map → NcUserBubble-BnaGHDoD.mjs.map} +1 -1
  189. package/dist/chunks/{NcUserStatusIcon-JWiuiAXe.mjs → NcUserStatusIcon-CNh1vXUF.mjs} +2 -2
  190. package/dist/chunks/{NcUserStatusIcon-JWiuiAXe.mjs.map → NcUserStatusIcon-CNh1vXUF.mjs.map} +1 -1
  191. package/dist/chunks/{_l10n-BklkVPDO.mjs → _l10n-BCg4udFv.mjs} +44 -44
  192. package/dist/chunks/_l10n-BCg4udFv.mjs.map +1 -0
  193. package/dist/chunks/{autolink-U5pBzLgI.mjs → autolink-_k1FETYm.mjs} +58 -36
  194. package/dist/chunks/autolink-_k1FETYm.mjs.map +1 -0
  195. package/dist/chunks/{colors-BfjxNgsx.mjs → colors-2YFh1g7z.mjs} +6 -2
  196. package/dist/chunks/{colors-BfjxNgsx.mjs.map → colors-2YFh1g7z.mjs.map} +1 -1
  197. package/dist/chunks/{emoji-V9hqFgPs.mjs → emoji-C8k9NUlo.mjs} +2 -2
  198. package/dist/chunks/emoji-C8k9NUlo.mjs.map +1 -0
  199. package/dist/chunks/legacy-BoqDmOCa.mjs +9 -0
  200. package/dist/chunks/legacy-BoqDmOCa.mjs.map +1 -0
  201. package/dist/chunks/{referencePickerModal-D09ZVhqa.mjs → referencePickerModal-DgIpbEdl.mjs} +11 -11
  202. package/dist/chunks/referencePickerModal-DgIpbEdl.mjs.map +1 -0
  203. package/dist/chunks/{useCopy-Dgw864OI.mjs → useCopy--plF8q1P.mjs} +2 -2
  204. package/dist/chunks/{useCopy-Dgw864OI.mjs.map → useCopy--plF8q1P.mjs.map} +1 -1
  205. package/dist/components/NcActionButton/index.mjs +1 -1
  206. package/dist/components/NcActionButtonGroup/index.mjs +1 -1
  207. package/dist/components/NcActionCheckbox/index.mjs +1 -1
  208. package/dist/components/NcActionInput/index.mjs +1 -1
  209. package/dist/components/NcActionLink/index.mjs +1 -1
  210. package/dist/components/NcActionRadio/index.mjs +1 -1
  211. package/dist/components/NcActionRouter/index.mjs +1 -1
  212. package/dist/components/NcActionText/index.mjs +1 -1
  213. package/dist/components/NcActionTextEditable/index.mjs +1 -1
  214. package/dist/components/NcActions/index.mjs +1 -1
  215. package/dist/components/NcAppContent/index.mjs +1 -1
  216. package/dist/components/NcAppNavigation/index.mjs +1 -1
  217. package/dist/components/NcAppNavigationCaption/index.mjs +1 -1
  218. package/dist/components/NcAppNavigationItem/NcAppNavigationIconCollapsible.vue.d.ts +3 -1
  219. package/dist/components/NcAppNavigationItem/NcAppNavigationItem.vue.d.ts +7 -2
  220. package/dist/components/NcAppNavigationItem/NcInputConfirmCancel.vue.d.ts +3 -1
  221. package/dist/components/NcAppNavigationItem/index.mjs +1 -1
  222. package/dist/components/NcAppNavigationNew/index.mjs +1 -1
  223. package/dist/components/NcAppNavigationNewItem/NcAppNavigationNewItem.vue.d.ts +3 -1
  224. package/dist/components/NcAppNavigationNewItem/index.mjs +1 -1
  225. package/dist/components/NcAppNavigationSearch/index.mjs +1 -1
  226. package/dist/components/NcAppNavigationSettings/index.mjs +1 -1
  227. package/dist/components/NcAppSettingsDialog/index.mjs +1 -1
  228. package/dist/components/NcAppSettingsSection/index.mjs +1 -1
  229. package/dist/components/NcAppSettingsSectionShortcuts/index.mjs +1 -1
  230. package/dist/components/NcAppSettingsShortcutsSection/index.mjs +1 -1
  231. package/dist/components/NcAppSidebar/NcAppSidebar.vue.d.ts +1 -0
  232. package/dist/components/NcAppSidebar/NcAppSidebarTabs.vue.d.ts +3 -2
  233. package/dist/components/NcAppSidebar/index.mjs +1 -1
  234. package/dist/components/NcAssistantButton/index.mjs +1 -1
  235. package/dist/components/NcAvatar/index.mjs +1 -1
  236. package/dist/components/NcBreadcrumb/index.mjs +1 -1
  237. package/dist/components/NcBreadcrumbs/index.mjs +1 -1
  238. package/dist/components/NcButton/index.mjs +1 -1
  239. package/dist/components/NcCheckboxRadioSwitch/index.mjs +1 -1
  240. package/dist/components/NcChip/index.mjs +1 -1
  241. package/dist/components/NcCollectionList/index.mjs +1 -1
  242. package/dist/components/NcColorPicker/index.mjs +1 -1
  243. package/dist/components/NcContent/index.mjs +1 -1
  244. package/dist/components/NcDashboardWidget/index.mjs +1 -1
  245. package/dist/components/NcDashboardWidgetItem/index.mjs +1 -1
  246. package/dist/components/NcDateTimePicker/index.mjs +1 -1
  247. package/dist/components/NcDateTimePickerNative/index.mjs +1 -1
  248. package/dist/components/NcDialog/index.mjs +1 -1
  249. package/dist/components/NcDialogButton/index.mjs +1 -1
  250. package/dist/components/NcEmojiPicker/index.mjs +1 -1
  251. package/dist/components/NcEmptyContent/index.mjs +1 -1
  252. package/dist/components/NcFilePicker/index.mjs +1 -1
  253. package/dist/components/NcFormBoxButton/index.mjs +1 -1
  254. package/dist/components/NcFormBoxCopyButton/index.mjs +1 -1
  255. package/dist/components/NcFormBoxSwitch/index.mjs +1 -1
  256. package/dist/components/NcFormGroup/index.mjs +1 -1
  257. package/dist/components/NcHeaderButton/index.mjs +1 -1
  258. package/dist/components/NcHeaderMenu/index.mjs +1 -1
  259. package/dist/components/NcHotkey/index.mjs +1 -1
  260. package/dist/components/NcHotkeyList/index.mjs +1 -1
  261. package/dist/components/NcInputField/index.mjs +1 -1
  262. package/dist/components/NcKbd/index.mjs +1 -1
  263. package/dist/components/NcListItem/NcListItem.vue.d.ts +3 -1
  264. package/dist/components/NcListItem/index.mjs +1 -1
  265. package/dist/components/NcListItemIcon/index.mjs +1 -1
  266. package/dist/components/NcModal/index.mjs +1 -1
  267. package/dist/components/NcNoteCard/index.mjs +1 -1
  268. package/dist/components/NcPasswordField/index.mjs +1 -1
  269. package/dist/components/NcRadioGroup/index.mjs +1 -1
  270. package/dist/components/NcRadioGroupButton/index.mjs +1 -1
  271. package/dist/components/NcRelatedResourcesPanel/index.mjs +1 -1
  272. package/dist/components/NcRichContenteditable/NcRichContenteditable.vue.d.ts +11 -9
  273. package/dist/components/NcRichContenteditable/index.mjs +1 -1
  274. package/dist/components/NcRichText/NcRichTextExternalLink.vue.d.ts +23 -0
  275. package/dist/components/NcRichText/index.mjs +3 -3
  276. package/dist/components/NcSelect/index.mjs +1 -1
  277. package/dist/components/NcSelectTags/index.mjs +1 -1
  278. package/dist/components/NcSelectUsers/index.mjs +1 -1
  279. package/dist/components/NcSettingsSection/index.mjs +1 -1
  280. package/dist/components/NcSettingsSelectGroup/index.mjs +1 -1
  281. package/dist/components/NcTextArea/index.mjs +1 -1
  282. package/dist/components/NcTextField/index.mjs +1 -1
  283. package/dist/components/NcTimezonePicker/index.mjs +1 -1
  284. package/dist/components/NcUserBubble/index.mjs +1 -1
  285. package/dist/components/NcUserStatusIcon/index.mjs +1 -1
  286. package/dist/composables/useFormatDateTime/index.mjs +1 -1
  287. package/dist/functions/emoji/index.mjs +1 -1
  288. package/dist/functions/reference/index.mjs +1 -1
  289. package/dist/functions/usernameToColor/index.mjs +1 -1
  290. package/dist/index.mjs +75 -74
  291. package/dist/index.mjs.map +1 -1
  292. package/dist/utils/legacy.d.ts +1 -0
  293. package/package.json +27 -28
  294. package/dist/assets/NcAppSettingsDialog-Ckc0OWTs.css +0 -98
  295. package/dist/assets/NcInputConfirmCancel-BrdZEfr2.css +0 -39
  296. package/dist/assets/NcListItem-Cat18cSx.css +0 -177
  297. package/dist/chunks/NcActionTextEditable-BC66QDvV.mjs.map +0 -1
  298. package/dist/chunks/NcAppNavigation-DQzgUarc.mjs.map +0 -1
  299. package/dist/chunks/NcAppNavigationItem-XSXn3qhJ.mjs.map +0 -1
  300. package/dist/chunks/NcAppNavigationSearch-DpcjjmY5.mjs.map +0 -1
  301. package/dist/chunks/NcAppSettingsDialog-Brgi3W2x.mjs.map +0 -1
  302. package/dist/chunks/NcAppSidebar-KwLsRcZO.mjs.map +0 -1
  303. package/dist/chunks/NcAssistantButton-DxNbEbqt.mjs.map +0 -1
  304. package/dist/chunks/NcButton-lQra4n2g.mjs.map +0 -1
  305. package/dist/chunks/NcCheckboxRadioSwitch-D0gFwEVl.mjs.map +0 -1
  306. package/dist/chunks/NcHotkeyList-CHLWkWfY.mjs.map +0 -1
  307. package/dist/chunks/NcInputConfirmCancel-Ch0byKa3.mjs.map +0 -1
  308. package/dist/chunks/NcListItem-DfFmqnmW.mjs.map +0 -1
  309. package/dist/chunks/NcModal-kyWZ3UFC.mjs.map +0 -1
  310. package/dist/chunks/NcPasswordField-BOLzDHBJ.mjs.map +0 -1
  311. package/dist/chunks/NcRelatedResourcesPanel-Cn27rj0H.mjs.map +0 -1
  312. package/dist/chunks/NcRichContenteditable-BREsny-v.mjs.map +0 -1
  313. package/dist/chunks/NcRichText-D_ssz6sB.mjs.map +0 -1
  314. package/dist/chunks/NcSelect-B1uITk_3.mjs.map +0 -1
  315. package/dist/chunks/_l10n-BklkVPDO.mjs.map +0 -1
  316. package/dist/chunks/autolink-U5pBzLgI.mjs.map +0 -1
  317. package/dist/chunks/emoji-V9hqFgPs.mjs.map +0 -1
  318. package/dist/chunks/legacy-DcjXBL_t.mjs +0 -6
  319. package/dist/chunks/legacy-DcjXBL_t.mjs.map +0 -1
  320. package/dist/chunks/referencePickerModal-D09ZVhqa.mjs.map +0 -1
@@ -1,29 +1,29 @@
1
- import '../assets/NcRichText-ZpC0uhOy.css';
1
+ import '../assets/NcRichText-D0Dv1hVB.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 { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, createCommentVNode, defineComponent, unref, withCtx, createVNode, ref, h } from "vue";
11
11
  import { RouterLink } from "vue-router";
12
- import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-D0gFwEVl.mjs";
12
+ import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-B0KUiKrb.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-D09ZVhqa.mjs";
17
+ import { f as NcReferenceWidget } from "./referencePickerModal-DgIpbEdl.mjs";
18
18
  import { l as logger } from "./logger-D3RVzcfQ.mjs";
19
- import { U as URL_PATTERN, g as getRoute, p as parseUrl, r as remarkAutolink } from "./autolink-U5pBzLgI.mjs";
19
+ import { U as URL_PATTERN, g as getRoute, N as NcRichTextExternalLink, p as parseUrl, r as remarkAutolink } from "./autolink-_k1FETYm.mjs";
20
20
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
21
- import { N as NcButton } from "./NcButton-lQra4n2g.mjs";
21
+ import { N as NcButton } from "./NcButton-CdQzGSB6.mjs";
22
22
  import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-De-2-ukl.mjs";
23
- import { u as useCopy } from "./useCopy-Dgw864OI.mjs";
23
+ import { u as useCopy } from "./useCopy--plF8q1P.mjs";
24
24
  import { c as createElementId } from "./createElementId-DhjFt1I9.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: {
@@ -229,7 +229,14 @@ const convert = (
229
229
  return castFactory(test);
230
230
  }
231
231
  if (typeof test === "object") {
232
- return Array.isArray(test) ? anyFactory(test) : propsFactory(test);
232
+ return Array.isArray(test) ? anyFactory(test) : (
233
+ // Cast because `ReadonlyArray` goes into the above but `isArray`
234
+ // narrows to `Array`.
235
+ propertiesFactory(
236
+ /** @type {Props} */
237
+ test
238
+ )
239
+ );
233
240
  }
234
241
  if (typeof test === "string") {
235
242
  return typeFactory(test);
@@ -252,17 +259,17 @@ function anyFactory(tests) {
252
259
  return false;
253
260
  }
254
261
  }
255
- function propsFactory(check) {
262
+ function propertiesFactory(check) {
256
263
  const checkAsRecord = (
257
264
  /** @type {Record<string, unknown>} */
258
265
  check
259
266
  );
260
- return castFactory(all2);
261
- function all2(node2) {
267
+ return castFactory(all);
268
+ function all(node) {
262
269
  const nodeAsRecord = (
263
270
  /** @type {Record<string, unknown>} */
264
271
  /** @type {unknown} */
265
- node2
272
+ node
266
273
  );
267
274
  let key;
268
275
  for (key in check) {
@@ -273,8 +280,8 @@ function propsFactory(check) {
273
280
  }
274
281
  function typeFactory(check) {
275
282
  return castFactory(type);
276
- function type(node2) {
277
- return node2 && node2.type === check;
283
+ function type(node) {
284
+ return node && node.type === check;
278
285
  }
279
286
  }
280
287
  function castFactory(testFunction) {
@@ -296,81 +303,6 @@ function ok() {
296
303
  function looksLikeANode(value) {
297
304
  return value !== null && typeof value === "object" && "type" in value;
298
305
  }
299
- function color(d) {
300
- return d;
301
- }
302
- const empty = [];
303
- const CONTINUE = true;
304
- const EXIT = false;
305
- const SKIP = "skip";
306
- function visitParents(tree, test, visitor, reverse) {
307
- let check;
308
- {
309
- check = test;
310
- }
311
- const is = convert(check);
312
- const step = 1;
313
- factory(tree, void 0, [])();
314
- function factory(node2, index, parents) {
315
- const value = (
316
- /** @type {Record<string, unknown>} */
317
- node2 && typeof node2 === "object" ? node2 : {}
318
- );
319
- if (typeof value.type === "string") {
320
- const name = (
321
- // `hast`
322
- typeof value.tagName === "string" ? value.tagName : (
323
- // `xast`
324
- typeof value.name === "string" ? value.name : void 0
325
- )
326
- );
327
- Object.defineProperty(visit2, "name", {
328
- value: "node (" + color(node2.type + (name ? "<" + name + ">" : "")) + ")"
329
- });
330
- }
331
- return visit2;
332
- function visit2() {
333
- let result = empty;
334
- let subresult;
335
- let offset;
336
- let grandparents;
337
- if (is(node2, index, parents[parents.length - 1] || void 0)) {
338
- result = toResult(visitor(node2, parents));
339
- if (result[0] === EXIT) {
340
- return result;
341
- }
342
- }
343
- if ("children" in node2 && node2.children) {
344
- const nodeAsParent = (
345
- /** @type {UnistParent} */
346
- node2
347
- );
348
- if (nodeAsParent.children && result[0] !== SKIP) {
349
- offset = -1 + step;
350
- grandparents = parents.concat(nodeAsParent);
351
- while (offset > -1 && offset < nodeAsParent.children.length) {
352
- const child = nodeAsParent.children[offset];
353
- subresult = factory(child, offset, grandparents)();
354
- if (subresult[0] === EXIT) {
355
- return subresult;
356
- }
357
- offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
358
- }
359
- }
360
- }
361
- return result;
362
- }
363
- }
364
- }
365
- function toResult(value) {
366
- if (Array.isArray(value)) {
367
- return value;
368
- }
369
- if (typeof value === "number") {
370
- return [CONTINUE, value];
371
- }
372
- return value === null || value === void 0 ? empty : [value];
373
- }
374
306
  function findAndReplace(tree, list2, options) {
375
307
  const settings = options || {};
376
308
  const ignored = convert(settings.ignore || []);
@@ -379,7 +311,7 @@ function findAndReplace(tree, list2, options) {
379
311
  while (++pairIndex < pairs.length) {
380
312
  visitParents(tree, "text", visitor);
381
313
  }
382
- function visitor(node2, parents) {
314
+ function visitor(node, parents) {
383
315
  let index = -1;
384
316
  let grandparent;
385
317
  while (++index < parents.length) {
@@ -395,26 +327,26 @@ function findAndReplace(tree, list2, options) {
395
327
  grandparent = parent;
396
328
  }
397
329
  if (grandparent) {
398
- return handler(node2, parents);
330
+ return handler(node, parents);
399
331
  }
400
332
  }
401
- function handler(node2, parents) {
333
+ function handler(node, parents) {
402
334
  const parent = parents[parents.length - 1];
403
335
  const find = pairs[pairIndex][0];
404
336
  const replace2 = pairs[pairIndex][1];
405
337
  let start = 0;
406
338
  const siblings = parent.children;
407
- const index = siblings.indexOf(node2);
339
+ const index = siblings.indexOf(node);
408
340
  let change = false;
409
341
  let nodes = [];
410
342
  find.lastIndex = 0;
411
- let match = find.exec(node2.value);
343
+ let match = find.exec(node.value);
412
344
  while (match) {
413
345
  const position = match.index;
414
346
  const matchObject = {
415
347
  index: match.index,
416
348
  input: match.input,
417
- stack: [...parents, node2]
349
+ stack: [...parents, node]
418
350
  };
419
351
  let value = replace2(...match, matchObject);
420
352
  if (typeof value === "string") {
@@ -426,7 +358,7 @@ function findAndReplace(tree, list2, options) {
426
358
  if (start !== position) {
427
359
  nodes.push({
428
360
  type: "text",
429
- value: node2.value.slice(start, position)
361
+ value: node.value.slice(start, position)
430
362
  });
431
363
  }
432
364
  if (Array.isArray(value)) {
@@ -440,15 +372,15 @@ function findAndReplace(tree, list2, options) {
440
372
  if (!find.global) {
441
373
  break;
442
374
  }
443
- match = find.exec(node2.value);
375
+ match = find.exec(node.value);
444
376
  }
445
377
  if (change) {
446
- if (start < node2.value.length) {
447
- nodes.push({ type: "text", value: node2.value.slice(start) });
378
+ if (start < node.value.length) {
379
+ nodes.push({ type: "text", value: node.value.slice(start) });
448
380
  }
449
381
  parent.children.splice(index, 1, ...nodes);
450
382
  } else {
451
- nodes = [node2];
383
+ nodes = [node];
452
384
  }
453
385
  return index + nodes.length;
454
386
  }
@@ -531,9 +463,9 @@ function exitLiteralAutolinkHttp(token) {
531
463
  }
532
464
  function exitLiteralAutolinkWww(token) {
533
465
  this.config.exit.data.call(this, token);
534
- const node2 = this.stack[this.stack.length - 1];
535
- ok$1(node2.type === "link");
536
- node2.url = "http://" + this.sliceSerialize(token);
466
+ const node = this.stack[this.stack.length - 1];
467
+ ok$1(node.type === "link");
468
+ node.url = "http://" + this.sliceSerialize(token);
537
469
  }
538
470
  function exitLiteralAutolinkEmail(token) {
539
471
  this.config.exit.autolinkEmail.call(this, token);
@@ -642,24 +574,24 @@ function enterFootnoteDefinition(token) {
642
574
  }
643
575
  function exitFootnoteCallString(token) {
644
576
  const label = this.resume();
645
- const node2 = this.stack[this.stack.length - 1];
646
- ok$1(node2.type === "footnoteReference");
647
- node2.identifier = normalizeIdentifier(
577
+ const node = this.stack[this.stack.length - 1];
578
+ ok$1(node.type === "footnoteReference");
579
+ node.identifier = normalizeIdentifier(
648
580
  this.sliceSerialize(token)
649
581
  ).toLowerCase();
650
- node2.label = label;
582
+ node.label = label;
651
583
  }
652
584
  function exitFootnoteCall(token) {
653
585
  this.exit(token);
654
586
  }
655
587
  function exitFootnoteDefinitionLabelString(token) {
656
588
  const label = this.resume();
657
- const node2 = this.stack[this.stack.length - 1];
658
- ok$1(node2.type === "footnoteDefinition");
659
- node2.identifier = normalizeIdentifier(
589
+ const node = this.stack[this.stack.length - 1];
590
+ ok$1(node.type === "footnoteDefinition");
591
+ node.identifier = normalizeIdentifier(
660
592
  this.sliceSerialize(token)
661
593
  ).toLowerCase();
662
- node2.label = label;
594
+ node.label = label;
663
595
  }
664
596
  function exitFootnoteDefinition(token) {
665
597
  this.exit(token);
@@ -667,13 +599,13 @@ function exitFootnoteDefinition(token) {
667
599
  function footnoteReferencePeek() {
668
600
  return "[";
669
601
  }
670
- function footnoteReference(node2, _, state, info) {
602
+ function footnoteReference(node, _, state, info) {
671
603
  const tracker = state.createTracker(info);
672
604
  let value = tracker.move("[^");
673
605
  const exit2 = state.enter("footnoteReference");
674
606
  const subexit = state.enter("reference");
675
607
  value += tracker.move(
676
- state.safe(state.associationId(node2), { after: "]", before: value })
608
+ state.safe(state.associationId(node), { after: "]", before: value })
677
609
  );
678
610
  subexit();
679
611
  exit2();
@@ -706,21 +638,21 @@ function gfmFootnoteToMarkdown(options) {
706
638
  // This is on by default already.
707
639
  unsafe: [{ character: "[", inConstruct: ["label", "phrasing", "reference"] }]
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), { before: value, after: "]" })
647
+ state.safe(state.associationId(node), { before: value, after: "]" })
716
648
  );
717
649
  subexit();
718
650
  value += tracker.move("]:");
719
- if (node2.children && node2.children.length > 0) {
651
+ if (node.children && node.children.length > 0) {
720
652
  tracker.shift(4);
721
653
  value += tracker.move(
722
654
  (firstLineBlank ? "\n" : " ") + state.indentLines(
723
- state.containerFlow(node2, tracker.current()),
655
+ state.containerFlow(node, tracker.current()),
724
656
  firstLineBlank ? mapAll : mapExceptFirst
725
657
  )
726
658
  );
@@ -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: "~"
@@ -924,13 +856,13 @@ function toAlignment(value) {
924
856
  const code2 = typeof value === "string" ? value.codePointAt(0) : 0;
925
857
  return code2 === 67 || code2 === 99 ? 99 : code2 === 76 || code2 === 108 ? 108 : code2 === 82 || code2 === 114 ? 114 : 0;
926
858
  }
927
- function blockquote(node2, _, state, info) {
859
+ function blockquote(node, _, state, info) {
928
860
  const exit2 = state.enter("blockquote");
929
861
  const tracker = state.createTracker(info);
930
862
  tracker.move("> ");
931
863
  tracker.shift(2);
932
864
  const value = state.indentLines(
933
- state.containerFlow(node2, tracker.current()),
865
+ state.containerFlow(node, tracker.current()),
934
866
  map$1
935
867
  );
936
868
  exit2();
@@ -988,12 +920,12 @@ function longestStreak(value, substring) {
988
920
  }
989
921
  return max;
990
922
  }
991
- function formatCodeAsIndented(node2, state) {
923
+ function formatCodeAsIndented(node, state) {
992
924
  return Boolean(
993
- state.options.fences === false && node2.value && // If there’s no info…
994
- !node2.lang && // And there’s a non-whitespace character…
995
- /[^ \r\n]/.test(node2.value) && // And the value doesn’t start or end in a blank…
996
- !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node2.value)
925
+ state.options.fences === false && node.value && // If there’s no info…
926
+ !node.lang && // And there’s a non-whitespace character…
927
+ /[^ \r\n]/.test(node.value) && // And the value doesn’t start or end in a blank…
928
+ !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value)
997
929
  );
998
930
  }
999
931
  function checkFence(state) {
@@ -1005,11 +937,11 @@ function checkFence(state) {
1005
937
  }
1006
938
  return marker;
1007
939
  }
1008
- function code$1(node2, _, state, info) {
940
+ function code$1(node, _, state, info) {
1009
941
  const marker = checkFence(state);
1010
- const raw = node2.value || "";
942
+ const raw = node.value || "";
1011
943
  const suffix = marker === "`" ? "GraveAccent" : "Tilde";
1012
- if (formatCodeAsIndented(node2, state)) {
944
+ if (formatCodeAsIndented(node, state)) {
1013
945
  const exit3 = state.enter("codeIndented");
1014
946
  const value2 = state.indentLines(raw, map);
1015
947
  exit3();
@@ -1019,10 +951,10 @@ function code$1(node2, _, state, info) {
1019
951
  const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
1020
952
  const exit2 = state.enter("codeFenced");
1021
953
  let value = tracker.move(sequence);
1022
- if (node2.lang) {
954
+ if (node.lang) {
1023
955
  const subexit = state.enter(`codeFencedLang${suffix}`);
1024
956
  value += tracker.move(
1025
- state.safe(node2.lang, {
957
+ state.safe(node.lang, {
1026
958
  before: value,
1027
959
  after: " ",
1028
960
  encode: ["`"],
@@ -1031,11 +963,11 @@ function code$1(node2, _, state, info) {
1031
963
  );
1032
964
  subexit();
1033
965
  }
1034
- if (node2.lang && node2.meta) {
966
+ if (node.lang && node.meta) {
1035
967
  const subexit = state.enter(`codeFencedMeta${suffix}`);
1036
968
  value += tracker.move(" ");
1037
969
  value += tracker.move(
1038
- state.safe(node2.meta, {
970
+ state.safe(node.meta, {
1039
971
  before: value,
1040
972
  after: "\n",
1041
973
  encode: ["`"],
@@ -1064,7 +996,7 @@ function checkQuote(state) {
1064
996
  }
1065
997
  return marker;
1066
998
  }
1067
- function definition(node2, _, state, info) {
999
+ function definition(node, _, state, info) {
1068
1000
  const quote = checkQuote(state);
1069
1001
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1070
1002
  const exit2 = state.enter("definition");
@@ -1072,7 +1004,7 @@ function definition(node2, _, state, info) {
1072
1004
  const tracker = state.createTracker(info);
1073
1005
  let value = tracker.move("[");
1074
1006
  value += tracker.move(
1075
- state.safe(state.associationId(node2), {
1007
+ state.safe(state.associationId(node), {
1076
1008
  before: value,
1077
1009
  after: "]",
1078
1010
  ...tracker.current()
@@ -1082,31 +1014,31 @@ function definition(node2, _, state, info) {
1082
1014
  subexit();
1083
1015
  if (
1084
1016
  // If there’s no url, or…
1085
- !node2.url || // If there are control characters or whitespace.
1086
- /[\0- \u007F]/.test(node2.url)
1017
+ !node.url || // If there are control characters or whitespace.
1018
+ /[\0- \u007F]/.test(node.url)
1087
1019
  ) {
1088
1020
  subexit = state.enter("destinationLiteral");
1089
1021
  value += tracker.move("<");
1090
1022
  value += tracker.move(
1091
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1023
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1092
1024
  );
1093
1025
  value += tracker.move(">");
1094
1026
  } else {
1095
1027
  subexit = state.enter("destinationRaw");
1096
1028
  value += tracker.move(
1097
- state.safe(node2.url, {
1029
+ state.safe(node.url, {
1098
1030
  before: value,
1099
- after: node2.title ? " " : "\n",
1031
+ after: node.title ? " " : "\n",
1100
1032
  ...tracker.current()
1101
1033
  })
1102
1034
  );
1103
1035
  }
1104
1036
  subexit();
1105
- if (node2.title) {
1037
+ if (node.title) {
1106
1038
  subexit = state.enter(`title${suffix}`);
1107
1039
  value += tracker.move(" " + quote);
1108
1040
  value += tracker.move(
1109
- state.safe(node2.title, {
1041
+ state.safe(node.title, {
1110
1042
  before: value,
1111
1043
  after: quote,
1112
1044
  ...tracker.current()
@@ -1179,13 +1111,13 @@ function encodeInfo(outside, inside, marker) {
1179
1111
  );
1180
1112
  }
1181
1113
  emphasis.peek = emphasisPeek;
1182
- function emphasis(node2, _, state, info) {
1114
+ function emphasis(node, _, state, info) {
1183
1115
  const marker = checkEmphasis(state);
1184
1116
  const exit2 = state.enter("emphasis");
1185
1117
  const tracker = state.createTracker(info);
1186
1118
  const before = tracker.move(marker);
1187
1119
  let between = tracker.move(
1188
- state.containerPhrasing(node2, {
1120
+ state.containerPhrasing(node, {
1189
1121
  after: marker,
1190
1122
  before,
1191
1123
  ...tracker.current()
@@ -1216,60 +1148,45 @@ function emphasis(node2, _, state, info) {
1216
1148
  function emphasisPeek(_, _1, state) {
1217
1149
  return state.options.emphasis || "*";
1218
1150
  }
1219
- const emptyOptions$1 = {};
1220
- function toString(value, options) {
1221
- const settings = emptyOptions$1;
1222
- const includeImageAlt = typeof settings.includeImageAlt === "boolean" ? settings.includeImageAlt : true;
1223
- const includeHtml = typeof settings.includeHtml === "boolean" ? settings.includeHtml : true;
1224
- return one(value, includeImageAlt, includeHtml);
1225
- }
1226
- function one(value, includeImageAlt, includeHtml) {
1227
- if (node(value)) {
1228
- if ("value" in value) {
1229
- return value.type === "html" && !includeHtml ? "" : value.value;
1230
- }
1231
- if (includeImageAlt && "alt" in value && value.alt) {
1232
- return value.alt;
1233
- }
1234
- if ("children" in value) {
1235
- return all(value.children, includeImageAlt, includeHtml);
1236
- }
1237
- }
1238
- if (Array.isArray(value)) {
1239
- return all(value, includeImageAlt, includeHtml);
1151
+ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
1152
+ let reverse;
1153
+ let test;
1154
+ let visitor;
1155
+ if (typeof testOrVisitor === "function" && typeof visitorOrReverse !== "function") {
1156
+ test = void 0;
1157
+ visitor = testOrVisitor;
1158
+ reverse = visitorOrReverse;
1159
+ } else {
1160
+ test = testOrVisitor;
1161
+ visitor = visitorOrReverse;
1162
+ reverse = maybeReverse;
1240
1163
  }
1241
- return "";
1242
- }
1243
- function all(values, includeImageAlt, includeHtml) {
1244
- const result = [];
1245
- let index = -1;
1246
- while (++index < values.length) {
1247
- result[index] = one(values[index], includeImageAlt, includeHtml);
1164
+ visitParents(tree, test, overload, reverse);
1165
+ function overload(node, parents) {
1166
+ const parent = parents[parents.length - 1];
1167
+ const index = parent ? parent.children.indexOf(node) : void 0;
1168
+ return visitor(node, index, parent);
1248
1169
  }
1249
- return result.join("");
1250
- }
1251
- function node(value) {
1252
- return Boolean(value && typeof value === "object");
1253
1170
  }
1254
- function formatHeadingAsSetext(node2, state) {
1171
+ function formatHeadingAsSetext(node, state) {
1255
1172
  let literalWithBreak = false;
1256
- visit(node2, function(node3) {
1257
- if ("value" in node3 && /\r?\n|\r/.test(node3.value) || node3.type === "break") {
1173
+ visit(node, function(node2) {
1174
+ if ("value" in node2 && /\r?\n|\r/.test(node2.value) || node2.type === "break") {
1258
1175
  literalWithBreak = true;
1259
- return EXIT$1;
1176
+ return EXIT;
1260
1177
  }
1261
1178
  });
1262
1179
  return Boolean(
1263
- (!node2.depth || node2.depth < 3) && toString(node2) && (state.options.setext || literalWithBreak)
1180
+ (!node.depth || node.depth < 3) && toString(node) && (state.options.setext || literalWithBreak)
1264
1181
  );
1265
1182
  }
1266
- function heading(node2, _, state, info) {
1267
- const rank = Math.max(Math.min(6, node2.depth || 1), 1);
1183
+ function heading(node, _, state, info) {
1184
+ const rank = Math.max(Math.min(6, node.depth || 1), 1);
1268
1185
  const tracker = state.createTracker(info);
1269
- if (formatHeadingAsSetext(node2, state)) {
1186
+ if (formatHeadingAsSetext(node, state)) {
1270
1187
  const exit3 = state.enter("headingSetext");
1271
1188
  const subexit2 = state.enter("phrasing");
1272
- const value2 = state.containerPhrasing(node2, {
1189
+ const value2 = state.containerPhrasing(node, {
1273
1190
  ...tracker.current(),
1274
1191
  before: "\n",
1275
1192
  after: "\n"
@@ -1287,7 +1204,7 @@ function heading(node2, _, state, info) {
1287
1204
  const exit2 = state.enter("headingAtx");
1288
1205
  const subexit = state.enter("phrasing");
1289
1206
  tracker.move(sequence + " ");
1290
- let value = state.containerPhrasing(node2, {
1207
+ let value = state.containerPhrasing(node, {
1291
1208
  before: "# ",
1292
1209
  after: "\n",
1293
1210
  ...tracker.current()
@@ -1304,14 +1221,14 @@ function heading(node2, _, state, info) {
1304
1221
  return value;
1305
1222
  }
1306
1223
  html.peek = htmlPeek;
1307
- function html(node2) {
1308
- return node2.value || "";
1224
+ function html(node) {
1225
+ return node.value || "";
1309
1226
  }
1310
1227
  function htmlPeek() {
1311
1228
  return "<";
1312
1229
  }
1313
1230
  image.peek = imagePeek;
1314
- function image(node2, _, state, info) {
1231
+ function image(node, _, state, info) {
1315
1232
  const quote = checkQuote(state);
1316
1233
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1317
1234
  const exit2 = state.enter("image");
@@ -1319,37 +1236,37 @@ function image(node2, _, state, info) {
1319
1236
  const tracker = state.createTracker(info);
1320
1237
  let value = tracker.move("![");
1321
1238
  value += tracker.move(
1322
- state.safe(node2.alt, { before: value, after: "]", ...tracker.current() })
1239
+ state.safe(node.alt, { before: value, after: "]", ...tracker.current() })
1323
1240
  );
1324
1241
  value += tracker.move("](");
1325
1242
  subexit();
1326
1243
  if (
1327
1244
  // If there’s no url but there is a title…
1328
- !node2.url && node2.title || // If there are control characters or whitespace.
1329
- /[\0- \u007F]/.test(node2.url)
1245
+ !node.url && node.title || // If there are control characters or whitespace.
1246
+ /[\0- \u007F]/.test(node.url)
1330
1247
  ) {
1331
1248
  subexit = state.enter("destinationLiteral");
1332
1249
  value += tracker.move("<");
1333
1250
  value += tracker.move(
1334
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1251
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1335
1252
  );
1336
1253
  value += tracker.move(">");
1337
1254
  } else {
1338
1255
  subexit = state.enter("destinationRaw");
1339
1256
  value += tracker.move(
1340
- state.safe(node2.url, {
1257
+ state.safe(node.url, {
1341
1258
  before: value,
1342
- after: node2.title ? " " : ")",
1259
+ after: node.title ? " " : ")",
1343
1260
  ...tracker.current()
1344
1261
  })
1345
1262
  );
1346
1263
  }
1347
1264
  subexit();
1348
- if (node2.title) {
1265
+ if (node.title) {
1349
1266
  subexit = state.enter(`title${suffix}`);
1350
1267
  value += tracker.move(" " + quote);
1351
1268
  value += tracker.move(
1352
- state.safe(node2.title, {
1269
+ state.safe(node.title, {
1353
1270
  before: value,
1354
1271
  after: quote,
1355
1272
  ...tracker.current()
@@ -1366,13 +1283,13 @@ function imagePeek() {
1366
1283
  return "!";
1367
1284
  }
1368
1285
  imageReference.peek = imageReferencePeek;
1369
- function imageReference(node2, _, state, info) {
1370
- const type = node2.referenceType;
1286
+ function imageReference(node, _, state, info) {
1287
+ const type = node.referenceType;
1371
1288
  const exit2 = state.enter("imageReference");
1372
1289
  let subexit = state.enter("label");
1373
1290
  const tracker = state.createTracker(info);
1374
1291
  let value = tracker.move("![");
1375
- const alt = state.safe(node2.alt, {
1292
+ const alt = state.safe(node.alt, {
1376
1293
  before: value,
1377
1294
  after: "]",
1378
1295
  ...tracker.current()
@@ -1382,7 +1299,7 @@ function imageReference(node2, _, state, info) {
1382
1299
  const stack = state.stack;
1383
1300
  state.stack = [];
1384
1301
  subexit = state.enter("reference");
1385
- const reference = state.safe(state.associationId(node2), {
1302
+ const reference = state.safe(state.associationId(node), {
1386
1303
  before: value,
1387
1304
  after: "]",
1388
1305
  ...tracker.current()
@@ -1403,8 +1320,8 @@ function imageReferencePeek() {
1403
1320
  return "!";
1404
1321
  }
1405
1322
  inlineCode.peek = inlineCodePeek;
1406
- function inlineCode(node2, _, state) {
1407
- let value = node2.value || "";
1323
+ function inlineCode(node, _, state) {
1324
+ let value = node.value || "";
1408
1325
  let sequence = "`";
1409
1326
  let index = -1;
1410
1327
  while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
@@ -1431,33 +1348,33 @@ function inlineCode(node2, _, state) {
1431
1348
  function inlineCodePeek() {
1432
1349
  return "`";
1433
1350
  }
1434
- function formatLinkAsAutolink(node2, state) {
1435
- const raw = toString(node2);
1351
+ function formatLinkAsAutolink(node, state) {
1352
+ const raw = toString(node);
1436
1353
  return Boolean(
1437
1354
  !state.options.resourceLink && // If there’s a url…
1438
- node2.url && // And there’s a no title…
1439
- !node2.title && // And the content of `node` is a single text node…
1440
- node2.children && node2.children.length === 1 && node2.children[0].type === "text" && // And if the url is the same as the content…
1441
- (raw === node2.url || "mailto:" + raw === node2.url) && // And that starts w/ a protocol…
1442
- /^[a-z][a-z+.-]+:/i.test(node2.url) && // And that doesn’t contain ASCII control codes (character escapes and
1355
+ node.url && // And there’s a no title…
1356
+ !node.title && // And the content of `node` is a single text node…
1357
+ node.children && node.children.length === 1 && node.children[0].type === "text" && // And if the url is the same as the content…
1358
+ (raw === node.url || "mailto:" + raw === node.url) && // And that starts w/ a protocol…
1359
+ /^[a-z][a-z+.-]+:/i.test(node.url) && // And that doesn’t contain ASCII control codes (character escapes and
1443
1360
  // references don’t work), space, or angle brackets…
1444
- !/[\0- <>\u007F]/.test(node2.url)
1361
+ !/[\0- <>\u007F]/.test(node.url)
1445
1362
  );
1446
1363
  }
1447
1364
  link.peek = linkPeek;
1448
- function link(node2, _, state, info) {
1365
+ function link(node, _, state, info) {
1449
1366
  const quote = checkQuote(state);
1450
1367
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1451
1368
  const tracker = state.createTracker(info);
1452
1369
  let exit2;
1453
1370
  let subexit;
1454
- if (formatLinkAsAutolink(node2, state)) {
1371
+ if (formatLinkAsAutolink(node, state)) {
1455
1372
  const stack = state.stack;
1456
1373
  state.stack = [];
1457
1374
  exit2 = state.enter("autolink");
1458
1375
  let value2 = tracker.move("<");
1459
1376
  value2 += tracker.move(
1460
- state.containerPhrasing(node2, {
1377
+ state.containerPhrasing(node, {
1461
1378
  before: value2,
1462
1379
  after: ">",
1463
1380
  ...tracker.current()
@@ -1472,7 +1389,7 @@ function link(node2, _, state, info) {
1472
1389
  subexit = state.enter("label");
1473
1390
  let value = tracker.move("[");
1474
1391
  value += tracker.move(
1475
- state.containerPhrasing(node2, {
1392
+ state.containerPhrasing(node, {
1476
1393
  before: value,
1477
1394
  after: "](",
1478
1395
  ...tracker.current()
@@ -1482,31 +1399,31 @@ function link(node2, _, state, info) {
1482
1399
  subexit();
1483
1400
  if (
1484
1401
  // If there’s no url but there is a title…
1485
- !node2.url && node2.title || // If there are control characters or whitespace.
1486
- /[\0- \u007F]/.test(node2.url)
1402
+ !node.url && node.title || // If there are control characters or whitespace.
1403
+ /[\0- \u007F]/.test(node.url)
1487
1404
  ) {
1488
1405
  subexit = state.enter("destinationLiteral");
1489
1406
  value += tracker.move("<");
1490
1407
  value += tracker.move(
1491
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1408
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1492
1409
  );
1493
1410
  value += tracker.move(">");
1494
1411
  } else {
1495
1412
  subexit = state.enter("destinationRaw");
1496
1413
  value += tracker.move(
1497
- state.safe(node2.url, {
1414
+ state.safe(node.url, {
1498
1415
  before: value,
1499
- after: node2.title ? " " : ")",
1416
+ after: node.title ? " " : ")",
1500
1417
  ...tracker.current()
1501
1418
  })
1502
1419
  );
1503
1420
  }
1504
1421
  subexit();
1505
- if (node2.title) {
1422
+ if (node.title) {
1506
1423
  subexit = state.enter(`title${suffix}`);
1507
1424
  value += tracker.move(" " + quote);
1508
1425
  value += tracker.move(
1509
- state.safe(node2.title, {
1426
+ state.safe(node.title, {
1510
1427
  before: value,
1511
1428
  after: quote,
1512
1429
  ...tracker.current()
@@ -1519,17 +1436,17 @@ function link(node2, _, state, info) {
1519
1436
  exit2();
1520
1437
  return value;
1521
1438
  }
1522
- function linkPeek(node2, _, state) {
1523
- return formatLinkAsAutolink(node2, state) ? "<" : "[";
1439
+ function linkPeek(node, _, state) {
1440
+ return formatLinkAsAutolink(node, state) ? "<" : "[";
1524
1441
  }
1525
1442
  linkReference.peek = linkReferencePeek;
1526
- function linkReference(node2, _, state, info) {
1527
- const type = node2.referenceType;
1443
+ function linkReference(node, _, state, info) {
1444
+ const type = node.referenceType;
1528
1445
  const exit2 = state.enter("linkReference");
1529
1446
  let subexit = state.enter("label");
1530
1447
  const tracker = state.createTracker(info);
1531
1448
  let value = tracker.move("[");
1532
- const text2 = state.containerPhrasing(node2, {
1449
+ const text2 = state.containerPhrasing(node, {
1533
1450
  before: value,
1534
1451
  after: "]",
1535
1452
  ...tracker.current()
@@ -1539,7 +1456,7 @@ function linkReference(node2, _, state, info) {
1539
1456
  const stack = state.stack;
1540
1457
  state.stack = [];
1541
1458
  subexit = state.enter("reference");
1542
- const reference = state.safe(state.associationId(node2), {
1459
+ const reference = state.safe(state.associationId(node), {
1543
1460
  before: value,
1544
1461
  after: "]",
1545
1462
  ...tracker.current()
@@ -1604,14 +1521,14 @@ function checkRule(state) {
1604
1521
  }
1605
1522
  return marker;
1606
1523
  }
1607
- function list(node2, parent, state, info) {
1524
+ function list(node, parent, state, info) {
1608
1525
  const exit2 = state.enter("list");
1609
1526
  const bulletCurrent = state.bulletCurrent;
1610
- let bullet = node2.ordered ? checkBulletOrdered(state) : checkBullet(state);
1611
- const bulletOther = node2.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1527
+ let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
1528
+ const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1612
1529
  let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
1613
- if (!node2.ordered) {
1614
- const firstListItem = node2.children ? node2.children[0] : void 0;
1530
+ if (!node.ordered) {
1531
+ const firstListItem = node.children ? node.children[0] : void 0;
1615
1532
  if (
1616
1533
  // Bullet could be used as a thematic break marker:
1617
1534
  (bullet === "*" || bullet === "-") && // Empty first list item:
@@ -1623,8 +1540,8 @@ function list(node2, parent, state, info) {
1623
1540
  }
1624
1541
  if (checkRule(state) === bullet && firstListItem) {
1625
1542
  let index = -1;
1626
- while (++index < node2.children.length) {
1627
- const item = node2.children[index];
1543
+ while (++index < node.children.length) {
1544
+ const item = node.children[index];
1628
1545
  if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
1629
1546
  useDifferentMarker = true;
1630
1547
  break;
@@ -1636,7 +1553,7 @@ function list(node2, parent, state, info) {
1636
1553
  bullet = bulletOther;
1637
1554
  }
1638
1555
  state.bulletCurrent = bullet;
1639
- const value = state.containerFlow(node2, info);
1556
+ const value = state.containerFlow(node, info);
1640
1557
  state.bulletLastUsed = bullet;
1641
1558
  state.bulletCurrent = bulletCurrent;
1642
1559
  exit2();
@@ -1651,14 +1568,14 @@ function checkListItemIndent(state) {
1651
1568
  }
1652
1569
  return style;
1653
1570
  }
1654
- function listItem(node2, parent, state, info) {
1571
+ function listItem(node, parent, state, info) {
1655
1572
  const listItemIndent = checkListItemIndent(state);
1656
1573
  let bullet = state.bulletCurrent || checkBullet(state);
1657
1574
  if (parent && parent.type === "list" && parent.ordered) {
1658
- bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node2)) + bullet;
1575
+ bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
1659
1576
  }
1660
1577
  let size = bullet.length + 1;
1661
- if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node2.spread)) {
1578
+ if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) {
1662
1579
  size = Math.ceil(size / 4) * 4;
1663
1580
  }
1664
1581
  const tracker = state.createTracker(info);
@@ -1666,7 +1583,7 @@ function listItem(node2, parent, state, info) {
1666
1583
  tracker.shift(size);
1667
1584
  const exit2 = state.enter("listItem");
1668
1585
  const value = state.indentLines(
1669
- state.containerFlow(node2, tracker.current()),
1586
+ state.containerFlow(node, tracker.current()),
1670
1587
  map2
1671
1588
  );
1672
1589
  exit2();
@@ -1678,10 +1595,10 @@ function listItem(node2, parent, state, info) {
1678
1595
  return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
1679
1596
  }
1680
1597
  }
1681
- function paragraph(node2, _, state, info) {
1598
+ function paragraph(node, _, state, info) {
1682
1599
  const exit2 = state.enter("paragraph");
1683
1600
  const subexit = state.enter("phrasing");
1684
- const value = state.containerPhrasing(node2, info);
1601
+ const value = state.containerPhrasing(node, info);
1685
1602
  subexit();
1686
1603
  exit2();
1687
1604
  return value;
@@ -1712,12 +1629,12 @@ const phrasing = (
1712
1629
  "textDirective"
1713
1630
  ])
1714
1631
  );
1715
- function root(node2, _, state, info) {
1716
- const hasPhrasing = node2.children.some(function(d) {
1632
+ function root(node, _, state, info) {
1633
+ const hasPhrasing = node.children.some(function(d) {
1717
1634
  return phrasing(d);
1718
1635
  });
1719
1636
  const container = hasPhrasing ? state.containerPhrasing : state.containerFlow;
1720
- return container.call(state, node2, info);
1637
+ return container.call(state, node, info);
1721
1638
  }
1722
1639
  function checkStrong(state) {
1723
1640
  const marker = state.options.strong || "*";
@@ -1729,13 +1646,13 @@ function checkStrong(state) {
1729
1646
  return marker;
1730
1647
  }
1731
1648
  strong.peek = strongPeek;
1732
- function strong(node2, _, state, info) {
1649
+ function strong(node, _, state, info) {
1733
1650
  const marker = checkStrong(state);
1734
1651
  const exit2 = state.enter("strong");
1735
1652
  const tracker = state.createTracker(info);
1736
1653
  const before = tracker.move(marker + marker);
1737
1654
  let between = tracker.move(
1738
- state.containerPhrasing(node2, {
1655
+ state.containerPhrasing(node, {
1739
1656
  after: marker,
1740
1657
  before,
1741
1658
  ...tracker.current()
@@ -1766,8 +1683,8 @@ function strong(node2, _, state, info) {
1766
1683
  function strongPeek(_, _1, state) {
1767
1684
  return state.options.strong || "*";
1768
1685
  }
1769
- function text$1(node2, _, state, info) {
1770
- return state.safe(node2.value, info);
1686
+ function text$1(node, _, state, info) {
1687
+ return state.safe(node.value, info);
1771
1688
  }
1772
1689
  function checkRuleRepetition(state) {
1773
1690
  const repetition = state.options.ruleRepetition || 3;
@@ -1853,9 +1770,9 @@ function exitCodeText(token) {
1853
1770
  if (this.data.inTable) {
1854
1771
  value = value.replace(/\\([\\|])/g, replace);
1855
1772
  }
1856
- const node2 = this.stack[this.stack.length - 1];
1857
- ok$1(node2.type === "inlineCode");
1858
- node2.value = value;
1773
+ const node = this.stack[this.stack.length - 1];
1774
+ ok$1(node.type === "inlineCode");
1775
+ node.value = value;
1859
1776
  this.exit(token);
1860
1777
  }
1861
1778
  function replace($0, $1) {
@@ -1893,18 +1810,18 @@ function gfmTableToMarkdown(options) {
1893
1810
  tableRow: handleTableRow
1894
1811
  }
1895
1812
  };
1896
- function handleTable(node2, _, state, info) {
1897
- return serializeData(handleTableAsData(node2, state, info), node2.align);
1813
+ function handleTable(node, _, state, info) {
1814
+ return serializeData(handleTableAsData(node, state, info), node.align);
1898
1815
  }
1899
- function handleTableRow(node2, _, state, info) {
1900
- const row = handleTableRowAsData(node2, state, info);
1816
+ function handleTableRow(node, _, state, info) {
1817
+ const row = handleTableRowAsData(node, state, info);
1901
1818
  const value = serializeData([row]);
1902
1819
  return value.slice(0, value.indexOf("\n"));
1903
1820
  }
1904
- function handleTableCell(node2, _, state, info) {
1821
+ function handleTableCell(node, _, state, info) {
1905
1822
  const exit2 = state.enter("tableCell");
1906
1823
  const subexit = state.enter("phrasing");
1907
- const value = state.containerPhrasing(node2, {
1824
+ const value = state.containerPhrasing(node, {
1908
1825
  ...info,
1909
1826
  before: around,
1910
1827
  after: around
@@ -1924,8 +1841,8 @@ function gfmTableToMarkdown(options) {
1924
1841
  stringLength
1925
1842
  });
1926
1843
  }
1927
- function handleTableAsData(node2, state, info) {
1928
- const children = node2.children;
1844
+ function handleTableAsData(node, state, info) {
1845
+ const children = node.children;
1929
1846
  let index = -1;
1930
1847
  const result = [];
1931
1848
  const subexit = state.enter("table");
@@ -1935,19 +1852,19 @@ function gfmTableToMarkdown(options) {
1935
1852
  subexit();
1936
1853
  return result;
1937
1854
  }
1938
- function handleTableRowAsData(node2, state, info) {
1939
- const children = node2.children;
1855
+ function handleTableRowAsData(node, state, info) {
1856
+ const children = node.children;
1940
1857
  let index = -1;
1941
1858
  const result = [];
1942
1859
  const subexit = state.enter("tableRow");
1943
1860
  while (++index < children.length) {
1944
- result[index] = handleTableCell(children[index], node2, state, info);
1861
+ result[index] = handleTableCell(children[index], node, state, info);
1945
1862
  }
1946
1863
  subexit();
1947
1864
  return result;
1948
1865
  }
1949
- function inlineCodeWithTable(node2, parent, state) {
1950
- let value = handle.inlineCode(node2, parent, state);
1866
+ function inlineCodeWithTable(node, parent, state) {
1867
+ let value = handle.inlineCode(node, parent, state);
1951
1868
  if (state.stack.includes("tableCell")) {
1952
1869
  value = value.replace(/\|/g, "\\$&");
1953
1870
  }
@@ -1970,16 +1887,16 @@ function gfmTaskListItemToMarkdown() {
1970
1887
  };
1971
1888
  }
1972
1889
  function exitCheck(token) {
1973
- const node2 = this.stack[this.stack.length - 2];
1974
- ok$1(node2.type === "listItem");
1975
- node2.checked = token.type === "taskListCheckValueChecked";
1890
+ const node = this.stack[this.stack.length - 2];
1891
+ ok$1(node.type === "listItem");
1892
+ node.checked = token.type === "taskListCheckValueChecked";
1976
1893
  }
1977
1894
  function exitParagraphWithTaskListItem(token) {
1978
1895
  const parent = this.stack[this.stack.length - 2];
1979
1896
  if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
1980
- const node2 = this.stack[this.stack.length - 1];
1981
- ok$1(node2.type === "paragraph");
1982
- const head = node2.children[0];
1897
+ const node = this.stack[this.stack.length - 1];
1898
+ ok$1(node.type === "paragraph");
1899
+ const head = node.children[0];
1983
1900
  if (head && head.type === "text") {
1984
1901
  const siblings = parent.children;
1985
1902
  let index = -1;
@@ -1991,29 +1908,29 @@ function exitParagraphWithTaskListItem(token) {
1991
1908
  break;
1992
1909
  }
1993
1910
  }
1994
- if (firstParaghraph === node2) {
1911
+ if (firstParaghraph === node) {
1995
1912
  head.value = head.value.slice(1);
1996
1913
  if (head.value.length === 0) {
1997
- node2.children.shift();
1998
- } else if (node2.position && head.position && typeof head.position.start.offset === "number") {
1914
+ node.children.shift();
1915
+ } else if (node.position && head.position && typeof head.position.start.offset === "number") {
1999
1916
  head.position.start.column++;
2000
1917
  head.position.start.offset++;
2001
- node2.position.start = Object.assign({}, head.position.start);
1918
+ node.position.start = Object.assign({}, head.position.start);
2002
1919
  }
2003
1920
  }
2004
1921
  }
2005
1922
  }
2006
1923
  this.exit(token);
2007
1924
  }
2008
- function listItemWithTaskListItem(node2, parent, state, info) {
2009
- const head = node2.children[0];
2010
- const checkable = typeof node2.checked === "boolean" && head && head.type === "paragraph";
2011
- const checkbox = "[" + (node2.checked ? "x" : " ") + "] ";
1925
+ function listItemWithTaskListItem(node, parent, state, info) {
1926
+ const head = node.children[0];
1927
+ const checkable = typeof node.checked === "boolean" && head && head.type === "paragraph";
1928
+ const checkbox = "[" + (node.checked ? "x" : " ") + "] ";
2012
1929
  const tracker = state.createTracker(info);
2013
1930
  if (checkable) {
2014
1931
  tracker.move(checkbox);
2015
1932
  }
2016
- let value = handle.listItem(node2, parent, state, {
1933
+ let value = handle.listItem(node, parent, state, {
2017
1934
  ...info,
2018
1935
  ...tracker.current()
2019
1936
  });
@@ -2072,18 +1989,18 @@ function splice(list2, start, remove, items) {
2072
1989
  }
2073
1990
  const hasOwnProperty = {}.hasOwnProperty;
2074
1991
  function combineExtensions(extensions) {
2075
- const all2 = {};
1992
+ const all = {};
2076
1993
  let index = -1;
2077
1994
  while (++index < extensions.length) {
2078
- syntaxExtension(all2, extensions[index]);
1995
+ syntaxExtension(all, extensions[index]);
2079
1996
  }
2080
- return all2;
1997
+ return all;
2081
1998
  }
2082
- function syntaxExtension(all2, extension) {
1999
+ function syntaxExtension(all, extension) {
2083
2000
  let hook;
2084
2001
  for (hook in extension) {
2085
- const maybe = hasOwnProperty.call(all2, hook) ? all2[hook] : void 0;
2086
- const left = maybe || (all2[hook] = {});
2002
+ const maybe = hasOwnProperty.call(all, hook) ? all[hook] : void 0;
2003
+ const left = maybe || (all[hook] = {});
2087
2004
  const right = extension[hook];
2088
2005
  let code2;
2089
2006
  if (right) {
@@ -3468,13 +3385,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3468
3385
  * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
3469
3386
  * SPDX-License-Identifier: AGPL-3.0-or-later
3470
3387
  */
3471
- function isTextNode$1(node2) {
3472
- return node2.type === "text";
3388
+ function isTextNode$1(node) {
3389
+ return node.type === "text";
3473
3390
  }
3474
3391
  const transformPlaceholders = function(ast) {
3475
- visit(ast, isTextNode$1, visitor);
3476
- function visitor(node2, index, parent) {
3477
- const placeholders = node2.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3392
+ visitParents(ast, isTextNode$1, (node, ancestors) => {
3393
+ const parent = ancestors.at(-1);
3394
+ const index = parent.children.indexOf(node);
3395
+ const placeholders = node.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3478
3396
  const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
3479
3397
  if (!matches) {
3480
3398
  return u("text", entry);
@@ -3486,24 +3404,26 @@ const transformPlaceholders = function(ast) {
3486
3404
  });
3487
3405
  });
3488
3406
  parent.children.splice(index, 1, ...placeholders);
3489
- }
3407
+ });
3490
3408
  };
3491
3409
  const remarkPlaceholder = () => transformPlaceholders;
3492
3410
  /*!
3493
3411
  * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
3494
3412
  * SPDX-License-Identifier: AGPL-3.0-or-later
3495
3413
  */
3496
- function isCodeNode(node2) {
3497
- return ["code", "inlineCode"].includes(node2.type);
3414
+ function isCodeNode(node) {
3415
+ return ["code", "inlineCode"].includes(node.type);
3498
3416
  }
3499
3417
  const remarkStripCode = function() {
3500
3418
  return function(tree) {
3501
- visit(tree, isCodeNode, (node2, index, parent) => {
3419
+ visitParents(tree, isCodeNode, (node, ancestors) => {
3420
+ const parent = ancestors.at(-1);
3421
+ const index = parent.children.indexOf(node);
3502
3422
  parent.children.splice(index, 1, {
3503
- ...node2,
3423
+ ...node,
3504
3424
  value: ""
3505
3425
  });
3506
- return [SKIP$1, index + 1];
3426
+ return [SKIP, index + 1];
3507
3427
  });
3508
3428
  };
3509
3429
  };
@@ -3511,17 +3431,19 @@ const remarkStripCode = function() {
3511
3431
  * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3512
3432
  * SPDX-License-Identifier: AGPL-3.0-or-later
3513
3433
  */
3514
- function isTextNode(node2) {
3515
- return ["text", "code", "inlineCode"].includes(node2.type);
3434
+ function isTextNode(node) {
3435
+ return ["text", "code", "inlineCode"].includes(node.type);
3516
3436
  }
3517
3437
  const remarkUnescape = function() {
3518
3438
  return function(tree) {
3519
- visit(tree, isTextNode, (node2, index, parent) => {
3439
+ visitParents(tree, isTextNode, (node, ancestors) => {
3440
+ const parent = ancestors.at(-1);
3441
+ const index = parent.children.indexOf(node);
3520
3442
  parent.children.splice(index, 1, {
3521
- ...node2,
3522
- value: node2.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3443
+ ...node,
3444
+ value: node.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3523
3445
  });
3524
- return [SKIP$1, index + 1];
3446
+ return [SKIP, index + 1];
3525
3447
  });
3526
3448
  };
3527
3449
  };
@@ -3639,8 +3561,8 @@ const _sfc_main = {
3639
3561
  useExtendedMarkdown: this.useExtendedMarkdown
3640
3562
  }).use(remarkUnescape).use(this.useExtendedMarkdown ? remarkGfm : void 0).use(breaks).use(remarkUnlinkProtocols, { except: LINK_PROTOCOLS }).use(remark2rehype, {
3641
3563
  handlers: {
3642
- component(toHast, node2) {
3643
- return toHast(node2, node2.component, { value: node2.value });
3564
+ component(toHast, node) {
3565
+ return toHast(node, node.component, { value: node.value });
3644
3566
  }
3645
3567
  }
3646
3568
  }).use(this.useExtendedMarkdown ? rehypeHighlight.value : void 0).use(remarkPlaceholder).use(rehypeExternalLinks, {
@@ -3680,10 +3602,9 @@ const _sfc_main = {
3680
3602
  return entry;
3681
3603
  }
3682
3604
  const { component, props } = entry;
3683
- const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
3684
3605
  return h(component, {
3685
3606
  ...props,
3686
- class: componentClass
3607
+ class: "rich-text--component"
3687
3608
  });
3688
3609
  });
3689
3610
  }
@@ -3699,7 +3620,9 @@ const _sfc_main = {
3699
3620
  if (!this.useMarkdown && !this.useExtendedMarkdown) {
3700
3621
  return text2;
3701
3622
  }
3702
- return unified().use(remarkParse).use(remarkStripCode).use(remarkStringify).processSync(text2).value;
3623
+ const processor = unified();
3624
+ processor.compiler = (tree) => toString(tree);
3625
+ return processor.use(remarkParse).use(remarkStripCode).processSync(text2).value;
3703
3626
  },
3704
3627
  createElement(type, props, key) {
3705
3628
  if (key) {
@@ -3755,6 +3678,15 @@ const _sfc_main = {
3755
3678
  to: route
3756
3679
  }, { default: () => children });
3757
3680
  }
3681
+ const isAllowedScheme = /^(https?:\/\/|tel:|mailto:)/.test(props.href);
3682
+ if (isAllowedScheme) {
3683
+ props.href = props.href.trim();
3684
+ return h(NcRichTextExternalLink, props, children);
3685
+ } else {
3686
+ delete props.href;
3687
+ delete props.target;
3688
+ return h("span", props, children);
3689
+ }
3758
3690
  }
3759
3691
  return h(type, props, children);
3760
3692
  }
@@ -3780,9 +3712,9 @@ const _sfc_main = {
3780
3712
  return this.useMarkdown || this.useExtendedMarkdown ? this.renderMarkdown() : this.renderPlaintext();
3781
3713
  }
3782
3714
  };
3783
- const NcRichText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8639a666"]]);
3715
+ const NcRichText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3a69ba33"]]);
3784
3716
  export {
3785
3717
  NcRichText as N,
3786
3718
  NcReferenceList as a
3787
3719
  };
3788
- //# sourceMappingURL=NcRichText-D_ssz6sB.mjs.map
3720
+ //# sourceMappingURL=NcRichText-rS9gcduo.mjs.map