@nextcloud/vue 8.36.0 → 8.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -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/NcAppSettingsSectionShortcuts.cjs +1 -1
- package/dist/Components/NcAppSettingsSectionShortcuts.mjs +1 -1
- package/dist/Components/NcAppSettingsShortcutsSection.cjs +1 -1
- package/dist/Components/NcAppSettingsShortcutsSection.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 +3 -3
- package/dist/Components/NcChip.mjs +3 -3
- 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 +4 -4
- package/dist/Components/NcDateTimePicker.mjs +4 -4
- 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 +4 -0
- package/dist/Components/NcFilePicker.cjs.map +1 -0
- package/dist/Components/NcFilePicker.mjs +5 -0
- package/dist/Components/NcFilePicker.mjs.map +1 -0
- package/dist/Components/NcFormBoxCopyButton.cjs +1 -1
- package/dist/Components/NcFormBoxCopyButton.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/NcHotkey.cjs +1 -1
- package/dist/Components/NcHotkey.mjs +1 -1
- package/dist/Components/NcHotkeyList.cjs +1 -1
- package/dist/Components/NcHotkeyList.mjs +1 -1
- package/dist/Components/NcInputField.cjs +1 -1
- package/dist/Components/NcInputField.mjs +1 -1
- package/dist/Components/NcKbd.cjs +1 -1
- package/dist/Components/NcKbd.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 +36 -10
- package/dist/Components/NcModal.cjs.map +1 -1
- package/dist/Components/NcModal.mjs +36 -10
- package/dist/Components/NcModal.mjs.map +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/NcSettingsInputText.cjs +1 -1
- package/dist/Components/NcSettingsInputText.mjs +1 -1
- package/dist/Components/NcSettingsSection.cjs +1 -1
- package/dist/Components/NcSettingsSection.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/Composables/useFormatDateTime.cjs +1 -1
- package/dist/Composables/useFormatDateTime.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/{NcAppContent-COKKdvdZ.css → NcAppContent-CKJUs-ZZ.css} +22 -19
- package/dist/assets/{NcAppNavigation-Dbpqdigp.css → NcAppNavigation-mcR7I0Bd.css} +12 -12
- package/dist/assets/{NcAppSettingsDialog-N2RJYgHo.css → NcAppSettingsDialog-x8dImUGK.css} +11 -11
- package/dist/assets/{NcBreadcrumbs-DahxPGJY.css → NcBreadcrumbs-Dt1zdHzR.css} +6 -6
- package/dist/assets/{NcButton-n-KI8Bqb.css → NcButton-C5JW43jM.css} +46 -46
- package/dist/assets/{NcCheckboxRadioSwitch-BACLOhMO.css → NcCheckboxRadioSwitch-BojbloxL.css} +38 -38
- package/dist/assets/{NcContent-IIXgAj_u.css → NcContent-a67pCVHO.css} +10 -10
- package/dist/assets/{NcDateTimePicker-BU_TdhUm.css → NcDateTimePicker-DrfMaKM7.css} +8 -8
- package/dist/assets/NcFilePicker-BokX813z.css +6 -0
- package/dist/assets/{NcInputField-CJzLu0_0.css → NcInputField-Cc-l-KGd.css} +46 -46
- package/dist/assets/{NcModal-CfHpabcF.css → NcModal-wPeHZkqH.css} +66 -67
- 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-Cm0fohqz.css → NcRichContenteditable-DwS6PNCv.css} +11 -11
- package/dist/assets/{NcRichText-C72XMOoz.css → NcRichText-Cp_5tfBy.css} +91 -98
- package/dist/assets/{NcTextArea-BNxd9_FK.css → NcTextArea-BtG5_qHD.css} +30 -28
- 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-BxvJmEwM.mjs → NcActionButtonGroup-B95wg_Q6.mjs} +4 -4
- package/dist/chunks/NcActionButtonGroup-B95wg_Q6.mjs.map +1 -0
- package/dist/chunks/{NcActionButtonGroup-QVUAMbKq.cjs → NcActionButtonGroup-CFGCmzTM.cjs} +4 -4
- package/dist/chunks/NcActionButtonGroup-CFGCmzTM.cjs.map +1 -0
- package/dist/chunks/{NcActionInput-BLfZBCFj.mjs → NcActionInput-B_9GOTi6.mjs} +7 -7
- package/dist/chunks/NcActionInput-B_9GOTi6.mjs.map +1 -0
- package/dist/chunks/{NcActionInput-CuhJdyHk.cjs → NcActionInput-D3w0eGfB.cjs} +7 -7
- package/dist/chunks/NcActionInput-D3w0eGfB.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-RVSfZOYh.cjs → NcActions-0fAYsGbh.cjs} +5 -5
- package/dist/chunks/NcActions-0fAYsGbh.cjs.map +1 -0
- package/dist/chunks/{NcActions-B7LKaVy0.mjs → NcActions-Ca_2vj8f.mjs} +5 -5
- package/dist/chunks/NcActions-Ca_2vj8f.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-iiQ0CC8-.cjs → NcAppContent-B95Sj4-X.cjs} +6 -6
- package/dist/chunks/NcAppContent-B95Sj4-X.cjs.map +1 -0
- package/dist/chunks/{NcAppContent-BQbYzcUh.mjs → NcAppContent-HZ-Lp090.mjs} +6 -6
- package/dist/chunks/NcAppContent-HZ-Lp090.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-DjeB8XMY.cjs → NcAppNavigation-BDxzq-ai.cjs} +17 -7
- package/dist/chunks/NcAppNavigation-BDxzq-ai.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-Cu8LpQSI.mjs → NcAppNavigation-BPqJExo6.mjs} +17 -7
- package/dist/chunks/NcAppNavigation-BPqJExo6.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationCaption-CQaKs-Zf.mjs → NcAppNavigationCaption-Bt51pgle.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationCaption-CQaKs-Zf.mjs.map → NcAppNavigationCaption-Bt51pgle.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-BrwsCX28.cjs → NcAppNavigationCaption-CQZ7ZrEO.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationCaption-BrwsCX28.cjs.map → NcAppNavigationCaption-CQZ7ZrEO.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-CyQBEt9w.cjs → NcAppNavigationItem-BBZ1SsqQ.cjs} +7 -7
- package/dist/chunks/{NcAppNavigationItem-CyQBEt9w.cjs.map → NcAppNavigationItem-BBZ1SsqQ.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-ryrQ6jep.mjs → NcAppNavigationItem-DcKt7SjF.mjs} +7 -7
- package/dist/chunks/{NcAppNavigationItem-ryrQ6jep.mjs.map → NcAppNavigationItem-DcKt7SjF.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNew-t3Rkrwjh.mjs → NcAppNavigationNew-B5ikLvxM.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-t3Rkrwjh.mjs.map → NcAppNavigationNew-B5ikLvxM.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNew-ByTNXL-2.cjs → NcAppNavigationNew-DljLy9CQ.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-ByTNXL-2.cjs.map → NcAppNavigationNew-DljLy9CQ.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-_8ozWEv3.mjs → NcAppNavigationNewItem-BqhwbJsJ.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNewItem-_8ozWEv3.mjs.map → NcAppNavigationNewItem-BqhwbJsJ.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-C_0savRU.cjs → NcAppNavigationNewItem-C6gqVpBt.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationNewItem-C_0savRU.cjs.map → NcAppNavigationNewItem-C6gqVpBt.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-CSih_quP.mjs → NcAppNavigationSearch-B6u1Ln1_.mjs} +4 -4
- package/dist/chunks/{NcAppNavigationSearch-CSih_quP.mjs.map → NcAppNavigationSearch-B6u1Ln1_.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-CqJql2d9.cjs → NcAppNavigationSearch-CliHANzA.cjs} +4 -4
- package/dist/chunks/{NcAppNavigationSearch-CqJql2d9.cjs.map → NcAppNavigationSearch-CliHANzA.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-Eseo9MMQ.mjs → NcAppNavigationSettings-BfysBg80.mjs} +4 -4
- package/dist/chunks/{NcAppNavigationSettings-Eseo9MMQ.mjs.map → NcAppNavigationSettings-BfysBg80.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-DRoGqPHP.cjs → NcAppNavigationSettings-ClcR05vZ.cjs} +4 -4
- package/dist/chunks/{NcAppNavigationSettings-DRoGqPHP.cjs.map → NcAppNavigationSettings-ClcR05vZ.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-5n7gV3K0.cjs → NcAppNavigationToggle-CLPYPwyi.cjs} +3 -3
- package/dist/chunks/{NcAppNavigationToggle-5n7gV3K0.cjs.map → NcAppNavigationToggle-CLPYPwyi.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-DYJLh23P.mjs → NcAppNavigationToggle-DtJjJGQ5.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationToggle-DYJLh23P.mjs.map → NcAppNavigationToggle-DtJjJGQ5.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-DApthKor.cjs → NcAppSettingsDialog-C2-LWcDG.cjs} +6 -6
- package/dist/chunks/{NcAppSettingsDialog-zwmLtX7z.mjs.map → NcAppSettingsDialog-C2-LWcDG.cjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-zwmLtX7z.mjs → NcAppSettingsDialog-D0M18YFD.mjs} +6 -6
- package/dist/chunks/{NcAppSettingsDialog-DApthKor.cjs.map → NcAppSettingsDialog-D0M18YFD.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsShortcutsSection-CiLZpXkV.mjs → NcAppSettingsShortcutsSection-DblUBaWP.mjs} +2 -2
- package/dist/chunks/NcAppSettingsShortcutsSection-DblUBaWP.mjs.map +1 -0
- package/dist/chunks/{NcAppSettingsShortcutsSection-Ow8Xrs6j.cjs → NcAppSettingsShortcutsSection-DgGU8-cF.cjs} +2 -2
- package/dist/chunks/NcAppSettingsShortcutsSection-DgGU8-cF.cjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-COAO4VHH.cjs → NcAppSidebar-BYHXZjYR.cjs} +5 -5
- package/dist/chunks/{NcAppSidebar-COAO4VHH.cjs.map → NcAppSidebar-BYHXZjYR.cjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-BiIeJ3p1.mjs → NcAppSidebar-Bljse39J.mjs} +5 -5
- package/dist/chunks/{NcAppSidebar-BiIeJ3p1.mjs.map → NcAppSidebar-Bljse39J.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-Cp9x57gS.mjs → NcAssistantButton-BdUkhzq1.mjs} +2 -2
- package/dist/chunks/{NcAssistantButton-Cp9x57gS.mjs.map → NcAssistantButton-BdUkhzq1.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-Dm2xP503.cjs → NcAssistantButton-mPenTfuv.cjs} +2 -2
- package/dist/chunks/{NcAssistantButton-Dm2xP503.cjs.map → NcAssistantButton-mPenTfuv.cjs.map} +1 -1
- package/dist/chunks/{NcAvatar-OCD_HmOb.mjs → NcAvatar-CGnqUtoy.mjs} +8 -8
- package/dist/chunks/{NcAvatar-OCD_HmOb.mjs.map → NcAvatar-CGnqUtoy.mjs.map} +1 -1
- package/dist/chunks/{NcAvatar-DQZhvYDx.cjs → NcAvatar-DP8TpFfy.cjs} +8 -8
- package/dist/chunks/{NcAvatar-DQZhvYDx.cjs.map → NcAvatar-DP8TpFfy.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-UmBT5BsM.mjs → NcBreadcrumb-DH2FV6QI.mjs} +3 -3
- package/dist/chunks/{NcBreadcrumb-UmBT5BsM.mjs.map → NcBreadcrumb-DH2FV6QI.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-B-voXzzn.cjs → NcBreadcrumb-hK0W8qx4.cjs} +3 -3
- package/dist/chunks/{NcBreadcrumb-B-voXzzn.cjs.map → NcBreadcrumb-hK0W8qx4.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-B8iMbaQb.mjs → NcBreadcrumbs-DrYYSHAS.mjs} +7 -7
- package/dist/chunks/{NcBreadcrumbs-CyRh9rRH.cjs.map → NcBreadcrumbs-DrYYSHAS.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-CyRh9rRH.cjs → NcBreadcrumbs-pDN1N49I.cjs} +7 -7
- package/dist/chunks/{NcBreadcrumbs-B8iMbaQb.mjs.map → NcBreadcrumbs-pDN1N49I.cjs.map} +1 -1
- package/dist/chunks/{NcButton-Dz2O6cSU.mjs → NcButton-BgppWSl9.mjs} +12 -4
- package/dist/chunks/NcButton-BgppWSl9.mjs.map +1 -0
- package/dist/chunks/{NcButton-CuFElrFD.cjs → NcButton-DaWD-X8V.cjs} +12 -4
- package/dist/chunks/NcButton-DaWD-X8V.cjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-DtrlpJJN.cjs → NcCheckboxRadioSwitch-BQeglWXd.cjs} +9 -18
- package/dist/chunks/{NcCheckboxRadioSwitch-Di43R9CE.mjs.map → NcCheckboxRadioSwitch-BQeglWXd.cjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-Di43R9CE.mjs → NcCheckboxRadioSwitch-D4IV4zWy.mjs} +9 -18
- package/dist/chunks/{NcCheckboxRadioSwitch-DtrlpJJN.cjs.map → NcCheckboxRadioSwitch-D4IV4zWy.mjs.map} +1 -1
- package/dist/chunks/{NcCollectionList-C-LCG1Ob.mjs → NcCollectionList-BbmBJ4ET.mjs} +7 -7
- package/dist/chunks/{NcCollectionList-C-LCG1Ob.mjs.map → NcCollectionList-BbmBJ4ET.mjs.map} +1 -1
- package/dist/chunks/{NcCollectionList-Cvf4AeNt.cjs → NcCollectionList-DgLrYZ6o.cjs} +7 -7
- package/dist/chunks/{NcCollectionList-Cvf4AeNt.cjs.map → NcCollectionList-DgLrYZ6o.cjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-DPUDuNp4.mjs → NcColorPicker-Bzzw1uKu.mjs} +4 -4
- package/dist/chunks/{NcColorPicker-DPUDuNp4.mjs.map → NcColorPicker-Bzzw1uKu.mjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-CnQNBGVB.cjs → NcColorPicker-DNpKf7gx.cjs} +4 -4
- package/dist/chunks/{NcColorPicker-CnQNBGVB.cjs.map → NcColorPicker-DNpKf7gx.cjs.map} +1 -1
- package/dist/chunks/{NcContent-B1B89UG0.cjs → NcContent-CMjQ3dfw.cjs} +6 -5
- package/dist/chunks/{NcContent-B1B89UG0.cjs.map → NcContent-CMjQ3dfw.cjs.map} +1 -1
- package/dist/chunks/{NcContent-mCqWZXj_.mjs → NcContent-DpGM2KRx.mjs} +6 -5
- package/dist/chunks/{NcContent-mCqWZXj_.mjs.map → NcContent-DpGM2KRx.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-DkIJ5CtL.cjs → NcDashboardWidget-DuoTxAyf.cjs} +4 -4
- package/dist/chunks/{NcDashboardWidget-DkIJ5CtL.cjs.map → NcDashboardWidget-DuoTxAyf.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-CrInkRLf.mjs → NcDashboardWidget-NOuL4APU.mjs} +4 -4
- package/dist/chunks/{NcDashboardWidget-CrInkRLf.mjs.map → NcDashboardWidget-NOuL4APU.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-B9edccBC.cjs → NcDashboardWidgetItem-BFsKgWo2.cjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-B9edccBC.cjs.map → NcDashboardWidgetItem-BFsKgWo2.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-DwvrP3Fa.mjs → NcDashboardWidgetItem-CBW263ij.mjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-DwvrP3Fa.mjs.map → NcDashboardWidgetItem-CBW263ij.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-Bu9xyU24.mjs → NcDialog-BCCBuI6f.mjs} +2 -2
- package/dist/chunks/{NcDialog-Bu9xyU24.mjs.map → NcDialog-BCCBuI6f.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-ja5_vkY1.cjs → NcDialog-x3G0Nuve.cjs} +2 -2
- package/dist/chunks/{NcDialog-ja5_vkY1.cjs.map → NcDialog-x3G0Nuve.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-BKPo8qTj.cjs → NcDialogButton-DBtmgcol.cjs} +3 -3
- package/dist/chunks/{NcDialogButton-BKPo8qTj.cjs.map → NcDialogButton-DBtmgcol.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-DGBhiACK.mjs → NcDialogButton-DpA4mqr-.mjs} +3 -3
- package/dist/chunks/{NcDialogButton-DGBhiACK.mjs.map → NcDialogButton-DpA4mqr-.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-DOFfHZjX.mjs → NcEmojiPicker-C4jCrwQY.mjs} +8 -8
- package/dist/chunks/{NcEmojiPicker-DOFfHZjX.mjs.map → NcEmojiPicker-C4jCrwQY.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-Bm-B75F0.cjs → NcEmojiPicker-DefnK492.cjs} +8 -8
- package/dist/chunks/{NcEmojiPicker-Bm-B75F0.cjs.map → NcEmojiPicker-DefnK492.cjs.map} +1 -1
- package/dist/chunks/NcFilePicker-BYWr-vcP.cjs +209 -0
- package/dist/chunks/NcFilePicker-BYWr-vcP.cjs.map +1 -0
- package/dist/chunks/NcFilePicker-DCPi6JGg.mjs +210 -0
- package/dist/chunks/NcFilePicker-DCPi6JGg.mjs.map +1 -0
- package/dist/chunks/NcFormBox-DRGVpFeZ.cjs.map +1 -1
- package/dist/chunks/NcFormBox-DtoCXLMx.mjs.map +1 -1
- package/dist/chunks/{NcFormBoxCopyButton-DmFZ1t3a.cjs → NcFormBoxCopyButton-B2GrmfEz.cjs} +2 -2
- package/dist/chunks/{NcFormBoxCopyButton-DmFZ1t3a.cjs.map → NcFormBoxCopyButton-B2GrmfEz.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxCopyButton-DtJpZ971.mjs → NcFormBoxCopyButton-BkunQ3me.mjs} +2 -2
- package/dist/chunks/{NcFormBoxCopyButton-DtJpZ971.mjs.map → NcFormBoxCopyButton-BkunQ3me.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderButton-Dvo1_Bwc.mjs → NcHeaderButton-DXdY8gct.mjs} +2 -2
- package/dist/chunks/{NcHeaderButton-Dvo1_Bwc.mjs.map → NcHeaderButton-DXdY8gct.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderButton-CpWQbzfF.cjs → NcHeaderButton-iEtQ74pa.cjs} +2 -2
- package/dist/chunks/{NcHeaderButton-CpWQbzfF.cjs.map → NcHeaderButton-iEtQ74pa.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-Cuh8ay0F.mjs → NcHeaderMenu-BZnnbLTo.mjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-Cuh8ay0F.mjs.map → NcHeaderMenu-BZnnbLTo.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-Cmu-m_aM.cjs → NcHeaderMenu-efsSG80P.cjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-Cmu-m_aM.cjs.map → NcHeaderMenu-efsSG80P.cjs.map} +1 -1
- package/dist/chunks/{NcHotkey-Cv2Je6eF.mjs → NcHotkey-CLLtt9LG.mjs} +2 -2
- package/dist/chunks/{NcHotkey-Cv2Je6eF.mjs.map → NcHotkey-CLLtt9LG.mjs.map} +1 -1
- package/dist/chunks/{NcHotkey-wTQuk8tk.cjs → NcHotkey-vKyDZ2a7.cjs} +2 -2
- package/dist/chunks/{NcHotkey-wTQuk8tk.cjs.map → NcHotkey-vKyDZ2a7.cjs.map} +1 -1
- package/dist/chunks/{NcHotkeyList-CrAcIN70.mjs → NcHotkeyList-Co7MBL5U.mjs} +2 -2
- package/dist/chunks/{NcHotkeyList-CrAcIN70.mjs.map → NcHotkeyList-Co7MBL5U.mjs.map} +1 -1
- package/dist/chunks/{NcHotkeyList-CezOirdf.cjs → NcHotkeyList-DhFQdopw.cjs} +2 -2
- package/dist/chunks/{NcHotkeyList-CezOirdf.cjs.map → NcHotkeyList-DhFQdopw.cjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-CsJOuKAS.cjs → NcInputConfirmCancel-CTvNhtqM.cjs} +3 -3
- package/dist/chunks/{NcInputConfirmCancel-CsJOuKAS.cjs.map → NcInputConfirmCancel-CTvNhtqM.cjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-D7e4BkoB.mjs → NcInputConfirmCancel-LAJSyhOn.mjs} +3 -3
- package/dist/chunks/{NcInputConfirmCancel-D7e4BkoB.mjs.map → NcInputConfirmCancel-LAJSyhOn.mjs.map} +1 -1
- package/dist/chunks/{NcInputField-BNi4nRz_.cjs → NcInputField-DX2Jz57P.cjs} +4 -4
- package/dist/chunks/{NcInputField-BNi4nRz_.cjs.map → NcInputField-DX2Jz57P.cjs.map} +1 -1
- package/dist/chunks/{NcInputField-DyXCCIOM.mjs → NcInputField-j5EyU7QH.mjs} +4 -4
- package/dist/chunks/{NcInputField-DyXCCIOM.mjs.map → NcInputField-j5EyU7QH.mjs.map} +1 -1
- package/dist/chunks/{NcKbd-BOezPDqA.cjs → NcKbd-DbjnDaJH.cjs} +2 -2
- package/dist/chunks/{NcKbd-BOezPDqA.cjs.map → NcKbd-DbjnDaJH.cjs.map} +1 -1
- package/dist/chunks/{NcKbd-CUoUkqEz.mjs → NcKbd-GB8FuSAU.mjs} +2 -2
- package/dist/chunks/{NcKbd-CUoUkqEz.mjs.map → NcKbd-GB8FuSAU.mjs.map} +1 -1
- package/dist/chunks/{NcListItem-BYJvJ8iU.cjs → NcListItem-C14yh4-n.cjs} +2 -2
- package/dist/chunks/{NcListItem-BYJvJ8iU.cjs.map → NcListItem-C14yh4-n.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-DzezqYDz.mjs → NcListItem-D0JDzXkL.mjs} +2 -2
- package/dist/chunks/{NcListItem-DzezqYDz.mjs.map → NcListItem-D0JDzXkL.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-mfE2915t.cjs → NcListItemIcon-BccR3hro.cjs} +2 -2
- package/dist/chunks/{NcListItemIcon-mfE2915t.cjs.map → NcListItemIcon-BccR3hro.cjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-BKWOSFfG.mjs → NcListItemIcon-D35XZDGI.mjs} +2 -2
- package/dist/chunks/{NcListItemIcon-BKWOSFfG.mjs.map → NcListItemIcon-D35XZDGI.mjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-DVXnb5JS.cjs → NcPasswordField-BkY96Kt0.cjs} +8 -9
- package/dist/chunks/NcPasswordField-BkY96Kt0.cjs.map +1 -0
- package/dist/chunks/{NcPasswordField-Di_KXR_G.mjs → NcPasswordField-HQK5d_nv.mjs} +8 -9
- package/dist/chunks/NcPasswordField-HQK5d_nv.mjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-MmhCAbd4.mjs → NcRelatedResourcesPanel-BdmY-Mly.mjs} +9 -9
- package/dist/chunks/{NcRelatedResourcesPanel-MmhCAbd4.mjs.map → NcRelatedResourcesPanel-BdmY-Mly.mjs.map} +1 -1
- package/dist/chunks/{NcRelatedResourcesPanel-BNyUdxZY.cjs → NcRelatedResourcesPanel-BmpOFhV1.cjs} +9 -9
- package/dist/chunks/{NcRelatedResourcesPanel-BNyUdxZY.cjs.map → NcRelatedResourcesPanel-BmpOFhV1.cjs.map} +1 -1
- package/dist/chunks/{NcRichContenteditable-BDjKhFe3.mjs → NcRichContenteditable-BcTSkyeW.mjs} +57 -36
- package/dist/chunks/NcRichContenteditable-BcTSkyeW.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-C7lbE4KZ.cjs → NcRichContenteditable-QnLNsBkB.cjs} +57 -36
- package/dist/chunks/NcRichContenteditable-QnLNsBkB.cjs.map +1 -0
- package/dist/chunks/{NcRichText-C5whs7n-.cjs → NcRichText-CiRdCF_B.cjs} +256 -299
- package/dist/chunks/NcRichText-CiRdCF_B.cjs.map +1 -0
- package/dist/chunks/{NcRichText-DTzKWfUk.mjs → NcRichText-DZgAb6-3.mjs} +255 -298
- package/dist/chunks/NcRichText-DZgAb6-3.mjs.map +1 -0
- package/dist/chunks/{NcSelect-BDPuWrJ7.cjs → NcSelect-DVXAVRT_.cjs} +3 -3
- package/dist/chunks/{NcSelect-BDPuWrJ7.cjs.map → NcSelect-DVXAVRT_.cjs.map} +1 -1
- package/dist/chunks/{NcSelect-BD9fhCVy.mjs → NcSelect-FwcxH76q.mjs} +3 -3
- package/dist/chunks/{NcSelect-BD9fhCVy.mjs.map → NcSelect-FwcxH76q.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-BdCxmpQz.cjs → NcSelectTags-BNFcTbHy.cjs} +3 -3
- package/dist/chunks/{NcSelectTags-BdCxmpQz.cjs.map → NcSelectTags-BNFcTbHy.cjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-AFttsKK_.mjs → NcSelectTags-yZfa_z_z.mjs} +3 -3
- package/dist/chunks/{NcSelectTags-AFttsKK_.mjs.map → NcSelectTags-yZfa_z_z.mjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-BRDGLoPt.mjs → NcSelectUsers-5r-vvEVy.mjs} +5 -5
- package/dist/chunks/{NcSelectUsers-BRDGLoPt.mjs.map → NcSelectUsers-5r-vvEVy.mjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-Tl4BZ0R-.cjs → NcSelectUsers-fp6nf6ic.cjs} +5 -5
- package/dist/chunks/{NcSelectUsers-Tl4BZ0R-.cjs.map → NcSelectUsers-fp6nf6ic.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-C4vnFBMY.cjs → NcSettingsInputText-BF5437Q7.cjs} +3 -3
- package/dist/chunks/{NcSettingsInputText-C4vnFBMY.cjs.map → NcSettingsInputText-BF5437Q7.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-BeLtzRuE.mjs → NcSettingsInputText-BwnkZzWL.mjs} +3 -3
- package/dist/chunks/{NcSettingsInputText-BeLtzRuE.mjs.map → NcSettingsInputText-BwnkZzWL.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-B26VKgIm.cjs → NcSettingsSection-BrIKMh-B.cjs} +2 -2
- package/dist/chunks/{NcSettingsSection-B26VKgIm.cjs.map → NcSettingsSection-BrIKMh-B.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-CCJrqjyc.mjs → NcSettingsSection-Dz_b9rcq.mjs} +2 -2
- package/dist/chunks/{NcSettingsSection-CCJrqjyc.mjs.map → NcSettingsSection-Dz_b9rcq.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BqSdPsYY.mjs → NcSettingsSelectGroup-CUM0vkbN.mjs} +4 -4
- package/dist/chunks/{NcSettingsSelectGroup-BqSdPsYY.mjs.map → NcSettingsSelectGroup-CUM0vkbN.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BAbur3rR.cjs → NcSettingsSelectGroup-D5EWVZ7k.cjs} +4 -4
- package/dist/chunks/{NcSettingsSelectGroup-BAbur3rR.cjs.map → NcSettingsSelectGroup-D5EWVZ7k.cjs.map} +1 -1
- package/dist/chunks/{NcTextArea-CdYBB93W.cjs → NcTextArea-UKiTMLga.cjs} +3 -3
- package/dist/chunks/{NcTextArea-CdYBB93W.cjs.map → NcTextArea-UKiTMLga.cjs.map} +1 -1
- package/dist/chunks/{NcTextArea-DaYLP_Lc.mjs → NcTextArea-fGUiK7p2.mjs} +3 -3
- package/dist/chunks/{NcTextArea-DaYLP_Lc.mjs.map → NcTextArea-fGUiK7p2.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-BdfF5z6a.cjs → NcTextField-B2tcddKo.cjs} +4 -4
- package/dist/chunks/{NcTextField-BdfF5z6a.cjs.map → NcTextField-B2tcddKo.cjs.map} +1 -1
- package/dist/chunks/{NcTextField-DLlQozKA.mjs → NcTextField-ByDOTNvC.mjs} +4 -4
- package/dist/chunks/{NcTextField-DLlQozKA.mjs.map → NcTextField-ByDOTNvC.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-B-o71qLO.cjs → NcTimezonePicker-CeQXCjIR.cjs} +4 -4
- package/dist/chunks/{NcTimezonePicker-B-o71qLO.cjs.map → NcTimezonePicker-CeQXCjIR.cjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-DTdF1yG4.mjs → NcTimezonePicker-Cok_NaVd.mjs} +4 -4
- package/dist/chunks/{NcTimezonePicker-DTdF1yG4.mjs.map → NcTimezonePicker-Cok_NaVd.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-DBqYZmgY.cjs → NcUserBubble-CIcwErdM.cjs} +2 -2
- package/dist/chunks/{NcUserBubble-DBqYZmgY.cjs.map → NcUserBubble-CIcwErdM.cjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-CWgceS0Q.mjs → NcUserBubble-Csw7PXyG.mjs} +2 -2
- package/dist/chunks/{NcUserBubble-CWgceS0Q.mjs.map → NcUserBubble-Csw7PXyG.mjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-CVgFNNxH.cjs → NcUserStatusIcon-Bw0m9Xza.cjs} +3 -3
- package/dist/chunks/{NcUserStatusIcon-CVgFNNxH.cjs.map → NcUserStatusIcon-Bw0m9Xza.cjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-BjrsTrss.mjs → NcUserStatusIcon-Cq1RnTfF.mjs} +3 -3
- package/dist/chunks/{NcUserStatusIcon-BjrsTrss.mjs.map → NcUserStatusIcon-Cq1RnTfF.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-DnsVyhxP.mjs → ScopeComponent-B6luC3XR.mjs} +2 -2
- package/dist/chunks/{ScopeComponent-DnsVyhxP.mjs.map → ScopeComponent-B6luC3XR.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-Zty1tz_X.cjs → ScopeComponent-Co-1SOFK.cjs} +2 -2
- package/dist/chunks/{ScopeComponent-Zty1tz_X.cjs.map → ScopeComponent-Co-1SOFK.cjs.map} +1 -1
- package/dist/chunks/{_l10n-Dpecfv0B.mjs → _l10n-DVz9Qdzk.mjs} +43 -41
- package/dist/chunks/_l10n-DVz9Qdzk.mjs.map +1 -0
- package/dist/chunks/{_l10n-Cd8G51Ar.cjs → _l10n-skrZri3h.cjs} +16 -14
- package/dist/chunks/{_l10n-Cd8G51Ar.cjs.map → _l10n-skrZri3h.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-DFNwuW2a.mjs → colors-BmzDi7by.mjs} +2 -2
- package/dist/chunks/{colors-DFNwuW2a.mjs.map → colors-BmzDi7by.mjs.map} +1 -1
- package/dist/chunks/{colors-Cvcv7NQc.cjs → colors-CND3oL8e.cjs} +2 -2
- package/dist/chunks/{colors-Cvcv7NQc.cjs.map → colors-CND3oL8e.cjs.map} +1 -1
- package/dist/chunks/{emoji-BY_D0V5K.mjs → emoji-Dtn2mDf7.mjs} +14 -3
- package/dist/chunks/emoji-Dtn2mDf7.mjs.map +1 -0
- package/dist/chunks/{emoji-VgSjNTd5.cjs → emoji-aWWWqkrJ.cjs} +14 -3
- 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/{referencePickerModal-Cd3jRn0q.cjs → referencePickerModal-BOCqzVJk.cjs} +9 -9
- package/dist/chunks/{referencePickerModal-Cd3jRn0q.cjs.map → referencePickerModal-BOCqzVJk.cjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-BqYhlLYA.mjs → referencePickerModal-BQExd0w6.mjs} +9 -9
- package/dist/chunks/{referencePickerModal-BqYhlLYA.mjs.map → referencePickerModal-BQExd0w6.mjs.map} +1 -1
- package/dist/chunks/{useCopy-Crn9gIC_.cjs → useCopy-3m2jDiIN.cjs} +2 -2
- package/dist/chunks/{useCopy-Crn9gIC_.cjs.map → useCopy-3m2jDiIN.cjs.map} +1 -1
- package/dist/chunks/{useCopy-CYjunv08.mjs → useCopy-DDDe5RYH.mjs} +2 -2
- package/dist/chunks/{useCopy-CYjunv08.mjs.map → useCopy-DDDe5RYH.mjs.map} +1 -1
- package/dist/components/NcFilePicker/index.d.ts +6 -0
- package/dist/components/NcRichText/remarkStripCode.d.ts +2 -0
- package/dist/functions/emoji/emoji.d.ts +11 -5
- package/dist/index.cjs +60 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +62 -59
- package/dist/index.mjs.map +1 -1
- package/dist/vendor.LICENSE.txt +2 -6
- package/package.json +23 -21
- package/dist/chunks/NcActionButton-1gSJfFUC.mjs.map +0 -1
- package/dist/chunks/NcActionButton-C5Dqge0c.cjs.map +0 -1
- package/dist/chunks/NcActionButtonGroup-BxvJmEwM.mjs.map +0 -1
- package/dist/chunks/NcActionButtonGroup-QVUAMbKq.cjs.map +0 -1
- package/dist/chunks/NcActionInput-BLfZBCFj.mjs.map +0 -1
- package/dist/chunks/NcActionInput-CuhJdyHk.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-B7LKaVy0.mjs.map +0 -1
- package/dist/chunks/NcActions-RVSfZOYh.cjs.map +0 -1
- package/dist/chunks/NcAppContent-BQbYzcUh.mjs.map +0 -1
- package/dist/chunks/NcAppContent-iiQ0CC8-.cjs.map +0 -1
- package/dist/chunks/NcAppNavigation-Cu8LpQSI.mjs.map +0 -1
- package/dist/chunks/NcAppNavigation-DjeB8XMY.cjs.map +0 -1
- package/dist/chunks/NcAppSettingsShortcutsSection-CiLZpXkV.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsShortcutsSection-Ow8Xrs6j.cjs.map +0 -1
- package/dist/chunks/NcButton-CuFElrFD.cjs.map +0 -1
- package/dist/chunks/NcButton-Dz2O6cSU.mjs.map +0 -1
- package/dist/chunks/NcPasswordField-DVXnb5JS.cjs.map +0 -1
- package/dist/chunks/NcPasswordField-Di_KXR_G.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-BDjKhFe3.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-C7lbE4KZ.cjs.map +0 -1
- package/dist/chunks/NcRichText-C5whs7n-.cjs.map +0 -1
- package/dist/chunks/NcRichText-DTzKWfUk.mjs.map +0 -1
- package/dist/chunks/_l10n-Dpecfv0B.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-BY_D0V5K.mjs.map +0 -1
- package/dist/chunks/emoji-VgSjNTd5.cjs.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import '../assets/NcRichText-
|
|
1
|
+
import '../assets/NcRichText-Cp_5tfBy.css';
|
|
2
|
+
import { toString } from "mdast-util-to-string";
|
|
2
3
|
import rehypeExternalLinks from "rehype-external-links";
|
|
3
4
|
import rehype2react from "rehype-react";
|
|
4
5
|
import breaks from "remark-breaks";
|
|
@@ -8,21 +9,21 @@ import remarkUnlinkProtocols from "remark-unlink-protocols";
|
|
|
8
9
|
import { unified } from "unified";
|
|
9
10
|
import { defineComponent, ref } from "vue";
|
|
10
11
|
import { RouterLink } from "vue-router";
|
|
11
|
-
import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-
|
|
12
|
+
import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-D4IV4zWy.mjs";
|
|
12
13
|
import { getCurrentUser } from "@nextcloud/auth";
|
|
13
14
|
import axios from "@nextcloud/axios";
|
|
14
15
|
import { generateOcsUrl } from "@nextcloud/router";
|
|
15
16
|
import { getSharingToken } from "@nextcloud/sharing/public";
|
|
16
|
-
import { f as NcReferenceWidget } from "./referencePickerModal-
|
|
17
|
+
import { f as NcReferenceWidget } from "./referencePickerModal-BQExd0w6.mjs";
|
|
17
18
|
import { l as logger } from "./logger-D3RVzcfQ.mjs";
|
|
18
|
-
import { U as URL_PATTERN, p as parseUrl, r as remarkAutolink, g as getRoute } from "./autolink-
|
|
19
|
+
import { U as URL_PATTERN, p as parseUrl, r as remarkAutolink, g as getRoute, N as NcRichTextExternalLink } from "./autolink-CeB9uxD9.mjs";
|
|
19
20
|
import { n as normalizeComponent } from "./_plugin-vue2_normalizer-DU4iP6Vu.mjs";
|
|
20
|
-
import { N as NcButton } from "./NcButton-
|
|
21
|
+
import { N as NcButton } from "./NcButton-BgppWSl9.mjs";
|
|
21
22
|
import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-Bui9PhAS.mjs";
|
|
22
|
-
import { u as useCopy } from "./useCopy-
|
|
23
|
+
import { u as useCopy } from "./useCopy-DDDe5RYH.mjs";
|
|
23
24
|
import { G as GenRandomId } from "./GenRandomId-F5ebeBB_.mjs";
|
|
24
25
|
import { u } from "unist-builder";
|
|
25
|
-
import {
|
|
26
|
+
import { visitParents, EXIT, SKIP } from "unist-util-visit-parents";
|
|
26
27
|
const _sfc_main$2 = {
|
|
27
28
|
name: "NcReferenceList",
|
|
28
29
|
components: {
|
|
@@ -255,12 +256,12 @@ function propsFactory(check) {
|
|
|
255
256
|
/** @type {Record<string, unknown>} */
|
|
256
257
|
check
|
|
257
258
|
);
|
|
258
|
-
return castFactory(
|
|
259
|
-
function
|
|
259
|
+
return castFactory(all);
|
|
260
|
+
function all(node) {
|
|
260
261
|
const nodeAsRecord = (
|
|
261
262
|
/** @type {Record<string, unknown>} */
|
|
262
263
|
/** @type {unknown} */
|
|
263
|
-
|
|
264
|
+
node
|
|
264
265
|
);
|
|
265
266
|
let key;
|
|
266
267
|
for (key in check) {
|
|
@@ -271,8 +272,8 @@ function propsFactory(check) {
|
|
|
271
272
|
}
|
|
272
273
|
function typeFactory(check) {
|
|
273
274
|
return castFactory(type);
|
|
274
|
-
function type(
|
|
275
|
-
return
|
|
275
|
+
function type(node) {
|
|
276
|
+
return node && node.type === check;
|
|
276
277
|
}
|
|
277
278
|
}
|
|
278
279
|
function castFactory(testFunction) {
|
|
@@ -294,81 +295,6 @@ function ok() {
|
|
|
294
295
|
function looksLikeANode(value) {
|
|
295
296
|
return value !== null && typeof value === "object" && "type" in value;
|
|
296
297
|
}
|
|
297
|
-
function color(d) {
|
|
298
|
-
return d;
|
|
299
|
-
}
|
|
300
|
-
const empty = [];
|
|
301
|
-
const CONTINUE = true;
|
|
302
|
-
const EXIT = false;
|
|
303
|
-
const SKIP = "skip";
|
|
304
|
-
function visitParents(tree, test, visitor, reverse) {
|
|
305
|
-
let check;
|
|
306
|
-
{
|
|
307
|
-
check = test;
|
|
308
|
-
}
|
|
309
|
-
const is = convert(check);
|
|
310
|
-
const step = 1;
|
|
311
|
-
factory(tree, void 0, [])();
|
|
312
|
-
function factory(node2, index, parents) {
|
|
313
|
-
const value = (
|
|
314
|
-
/** @type {Record<string, unknown>} */
|
|
315
|
-
node2 && typeof node2 === "object" ? node2 : {}
|
|
316
|
-
);
|
|
317
|
-
if (typeof value.type === "string") {
|
|
318
|
-
const name = (
|
|
319
|
-
// `hast`
|
|
320
|
-
typeof value.tagName === "string" ? value.tagName : (
|
|
321
|
-
// `xast`
|
|
322
|
-
typeof value.name === "string" ? value.name : void 0
|
|
323
|
-
)
|
|
324
|
-
);
|
|
325
|
-
Object.defineProperty(visit2, "name", {
|
|
326
|
-
value: "node (" + color(node2.type + (name ? "<" + name + ">" : "")) + ")"
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
return visit2;
|
|
330
|
-
function visit2() {
|
|
331
|
-
let result = empty;
|
|
332
|
-
let subresult;
|
|
333
|
-
let offset;
|
|
334
|
-
let grandparents;
|
|
335
|
-
if (is(node2, index, parents[parents.length - 1] || void 0)) {
|
|
336
|
-
result = toResult(visitor(node2, parents));
|
|
337
|
-
if (result[0] === EXIT) {
|
|
338
|
-
return result;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
if ("children" in node2 && node2.children) {
|
|
342
|
-
const nodeAsParent = (
|
|
343
|
-
/** @type {UnistParent} */
|
|
344
|
-
node2
|
|
345
|
-
);
|
|
346
|
-
if (nodeAsParent.children && result[0] !== SKIP) {
|
|
347
|
-
offset = -1 + step;
|
|
348
|
-
grandparents = parents.concat(nodeAsParent);
|
|
349
|
-
while (offset > -1 && offset < nodeAsParent.children.length) {
|
|
350
|
-
const child = nodeAsParent.children[offset];
|
|
351
|
-
subresult = factory(child, offset, grandparents)();
|
|
352
|
-
if (subresult[0] === EXIT) {
|
|
353
|
-
return subresult;
|
|
354
|
-
}
|
|
355
|
-
offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
return result;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
function toResult(value) {
|
|
364
|
-
if (Array.isArray(value)) {
|
|
365
|
-
return value;
|
|
366
|
-
}
|
|
367
|
-
if (typeof value === "number") {
|
|
368
|
-
return [CONTINUE, value];
|
|
369
|
-
}
|
|
370
|
-
return value === null || value === void 0 ? empty : [value];
|
|
371
|
-
}
|
|
372
298
|
function findAndReplace(tree, list2, options) {
|
|
373
299
|
const settings = options || {};
|
|
374
300
|
const ignored = convert(settings.ignore || []);
|
|
@@ -377,7 +303,7 @@ function findAndReplace(tree, list2, options) {
|
|
|
377
303
|
while (++pairIndex < pairs.length) {
|
|
378
304
|
visitParents(tree, "text", visitor);
|
|
379
305
|
}
|
|
380
|
-
function visitor(
|
|
306
|
+
function visitor(node, parents) {
|
|
381
307
|
let index = -1;
|
|
382
308
|
let grandparent;
|
|
383
309
|
while (++index < parents.length) {
|
|
@@ -393,26 +319,26 @@ function findAndReplace(tree, list2, options) {
|
|
|
393
319
|
grandparent = parent;
|
|
394
320
|
}
|
|
395
321
|
if (grandparent) {
|
|
396
|
-
return handler(
|
|
322
|
+
return handler(node, parents);
|
|
397
323
|
}
|
|
398
324
|
}
|
|
399
|
-
function handler(
|
|
325
|
+
function handler(node, parents) {
|
|
400
326
|
const parent = parents[parents.length - 1];
|
|
401
327
|
const find = pairs[pairIndex][0];
|
|
402
328
|
const replace2 = pairs[pairIndex][1];
|
|
403
329
|
let start = 0;
|
|
404
330
|
const siblings = parent.children;
|
|
405
|
-
const index = siblings.indexOf(
|
|
331
|
+
const index = siblings.indexOf(node);
|
|
406
332
|
let change = false;
|
|
407
333
|
let nodes = [];
|
|
408
334
|
find.lastIndex = 0;
|
|
409
|
-
let match = find.exec(
|
|
335
|
+
let match = find.exec(node.value);
|
|
410
336
|
while (match) {
|
|
411
337
|
const position = match.index;
|
|
412
338
|
const matchObject = {
|
|
413
339
|
index: match.index,
|
|
414
340
|
input: match.input,
|
|
415
|
-
stack: [...parents,
|
|
341
|
+
stack: [...parents, node]
|
|
416
342
|
};
|
|
417
343
|
let value = replace2(...match, matchObject);
|
|
418
344
|
if (typeof value === "string") {
|
|
@@ -424,7 +350,7 @@ function findAndReplace(tree, list2, options) {
|
|
|
424
350
|
if (start !== position) {
|
|
425
351
|
nodes.push({
|
|
426
352
|
type: "text",
|
|
427
|
-
value:
|
|
353
|
+
value: node.value.slice(start, position)
|
|
428
354
|
});
|
|
429
355
|
}
|
|
430
356
|
if (Array.isArray(value)) {
|
|
@@ -438,15 +364,15 @@ function findAndReplace(tree, list2, options) {
|
|
|
438
364
|
if (!find.global) {
|
|
439
365
|
break;
|
|
440
366
|
}
|
|
441
|
-
match = find.exec(
|
|
367
|
+
match = find.exec(node.value);
|
|
442
368
|
}
|
|
443
369
|
if (change) {
|
|
444
|
-
if (start <
|
|
445
|
-
nodes.push({ type: "text", value:
|
|
370
|
+
if (start < node.value.length) {
|
|
371
|
+
nodes.push({ type: "text", value: node.value.slice(start) });
|
|
446
372
|
}
|
|
447
373
|
parent.children.splice(index, 1, ...nodes);
|
|
448
374
|
} else {
|
|
449
|
-
nodes = [
|
|
375
|
+
nodes = [node];
|
|
450
376
|
}
|
|
451
377
|
return index + nodes.length;
|
|
452
378
|
}
|
|
@@ -529,9 +455,9 @@ function exitLiteralAutolinkHttp(token) {
|
|
|
529
455
|
}
|
|
530
456
|
function exitLiteralAutolinkWww(token) {
|
|
531
457
|
this.config.exit.data.call(this, token);
|
|
532
|
-
const
|
|
533
|
-
ok$1(
|
|
534
|
-
|
|
458
|
+
const node = this.stack[this.stack.length - 1];
|
|
459
|
+
ok$1(node.type === "link");
|
|
460
|
+
node.url = "http://" + this.sliceSerialize(token);
|
|
535
461
|
}
|
|
536
462
|
function exitLiteralAutolinkEmail(token) {
|
|
537
463
|
this.config.exit.autolinkEmail.call(this, token);
|
|
@@ -657,10 +583,10 @@ function enterFootnoteDefinitionLabelString() {
|
|
|
657
583
|
}
|
|
658
584
|
function exitFootnoteDefinitionLabelString(token) {
|
|
659
585
|
const label = this.resume();
|
|
660
|
-
const
|
|
661
|
-
ok$1(
|
|
662
|
-
|
|
663
|
-
|
|
586
|
+
const node = this.stack[this.stack.length - 1];
|
|
587
|
+
ok$1(node.type === "footnoteDefinition");
|
|
588
|
+
node.label = label;
|
|
589
|
+
node.identifier = normalizeIdentifier(
|
|
664
590
|
this.sliceSerialize(token)
|
|
665
591
|
).toLowerCase();
|
|
666
592
|
}
|
|
@@ -675,23 +601,23 @@ function enterFootnoteCallString() {
|
|
|
675
601
|
}
|
|
676
602
|
function exitFootnoteCallString(token) {
|
|
677
603
|
const label = this.resume();
|
|
678
|
-
const
|
|
679
|
-
ok$1(
|
|
680
|
-
|
|
681
|
-
|
|
604
|
+
const node = this.stack[this.stack.length - 1];
|
|
605
|
+
ok$1(node.type === "footnoteReference");
|
|
606
|
+
node.label = label;
|
|
607
|
+
node.identifier = normalizeIdentifier(
|
|
682
608
|
this.sliceSerialize(token)
|
|
683
609
|
).toLowerCase();
|
|
684
610
|
}
|
|
685
611
|
function exitFootnoteCall(token) {
|
|
686
612
|
this.exit(token);
|
|
687
613
|
}
|
|
688
|
-
function footnoteReference(
|
|
614
|
+
function footnoteReference(node, _, state, info) {
|
|
689
615
|
const tracker = state.createTracker(info);
|
|
690
616
|
let value = tracker.move("[^");
|
|
691
617
|
const exit2 = state.enter("footnoteReference");
|
|
692
618
|
const subexit = state.enter("reference");
|
|
693
619
|
value += tracker.move(
|
|
694
|
-
state.safe(state.associationId(
|
|
620
|
+
state.safe(state.associationId(node), {
|
|
695
621
|
...tracker.current(),
|
|
696
622
|
before: value,
|
|
697
623
|
after: "]"
|
|
@@ -705,13 +631,13 @@ function footnoteReference(node2, _, state, info) {
|
|
|
705
631
|
function footnoteReferencePeek() {
|
|
706
632
|
return "[";
|
|
707
633
|
}
|
|
708
|
-
function footnoteDefinition(
|
|
634
|
+
function footnoteDefinition(node, _, state, info) {
|
|
709
635
|
const tracker = state.createTracker(info);
|
|
710
636
|
let value = tracker.move("[^");
|
|
711
637
|
const exit2 = state.enter("footnoteDefinition");
|
|
712
638
|
const subexit = state.enter("label");
|
|
713
639
|
value += tracker.move(
|
|
714
|
-
state.safe(state.associationId(
|
|
640
|
+
state.safe(state.associationId(node), {
|
|
715
641
|
...tracker.current(),
|
|
716
642
|
before: value,
|
|
717
643
|
after: "]"
|
|
@@ -719,11 +645,11 @@ function footnoteDefinition(node2, _, state, info) {
|
|
|
719
645
|
);
|
|
720
646
|
subexit();
|
|
721
647
|
value += tracker.move(
|
|
722
|
-
"]:" + (
|
|
648
|
+
"]:" + (node.children && node.children.length > 0 ? " " : "")
|
|
723
649
|
);
|
|
724
650
|
tracker.shift(4);
|
|
725
651
|
value += tracker.move(
|
|
726
|
-
state.indentLines(state.containerFlow(
|
|
652
|
+
state.indentLines(state.containerFlow(node, tracker.current()), map$2)
|
|
727
653
|
);
|
|
728
654
|
exit2();
|
|
729
655
|
return value;
|
|
@@ -768,11 +694,11 @@ function enterStrikethrough(token) {
|
|
|
768
694
|
function exitStrikethrough(token) {
|
|
769
695
|
this.exit(token);
|
|
770
696
|
}
|
|
771
|
-
function handleDelete(
|
|
697
|
+
function handleDelete(node, _, state, info) {
|
|
772
698
|
const tracker = state.createTracker(info);
|
|
773
699
|
const exit2 = state.enter("strikethrough");
|
|
774
700
|
let value = tracker.move("~~");
|
|
775
|
-
value += state.containerPhrasing(
|
|
701
|
+
value += state.containerPhrasing(node, {
|
|
776
702
|
...tracker.current(),
|
|
777
703
|
before: value,
|
|
778
704
|
after: "~"
|
|
@@ -922,13 +848,13 @@ function toAlignment(value) {
|
|
|
922
848
|
const code2 = typeof value === "string" ? value.codePointAt(0) : 0;
|
|
923
849
|
return code2 === 67 || code2 === 99 ? 99 : code2 === 76 || code2 === 108 ? 108 : code2 === 82 || code2 === 114 ? 114 : 0;
|
|
924
850
|
}
|
|
925
|
-
function blockquote(
|
|
851
|
+
function blockquote(node, _, state, info) {
|
|
926
852
|
const exit2 = state.enter("blockquote");
|
|
927
853
|
const tracker = state.createTracker(info);
|
|
928
854
|
tracker.move("> ");
|
|
929
855
|
tracker.shift(2);
|
|
930
856
|
const value = state.indentLines(
|
|
931
|
-
state.containerFlow(
|
|
857
|
+
state.containerFlow(node, tracker.current()),
|
|
932
858
|
map$1
|
|
933
859
|
);
|
|
934
860
|
exit2();
|
|
@@ -986,12 +912,12 @@ function longestStreak(value, substring) {
|
|
|
986
912
|
}
|
|
987
913
|
return max;
|
|
988
914
|
}
|
|
989
|
-
function formatCodeAsIndented(
|
|
915
|
+
function formatCodeAsIndented(node, state) {
|
|
990
916
|
return Boolean(
|
|
991
|
-
state.options.fences === false &&
|
|
992
|
-
!
|
|
993
|
-
/[^ \r\n]/.test(
|
|
994
|
-
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(
|
|
917
|
+
state.options.fences === false && node.value && // If there’s no info…
|
|
918
|
+
!node.lang && // And there’s a non-whitespace character…
|
|
919
|
+
/[^ \r\n]/.test(node.value) && // And the value doesn’t start or end in a blank…
|
|
920
|
+
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value)
|
|
995
921
|
);
|
|
996
922
|
}
|
|
997
923
|
function checkFence(state) {
|
|
@@ -1003,11 +929,11 @@ function checkFence(state) {
|
|
|
1003
929
|
}
|
|
1004
930
|
return marker;
|
|
1005
931
|
}
|
|
1006
|
-
function code$1(
|
|
932
|
+
function code$1(node, _, state, info) {
|
|
1007
933
|
const marker = checkFence(state);
|
|
1008
|
-
const raw =
|
|
934
|
+
const raw = node.value || "";
|
|
1009
935
|
const suffix = marker === "`" ? "GraveAccent" : "Tilde";
|
|
1010
|
-
if (formatCodeAsIndented(
|
|
936
|
+
if (formatCodeAsIndented(node, state)) {
|
|
1011
937
|
const exit3 = state.enter("codeIndented");
|
|
1012
938
|
const value2 = state.indentLines(raw, map);
|
|
1013
939
|
exit3();
|
|
@@ -1017,10 +943,10 @@ function code$1(node2, _, state, info) {
|
|
|
1017
943
|
const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
|
|
1018
944
|
const exit2 = state.enter("codeFenced");
|
|
1019
945
|
let value = tracker.move(sequence);
|
|
1020
|
-
if (
|
|
946
|
+
if (node.lang) {
|
|
1021
947
|
const subexit = state.enter(`codeFencedLang${suffix}`);
|
|
1022
948
|
value += tracker.move(
|
|
1023
|
-
state.safe(
|
|
949
|
+
state.safe(node.lang, {
|
|
1024
950
|
before: value,
|
|
1025
951
|
after: " ",
|
|
1026
952
|
encode: ["`"],
|
|
@@ -1029,11 +955,11 @@ function code$1(node2, _, state, info) {
|
|
|
1029
955
|
);
|
|
1030
956
|
subexit();
|
|
1031
957
|
}
|
|
1032
|
-
if (
|
|
958
|
+
if (node.lang && node.meta) {
|
|
1033
959
|
const subexit = state.enter(`codeFencedMeta${suffix}`);
|
|
1034
960
|
value += tracker.move(" ");
|
|
1035
961
|
value += tracker.move(
|
|
1036
|
-
state.safe(
|
|
962
|
+
state.safe(node.meta, {
|
|
1037
963
|
before: value,
|
|
1038
964
|
after: "\n",
|
|
1039
965
|
encode: ["`"],
|
|
@@ -1062,7 +988,7 @@ function checkQuote(state) {
|
|
|
1062
988
|
}
|
|
1063
989
|
return marker;
|
|
1064
990
|
}
|
|
1065
|
-
function definition(
|
|
991
|
+
function definition(node, _, state, info) {
|
|
1066
992
|
const quote = checkQuote(state);
|
|
1067
993
|
const suffix = quote === '"' ? "Quote" : "Apostrophe";
|
|
1068
994
|
const exit2 = state.enter("definition");
|
|
@@ -1070,7 +996,7 @@ function definition(node2, _, state, info) {
|
|
|
1070
996
|
const tracker = state.createTracker(info);
|
|
1071
997
|
let value = tracker.move("[");
|
|
1072
998
|
value += tracker.move(
|
|
1073
|
-
state.safe(state.associationId(
|
|
999
|
+
state.safe(state.associationId(node), {
|
|
1074
1000
|
before: value,
|
|
1075
1001
|
after: "]",
|
|
1076
1002
|
...tracker.current()
|
|
@@ -1080,31 +1006,31 @@ function definition(node2, _, state, info) {
|
|
|
1080
1006
|
subexit();
|
|
1081
1007
|
if (
|
|
1082
1008
|
// If there’s no url, or…
|
|
1083
|
-
!
|
|
1084
|
-
/[\0- \u007F]/.test(
|
|
1009
|
+
!node.url || // If there are control characters or whitespace.
|
|
1010
|
+
/[\0- \u007F]/.test(node.url)
|
|
1085
1011
|
) {
|
|
1086
1012
|
subexit = state.enter("destinationLiteral");
|
|
1087
1013
|
value += tracker.move("<");
|
|
1088
1014
|
value += tracker.move(
|
|
1089
|
-
state.safe(
|
|
1015
|
+
state.safe(node.url, { before: value, after: ">", ...tracker.current() })
|
|
1090
1016
|
);
|
|
1091
1017
|
value += tracker.move(">");
|
|
1092
1018
|
} else {
|
|
1093
1019
|
subexit = state.enter("destinationRaw");
|
|
1094
1020
|
value += tracker.move(
|
|
1095
|
-
state.safe(
|
|
1021
|
+
state.safe(node.url, {
|
|
1096
1022
|
before: value,
|
|
1097
|
-
after:
|
|
1023
|
+
after: node.title ? " " : "\n",
|
|
1098
1024
|
...tracker.current()
|
|
1099
1025
|
})
|
|
1100
1026
|
);
|
|
1101
1027
|
}
|
|
1102
1028
|
subexit();
|
|
1103
|
-
if (
|
|
1029
|
+
if (node.title) {
|
|
1104
1030
|
subexit = state.enter(`title${suffix}`);
|
|
1105
1031
|
value += tracker.move(" " + quote);
|
|
1106
1032
|
value += tracker.move(
|
|
1107
|
-
state.safe(
|
|
1033
|
+
state.safe(node.title, {
|
|
1108
1034
|
before: value,
|
|
1109
1035
|
after: quote,
|
|
1110
1036
|
...tracker.current()
|
|
@@ -1126,13 +1052,13 @@ function checkEmphasis(state) {
|
|
|
1126
1052
|
return marker;
|
|
1127
1053
|
}
|
|
1128
1054
|
emphasis.peek = emphasisPeek;
|
|
1129
|
-
function emphasis(
|
|
1055
|
+
function emphasis(node, _, state, info) {
|
|
1130
1056
|
const marker = checkEmphasis(state);
|
|
1131
1057
|
const exit2 = state.enter("emphasis");
|
|
1132
1058
|
const tracker = state.createTracker(info);
|
|
1133
1059
|
let value = tracker.move(marker);
|
|
1134
1060
|
value += tracker.move(
|
|
1135
|
-
state.containerPhrasing(
|
|
1061
|
+
state.containerPhrasing(node, {
|
|
1136
1062
|
before: value,
|
|
1137
1063
|
after: marker,
|
|
1138
1064
|
...tracker.current()
|
|
@@ -1145,60 +1071,45 @@ function emphasis(node2, _, state, info) {
|
|
|
1145
1071
|
function emphasisPeek(_, _1, state) {
|
|
1146
1072
|
return state.options.emphasis || "*";
|
|
1147
1073
|
}
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
if (includeImageAlt && "alt" in value && value.alt) {
|
|
1161
|
-
return value.alt;
|
|
1162
|
-
}
|
|
1163
|
-
if ("children" in value) {
|
|
1164
|
-
return all(value.children, includeImageAlt, includeHtml);
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
if (Array.isArray(value)) {
|
|
1168
|
-
return all(value, includeImageAlt, includeHtml);
|
|
1074
|
+
function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
|
|
1075
|
+
let reverse;
|
|
1076
|
+
let test;
|
|
1077
|
+
let visitor;
|
|
1078
|
+
if (typeof testOrVisitor === "function" && typeof visitorOrReverse !== "function") {
|
|
1079
|
+
test = void 0;
|
|
1080
|
+
visitor = testOrVisitor;
|
|
1081
|
+
reverse = visitorOrReverse;
|
|
1082
|
+
} else {
|
|
1083
|
+
test = testOrVisitor;
|
|
1084
|
+
visitor = visitorOrReverse;
|
|
1085
|
+
reverse = maybeReverse;
|
|
1169
1086
|
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
while (++index < values.length) {
|
|
1176
|
-
result[index] = one(values[index], includeImageAlt, includeHtml);
|
|
1087
|
+
visitParents(tree, test, overload, reverse);
|
|
1088
|
+
function overload(node, parents) {
|
|
1089
|
+
const parent = parents[parents.length - 1];
|
|
1090
|
+
const index = parent ? parent.children.indexOf(node) : void 0;
|
|
1091
|
+
return visitor(node, index, parent);
|
|
1177
1092
|
}
|
|
1178
|
-
return result.join("");
|
|
1179
|
-
}
|
|
1180
|
-
function node(value) {
|
|
1181
|
-
return Boolean(value && typeof value === "object");
|
|
1182
1093
|
}
|
|
1183
|
-
function formatHeadingAsSetext(
|
|
1094
|
+
function formatHeadingAsSetext(node, state) {
|
|
1184
1095
|
let literalWithBreak = false;
|
|
1185
|
-
visit(
|
|
1186
|
-
if ("value" in
|
|
1096
|
+
visit(node, function(node2) {
|
|
1097
|
+
if ("value" in node2 && /\r?\n|\r/.test(node2.value) || node2.type === "break") {
|
|
1187
1098
|
literalWithBreak = true;
|
|
1188
|
-
return EXIT
|
|
1099
|
+
return EXIT;
|
|
1189
1100
|
}
|
|
1190
1101
|
});
|
|
1191
1102
|
return Boolean(
|
|
1192
|
-
(!
|
|
1103
|
+
(!node.depth || node.depth < 3) && toString(node) && (state.options.setext || literalWithBreak)
|
|
1193
1104
|
);
|
|
1194
1105
|
}
|
|
1195
|
-
function heading(
|
|
1196
|
-
const rank = Math.max(Math.min(6,
|
|
1106
|
+
function heading(node, _, state, info) {
|
|
1107
|
+
const rank = Math.max(Math.min(6, node.depth || 1), 1);
|
|
1197
1108
|
const tracker = state.createTracker(info);
|
|
1198
|
-
if (formatHeadingAsSetext(
|
|
1109
|
+
if (formatHeadingAsSetext(node, state)) {
|
|
1199
1110
|
const exit3 = state.enter("headingSetext");
|
|
1200
1111
|
const subexit2 = state.enter("phrasing");
|
|
1201
|
-
const value2 = state.containerPhrasing(
|
|
1112
|
+
const value2 = state.containerPhrasing(node, {
|
|
1202
1113
|
...tracker.current(),
|
|
1203
1114
|
before: "\n",
|
|
1204
1115
|
after: "\n"
|
|
@@ -1216,7 +1127,7 @@ function heading(node2, _, state, info) {
|
|
|
1216
1127
|
const exit2 = state.enter("headingAtx");
|
|
1217
1128
|
const subexit = state.enter("phrasing");
|
|
1218
1129
|
tracker.move(sequence + " ");
|
|
1219
|
-
let value = state.containerPhrasing(
|
|
1130
|
+
let value = state.containerPhrasing(node, {
|
|
1220
1131
|
before: "# ",
|
|
1221
1132
|
after: "\n",
|
|
1222
1133
|
...tracker.current()
|
|
@@ -1233,14 +1144,14 @@ function heading(node2, _, state, info) {
|
|
|
1233
1144
|
return value;
|
|
1234
1145
|
}
|
|
1235
1146
|
html.peek = htmlPeek;
|
|
1236
|
-
function html(
|
|
1237
|
-
return
|
|
1147
|
+
function html(node) {
|
|
1148
|
+
return node.value || "";
|
|
1238
1149
|
}
|
|
1239
1150
|
function htmlPeek() {
|
|
1240
1151
|
return "<";
|
|
1241
1152
|
}
|
|
1242
1153
|
image.peek = imagePeek;
|
|
1243
|
-
function image(
|
|
1154
|
+
function image(node, _, state, info) {
|
|
1244
1155
|
const quote = checkQuote(state);
|
|
1245
1156
|
const suffix = quote === '"' ? "Quote" : "Apostrophe";
|
|
1246
1157
|
const exit2 = state.enter("image");
|
|
@@ -1248,37 +1159,37 @@ function image(node2, _, state, info) {
|
|
|
1248
1159
|
const tracker = state.createTracker(info);
|
|
1249
1160
|
let value = tracker.move("![");
|
|
1250
1161
|
value += tracker.move(
|
|
1251
|
-
state.safe(
|
|
1162
|
+
state.safe(node.alt, { before: value, after: "]", ...tracker.current() })
|
|
1252
1163
|
);
|
|
1253
1164
|
value += tracker.move("](");
|
|
1254
1165
|
subexit();
|
|
1255
1166
|
if (
|
|
1256
1167
|
// If there’s no url but there is a title…
|
|
1257
|
-
!
|
|
1258
|
-
/[\0- \u007F]/.test(
|
|
1168
|
+
!node.url && node.title || // If there are control characters or whitespace.
|
|
1169
|
+
/[\0- \u007F]/.test(node.url)
|
|
1259
1170
|
) {
|
|
1260
1171
|
subexit = state.enter("destinationLiteral");
|
|
1261
1172
|
value += tracker.move("<");
|
|
1262
1173
|
value += tracker.move(
|
|
1263
|
-
state.safe(
|
|
1174
|
+
state.safe(node.url, { before: value, after: ">", ...tracker.current() })
|
|
1264
1175
|
);
|
|
1265
1176
|
value += tracker.move(">");
|
|
1266
1177
|
} else {
|
|
1267
1178
|
subexit = state.enter("destinationRaw");
|
|
1268
1179
|
value += tracker.move(
|
|
1269
|
-
state.safe(
|
|
1180
|
+
state.safe(node.url, {
|
|
1270
1181
|
before: value,
|
|
1271
|
-
after:
|
|
1182
|
+
after: node.title ? " " : ")",
|
|
1272
1183
|
...tracker.current()
|
|
1273
1184
|
})
|
|
1274
1185
|
);
|
|
1275
1186
|
}
|
|
1276
1187
|
subexit();
|
|
1277
|
-
if (
|
|
1188
|
+
if (node.title) {
|
|
1278
1189
|
subexit = state.enter(`title${suffix}`);
|
|
1279
1190
|
value += tracker.move(" " + quote);
|
|
1280
1191
|
value += tracker.move(
|
|
1281
|
-
state.safe(
|
|
1192
|
+
state.safe(node.title, {
|
|
1282
1193
|
before: value,
|
|
1283
1194
|
after: quote,
|
|
1284
1195
|
...tracker.current()
|
|
@@ -1295,13 +1206,13 @@ function imagePeek() {
|
|
|
1295
1206
|
return "!";
|
|
1296
1207
|
}
|
|
1297
1208
|
imageReference.peek = imageReferencePeek;
|
|
1298
|
-
function imageReference(
|
|
1299
|
-
const type =
|
|
1209
|
+
function imageReference(node, _, state, info) {
|
|
1210
|
+
const type = node.referenceType;
|
|
1300
1211
|
const exit2 = state.enter("imageReference");
|
|
1301
1212
|
let subexit = state.enter("label");
|
|
1302
1213
|
const tracker = state.createTracker(info);
|
|
1303
1214
|
let value = tracker.move("![");
|
|
1304
|
-
const alt = state.safe(
|
|
1215
|
+
const alt = state.safe(node.alt, {
|
|
1305
1216
|
before: value,
|
|
1306
1217
|
after: "]",
|
|
1307
1218
|
...tracker.current()
|
|
@@ -1311,7 +1222,7 @@ function imageReference(node2, _, state, info) {
|
|
|
1311
1222
|
const stack = state.stack;
|
|
1312
1223
|
state.stack = [];
|
|
1313
1224
|
subexit = state.enter("reference");
|
|
1314
|
-
const reference = state.safe(state.associationId(
|
|
1225
|
+
const reference = state.safe(state.associationId(node), {
|
|
1315
1226
|
before: value,
|
|
1316
1227
|
after: "]",
|
|
1317
1228
|
...tracker.current()
|
|
@@ -1332,8 +1243,8 @@ function imageReferencePeek() {
|
|
|
1332
1243
|
return "!";
|
|
1333
1244
|
}
|
|
1334
1245
|
inlineCode.peek = inlineCodePeek;
|
|
1335
|
-
function inlineCode(
|
|
1336
|
-
let value =
|
|
1246
|
+
function inlineCode(node, _, state) {
|
|
1247
|
+
let value = node.value || "";
|
|
1337
1248
|
let sequence = "`";
|
|
1338
1249
|
let index = -1;
|
|
1339
1250
|
while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
|
|
@@ -1360,33 +1271,33 @@ function inlineCode(node2, _, state) {
|
|
|
1360
1271
|
function inlineCodePeek() {
|
|
1361
1272
|
return "`";
|
|
1362
1273
|
}
|
|
1363
|
-
function formatLinkAsAutolink(
|
|
1364
|
-
const raw = toString(
|
|
1274
|
+
function formatLinkAsAutolink(node, state) {
|
|
1275
|
+
const raw = toString(node);
|
|
1365
1276
|
return Boolean(
|
|
1366
1277
|
!state.options.resourceLink && // If there’s a url…
|
|
1367
|
-
|
|
1368
|
-
!
|
|
1369
|
-
|
|
1370
|
-
(raw ===
|
|
1371
|
-
/^[a-z][a-z+.-]+:/i.test(
|
|
1278
|
+
node.url && // And there’s a no title…
|
|
1279
|
+
!node.title && // And the content of `node` is a single text node…
|
|
1280
|
+
node.children && node.children.length === 1 && node.children[0].type === "text" && // And if the url is the same as the content…
|
|
1281
|
+
(raw === node.url || "mailto:" + raw === node.url) && // And that starts w/ a protocol…
|
|
1282
|
+
/^[a-z][a-z+.-]+:/i.test(node.url) && // And that doesn’t contain ASCII control codes (character escapes and
|
|
1372
1283
|
// references don’t work), space, or angle brackets…
|
|
1373
|
-
!/[\0- <>\u007F]/.test(
|
|
1284
|
+
!/[\0- <>\u007F]/.test(node.url)
|
|
1374
1285
|
);
|
|
1375
1286
|
}
|
|
1376
1287
|
link.peek = linkPeek;
|
|
1377
|
-
function link(
|
|
1288
|
+
function link(node, _, state, info) {
|
|
1378
1289
|
const quote = checkQuote(state);
|
|
1379
1290
|
const suffix = quote === '"' ? "Quote" : "Apostrophe";
|
|
1380
1291
|
const tracker = state.createTracker(info);
|
|
1381
1292
|
let exit2;
|
|
1382
1293
|
let subexit;
|
|
1383
|
-
if (formatLinkAsAutolink(
|
|
1294
|
+
if (formatLinkAsAutolink(node, state)) {
|
|
1384
1295
|
const stack = state.stack;
|
|
1385
1296
|
state.stack = [];
|
|
1386
1297
|
exit2 = state.enter("autolink");
|
|
1387
1298
|
let value2 = tracker.move("<");
|
|
1388
1299
|
value2 += tracker.move(
|
|
1389
|
-
state.containerPhrasing(
|
|
1300
|
+
state.containerPhrasing(node, {
|
|
1390
1301
|
before: value2,
|
|
1391
1302
|
after: ">",
|
|
1392
1303
|
...tracker.current()
|
|
@@ -1401,7 +1312,7 @@ function link(node2, _, state, info) {
|
|
|
1401
1312
|
subexit = state.enter("label");
|
|
1402
1313
|
let value = tracker.move("[");
|
|
1403
1314
|
value += tracker.move(
|
|
1404
|
-
state.containerPhrasing(
|
|
1315
|
+
state.containerPhrasing(node, {
|
|
1405
1316
|
before: value,
|
|
1406
1317
|
after: "](",
|
|
1407
1318
|
...tracker.current()
|
|
@@ -1411,31 +1322,31 @@ function link(node2, _, state, info) {
|
|
|
1411
1322
|
subexit();
|
|
1412
1323
|
if (
|
|
1413
1324
|
// If there’s no url but there is a title…
|
|
1414
|
-
!
|
|
1415
|
-
/[\0- \u007F]/.test(
|
|
1325
|
+
!node.url && node.title || // If there are control characters or whitespace.
|
|
1326
|
+
/[\0- \u007F]/.test(node.url)
|
|
1416
1327
|
) {
|
|
1417
1328
|
subexit = state.enter("destinationLiteral");
|
|
1418
1329
|
value += tracker.move("<");
|
|
1419
1330
|
value += tracker.move(
|
|
1420
|
-
state.safe(
|
|
1331
|
+
state.safe(node.url, { before: value, after: ">", ...tracker.current() })
|
|
1421
1332
|
);
|
|
1422
1333
|
value += tracker.move(">");
|
|
1423
1334
|
} else {
|
|
1424
1335
|
subexit = state.enter("destinationRaw");
|
|
1425
1336
|
value += tracker.move(
|
|
1426
|
-
state.safe(
|
|
1337
|
+
state.safe(node.url, {
|
|
1427
1338
|
before: value,
|
|
1428
|
-
after:
|
|
1339
|
+
after: node.title ? " " : ")",
|
|
1429
1340
|
...tracker.current()
|
|
1430
1341
|
})
|
|
1431
1342
|
);
|
|
1432
1343
|
}
|
|
1433
1344
|
subexit();
|
|
1434
|
-
if (
|
|
1345
|
+
if (node.title) {
|
|
1435
1346
|
subexit = state.enter(`title${suffix}`);
|
|
1436
1347
|
value += tracker.move(" " + quote);
|
|
1437
1348
|
value += tracker.move(
|
|
1438
|
-
state.safe(
|
|
1349
|
+
state.safe(node.title, {
|
|
1439
1350
|
before: value,
|
|
1440
1351
|
after: quote,
|
|
1441
1352
|
...tracker.current()
|
|
@@ -1448,17 +1359,17 @@ function link(node2, _, state, info) {
|
|
|
1448
1359
|
exit2();
|
|
1449
1360
|
return value;
|
|
1450
1361
|
}
|
|
1451
|
-
function linkPeek(
|
|
1452
|
-
return formatLinkAsAutolink(
|
|
1362
|
+
function linkPeek(node, _, state) {
|
|
1363
|
+
return formatLinkAsAutolink(node, state) ? "<" : "[";
|
|
1453
1364
|
}
|
|
1454
1365
|
linkReference.peek = linkReferencePeek;
|
|
1455
|
-
function linkReference(
|
|
1456
|
-
const type =
|
|
1366
|
+
function linkReference(node, _, state, info) {
|
|
1367
|
+
const type = node.referenceType;
|
|
1457
1368
|
const exit2 = state.enter("linkReference");
|
|
1458
1369
|
let subexit = state.enter("label");
|
|
1459
1370
|
const tracker = state.createTracker(info);
|
|
1460
1371
|
let value = tracker.move("[");
|
|
1461
|
-
const text2 = state.containerPhrasing(
|
|
1372
|
+
const text2 = state.containerPhrasing(node, {
|
|
1462
1373
|
before: value,
|
|
1463
1374
|
after: "]",
|
|
1464
1375
|
...tracker.current()
|
|
@@ -1468,7 +1379,7 @@ function linkReference(node2, _, state, info) {
|
|
|
1468
1379
|
const stack = state.stack;
|
|
1469
1380
|
state.stack = [];
|
|
1470
1381
|
subexit = state.enter("reference");
|
|
1471
|
-
const reference = state.safe(state.associationId(
|
|
1382
|
+
const reference = state.safe(state.associationId(node), {
|
|
1472
1383
|
before: value,
|
|
1473
1384
|
after: "]",
|
|
1474
1385
|
...tracker.current()
|
|
@@ -1533,14 +1444,14 @@ function checkRule(state) {
|
|
|
1533
1444
|
}
|
|
1534
1445
|
return marker;
|
|
1535
1446
|
}
|
|
1536
|
-
function list(
|
|
1447
|
+
function list(node, parent, state, info) {
|
|
1537
1448
|
const exit2 = state.enter("list");
|
|
1538
1449
|
const bulletCurrent = state.bulletCurrent;
|
|
1539
|
-
let bullet =
|
|
1540
|
-
const bulletOther =
|
|
1450
|
+
let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
|
|
1451
|
+
const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
|
|
1541
1452
|
let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
|
|
1542
|
-
if (!
|
|
1543
|
-
const firstListItem =
|
|
1453
|
+
if (!node.ordered) {
|
|
1454
|
+
const firstListItem = node.children ? node.children[0] : void 0;
|
|
1544
1455
|
if (
|
|
1545
1456
|
// Bullet could be used as a thematic break marker:
|
|
1546
1457
|
(bullet === "*" || bullet === "-") && // Empty first list item:
|
|
@@ -1552,8 +1463,8 @@ function list(node2, parent, state, info) {
|
|
|
1552
1463
|
}
|
|
1553
1464
|
if (checkRule(state) === bullet && firstListItem) {
|
|
1554
1465
|
let index = -1;
|
|
1555
|
-
while (++index <
|
|
1556
|
-
const item =
|
|
1466
|
+
while (++index < node.children.length) {
|
|
1467
|
+
const item = node.children[index];
|
|
1557
1468
|
if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
|
|
1558
1469
|
useDifferentMarker = true;
|
|
1559
1470
|
break;
|
|
@@ -1565,7 +1476,7 @@ function list(node2, parent, state, info) {
|
|
|
1565
1476
|
bullet = bulletOther;
|
|
1566
1477
|
}
|
|
1567
1478
|
state.bulletCurrent = bullet;
|
|
1568
|
-
const value = state.containerFlow(
|
|
1479
|
+
const value = state.containerFlow(node, info);
|
|
1569
1480
|
state.bulletLastUsed = bullet;
|
|
1570
1481
|
state.bulletCurrent = bulletCurrent;
|
|
1571
1482
|
exit2();
|
|
@@ -1580,14 +1491,14 @@ function checkListItemIndent(state) {
|
|
|
1580
1491
|
}
|
|
1581
1492
|
return style;
|
|
1582
1493
|
}
|
|
1583
|
-
function listItem(
|
|
1494
|
+
function listItem(node, parent, state, info) {
|
|
1584
1495
|
const listItemIndent = checkListItemIndent(state);
|
|
1585
1496
|
let bullet = state.bulletCurrent || checkBullet(state);
|
|
1586
1497
|
if (parent && parent.type === "list" && parent.ordered) {
|
|
1587
|
-
bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(
|
|
1498
|
+
bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
|
|
1588
1499
|
}
|
|
1589
1500
|
let size = bullet.length + 1;
|
|
1590
|
-
if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread ||
|
|
1501
|
+
if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) {
|
|
1591
1502
|
size = Math.ceil(size / 4) * 4;
|
|
1592
1503
|
}
|
|
1593
1504
|
const tracker = state.createTracker(info);
|
|
@@ -1595,7 +1506,7 @@ function listItem(node2, parent, state, info) {
|
|
|
1595
1506
|
tracker.shift(size);
|
|
1596
1507
|
const exit2 = state.enter("listItem");
|
|
1597
1508
|
const value = state.indentLines(
|
|
1598
|
-
state.containerFlow(
|
|
1509
|
+
state.containerFlow(node, tracker.current()),
|
|
1599
1510
|
map2
|
|
1600
1511
|
);
|
|
1601
1512
|
exit2();
|
|
@@ -1607,10 +1518,10 @@ function listItem(node2, parent, state, info) {
|
|
|
1607
1518
|
return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
|
|
1608
1519
|
}
|
|
1609
1520
|
}
|
|
1610
|
-
function paragraph(
|
|
1521
|
+
function paragraph(node, _, state, info) {
|
|
1611
1522
|
const exit2 = state.enter("paragraph");
|
|
1612
1523
|
const subexit = state.enter("phrasing");
|
|
1613
|
-
const value = state.containerPhrasing(
|
|
1524
|
+
const value = state.containerPhrasing(node, info);
|
|
1614
1525
|
subexit();
|
|
1615
1526
|
exit2();
|
|
1616
1527
|
return value;
|
|
@@ -1641,12 +1552,12 @@ const phrasing = (
|
|
|
1641
1552
|
"textDirective"
|
|
1642
1553
|
])
|
|
1643
1554
|
);
|
|
1644
|
-
function root(
|
|
1645
|
-
const hasPhrasing =
|
|
1555
|
+
function root(node, _, state, info) {
|
|
1556
|
+
const hasPhrasing = node.children.some(function(d) {
|
|
1646
1557
|
return phrasing(d);
|
|
1647
1558
|
});
|
|
1648
1559
|
const fn = hasPhrasing ? state.containerPhrasing : state.containerFlow;
|
|
1649
|
-
return fn.call(state,
|
|
1560
|
+
return fn.call(state, node, info);
|
|
1650
1561
|
}
|
|
1651
1562
|
function checkStrong(state) {
|
|
1652
1563
|
const marker = state.options.strong || "*";
|
|
@@ -1658,13 +1569,13 @@ function checkStrong(state) {
|
|
|
1658
1569
|
return marker;
|
|
1659
1570
|
}
|
|
1660
1571
|
strong.peek = strongPeek;
|
|
1661
|
-
function strong(
|
|
1572
|
+
function strong(node, _, state, info) {
|
|
1662
1573
|
const marker = checkStrong(state);
|
|
1663
1574
|
const exit2 = state.enter("strong");
|
|
1664
1575
|
const tracker = state.createTracker(info);
|
|
1665
1576
|
let value = tracker.move(marker + marker);
|
|
1666
1577
|
value += tracker.move(
|
|
1667
|
-
state.containerPhrasing(
|
|
1578
|
+
state.containerPhrasing(node, {
|
|
1668
1579
|
before: value,
|
|
1669
1580
|
after: marker,
|
|
1670
1581
|
...tracker.current()
|
|
@@ -1677,8 +1588,8 @@ function strong(node2, _, state, info) {
|
|
|
1677
1588
|
function strongPeek(_, _1, state) {
|
|
1678
1589
|
return state.options.strong || "*";
|
|
1679
1590
|
}
|
|
1680
|
-
function text$1(
|
|
1681
|
-
return state.safe(
|
|
1591
|
+
function text$1(node, _, state, info) {
|
|
1592
|
+
return state.safe(node.value, info);
|
|
1682
1593
|
}
|
|
1683
1594
|
function checkRuleRepetition(state) {
|
|
1684
1595
|
const repetition = state.options.ruleRepetition || 3;
|
|
@@ -1764,9 +1675,9 @@ function exitCodeText(token) {
|
|
|
1764
1675
|
if (this.data.inTable) {
|
|
1765
1676
|
value = value.replace(/\\([\\|])/g, replace);
|
|
1766
1677
|
}
|
|
1767
|
-
const
|
|
1768
|
-
ok$1(
|
|
1769
|
-
|
|
1678
|
+
const node = this.stack[this.stack.length - 1];
|
|
1679
|
+
ok$1(node.type === "inlineCode");
|
|
1680
|
+
node.value = value;
|
|
1770
1681
|
this.exit(token);
|
|
1771
1682
|
}
|
|
1772
1683
|
function replace($0, $1) {
|
|
@@ -1804,18 +1715,18 @@ function gfmTableToMarkdown(options) {
|
|
|
1804
1715
|
tableRow: handleTableRow
|
|
1805
1716
|
}
|
|
1806
1717
|
};
|
|
1807
|
-
function handleTable(
|
|
1808
|
-
return serializeData(handleTableAsData(
|
|
1718
|
+
function handleTable(node, _, state, info) {
|
|
1719
|
+
return serializeData(handleTableAsData(node, state, info), node.align);
|
|
1809
1720
|
}
|
|
1810
|
-
function handleTableRow(
|
|
1811
|
-
const row = handleTableRowAsData(
|
|
1721
|
+
function handleTableRow(node, _, state, info) {
|
|
1722
|
+
const row = handleTableRowAsData(node, state, info);
|
|
1812
1723
|
const value = serializeData([row]);
|
|
1813
1724
|
return value.slice(0, value.indexOf("\n"));
|
|
1814
1725
|
}
|
|
1815
|
-
function handleTableCell(
|
|
1726
|
+
function handleTableCell(node, _, state, info) {
|
|
1816
1727
|
const exit2 = state.enter("tableCell");
|
|
1817
1728
|
const subexit = state.enter("phrasing");
|
|
1818
|
-
const value = state.containerPhrasing(
|
|
1729
|
+
const value = state.containerPhrasing(node, {
|
|
1819
1730
|
...info,
|
|
1820
1731
|
before: around,
|
|
1821
1732
|
after: around
|
|
@@ -1835,8 +1746,8 @@ function gfmTableToMarkdown(options) {
|
|
|
1835
1746
|
stringLength
|
|
1836
1747
|
});
|
|
1837
1748
|
}
|
|
1838
|
-
function handleTableAsData(
|
|
1839
|
-
const children =
|
|
1749
|
+
function handleTableAsData(node, state, info) {
|
|
1750
|
+
const children = node.children;
|
|
1840
1751
|
let index = -1;
|
|
1841
1752
|
const result = [];
|
|
1842
1753
|
const subexit = state.enter("table");
|
|
@@ -1846,19 +1757,19 @@ function gfmTableToMarkdown(options) {
|
|
|
1846
1757
|
subexit();
|
|
1847
1758
|
return result;
|
|
1848
1759
|
}
|
|
1849
|
-
function handleTableRowAsData(
|
|
1850
|
-
const children =
|
|
1760
|
+
function handleTableRowAsData(node, state, info) {
|
|
1761
|
+
const children = node.children;
|
|
1851
1762
|
let index = -1;
|
|
1852
1763
|
const result = [];
|
|
1853
1764
|
const subexit = state.enter("tableRow");
|
|
1854
1765
|
while (++index < children.length) {
|
|
1855
|
-
result[index] = handleTableCell(children[index],
|
|
1766
|
+
result[index] = handleTableCell(children[index], node, state, info);
|
|
1856
1767
|
}
|
|
1857
1768
|
subexit();
|
|
1858
1769
|
return result;
|
|
1859
1770
|
}
|
|
1860
|
-
function inlineCodeWithTable(
|
|
1861
|
-
let value = handle.inlineCode(
|
|
1771
|
+
function inlineCodeWithTable(node, parent, state) {
|
|
1772
|
+
let value = handle.inlineCode(node, parent, state);
|
|
1862
1773
|
if (state.stack.includes("tableCell")) {
|
|
1863
1774
|
value = value.replace(/\|/g, "\\$&");
|
|
1864
1775
|
}
|
|
@@ -1881,16 +1792,16 @@ function gfmTaskListItemToMarkdown() {
|
|
|
1881
1792
|
};
|
|
1882
1793
|
}
|
|
1883
1794
|
function exitCheck(token) {
|
|
1884
|
-
const
|
|
1885
|
-
ok$1(
|
|
1886
|
-
|
|
1795
|
+
const node = this.stack[this.stack.length - 2];
|
|
1796
|
+
ok$1(node.type === "listItem");
|
|
1797
|
+
node.checked = token.type === "taskListCheckValueChecked";
|
|
1887
1798
|
}
|
|
1888
1799
|
function exitParagraphWithTaskListItem(token) {
|
|
1889
1800
|
const parent = this.stack[this.stack.length - 2];
|
|
1890
1801
|
if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
|
|
1891
|
-
const
|
|
1892
|
-
ok$1(
|
|
1893
|
-
const head =
|
|
1802
|
+
const node = this.stack[this.stack.length - 1];
|
|
1803
|
+
ok$1(node.type === "paragraph");
|
|
1804
|
+
const head = node.children[0];
|
|
1894
1805
|
if (head && head.type === "text") {
|
|
1895
1806
|
const siblings = parent.children;
|
|
1896
1807
|
let index = -1;
|
|
@@ -1902,29 +1813,29 @@ function exitParagraphWithTaskListItem(token) {
|
|
|
1902
1813
|
break;
|
|
1903
1814
|
}
|
|
1904
1815
|
}
|
|
1905
|
-
if (firstParaghraph ===
|
|
1816
|
+
if (firstParaghraph === node) {
|
|
1906
1817
|
head.value = head.value.slice(1);
|
|
1907
1818
|
if (head.value.length === 0) {
|
|
1908
|
-
|
|
1909
|
-
} else if (
|
|
1819
|
+
node.children.shift();
|
|
1820
|
+
} else if (node.position && head.position && typeof head.position.start.offset === "number") {
|
|
1910
1821
|
head.position.start.column++;
|
|
1911
1822
|
head.position.start.offset++;
|
|
1912
|
-
|
|
1823
|
+
node.position.start = Object.assign({}, head.position.start);
|
|
1913
1824
|
}
|
|
1914
1825
|
}
|
|
1915
1826
|
}
|
|
1916
1827
|
}
|
|
1917
1828
|
this.exit(token);
|
|
1918
1829
|
}
|
|
1919
|
-
function listItemWithTaskListItem(
|
|
1920
|
-
const head =
|
|
1921
|
-
const checkable = typeof
|
|
1922
|
-
const checkbox = "[" + (
|
|
1830
|
+
function listItemWithTaskListItem(node, parent, state, info) {
|
|
1831
|
+
const head = node.children[0];
|
|
1832
|
+
const checkable = typeof node.checked === "boolean" && head && head.type === "paragraph";
|
|
1833
|
+
const checkbox = "[" + (node.checked ? "x" : " ") + "] ";
|
|
1923
1834
|
const tracker = state.createTracker(info);
|
|
1924
1835
|
if (checkable) {
|
|
1925
1836
|
tracker.move(checkbox);
|
|
1926
1837
|
}
|
|
1927
|
-
let value = handle.listItem(
|
|
1838
|
+
let value = handle.listItem(node, parent, state, {
|
|
1928
1839
|
...info,
|
|
1929
1840
|
...tracker.current()
|
|
1930
1841
|
});
|
|
@@ -1983,18 +1894,18 @@ function splice(list2, start, remove, items) {
|
|
|
1983
1894
|
}
|
|
1984
1895
|
const hasOwnProperty = {}.hasOwnProperty;
|
|
1985
1896
|
function combineExtensions(extensions) {
|
|
1986
|
-
const
|
|
1897
|
+
const all = {};
|
|
1987
1898
|
let index = -1;
|
|
1988
1899
|
while (++index < extensions.length) {
|
|
1989
|
-
syntaxExtension(
|
|
1900
|
+
syntaxExtension(all, extensions[index]);
|
|
1990
1901
|
}
|
|
1991
|
-
return
|
|
1902
|
+
return all;
|
|
1992
1903
|
}
|
|
1993
|
-
function syntaxExtension(
|
|
1904
|
+
function syntaxExtension(all, extension) {
|
|
1994
1905
|
let hook;
|
|
1995
1906
|
for (hook in extension) {
|
|
1996
|
-
const maybe = hasOwnProperty.call(
|
|
1997
|
-
const left = maybe || (
|
|
1907
|
+
const maybe = hasOwnProperty.call(all, hook) ? all[hook] : void 0;
|
|
1908
|
+
const left = maybe || (all[hook] = {});
|
|
1998
1909
|
const right = extension[hook];
|
|
1999
1910
|
let code2;
|
|
2000
1911
|
if (right) {
|
|
@@ -3445,9 +3356,11 @@ var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
|
3445
3356
|
const NcRichTextCopyButton = __component__$1.exports;
|
|
3446
3357
|
function remarkPlaceholder() {
|
|
3447
3358
|
return function(ast) {
|
|
3448
|
-
|
|
3449
|
-
function visitor(
|
|
3450
|
-
const
|
|
3359
|
+
visitParents(ast, (node) => node.type === "text", visitor);
|
|
3360
|
+
function visitor(node, ancestors) {
|
|
3361
|
+
const parent = ancestors.at(-1);
|
|
3362
|
+
const index = parent.children.indexOf(node);
|
|
3363
|
+
const placeholders = node.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
|
|
3451
3364
|
const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
|
|
3452
3365
|
if (!matches) {
|
|
3453
3366
|
return u("text", entry);
|
|
@@ -3471,23 +3384,44 @@ function prepareTextNode({ h, context }, text2) {
|
|
|
3471
3384
|
return entry;
|
|
3472
3385
|
}
|
|
3473
3386
|
const { component, props } = entry;
|
|
3474
|
-
const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
|
|
3475
3387
|
return h(component, {
|
|
3476
3388
|
props,
|
|
3477
|
-
class:
|
|
3389
|
+
class: "rich-text--component"
|
|
3478
3390
|
});
|
|
3479
3391
|
});
|
|
3480
3392
|
}
|
|
3481
3393
|
return text2;
|
|
3482
3394
|
}
|
|
3395
|
+
/*!
|
|
3396
|
+
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
3397
|
+
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
3398
|
+
*/
|
|
3399
|
+
function isCodeNode(node) {
|
|
3400
|
+
return ["code", "inlineCode"].includes(node.type);
|
|
3401
|
+
}
|
|
3402
|
+
const remarkStripCode = function() {
|
|
3403
|
+
return function(tree) {
|
|
3404
|
+
visitParents(tree, isCodeNode, (node, ancestors) => {
|
|
3405
|
+
const parent = ancestors.at(-1);
|
|
3406
|
+
const index = parent.children.indexOf(node);
|
|
3407
|
+
parent.children.splice(index, 1, {
|
|
3408
|
+
...node,
|
|
3409
|
+
value: ""
|
|
3410
|
+
});
|
|
3411
|
+
return [SKIP, index + 1];
|
|
3412
|
+
});
|
|
3413
|
+
};
|
|
3414
|
+
};
|
|
3483
3415
|
function remarkUnescape() {
|
|
3484
3416
|
return function(tree) {
|
|
3485
|
-
|
|
3417
|
+
visitParents(tree, (node) => ["text", "code", "inlineCode"].includes(node.type), (node, ancestors) => {
|
|
3418
|
+
const parent = ancestors.at(-1);
|
|
3419
|
+
const index = parent.children.indexOf(node);
|
|
3486
3420
|
parent.children.splice(index, 1, {
|
|
3487
|
-
...
|
|
3488
|
-
value:
|
|
3421
|
+
...node,
|
|
3422
|
+
value: node.value.replace(/</gmi, "<").replace(/>/gmi, ">")
|
|
3489
3423
|
});
|
|
3490
|
-
return [SKIP
|
|
3424
|
+
return [SKIP, index + 1];
|
|
3491
3425
|
});
|
|
3492
3426
|
};
|
|
3493
3427
|
}
|
|
@@ -3604,8 +3538,8 @@ const _sfc_main = {
|
|
|
3604
3538
|
useExtendedMarkdown: this.useExtendedMarkdown
|
|
3605
3539
|
}).use(remarkUnescape).use(this.useExtendedMarkdown ? remarkGfm : void 0).use(breaks).use(remarkUnlinkProtocols, { except: LINK_PROTOCOLS }).use(remark2rehype, {
|
|
3606
3540
|
handlers: {
|
|
3607
|
-
component(toHast,
|
|
3608
|
-
return toHast(
|
|
3541
|
+
component(toHast, node) {
|
|
3542
|
+
return toHast(node, node.component, { value: node.value });
|
|
3609
3543
|
}
|
|
3610
3544
|
}
|
|
3611
3545
|
}).use(this.useExtendedMarkdown ? rehypeHighlight.value : void 0).use(remarkPlaceholder).use(rehypeExternalLinks, {
|
|
@@ -3668,6 +3602,15 @@ const _sfc_main = {
|
|
|
3668
3602
|
}
|
|
3669
3603
|
}, children);
|
|
3670
3604
|
}
|
|
3605
|
+
const isAllowedScheme = /^(https?:\/\/|tel:|mailto:)/.test(attrs.attrs.href);
|
|
3606
|
+
if (isAllowedScheme) {
|
|
3607
|
+
attrs.attrs.href = attrs.attrs.href.trim();
|
|
3608
|
+
return h(NcRichTextExternalLink, attrs, children);
|
|
3609
|
+
} else {
|
|
3610
|
+
delete attrs.attrs.href;
|
|
3611
|
+
delete attrs.attrs.target;
|
|
3612
|
+
return h("span", attrs, children);
|
|
3613
|
+
}
|
|
3671
3614
|
}
|
|
3672
3615
|
return h(tag, attrs, children);
|
|
3673
3616
|
}
|
|
@@ -3695,7 +3638,7 @@ const _sfc_main = {
|
|
|
3695
3638
|
this.referenceLimit > 0 ? h("div", { class: "rich-text--reference-widget" }, [
|
|
3696
3639
|
h(NcReferenceList, {
|
|
3697
3640
|
props: {
|
|
3698
|
-
text: this.text,
|
|
3641
|
+
text: this.prepareReferenceSource(this.text),
|
|
3699
3642
|
referenceData: this.references,
|
|
3700
3643
|
interactive: this.referenceInteractive,
|
|
3701
3644
|
interactiveOptIn: this.referenceInteractiveOptIn
|
|
@@ -3703,6 +3646,20 @@ const _sfc_main = {
|
|
|
3703
3646
|
})
|
|
3704
3647
|
]) : null
|
|
3705
3648
|
]);
|
|
3649
|
+
},
|
|
3650
|
+
/**
|
|
3651
|
+
* Strip content of inline code and code blocks for reference widgets
|
|
3652
|
+
* (e.g. ignore fenced links from being added as reference)
|
|
3653
|
+
*
|
|
3654
|
+
* @param {string} text - Content of the node
|
|
3655
|
+
*/
|
|
3656
|
+
prepareReferenceSource(text2) {
|
|
3657
|
+
if (!this.useMarkdown && !this.useExtendedMarkdown) {
|
|
3658
|
+
return text2;
|
|
3659
|
+
}
|
|
3660
|
+
const processor = unified();
|
|
3661
|
+
processor.compiler = (tree) => toString(tree);
|
|
3662
|
+
return processor.use(remarkParse).use(remarkStripCode).processSync(text2).value;
|
|
3706
3663
|
}
|
|
3707
3664
|
},
|
|
3708
3665
|
render(h) {
|
|
@@ -3717,11 +3674,11 @@ var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
|
3717
3674
|
_sfc_staticRenderFns,
|
|
3718
3675
|
false,
|
|
3719
3676
|
null,
|
|
3720
|
-
"
|
|
3677
|
+
"177dd7c0"
|
|
3721
3678
|
);
|
|
3722
3679
|
const NcRichText = __component__.exports;
|
|
3723
3680
|
export {
|
|
3724
3681
|
NcRichText as N,
|
|
3725
3682
|
NcReferenceList as a
|
|
3726
3683
|
};
|
|
3727
|
-
//# sourceMappingURL=NcRichText-
|
|
3684
|
+
//# sourceMappingURL=NcRichText-DZgAb6-3.mjs.map
|