@nextcloud/vue 9.0.0-rc.4 → 9.0.0-rc.6

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 (421) hide show
  1. package/CHANGELOG.md +138 -24
  2. package/README.md +1 -1
  3. package/dist/assets/{NcActionButtonGroup-BND4GQdv.css → NcActionButtonGroup-BLIEEeG3.css} +1 -1
  4. package/dist/assets/NcActionInput-BrCsR1ZO.css +221 -0
  5. package/dist/assets/{NcActionTextEditable-BbOijUsB.css → NcActionTextEditable-vhpb77-W.css} +4 -9
  6. package/dist/assets/{NcActions-DfCOtp0b.css → NcActions-CG3xO48Y.css} +13 -13
  7. package/dist/assets/{NcAppContent-RmHDNYBp.css → NcAppContent-vj2DL4Yr.css} +4 -4
  8. package/dist/assets/{NcAppNavigation-C6-8ErA_.css → NcAppNavigation-Dx5I2eEV.css} +38 -12
  9. package/dist/assets/{NcAppNavigationItem-B-slGJHZ.css → NcAppNavigationItem-D0G4tdGd.css} +37 -37
  10. package/dist/assets/{NcAppNavigationNewItem-CYsA6ZGQ.css → NcAppNavigationNewItem-CCu1yQxq.css} +2 -2
  11. package/dist/assets/{NcAppNavigationSearch-BAzhDRd7.css → NcAppNavigationSearch-C1BuilVS.css} +5 -8
  12. package/dist/assets/{NcAppSettingsDialog-DfBJYMdm.css → NcAppSettingsDialog-705Crvh8.css} +11 -11
  13. package/dist/assets/{NcAppSidebar-BeRME1Bx.css → NcAppSidebar-CZ-bJUxG.css} +61 -77
  14. package/dist/assets/NcAvatar-DETOZR8d.css +134 -0
  15. package/dist/assets/{NcBreadcrumb-CV3DgRKn.css → NcBreadcrumb-Dll7O4N9.css} +15 -15
  16. package/dist/assets/{NcButton-Cpw_vPKw.css → NcButton-BWD8LdCm.css} +74 -70
  17. package/dist/assets/{NcCheckboxRadioSwitch-DKVMIvxJ.css → NcCheckboxRadioSwitch-Cbnc4p0H.css} +35 -35
  18. package/dist/assets/{NcChip-rGBYOr-Q.css → NcChip-1ZmWY_6e.css} +9 -9
  19. package/dist/assets/{NcCollectionList-DVlSPO13.css → NcCollectionList-C7_FPg95.css} +42 -42
  20. package/dist/assets/{NcColorPicker-DgByWqzp.css → NcColorPicker-RX6YpqSU.css} +31 -31
  21. package/dist/assets/{NcContent-1ivDf2e_.css → NcContent-voMuob0w.css} +13 -10
  22. package/dist/assets/{NcCounterBubble-DpKQwKTI.css → NcCounterBubble-C0CtLaMW.css} +8 -8
  23. package/dist/assets/{NcDashboardWidget-BEYk4O95.css → NcDashboardWidget-CTP_ajin.css} +13 -13
  24. package/dist/assets/{NcDashboardWidgetItem-V_jSEH-7.css → NcDashboardWidgetItem-DYwI3Qof.css} +13 -13
  25. package/dist/assets/{NcDateTimePicker-_rRYVngX.css → NcDateTimePicker-D76SV5EC.css} +236 -233
  26. package/dist/assets/NcDateTimePickerNative-B7hWPWho.css +60 -0
  27. package/dist/assets/{NcDialog-Ch6FuMQo.css → NcDialog-DVe1SvHJ.css} +16 -16
  28. package/dist/assets/{NcEmojiPicker-vTc7_EDA.css → NcEmojiPicker-CeVpBSVx.css} +5 -5
  29. package/dist/assets/{NcGuestContent-BZ26iXQi.css → NcGuestContent-j8ai4O1K.css} +3 -3
  30. package/dist/assets/{NcHeaderButton-Ct8k0yDh.css → NcHeaderButton-BZeIVAHI.css} +11 -7
  31. package/dist/assets/{NcHeaderMenu-BAKwNTFx.css → NcHeaderMenu-U_duiDuh.css} +16 -13
  32. package/dist/assets/{NcInputConfirmCancel-9YyvRYjw.css → NcInputConfirmCancel-DNNS3DDJ.css} +5 -5
  33. package/dist/assets/{NcInputField-CvP4PFAO.css → NcInputField-Xm6zpzck.css} +47 -42
  34. package/dist/assets/{NcListItem-BBaZDZQK.css → NcListItem-CAWaHeb2.css} +41 -50
  35. package/dist/assets/{NcLoadingIcon-DlDKflKI.css → NcLoadingIcon-B-JbyXuV.css} +5 -2
  36. package/dist/assets/{NcModal-BMVfhs7c.css → NcModal-x_u5Tqtc.css} +62 -62
  37. package/dist/assets/{NcNoteCard-DlW6RBOO.css → NcNoteCard-DGpRZQtS.css} +18 -18
  38. package/dist/assets/{NcPasswordField-D7XrnwDs.css → NcPasswordField-Ck5YCufb.css} +2 -2
  39. package/dist/assets/{NcPopover-zFjgXDlM.css → NcPopover-BzkXE_af.css} +2 -2
  40. package/dist/assets/{NcProgressBar--z-WqmX4.css → NcProgressBar-BZzxurHX.css} +16 -15
  41. package/dist/assets/{NcRelatedResourcesPanel-BQkQvMMD.css → NcRelatedResourcesPanel-9I4RRIks.css} +26 -26
  42. package/dist/assets/{NcRichContenteditable-1zTxLjsG.css → NcRichContenteditable-DLvvIjC_.css} +33 -33
  43. package/dist/assets/{NcRichText-cO2UCM_o.css → NcRichText-Fp8zf8zq.css} +87 -87
  44. package/dist/assets/{NcSelect-BCBpQnFL.css → NcSelect-DjCC5X0A.css} +2 -2
  45. package/dist/assets/NcSelectUsers-Cyr5NLrJ.css +4 -0
  46. package/dist/assets/{NcSettingsInputText-B-V6Y4MD.css → NcSettingsInputText-B2b1M_wK.css} +5 -5
  47. package/dist/assets/{NcSettingsSection-DLjgl3j1.css → NcSettingsSection-CxQtVrUq.css} +7 -7
  48. package/dist/assets/{NcSettingsSelectGroup-DZcNr_Dq.css → NcSettingsSelectGroup-BH0B-4BJ.css} +4 -4
  49. package/dist/assets/{NcTextArea-DoBYU3IE.css → NcTextArea-IV7f8C-Q.css} +24 -24
  50. package/dist/assets/{NcUserStatusIcon-CtJLt6AU.css → NcUserStatusIcon-Du6m_1El.css} +7 -7
  51. package/dist/assets/{referencePickerModal-DIHQ6_wW.css → referencePickerModal-D80hwmre.css} +48 -48
  52. package/dist/chunks/ArrowRight-DRKHUZMH.mjs.map +1 -1
  53. package/dist/chunks/ChevronDown-FiGpp0KT.mjs.map +1 -1
  54. package/dist/chunks/ChevronUp-DPXFp1ss.mjs.map +1 -1
  55. package/dist/chunks/Close-D6ngJ4t9.mjs.map +1 -1
  56. package/dist/chunks/{NcActionButton-Bd35_0n4.mjs → NcActionButton-k1JvZ5eE.mjs} +2 -2
  57. package/dist/chunks/{NcActionButton-Bd35_0n4.mjs.map → NcActionButton-k1JvZ5eE.mjs.map} +1 -1
  58. package/dist/chunks/{NcActionButtonGroup-BVbWDFaC.mjs → NcActionButtonGroup-WjVxibM-.mjs} +3 -3
  59. package/dist/chunks/{NcActionButtonGroup-BVbWDFaC.mjs.map → NcActionButtonGroup-WjVxibM-.mjs.map} +1 -1
  60. package/dist/chunks/NcActionCaption-Fumfjzxj.mjs.map +1 -1
  61. package/dist/chunks/NcActionCheckbox-DLPDTACR.mjs.map +1 -1
  62. package/dist/chunks/{NcActionInput-B_f8z2fo.mjs → NcActionInput-Cu77Jgzr.mjs} +13 -15
  63. package/dist/chunks/NcActionInput-Cu77Jgzr.mjs.map +1 -0
  64. package/dist/chunks/NcActionLink-BEo7zmXX.mjs.map +1 -1
  65. package/dist/chunks/NcActionRadio-CPoWB58D.mjs.map +1 -1
  66. package/dist/chunks/NcActionRouter-ERoQjJKv.mjs.map +1 -1
  67. package/dist/chunks/NcActionText-16Mj4-P1.mjs.map +1 -1
  68. package/dist/chunks/{NcActionTextEditable-B4nTAiHu.mjs → NcActionTextEditable-BLkdbR1d.mjs} +3 -3
  69. package/dist/chunks/{NcActionTextEditable-B4nTAiHu.mjs.map → NcActionTextEditable-BLkdbR1d.mjs.map} +1 -1
  70. package/dist/chunks/{NcActions-BM3DmGLW.mjs → NcActions-CDD8eIxC.mjs} +53 -10
  71. package/dist/chunks/NcActions-CDD8eIxC.mjs.map +1 -0
  72. package/dist/chunks/{NcAppContent-BZZyPqOo.mjs → NcAppContent-BuPSAcBt.mjs} +6 -6
  73. package/dist/chunks/{NcAppContent-BZZyPqOo.mjs.map → NcAppContent-BuPSAcBt.mjs.map} +1 -1
  74. package/dist/chunks/NcAppContentDetails.vue_vue_type_script_setup_true_lang-Dnf4r_Ng.mjs.map +1 -1
  75. package/dist/chunks/NcAppContentList-DnLY_sWw.mjs.map +1 -1
  76. package/dist/chunks/NcAppNavigation-ByAPTGke.mjs +163 -0
  77. package/dist/chunks/NcAppNavigation-ByAPTGke.mjs.map +1 -0
  78. package/dist/chunks/{NcAppNavigationCaption-BrCiN8XK.mjs → NcAppNavigationCaption-SJPzGdtT.mjs} +2 -2
  79. package/dist/chunks/{NcAppNavigationCaption-BrCiN8XK.mjs.map → NcAppNavigationCaption-SJPzGdtT.mjs.map} +1 -1
  80. package/dist/chunks/NcAppNavigationIconBullet-B1kc4u65.mjs.map +1 -1
  81. package/dist/chunks/{NcAppNavigationItem-ClySLuSM.mjs → NcAppNavigationItem-0xVXJPEm.mjs} +14 -11
  82. package/dist/chunks/NcAppNavigationItem-0xVXJPEm.mjs.map +1 -0
  83. package/dist/chunks/{NcAppNavigationNew-CMjaAY5A.mjs → NcAppNavigationNew-CjJgIwfl.mjs} +2 -2
  84. package/dist/chunks/{NcAppNavigationNew-CMjaAY5A.mjs.map → NcAppNavigationNew-CjJgIwfl.mjs.map} +1 -1
  85. package/dist/chunks/{NcAppNavigationNewItem-BUgPntuN.mjs → NcAppNavigationNewItem-BCFq6zq8.mjs} +4 -4
  86. package/dist/chunks/{NcAppNavigationNewItem-BUgPntuN.mjs.map → NcAppNavigationNewItem-BCFq6zq8.mjs.map} +1 -1
  87. package/dist/chunks/{NcAppNavigationSearch-DpjlWi9j.mjs → NcAppNavigationSearch-Bnr0rygy.mjs} +7 -8
  88. package/dist/chunks/NcAppNavigationSearch-Bnr0rygy.mjs.map +1 -0
  89. package/dist/chunks/{NcAppNavigationSettings-DGATbBqy.mjs → NcAppNavigationSettings-CM0_QsTH.mjs} +6 -6
  90. package/dist/chunks/NcAppNavigationSettings-CM0_QsTH.mjs.map +1 -0
  91. package/dist/chunks/NcAppNavigationSpacer-BvkBfuVw.mjs.map +1 -1
  92. package/dist/chunks/{NcAppSettingsDialog-Dgh5jydA.mjs → NcAppSettingsDialog-DBI8-FZa.mjs} +10 -6
  93. package/dist/chunks/{NcAppSettingsDialog-Dgh5jydA.mjs.map → NcAppSettingsDialog-DBI8-FZa.mjs.map} +1 -1
  94. package/dist/chunks/NcAppSettingsSection-CssmXyZ0.mjs.map +1 -1
  95. package/dist/chunks/{NcAppSidebar-DWRmX_-Y.mjs → NcAppSidebar-CyyFi0n6.mjs} +10 -9
  96. package/dist/chunks/NcAppSidebar-CyyFi0n6.mjs.map +1 -0
  97. package/dist/chunks/NcAppSidebarHeader.vue_vue_type_script_setup_true_lang-0j0aFDeK.mjs.map +1 -1
  98. package/dist/chunks/NcAppSidebarTab-D1RmFRTu.mjs.map +1 -1
  99. package/dist/chunks/{NcAvatar-PCbT0J_-.mjs → NcAvatar-CnRCSalb.mjs} +27 -38
  100. package/dist/chunks/NcAvatar-CnRCSalb.mjs.map +1 -0
  101. package/dist/chunks/NcBlurHash-BiFktE2N.mjs.map +1 -1
  102. package/dist/chunks/{NcBreadcrumb-D9gRzaYP.mjs → NcBreadcrumb-B97vQkN2.mjs} +20 -21
  103. package/dist/chunks/NcBreadcrumb-B97vQkN2.mjs.map +1 -0
  104. package/dist/chunks/{NcBreadcrumbs-DjqDBMn-.mjs → NcBreadcrumbs-CvUgliJa.mjs} +4 -4
  105. package/dist/chunks/{NcBreadcrumbs-DjqDBMn-.mjs.map → NcBreadcrumbs-CvUgliJa.mjs.map} +1 -1
  106. package/dist/chunks/{NcButton-yN4vYgXb.mjs → NcButton-BMnvzy1A.mjs} +47 -31
  107. package/dist/chunks/NcButton-BMnvzy1A.mjs.map +1 -0
  108. package/dist/chunks/{NcCheckboxRadioSwitch-D9N_BDHh.mjs → NcCheckboxRadioSwitch-Da0F7y0G.mjs} +7 -7
  109. package/dist/chunks/{NcCheckboxRadioSwitch-D9N_BDHh.mjs.map → NcCheckboxRadioSwitch-Da0F7y0G.mjs.map} +1 -1
  110. package/dist/chunks/{NcChip-BPresRp1.mjs → NcChip-DuaqxToL.mjs} +7 -7
  111. package/dist/chunks/{NcChip-BPresRp1.mjs.map → NcChip-DuaqxToL.mjs.map} +1 -1
  112. package/dist/chunks/{NcCollectionList-BPDCogsB.mjs → NcCollectionList-Cr0T14g-.mjs} +10 -10
  113. package/dist/chunks/{NcCollectionList-BPDCogsB.mjs.map → NcCollectionList-Cr0T14g-.mjs.map} +1 -1
  114. package/dist/chunks/{NcColorPicker-BNpZzN-p.mjs → NcColorPicker-D6g3v7Qc.mjs} +36 -24
  115. package/dist/chunks/NcColorPicker-D6g3v7Qc.mjs.map +1 -0
  116. package/dist/chunks/{NcContent-CZKDyVcI.mjs → NcContent-DV3z9w_V.mjs} +5 -5
  117. package/dist/chunks/{NcContent-CZKDyVcI.mjs.map → NcContent-DV3z9w_V.mjs.map} +1 -1
  118. package/dist/chunks/{NcCounterBubble-PBdqn9Nf.mjs → NcCounterBubble-Bop3e-Tr.mjs} +3 -3
  119. package/dist/chunks/{NcCounterBubble-PBdqn9Nf.mjs.map → NcCounterBubble-Bop3e-Tr.mjs.map} +1 -1
  120. package/dist/chunks/{NcDashboardWidget-DhZ5c4oF.mjs → NcDashboardWidget-Wkx_9xKh.mjs} +50 -8
  121. package/dist/chunks/NcDashboardWidget-Wkx_9xKh.mjs.map +1 -0
  122. package/dist/chunks/{NcDashboardWidgetItem-pJ-PctjL.mjs → NcDashboardWidgetItem-CMrxp0Lc.mjs} +6 -6
  123. package/dist/chunks/{NcDashboardWidgetItem-pJ-PctjL.mjs.map → NcDashboardWidgetItem-CMrxp0Lc.mjs.map} +1 -1
  124. package/dist/chunks/NcDateTime.vue_vue_type_script_setup_true_lang-B0Lci6v0.mjs.map +1 -1
  125. package/dist/chunks/{NcDateTimePicker-CKOTExmB.mjs → NcDateTimePicker-BarX7J-6.mjs} +33 -25
  126. package/dist/chunks/NcDateTimePicker-BarX7J-6.mjs.map +1 -0
  127. package/dist/chunks/{NcDateTimePickerNative-NVYPDSmf.mjs → NcDateTimePickerNative-BOoA1aEf.mjs} +4 -4
  128. package/dist/chunks/{NcDateTimePickerNative-NVYPDSmf.mjs.map → NcDateTimePickerNative-BOoA1aEf.mjs.map} +1 -1
  129. package/dist/chunks/{NcDialog-DTbCOARa.mjs → NcDialog-IKWAQK-K.mjs} +10 -15
  130. package/dist/chunks/NcDialog-IKWAQK-K.mjs.map +1 -0
  131. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DaU1luyJ.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-BT66zCa4.mjs} +4 -4
  132. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DaU1luyJ.mjs.map → NcDialogButton.vue_vue_type_script_setup_true_lang-BT66zCa4.mjs.map} +1 -1
  133. package/dist/chunks/NcEllipsisedOption-C8uNDC-j.mjs.map +1 -1
  134. package/dist/chunks/{NcEmojiPicker-DHXabPDE.mjs → NcEmojiPicker-DL9u7r5m.mjs} +10 -10
  135. package/dist/chunks/{NcEmojiPicker-DHXabPDE.mjs.map → NcEmojiPicker-DL9u7r5m.mjs.map} +1 -1
  136. package/dist/chunks/NcEmptyContent-BdOezubv.mjs.map +1 -1
  137. package/dist/chunks/{NcGuestContent-B_S2nyJ4.mjs → NcGuestContent-CfCh49o0.mjs} +3 -3
  138. package/dist/chunks/NcGuestContent-CfCh49o0.mjs.map +1 -0
  139. package/dist/chunks/{NcHeaderButton-BTZ1WNux.mjs → NcHeaderButton-DAxGG1vc.mjs} +4 -4
  140. package/dist/chunks/{NcHeaderButton-BTZ1WNux.mjs.map → NcHeaderButton-DAxGG1vc.mjs.map} +1 -1
  141. package/dist/chunks/{NcHeaderMenu-Bf_rW093.mjs → NcHeaderMenu-DcBWHaZv.mjs} +15 -17
  142. package/dist/chunks/NcHeaderMenu-DcBWHaZv.mjs.map +1 -0
  143. package/dist/chunks/NcHighlight.vue_vue_type_script_lang-DnWQDM_2.mjs.map +1 -1
  144. package/dist/chunks/NcIconSvgWrapper-CprKb_SE.mjs.map +1 -1
  145. package/dist/chunks/{NcInputConfirmCancel-DCUXeKPz.mjs → NcInputConfirmCancel-BG4KRrhr.mjs} +5 -5
  146. package/dist/chunks/{NcInputConfirmCancel-DCUXeKPz.mjs.map → NcInputConfirmCancel-BG4KRrhr.mjs.map} +1 -1
  147. package/dist/chunks/{NcInputField-BZWRHkmQ.mjs → NcInputField-Cz1RwzSy.mjs} +10 -11
  148. package/dist/chunks/NcInputField-Cz1RwzSy.mjs.map +1 -0
  149. package/dist/chunks/{NcListItem-7BHAmqB0.mjs → NcListItem-CwAOX69Q.mjs} +5 -13
  150. package/dist/chunks/NcListItem-CwAOX69Q.mjs.map +1 -0
  151. package/dist/chunks/{NcListItemIcon-gkuv5FT8.mjs → NcListItemIcon-26IdztJ2.mjs} +2 -2
  152. package/dist/chunks/{NcListItemIcon-gkuv5FT8.mjs.map → NcListItemIcon-26IdztJ2.mjs.map} +1 -1
  153. package/dist/chunks/{NcLoadingIcon-Dm3kRPrf.mjs → NcLoadingIcon-CiMp51wb.mjs} +3 -3
  154. package/dist/chunks/{NcLoadingIcon-Dm3kRPrf.mjs.map → NcLoadingIcon-CiMp51wb.mjs.map} +1 -1
  155. package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_25f4d6e1_lang-aMwzB20D.mjs.map +1 -1
  156. package/dist/chunks/{NcModal-CX28vCtF.mjs → NcModal-CdXZncEM.mjs} +8 -12
  157. package/dist/chunks/NcModal-CdXZncEM.mjs.map +1 -0
  158. package/dist/chunks/{NcNoteCard-oGt6biyJ.mjs → NcNoteCard-C8JB31rn.mjs} +4 -4
  159. package/dist/chunks/{NcNoteCard-oGt6biyJ.mjs.map → NcNoteCard-C8JB31rn.mjs.map} +1 -1
  160. package/dist/chunks/{NcPasswordField-w13_Lpyn.mjs → NcPasswordField-BlbWNpfS.mjs} +8 -9
  161. package/dist/chunks/NcPasswordField-BlbWNpfS.mjs.map +1 -0
  162. package/dist/chunks/{NcPopover-BUlWWIxc.mjs → NcPopover-Zs7qt_Zd.mjs} +3 -3
  163. package/dist/chunks/{NcPopover-BUlWWIxc.mjs.map → NcPopover-Zs7qt_Zd.mjs.map} +1 -1
  164. package/dist/chunks/NcProgressBar-Ds0zTPYX.mjs +94 -0
  165. package/dist/chunks/NcProgressBar-Ds0zTPYX.mjs.map +1 -0
  166. package/dist/chunks/{NcRelatedResourcesPanel-CpOgjo9h.mjs → NcRelatedResourcesPanel-DBOgpeIK.mjs} +8 -8
  167. package/dist/chunks/NcRelatedResourcesPanel-DBOgpeIK.mjs.map +1 -0
  168. package/dist/chunks/{NcRichContenteditable-J9ILu0dF.mjs → NcRichContenteditable-BmrCeWNL.mjs} +27 -27
  169. package/dist/chunks/{NcRichContenteditable-J9ILu0dF.mjs.map → NcRichContenteditable-BmrCeWNL.mjs.map} +1 -1
  170. package/dist/chunks/{NcRichText-DvbC3aUR.mjs → NcRichText-G8kzsdwx.mjs} +301 -267
  171. package/dist/chunks/NcRichText-G8kzsdwx.mjs.map +1 -0
  172. package/dist/chunks/{NcSavingIndicatorIcon.vue_vue_type_script_setup_true_lang-DlRBo3QU.mjs → NcSavingIndicatorIcon.vue_vue_type_script_setup_true_lang-jUf1K561.mjs} +2 -2
  173. package/dist/chunks/{NcSavingIndicatorIcon.vue_vue_type_script_setup_true_lang-DlRBo3QU.mjs.map → NcSavingIndicatorIcon.vue_vue_type_script_setup_true_lang-jUf1K561.mjs.map} +1 -1
  174. package/dist/chunks/{NcSelect-D6XzjG4n.mjs → NcSelect-C6qHqfAO.mjs} +4 -4
  175. package/dist/chunks/{NcSelect-D6XzjG4n.mjs.map → NcSelect-C6qHqfAO.mjs.map} +1 -1
  176. package/dist/chunks/{NcSelectTags-SNTGRj-n.mjs → NcSelectTags-Capp69AW.mjs} +3 -3
  177. package/dist/chunks/{NcSelectTags-SNTGRj-n.mjs.map → NcSelectTags-Capp69AW.mjs.map} +1 -1
  178. package/dist/chunks/{NcSelectUsers-D_eu9Uqb.mjs → NcSelectUsers-BVn8co_d.mjs} +5 -5
  179. package/dist/chunks/{NcSelectUsers-D_eu9Uqb.mjs.map → NcSelectUsers-BVn8co_d.mjs.map} +1 -1
  180. package/dist/chunks/{NcSettingsInputText-D5N9XxkW.mjs → NcSettingsInputText-C8Gtj3Ht.mjs} +4 -4
  181. package/dist/chunks/{NcSettingsInputText-D5N9XxkW.mjs.map → NcSettingsInputText-C8Gtj3Ht.mjs.map} +1 -1
  182. package/dist/chunks/{NcSettingsSection-93UQoiwe.mjs → NcSettingsSection-CtSg7lH8.mjs} +4 -4
  183. package/dist/chunks/{NcSettingsSection-93UQoiwe.mjs.map → NcSettingsSection-CtSg7lH8.mjs.map} +1 -1
  184. package/dist/chunks/{NcSettingsSelectGroup-Dr4IRbi_.mjs → NcSettingsSelectGroup-C1DEcBNJ.mjs} +5 -5
  185. package/dist/chunks/{NcSettingsSelectGroup-Dr4IRbi_.mjs.map → NcSettingsSelectGroup-C1DEcBNJ.mjs.map} +1 -1
  186. package/dist/chunks/{NcTextArea-CWqnvMl2.mjs → NcTextArea-BAl6EP4Z.mjs} +5 -5
  187. package/dist/chunks/NcTextArea-BAl6EP4Z.mjs.map +1 -0
  188. package/dist/chunks/{NcTextField.vue_vue_type_script_setup_true_lang-B65hrkLW.mjs → NcTextField.vue_vue_type_script_setup_true_lang-DzcUUWHO.mjs} +6 -7
  189. package/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-DzcUUWHO.mjs.map +1 -0
  190. package/dist/chunks/NcThemeProvider.vue_vue_type_script_setup_true_lang-nUDJsDGI.mjs.map +1 -1
  191. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-BoH1Njbp.mjs → NcTimezonePicker.vue_vue_type_script_setup_true_lang-Dsco6qEJ.mjs} +3 -3
  192. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-BoH1Njbp.mjs.map → NcTimezonePicker.vue_vue_type_script_setup_true_lang-Dsco6qEJ.mjs.map} +1 -1
  193. package/dist/chunks/{NcUserBubble-BW0qu6mW.mjs → NcUserBubble-CqKN_gM4.mjs} +3 -3
  194. package/dist/chunks/{NcUserBubble-BW0qu6mW.mjs.map → NcUserBubble-CqKN_gM4.mjs.map} +1 -1
  195. package/dist/chunks/{NcUserStatusIcon-DqQYA-EE.mjs → NcUserStatusIcon-CDEUKK60.mjs} +10 -9
  196. package/dist/chunks/NcUserStatusIcon-CDEUKK60.mjs.map +1 -0
  197. package/dist/chunks/NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs.map +1 -1
  198. package/dist/chunks/_l10n-ZllQPIu_.mjs +113 -0
  199. package/dist/chunks/_l10n-ZllQPIu_.mjs.map +1 -0
  200. package/dist/chunks/actionGlobal-BZFdtdJL.mjs.map +1 -1
  201. package/dist/chunks/actionText-DdSwf9le.mjs.map +1 -1
  202. package/dist/chunks/{autolink-CKPk5rzg.mjs → autolink-Y0rlJ_CI.mjs} +5 -1
  203. package/dist/chunks/autolink-Y0rlJ_CI.mjs.map +1 -0
  204. package/dist/chunks/{colors-BaTbJhvg.mjs → colors-B71CwSnx.mjs} +2 -2
  205. package/dist/chunks/{colors-BaTbJhvg.mjs.map → colors-B71CwSnx.mjs.map} +1 -1
  206. package/dist/chunks/constants-Bls5liKo.mjs.map +1 -1
  207. package/dist/chunks/createElementId-DhjFt1I9.mjs.map +1 -1
  208. package/dist/chunks/{customPickerElements-CH9vlHLd.mjs → customPickerElements-BmkXSNdO.mjs} +2 -2
  209. package/dist/chunks/{customPickerElements-CH9vlHLd.mjs.map → customPickerElements-BmkXSNdO.mjs.map} +1 -1
  210. package/dist/chunks/emoji-BY_D0V5K.mjs.map +1 -1
  211. package/dist/chunks/{focusTrap-DmkaYJTC.mjs → focusTrap-HJQ4pqHV.mjs} +6 -3
  212. package/dist/chunks/focusTrap-HJQ4pqHV.mjs.map +1 -0
  213. package/dist/chunks/logger-D3RVzcfQ.mjs.map +1 -1
  214. package/dist/chunks/{mdi-D6fu5i4r.mjs → mdi-B9TPxVka.mjs} +14 -6
  215. package/dist/chunks/{mdi-D6fu5i4r.mjs.map → mdi-B9TPxVka.mjs.map} +1 -1
  216. package/dist/chunks/{referencePickerModal-DREcDQKg.mjs → referencePickerModal-BtI-8rNN.mjs} +147 -109
  217. package/dist/chunks/referencePickerModal-BtI-8rNN.mjs.map +1 -0
  218. package/dist/chunks/rtl-v0UOPAM7.mjs.map +1 -1
  219. package/dist/chunks/useNcActions-CiGWxAJE.mjs.map +1 -1
  220. package/dist/chunks/{useTrapStackControl-b3A_383w.mjs → useTrapStackControl-yqM2SDEs.mjs} +2 -2
  221. package/dist/chunks/{useTrapStackControl-b3A_383w.mjs.map → useTrapStackControl-yqM2SDEs.mjs.map} +1 -1
  222. package/dist/components/NcActionButton/index.mjs +1 -1
  223. package/dist/components/NcActionButtonGroup/index.mjs +1 -1
  224. package/dist/components/NcActionInput/NcActionInput.vue.d.ts +1934 -0
  225. package/dist/components/NcActionInput/index.mjs +1 -1
  226. package/dist/components/NcActionTextEditable/index.mjs +1 -1
  227. package/dist/components/NcActions/NcActions.vue.d.ts +502 -0
  228. package/dist/components/NcActions/index.mjs +1 -1
  229. package/dist/components/NcAppContent/index.mjs +1 -1
  230. package/dist/components/NcAppNavigation/NcAppNavigation.vue.d.ts +59 -57
  231. package/dist/components/NcAppNavigation/index.d.ts +4 -0
  232. package/dist/components/NcAppNavigation/index.mjs +1 -1
  233. package/dist/components/NcAppNavigationCaption/NcAppNavigationCaption.vue.d.ts +347 -0
  234. package/dist/components/NcAppNavigationCaption/index.mjs +1 -1
  235. package/dist/components/NcAppNavigationItem/NcAppNavigationIconCollapsible.vue.d.ts +137 -0
  236. package/dist/components/NcAppNavigationItem/NcAppNavigationItem.vue.d.ts +1227 -0
  237. package/dist/components/NcAppNavigationItem/NcInputConfirmCancel.vue.d.ts +171 -0
  238. package/dist/components/NcAppNavigationItem/index.mjs +1 -1
  239. package/dist/components/NcAppNavigationNew/NcAppNavigationNew.vue.d.ts +171 -0
  240. package/dist/components/NcAppNavigationNew/index.mjs +1 -1
  241. package/dist/components/NcAppNavigationNewItem/NcAppNavigationNewItem.vue.d.ts +270 -0
  242. package/dist/components/NcAppNavigationNewItem/index.mjs +1 -1
  243. package/dist/components/NcAppNavigationSearch/NcAppNavigationSearch.vue.d.ts +26 -26
  244. package/dist/components/NcAppNavigationSearch/index.mjs +1 -1
  245. package/dist/components/NcAppNavigationSettings/index.mjs +1 -1
  246. package/dist/components/NcAppSettingsDialog/NcAppSettingsDialog.vue.d.ts +348 -0
  247. package/dist/components/NcAppSettingsDialog/index.mjs +1 -1
  248. package/dist/components/NcAppSidebar/NcAppSidebar.vue.d.ts +988 -0
  249. package/dist/components/NcAppSidebar/index.mjs +1 -1
  250. package/dist/components/NcAvatar/NcAvatar.vue.d.ts +980 -0
  251. package/dist/components/NcAvatar/index.mjs +1 -1
  252. package/dist/components/NcBreadcrumb/NcBreadcrumb.vue.d.ts +658 -0
  253. package/dist/components/NcBreadcrumb/index.mjs +1 -1
  254. package/dist/components/NcBreadcrumbs/NcBreadcrumbs.vue.d.ts +1255 -0
  255. package/dist/components/NcBreadcrumbs/index.mjs +1 -1
  256. package/dist/components/NcButton/NcButton.vue.d.ts +7 -7
  257. package/dist/components/NcButton/index.mjs +1 -1
  258. package/dist/components/NcCheckboxRadioSwitch/index.mjs +1 -1
  259. package/dist/components/NcChip/index.mjs +1 -1
  260. package/dist/components/NcCollectionList/NcCollectionList.vue.d.ts +2424 -0
  261. package/dist/components/NcCollectionList/NcCollectionListItem.vue.d.ts +1366 -0
  262. package/dist/components/NcCollectionList/index.mjs +1 -1
  263. package/dist/components/NcColorPicker/NcColorPicker.vue.d.ts +5 -2
  264. package/dist/components/NcColorPicker/index.mjs +1 -1
  265. package/dist/components/NcContent/index.mjs +1 -1
  266. package/dist/components/NcCounterBubble/index.mjs +1 -1
  267. package/dist/components/NcDashboardWidget/NcDashboardWidget.vue.d.ts +2446 -0
  268. package/dist/components/NcDashboardWidget/index.mjs +1 -1
  269. package/dist/components/NcDashboardWidgetItem/NcDashboardWidgetItem.vue.d.ts +1486 -0
  270. package/dist/components/NcDashboardWidgetItem/index.mjs +1 -1
  271. package/dist/components/NcDateTimePicker/NcDateTimePicker.vue.d.ts +4 -4
  272. package/dist/components/NcDateTimePicker/index.mjs +1 -1
  273. package/dist/components/NcDateTimePickerNative/index.mjs +1 -1
  274. package/dist/components/NcDialog/NcDialog.vue.d.ts +4 -4
  275. package/dist/components/NcDialog/index.mjs +1 -1
  276. package/dist/components/NcDialogButton/index.mjs +1 -1
  277. package/dist/components/NcEllipsisedOption/NcEllipsisedOption.vue.d.ts +95 -0
  278. package/dist/components/NcEmojiPicker/NcEmojiPicker.vue.d.ts +556 -0
  279. package/dist/components/NcEmojiPicker/index.mjs +1 -1
  280. package/dist/components/NcGuestContent/index.mjs +1 -1
  281. package/dist/components/NcHeaderButton/index.mjs +1 -1
  282. package/dist/components/NcHeaderMenu/NcHeaderMenu.vue.d.ts +319 -0
  283. package/dist/components/NcHeaderMenu/index.mjs +1 -1
  284. package/dist/components/NcHighlight/NcHighlight.vue.d.ts +1 -1
  285. package/dist/components/NcInputField/NcInputField.vue.d.ts +5 -9
  286. package/dist/components/NcInputField/index.mjs +1 -1
  287. package/dist/components/NcListItem/NcListItem.vue.d.ts +646 -0
  288. package/dist/components/NcListItem/index.mjs +1 -1
  289. package/dist/components/NcListItemIcon/NcListItemIcon.vue.d.ts +1097 -0
  290. package/dist/components/NcListItemIcon/index.mjs +1 -1
  291. package/dist/components/NcLoadingIcon/index.mjs +1 -1
  292. package/dist/components/NcModal/index.mjs +1 -1
  293. package/dist/components/NcNoteCard/index.mjs +1 -1
  294. package/dist/components/NcPasswordField/NcPasswordField.vue.d.ts +14 -14
  295. package/dist/components/NcPasswordField/index.mjs +1 -1
  296. package/dist/components/NcPopover/index.mjs +1 -1
  297. package/dist/components/NcProgressBar/NcProgressBar.vue.d.ts +42 -1
  298. package/dist/components/NcProgressBar/index.d.ts +4 -0
  299. package/dist/components/NcProgressBar/index.mjs +1 -1
  300. package/dist/components/NcRelatedResourcesPanel/NcRelatedResourcesPanel.vue.d.ts +463 -0
  301. package/dist/components/NcRelatedResourcesPanel/NcResource.vue.d.ts +149 -0
  302. package/dist/components/NcRelatedResourcesPanel/NcTeamResources.vue.d.ts +175 -0
  303. package/dist/components/NcRelatedResourcesPanel/index.mjs +1 -1
  304. package/dist/components/NcRichContenteditable/index.mjs +1 -1
  305. package/dist/components/NcRichText/NcReferenceList.vue.d.ts +268 -0
  306. package/dist/components/NcRichText/NcReferencePicker/NcProviderList.vue.d.ts +197 -0
  307. package/dist/components/NcRichText/NcReferencePicker/NcRawLinkInput.vue.d.ts +447 -0
  308. package/dist/components/NcRichText/NcReferencePicker/NcReferencePicker.vue.d.ts +1002 -0
  309. package/dist/components/NcRichText/NcReferencePicker/NcReferencePickerModal.vue.d.ts +1167 -0
  310. package/dist/components/NcRichText/NcReferencePicker/NcSearch.vue.d.ts +269 -0
  311. package/dist/components/NcRichText/NcReferencePicker/NcSearchResult.vue.d.ts +69 -0
  312. package/dist/components/NcRichText/NcReferencePicker/utils.d.ts +6 -7
  313. package/dist/components/NcRichText/NcReferenceWidget.vue.d.ts +187 -0
  314. package/dist/components/NcRichText/NcRichText.vue.d.ts +393 -0
  315. package/dist/components/NcRichText/helpers.d.ts +7 -8
  316. package/dist/components/NcRichText/index.d.ts +4 -4
  317. package/dist/components/NcRichText/index.mjs +4 -4
  318. package/dist/components/NcRichText/remarkPlaceholder.d.ts +2 -0
  319. package/dist/components/NcRichText/remarkUnescape.d.ts +2 -1
  320. package/dist/components/NcSavingIndicatorIcon/index.mjs +1 -1
  321. package/dist/components/NcSelect/NcSelect.vue.d.ts +99 -0
  322. package/dist/components/NcSelect/index.mjs +1 -1
  323. package/dist/components/NcSelectTags/NcSelectTags.vue.d.ts +183 -0
  324. package/dist/components/NcSelectTags/index.mjs +1 -1
  325. package/dist/components/NcSelectUsers/index.mjs +1 -1
  326. package/dist/components/NcSettingsInputText/index.mjs +1 -1
  327. package/dist/components/NcSettingsSection/index.mjs +1 -1
  328. package/dist/components/NcSettingsSelectGroup/NcSettingsSelectGroup.vue.d.ts +243 -0
  329. package/dist/components/NcSettingsSelectGroup/index.mjs +1 -1
  330. package/dist/components/NcTextArea/NcTextArea.vue.d.ts +1 -5
  331. package/dist/components/NcTextArea/index.mjs +1 -1
  332. package/dist/components/NcTextField/NcTextField.vue.d.ts +14 -14
  333. package/dist/components/NcTextField/index.mjs +1 -1
  334. package/dist/components/NcTimezonePicker/index.mjs +1 -1
  335. package/dist/components/NcUserBubble/index.mjs +1 -1
  336. package/dist/components/NcUserStatusIcon/index.mjs +1 -1
  337. package/dist/components/index.d.ts +2 -2
  338. package/dist/composables/useFormatDateTime/index.mjs +1 -1
  339. package/dist/composables/useFormatDateTime/index.mjs.map +1 -1
  340. package/dist/composables/useHotKey/index.mjs.map +1 -1
  341. package/dist/composables/useIsDarkTheme/constants.d.ts +1 -1
  342. package/dist/composables/useIsDarkTheme/index.mjs +1 -1
  343. package/dist/composables/useIsDarkTheme/index.mjs.map +1 -1
  344. package/dist/composables/useIsFullscreen/index.mjs.map +1 -1
  345. package/dist/composables/useIsMobile/index.mjs.map +1 -1
  346. package/dist/directives/Focus/index.mjs.map +1 -1
  347. package/dist/directives/Linkify/index.mjs +1 -2
  348. package/dist/directives/Linkify/index.mjs.map +1 -1
  349. package/dist/functions/a11y/index.mjs.map +1 -1
  350. package/dist/functions/contactsMenu/index.mjs.map +1 -1
  351. package/dist/functions/dialog/index.mjs.map +1 -1
  352. package/dist/functions/index.d.ts +2 -2
  353. package/dist/functions/isDarkTheme/index.mjs.map +1 -1
  354. package/dist/functions/preloadImage/index.mjs.map +1 -1
  355. package/dist/functions/reference/index.mjs +2 -2
  356. package/dist/functions/registerReference/index.mjs +1 -1
  357. package/dist/functions/usernameToColor/index.d.ts +6 -3
  358. package/dist/functions/usernameToColor/index.mjs +19 -2
  359. package/dist/functions/usernameToColor/index.mjs.map +1 -1
  360. package/dist/index.mjs +65 -64
  361. package/dist/index.mjs.map +1 -1
  362. package/dist/l10n.d.ts +7 -2
  363. package/dist/utils/focusTrap.d.ts +6 -0
  364. package/dist/utils/legacy.d.ts +5 -0
  365. package/package.json +57 -52
  366. package/dist/assets/NcActionInput-BA67jS1l.css +0 -226
  367. package/dist/assets/NcAppNavigationToggle-M0oDbwAS.css +0 -27
  368. package/dist/assets/NcAvatar-g7MoHyFd.css +0 -132
  369. package/dist/assets/NcDateTimePickerNative-BizATZfE.css +0 -60
  370. package/dist/assets/NcSelectUsers-2-PyuY9Z.css +0 -4
  371. package/dist/chunks/ArrowLeft-BiZLJltw.mjs +0 -49
  372. package/dist/chunks/ArrowLeft-BiZLJltw.mjs.map +0 -1
  373. package/dist/chunks/Check-5i4xKnkl.mjs +0 -49
  374. package/dist/chunks/Check-5i4xKnkl.mjs.map +0 -1
  375. package/dist/chunks/DotsHorizontal-BJ_GCGpi.mjs +0 -49
  376. package/dist/chunks/DotsHorizontal-BJ_GCGpi.mjs.map +0 -1
  377. package/dist/chunks/NcActionInput-B_f8z2fo.mjs.map +0 -1
  378. package/dist/chunks/NcActions-BM3DmGLW.mjs.map +0 -1
  379. package/dist/chunks/NcAppNavigation-BmACVQVW.mjs +0 -167
  380. package/dist/chunks/NcAppNavigation-BmACVQVW.mjs.map +0 -1
  381. package/dist/chunks/NcAppNavigationItem-ClySLuSM.mjs.map +0 -1
  382. package/dist/chunks/NcAppNavigationSearch-DpjlWi9j.mjs.map +0 -1
  383. package/dist/chunks/NcAppNavigationSettings-DGATbBqy.mjs.map +0 -1
  384. package/dist/chunks/NcAppNavigationToggle-D9pouVyS.mjs +0 -137
  385. package/dist/chunks/NcAppNavigationToggle-D9pouVyS.mjs.map +0 -1
  386. package/dist/chunks/NcAppSidebar-DWRmX_-Y.mjs.map +0 -1
  387. package/dist/chunks/NcAvatar-PCbT0J_-.mjs.map +0 -1
  388. package/dist/chunks/NcBreadcrumb-D9gRzaYP.mjs.map +0 -1
  389. package/dist/chunks/NcButton-yN4vYgXb.mjs.map +0 -1
  390. package/dist/chunks/NcColorPicker-BNpZzN-p.mjs.map +0 -1
  391. package/dist/chunks/NcDashboardWidget-DhZ5c4oF.mjs.map +0 -1
  392. package/dist/chunks/NcDateTimePicker-CKOTExmB.mjs.map +0 -1
  393. package/dist/chunks/NcDialog-DTbCOARa.mjs.map +0 -1
  394. package/dist/chunks/NcGuestContent-B_S2nyJ4.mjs.map +0 -1
  395. package/dist/chunks/NcHeaderMenu-Bf_rW093.mjs.map +0 -1
  396. package/dist/chunks/NcInputField-BZWRHkmQ.mjs.map +0 -1
  397. package/dist/chunks/NcListItem-7BHAmqB0.mjs.map +0 -1
  398. package/dist/chunks/NcModal-CX28vCtF.mjs.map +0 -1
  399. package/dist/chunks/NcPasswordField-w13_Lpyn.mjs.map +0 -1
  400. package/dist/chunks/NcProgressBar-Bx8bMkd4.mjs +0 -148
  401. package/dist/chunks/NcProgressBar-Bx8bMkd4.mjs.map +0 -1
  402. package/dist/chunks/NcRelatedResourcesPanel-CpOgjo9h.mjs.map +0 -1
  403. package/dist/chunks/NcRichText-DvbC3aUR.mjs.map +0 -1
  404. package/dist/chunks/NcTextArea-CWqnvMl2.mjs.map +0 -1
  405. package/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-B65hrkLW.mjs.map +0 -1
  406. package/dist/chunks/NcUserStatusIcon-DqQYA-EE.mjs.map +0 -1
  407. package/dist/chunks/_l10n-tXci8WM1.mjs +0 -108
  408. package/dist/chunks/_l10n-tXci8WM1.mjs.map +0 -1
  409. package/dist/chunks/autolink-CKPk5rzg.mjs.map +0 -1
  410. package/dist/chunks/focusTrap-DmkaYJTC.mjs.map +0 -1
  411. package/dist/chunks/referencePickerModal-DREcDQKg.mjs.map +0 -1
  412. package/dist/chunks/usernameToColor-2yV_Zdvb.mjs +0 -22
  413. package/dist/chunks/usernameToColor-2yV_Zdvb.mjs.map +0 -1
  414. package/dist/components/NcAppNavigationToggle/index.d.ts +0 -5
  415. package/dist/components/NcAppNavigationToggle/index.mjs +0 -5
  416. package/dist/components/NcAppNavigationToggle/index.mjs.map +0 -1
  417. package/dist/components/NcRichText/placeholder.d.ts +0 -5
  418. package/dist/components/NcRichText/remarkDisableBlocks.d.ts +0 -11
  419. package/dist/functions/usernameToColor/usernameToColor.d.ts +0 -8
  420. package/dist/vendor.LICENSE.txt +0 -137
  421. /package/dist/components/{NcAppNavigationToggle → NcAppNavigation}/NcAppNavigationToggle.vue.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import '../assets/NcRichText-cO2UCM_o.css';
