@nextcloud/vue 8.37.0 → 8.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist/Components/NcActionButton.cjs +1 -1
- package/dist/Components/NcActionButton.mjs +1 -1
- package/dist/Components/NcActionButtonGroup.cjs +1 -1
- package/dist/Components/NcActionButtonGroup.mjs +1 -1
- package/dist/Components/NcActionInput.cjs +1 -1
- package/dist/Components/NcActionInput.mjs +1 -1
- package/dist/Components/NcActionLink.cjs +2 -2
- package/dist/Components/NcActionLink.cjs.map +1 -1
- package/dist/Components/NcActionLink.mjs +2 -2
- package/dist/Components/NcActionLink.mjs.map +1 -1
- package/dist/Components/NcActionTextEditable.cjs +1 -1
- package/dist/Components/NcActionTextEditable.mjs +1 -1
- package/dist/Components/NcActions.cjs +1 -1
- package/dist/Components/NcActions.mjs +1 -1
- package/dist/Components/NcAppContent.cjs +1 -1
- package/dist/Components/NcAppContent.mjs +1 -1
- package/dist/Components/NcAppNavigation.cjs +1 -1
- package/dist/Components/NcAppNavigation.mjs +1 -1
- package/dist/Components/NcAppNavigationCaption.cjs +1 -1
- package/dist/Components/NcAppNavigationCaption.mjs +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +1 -1
- package/dist/Components/NcAppNavigationNew.cjs +1 -1
- package/dist/Components/NcAppNavigationNew.mjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
- package/dist/Components/NcAppNavigationSearch.cjs +1 -1
- package/dist/Components/NcAppNavigationSearch.mjs +1 -1
- package/dist/Components/NcAppNavigationSettings.cjs +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +1 -1
- package/dist/Components/NcAppNavigationToggle.cjs +1 -1
- package/dist/Components/NcAppNavigationToggle.mjs +1 -1
- package/dist/Components/NcAppSettingsDialog.cjs +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +1 -1
- package/dist/Components/NcAppSidebar.cjs +1 -1
- package/dist/Components/NcAppSidebar.mjs +1 -1
- package/dist/Components/NcAssistantButton.cjs +1 -1
- package/dist/Components/NcAssistantButton.mjs +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +1 -1
- package/dist/Components/NcBreadcrumb.mjs +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +1 -1
- package/dist/Components/NcButton.cjs +1 -1
- package/dist/Components/NcButton.mjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
- package/dist/Components/NcChip.cjs +2 -2
- package/dist/Components/NcChip.mjs +2 -2
- package/dist/Components/NcCollectionList.cjs +1 -1
- package/dist/Components/NcCollectionList.mjs +1 -1
- package/dist/Components/NcColorPicker.cjs +1 -1
- package/dist/Components/NcColorPicker.mjs +1 -1
- package/dist/Components/NcContent.cjs +1 -1
- package/dist/Components/NcContent.mjs +1 -1
- package/dist/Components/NcDashboardWidget.cjs +1 -1
- package/dist/Components/NcDashboardWidget.mjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
- package/dist/Components/NcDateTimePicker.cjs +3 -3
- package/dist/Components/NcDateTimePicker.mjs +3 -3
- package/dist/Components/NcDateTimePickerNative.cjs +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +1 -1
- package/dist/Components/NcDialog.cjs +1 -1
- package/dist/Components/NcDialog.mjs +1 -1
- package/dist/Components/NcDialogButton.cjs +1 -1
- package/dist/Components/NcDialogButton.mjs +1 -1
- package/dist/Components/NcEmojiPicker.cjs +1 -1
- package/dist/Components/NcEmojiPicker.mjs +1 -1
- package/dist/Components/NcFilePicker.cjs +1 -1
- package/dist/Components/NcFilePicker.mjs +1 -1
- package/dist/Components/NcFormBoxButton.cjs +1 -1
- package/dist/Components/NcFormBoxButton.mjs +1 -1
- package/dist/Components/NcFormBoxCopyButton.cjs +1 -1
- package/dist/Components/NcFormBoxCopyButton.mjs +1 -1
- package/dist/Components/NcFormBoxSwitch.cjs +1 -1
- package/dist/Components/NcFormBoxSwitch.mjs +1 -1
- package/dist/Components/NcHeaderButton.cjs +1 -1
- package/dist/Components/NcHeaderButton.mjs +1 -1
- package/dist/Components/NcHeaderMenu.cjs +1 -1
- package/dist/Components/NcHeaderMenu.mjs +1 -1
- package/dist/Components/NcInputField.cjs +1 -1
- package/dist/Components/NcInputField.mjs +1 -1
- package/dist/Components/NcListItem.cjs +1 -1
- package/dist/Components/NcListItem.mjs +1 -1
- package/dist/Components/NcListItemIcon.cjs +1 -1
- package/dist/Components/NcListItemIcon.mjs +1 -1
- package/dist/Components/NcModal.cjs +3 -3
- package/dist/Components/NcModal.mjs +3 -3
- package/dist/Components/NcNoteCard.cjs +1 -1
- package/dist/Components/NcNoteCard.mjs +1 -1
- package/dist/Components/NcPasswordField.cjs +1 -1
- package/dist/Components/NcPasswordField.mjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
- package/dist/Components/NcRichContenteditable.cjs +2 -2
- package/dist/Components/NcRichContenteditable.mjs +2 -2
- package/dist/Components/NcRichText.cjs +2 -2
- package/dist/Components/NcRichText.mjs +3 -3
- package/dist/Components/NcSelect.cjs +1 -1
- package/dist/Components/NcSelect.mjs +1 -1
- package/dist/Components/NcSelectTags.cjs +1 -1
- package/dist/Components/NcSelectTags.mjs +1 -1
- package/dist/Components/NcSelectUsers.cjs +1 -1
- package/dist/Components/NcSelectUsers.mjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
- package/dist/Components/NcTextArea.cjs +1 -1
- package/dist/Components/NcTextArea.mjs +1 -1
- package/dist/Components/NcTextField.cjs +1 -1
- package/dist/Components/NcTextField.mjs +1 -1
- package/dist/Components/NcTimezonePicker.cjs +1 -1
- package/dist/Components/NcTimezonePicker.mjs +1 -1
- package/dist/Components/NcUserBubble.cjs +1 -1
- package/dist/Components/NcUserBubble.mjs +1 -1
- package/dist/Components/NcUserStatusIcon.cjs +1 -1
- package/dist/Components/NcUserStatusIcon.mjs +1 -1
- package/dist/Functions/emoji.cjs +1 -1
- package/dist/Functions/emoji.mjs +1 -1
- package/dist/Functions/reference.cjs +1 -1
- package/dist/Functions/reference.mjs +1 -1
- package/dist/Functions/usernameToColor.cjs +1 -1
- package/dist/Functions/usernameToColor.mjs +1 -1
- package/dist/Mixins/richEditor.cjs +1 -1
- package/dist/Mixins/richEditor.mjs +1 -1
- package/dist/assets/{NcActionButton-CG4V9b5b.css → NcActionButton-CjKx3679.css} +18 -18
- package/dist/assets/{NcActionButtonGroup-CRXLyFpx.css → NcActionButtonGroup-DqR0weTf.css} +8 -8
- package/dist/assets/{NcActionInput-B-c5cOfM.css → NcActionInput-CPu4Btyq.css} +65 -65
- package/dist/assets/{NcActionLink-BtpJIbvI.css → NcActionLink-Bt-73iBm.css} +13 -13
- package/dist/assets/{NcActionTextEditable-BCmDMuUg.css → NcActionTextEditable-AuLw5QVP.css} +65 -65
- package/dist/assets/{NcActions-CVw1SmBu.css → NcActions-CuFJSslC.css} +11 -11
- package/dist/assets/{NcAppNavigation-Dbpqdigp.css → NcAppNavigation-DfsSMVgo.css} +18 -12
- package/dist/assets/{NcAppNavigationItem-De04deJW.css → NcAppNavigationItem-CksjxOVP.css} +77 -40
- package/dist/assets/{NcAppNavigationNewItem-CYSjj3pD.css → NcAppNavigationNewItem-Dn_iz3og.css} +41 -4
- package/dist/assets/NcAppSettingsDialog-DRyLeR3T.css +222 -0
- package/dist/assets/{NcAppSidebar-BsMeIg8W.css → NcAppSidebar-B1bkEVQA.css} +75 -14
- package/dist/assets/{NcBreadcrumbs-DahxPGJY.css → NcBreadcrumbs-Dt1zdHzR.css} +6 -6
- package/dist/assets/{NcButton-8Y8d_1Z_.css → NcButton-o3s2D3Dl.css} +49 -46
- package/dist/assets/{NcCheckboxRadioSwitch-BACLOhMO.css → NcCheckboxRadioSwitch-BojbloxL.css} +38 -38
- package/dist/assets/{NcContent-a67pCVHO.css → NcContent-URJTZQq1.css} +22 -10
- package/dist/assets/{NcDateTimePicker-BzP7Sn12.css → NcDateTimePicker-DknygOcQ.css} +8 -8
- package/dist/assets/NcInputConfirmCancel-Brp9ZfY5.css +53 -0
- package/dist/assets/{NcPasswordField-CiN_phAQ.css → NcPasswordField-vrT0oftw.css} +2 -2
- package/dist/assets/{NcRelatedResourcesPanel-BgMc8bue.css → NcRelatedResourcesPanel-CTpqdDL9.css} +3 -3
- package/dist/assets/{NcRichContenteditable-3tL9zHn2.css → NcRichContenteditable-DwS6PNCv.css} +11 -11
- package/dist/assets/{NcRichText-CAhzDSty.css → NcRichText-Cp_5tfBy.css} +91 -98
- package/dist/assets/autolink-KPdaBewQ.css +25 -0
- package/dist/chunks/{NcActionButton-C5Dqge0c.cjs → NcActionButton-CiYel4_C.cjs} +3 -3
- package/dist/chunks/NcActionButton-CiYel4_C.cjs.map +1 -0
- package/dist/chunks/{NcActionButton-1gSJfFUC.mjs → NcActionButton-K4jUGMlW.mjs} +3 -3
- package/dist/chunks/NcActionButton-K4jUGMlW.mjs.map +1 -0
- package/dist/chunks/{NcActionButtonGroup-eZxqibUd.mjs → NcActionButtonGroup-B95wg_Q6.mjs} +3 -3
- package/dist/chunks/NcActionButtonGroup-B95wg_Q6.mjs.map +1 -0
- package/dist/chunks/{NcActionButtonGroup-CpZDTAQo.cjs → NcActionButtonGroup-CFGCmzTM.cjs} +3 -3
- package/dist/chunks/NcActionButtonGroup-CFGCmzTM.cjs.map +1 -0
- package/dist/chunks/{NcActionInput-UPwE2Dky.mjs → NcActionInput-BoKGVBu8.mjs} +5 -5
- package/dist/chunks/NcActionInput-BoKGVBu8.mjs.map +1 -0
- package/dist/chunks/{NcActionInput-eAmBylEO.cjs → NcActionInput-CcA3XFGe.cjs} +5 -5
- package/dist/chunks/NcActionInput-CcA3XFGe.cjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-RFLtWxrl.cjs → NcActionTextEditable-BqJ5wONY.cjs} +3 -3
- package/dist/chunks/NcActionTextEditable-BqJ5wONY.cjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-CIsAP-pp.mjs → NcActionTextEditable-YqvZGY07.mjs} +3 -3
- package/dist/chunks/NcActionTextEditable-YqvZGY07.mjs.map +1 -0
- package/dist/chunks/{NcActions-BSDvtMJD.cjs → NcActions-D51W1X9v.cjs} +4 -4
- package/dist/chunks/NcActions-D51W1X9v.cjs.map +1 -0
- package/dist/chunks/{NcActions-BcLis_nr.mjs → NcActions-DbPerbGE.mjs} +4 -4
- package/dist/chunks/NcActions-DbPerbGE.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-DLGtJosF.cjs → NcAppContent-0hbQMH35.cjs} +2 -2
- package/dist/chunks/{NcAppContent-DLGtJosF.cjs.map → NcAppContent-0hbQMH35.cjs.map} +1 -1
- package/dist/chunks/{NcAppContent-CeVqX0gV.mjs → NcAppContent-DAN0qPID.mjs} +2 -2
- package/dist/chunks/{NcAppContent-CeVqX0gV.mjs.map → NcAppContent-DAN0qPID.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-D2Ds_2Dm.cjs → NcAppNavigation-DB3HqxPL.cjs} +24 -9
- package/dist/chunks/NcAppNavigation-DB3HqxPL.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-BfzJA6cb.mjs → NcAppNavigation-DGufDPoi.mjs} +24 -9
- package/dist/chunks/NcAppNavigation-DGufDPoi.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs → NcAppNavigationCaption-BZwuqQcm.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs.map → NcAppNavigationCaption-BZwuqQcm.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs → NcAppNavigationCaption-WVnxSeIf.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs.map → NcAppNavigationCaption-WVnxSeIf.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-Dc5Vdhb1.cjs → NcAppNavigationItem-0zDqIuUZ.cjs} +17 -11
- package/dist/chunks/NcAppNavigationItem-0zDqIuUZ.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationItem-D30ztZfZ.mjs → NcAppNavigationItem-CgYgq_nb.mjs} +17 -11
- package/dist/chunks/NcAppNavigationItem-CgYgq_nb.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs → NcAppNavigationNew-BUVnumWS.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs.map → NcAppNavigationNew-BUVnumWS.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs → NcAppNavigationNew-DRdPwKOi.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs.map → NcAppNavigationNew-DRdPwKOi.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs → NcAppNavigationNewItem-Nz2HecTz.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs.map → NcAppNavigationNewItem-Nz2HecTz.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs → NcAppNavigationNewItem-SR744REn.cjs} +3 -3
- package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs.map → NcAppNavigationNewItem-SR744REn.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs → NcAppNavigationSearch-Czcwiin4.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs.map → NcAppNavigationSearch-Czcwiin4.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs → NcAppNavigationSearch-CzhlljAU.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs.map → NcAppNavigationSearch-CzhlljAU.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs → NcAppNavigationSettings-BaO-G72x.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs.map → NcAppNavigationSettings-BaO-G72x.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs → NcAppNavigationSettings-CotFe5aD.cjs} +3 -3
- package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs.map → NcAppNavigationSettings-CotFe5aD.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs → NcAppNavigationToggle-CXX1MFrf.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs.map → NcAppNavigationToggle-CXX1MFrf.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs → NcAppNavigationToggle-CkDMk16T.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs.map → NcAppNavigationToggle-CkDMk16T.cjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-Ckf6dRRJ.cjs → NcAppSettingsDialog-Fa5DTfig.cjs} +10 -9
- package/dist/chunks/NcAppSettingsDialog-Fa5DTfig.cjs.map +1 -0
- package/dist/chunks/{NcAppSettingsDialog-vBeCGFqk.mjs → NcAppSettingsDialog-MxrFh-Ln.mjs} +8 -7
- package/dist/chunks/NcAppSettingsDialog-MxrFh-Ln.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-Cx0PlofZ.mjs → NcAppSidebar-B7GuNZ4C.mjs} +10 -8
- package/dist/chunks/NcAppSidebar-B7GuNZ4C.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-CPHVBBe0.cjs → NcAppSidebar-DXEl0_ou.cjs} +10 -8
- package/dist/chunks/NcAppSidebar-DXEl0_ou.cjs.map +1 -0
- package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs → NcAssistantButton-B7BLAkwW.mjs} +2 -2
- package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs.map → NcAssistantButton-B7BLAkwW.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs → NcAssistantButton-XS3UdAKm.cjs} +2 -2
- package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs.map → NcAssistantButton-XS3UdAKm.cjs.map} +1 -1
- package/dist/chunks/{NcAvatar-ffZLZnH_.cjs → NcAvatar-D09ZAgeJ.cjs} +7 -7
- package/dist/chunks/{NcAvatar-ffZLZnH_.cjs.map → NcAvatar-D09ZAgeJ.cjs.map} +1 -1
- package/dist/chunks/{NcAvatar-DC2fiCH-.mjs → NcAvatar-DkAX4nqq.mjs} +7 -7
- package/dist/chunks/{NcAvatar-DC2fiCH-.mjs.map → NcAvatar-DkAX4nqq.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs → NcBreadcrumb-14OmaYrH.cjs} +3 -3
- package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs.map → NcBreadcrumb-14OmaYrH.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs → NcBreadcrumb-D8xA3KcG.mjs} +3 -3
- package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs.map → NcBreadcrumb-D8xA3KcG.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs → NcBreadcrumbs-CZt3UuyO.cjs} +7 -7
- package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs.map → NcBreadcrumbs-CZt3UuyO.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs → NcBreadcrumbs-CesoXxTs.mjs} +7 -7
- package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs.map → NcBreadcrumbs-CesoXxTs.mjs.map} +1 -1
- package/dist/chunks/{NcButton-Dszi1Apb.cjs → NcButton-ByTFUhwJ.cjs} +14 -5
- package/dist/chunks/NcButton-ByTFUhwJ.cjs.map +1 -0
- package/dist/chunks/{NcButton-BaZAY-tN.mjs → NcButton-CCWEL9Ci.mjs} +14 -5
- package/dist/chunks/NcButton-CCWEL9Ci.mjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs → NcCheckboxRadioSwitch-BQeglWXd.cjs} +8 -17
- package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs.map → NcCheckboxRadioSwitch-BQeglWXd.cjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs → NcCheckboxRadioSwitch-D4IV4zWy.mjs} +8 -17
- package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs.map → NcCheckboxRadioSwitch-D4IV4zWy.mjs.map} +1 -1
- package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs → NcCollectionList-2jk5XCm8.cjs} +6 -6
- package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs.map → NcCollectionList-2jk5XCm8.cjs.map} +1 -1
- package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs → NcCollectionList-DOAZ13vO.mjs} +6 -6
- package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs.map → NcCollectionList-DOAZ13vO.mjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs → NcColorPicker-BTiAa5mm.cjs} +3 -3
- package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs.map → NcColorPicker-BTiAa5mm.cjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-BfApfazi.mjs → NcColorPicker-SlazeVcI.mjs} +3 -3
- package/dist/chunks/{NcColorPicker-BfApfazi.mjs.map → NcColorPicker-SlazeVcI.mjs.map} +1 -1
- package/dist/chunks/{NcContent-MiRvygrj.cjs → NcContent-BB-v-amq.cjs} +8 -6
- package/dist/chunks/{NcContent-MiRvygrj.cjs.map → NcContent-BB-v-amq.cjs.map} +1 -1
- package/dist/chunks/{NcContent-DFOsZ6pm.mjs → NcContent-BuTh0ZPb.mjs} +8 -6
- package/dist/chunks/{NcContent-DFOsZ6pm.mjs.map → NcContent-BuTh0ZPb.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs → NcDashboardWidget-CO1z9VUN.mjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs.map → NcDashboardWidget-CO1z9VUN.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs → NcDashboardWidget-dMwnFBzc.cjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs.map → NcDashboardWidget-dMwnFBzc.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs → NcDashboardWidgetItem-2VgB9qj2.mjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs.map → NcDashboardWidgetItem-2VgB9qj2.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs → NcDashboardWidgetItem-9tQgaPXS.cjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs.map → NcDashboardWidgetItem-9tQgaPXS.cjs.map} +1 -1
- package/dist/chunks/{NcDialog-CDFWleNp.mjs → NcDialog-DZ7xq7XA.mjs} +2 -2
- package/dist/chunks/{NcDialog-CDFWleNp.mjs.map → NcDialog-DZ7xq7XA.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-gV238gzy.cjs → NcDialog-Qak1QTrv.cjs} +2 -2
- package/dist/chunks/{NcDialog-gV238gzy.cjs.map → NcDialog-Qak1QTrv.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs → NcDialogButton-BoetK2zm.cjs} +2 -2
- package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs.map → NcDialogButton-BoetK2zm.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-tB5RGMME.mjs → NcDialogButton-KNF3Co74.mjs} +2 -2
- package/dist/chunks/{NcDialogButton-tB5RGMME.mjs.map → NcDialogButton-KNF3Co74.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs → NcEmojiPicker-2KIJVstd.cjs} +6 -6
- package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs.map → NcEmojiPicker-2KIJVstd.cjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs → NcEmojiPicker-DNxcceCn.mjs} +6 -6
- package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs.map → NcEmojiPicker-DNxcceCn.mjs.map} +1 -1
- package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs → NcFilePicker-BL6iajt2.cjs} +3 -3
- package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs.map → NcFilePicker-BL6iajt2.cjs.map} +1 -1
- package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs → NcFilePicker-Ck9o-ia3.mjs} +3 -3
- package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs.map → NcFilePicker-Ck9o-ia3.mjs.map} +1 -1
- package/dist/chunks/NcFormBox-DRGVpFeZ.cjs.map +1 -1
- package/dist/chunks/NcFormBox-DtoCXLMx.mjs.map +1 -1
- package/dist/chunks/{NcFormBoxButton-BQi11xQX.mjs → NcFormBoxButton-CFWCJ0-X.mjs} +2 -2
- package/dist/chunks/{NcFormBoxButton-BQi11xQX.mjs.map → NcFormBoxButton-CFWCJ0-X.mjs.map} +1 -1
- package/dist/chunks/{NcFormBoxButton-BO2bMnah.cjs → NcFormBoxButton-ozVuTgCZ.cjs} +2 -2
- package/dist/chunks/{NcFormBoxButton-BO2bMnah.cjs.map → NcFormBoxButton-ozVuTgCZ.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxCopyButton-B2GrmfEz.cjs → NcFormBoxCopyButton-BS9aM994.cjs} +2 -2
- package/dist/chunks/{NcFormBoxCopyButton-B2GrmfEz.cjs.map → NcFormBoxCopyButton-BS9aM994.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxCopyButton-BkunQ3me.mjs → NcFormBoxCopyButton-Da8RuDH1.mjs} +2 -2
- package/dist/chunks/{NcFormBoxCopyButton-BkunQ3me.mjs.map → NcFormBoxCopyButton-Da8RuDH1.mjs.map} +1 -1
- package/dist/chunks/{NcFormBoxItem-y2AfRFCy.cjs → NcFormBoxItem-3lI7Bu3S.cjs} +2 -2
- package/dist/chunks/{NcFormBoxItem-y2AfRFCy.cjs.map → NcFormBoxItem-3lI7Bu3S.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxItem-Cu3gWo1q.mjs → NcFormBoxItem-Bz-P0lVG.mjs} +2 -2
- package/dist/chunks/{NcFormBoxItem-Cu3gWo1q.mjs.map → NcFormBoxItem-Bz-P0lVG.mjs.map} +1 -1
- package/dist/chunks/{NcFormBoxSwitch-OoIgFMb9.cjs → NcFormBoxSwitch-7R8iAj1R.cjs} +2 -2
- package/dist/chunks/{NcFormBoxSwitch-OoIgFMb9.cjs.map → NcFormBoxSwitch-7R8iAj1R.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxSwitch-E6sxPL4n.mjs → NcFormBoxSwitch-DaaMuPnk.mjs} +2 -2
- package/dist/chunks/{NcFormBoxSwitch-E6sxPL4n.mjs.map → NcFormBoxSwitch-DaaMuPnk.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs → NcHeaderButton-BndVfb3e.cjs} +2 -2
- package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs.map → NcHeaderButton-BndVfb3e.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs → NcHeaderButton-GtIbBhEd.mjs} +2 -2
- package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs.map → NcHeaderButton-GtIbBhEd.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs → NcHeaderMenu-DUQ4pqU-.cjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs.map → NcHeaderMenu-DUQ4pqU-.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs → NcHeaderMenu-elBE_Ukl.mjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs.map → NcHeaderMenu-elBE_Ukl.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-Ckda9G9Z.cjs → NcInputConfirmCancel-CEZVhgJR.cjs} +9 -5
- package/dist/chunks/NcInputConfirmCancel-CEZVhgJR.cjs.map +1 -0
- package/dist/chunks/{NcInputConfirmCancel-BvYpvopv.mjs → NcInputConfirmCancel-CwuZqsuC.mjs} +9 -5
- package/dist/chunks/NcInputConfirmCancel-CwuZqsuC.mjs.map +1 -0
- package/dist/chunks/{NcInputField-DDgBZ427.cjs → NcInputField-Brpn446B.cjs} +3 -3
- package/dist/chunks/{NcInputField-DDgBZ427.cjs.map → NcInputField-Brpn446B.cjs.map} +1 -1
- package/dist/chunks/{NcInputField-Cfm1bJR4.mjs → NcInputField-i4Z8nb4b.mjs} +3 -3
- package/dist/chunks/{NcInputField-Cfm1bJR4.mjs.map → NcInputField-i4Z8nb4b.mjs.map} +1 -1
- package/dist/chunks/{NcListItem-BLbG7272.cjs → NcListItem-C-e9iA9w.cjs} +2 -2
- package/dist/chunks/{NcListItem-BLbG7272.cjs.map → NcListItem-C-e9iA9w.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-RKTfRg06.mjs → NcListItem-CaosvdEe.mjs} +2 -2
- package/dist/chunks/{NcListItem-RKTfRg06.mjs.map → NcListItem-CaosvdEe.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs → NcListItemIcon-BQ0f65Vg.cjs} +2 -2
- package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs.map → NcListItemIcon-BQ0f65Vg.cjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-D49wESTI.mjs → NcListItemIcon-DCKYv8Jr.mjs} +2 -2
- package/dist/chunks/{NcListItemIcon-D49wESTI.mjs.map → NcListItemIcon-DCKYv8Jr.mjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-lE4m20vf.mjs → NcPasswordField-D4OFjLza.mjs} +7 -8
- package/dist/chunks/NcPasswordField-D4OFjLza.mjs.map +1 -0
- package/dist/chunks/{NcPasswordField-DNuolayr.cjs → NcPasswordField-PQt7wMbW.cjs} +7 -8
- package/dist/chunks/NcPasswordField-PQt7wMbW.cjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs → NcRelatedResourcesPanel-I2ZOB3cx.mjs} +7 -7
- package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs.map → NcRelatedResourcesPanel-I2ZOB3cx.mjs.map} +1 -1
- package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs → NcRelatedResourcesPanel-l1AlGr83.cjs} +7 -7
- package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs.map → NcRelatedResourcesPanel-l1AlGr83.cjs.map} +1 -1
- package/dist/chunks/{NcRichContenteditable-SA1zbfkk.mjs → NcRichContenteditable-8ZA_LArB.mjs} +21 -19
- package/dist/chunks/NcRichContenteditable-8ZA_LArB.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-Bh-mMIQz.cjs → NcRichContenteditable-DZjIiOKo.cjs} +21 -19
- package/dist/chunks/NcRichContenteditable-DZjIiOKo.cjs.map +1 -0
- package/dist/chunks/{NcRichText-rNfwY_Oc.mjs → NcRichText-ByLPwUvM.mjs} +337 -325
- package/dist/chunks/NcRichText-ByLPwUvM.mjs.map +1 -0
- package/dist/chunks/{NcRichText-B1Fyj7k8.cjs → NcRichText-pqvg5l27.cjs} +338 -327
- package/dist/chunks/NcRichText-pqvg5l27.cjs.map +1 -0
- package/dist/chunks/{NcSelect-1P3nA044.cjs → NcSelect-BCcSawYf.cjs} +3 -3
- package/dist/chunks/{NcSelect-1P3nA044.cjs.map → NcSelect-BCcSawYf.cjs.map} +1 -1
- package/dist/chunks/{NcSelect-CbWXsDdZ.mjs → NcSelect-CHc1QupB.mjs} +3 -3
- package/dist/chunks/{NcSelect-CbWXsDdZ.mjs.map → NcSelect-CHc1QupB.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs → NcSelectTags-Bokig7ar.mjs} +2 -2
- package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs.map → NcSelectTags-Bokig7ar.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs → NcSelectTags-uU_mHbSm.cjs} +2 -2
- package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs.map → NcSelectTags-uU_mHbSm.cjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs → NcSelectUsers-B4w9UC_d.mjs} +3 -3
- package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs.map → NcSelectUsers-B4w9UC_d.mjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs → NcSelectUsers-BB9ZIHeB.cjs} +3 -3
- package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs.map → NcSelectUsers-BB9ZIHeB.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs → NcSettingsSelectGroup-BdXf7ytX.mjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs.map → NcSettingsSelectGroup-BdXf7ytX.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs → NcSettingsSelectGroup-BtNFBX1V.cjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs.map → NcSettingsSelectGroup-BtNFBX1V.cjs.map} +1 -1
- package/dist/chunks/{NcTextArea-UKiTMLga.cjs → NcTextArea-B9Vn3rQC.cjs} +2 -2
- package/dist/chunks/{NcTextArea-UKiTMLga.cjs.map → NcTextArea-B9Vn3rQC.cjs.map} +1 -1
- package/dist/chunks/{NcTextArea-fGUiK7p2.mjs → NcTextArea-DPJWqlJb.mjs} +2 -2
- package/dist/chunks/{NcTextArea-fGUiK7p2.mjs.map → NcTextArea-DPJWqlJb.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-CkW-dl88.cjs → NcTextField-B92lM77I.cjs} +2 -2
- package/dist/chunks/{NcTextField-CkW-dl88.cjs.map → NcTextField-B92lM77I.cjs.map} +1 -1
- package/dist/chunks/{NcTextField-DZHP0Dfw.mjs → NcTextField-Czr9S6YO.mjs} +2 -2
- package/dist/chunks/{NcTextField-DZHP0Dfw.mjs.map → NcTextField-Czr9S6YO.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs → NcTimezonePicker-D2e7hW-Z.cjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs.map → NcTimezonePicker-D2e7hW-Z.cjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs → NcTimezonePicker-n9kr9A4o.mjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs.map → NcTimezonePicker-n9kr9A4o.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs → NcUserBubble-BGfZAi4c.mjs} +2 -2
- package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs.map → NcUserBubble-BGfZAi4c.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs → NcUserBubble-CNQJUk2l.cjs} +2 -2
- package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs.map → NcUserBubble-CNQJUk2l.cjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-Bw0m9Xza.cjs → NcUserStatusIcon-BnGtoiCy.cjs} +2 -2
- package/dist/chunks/{NcUserStatusIcon-Bw0m9Xza.cjs.map → NcUserStatusIcon-BnGtoiCy.cjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-Cq1RnTfF.mjs → NcUserStatusIcon-DdPPN-cP.mjs} +2 -2
- package/dist/chunks/{NcUserStatusIcon-Cq1RnTfF.mjs.map → NcUserStatusIcon-DdPPN-cP.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs → ScopeComponent-77Az-4PS.mjs} +2 -2
- package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs.map → ScopeComponent-77Az-4PS.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs → ScopeComponent-BLaRYUFv.cjs} +2 -2
- package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs.map → ScopeComponent-BLaRYUFv.cjs.map} +1 -1
- package/dist/chunks/{autolink-D2pIbi92.mjs → autolink-CeB9uxD9.mjs} +56 -21
- package/dist/chunks/autolink-CeB9uxD9.mjs.map +1 -0
- package/dist/chunks/{autolink-BPlRHRHR.cjs → autolink-VQMuzjxl.cjs} +57 -22
- package/dist/chunks/autolink-VQMuzjxl.cjs.map +1 -0
- package/dist/chunks/{colors-BmzDi7by.mjs → colors-Bp0JzIQ4.mjs} +5 -1
- package/dist/chunks/{colors-BmzDi7by.mjs.map → colors-Bp0JzIQ4.mjs.map} +1 -1
- package/dist/chunks/{colors-CND3oL8e.cjs → colors-CyIwf6gH.cjs} +5 -1
- package/dist/chunks/{colors-CND3oL8e.cjs.map → colors-CyIwf6gH.cjs.map} +1 -1
- package/dist/chunks/{emoji-BgZdRy3v.mjs → emoji-Dtn2mDf7.mjs} +2 -2
- package/dist/chunks/emoji-Dtn2mDf7.mjs.map +1 -0
- package/dist/chunks/{emoji-CEwczMT5.cjs → emoji-aWWWqkrJ.cjs} +2 -2
- package/dist/chunks/emoji-aWWWqkrJ.cjs.map +1 -0
- package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs → getAvatarUrl-4HsuXa3l.cjs} +2 -2
- package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs.map → getAvatarUrl-4HsuXa3l.cjs.map} +1 -1
- package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs → getAvatarUrl-BGOeDmNO.mjs} +2 -2
- package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs.map → getAvatarUrl-BGOeDmNO.mjs.map} +1 -1
- package/dist/chunks/{index-TmAR7I2T.mjs → index-BCqXu_og.mjs} +2 -2
- package/dist/chunks/{index-TmAR7I2T.mjs.map → index-BCqXu_og.mjs.map} +1 -1
- package/dist/chunks/{index-CgkN1xho.cjs → index-phHwkniW.cjs} +2 -2
- package/dist/chunks/{index-CgkN1xho.cjs.map → index-phHwkniW.cjs.map} +1 -1
- package/dist/chunks/legacy-Bk0qQxIg.cjs +8 -0
- package/dist/chunks/legacy-Bk0qQxIg.cjs.map +1 -0
- package/dist/chunks/legacy-DV3mGZdh.mjs +9 -0
- package/dist/chunks/legacy-DV3mGZdh.mjs.map +1 -0
- package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs → referencePickerModal-B69WouiU.mjs} +6 -6
- package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs.map → referencePickerModal-B69WouiU.mjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-hGj81_Th.cjs → referencePickerModal-BGYbZYrX.cjs} +6 -6
- package/dist/chunks/{referencePickerModal-hGj81_Th.cjs.map → referencePickerModal-BGYbZYrX.cjs.map} +1 -1
- package/dist/index.cjs +55 -55
- package/dist/index.mjs +57 -57
- package/dist/utils/legacy.d.ts +1 -0
- package/dist/vendor.LICENSE.txt +4 -8
- package/package.json +15 -15
- package/dist/assets/NcAppSettingsDialog-N2RJYgHo.css +0 -103
- package/dist/assets/NcInputConfirmCancel-CkhRZCfD.css +0 -39
- package/dist/chunks/NcActionButton-1gSJfFUC.mjs.map +0 -1
- package/dist/chunks/NcActionButton-C5Dqge0c.cjs.map +0 -1
- package/dist/chunks/NcActionButtonGroup-CpZDTAQo.cjs.map +0 -1
- package/dist/chunks/NcActionButtonGroup-eZxqibUd.mjs.map +0 -1
- package/dist/chunks/NcActionInput-UPwE2Dky.mjs.map +0 -1
- package/dist/chunks/NcActionInput-eAmBylEO.cjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-CIsAP-pp.mjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-RFLtWxrl.cjs.map +0 -1
- package/dist/chunks/NcActions-BSDvtMJD.cjs.map +0 -1
- package/dist/chunks/NcActions-BcLis_nr.mjs.map +0 -1
- package/dist/chunks/NcAppNavigation-BfzJA6cb.mjs.map +0 -1
- package/dist/chunks/NcAppNavigation-D2Ds_2Dm.cjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-D30ztZfZ.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-Dc5Vdhb1.cjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-Ckf6dRRJ.cjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-vBeCGFqk.mjs.map +0 -1
- package/dist/chunks/NcAppSidebar-CPHVBBe0.cjs.map +0 -1
- package/dist/chunks/NcAppSidebar-Cx0PlofZ.mjs.map +0 -1
- package/dist/chunks/NcButton-BaZAY-tN.mjs.map +0 -1
- package/dist/chunks/NcButton-Dszi1Apb.cjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-BvYpvopv.mjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-Ckda9G9Z.cjs.map +0 -1
- package/dist/chunks/NcPasswordField-DNuolayr.cjs.map +0 -1
- package/dist/chunks/NcPasswordField-lE4m20vf.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-Bh-mMIQz.cjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-SA1zbfkk.mjs.map +0 -1
- package/dist/chunks/NcRichText-B1Fyj7k8.cjs.map +0 -1
- package/dist/chunks/NcRichText-rNfwY_Oc.mjs.map +0 -1
- package/dist/chunks/autolink-BPlRHRHR.cjs.map +0 -1
- package/dist/chunks/autolink-D2pIbi92.mjs.map +0 -1
- package/dist/chunks/emoji-BgZdRy3v.mjs.map +0 -1
- package/dist/chunks/emoji-CEwczMT5.cjs.map +0 -1
- package/dist/chunks/legacy-KBXhWdRy.cjs +0 -5
- package/dist/chunks/legacy-KBXhWdRy.cjs.map +0 -1
- package/dist/chunks/legacy-MK4GvP26.mjs +0 -6
- package/dist/chunks/legacy-MK4GvP26.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('../assets/NcRichText-
|
|
1
|
+
require('../assets/NcRichText-Cp_5tfBy.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -22,38 +22,37 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
23
|
mod
|
|
24
24
|
));
|
|
25
|
+
const mdastUtilToString = require("mdast-util-to-string");
|
|
25
26
|
const rehypeExternalLinks = require("rehype-external-links");
|
|
26
27
|
const rehype2react = require("rehype-react");
|
|
27
28
|
const breaks = require("remark-breaks");
|
|
28
29
|
const remarkParse = require("remark-parse");
|
|
29
30
|
const remark2rehype = require("remark-rehype");
|
|
30
|
-
const remarkStringify = require("remark-stringify");
|
|
31
31
|
const remarkUnlinkProtocols = require("remark-unlink-protocols");
|
|
32
32
|
const unified = require("unified");
|
|
33
33
|
const Vue = require("vue");
|
|
34
34
|
const vueRouter = require("vue-router");
|
|
35
|
-
const NcCheckboxRadioSwitch = require("./NcCheckboxRadioSwitch-
|
|
35
|
+
const NcCheckboxRadioSwitch = require("./NcCheckboxRadioSwitch-BQeglWXd.cjs");
|
|
36
36
|
const auth = require("@nextcloud/auth");
|
|
37
37
|
const axios = require("@nextcloud/axios");
|
|
38
38
|
const router = require("@nextcloud/router");
|
|
39
39
|
const _public = require("@nextcloud/sharing/public");
|
|
40
|
-
const referencePickerModal = require("./referencePickerModal-
|
|
40
|
+
const referencePickerModal = require("./referencePickerModal-BGYbZYrX.cjs");
|
|
41
41
|
const logger = require("./logger-3HuiEIF6.cjs");
|
|
42
|
-
const autolink = require("./autolink-
|
|
42
|
+
const autolink = require("./autolink-VQMuzjxl.cjs");
|
|
43
43
|
const _pluginVue2_normalizer = require("./_plugin-vue2_normalizer-V0q-tHlQ.cjs");
|
|
44
|
-
const NcButton = require("./NcButton-
|
|
44
|
+
const NcButton = require("./NcButton-ByTFUhwJ.cjs");
|
|
45
45
|
const NcIconSvgWrapper = require("./NcIconSvgWrapper-Bbl4kXZI.cjs");
|
|
46
46
|
const useCopy = require("./useCopy-3m2jDiIN.cjs");
|
|
47
47
|
const GenRandomId = require("./GenRandomId-D7iOvpZS.cjs");
|
|
48
48
|
const unistBuilder = require("unist-builder");
|
|
49
|
-
const
|
|
49
|
+
const unistUtilVisitParents = require("unist-util-visit-parents");
|
|
50
50
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
51
51
|
const rehypeExternalLinks__default = /* @__PURE__ */ _interopDefault(rehypeExternalLinks);
|
|
52
52
|
const rehype2react__default = /* @__PURE__ */ _interopDefault(rehype2react);
|
|
53
53
|
const breaks__default = /* @__PURE__ */ _interopDefault(breaks);
|
|
54
54
|
const remarkParse__default = /* @__PURE__ */ _interopDefault(remarkParse);
|
|
55
55
|
const remark2rehype__default = /* @__PURE__ */ _interopDefault(remark2rehype);
|
|
56
|
-
const remarkStringify__default = /* @__PURE__ */ _interopDefault(remarkStringify);
|
|
57
56
|
const remarkUnlinkProtocols__default = /* @__PURE__ */ _interopDefault(remarkUnlinkProtocols);
|
|
58
57
|
const axios__default = /* @__PURE__ */ _interopDefault(axios);
|
|
59
58
|
const _sfc_main$2 = {
|
|
@@ -260,7 +259,14 @@ const convert = (
|
|
|
260
259
|
return castFactory(test);
|
|
261
260
|
}
|
|
262
261
|
if (typeof test === "object") {
|
|
263
|
-
return Array.isArray(test) ? anyFactory(test) :
|
|
262
|
+
return Array.isArray(test) ? anyFactory(test) : (
|
|
263
|
+
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
264
|
+
// narrows to `Array`.
|
|
265
|
+
propertiesFactory(
|
|
266
|
+
/** @type {Props} */
|
|
267
|
+
test
|
|
268
|
+
)
|
|
269
|
+
);
|
|
264
270
|
}
|
|
265
271
|
if (typeof test === "string") {
|
|
266
272
|
return typeFactory(test);
|
|
@@ -283,17 +289,17 @@ function anyFactory(tests) {
|
|
|
283
289
|
return false;
|
|
284
290
|
}
|
|
285
291
|
}
|
|
286
|
-
function
|
|
292
|
+
function propertiesFactory(check) {
|
|
287
293
|
const checkAsRecord = (
|
|
288
294
|
/** @type {Record<string, unknown>} */
|
|
289
295
|
check
|
|
290
296
|
);
|
|
291
|
-
return castFactory(
|
|
292
|
-
function
|
|
297
|
+
return castFactory(all);
|
|
298
|
+
function all(node) {
|
|
293
299
|
const nodeAsRecord = (
|
|
294
300
|
/** @type {Record<string, unknown>} */
|
|
295
301
|
/** @type {unknown} */
|
|
296
|
-
|
|
302
|
+
node
|
|
297
303
|
);
|
|
298
304
|
let key;
|
|
299
305
|
for (key in check) {
|
|
@@ -304,8 +310,8 @@ function propsFactory(check) {
|
|
|
304
310
|
}
|
|
305
311
|
function typeFactory(check) {
|
|
306
312
|
return castFactory(type);
|
|
307
|
-
function type(
|
|
308
|
-
return
|
|
313
|
+
function type(node) {
|
|
314
|
+
return node && node.type === check;
|
|
309
315
|
}
|
|
310
316
|
}
|
|
311
317
|
function castFactory(testFunction) {
|
|
@@ -327,90 +333,15 @@ function ok() {
|
|
|
327
333
|
function looksLikeANode(value) {
|
|
328
334
|
return value !== null && typeof value === "object" && "type" in value;
|
|
329
335
|
}
|
|
330
|
-
function color(d) {
|
|
331
|
-
return d;
|
|
332
|
-
}
|
|
333
|
-
const empty = [];
|
|
334
|
-
const CONTINUE = true;
|
|
335
|
-
const EXIT = false;
|
|
336
|
-
const SKIP = "skip";
|
|
337
|
-
function visitParents(tree, test, visitor, reverse) {
|
|
338
|
-
let check;
|
|
339
|
-
{
|
|
340
|
-
check = test;
|
|
341
|
-
}
|
|
342
|
-
const is = convert(check);
|
|
343
|
-
const step = 1;
|
|
344
|
-
factory(tree, void 0, [])();
|
|
345
|
-
function factory(node2, index, parents) {
|
|
346
|
-
const value = (
|
|
347
|
-
/** @type {Record<string, unknown>} */
|
|
348
|
-
node2 && typeof node2 === "object" ? node2 : {}
|
|
349
|
-
);
|
|
350
|
-
if (typeof value.type === "string") {
|
|
351
|
-
const name = (
|
|
352
|
-
// `hast`
|
|
353
|
-
typeof value.tagName === "string" ? value.tagName : (
|
|
354
|
-
// `xast`
|
|
355
|
-
typeof value.name === "string" ? value.name : void 0
|
|
356
|
-
)
|
|
357
|
-
);
|
|
358
|
-
Object.defineProperty(visit, "name", {
|
|
359
|
-
value: "node (" + color(node2.type + (name ? "<" + name + ">" : "")) + ")"
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
return visit;
|
|
363
|
-
function visit() {
|
|
364
|
-
let result = empty;
|
|
365
|
-
let subresult;
|
|
366
|
-
let offset;
|
|
367
|
-
let grandparents;
|
|
368
|
-
if (is(node2, index, parents[parents.length - 1] || void 0)) {
|
|
369
|
-
result = toResult(visitor(node2, parents));
|
|
370
|
-
if (result[0] === EXIT) {
|
|
371
|
-
return result;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
if ("children" in node2 && node2.children) {
|
|
375
|
-
const nodeAsParent = (
|
|
376
|
-
/** @type {UnistParent} */
|
|
377
|
-
node2
|
|
378
|
-
);
|
|
379
|
-
if (nodeAsParent.children && result[0] !== SKIP) {
|
|
380
|
-
offset = -1 + step;
|
|
381
|
-
grandparents = parents.concat(nodeAsParent);
|
|
382
|
-
while (offset > -1 && offset < nodeAsParent.children.length) {
|
|
383
|
-
const child = nodeAsParent.children[offset];
|
|
384
|
-
subresult = factory(child, offset, grandparents)();
|
|
385
|
-
if (subresult[0] === EXIT) {
|
|
386
|
-
return subresult;
|
|
387
|
-
}
|
|
388
|
-
offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
return result;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
function toResult(value) {
|
|
397
|
-
if (Array.isArray(value)) {
|
|
398
|
-
return value;
|
|
399
|
-
}
|
|
400
|
-
if (typeof value === "number") {
|
|
401
|
-
return [CONTINUE, value];
|
|
402
|
-
}
|
|
403
|
-
return value === null || value === void 0 ? empty : [value];
|
|
404
|
-
}
|
|
405
336
|
function findAndReplace(tree, list2, options) {
|
|
406
337
|
const settings = options || {};
|
|
407
338
|
const ignored = convert(settings.ignore || []);
|
|
408
339
|
const pairs = toPairs(list2);
|
|
409
340
|
let pairIndex = -1;
|
|
410
341
|
while (++pairIndex < pairs.length) {
|
|
411
|
-
visitParents(tree, "text", visitor);
|
|
342
|
+
unistUtilVisitParents.visitParents(tree, "text", visitor);
|
|
412
343
|
}
|
|
413
|
-
function visitor(
|
|
344
|
+
function visitor(node, parents) {
|
|
414
345
|
let index = -1;
|
|
415
346
|
let grandparent;
|
|
416
347
|
while (++index < parents.length) {
|
|
@@ -426,26 +357,26 @@ function findAndReplace(tree, list2, options) {
|
|
|
426
357
|
grandparent = parent;
|
|
427
358
|
}
|
|
428
359
|
if (grandparent) {
|
|
429
|
-
return handler(
|
|
360
|
+
return handler(node, parents);
|
|
430
361
|
}
|
|
431
362
|
}
|
|
432
|
-
function handler(
|
|
363
|
+
function handler(node, parents) {
|
|
433
364
|
const parent = parents[parents.length - 1];
|
|
434
365
|
const find = pairs[pairIndex][0];
|
|
435
366
|
const replace2 = pairs[pairIndex][1];
|
|
436
367
|
let start = 0;
|
|
437
368
|
const siblings = parent.children;
|
|
438
|
-
const index = siblings.indexOf(
|
|
369
|
+
const index = siblings.indexOf(node);
|
|
439
370
|
let change = false;
|
|
440
371
|
let nodes = [];
|
|
441
372
|
find.lastIndex = 0;
|
|
442
|
-
let match = find.exec(
|
|
373
|
+
let match = find.exec(node.value);
|
|
443
374
|
while (match) {
|
|
444
375
|
const position = match.index;
|
|
445
376
|
const matchObject = {
|
|
446
377
|
index: match.index,
|
|
447
378
|
input: match.input,
|
|
448
|
-
stack: [...parents,
|
|
379
|
+
stack: [...parents, node]
|
|
449
380
|
};
|
|
450
381
|
let value = replace2(...match, matchObject);
|
|
451
382
|
if (typeof value === "string") {
|
|
@@ -457,7 +388,7 @@ function findAndReplace(tree, list2, options) {
|
|
|
457
388
|
if (start !== position) {
|
|
458
389
|
nodes.push({
|
|
459
390
|
type: "text",
|
|
460
|
-
value:
|
|
391
|
+
value: node.value.slice(start, position)
|
|
461
392
|
});
|
|
462
393
|
}
|
|
463
394
|
if (Array.isArray(value)) {
|
|
@@ -471,15 +402,15 @@ function findAndReplace(tree, list2, options) {
|
|
|
471
402
|
if (!find.global) {
|
|
472
403
|
break;
|
|
473
404
|
}
|
|
474
|
-
match = find.exec(
|
|
405
|
+
match = find.exec(node.value);
|
|
475
406
|
}
|
|
476
407
|
if (change) {
|
|
477
|
-
if (start <
|
|
478
|
-
nodes.push({ type: "text", value:
|
|
408
|
+
if (start < node.value.length) {
|
|
409
|
+
nodes.push({ type: "text", value: node.value.slice(start) });
|
|
479
410
|
}
|
|
480
411
|
parent.children.splice(index, 1, ...nodes);
|
|
481
412
|
} else {
|
|
482
|
-
nodes = [
|
|
413
|
+
nodes = [node];
|
|
483
414
|
}
|
|
484
415
|
return index + nodes.length;
|
|
485
416
|
}
|
|
@@ -562,9 +493,9 @@ function exitLiteralAutolinkHttp(token) {
|
|
|
562
493
|
}
|
|
563
494
|
function exitLiteralAutolinkWww(token) {
|
|
564
495
|
this.config.exit.data.call(this, token);
|
|
565
|
-
const
|
|
566
|
-
ok$1(
|
|
567
|
-
|
|
496
|
+
const node = this.stack[this.stack.length - 1];
|
|
497
|
+
ok$1(node.type === "link");
|
|
498
|
+
node.url = "http://" + this.sliceSerialize(token);
|
|
568
499
|
}
|
|
569
500
|
function exitLiteralAutolinkEmail(token) {
|
|
570
501
|
this.config.exit.autolinkEmail.call(this, token);
|
|
@@ -690,10 +621,10 @@ function enterFootnoteDefinitionLabelString() {
|
|
|
690
621
|
}
|
|
691
622
|
function exitFootnoteDefinitionLabelString(token) {
|
|
692
623
|
const label = this.resume();
|
|
693
|
-
const
|
|
694
|
-
ok$1(
|
|
695
|
-
|
|
696
|
-
|
|
624
|
+
const node = this.stack[this.stack.length - 1];
|
|
625
|
+
ok$1(node.type === "footnoteDefinition");
|
|
626
|
+
node.label = label;
|
|
627
|
+
node.identifier = normalizeIdentifier(
|
|
697
628
|
this.sliceSerialize(token)
|
|
698
629
|
).toLowerCase();
|
|
699
630
|
}
|
|
@@ -708,23 +639,23 @@ function enterFootnoteCallString() {
|
|
|
708
639
|
}
|
|
709
640
|
function exitFootnoteCallString(token) {
|
|
710
641
|
const label = this.resume();
|
|
711
|
-
const
|
|
712
|
-
ok$1(
|
|
713
|
-
|
|
714
|
-
|
|
642
|
+
const node = this.stack[this.stack.length - 1];
|
|
643
|
+
ok$1(node.type === "footnoteReference");
|
|
644
|
+
node.label = label;
|
|
645
|
+
node.identifier = normalizeIdentifier(
|
|
715
646
|
this.sliceSerialize(token)
|
|
716
647
|
).toLowerCase();
|
|
717
648
|
}
|
|
718
649
|
function exitFootnoteCall(token) {
|
|
719
650
|
this.exit(token);
|
|
720
651
|
}
|
|
721
|
-
function footnoteReference(
|
|
652
|
+
function footnoteReference(node, _, state, info) {
|
|
722
653
|
const tracker = state.createTracker(info);
|
|
723
654
|
let value = tracker.move("[^");
|
|
724
655
|
const exit2 = state.enter("footnoteReference");
|
|
725
656
|
const subexit = state.enter("reference");
|
|
726
657
|
value += tracker.move(
|
|
727
|
-
state.safe(state.associationId(
|
|
658
|
+
state.safe(state.associationId(node), {
|
|
728
659
|
...tracker.current(),
|
|
729
660
|
before: value,
|
|
730
661
|
after: "]"
|
|
@@ -738,13 +669,13 @@ function footnoteReference(node2, _, state, info) {
|
|
|
738
669
|
function footnoteReferencePeek() {
|
|
739
670
|
return "[";
|
|
740
671
|
}
|
|
741
|
-
function footnoteDefinition(
|
|
672
|
+
function footnoteDefinition(node, _, state, info) {
|
|
742
673
|
const tracker = state.createTracker(info);
|
|
743
674
|
let value = tracker.move("[^");
|
|
744
675
|
const exit2 = state.enter("footnoteDefinition");
|
|
745
676
|
const subexit = state.enter("label");
|
|
746
677
|
value += tracker.move(
|
|
747
|
-
state.safe(state.associationId(
|
|
678
|
+
state.safe(state.associationId(node), {
|
|
748
679
|
...tracker.current(),
|
|
749
680
|
before: value,
|
|
750
681
|
after: "]"
|
|
@@ -752,11 +683,11 @@ function footnoteDefinition(node2, _, state, info) {
|
|
|
752
683
|
);
|
|
753
684
|
subexit();
|
|
754
685
|
value += tracker.move(
|
|
755
|
-
"]:" + (
|
|
686
|
+
"]:" + (node.children && node.children.length > 0 ? " " : "")
|
|
756
687
|
);
|
|
757
688
|
tracker.shift(4);
|
|
758
689
|
value += tracker.move(
|
|
759
|
-
state.indentLines(state.containerFlow(
|
|
690
|
+
state.indentLines(state.containerFlow(node, tracker.current()), map$2)
|
|
760
691
|
);
|
|
761
692
|
exit2();
|
|
762
693
|
return value;
|
|
@@ -801,11 +732,11 @@ function enterStrikethrough(token) {
|
|
|
801
732
|
function exitStrikethrough(token) {
|
|
802
733
|
this.exit(token);
|
|
803
734
|
}
|
|
804
|
-
function handleDelete(
|
|
735
|
+
function handleDelete(node, _, state, info) {
|
|
805
736
|
const tracker = state.createTracker(info);
|
|
806
737
|
const exit2 = state.enter("strikethrough");
|
|
807
738
|
let value = tracker.move("~~");
|
|
808
|
-
value += state.containerPhrasing(
|
|
739
|
+
value += state.containerPhrasing(node, {
|
|
809
740
|
...tracker.current(),
|
|
810
741
|
before: value,
|
|
811
742
|
after: "~"
|
|
@@ -955,13 +886,13 @@ function toAlignment(value) {
|
|
|
955
886
|
const code2 = typeof value === "string" ? value.codePointAt(0) : 0;
|
|
956
887
|
return code2 === 67 || code2 === 99 ? 99 : code2 === 76 || code2 === 108 ? 108 : code2 === 82 || code2 === 114 ? 114 : 0;
|
|
957
888
|
}
|
|
958
|
-
function blockquote(
|
|
889
|
+
function blockquote(node, _, state, info) {
|
|
959
890
|
const exit2 = state.enter("blockquote");
|
|
960
891
|
const tracker = state.createTracker(info);
|
|
961
892
|
tracker.move("> ");
|
|
962
893
|
tracker.shift(2);
|
|
963
894
|
const value = state.indentLines(
|
|
964
|
-
state.containerFlow(
|
|
895
|
+
state.containerFlow(node, tracker.current()),
|
|
965
896
|
map$1
|
|
966
897
|
);
|
|
967
898
|
exit2();
|
|
@@ -1019,12 +950,12 @@ function longestStreak(value, substring) {
|
|
|
1019
950
|
}
|
|
1020
951
|
return max;
|
|
1021
952
|
}
|
|
1022
|
-
function formatCodeAsIndented(
|
|
953
|
+
function formatCodeAsIndented(node, state) {
|
|
1023
954
|
return Boolean(
|
|
1024
|
-
state.options.fences === false &&
|
|
1025
|
-
!
|
|
1026
|
-
/[^ \r\n]/.test(
|
|
1027
|
-
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(
|
|
955
|
+
state.options.fences === false && node.value && // If there’s no info…
|
|
956
|
+
!node.lang && // And there’s a non-whitespace character…
|
|
957
|
+
/[^ \r\n]/.test(node.value) && // And the value doesn’t start or end in a blank…
|
|
958
|
+
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value)
|
|
1028
959
|
);
|
|
1029
960
|
}
|
|
1030
961
|
function checkFence(state) {
|
|
@@ -1036,11 +967,11 @@ function checkFence(state) {
|
|
|
1036
967
|
}
|
|
1037
968
|
return marker;
|
|
1038
969
|
}
|
|
1039
|
-
function code$1(
|
|
970
|
+
function code$1(node, _, state, info) {
|
|
1040
971
|
const marker = checkFence(state);
|
|
1041
|
-
const raw =
|
|
972
|
+
const raw = node.value || "";
|
|
1042
973
|
const suffix = marker === "`" ? "GraveAccent" : "Tilde";
|
|
1043
|
-
if (formatCodeAsIndented(
|
|
974
|
+
if (formatCodeAsIndented(node, state)) {
|
|
1044
975
|
const exit3 = state.enter("codeIndented");
|
|
1045
976
|
const value2 = state.indentLines(raw, map);
|
|
1046
977
|
exit3();
|
|
@@ -1050,10 +981,10 @@ function code$1(node2, _, state, info) {
|
|
|
1050
981
|
const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
|
|
1051
982
|
const exit2 = state.enter("codeFenced");
|
|
1052
983
|
let value = tracker.move(sequence);
|
|
1053
|
-
if (
|
|
984
|
+
if (node.lang) {
|
|
1054
985
|
const subexit = state.enter(`codeFencedLang${suffix}`);
|
|
1055
986
|
value += tracker.move(
|
|
1056
|
-
state.safe(
|
|
987
|
+
state.safe(node.lang, {
|
|
1057
988
|
before: value,
|
|
1058
989
|
after: " ",
|
|
1059
990
|
encode: ["`"],
|
|
@@ -1062,11 +993,11 @@ function code$1(node2, _, state, info) {
|
|
|
1062
993
|
);
|
|
1063
994
|
subexit();
|
|
1064
995
|
}
|
|
1065
|
-
if (
|
|
996
|
+
if (node.lang && node.meta) {
|
|
1066
997
|
const subexit = state.enter(`codeFencedMeta${suffix}`);
|
|
1067
998
|
value += tracker.move(" ");
|
|
1068
999
|
value += tracker.move(
|
|
1069
|
-
state.safe(
|
|
1000
|
+
state.safe(node.meta, {
|
|
1070
1001
|
before: value,
|
|
1071
1002
|
after: "\n",
|
|
1072
1003
|
encode: ["`"],
|
|
@@ -1095,7 +1026,7 @@ function checkQuote(state) {
|
|
|
1095
1026
|
}
|
|
1096
1027
|
return marker;
|
|
1097
1028
|
}
|
|
1098
|
-
function definition(
|
|
1029
|
+
function definition(node, _, state, info) {
|
|
1099
1030
|
const quote = checkQuote(state);
|
|
1100
1031
|
const suffix = quote === '"' ? "Quote" : "Apostrophe";
|
|
1101
1032
|
const exit2 = state.enter("definition");
|
|
@@ -1103,7 +1034,7 @@ function definition(node2, _, state, info) {
|
|
|
1103
1034
|
const tracker = state.createTracker(info);
|
|
1104
1035
|
let value = tracker.move("[");
|
|
1105
1036
|
value += tracker.move(
|
|
1106
|
-
state.safe(state.associationId(
|
|
1037
|
+
state.safe(state.associationId(node), {
|
|
1107
1038
|
before: value,
|
|
1108
1039
|
after: "]",
|
|
1109
1040
|
...tracker.current()
|
|
@@ -1113,31 +1044,31 @@ function definition(node2, _, state, info) {
|
|
|
1113
1044
|
subexit();
|
|
1114
1045
|
if (
|
|
1115
1046
|
// If there’s no url, or…
|
|
1116
|
-
!
|
|
1117
|
-
/[\0- \u007F]/.test(
|
|
1047
|
+
!node.url || // If there are control characters or whitespace.
|
|
1048
|
+
/[\0- \u007F]/.test(node.url)
|
|
1118
1049
|
) {
|
|
1119
1050
|
subexit = state.enter("destinationLiteral");
|
|
1120
1051
|
value += tracker.move("<");
|
|
1121
1052
|
value += tracker.move(
|
|
1122
|
-
state.safe(
|
|
1053
|
+
state.safe(node.url, { before: value, after: ">", ...tracker.current() })
|
|
1123
1054
|
);
|
|
1124
1055
|
value += tracker.move(">");
|
|
1125
1056
|
} else {
|
|
1126
1057
|
subexit = state.enter("destinationRaw");
|
|
1127
1058
|
value += tracker.move(
|
|
1128
|
-
state.safe(
|
|
1059
|
+
state.safe(node.url, {
|
|
1129
1060
|
before: value,
|
|
1130
|
-
after:
|
|
1061
|
+
after: node.title ? " " : "\n",
|
|
1131
1062
|
...tracker.current()
|
|
1132
1063
|
})
|
|
1133
1064
|
);
|
|
1134
1065
|
}
|
|
1135
1066
|
subexit();
|
|
1136
|
-
if (
|
|
1067
|
+
if (node.title) {
|
|
1137
1068
|
subexit = state.enter(`title${suffix}`);
|
|
1138
1069
|
value += tracker.move(" " + quote);
|
|
1139
1070
|
value += tracker.move(
|
|
1140
|
-
state.safe(
|
|
1071
|
+
state.safe(node.title, {
|
|
1141
1072
|
before: value,
|
|
1142
1073
|
after: quote,
|
|
1143
1074
|
...tracker.current()
|
|
@@ -1158,80 +1089,134 @@ function checkEmphasis(state) {
|
|
|
1158
1089
|
}
|
|
1159
1090
|
return marker;
|
|
1160
1091
|
}
|
|
1092
|
+
function encodeCharacterReference(code2) {
|
|
1093
|
+
return "&#x" + code2.toString(16).toUpperCase() + ";";
|
|
1094
|
+
}
|
|
1095
|
+
function classifyCharacter(code2) {
|
|
1096
|
+
if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
|
|
1097
|
+
return 1;
|
|
1098
|
+
}
|
|
1099
|
+
if (unicodePunctuation(code2)) {
|
|
1100
|
+
return 2;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
function encodeInfo(outside, inside, marker) {
|
|
1104
|
+
const outsideKind = classifyCharacter(outside);
|
|
1105
|
+
const insideKind = classifyCharacter(inside);
|
|
1106
|
+
if (outsideKind === void 0) {
|
|
1107
|
+
return insideKind === void 0 ? (
|
|
1108
|
+
// Letter inside:
|
|
1109
|
+
// we have to encode *both* letters for `_` as it is looser.
|
|
1110
|
+
// it already forms for `*` (and GFMs `~`).
|
|
1111
|
+
marker === "_" ? { inside: true, outside: true } : { inside: false, outside: false }
|
|
1112
|
+
) : insideKind === 1 ? (
|
|
1113
|
+
// Whitespace inside: encode both (letter, whitespace).
|
|
1114
|
+
{ inside: true, outside: true }
|
|
1115
|
+
) : (
|
|
1116
|
+
// Punctuation inside: encode outer (letter)
|
|
1117
|
+
{ inside: false, outside: true }
|
|
1118
|
+
);
|
|
1119
|
+
}
|
|
1120
|
+
if (outsideKind === 1) {
|
|
1121
|
+
return insideKind === void 0 ? (
|
|
1122
|
+
// Letter inside: already forms.
|
|
1123
|
+
{ inside: false, outside: false }
|
|
1124
|
+
) : insideKind === 1 ? (
|
|
1125
|
+
// Whitespace inside: encode both (whitespace).
|
|
1126
|
+
{ inside: true, outside: true }
|
|
1127
|
+
) : (
|
|
1128
|
+
// Punctuation inside: already forms.
|
|
1129
|
+
{ inside: false, outside: false }
|
|
1130
|
+
);
|
|
1131
|
+
}
|
|
1132
|
+
return insideKind === void 0 ? (
|
|
1133
|
+
// Letter inside: already forms.
|
|
1134
|
+
{ inside: false, outside: false }
|
|
1135
|
+
) : insideKind === 1 ? (
|
|
1136
|
+
// Whitespace inside: encode inner (whitespace).
|
|
1137
|
+
{ inside: true, outside: false }
|
|
1138
|
+
) : (
|
|
1139
|
+
// Punctuation inside: already forms.
|
|
1140
|
+
{ inside: false, outside: false }
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1161
1143
|
emphasis.peek = emphasisPeek;
|
|
1162
|
-
function emphasis(
|
|
1144
|
+
function emphasis(node, _, state, info) {
|
|
1163
1145
|
const marker = checkEmphasis(state);
|
|
1164
1146
|
const exit2 = state.enter("emphasis");
|
|
1165
1147
|
const tracker = state.createTracker(info);
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
state.containerPhrasing(
|
|
1169
|
-
before: value,
|
|
1148
|
+
const before = tracker.move(marker);
|
|
1149
|
+
let between = tracker.move(
|
|
1150
|
+
state.containerPhrasing(node, {
|
|
1170
1151
|
after: marker,
|
|
1152
|
+
before,
|
|
1171
1153
|
...tracker.current()
|
|
1172
1154
|
})
|
|
1173
1155
|
);
|
|
1174
|
-
|
|
1156
|
+
const betweenHead = between.charCodeAt(0);
|
|
1157
|
+
const open = encodeInfo(
|
|
1158
|
+
info.before.charCodeAt(info.before.length - 1),
|
|
1159
|
+
betweenHead,
|
|
1160
|
+
marker
|
|
1161
|
+
);
|
|
1162
|
+
if (open.inside) {
|
|
1163
|
+
between = encodeCharacterReference(betweenHead) + between.slice(1);
|
|
1164
|
+
}
|
|
1165
|
+
const betweenTail = between.charCodeAt(between.length - 1);
|
|
1166
|
+
const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
|
|
1167
|
+
if (close.inside) {
|
|
1168
|
+
between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
|
|
1169
|
+
}
|
|
1170
|
+
const after = tracker.move(marker);
|
|
1175
1171
|
exit2();
|
|
1176
|
-
|
|
1172
|
+
state.attentionEncodeSurroundingInfo = {
|
|
1173
|
+
after: close.outside,
|
|
1174
|
+
before: open.outside
|
|
1175
|
+
};
|
|
1176
|
+
return before + between + after;
|
|
1177
1177
|
}
|
|
1178
1178
|
function emphasisPeek(_, _1, state) {
|
|
1179
1179
|
return state.options.emphasis || "*";
|
|
1180
1180
|
}
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
if (includeImageAlt && "alt" in value && value.alt) {
|
|
1194
|
-
return value.alt;
|
|
1195
|
-
}
|
|
1196
|
-
if ("children" in value) {
|
|
1197
|
-
return all(value.children, includeImageAlt, includeHtml);
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
if (Array.isArray(value)) {
|
|
1201
|
-
return all(value, includeImageAlt, includeHtml);
|
|
1181
|
+
function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
|
|
1182
|
+
let reverse;
|
|
1183
|
+
let test;
|
|
1184
|
+
let visitor;
|
|
1185
|
+
if (typeof testOrVisitor === "function" && typeof visitorOrReverse !== "function") {
|
|
1186
|
+
test = void 0;
|
|
1187
|
+
visitor = testOrVisitor;
|
|
1188
|
+
reverse = visitorOrReverse;
|
|
1189
|
+
} else {
|
|
1190
|
+
test = testOrVisitor;
|
|
1191
|
+
visitor = visitorOrReverse;
|
|
1192
|
+
reverse = maybeReverse;
|
|
1202
1193
|
}
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
while (++index < values.length) {
|
|
1209
|
-
result[index] = one(values[index], includeImageAlt, includeHtml);
|
|
1194
|
+
unistUtilVisitParents.visitParents(tree, test, overload, reverse);
|
|
1195
|
+
function overload(node, parents) {
|
|
1196
|
+
const parent = parents[parents.length - 1];
|
|
1197
|
+
const index = parent ? parent.children.indexOf(node) : void 0;
|
|
1198
|
+
return visitor(node, index, parent);
|
|
1210
1199
|
}
|
|
1211
|
-
return result.join("");
|
|
1212
|
-
}
|
|
1213
|
-
function node(value) {
|
|
1214
|
-
return Boolean(value && typeof value === "object");
|
|
1215
1200
|
}
|
|
1216
|
-
function formatHeadingAsSetext(
|
|
1201
|
+
function formatHeadingAsSetext(node, state) {
|
|
1217
1202
|
let literalWithBreak = false;
|
|
1218
|
-
|
|
1219
|
-
if ("value" in
|
|
1203
|
+
visit(node, function(node2) {
|
|
1204
|
+
if ("value" in node2 && /\r?\n|\r/.test(node2.value) || node2.type === "break") {
|
|
1220
1205
|
literalWithBreak = true;
|
|
1221
|
-
return
|
|
1206
|
+
return unistUtilVisitParents.EXIT;
|
|
1222
1207
|
}
|
|
1223
1208
|
});
|
|
1224
1209
|
return Boolean(
|
|
1225
|
-
(!
|
|
1210
|
+
(!node.depth || node.depth < 3) && mdastUtilToString.toString(node) && (state.options.setext || literalWithBreak)
|
|
1226
1211
|
);
|
|
1227
1212
|
}
|
|
1228
|
-
function heading(
|
|
1229
|
-
const rank = Math.max(Math.min(6,
|
|
1213
|
+
function heading(node, _, state, info) {
|
|
1214
|
+
const rank = Math.max(Math.min(6, node.depth || 1), 1);
|
|
1230
1215
|
const tracker = state.createTracker(info);
|
|
1231
|
-
if (formatHeadingAsSetext(
|
|
1216
|
+
if (formatHeadingAsSetext(node, state)) {
|
|
1232
1217
|
const exit3 = state.enter("headingSetext");
|
|
1233
1218
|
const subexit2 = state.enter("phrasing");
|
|
1234
|
-
const value2 = state.containerPhrasing(
|
|
1219
|
+
const value2 = state.containerPhrasing(node, {
|
|
1235
1220
|
...tracker.current(),
|
|
1236
1221
|
before: "\n",
|
|
1237
1222
|
after: "\n"
|
|
@@ -1249,13 +1234,13 @@ function heading(node2, _, state, info) {
|
|
|
1249
1234
|
const exit2 = state.enter("headingAtx");
|
|
1250
1235
|
const subexit = state.enter("phrasing");
|
|
1251
1236
|
tracker.move(sequence + " ");
|
|
1252
|
-
let value = state.containerPhrasing(
|
|
1237
|
+
let value = state.containerPhrasing(node, {
|
|
1253
1238
|
before: "# ",
|
|
1254
1239
|
after: "\n",
|
|
1255
1240
|
...tracker.current()
|
|
1256
1241
|
});
|
|
1257
1242
|
if (/^[\t ]/.test(value)) {
|
|
1258
|
-
value =
|
|
1243
|
+
value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1);
|
|
1259
1244
|
}
|
|
1260
1245
|
value = value ? sequence + " " + value : sequence;
|
|
1261
1246
|
if (state.options.closeAtx) {
|
|
@@ -1266,14 +1251,14 @@ function heading(node2, _, state, info) {
|
|
|
1266
1251
|
return value;
|
|
1267
1252
|
}
|
|
1268
1253
|
html.peek = htmlPeek;
|
|
1269
|
-
function html(
|
|
1270
|
-
return
|
|
1254
|
+
function html(node) {
|
|
1255
|
+
return node.value || "";
|
|
1271
1256
|
}
|
|
1272
1257
|
function htmlPeek() {
|
|
1273
1258
|
return "<";
|
|
1274
1259
|
}
|
|
1275
1260
|
image.peek = imagePeek;
|
|
1276
|
-
function image(
|
|
1261
|
+
function image(node, _, state, info) {
|
|
1277
1262
|
const quote = checkQuote(state);
|
|
1278
1263
|
const suffix = quote === '"' ? "Quote" : "Apostrophe";
|
|
1279
1264
|
const exit2 = state.enter("image");
|
|
@@ -1281,37 +1266,37 @@ function image(node2, _, state, info) {
|
|
|
1281
1266
|
const tracker = state.createTracker(info);
|
|
1282
1267
|
let value = tracker.move("![");
|
|
1283
1268
|
value += tracker.move(
|
|
1284
|
-
state.safe(
|
|
1269
|
+
state.safe(node.alt, { before: value, after: "]", ...tracker.current() })
|
|
1285
1270
|
);
|
|
1286
1271
|
value += tracker.move("](");
|
|
1287
1272
|
subexit();
|
|
1288
1273
|
if (
|
|
1289
1274
|
// If there’s no url but there is a title…
|
|
1290
|
-
!
|
|
1291
|
-
/[\0- \u007F]/.test(
|
|
1275
|
+
!node.url && node.title || // If there are control characters or whitespace.
|
|
1276
|
+
/[\0- \u007F]/.test(node.url)
|
|
1292
1277
|
) {
|
|
1293
1278
|
subexit = state.enter("destinationLiteral");
|
|
1294
1279
|
value += tracker.move("<");
|
|
1295
1280
|
value += tracker.move(
|
|
1296
|
-
state.safe(
|
|
1281
|
+
state.safe(node.url, { before: value, after: ">", ...tracker.current() })
|
|
1297
1282
|
);
|
|
1298
1283
|
value += tracker.move(">");
|
|
1299
1284
|
} else {
|
|
1300
1285
|
subexit = state.enter("destinationRaw");
|
|
1301
1286
|
value += tracker.move(
|
|
1302
|
-
state.safe(
|
|
1287
|
+
state.safe(node.url, {
|
|
1303
1288
|
before: value,
|
|
1304
|
-
after:
|
|
1289
|
+
after: node.title ? " " : ")",
|
|
1305
1290
|
...tracker.current()
|
|
1306
1291
|
})
|
|
1307
1292
|
);
|
|
1308
1293
|
}
|
|
1309
1294
|
subexit();
|
|
1310
|
-
if (
|
|
1295
|
+
if (node.title) {
|
|
1311
1296
|
subexit = state.enter(`title${suffix}`);
|
|
1312
1297
|
value += tracker.move(" " + quote);
|
|
1313
1298
|
value += tracker.move(
|
|
1314
|
-
state.safe(
|
|
1299
|
+
state.safe(node.title, {
|
|
1315
1300
|
before: value,
|
|
1316
1301
|
after: quote,
|
|
1317
1302
|
...tracker.current()
|
|
@@ -1328,13 +1313,13 @@ function imagePeek() {
|
|
|
1328
1313
|
return "!";
|
|
1329
1314
|
}
|
|
1330
1315
|
imageReference.peek = imageReferencePeek;
|
|
1331
|
-
function imageReference(
|
|
1332
|
-
const type =
|
|
1316
|
+
function imageReference(node, _, state, info) {
|
|
1317
|
+
const type = node.referenceType;
|
|
1333
1318
|
const exit2 = state.enter("imageReference");
|
|
1334
1319
|
let subexit = state.enter("label");
|
|
1335
1320
|
const tracker = state.createTracker(info);
|
|
1336
1321
|
let value = tracker.move("![");
|
|
1337
|
-
const alt = state.safe(
|
|
1322
|
+
const alt = state.safe(node.alt, {
|
|
1338
1323
|
before: value,
|
|
1339
1324
|
after: "]",
|
|
1340
1325
|
...tracker.current()
|
|
@@ -1344,7 +1329,7 @@ function imageReference(node2, _, state, info) {
|
|
|
1344
1329
|
const stack = state.stack;
|
|
1345
1330
|
state.stack = [];
|
|
1346
1331
|
subexit = state.enter("reference");
|
|
1347
|
-
const reference = state.safe(state.associationId(
|
|
1332
|
+
const reference = state.safe(state.associationId(node), {
|
|
1348
1333
|
before: value,
|
|
1349
1334
|
after: "]",
|
|
1350
1335
|
...tracker.current()
|
|
@@ -1365,8 +1350,8 @@ function imageReferencePeek() {
|
|
|
1365
1350
|
return "!";
|
|
1366
1351
|
}
|
|
1367
1352
|
inlineCode.peek = inlineCodePeek;
|
|
1368
|
-
function inlineCode(
|
|
1369
|
-
let value =
|
|
1353
|
+
function inlineCode(node, _, state) {
|
|
1354
|
+
let value = node.value || "";
|
|
1370
1355
|
let sequence = "`";
|
|
1371
1356
|
let index = -1;
|
|
1372
1357
|
while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
|
|
@@ -1393,33 +1378,33 @@ function inlineCode(node2, _, state) {
|
|
|
1393
1378
|
function inlineCodePeek() {
|
|
1394
1379
|
return "`";
|
|
1395
1380
|
}
|
|
1396
|
-
function formatLinkAsAutolink(
|
|
1397
|
-
const raw = toString(
|
|
1381
|
+
function formatLinkAsAutolink(node, state) {
|
|
1382
|
+
const raw = mdastUtilToString.toString(node);
|
|
1398
1383
|
return Boolean(
|
|
1399
1384
|
!state.options.resourceLink && // If there’s a url…
|
|
1400
|
-
|
|
1401
|
-
!
|
|
1402
|
-
|
|
1403
|
-
(raw ===
|
|
1404
|
-
/^[a-z][a-z+.-]+:/i.test(
|
|
1385
|
+
node.url && // And there’s a no title…
|
|
1386
|
+
!node.title && // And the content of `node` is a single text node…
|
|
1387
|
+
node.children && node.children.length === 1 && node.children[0].type === "text" && // And if the url is the same as the content…
|
|
1388
|
+
(raw === node.url || "mailto:" + raw === node.url) && // And that starts w/ a protocol…
|
|
1389
|
+
/^[a-z][a-z+.-]+:/i.test(node.url) && // And that doesn’t contain ASCII control codes (character escapes and
|
|
1405
1390
|
// references don’t work), space, or angle brackets…
|
|
1406
|
-
!/[\0- <>\u007F]/.test(
|
|
1391
|
+
!/[\0- <>\u007F]/.test(node.url)
|
|
1407
1392
|
);
|
|
1408
1393
|
}
|
|
1409
1394
|
link.peek = linkPeek;
|
|
1410
|
-
function link(
|
|
1395
|
+
function link(node, _, state, info) {
|
|
1411
1396
|
const quote = checkQuote(state);
|
|
1412
1397
|
const suffix = quote === '"' ? "Quote" : "Apostrophe";
|
|
1413
1398
|
const tracker = state.createTracker(info);
|
|
1414
1399
|
let exit2;
|
|
1415
1400
|
let subexit;
|
|
1416
|
-
if (formatLinkAsAutolink(
|
|
1401
|
+
if (formatLinkAsAutolink(node, state)) {
|
|
1417
1402
|
const stack = state.stack;
|
|
1418
1403
|
state.stack = [];
|
|
1419
1404
|
exit2 = state.enter("autolink");
|
|
1420
1405
|
let value2 = tracker.move("<");
|
|
1421
1406
|
value2 += tracker.move(
|
|
1422
|
-
state.containerPhrasing(
|
|
1407
|
+
state.containerPhrasing(node, {
|
|
1423
1408
|
before: value2,
|
|
1424
1409
|
after: ">",
|
|
1425
1410
|
...tracker.current()
|
|
@@ -1434,7 +1419,7 @@ function link(node2, _, state, info) {
|
|
|
1434
1419
|
subexit = state.enter("label");
|
|
1435
1420
|
let value = tracker.move("[");
|
|
1436
1421
|
value += tracker.move(
|
|
1437
|
-
state.containerPhrasing(
|
|
1422
|
+
state.containerPhrasing(node, {
|
|
1438
1423
|
before: value,
|
|
1439
1424
|
after: "](",
|
|
1440
1425
|
...tracker.current()
|
|
@@ -1444,31 +1429,31 @@ function link(node2, _, state, info) {
|
|
|
1444
1429
|
subexit();
|
|
1445
1430
|
if (
|
|
1446
1431
|
// If there’s no url but there is a title…
|
|
1447
|
-
!
|
|
1448
|
-
/[\0- \u007F]/.test(
|
|
1432
|
+
!node.url && node.title || // If there are control characters or whitespace.
|
|
1433
|
+
/[\0- \u007F]/.test(node.url)
|
|
1449
1434
|
) {
|
|
1450
1435
|
subexit = state.enter("destinationLiteral");
|
|
1451
1436
|
value += tracker.move("<");
|
|
1452
1437
|
value += tracker.move(
|
|
1453
|
-
state.safe(
|
|
1438
|
+
state.safe(node.url, { before: value, after: ">", ...tracker.current() })
|
|
1454
1439
|
);
|
|
1455
1440
|
value += tracker.move(">");
|
|
1456
1441
|
} else {
|
|
1457
1442
|
subexit = state.enter("destinationRaw");
|
|
1458
1443
|
value += tracker.move(
|
|
1459
|
-
state.safe(
|
|
1444
|
+
state.safe(node.url, {
|
|
1460
1445
|
before: value,
|
|
1461
|
-
after:
|
|
1446
|
+
after: node.title ? " " : ")",
|
|
1462
1447
|
...tracker.current()
|
|
1463
1448
|
})
|
|
1464
1449
|
);
|
|
1465
1450
|
}
|
|
1466
1451
|
subexit();
|
|
1467
|
-
if (
|
|
1452
|
+
if (node.title) {
|
|
1468
1453
|
subexit = state.enter(`title${suffix}`);
|
|
1469
1454
|
value += tracker.move(" " + quote);
|
|
1470
1455
|
value += tracker.move(
|
|
1471
|
-
state.safe(
|
|
1456
|
+
state.safe(node.title, {
|
|
1472
1457
|
before: value,
|
|
1473
1458
|
after: quote,
|
|
1474
1459
|
...tracker.current()
|
|
@@ -1481,17 +1466,17 @@ function link(node2, _, state, info) {
|
|
|
1481
1466
|
exit2();
|
|
1482
1467
|
return value;
|
|
1483
1468
|
}
|
|
1484
|
-
function linkPeek(
|
|
1485
|
-
return formatLinkAsAutolink(
|
|
1469
|
+
function linkPeek(node, _, state) {
|
|
1470
|
+
return formatLinkAsAutolink(node, state) ? "<" : "[";
|
|
1486
1471
|
}
|
|
1487
1472
|
linkReference.peek = linkReferencePeek;
|
|
1488
|
-
function linkReference(
|
|
1489
|
-
const type =
|
|
1473
|
+
function linkReference(node, _, state, info) {
|
|
1474
|
+
const type = node.referenceType;
|
|
1490
1475
|
const exit2 = state.enter("linkReference");
|
|
1491
1476
|
let subexit = state.enter("label");
|
|
1492
1477
|
const tracker = state.createTracker(info);
|
|
1493
1478
|
let value = tracker.move("[");
|
|
1494
|
-
const text2 = state.containerPhrasing(
|
|
1479
|
+
const text2 = state.containerPhrasing(node, {
|
|
1495
1480
|
before: value,
|
|
1496
1481
|
after: "]",
|
|
1497
1482
|
...tracker.current()
|
|
@@ -1501,7 +1486,7 @@ function linkReference(node2, _, state, info) {
|
|
|
1501
1486
|
const stack = state.stack;
|
|
1502
1487
|
state.stack = [];
|
|
1503
1488
|
subexit = state.enter("reference");
|
|
1504
|
-
const reference = state.safe(state.associationId(
|
|
1489
|
+
const reference = state.safe(state.associationId(node), {
|
|
1505
1490
|
before: value,
|
|
1506
1491
|
after: "]",
|
|
1507
1492
|
...tracker.current()
|
|
@@ -1566,14 +1551,14 @@ function checkRule(state) {
|
|
|
1566
1551
|
}
|
|
1567
1552
|
return marker;
|
|
1568
1553
|
}
|
|
1569
|
-
function list(
|
|
1554
|
+
function list(node, parent, state, info) {
|
|
1570
1555
|
const exit2 = state.enter("list");
|
|
1571
1556
|
const bulletCurrent = state.bulletCurrent;
|
|
1572
|
-
let bullet =
|
|
1573
|
-
const bulletOther =
|
|
1557
|
+
let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
|
|
1558
|
+
const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
|
|
1574
1559
|
let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
|
|
1575
|
-
if (!
|
|
1576
|
-
const firstListItem =
|
|
1560
|
+
if (!node.ordered) {
|
|
1561
|
+
const firstListItem = node.children ? node.children[0] : void 0;
|
|
1577
1562
|
if (
|
|
1578
1563
|
// Bullet could be used as a thematic break marker:
|
|
1579
1564
|
(bullet === "*" || bullet === "-") && // Empty first list item:
|
|
@@ -1585,8 +1570,8 @@ function list(node2, parent, state, info) {
|
|
|
1585
1570
|
}
|
|
1586
1571
|
if (checkRule(state) === bullet && firstListItem) {
|
|
1587
1572
|
let index = -1;
|
|
1588
|
-
while (++index <
|
|
1589
|
-
const item =
|
|
1573
|
+
while (++index < node.children.length) {
|
|
1574
|
+
const item = node.children[index];
|
|
1590
1575
|
if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
|
|
1591
1576
|
useDifferentMarker = true;
|
|
1592
1577
|
break;
|
|
@@ -1598,7 +1583,7 @@ function list(node2, parent, state, info) {
|
|
|
1598
1583
|
bullet = bulletOther;
|
|
1599
1584
|
}
|
|
1600
1585
|
state.bulletCurrent = bullet;
|
|
1601
|
-
const value = state.containerFlow(
|
|
1586
|
+
const value = state.containerFlow(node, info);
|
|
1602
1587
|
state.bulletLastUsed = bullet;
|
|
1603
1588
|
state.bulletCurrent = bulletCurrent;
|
|
1604
1589
|
exit2();
|
|
@@ -1613,14 +1598,14 @@ function checkListItemIndent(state) {
|
|
|
1613
1598
|
}
|
|
1614
1599
|
return style;
|
|
1615
1600
|
}
|
|
1616
|
-
function listItem(
|
|
1601
|
+
function listItem(node, parent, state, info) {
|
|
1617
1602
|
const listItemIndent = checkListItemIndent(state);
|
|
1618
1603
|
let bullet = state.bulletCurrent || checkBullet(state);
|
|
1619
1604
|
if (parent && parent.type === "list" && parent.ordered) {
|
|
1620
|
-
bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(
|
|
1605
|
+
bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
|
|
1621
1606
|
}
|
|
1622
1607
|
let size = bullet.length + 1;
|
|
1623
|
-
if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread ||
|
|
1608
|
+
if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) {
|
|
1624
1609
|
size = Math.ceil(size / 4) * 4;
|
|
1625
1610
|
}
|
|
1626
1611
|
const tracker = state.createTracker(info);
|
|
@@ -1628,7 +1613,7 @@ function listItem(node2, parent, state, info) {
|
|
|
1628
1613
|
tracker.shift(size);
|
|
1629
1614
|
const exit2 = state.enter("listItem");
|
|
1630
1615
|
const value = state.indentLines(
|
|
1631
|
-
state.containerFlow(
|
|
1616
|
+
state.containerFlow(node, tracker.current()),
|
|
1632
1617
|
map2
|
|
1633
1618
|
);
|
|
1634
1619
|
exit2();
|
|
@@ -1640,10 +1625,10 @@ function listItem(node2, parent, state, info) {
|
|
|
1640
1625
|
return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
|
|
1641
1626
|
}
|
|
1642
1627
|
}
|
|
1643
|
-
function paragraph(
|
|
1628
|
+
function paragraph(node, _, state, info) {
|
|
1644
1629
|
const exit2 = state.enter("paragraph");
|
|
1645
1630
|
const subexit = state.enter("phrasing");
|
|
1646
|
-
const value = state.containerPhrasing(
|
|
1631
|
+
const value = state.containerPhrasing(node, info);
|
|
1647
1632
|
subexit();
|
|
1648
1633
|
exit2();
|
|
1649
1634
|
return value;
|
|
@@ -1674,12 +1659,12 @@ const phrasing = (
|
|
|
1674
1659
|
"textDirective"
|
|
1675
1660
|
])
|
|
1676
1661
|
);
|
|
1677
|
-
function root(
|
|
1678
|
-
const hasPhrasing =
|
|
1662
|
+
function root(node, _, state, info) {
|
|
1663
|
+
const hasPhrasing = node.children.some(function(d) {
|
|
1679
1664
|
return phrasing(d);
|
|
1680
1665
|
});
|
|
1681
|
-
const
|
|
1682
|
-
return
|
|
1666
|
+
const container = hasPhrasing ? state.containerPhrasing : state.containerFlow;
|
|
1667
|
+
return container.call(state, node, info);
|
|
1683
1668
|
}
|
|
1684
1669
|
function checkStrong(state) {
|
|
1685
1670
|
const marker = state.options.strong || "*";
|
|
@@ -1691,27 +1676,45 @@ function checkStrong(state) {
|
|
|
1691
1676
|
return marker;
|
|
1692
1677
|
}
|
|
1693
1678
|
strong.peek = strongPeek;
|
|
1694
|
-
function strong(
|
|
1679
|
+
function strong(node, _, state, info) {
|
|
1695
1680
|
const marker = checkStrong(state);
|
|
1696
1681
|
const exit2 = state.enter("strong");
|
|
1697
1682
|
const tracker = state.createTracker(info);
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
state.containerPhrasing(
|
|
1701
|
-
before: value,
|
|
1683
|
+
const before = tracker.move(marker + marker);
|
|
1684
|
+
let between = tracker.move(
|
|
1685
|
+
state.containerPhrasing(node, {
|
|
1702
1686
|
after: marker,
|
|
1687
|
+
before,
|
|
1703
1688
|
...tracker.current()
|
|
1704
1689
|
})
|
|
1705
1690
|
);
|
|
1706
|
-
|
|
1691
|
+
const betweenHead = between.charCodeAt(0);
|
|
1692
|
+
const open = encodeInfo(
|
|
1693
|
+
info.before.charCodeAt(info.before.length - 1),
|
|
1694
|
+
betweenHead,
|
|
1695
|
+
marker
|
|
1696
|
+
);
|
|
1697
|
+
if (open.inside) {
|
|
1698
|
+
between = encodeCharacterReference(betweenHead) + between.slice(1);
|
|
1699
|
+
}
|
|
1700
|
+
const betweenTail = between.charCodeAt(between.length - 1);
|
|
1701
|
+
const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
|
|
1702
|
+
if (close.inside) {
|
|
1703
|
+
between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
|
|
1704
|
+
}
|
|
1705
|
+
const after = tracker.move(marker + marker);
|
|
1707
1706
|
exit2();
|
|
1708
|
-
|
|
1707
|
+
state.attentionEncodeSurroundingInfo = {
|
|
1708
|
+
after: close.outside,
|
|
1709
|
+
before: open.outside
|
|
1710
|
+
};
|
|
1711
|
+
return before + between + after;
|
|
1709
1712
|
}
|
|
1710
1713
|
function strongPeek(_, _1, state) {
|
|
1711
1714
|
return state.options.strong || "*";
|
|
1712
1715
|
}
|
|
1713
|
-
function text$1(
|
|
1714
|
-
return state.safe(
|
|
1716
|
+
function text$1(node, _, state, info) {
|
|
1717
|
+
return state.safe(node.value, info);
|
|
1715
1718
|
}
|
|
1716
1719
|
function checkRuleRepetition(state) {
|
|
1717
1720
|
const repetition = state.options.ruleRepetition || 3;
|
|
@@ -1797,9 +1800,9 @@ function exitCodeText(token) {
|
|
|
1797
1800
|
if (this.data.inTable) {
|
|
1798
1801
|
value = value.replace(/\\([\\|])/g, replace);
|
|
1799
1802
|
}
|
|
1800
|
-
const
|
|
1801
|
-
ok$1(
|
|
1802
|
-
|
|
1803
|
+
const node = this.stack[this.stack.length - 1];
|
|
1804
|
+
ok$1(node.type === "inlineCode");
|
|
1805
|
+
node.value = value;
|
|
1803
1806
|
this.exit(token);
|
|
1804
1807
|
}
|
|
1805
1808
|
function replace($0, $1) {
|
|
@@ -1837,18 +1840,18 @@ function gfmTableToMarkdown(options) {
|
|
|
1837
1840
|
tableRow: handleTableRow
|
|
1838
1841
|
}
|
|
1839
1842
|
};
|
|
1840
|
-
function handleTable(
|
|
1841
|
-
return serializeData(handleTableAsData(
|
|
1843
|
+
function handleTable(node, _, state, info) {
|
|
1844
|
+
return serializeData(handleTableAsData(node, state, info), node.align);
|
|
1842
1845
|
}
|
|
1843
|
-
function handleTableRow(
|
|
1844
|
-
const row = handleTableRowAsData(
|
|
1846
|
+
function handleTableRow(node, _, state, info) {
|
|
1847
|
+
const row = handleTableRowAsData(node, state, info);
|
|
1845
1848
|
const value = serializeData([row]);
|
|
1846
1849
|
return value.slice(0, value.indexOf("\n"));
|
|
1847
1850
|
}
|
|
1848
|
-
function handleTableCell(
|
|
1851
|
+
function handleTableCell(node, _, state, info) {
|
|
1849
1852
|
const exit2 = state.enter("tableCell");
|
|
1850
1853
|
const subexit = state.enter("phrasing");
|
|
1851
|
-
const value = state.containerPhrasing(
|
|
1854
|
+
const value = state.containerPhrasing(node, {
|
|
1852
1855
|
...info,
|
|
1853
1856
|
before: around,
|
|
1854
1857
|
after: around
|
|
@@ -1868,8 +1871,8 @@ function gfmTableToMarkdown(options) {
|
|
|
1868
1871
|
stringLength
|
|
1869
1872
|
});
|
|
1870
1873
|
}
|
|
1871
|
-
function handleTableAsData(
|
|
1872
|
-
const children =
|
|
1874
|
+
function handleTableAsData(node, state, info) {
|
|
1875
|
+
const children = node.children;
|
|
1873
1876
|
let index = -1;
|
|
1874
1877
|
const result = [];
|
|
1875
1878
|
const subexit = state.enter("table");
|
|
@@ -1879,19 +1882,19 @@ function gfmTableToMarkdown(options) {
|
|
|
1879
1882
|
subexit();
|
|
1880
1883
|
return result;
|
|
1881
1884
|
}
|
|
1882
|
-
function handleTableRowAsData(
|
|
1883
|
-
const children =
|
|
1885
|
+
function handleTableRowAsData(node, state, info) {
|
|
1886
|
+
const children = node.children;
|
|
1884
1887
|
let index = -1;
|
|
1885
1888
|
const result = [];
|
|
1886
1889
|
const subexit = state.enter("tableRow");
|
|
1887
1890
|
while (++index < children.length) {
|
|
1888
|
-
result[index] = handleTableCell(children[index],
|
|
1891
|
+
result[index] = handleTableCell(children[index], node, state, info);
|
|
1889
1892
|
}
|
|
1890
1893
|
subexit();
|
|
1891
1894
|
return result;
|
|
1892
1895
|
}
|
|
1893
|
-
function inlineCodeWithTable(
|
|
1894
|
-
let value = handle.inlineCode(
|
|
1896
|
+
function inlineCodeWithTable(node, parent, state) {
|
|
1897
|
+
let value = handle.inlineCode(node, parent, state);
|
|
1895
1898
|
if (state.stack.includes("tableCell")) {
|
|
1896
1899
|
value = value.replace(/\|/g, "\\$&");
|
|
1897
1900
|
}
|
|
@@ -1914,16 +1917,16 @@ function gfmTaskListItemToMarkdown() {
|
|
|
1914
1917
|
};
|
|
1915
1918
|
}
|
|
1916
1919
|
function exitCheck(token) {
|
|
1917
|
-
const
|
|
1918
|
-
ok$1(
|
|
1919
|
-
|
|
1920
|
+
const node = this.stack[this.stack.length - 2];
|
|
1921
|
+
ok$1(node.type === "listItem");
|
|
1922
|
+
node.checked = token.type === "taskListCheckValueChecked";
|
|
1920
1923
|
}
|
|
1921
1924
|
function exitParagraphWithTaskListItem(token) {
|
|
1922
1925
|
const parent = this.stack[this.stack.length - 2];
|
|
1923
1926
|
if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
|
|
1924
|
-
const
|
|
1925
|
-
ok$1(
|
|
1926
|
-
const head =
|
|
1927
|
+
const node = this.stack[this.stack.length - 1];
|
|
1928
|
+
ok$1(node.type === "paragraph");
|
|
1929
|
+
const head = node.children[0];
|
|
1927
1930
|
if (head && head.type === "text") {
|
|
1928
1931
|
const siblings = parent.children;
|
|
1929
1932
|
let index = -1;
|
|
@@ -1935,29 +1938,29 @@ function exitParagraphWithTaskListItem(token) {
|
|
|
1935
1938
|
break;
|
|
1936
1939
|
}
|
|
1937
1940
|
}
|
|
1938
|
-
if (firstParaghraph ===
|
|
1941
|
+
if (firstParaghraph === node) {
|
|
1939
1942
|
head.value = head.value.slice(1);
|
|
1940
1943
|
if (head.value.length === 0) {
|
|
1941
|
-
|
|
1942
|
-
} else if (
|
|
1944
|
+
node.children.shift();
|
|
1945
|
+
} else if (node.position && head.position && typeof head.position.start.offset === "number") {
|
|
1943
1946
|
head.position.start.column++;
|
|
1944
1947
|
head.position.start.offset++;
|
|
1945
|
-
|
|
1948
|
+
node.position.start = Object.assign({}, head.position.start);
|
|
1946
1949
|
}
|
|
1947
1950
|
}
|
|
1948
1951
|
}
|
|
1949
1952
|
}
|
|
1950
1953
|
this.exit(token);
|
|
1951
1954
|
}
|
|
1952
|
-
function listItemWithTaskListItem(
|
|
1953
|
-
const head =
|
|
1954
|
-
const checkable = typeof
|
|
1955
|
-
const checkbox = "[" + (
|
|
1955
|
+
function listItemWithTaskListItem(node, parent, state, info) {
|
|
1956
|
+
const head = node.children[0];
|
|
1957
|
+
const checkable = typeof node.checked === "boolean" && head && head.type === "paragraph";
|
|
1958
|
+
const checkbox = "[" + (node.checked ? "x" : " ") + "] ";
|
|
1956
1959
|
const tracker = state.createTracker(info);
|
|
1957
1960
|
if (checkable) {
|
|
1958
1961
|
tracker.move(checkbox);
|
|
1959
1962
|
}
|
|
1960
|
-
let value = handle.listItem(
|
|
1963
|
+
let value = handle.listItem(node, parent, state, {
|
|
1961
1964
|
...info,
|
|
1962
1965
|
...tracker.current()
|
|
1963
1966
|
});
|
|
@@ -2016,18 +2019,18 @@ function splice(list2, start, remove, items) {
|
|
|
2016
2019
|
}
|
|
2017
2020
|
const hasOwnProperty = {}.hasOwnProperty;
|
|
2018
2021
|
function combineExtensions(extensions) {
|
|
2019
|
-
const
|
|
2022
|
+
const all = {};
|
|
2020
2023
|
let index = -1;
|
|
2021
2024
|
while (++index < extensions.length) {
|
|
2022
|
-
syntaxExtension(
|
|
2025
|
+
syntaxExtension(all, extensions[index]);
|
|
2023
2026
|
}
|
|
2024
|
-
return
|
|
2027
|
+
return all;
|
|
2025
2028
|
}
|
|
2026
|
-
function syntaxExtension(
|
|
2029
|
+
function syntaxExtension(all, extension) {
|
|
2027
2030
|
let hook;
|
|
2028
2031
|
for (hook in extension) {
|
|
2029
|
-
const maybe = hasOwnProperty.call(
|
|
2030
|
-
const left = maybe || (
|
|
2032
|
+
const maybe = hasOwnProperty.call(all, hook) ? all[hook] : void 0;
|
|
2033
|
+
const left = maybe || (all[hook] = {});
|
|
2031
2034
|
const right = extension[hook];
|
|
2032
2035
|
let code2;
|
|
2033
2036
|
if (right) {
|
|
@@ -2396,14 +2399,6 @@ function previousUnbalanced(events) {
|
|
|
2396
2399
|
}
|
|
2397
2400
|
return result;
|
|
2398
2401
|
}
|
|
2399
|
-
function classifyCharacter(code2) {
|
|
2400
|
-
if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
|
|
2401
|
-
return 1;
|
|
2402
|
-
}
|
|
2403
|
-
if (unicodePunctuation(code2)) {
|
|
2404
|
-
return 2;
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
2402
|
function resolveAll(constructs2, events, context) {
|
|
2408
2403
|
const called = [];
|
|
2409
2404
|
let index = -1;
|
|
@@ -3478,9 +3473,11 @@ var __component__$1 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
3478
3473
|
const NcRichTextCopyButton = __component__$1.exports;
|
|
3479
3474
|
function remarkPlaceholder() {
|
|
3480
3475
|
return function(ast) {
|
|
3481
|
-
|
|
3482
|
-
function visitor(
|
|
3483
|
-
const
|
|
3476
|
+
unistUtilVisitParents.visitParents(ast, (node) => node.type === "text", visitor);
|
|
3477
|
+
function visitor(node, ancestors) {
|
|
3478
|
+
const parent = ancestors.at(-1);
|
|
3479
|
+
const index = parent.children.indexOf(node);
|
|
3480
|
+
const placeholders = node.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
|
|
3484
3481
|
const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
|
|
3485
3482
|
if (!matches) {
|
|
3486
3483
|
return unistBuilder.u("text", entry);
|
|
@@ -3504,10 +3501,9 @@ function prepareTextNode({ h, context }, text2) {
|
|
|
3504
3501
|
return entry;
|
|
3505
3502
|
}
|
|
3506
3503
|
const { component, props } = entry;
|
|
3507
|
-
const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
|
|
3508
3504
|
return h(component, {
|
|
3509
3505
|
props,
|
|
3510
|
-
class:
|
|
3506
|
+
class: "rich-text--component"
|
|
3511
3507
|
});
|
|
3512
3508
|
});
|
|
3513
3509
|
}
|
|
@@ -3517,28 +3513,32 @@ function prepareTextNode({ h, context }, text2) {
|
|
|
3517
3513
|
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
3518
3514
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
3519
3515
|
*/
|
|
3520
|
-
function isCodeNode(
|
|
3521
|
-
return ["code", "inlineCode"].includes(
|
|
3516
|
+
function isCodeNode(node) {
|
|
3517
|
+
return ["code", "inlineCode"].includes(node.type);
|
|
3522
3518
|
}
|
|
3523
3519
|
const remarkStripCode = function() {
|
|
3524
3520
|
return function(tree) {
|
|
3525
|
-
|
|
3521
|
+
unistUtilVisitParents.visitParents(tree, isCodeNode, (node, ancestors) => {
|
|
3522
|
+
const parent = ancestors.at(-1);
|
|
3523
|
+
const index = parent.children.indexOf(node);
|
|
3526
3524
|
parent.children.splice(index, 1, {
|
|
3527
|
-
...
|
|
3525
|
+
...node,
|
|
3528
3526
|
value: ""
|
|
3529
3527
|
});
|
|
3530
|
-
return [
|
|
3528
|
+
return [unistUtilVisitParents.SKIP, index + 1];
|
|
3531
3529
|
});
|
|
3532
3530
|
};
|
|
3533
3531
|
};
|
|
3534
3532
|
function remarkUnescape() {
|
|
3535
3533
|
return function(tree) {
|
|
3536
|
-
|
|
3534
|
+
unistUtilVisitParents.visitParents(tree, (node) => ["text", "code", "inlineCode"].includes(node.type), (node, ancestors) => {
|
|
3535
|
+
const parent = ancestors.at(-1);
|
|
3536
|
+
const index = parent.children.indexOf(node);
|
|
3537
3537
|
parent.children.splice(index, 1, {
|
|
3538
|
-
...
|
|
3539
|
-
value:
|
|
3538
|
+
...node,
|
|
3539
|
+
value: node.value.replace(/</gmi, "<").replace(/>/gmi, ">")
|
|
3540
3540
|
});
|
|
3541
|
-
return [
|
|
3541
|
+
return [unistUtilVisitParents.SKIP, index + 1];
|
|
3542
3542
|
});
|
|
3543
3543
|
};
|
|
3544
3544
|
}
|
|
@@ -3655,8 +3655,8 @@ const _sfc_main = {
|
|
|
3655
3655
|
useExtendedMarkdown: this.useExtendedMarkdown
|
|
3656
3656
|
}).use(remarkUnescape).use(this.useExtendedMarkdown ? remarkGfm : void 0).use(breaks__default.default).use(remarkUnlinkProtocols__default.default, { except: LINK_PROTOCOLS }).use(remark2rehype__default.default, {
|
|
3657
3657
|
handlers: {
|
|
3658
|
-
component(toHast,
|
|
3659
|
-
return toHast(
|
|
3658
|
+
component(toHast, node) {
|
|
3659
|
+
return toHast(node, node.component, { value: node.value });
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
3662
|
}).use(this.useExtendedMarkdown ? rehypeHighlight.value : void 0).use(remarkPlaceholder).use(rehypeExternalLinks__default.default, {
|
|
@@ -3719,6 +3719,15 @@ const _sfc_main = {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
}, children);
|
|
3721
3721
|
}
|
|
3722
|
+
const isAllowedScheme = /^(https?:\/\/|tel:|mailto:)/.test(attrs.attrs.href);
|
|
3723
|
+
if (isAllowedScheme) {
|
|
3724
|
+
attrs.attrs.href = attrs.attrs.href.trim();
|
|
3725
|
+
return h(autolink.NcRichTextExternalLink, attrs, children);
|
|
3726
|
+
} else {
|
|
3727
|
+
delete attrs.attrs.href;
|
|
3728
|
+
delete attrs.attrs.target;
|
|
3729
|
+
return h("span", attrs, children);
|
|
3730
|
+
}
|
|
3722
3731
|
}
|
|
3723
3732
|
return h(tag, attrs, children);
|
|
3724
3733
|
}
|
|
@@ -3765,7 +3774,9 @@ const _sfc_main = {
|
|
|
3765
3774
|
if (!this.useMarkdown && !this.useExtendedMarkdown) {
|
|
3766
3775
|
return text2;
|
|
3767
3776
|
}
|
|
3768
|
-
|
|
3777
|
+
const processor = unified.unified();
|
|
3778
|
+
processor.compiler = (tree) => mdastUtilToString.toString(tree);
|
|
3779
|
+
return processor.use(remarkParse__default.default).use(remarkStripCode).processSync(text2).value;
|
|
3769
3780
|
}
|
|
3770
3781
|
},
|
|
3771
3782
|
render(h) {
|
|
@@ -3780,9 +3791,9 @@ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
3780
3791
|
_sfc_staticRenderFns,
|
|
3781
3792
|
false,
|
|
3782
3793
|
null,
|
|
3783
|
-
"
|
|
3794
|
+
"177dd7c0"
|
|
3784
3795
|
);
|
|
3785
3796
|
const NcRichText = __component__.exports;
|
|
3786
3797
|
exports.NcReferenceList = NcReferenceList;
|
|
3787
3798
|
exports.NcRichText = NcRichText;
|
|
3788
|
-
//# sourceMappingURL=NcRichText-
|
|
3799
|
+
//# sourceMappingURL=NcRichText-pqvg5l27.cjs.map
|