1
+ import '../assets/NcRichText-Fp8zf8zq.css';
2
2
  import { unified } from "unified";
3
3
  import { resolveComponent, createElementBlock, createCommentVNode, openBlock, normalizeClass, Fragment, renderList, createBlock, ref, h } from "vue";
4
4
  import { RouterLink } from "vue-router";
@@ -8,17 +8,17 @@ import remarkUnlinkProtocols from "remark-unlink-protocols";
8
8
  import remark2rehype from "remark-rehype";
9
9
  import rehype2react from "rehype-react";
10
10
  import rehypeExternalLinks from "rehype-external-links";
11
- import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-D9N_BDHh.mjs";
12
- import { N as NcReferenceWidget } from "./referencePickerModal-DREcDQKg.mjs";
13
- import { U as URL_PATTERN, p as parseUrl, g as getRoute, r as remarkAutolink } from "./autolink-CKPk5rzg.mjs";
11
+ import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-Da0F7y0G.mjs";
12
+ import { N as NcReferenceWidget } from "./referencePickerModal-BtI-8rNN.mjs";
13
+ import { U as URL_PATTERN, g as getRoute, p as parseUrl, r as remarkAutolink } from "./autolink-Y0rlJ_CI.mjs";
14
14
  import axios from "@nextcloud/axios";
15
15
  import { getSharingToken } from "@nextcloud/sharing/public";
16
16
  import { getCurrentUser } from "@nextcloud/auth";
17
17
  import { generateOcsUrl } from "@nextcloud/router";
18
18
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
19
- import { u } from "unist-builder";
20
19
  import { visit, EXIT as EXIT$1, SKIP as SKIP$1 } from "unist-util-visit";
21
20
  import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
21
+ import { u } from "unist-builder";
22
22
  function ccount(value, character) {
23
23
  const source = String(value);
24
24
  if (typeof character !== "string") {
@@ -485,28 +485,14 @@ function normalizeIdentifier(value) {
485
485
  return value.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
486
486
  }
487
487
  footnoteReference.peek = footnoteReferencePeek;
488
- function gfmFootnoteFromMarkdown() {
489
- return {
490
- enter: {
491
- gfmFootnoteDefinition: enterFootnoteDefinition,
492
- gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,
493
- gfmFootnoteCall: enterFootnoteCall,
494
- gfmFootnoteCallString: enterFootnoteCallString
495
- },
496
- exit: {
497
- gfmFootnoteDefinition: exitFootnoteDefinition,
498
- gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,
499
- gfmFootnoteCall: exitFootnoteCall,
500
- gfmFootnoteCallString: exitFootnoteCallString
501
- }
502
- };
488
+ function enterFootnoteCallString() {
489
+ this.buffer();
503
490
  }
504
- function gfmFootnoteToMarkdown() {
505
- return {
506
- // This is on by default already.
507
- unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
508
- handlers: { footnoteDefinition, footnoteReference }
509
- };
491
+ function enterFootnoteCall(token) {
492
+ this.enter({ type: "footnoteReference", identifier: "", label: "" }, token);
493
+ }
494
+ function enterFootnoteDefinitionLabelString() {
495
+ this.buffer();
510
496
  }
511
497
  function enterFootnoteDefinition(token) {
512
498
  this.enter(
@@ -514,86 +500,99 @@ function enterFootnoteDefinition(token) {
514
500
  token
515
501
  );
516
502
  }
517
- function enterFootnoteDefinitionLabelString() {
518
- this.buffer();
519
- }
520
- function exitFootnoteDefinitionLabelString(token) {
503
+ function exitFootnoteCallString(token) {
521
504
  const label = this.resume();
522
505
  const node2 = this.stack[this.stack.length - 1];
523
- ok$1(node2.type === "footnoteDefinition");
524
- node2.label = label;
506
+ ok$1(node2.type === "footnoteReference");
525
507
  node2.identifier = normalizeIdentifier(
526
508
  this.sliceSerialize(token)
527
509
  ).toLowerCase();
510
+ node2.label = label;
528
511
  }
529
- function exitFootnoteDefinition(token) {
512
+ function exitFootnoteCall(token) {
530
513
  this.exit(token);
531
514
  }
532
- function enterFootnoteCall(token) {
533
- this.enter({ type: "footnoteReference", identifier: "", label: "" }, token);
534
- }
535
- function enterFootnoteCallString() {
536
- this.buffer();
537
- }
538
- function exitFootnoteCallString(token) {
515
+ function exitFootnoteDefinitionLabelString(token) {
539
516
  const label = this.resume();
540
517
  const node2 = this.stack[this.stack.length - 1];
541
- ok$1(node2.type === "footnoteReference");
542
- node2.label = label;
518
+ ok$1(node2.type === "footnoteDefinition");
543
519
  node2.identifier = normalizeIdentifier(
544
520
  this.sliceSerialize(token)
545
521
  ).toLowerCase();
522
+ node2.label = label;
546
523
  }
547
- function exitFootnoteCall(token) {
524
+ function exitFootnoteDefinition(token) {
548
525
  this.exit(token);
549
526
  }
527
+ function footnoteReferencePeek() {
528
+ return "[";
529
+ }
550
530
  function footnoteReference(node2, _, state, info) {
551
531
  const tracker = state.createTracker(info);
552
532
  let value = tracker.move("[^");
553
533
  const exit2 = state.enter("footnoteReference");
554
534
  const subexit = state.enter("reference");
555
535
  value += tracker.move(
556
- state.safe(state.associationId(node2), {
557
- ...tracker.current(),
558
- before: value,
559
- after: "]"
560
- })
536
+ state.safe(state.associationId(node2), { after: "]", before: value })
561
537
  );
562
538
  subexit();
563
539
  exit2();
564
540
  value += tracker.move("]");
565
541
  return value;
566
542
  }
567
- function footnoteReferencePeek() {
568
- return "[";
569
- }
570
- function footnoteDefinition(node2, _, state, info) {
571
- const tracker = state.createTracker(info);
572
- let value = tracker.move("[^");
573
- const exit2 = state.enter("footnoteDefinition");
574
- const subexit = state.enter("label");
575
- value += tracker.move(
576
- state.safe(state.associationId(node2), {
577
- ...tracker.current(),
578
- before: value,
579
- after: "]"
580
- })
581
- );
582
- subexit();
583
- value += tracker.move(
584
- "]:" + (node2.children && node2.children.length > 0 ? " " : "")
585
- );
586
- tracker.shift(4);
587
- value += tracker.move(
588
- state.indentLines(state.containerFlow(node2, tracker.current()), map$2)
589
- );
590
- exit2();
591
- return value;
543
+ function gfmFootnoteFromMarkdown() {
544
+ return {
545
+ enter: {
546
+ gfmFootnoteCallString: enterFootnoteCallString,
547
+ gfmFootnoteCall: enterFootnoteCall,
548
+ gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,
549
+ gfmFootnoteDefinition: enterFootnoteDefinition
550
+ },
551
+ exit: {
552
+ gfmFootnoteCallString: exitFootnoteCallString,
553
+ gfmFootnoteCall: exitFootnoteCall,
554
+ gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,
555
+ gfmFootnoteDefinition: exitFootnoteDefinition
556
+ }
557
+ };
592
558
  }
593
- function map$2(line, index, blank) {
594
- if (index === 0) {
595
- return line;
559
+ function gfmFootnoteToMarkdown(options) {
560
+ let firstLineBlank = false;
561
+ if (options && options.firstLineBlank) {
562
+ firstLineBlank = true;
596
563
  }
564
+ return {
565
+ handlers: { footnoteDefinition, footnoteReference },
566
+ // This is on by default already.
567
+ unsafe: [{ character: "[", inConstruct: ["label", "phrasing", "reference"] }]
568
+ };
569
+ function footnoteDefinition(node2, _, state, info) {
570
+ const tracker = state.createTracker(info);
571
+ let value = tracker.move("[^");
572
+ const exit2 = state.enter("footnoteDefinition");
573
+ const subexit = state.enter("label");
574
+ value += tracker.move(
575
+ state.safe(state.associationId(node2), { before: value, after: "]" })
576
+ );
577
+ subexit();
578
+ value += tracker.move("]:");
579
+ if (node2.children && node2.children.length > 0) {
580
+ tracker.shift(4);
581
+ value += tracker.move(
582
+ (firstLineBlank ? "\n" : " ") + state.indentLines(
583
+ state.containerFlow(node2, tracker.current()),
584
+ firstLineBlank ? mapAll : mapExceptFirst
585
+ )
586
+ );
587
+ }
588
+ exit2();
589
+ return value;
590
+ }
591
+ }
592
+ function mapExceptFirst(line, index, blank) {
593
+ return index === 0 ? line : mapAll(line, index, blank);
594
+ }
595
+ function mapAll(line, index, blank) {
597
596
  return (blank ? "" : " ") + line;
598
597
  }
599
598
  const constructsWithoutStrikethrough = [
@@ -646,9 +645,13 @@ function handleDelete(node2, _, state, info) {
646
645
  function peekDelete() {
647
646
  return "~";
648
647
  }
649
- function markdownTable(table, options = {}) {
650
- const align = (options.align || []).concat();
651
- const stringLength = options.stringLength || defaultStringLength;
648
+ function defaultStringLength(value) {
649
+ return value.length;
650
+ }
651
+ function markdownTable(table, options) {
652
+ const settings = options || {};
653
+ const align = (settings.align || []).concat();
654
+ const stringLength = settings.stringLength || defaultStringLength;
652
655
  const alignments = [];
653
656
  const cellMatrix = [];
654
657
  const sizeMatrix = [];
@@ -664,7 +667,7 @@ function markdownTable(table, options = {}) {
664
667
  }
665
668
  while (++columnIndex2 < table[rowIndex].length) {
666
669
  const cell = serialize(table[rowIndex][columnIndex2]);
667
- if (options.alignDelimiters !== false) {
670
+ if (settings.alignDelimiters !== false) {
668
671
  const size = stringLength(cell);
669
672
  sizes2[columnIndex2] = size;
670
673
  if (longestCellByColumn[columnIndex2] === void 0 || size > longestCellByColumn[columnIndex2]) {
@@ -702,12 +705,12 @@ function markdownTable(table, options = {}) {
702
705
  } else if (code2 === 114) {
703
706
  after = ":";
704
707
  }
705
- let size = options.alignDelimiters === false ? 1 : Math.max(
708
+ let size = settings.alignDelimiters === false ? 1 : Math.max(
706
709
  1,
707
710
  longestCellByColumn[columnIndex] - before.length - after.length
708
711
  );
709
712
  const cell = before + "-".repeat(size) + after;
710
- if (options.alignDelimiters !== false) {
713
+ if (settings.alignDelimiters !== false) {
711
714
  size = before.length + size + after.length;
712
715
  if (size > longestCellByColumn[columnIndex]) {
713
716
  longestCellByColumn[columnIndex] = size;
@@ -729,7 +732,7 @@ function markdownTable(table, options = {}) {
729
732
  const cell = row2[columnIndex] || "";
730
733
  let before = "";
731
734
  let after = "";
732
- if (options.alignDelimiters !== false) {
735
+ if (settings.alignDelimiters !== false) {
733
736
  const size = longestCellByColumn[columnIndex] - (sizes2[columnIndex] || 0);
734
737
  const code2 = alignments[columnIndex];
735
738
  if (code2 === 114) {
@@ -746,30 +749,30 @@ function markdownTable(table, options = {}) {
746
749
  after = " ".repeat(size);
747
750
  }
748
751
  }
749
- if (options.delimiterStart !== false && !columnIndex) {
752
+ if (settings.delimiterStart !== false && !columnIndex) {
750
753
  line.push("|");
751
754
  }
752
- if (options.padding !== false && // Don’t add the opening space if we’re not aligning and the cell is
755
+ if (settings.padding !== false && // Don’t add the opening space if we’re not aligning and the cell is
753
756
  // empty: there will be a closing space.
754
- !(options.alignDelimiters === false && cell === "") && (options.delimiterStart !== false || columnIndex)) {
757
+ !(settings.alignDelimiters === false && cell === "") && (settings.delimiterStart !== false || columnIndex)) {
755
758
  line.push(" ");
756
759
  }
757
- if (options.alignDelimiters !== false) {
760
+ if (settings.alignDelimiters !== false) {
758
761
  line.push(before);
759
762
  }
760
763
  line.push(cell);
761
- if (options.alignDelimiters !== false) {
764
+ if (settings.alignDelimiters !== false) {
762
765
  line.push(after);
763
766
  }
764
- if (options.padding !== false) {
767
+ if (settings.padding !== false) {
765
768
  line.push(" ");
766
769
  }
767
- if (options.delimiterEnd !== false || columnIndex !== mostCellsPerRow - 1) {
770
+ if (settings.delimiterEnd !== false || columnIndex !== mostCellsPerRow - 1) {
768
771
  line.push("|");
769
772
  }
770
773
  }
771
774
  lines.push(
772
- options.delimiterEnd === false ? line.join("").replace(/ +$/, "") : line.join("")
775
+ settings.delimiterEnd === false ? line.join("").replace(/ +$/, "") : line.join("")
773
776
  );
774
777
  }
775
778
  return lines.join("\n");
@@ -777,9 +780,6 @@ function markdownTable(table, options = {}) {
777
780
  function serialize(value) {
778
781
  return value === null || value === void 0 ? "" : String(value);
779
782
  }
780
- function defaultStringLength(value) {
781
- return value.length;
782
- }
783
783
  function toAlignment(value) {
784
784
  const code2 = typeof value === "string" ? value.codePointAt(0) : 0;
785
785
  return code2 === 67 || code2 === 99 ? 99 : code2 === 76 || code2 === 108 ? 108 : code2 === 82 || code2 === 114 ? 114 : 0;
@@ -987,22 +987,91 @@ function checkEmphasis(state) {
987
987
  }
988
988
  return marker;
989
989
  }
990
+ function encodeCharacterReference(code2) {
991
+ return "&#x" + code2.toString(16).toUpperCase() + ";";
992
+ }
993
+ function classifyCharacter(code2) {
994
+ if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
995
+ return 1;
996
+ }
997
+ if (unicodePunctuation(code2)) {
998
+ return 2;
999
+ }
1000
+ }
1001
+ function encodeInfo(outside, inside, marker) {
1002
+ const outsideKind = classifyCharacter(outside);
1003
+ const insideKind = classifyCharacter(inside);
1004
+ if (outsideKind === void 0) {
1005
+ return insideKind === void 0 ? (
1006
+ // Letter inside:
1007
+ // we have to encode *both* letters for `_` as it is looser.
1008
+ // it already forms for `*` (and GFMs `~`).
1009
+ marker === "_" ? { inside: true, outside: true } : { inside: false, outside: false }
1010
+ ) : insideKind === 1 ? (
1011
+ // Whitespace inside: encode both (letter, whitespace).
1012
+ { inside: true, outside: true }
1013
+ ) : (
1014
+ // Punctuation inside: encode outer (letter)
1015
+ { inside: false, outside: true }
1016
+ );
1017
+ }
1018
+ if (outsideKind === 1) {
1019
+ return insideKind === void 0 ? (
1020
+ // Letter inside: already forms.
1021
+ { inside: false, outside: false }
1022
+ ) : insideKind === 1 ? (
1023
+ // Whitespace inside: encode both (whitespace).
1024
+ { inside: true, outside: true }
1025
+ ) : (
1026
+ // Punctuation inside: already forms.
1027
+ { inside: false, outside: false }
1028
+ );
1029
+ }
1030
+ return insideKind === void 0 ? (
1031
+ // Letter inside: already forms.
1032
+ { inside: false, outside: false }
1033
+ ) : insideKind === 1 ? (
1034
+ // Whitespace inside: encode inner (whitespace).
1035
+ { inside: true, outside: false }
1036
+ ) : (
1037
+ // Punctuation inside: already forms.
1038
+ { inside: false, outside: false }
1039
+ );
1040
+ }
990
1041
  emphasis.peek = emphasisPeek;
991
1042
  function emphasis(node2, _, state, info) {
992
1043
  const marker = checkEmphasis(state);
993
1044
  const exit2 = state.enter("emphasis");
994
1045
  const tracker = state.createTracker(info);
995
- let value = tracker.move(marker);
996
- value += tracker.move(
1046
+ const before = tracker.move(marker);
1047
+ let between = tracker.move(
997
1048
  state.containerPhrasing(node2, {
998
- before: value,
999
1049
  after: marker,
1050
+ before,
1000
1051
  ...tracker.current()
1001
1052
  })
1002
1053
  );
1003
- value += tracker.move(marker);
1054
+ const betweenHead = between.charCodeAt(0);
1055
+ const open = encodeInfo(
1056
+ info.before.charCodeAt(info.before.length - 1),
1057
+ betweenHead,
1058
+ marker
1059
+ );
1060
+ if (open.inside) {
1061
+ between = encodeCharacterReference(betweenHead) + between.slice(1);
1062
+ }
1063
+ const betweenTail = between.charCodeAt(between.length - 1);
1064
+ const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
1065
+ if (close.inside) {
1066
+ between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
1067
+ }
1068
+ const after = tracker.move(marker);
1004
1069
  exit2();
1005
- return value;
1070
+ state.attentionEncodeSurroundingInfo = {
1071
+ after: close.outside,
1072
+ before: open.outside
1073
+ };
1074
+ return before + between + after;
1006
1075
  }
1007
1076
  function emphasisPeek(_, _1, state) {
1008
1077
  return state.options.emphasis || "*";
@@ -1084,7 +1153,7 @@ function heading(node2, _, state, info) {
1084
1153
  ...tracker.current()
1085
1154
  });
1086
1155
  if (/^[\t ]/.test(value)) {
1087
- value = "&#x" + value.charCodeAt(0).toString(16).toUpperCase() + ";" + value.slice(1);
1156
+ value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1);
1088
1157
  }
1089
1158
  value = value ? sequence + " " + value : sequence;
1090
1159
  if (state.options.closeAtx) {
@@ -1507,8 +1576,8 @@ function root(node2, _, state, info) {
1507
1576
  const hasPhrasing = node2.children.some(function(d) {
1508
1577
  return phrasing(d);
1509
1578
  });
1510
- const fn = hasPhrasing ? state.containerPhrasing : state.containerFlow;
1511
- return fn.call(state, node2, info);
1579
+ const container = hasPhrasing ? state.containerPhrasing : state.containerFlow;
1580
+ return container.call(state, node2, info);
1512
1581
  }
1513
1582
  function checkStrong(state) {
1514
1583
  const marker = state.options.strong || "*";
@@ -1524,17 +1593,35 @@ function strong(node2, _, state, info) {
1524
1593
  const marker = checkStrong(state);
1525
1594
  const exit2 = state.enter("strong");
1526
1595
  const tracker = state.createTracker(info);
1527
- let value = tracker.move(marker + marker);
1528
- value += tracker.move(
1596
+ const before = tracker.move(marker + marker);
1597
+ let between = tracker.move(
1529
1598
  state.containerPhrasing(node2, {
1530
- before: value,
1531
1599
  after: marker,
1600
+ before,
1532
1601
  ...tracker.current()
1533
1602
  })
1534
1603
  );
1535
- value += tracker.move(marker + marker);
1604
+ const betweenHead = between.charCodeAt(0);
1605
+ const open = encodeInfo(
1606
+ info.before.charCodeAt(info.before.length - 1),
1607
+ betweenHead,
1608
+ marker
1609
+ );
1610
+ if (open.inside) {
1611
+ between = encodeCharacterReference(betweenHead) + between.slice(1);
1612
+ }
1613
+ const betweenTail = between.charCodeAt(between.length - 1);
1614
+ const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
1615
+ if (close.inside) {
1616
+ between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
1617
+ }
1618
+ const after = tracker.move(marker + marker);
1536
1619
  exit2();
1537
- return value;
1620
+ state.attentionEncodeSurroundingInfo = {
1621
+ after: close.outside,
1622
+ before: open.outside
1623
+ };
1624
+ return before + between + after;
1538
1625
  }
1539
1626
  function strongPeek(_, _1, state) {
1540
1627
  return state.options.strong || "*";
@@ -1811,7 +1898,7 @@ function gfmToMarkdown(options) {
1811
1898
  return {
1812
1899
  extensions: [
1813
1900
  gfmAutolinkLiteralToMarkdown(),
1814
- gfmFootnoteToMarkdown(),
1901
+ gfmFootnoteToMarkdown(options),
1815
1902
  gfmStrikethroughToMarkdown(),
1816
1903
  gfmTableToMarkdown(options),
1817
1904
  gfmTaskListItemToMarkdown()
@@ -1901,14 +1988,17 @@ const emailDomainDotTrail = {
1901
1988
  partial: true
1902
1989
  };
1903
1990
  const wwwAutolink = {
1991
+ name: "wwwAutolink",
1904
1992
  tokenize: tokenizeWwwAutolink,
1905
1993
  previous: previousWww
1906
1994
  };
1907
1995
  const protocolAutolink = {
1996
+ name: "protocolAutolink",
1908
1997
  tokenize: tokenizeProtocolAutolink,
1909
1998
  previous: previousProtocol
1910
1999
  };
1911
2000
  const emailAutolink = {
2001
+ name: "emailAutolink",
1912
2002
  tokenize: tokenizeEmailAutolink,
1913
2003
  previous: previousEmail
1914
2004
  };
@@ -1959,11 +2049,7 @@ function tokenizeEmailAutolink(effects, ok2, nok) {
1959
2049
  }
1960
2050
  function emailDomain(code2) {
1961
2051
  if (code2 === 46) {
1962
- return effects.check(
1963
- emailDomainDotTrail,
1964
- emailDomainAfter,
1965
- emailDomainDot
1966
- )(code2);
2052
+ return effects.check(emailDomainDotTrail, emailDomainAfter, emailDomainDot)(code2);
1967
2053
  }
1968
2054
  if (code2 === 45 || code2 === 95 || asciiAlphanumeric(code2)) {
1969
2055
  data = true;
@@ -1995,11 +2081,7 @@ function tokenizeWwwAutolink(effects, ok2, nok) {
1995
2081
  }
1996
2082
  effects.enter("literalAutolink");
1997
2083
  effects.enter("literalAutolinkWww");
1998
- return effects.check(
1999
- wwwPrefix,
2000
- effects.attempt(domain, effects.attempt(path, wwwAfter), nok),
2001
- nok
2002
- )(code2);
2084
+ return effects.check(wwwPrefix, effects.attempt(domain, effects.attempt(path, wwwAfter), nok), nok)(code2);
2003
2085
  }
2004
2086
  function wwwAfter(code2) {
2005
2087
  effects.exit("literalAutolinkWww");
@@ -2148,7 +2230,7 @@ function tokenizeTrail(effects, ok2, nok) {
2148
2230
  }
2149
2231
  if (code2 === 38) {
2150
2232
  effects.consume(code2);
2151
- return trailCharRefStart;
2233
+ return trailCharacterReferenceStart;
2152
2234
  }
2153
2235
  if (code2 === 93) {
2154
2236
  effects.consume(code2);
@@ -2169,17 +2251,17 @@ function tokenizeTrail(effects, ok2, nok) {
2169
2251
  }
2170
2252
  return trail2(code2);
2171
2253
  }
2172
- function trailCharRefStart(code2) {
2173
- return asciiAlpha(code2) ? trailCharRefInside(code2) : nok(code2);
2254
+ function trailCharacterReferenceStart(code2) {
2255
+ return asciiAlpha(code2) ? trailCharacterReferenceInside(code2) : nok(code2);
2174
2256
  }
2175
- function trailCharRefInside(code2) {
2257
+ function trailCharacterReferenceInside(code2) {
2176
2258
  if (code2 === 59) {
2177
2259
  effects.consume(code2);
2178
2260
  return trail2;
2179
2261
  }
2180
2262
  if (asciiAlpha(code2)) {
2181
2263
  effects.consume(code2);
2182
- return trailCharRefInside;
2264
+ return trailCharacterReferenceInside;
2183
2265
  }
2184
2266
  return nok(code2);
2185
2267
  }
@@ -2225,14 +2307,6 @@ function previousUnbalanced(events) {
2225
2307
  }
2226
2308
  return result;
2227
2309
  }
2228
- function classifyCharacter(code2) {
2229
- if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
2230
- return 1;
2231
- }
2232
- if (unicodePunctuation(code2)) {
2233
- return 2;
2234
- }
2235
- }
2236
2310
  function resolveAll(constructs2, events, context) {
2237
2311
  const called = [];
2238
2312
  let index = -1;
@@ -2266,8 +2340,8 @@ function factorySpace(effects, ok2, type, max) {
2266
2340
  }
2267
2341
  }
2268
2342
  const blankLine = {
2269
- tokenize: tokenizeBlankLine,
2270
- partial: true
2343
+ partial: true,
2344
+ tokenize: tokenizeBlankLine
2271
2345
  };
2272
2346
  function tokenizeBlankLine(effects, ok2, nok) {
2273
2347
  return start;
@@ -2286,6 +2360,7 @@ function gfmFootnote() {
2286
2360
  return {
2287
2361
  document: {
2288
2362
  [91]: {
2363
+ name: "gfmFootnoteDefinition",
2289
2364
  tokenize: tokenizeDefinitionStart,
2290
2365
  continuation: {
2291
2366
  tokenize: tokenizeDefinitionContinuation
@@ -2295,9 +2370,11 @@ function gfmFootnote() {
2295
2370
  },
2296
2371
  text: {
2297
2372
  [91]: {
2373
+ name: "gfmFootnoteCall",
2298
2374
  tokenize: tokenizeGfmFootnoteCall
2299
2375
  },
2300
2376
  [93]: {
2377
+ name: "gfmPotentialFootnoteCall",
2301
2378
  add: "after",
2302
2379
  tokenize: tokenizePotentialGfmFootnoteCall,
2303
2380
  resolveTo: resolveToPotentialGfmFootnoteCall
@@ -2325,12 +2402,10 @@ function tokenizePotentialGfmFootnoteCall(effects, ok2, nok) {
2325
2402
  if (!labelStart || !labelStart._balanced) {
2326
2403
  return nok(code2);
2327
2404
  }
2328
- const id = normalizeIdentifier(
2329
- self.sliceSerialize({
2330
- start: labelStart.end,
2331
- end: self.now()
2332
- })
2333
- );
2405
+ const id = normalizeIdentifier(self.sliceSerialize({
2406
+ start: labelStart.end,
2407
+ end: self.now()
2408
+ }));
2334
2409
  if (id.codePointAt(0) !== 94 || !defined.includes(id.slice(1))) {
2335
2410
  return nok(code2);
2336
2411
  }
@@ -2527,11 +2602,7 @@ function tokenizeDefinitionStart(effects, ok2, nok) {
2527
2602
  if (!defined.includes(identifier)) {
2528
2603
  defined.push(identifier);
2529
2604
  }
2530
- return factorySpace(
2531
- effects,
2532
- whitespaceAfter,
2533
- "gfmFootnoteDefinitionWhitespace"
2534
- );
2605
+ return factorySpace(effects, whitespaceAfter, "gfmFootnoteDefinitionWhitespace");
2535
2606
  }
2536
2607
  return nok(code2);
2537
2608
  }
@@ -2547,12 +2618,7 @@ function gfmFootnoteDefinitionEnd(effects) {
2547
2618
  }
2548
2619
  function tokenizeIndent(effects, ok2, nok) {
2549
2620
  const self = this;
2550
- return factorySpace(
2551
- effects,
2552
- afterPrefix,
2553
- "gfmFootnoteDefinitionIndent",
2554
- 4 + 1
2555
- );
2621
+ return factorySpace(effects, afterPrefix, "gfmFootnoteDefinitionIndent", 4 + 1);
2556
2622
  function afterPrefix(code2) {
2557
2623
  const tail = self.events[self.events.length - 1];
2558
2624
  return tail && tail[1].type === "gfmFootnoteDefinitionIndent" && tail[2].sliceSerialize(tail[1], true).length === 4 ? ok2(code2) : nok(code2);
@@ -2562,6 +2628,7 @@ function gfmStrikethrough(options) {
2562
2628
  const options_ = options || {};
2563
2629
  let single = options_.singleTilde;
2564
2630
  const tokenizer = {
2631
+ name: "strikethrough",
2565
2632
  tokenize: tokenizeStrikethrough,
2566
2633
  resolveAll: resolveAllStrikethrough
2567
2634
  };
@@ -2599,27 +2666,12 @@ function gfmStrikethrough(options) {
2599
2666
  start: Object.assign({}, events[open][1].end),
2600
2667
  end: Object.assign({}, events[index][1].start)
2601
2668
  };
2602
- const nextEvents = [
2603
- ["enter", strikethrough, context],
2604
- ["enter", events[open][1], context],
2605
- ["exit", events[open][1], context],
2606
- ["enter", text2, context]
2607
- ];
2669
+ const nextEvents = [["enter", strikethrough, context], ["enter", events[open][1], context], ["exit", events[open][1], context], ["enter", text2, context]];
2608
2670
  const insideSpan = context.parser.constructs.insideSpan.null;
2609
2671
  if (insideSpan) {
2610
- splice(
2611
- nextEvents,
2612
- nextEvents.length,
2613
- 0,
2614
- resolveAll(insideSpan, events.slice(open + 1, index), context)
2615
- );
2672
+ splice(nextEvents, nextEvents.length, 0, resolveAll(insideSpan, events.slice(open + 1, index), context));
2616
2673
  }
2617
- splice(nextEvents, nextEvents.length, 0, [
2618
- ["exit", text2, context],
2619
- ["enter", events[index][1], context],
2620
- ["exit", events[index][1], context],
2621
- ["exit", strikethrough, context]
2622
- ]);
2674
+ splice(nextEvents, nextEvents.length, 0, [["exit", text2, context], ["enter", events[index][1], context], ["exit", events[index][1], context], ["exit", strikethrough, context]]);
2623
2675
  splice(events, open - 1, index - open + 3, nextEvents);
2624
2676
  index = open + nextEvents.length - 2;
2625
2677
  break;
@@ -2680,7 +2732,7 @@ class EditMap {
2680
2732
  * @returns {undefined}
2681
2733
  */
2682
2734
  add(index, remove, add) {
2683
- addImpl(this, index, remove, add);
2735
+ addImplementation(this, index, remove, add);
2684
2736
  }
2685
2737
  // To do: add this when moving to `micromark`.
2686
2738
  // /**
@@ -2692,7 +2744,7 @@ class EditMap {
2692
2744
  // * @returns {undefined}
2693
2745
  // */
2694
2746
  // addBefore(index, remove, add) {
2695
- // addImpl(this, index, remove, add, true)
2747
+ // addImplementation(this, index, remove, add, true)
2696
2748
  // }
2697
2749
  /**
2698
2750
  * Done, change the events.
@@ -2711,23 +2763,22 @@ class EditMap {
2711
2763
  const vecs = [];
2712
2764
  while (index > 0) {
2713
2765
  index -= 1;
2714
- vecs.push(
2715
- events.slice(this.map[index][0] + this.map[index][1]),
2716
- this.map[index][2]
2717
- );
2766
+ vecs.push(events.slice(this.map[index][0] + this.map[index][1]), this.map[index][2]);
2718
2767
  events.length = this.map[index][0];
2719
2768
  }
2720
- vecs.push([...events]);
2769
+ vecs.push(events.slice());
2721
2770
  events.length = 0;
2722
2771
  let slice = vecs.pop();
2723
2772
  while (slice) {
2724
- events.push(...slice);
2773
+ for (const element of slice) {
2774
+ events.push(element);
2775
+ }
2725
2776
  slice = vecs.pop();
2726
2777
  }
2727
2778
  this.map.length = 0;
2728
2779
  }
2729
2780
  }
2730
- function addImpl(editMap, at, remove, add) {
2781
+ function addImplementation(editMap, at, remove, add) {
2731
2782
  let index = 0;
2732
2783
  if (remove === 0 && add.length === 0) {
2733
2784
  return;
@@ -2750,9 +2801,7 @@ function gfmTableAlign(events, index) {
2750
2801
  if (inDelimiterRow) {
2751
2802
  if (event[0] === "enter") {
2752
2803
  if (event[1].type === "tableContent") {
2753
- align.push(
2754
- events[index + 1][1].type === "tableDelimiterMarker" ? "left" : "none"
2755
- );
2804
+ align.push(events[index + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
2756
2805
  }
2757
2806
  } else if (event[1].type === "tableContent") {
2758
2807
  if (events[index - 1][1].type === "tableDelimiterMarker") {
@@ -2773,6 +2822,7 @@ function gfmTable() {
2773
2822
  return {
2774
2823
  flow: {
2775
2824
  null: {
2825
+ name: "table",
2776
2826
  tokenize: tokenizeTable,
2777
2827
  resolveAll: resolveTable
2778
2828
  }
@@ -2790,8 +2840,7 @@ function tokenizeTable(effects, ok2, nok) {
2790
2840
  while (index > -1) {
2791
2841
  const type = self.events[index][1].type;
2792
2842
  if (type === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
2793
- type === "linePrefix")
2794
- index--;
2843
+ type === "linePrefix") index--;
2795
2844
  else break;
2796
2845
  }
2797
2846
  const tail = index > -1 ? self.events[index][1].type : null;
@@ -2871,12 +2920,7 @@ function tokenizeTable(effects, ok2, nok) {
2871
2920
  effects.enter("tableDelimiterRow");
2872
2921
  seen = false;
2873
2922
  if (markdownSpace(code2)) {
2874
- return factorySpace(
2875
- effects,
2876
- headDelimiterBefore,
2877
- "linePrefix",
2878
- self.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
2879
- )(code2);
2923
+ return factorySpace(effects, headDelimiterBefore, "linePrefix", self.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(code2);
2880
2924
  }
2881
2925
  return headDelimiterBefore(code2);
2882
2926
  }
@@ -3051,14 +3095,7 @@ function resolveTable(events, context) {
3051
3095
  if (cell[2] === 0) {
3052
3096
  if (lastCell[1] !== 0) {
3053
3097
  cell[0] = cell[1];
3054
- currentCell = flushCell(
3055
- map2,
3056
- context,
3057
- lastCell,
3058
- rowKind,
3059
- void 0,
3060
- currentCell
3061
- );
3098
+ currentCell = flushCell(map2, context, lastCell, rowKind, void 0, currentCell);
3062
3099
  lastCell = [0, 0, 0, 0];
3063
3100
  }
3064
3101
  cell[2] = index;
@@ -3069,14 +3106,7 @@ function resolveTable(events, context) {
3069
3106
  } else {
3070
3107
  if (lastCell[1] !== 0) {
3071
3108
  cell[0] = cell[1];
3072
- currentCell = flushCell(
3073
- map2,
3074
- context,
3075
- lastCell,
3076
- rowKind,
3077
- void 0,
3078
- currentCell
3079
- );
3109
+ currentCell = flushCell(map2, context, lastCell, rowKind, void 0, currentCell);
3080
3110
  }
3081
3111
  lastCell = cell;
3082
3112
  cell = [lastCell[1], index, 0, 0];
@@ -3089,14 +3119,7 @@ function resolveTable(events, context) {
3089
3119
  lastTableEnd = index;
3090
3120
  if (lastCell[1] !== 0) {
3091
3121
  cell[0] = cell[1];
3092
- currentCell = flushCell(
3093
- map2,
3094
- context,
3095
- lastCell,
3096
- rowKind,
3097
- index,
3098
- currentCell
3099
- );
3122
+ currentCell = flushCell(map2, context, lastCell, rowKind, index, currentCell);
3100
3123
  } else if (cell[1] !== 0) {
3101
3124
  currentCell = flushCell(map2, context, cell, rowKind, index, currentCell);
3102
3125
  }
@@ -3180,6 +3203,7 @@ function getPoint(events, index) {
3180
3203
  return event[1][side];
3181
3204
  }
3182
3205
  const tasklistCheck = {
3206
+ name: "tasklistCheck",
3183
3207
  tokenize: tokenizeTasklistCheck
3184
3208
  };
3185
3209
  function gfmTaskListItem() {
@@ -3237,13 +3261,9 @@ function tokenizeTasklistCheck(effects, ok2, nok) {
3237
3261
  return ok2(code2);
3238
3262
  }
3239
3263
  if (markdownSpace(code2)) {
3240
- return effects.check(
3241
- {
3242
- tokenize: spaceThenNonSpace
3243
- },
3244
- ok2,
3245
- nok
3246
- )(code2);
3264
+ return effects.check({
3265
+ tokenize: spaceThenNonSpace
3266
+ }, ok2, nok)(code2);
3247
3267
  }
3248
3268
  return nok(code2);
3249
3269
  }
@@ -3412,59 +3432,49 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3412
3432
  ], 2)) : createCommentVNode("", true);
3413
3433
  }
3414
3434
  const NcReferenceList = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-8e70b916"]]);
3415
- const remarkPlaceholder = function() {
3416
- return function(ast) {
3417
- visit(ast, (node2) => node2.type === "text", visitor);
3418
- function visitor(node2, index, parent) {
3419
- const placeholders = node2.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry, index2, list2) => {
3420
- const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
3421
- if (!matches) {
3422
- return u("text", entry);
3423
- }
3424
- const [, component] = matches;
3425
- return u("element", {
3426
- tagName: `#${component}`,
3427
- children: []
3428
- });
3435
+ /*!
3436
+ * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3437
+ * SPDX-License-Identifier: AGPL-3.0-or-later
3438
+ */
3439
+ function isTextNode$1(node2) {
3440
+ return ["text", "code", "inlineCode"].includes(node2.type);
3441
+ }
3442
+ const remarkUnescape = function() {
3443
+ return function(tree) {
3444
+ visit(tree, isTextNode$1, (node2, index, parent) => {
3445
+ parent.children.splice(index, 1, {
3446
+ ...node2,
3447
+ value: node2.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3429
3448
  });
3430
- parent.children.splice(index, 1, ...placeholders);
3431
- }
3449
+ return [SKIP$1, index + 1];
3450
+ });
3432
3451
  };
3433
3452
  };
3434
- const prepareTextNode = ({ h: h2, context }, text2) => {
3435
- if (context.autolink) {
3436
- text2 = parseUrl(text2);
3437
- }
3438
- if (Array.isArray(text2)) {
3439
- return text2.map((entry) => {
3440
- if (typeof entry === "string") {
3441
- return entry;
3453
+ /*!
3454
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
3455
+ * SPDX-License-Identifier: AGPL-3.0-or-later
3456
+ */
3457
+ function isTextNode(node2) {
3458
+ return node2.type === "text";
3459
+ }
3460
+ const transformPlaceholders = function(ast) {
3461
+ visit(ast, isTextNode, visitor);
3462
+ function visitor(node2, index, parent) {
3463
+ const placeholders = node2.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3464
+ const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
3465
+ if (!matches) {
3466
+ return u("text", entry);
3442
3467
  }
3443
- const { component, props } = entry;
3444
- const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
3445
- return h2(component, {
3446
- ...props,
3447
- class: componentClass
3468
+ const [, component] = matches;
3469
+ return u("element", {
3470
+ tagName: `#${component}`,
3471
+ children: []
3448
3472
  });
3449
3473
  });
3474
+ parent.children.splice(index, 1, ...placeholders);
3450
3475
  }
3451
- return text2;
3452
- };
3453
- const remarkUnescape = function() {
3454
- return function(tree) {
3455
- visit(
3456
- tree,
3457
- (node2) => ["text", "code", "inlineCode"].includes(node2.type),
3458
- (node2, index, parent) => {
3459
- parent.children.splice(index, 1, {
3460
- ...node2,
3461
- value: node2.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3462
- });
3463
- return [SKIP$1, index + 1];
3464
- }
3465
- );
3466
- };
3467
3476
  };
3477
+ const remarkPlaceholder = () => transformPlaceholders;
3468
3478
  const LINK_PROTOCOLS = ["http", "https", "mailto", "tel"];
3469
3479
  const rehypeHighlight = ref(null);
3470
3480
  async function importRehypeHighlightLibrary() {
@@ -3537,7 +3547,7 @@ const _sfc_main = {
3537
3547
  const placeholders = this.text.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3538
3548
  const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
3539
3549
  if (!matches) {
3540
- return prepareTextNode({ h, context: this }, entry);
3550
+ return this.prepareTextNode(entry);
3541
3551
  }
3542
3552
  const argumentId = matches[1];
3543
3553
  const argument = this.arguments[argumentId];
@@ -3600,6 +3610,30 @@ const _sfc_main = {
3600
3610
  ]) : null
3601
3611
  ]);
3602
3612
  },
3613
+ /**
3614
+ * Render plain text nodes
3615
+ *
3616
+ * @param {string} text - Content of the node
3617
+ */
3618
+ prepareTextNode(text2) {
3619
+ if (this.autolink) {
3620
+ text2 = parseUrl(text2);
3621
+ }
3622
+ if (Array.isArray(text2)) {
3623
+ return text2.map((entry) => {
3624
+ if (typeof entry === "string") {
3625
+ return entry;
3626
+ }
3627
+ const { component, props } = entry;
3628
+ const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
3629
+ return h(component, {
3630
+ ...props,
3631
+ class: componentClass
3632
+ });
3633
+ });
3634
+ }
3635
+ return text2;
3636
+ },
3603
3637
  createElement(type, props, key) {
3604
3638
  if (key) {
3605
3639
  props.key = key;
@@ -3669,9 +3703,9 @@ const _sfc_main = {
3669
3703
  return this.useMarkdown || this.useExtendedMarkdown ? this.renderMarkdown() : this.renderPlaintext();
3670
3704
  }
3671
3705
  };
3672
- const NcRichText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-deb52498"]]);
3706
+ const NcRichText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-19dbe6da"]]);
3673
3707
  export {
3674
3708
  NcRichText as N,
3675
3709
  NcReferenceList as a
3676
3710
  };
3677
- //# sourceMappingURL=NcRichText-DvbC3aUR.mjs.map
3711
+ //# sourceMappingURL=NcRichText-G8kzsdwx.mjs.map