@uva-glass/component-library 3.55.4 → 3.55.5
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/dist/{Accordion-BpnBHYIx.js → Accordion-DvblEUVu.js} +16 -17
- package/dist/{Accordion-BpnBHYIx.js.map → Accordion-DvblEUVu.js.map} +1 -1
- package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js → AddCatalogueLinkForm-rph4K9P0.js} +24 -25
- package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js.map → AddCatalogueLinkForm-rph4K9P0.js.map} +1 -1
- package/dist/{CheckboxButtonBar-CalU0IYK.js → CheckboxButtonBar-5UMIFMKH.js} +2 -2
- package/dist/{CheckboxButtonBar-CalU0IYK.js.map → CheckboxButtonBar-5UMIFMKH.js.map} +1 -1
- package/dist/{ControlsButton-zemVxTlg.js → ControlsButton-B1XRpMUM.js} +15 -16
- package/dist/{ControlsButton-zemVxTlg.js.map → ControlsButton-B1XRpMUM.js.map} +1 -1
- package/dist/{Drawer-Ggofac6y.js → Drawer-e7UFHVg9.js} +29 -30
- package/dist/{Drawer-Ggofac6y.js.map → Drawer-e7UFHVg9.js.map} +1 -1
- package/dist/{FieldHint-D0HtbTnt.js → FieldHint-fxnEOsVZ.js} +2 -2
- package/dist/{FieldHint-D0HtbTnt.js.map → FieldHint-fxnEOsVZ.js.map} +1 -1
- package/dist/Fieldset-0LFsZ3Mz.js +22 -0
- package/dist/{Fieldset-CoNu_Owa.js.map → Fieldset-0LFsZ3Mz.js.map} +1 -1
- package/dist/{Lexical.prod-DIglXatJ.js → Lexical.prod-sbwgNRjw.js} +575 -568
- package/dist/Lexical.prod-sbwgNRjw.js.map +1 -0
- package/dist/{LexicalClipboard.prod-Bnzu0sh_.js → LexicalClipboard.prod-DdImsyd1.js} +82 -82
- package/dist/{LexicalClipboard.prod-Bnzu0sh_.js.map → LexicalClipboard.prod-DdImsyd1.js.map} +1 -1
- package/dist/{LexicalExtension.prod-COPHoPpX.js → LexicalExtension.prod-jTSDl1mh.js} +208 -198
- package/dist/LexicalExtension.prod-jTSDl1mh.js.map +1 -0
- package/dist/{LexicalLink.prod-Bf9JUdMv.js → LexicalLink.prod-BKLNLyu8.js} +155 -149
- package/dist/LexicalLink.prod-BKLNLyu8.js.map +1 -0
- package/dist/{LexicalList.prod-DRz8vsM9.js → LexicalList.prod-DEtc4lSr.js} +222 -222
- package/dist/{LexicalList.prod-DRz8vsM9.js.map → LexicalList.prod-DEtc4lSr.js.map} +1 -1
- package/dist/{LexicalTable.prod-D16GW-aZ.js → LexicalTable.prod-CpIPDW6z.js} +436 -428
- package/dist/LexicalTable.prod-CpIPDW6z.js.map +1 -0
- package/dist/LexicalUtils.prod-DjjGkphN.js +360 -0
- package/dist/LexicalUtils.prod-DjjGkphN.js.map +1 -0
- package/dist/{LinkContextMenu-m_CGQEiX.js → LinkContextMenu-CTkNPiIW.js} +2 -2
- package/dist/{LinkContextMenu-m_CGQEiX.js.map → LinkContextMenu-CTkNPiIW.js.map} +1 -1
- package/dist/{ModalDialog-HUkDdAJ-.js → ModalDialog-N50NGnd4.js} +2 -2
- package/dist/{ModalDialog-HUkDdAJ-.js.map → ModalDialog-N50NGnd4.js.map} +1 -1
- package/dist/{PageOverlay-D_wG2oie.js → PageOverlay-S4xsqJha.js} +2 -2
- package/dist/{PageOverlay-D_wG2oie.js.map → PageOverlay-S4xsqJha.js.map} +1 -1
- package/dist/{PasteHandlerPlugin-DjD1wryY.js → PasteHandlerPlugin-YpQruA-w.js} +4 -4
- package/dist/{PasteHandlerPlugin-DjD1wryY.js.map → PasteHandlerPlugin-YpQruA-w.js.map} +1 -1
- package/dist/{RteEditor.module-Jk80F1FA.js → RteEditor.module-BJLUYSpf.js} +9 -10
- package/dist/{RteEditor.module-Jk80F1FA.js.map → RteEditor.module-BJLUYSpf.js.map} +1 -1
- package/dist/{Sortable.module-BTUOSbOU.js → Sortable.module-8SoaHfuE.js} +6 -7
- package/dist/{Sortable.module-BTUOSbOU.js.map → Sortable.module-8SoaHfuE.js.map} +1 -1
- package/dist/{SortableProvider-Dc7hwkb5.js → SortableProvider-8HYiBXJS.js} +2 -2
- package/dist/{SortableProvider-Dc7hwkb5.js.map → SortableProvider-8HYiBXJS.js.map} +1 -1
- package/dist/Spinner-BpElTDIu.js +30 -0
- package/dist/{Spinner-D8tWqg9j.js.map → Spinner-BpElTDIu.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-CgYsYsuY.js → TableCellResizerPlugin-Ceof6StD.js} +17 -17
- package/dist/{TableCellResizerPlugin-CgYsYsuY.js.map → TableCellResizerPlugin-Ceof6StD.js.map} +1 -1
- package/dist/{TextArea-DqKIpOfT.js → TextArea-CuASC9bX.js} +16 -17
- package/dist/{TextArea-DqKIpOfT.js.map → TextArea-CuASC9bX.js.map} +1 -1
- package/dist/{Tooltip-BzB3jznk.js → Tooltip-D27p9kh4.js} +13 -14
- package/dist/{Tooltip-BzB3jznk.js.map → Tooltip-D27p9kh4.js.map} +1 -1
- package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js → chunk-SZQXB3JV-KiB8lSa9.js} +5 -5
- package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js.map → chunk-SZQXB3JV-KiB8lSa9.js.map} +1 -1
- package/dist/{client-UU-mS47K.js → client-CHQ7u_QI.js} +9 -9
- package/dist/{client-UU-mS47K.js.map → client-CHQ7u_QI.js.map} +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.stories.js +1 -1
- package/dist/components/Accordion/Accordion.test.js +4 -7
- package/dist/components/Accordion/Accordion.test.js.map +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionCard/AccordionCard.test.js +3 -6
- package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
- package/dist/components/ActionList/ActionList.test.js +3 -6
- package/dist/components/ActionList/ActionList.test.js.map +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -5
- package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
- package/dist/components/Attention/Attention.test.js +2 -5
- package/dist/components/Attention/Attention.test.js.map +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +2 -5
- package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +2 -5
- package/dist/components/Buttons/Button.test.js.map +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +2 -5
- package/dist/components/Buttons/LinkButton.test.js.map +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +2 -5
- package/dist/components/Buttons/MenuButton.test.js.map +1 -1
- package/dist/components/Card/Card.test.js +2 -5
- package/dist/components/Card/Card.test.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +3 -6
- package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +2 -2
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -6
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/index.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -4
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/CheckboxTree/index.js +1 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +2 -2
- package/dist/components/ControlsButton/index.js +1 -1
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +2 -2
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -5
- package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
- package/dist/components/FieldHint/FieldHint.js +1 -1
- package/dist/components/FieldHint/FieldHint.stories.js +1 -1
- package/dist/components/FieldHint/index.js +1 -1
- package/dist/components/Fieldset/Fieldset.js +1 -1
- package/dist/components/Fieldset/Fieldset.stories.js +1 -1
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -2
- package/dist/components/FormInput/FormInput.stories.js +2 -3
- package/dist/components/FormInput/FormInput.stories.js.map +1 -1
- package/dist/components/FormInput/index.js +1 -2
- package/dist/components/IconButton/IconButton.stories.js +6 -7
- package/dist/components/IconButton/IconButton.stories.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -3
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/Label/Label.test.js +2 -5
- package/dist/components/Label/Label.test.js.map +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -4
- package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
- package/dist/components/ModalDialog/ModalDialog.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +2 -2
- package/dist/components/ModalDialog/index.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -3
- package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -2
- package/dist/components/MultiSelect/index.js +1 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -5
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +2 -5
- package/dist/components/Notification/Notification.test.js.map +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +6 -7
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
- package/dist/components/PageOverlay/PageOverlay.js +1 -1
- package/dist/components/PageOverlay/PageOverlay.stories.js +1 -1
- package/dist/components/PageOverlay/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -3
- package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
- package/dist/components/PeriodSelector/index.js +1 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +0 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -5
- package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -3
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
- package/dist/components/RadioTabSelector/index.js +1 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -2
- package/dist/components/RteEditor/EditorHeader/index.js +1 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +30 -30
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +6 -6
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +16 -16
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/index.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +1 -2
- package/dist/components/RteEditor/RteEditor.stories.js +1 -2
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
- package/dist/components/RteEditor/helpers.js +5 -5
- package/dist/components/RteEditor/index.js +1 -2
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +14 -14
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +19 -19
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableHandle.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +2 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/Spinner.stories.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -5
- package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +2 -2
- package/dist/components/TextArea/TextArea.test.js +4 -7
- package/dist/components/TextArea/TextArea.test.js.map +1 -1
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.stories.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -6
- package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
- package/dist/components/index.js +12 -13
- package/dist/{components-MNvdQLv1.js → components-DAwjkky5.js} +436 -436
- package/dist/components-DAwjkky5.js.map +1 -0
- package/dist/{dist-2TKCXdYZ.js → dist-BIkFjHck.js} +181 -181
- package/dist/{dist-2TKCXdYZ.js.map → dist-BIkFjHck.js.map} +1 -1
- package/dist/{esm-UNe_gmRA.js → esm-ipAmzhQq.js} +4 -4
- package/dist/{esm-UNe_gmRA.js.map → esm-ipAmzhQq.js.map} +1 -1
- package/dist/{helpers-BBSxTGRl.js → helpers-MNJmfDe_.js} +7 -7
- package/dist/{helpers-BBSxTGRl.js.map → helpers-MNJmfDe_.js.map} +1 -1
- package/dist/index.js +12 -13
- package/dist/{react-18-CRbkdI-3.js → react-18-Dwpebadr.js} +2 -2
- package/dist/{react-18-CRbkdI-3.js.map → react-18-Dwpebadr.js.map} +1 -1
- package/dist/{react.esm-CzIhAqlo.js → react.esm-R7eBXTUI.js} +587 -587
- package/dist/{react.esm-CzIhAqlo.js.map → react.esm-R7eBXTUI.js.map} +1 -1
- package/dist/setupTests.js +1 -2
- package/dist/setupTests.js.map +1 -1
- package/dist/storybook__react.d.js +97 -97
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-DQruvi8i.js → test-Cr_l59hN.js} +12 -10
- package/dist/{test-DQruvi8i.js.map → test-Cr_l59hN.js.map} +1 -1
- package/package.json +27 -27
- package/dist/Fieldset-CoNu_Owa.js +0 -23
- package/dist/Lexical.prod-DIglXatJ.js.map +0 -1
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +0 -1
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +0 -1
- package/dist/LexicalTable.prod-D16GW-aZ.js.map +0 -1
- package/dist/LexicalUtils.prod-BBTLliac.js +0 -360
- package/dist/LexicalUtils.prod-BBTLliac.js.map +0 -1
- package/dist/Spinner-D8tWqg9j.js +0 -31
- package/dist/components-MNvdQLv1.js.map +0 -1
- /package/dist/assets/favicon/{android-chrome-192x192.png → src/assets/favicon/android-chrome-192x192.png} +0 -0
- /package/dist/assets/favicon/{android-chrome-512x512.png → src/assets/favicon/android-chrome-512x512.png} +0 -0
- /package/dist/assets/favicon/{apple-touch-icon.png → src/assets/favicon/apple-touch-icon.png} +0 -0
- /package/dist/assets/favicon/{favicon-16x16.png → src/assets/favicon/favicon-16x16.png} +0 -0
- /package/dist/assets/favicon/{favicon-32x32.png → src/assets/favicon/favicon-32x32.png} +0 -0
- /package/dist/assets/favicon/{favicon.ico → src/assets/favicon/favicon.ico} +0 -0
- /package/dist/assets/favicon/{favicon.svg → src/assets/favicon/favicon.svg} +0 -0
- /package/dist/assets/favicon/{site.webmanifest → src/assets/favicon/site.webmanifest} +0 -0
- /package/dist/assets/fonts/{SourceSans3-Regular.otf.woff → src/assets/fonts/SourceSans3-Regular.otf.woff} +0 -0
- /package/dist/assets/fonts/{SourceSans3-Regular.otf.woff2 → src/assets/fonts/SourceSans3-Regular.otf.woff2} +0 -0
- /package/dist/assets/fonts/{SourceSans3-Semibold.otf.woff → src/assets/fonts/SourceSans3-Semibold.otf.woff} +0 -0
- /package/dist/assets/fonts/{SourceSans3-Semibold.otf.woff2 → src/assets/fonts/SourceSans3-Semibold.otf.woff2} +0 -0
- /package/dist/assets/{fonts.css → src/css/fonts.css} +0 -0
- /package/dist/assets/{globals.css → src/css/globals.css} +0 -0
- /package/dist/assets/{variables.css → src/css/variables.css} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
1
|
+
import { $ as e, B as t, Bn as n, C as r, Dt as i, En as a, Jt as o, Mt as s, Pn as c, S as l, St as u, Vt as d, X as f, Zt as p, an as m, dn as h, et as g, f as _, fn as ee, h as te, j as ne, jt as re, m as v, on as y, pt as b, r as x, tt as S, un as ie, vn as C, wt as ae, zn as w } from "./Lexical.prod-sbwgNRjw.js";
|
|
2
|
+
import { a as oe, o as se } from "./LexicalUtils.prod-DjjGkphN.js";
|
|
3
|
+
import { o as ce, t as T } from "./LexicalExtension.prod-jTSDl1mh.js";
|
|
4
4
|
//#region node_modules/@lexical/link/LexicalLink.prod.mjs
|
|
5
|
-
var
|
|
5
|
+
var E = new Set([
|
|
6
6
|
"http:",
|
|
7
7
|
"https:",
|
|
8
8
|
"mailto:",
|
|
9
9
|
"sms:",
|
|
10
10
|
"tel:"
|
|
11
|
-
]),
|
|
11
|
+
]), D = class t extends e {
|
|
12
12
|
__url;
|
|
13
13
|
__target;
|
|
14
14
|
__rel;
|
|
@@ -16,12 +16,12 @@ var le = new Set([
|
|
|
16
16
|
static getType() {
|
|
17
17
|
return "link";
|
|
18
18
|
}
|
|
19
|
-
static clone(
|
|
20
|
-
return new e
|
|
21
|
-
rel:
|
|
22
|
-
target:
|
|
23
|
-
title:
|
|
24
|
-
},
|
|
19
|
+
static clone(e) {
|
|
20
|
+
return new t(e.__url, {
|
|
21
|
+
rel: e.__rel,
|
|
22
|
+
target: e.__target,
|
|
23
|
+
title: e.__title
|
|
24
|
+
}, e.__key);
|
|
25
25
|
}
|
|
26
26
|
constructor(e = "", t = {}, n) {
|
|
27
27
|
super(n);
|
|
@@ -33,10 +33,10 @@ var le = new Set([
|
|
|
33
33
|
}
|
|
34
34
|
createDOM(e) {
|
|
35
35
|
let t = document.createElement("a");
|
|
36
|
-
return this.updateLinkDOM(null, t, e),
|
|
36
|
+
return this.updateLinkDOM(null, t, e), h(t, e.theme.link), t;
|
|
37
37
|
}
|
|
38
38
|
updateLinkDOM(e, t, n) {
|
|
39
|
-
if (
|
|
39
|
+
if (S(t)) {
|
|
40
40
|
e && e.__url === this.__url || (t.href = this.sanitizeUrl(this.__url));
|
|
41
41
|
for (let n of [
|
|
42
42
|
"target",
|
|
@@ -53,7 +53,7 @@ var le = new Set([
|
|
|
53
53
|
}
|
|
54
54
|
static importDOM() {
|
|
55
55
|
return { a: (e) => ({
|
|
56
|
-
conversion:
|
|
56
|
+
conversion: ue,
|
|
57
57
|
priority: 1
|
|
58
58
|
}) };
|
|
59
59
|
}
|
|
@@ -67,7 +67,7 @@ var le = new Set([
|
|
|
67
67
|
e = z(e);
|
|
68
68
|
try {
|
|
69
69
|
let t = new URL(z(e));
|
|
70
|
-
if (!
|
|
70
|
+
if (!E.has(t.protocol)) return "about:blank";
|
|
71
71
|
} catch {
|
|
72
72
|
return e;
|
|
73
73
|
}
|
|
@@ -111,7 +111,7 @@ var le = new Set([
|
|
|
111
111
|
return t.__title = e, t;
|
|
112
112
|
}
|
|
113
113
|
insertNewAfter(e, t = !0) {
|
|
114
|
-
let n =
|
|
114
|
+
let n = m(this);
|
|
115
115
|
return this.insertAfter(n, t), n;
|
|
116
116
|
}
|
|
117
117
|
canInsertTextBefore() {
|
|
@@ -127,7 +127,7 @@ var le = new Set([
|
|
|
127
127
|
return !0;
|
|
128
128
|
}
|
|
129
129
|
extractWithChild(e, t, n) {
|
|
130
|
-
if (!
|
|
130
|
+
if (!c(t)) return !1;
|
|
131
131
|
let r = t.anchor.getNode(), i = t.focus.getNode();
|
|
132
132
|
return this.isParentOf(r) && this.isParentOf(i) && t.getTextContent().length > 0;
|
|
133
133
|
}
|
|
@@ -141,41 +141,47 @@ var le = new Set([
|
|
|
141
141
|
return this.getType() === e.getType() && this.__url === e.__url && this.__target === e.__target && this.__rel === e.__rel && this.__title === e.__title;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
|
-
function
|
|
145
|
-
let t =
|
|
144
|
+
function O(e) {
|
|
145
|
+
let t = g(e, "next");
|
|
146
146
|
return [t, t.getFlipped()];
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function k(e, t) {
|
|
149
149
|
for (let n of t) if (n.origin.isAttached()) {
|
|
150
|
-
|
|
150
|
+
te(e, u(n));
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
let
|
|
154
|
+
function le(e) {
|
|
155
|
+
let n = x(), r = null, i = null;
|
|
156
156
|
function a() {
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
let
|
|
161
|
-
for (let
|
|
162
|
-
let
|
|
163
|
-
if (v(
|
|
164
|
-
let i =
|
|
157
|
+
c(n) && (k(n.anchor, r), k(n.focus, i), _(n));
|
|
158
|
+
}
|
|
159
|
+
c(n) && (r = O(n.anchor), i = O(n.focus));
|
|
160
|
+
let o = !1;
|
|
161
|
+
for (let n of w(e, "next")) {
|
|
162
|
+
let r = n.origin;
|
|
163
|
+
if (v(r) && !r.isInline()) {
|
|
164
|
+
let i = r.getChildren();
|
|
165
165
|
if (i.length > 0) {
|
|
166
|
-
let t =
|
|
167
|
-
t.append(...i),
|
|
166
|
+
let t = m(e);
|
|
167
|
+
t.append(...i), r.append(t), o = !0;
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
oe(r, t(n), { $shouldSplit: () => !1 });
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
+
function s(e, t, n) {
|
|
173
|
+
let [r, i] = e, a = (e) => d(e) && e.origin.is(t);
|
|
174
|
+
if (!a(r) && !a(i)) return e;
|
|
175
|
+
let o = u(w(n, "next"));
|
|
176
|
+
return [o, o.getFlipped()];
|
|
177
|
+
}
|
|
172
178
|
if (e.isAttached()) {
|
|
173
179
|
let t = e.getPreviousSibling();
|
|
174
|
-
if (j(t) && t.shouldMergeAdjacentLink(e)) return t.append(...e.getChildren()), e.remove(), void a();
|
|
180
|
+
if (j(t) && t.shouldMergeAdjacentLink(e)) return r &&= s(r, t, e), i &&= s(i, t, e), t.append(...e.getChildren()), e.remove(), void a();
|
|
175
181
|
let n = e.getNextSibling();
|
|
176
|
-
j(n) && e.shouldMergeAdjacentLink(n) && (e.append(...n.getChildren()), n.remove(),
|
|
182
|
+
j(n) && e.shouldMergeAdjacentLink(n) && (r &&= s(r, e, n), i &&= s(i, e, n), e.append(...n.getChildren()), n.remove(), o = !0);
|
|
177
183
|
}
|
|
178
|
-
if (
|
|
184
|
+
if (o) {
|
|
179
185
|
if (!e.canBeEmpty() && e.isEmpty()) {
|
|
180
186
|
let t = e.getParent();
|
|
181
187
|
e.remove(), t && t.isEmpty() && t.remove();
|
|
@@ -183,9 +189,9 @@ function O(e) {
|
|
|
183
189
|
a();
|
|
184
190
|
}
|
|
185
191
|
}
|
|
186
|
-
function
|
|
192
|
+
function ue(e) {
|
|
187
193
|
let t = null;
|
|
188
|
-
if (
|
|
194
|
+
if (S(e)) {
|
|
189
195
|
let n = e.textContent;
|
|
190
196
|
(n !== null && n !== "" || e.children.length > 0) && (t = A(e.getAttribute("href") || "", {
|
|
191
197
|
rel: e.getAttribute("rel"),
|
|
@@ -196,12 +202,12 @@ function k(e) {
|
|
|
196
202
|
return { node: t };
|
|
197
203
|
}
|
|
198
204
|
function A(e = "", t) {
|
|
199
|
-
return
|
|
205
|
+
return b(new D(e, t));
|
|
200
206
|
}
|
|
201
207
|
function j(e) {
|
|
202
|
-
return e instanceof
|
|
208
|
+
return e instanceof D;
|
|
203
209
|
}
|
|
204
|
-
var M = class e extends
|
|
210
|
+
var M = class e extends D {
|
|
205
211
|
__isUnlinked;
|
|
206
212
|
constructor(e = "", t = {}, n) {
|
|
207
213
|
super(e, t, n), this.__isUnlinked = t.isUnlinked !== void 0 && t.isUnlinked !== null && t.isUnlinked;
|
|
@@ -262,12 +268,12 @@ var M = class e extends T {
|
|
|
262
268
|
}
|
|
263
269
|
};
|
|
264
270
|
function N(e = "", t) {
|
|
265
|
-
return
|
|
271
|
+
return b(new M(e, t));
|
|
266
272
|
}
|
|
267
273
|
function P(e) {
|
|
268
274
|
return e instanceof M;
|
|
269
275
|
}
|
|
270
|
-
var F =
|
|
276
|
+
var F = ee("TOGGLE_LINK_COMMAND");
|
|
271
277
|
function I(e, t) {
|
|
272
278
|
if (e.type === "element") {
|
|
273
279
|
let n = e.getNode();
|
|
@@ -289,21 +295,21 @@ function L(e, t = {}) {
|
|
|
289
295
|
...t
|
|
290
296
|
};
|
|
291
297
|
} else n = e;
|
|
292
|
-
let { target: r, title:
|
|
293
|
-
if (s === null || !
|
|
298
|
+
let { target: r, title: a } = t, o = t.rel === void 0 ? "noreferrer" : t.rel, s = x();
|
|
299
|
+
if (s === null || !c(s) && !f(s)) return;
|
|
294
300
|
if (f(s)) {
|
|
295
301
|
let e = s.getNodes();
|
|
296
302
|
if (e.length === 0) return;
|
|
297
303
|
e.forEach((e) => {
|
|
298
304
|
if (n === null) {
|
|
299
|
-
let t =
|
|
305
|
+
let t = i(e, (e) => !P(e) && j(e));
|
|
300
306
|
t && (t.insertBefore(e), t.getChildren().length === 0 && t.remove());
|
|
301
307
|
} else {
|
|
302
|
-
let t =
|
|
303
|
-
if (t) t.setURL(n), r !== void 0 && t.setTarget(r),
|
|
308
|
+
let t = i(e, (e) => !P(e) && j(e));
|
|
309
|
+
if (t) t.setURL(n), r !== void 0 && t.setTarget(r), o !== void 0 && t.setRel(o);
|
|
304
310
|
else {
|
|
305
311
|
let t = A(n, {
|
|
306
|
-
rel:
|
|
312
|
+
rel: o,
|
|
307
313
|
target: r
|
|
308
314
|
});
|
|
309
315
|
e.insertBefore(t), t.append(e);
|
|
@@ -313,7 +319,7 @@ function L(e, t = {}) {
|
|
|
313
319
|
return;
|
|
314
320
|
}
|
|
315
321
|
if (s.isCollapsed() && n === null) for (let e of s.getNodes()) {
|
|
316
|
-
let t =
|
|
322
|
+
let t = i(e, (e) => !P(e) && j(e));
|
|
317
323
|
t !== null && (t.getChildren().forEach((e) => {
|
|
318
324
|
t.insertBefore(e);
|
|
319
325
|
}), t.remove());
|
|
@@ -323,7 +329,7 @@ function L(e, t = {}) {
|
|
|
323
329
|
if (n === null) {
|
|
324
330
|
let e = /* @__PURE__ */ new Set();
|
|
325
331
|
l.forEach((t) => {
|
|
326
|
-
let n =
|
|
332
|
+
let n = i(t, (e) => !P(e) && j(e));
|
|
327
333
|
if (n !== null) {
|
|
328
334
|
let t = n.getKey();
|
|
329
335
|
if (e.has(t)) return;
|
|
@@ -337,7 +343,7 @@ function L(e, t = {}) {
|
|
|
337
343
|
for (let t = a.length - 1; t >= 0; t--) e.insertAfter(a[t]);
|
|
338
344
|
let t = r.slice(s + 1);
|
|
339
345
|
if (t.length > 0) {
|
|
340
|
-
let n =
|
|
346
|
+
let n = m(e);
|
|
341
347
|
a[a.length - 1].insertAfter(n), t.forEach((e) => n.append(e));
|
|
342
348
|
}
|
|
343
349
|
}
|
|
@@ -347,38 +353,38 @@ function L(e, t = {}) {
|
|
|
347
353
|
return;
|
|
348
354
|
}
|
|
349
355
|
let u = /* @__PURE__ */ new Set(), d = (e) => {
|
|
350
|
-
u.has(e.getKey()) || (u.add(e.getKey()), e.setURL(n), r !== void 0 && e.setTarget(r),
|
|
356
|
+
u.has(e.getKey()) || (u.add(e.getKey()), e.setURL(n), r !== void 0 && e.setTarget(r), o !== void 0 && e.setRel(o), a !== void 0 && e.setTitle(a));
|
|
351
357
|
};
|
|
352
358
|
if (l.length === 1) {
|
|
353
|
-
let e = l[0], t =
|
|
359
|
+
let e = l[0], t = i(e, j);
|
|
354
360
|
if (t !== null) return d(t);
|
|
355
361
|
}
|
|
356
362
|
(function(e) {
|
|
357
363
|
let t = x();
|
|
358
|
-
if (!
|
|
359
|
-
let n =
|
|
364
|
+
if (!c(t)) return e();
|
|
365
|
+
let n = _(t), r = n.isBackward(), i = I(n.anchor, r ? -1 : 0), a = I(n.focus, r ? 0 : -1);
|
|
360
366
|
if (e(), i || a) {
|
|
361
367
|
let e = x();
|
|
362
|
-
if (
|
|
368
|
+
if (c(e)) {
|
|
363
369
|
let t = e.clone();
|
|
364
370
|
if (i) {
|
|
365
371
|
let e = i.getParent();
|
|
366
|
-
e && t.anchor.set(e.getKey(), i.getIndexWithinParent() +
|
|
372
|
+
e && t.anchor.set(e.getKey(), i.getIndexWithinParent() + +!!r, "element");
|
|
367
373
|
}
|
|
368
374
|
if (a) {
|
|
369
375
|
let e = a.getParent();
|
|
370
|
-
e && t.focus.set(e.getKey(), a.getIndexWithinParent() +
|
|
376
|
+
e && t.focus.set(e.getKey(), a.getIndexWithinParent() + +!r, "element");
|
|
371
377
|
}
|
|
372
|
-
|
|
378
|
+
ae(_(t));
|
|
373
379
|
}
|
|
374
380
|
}
|
|
375
381
|
})(() => {
|
|
376
382
|
let e = null;
|
|
377
383
|
for (let t of l) {
|
|
378
384
|
if (!t.isAttached()) continue;
|
|
379
|
-
let
|
|
380
|
-
if (
|
|
381
|
-
d(
|
|
385
|
+
let s = i(t, j);
|
|
386
|
+
if (s) {
|
|
387
|
+
d(s);
|
|
382
388
|
continue;
|
|
383
389
|
}
|
|
384
390
|
if (v(t)) {
|
|
@@ -393,11 +399,11 @@ function L(e, t = {}) {
|
|
|
393
399
|
continue;
|
|
394
400
|
}
|
|
395
401
|
}
|
|
396
|
-
let
|
|
397
|
-
j(
|
|
398
|
-
rel:
|
|
402
|
+
let c = t.getPreviousSibling();
|
|
403
|
+
j(c) && c.is(e) ? c.append(t) : (e = A(n, {
|
|
404
|
+
rel: o,
|
|
399
405
|
target: r,
|
|
400
|
-
title:
|
|
406
|
+
title: a
|
|
401
407
|
}), t.insertAfter(e), e.append(t));
|
|
402
408
|
}
|
|
403
409
|
});
|
|
@@ -407,7 +413,7 @@ function z(e) {
|
|
|
407
413
|
return e.match(/^[a-z][a-z0-9+.-]*:/i) || e.match(/^[/#.]/) ? e : e.includes("@") ? `mailto:${e}` : R.test(e) ? `tel:${e}` : `https://${e}`;
|
|
408
414
|
}
|
|
409
415
|
function B(e, t) {
|
|
410
|
-
return
|
|
416
|
+
return p(e.registerNodeTransform(D, le), e.registerCommand(F, (e) => {
|
|
411
417
|
let n = t.validateUrl.peek(), r = t.attributes.peek();
|
|
412
418
|
if (e === null) return L(null), !0;
|
|
413
419
|
if (typeof e == "string") return !(n !== void 0 && !n(e)) && (L(e, r), !0);
|
|
@@ -420,13 +426,13 @@ function B(e, t) {
|
|
|
420
426
|
title: a
|
|
421
427
|
}), !0;
|
|
422
428
|
}
|
|
423
|
-
}, 0),
|
|
429
|
+
}, 0), ce(() => {
|
|
424
430
|
let n = t.validateUrl.value;
|
|
425
431
|
if (!n) return;
|
|
426
432
|
let r = t.attributes.value;
|
|
427
|
-
return e.registerCommand(
|
|
433
|
+
return e.registerCommand(o, (t) => {
|
|
428
434
|
let i = x();
|
|
429
|
-
if (!
|
|
435
|
+
if (!c(i) || i.isCollapsed() || !se(t, ClipboardEvent) || t.clipboardData === null) return !1;
|
|
430
436
|
let a = t.clipboardData.getData("text");
|
|
431
437
|
return !!n(a) && !i.getNodes().some((e) => v(e)) && (e.dispatchCommand(F, {
|
|
432
438
|
...r,
|
|
@@ -435,8 +441,8 @@ function B(e, t) {
|
|
|
435
441
|
}, 1);
|
|
436
442
|
}));
|
|
437
443
|
}
|
|
438
|
-
var V =
|
|
439
|
-
build: (e, t, n) =>
|
|
444
|
+
var V = r({
|
|
445
|
+
build: (e, t, n) => T(t),
|
|
440
446
|
config: {
|
|
441
447
|
attributes: void 0,
|
|
442
448
|
validateUrl: void 0
|
|
@@ -446,21 +452,21 @@ var V = e({
|
|
|
446
452
|
return e.attributes && (n.attributes = a(e.attributes, n.attributes)), n;
|
|
447
453
|
},
|
|
448
454
|
name: "@lexical/link/Link",
|
|
449
|
-
nodes: () => [
|
|
455
|
+
nodes: () => [D],
|
|
450
456
|
register: (e, t, n) => B(e, n.getOutput())
|
|
451
457
|
});
|
|
452
458
|
function H(e, t, n = {}) {
|
|
453
459
|
let r = (n) => {
|
|
454
460
|
let r = n.target;
|
|
455
|
-
if (!
|
|
456
|
-
let
|
|
457
|
-
if (
|
|
458
|
-
let
|
|
459
|
-
if (
|
|
461
|
+
if (!l(r)) return;
|
|
462
|
+
let a = ie(r);
|
|
463
|
+
if (a === null) return;
|
|
464
|
+
let o = null, s = null;
|
|
465
|
+
if (a.update(() => {
|
|
460
466
|
let e = ne(r);
|
|
461
467
|
if (e !== null) {
|
|
462
|
-
let n =
|
|
463
|
-
if (!t.disabled.peek()) if (j(n))
|
|
468
|
+
let n = i(e, v);
|
|
469
|
+
if (!t.disabled.peek()) if (j(n)) o = n.sanitizeUrl(n.getURL()), s = n.getTarget();
|
|
464
470
|
else {
|
|
465
471
|
let e = function(e, t) {
|
|
466
472
|
let n = e;
|
|
@@ -469,27 +475,27 @@ function H(e, t, n = {}) {
|
|
|
469
475
|
n = n.parentNode;
|
|
470
476
|
}
|
|
471
477
|
return null;
|
|
472
|
-
}(r,
|
|
473
|
-
e !== null && (
|
|
478
|
+
}(r, S);
|
|
479
|
+
e !== null && (o = e.href, s = e.target);
|
|
474
480
|
}
|
|
475
481
|
}
|
|
476
|
-
}),
|
|
477
|
-
let
|
|
478
|
-
if (
|
|
482
|
+
}), o === null || o === "") return;
|
|
483
|
+
let u = e.getEditorState().read(x);
|
|
484
|
+
if (c(u) && !u.isCollapsed()) return void n.preventDefault();
|
|
479
485
|
let d = n.type === "auxclick" && n.button === 1;
|
|
480
|
-
window.open(
|
|
481
|
-
},
|
|
486
|
+
window.open(o, t.newTab.peek() || d || n.metaKey || n.ctrlKey || s === "_blank" ? "_blank" : "_self"), n.preventDefault();
|
|
487
|
+
}, a = (e) => {
|
|
482
488
|
e.button === 1 && r(e);
|
|
483
489
|
};
|
|
484
490
|
return e.registerRootListener((e) => {
|
|
485
|
-
if (e) return e.addEventListener("click", r, n), e.addEventListener("mouseup",
|
|
486
|
-
e.removeEventListener("click", r), e.removeEventListener("mouseup",
|
|
491
|
+
if (e) return e.addEventListener("click", r, n), e.addEventListener("mouseup", a, n), () => {
|
|
492
|
+
e.removeEventListener("click", r), e.removeEventListener("mouseup", a);
|
|
487
493
|
};
|
|
488
494
|
});
|
|
489
495
|
}
|
|
490
|
-
|
|
491
|
-
build: (e, t, n) =>
|
|
492
|
-
config:
|
|
496
|
+
r({
|
|
497
|
+
build: (e, t, n) => T(t),
|
|
498
|
+
config: re({
|
|
493
499
|
disabled: !1,
|
|
494
500
|
newTab: !1
|
|
495
501
|
}),
|
|
@@ -497,7 +503,7 @@ e({
|
|
|
497
503
|
name: "@lexical/link/ClickableLink",
|
|
498
504
|
register: (e, t, n) => H(e, n.getOutput())
|
|
499
505
|
});
|
|
500
|
-
function
|
|
506
|
+
function de(e, t = (e) => e) {
|
|
501
507
|
return (n) => {
|
|
502
508
|
let r = e.exec(n);
|
|
503
509
|
return r === null ? null : {
|
|
@@ -508,35 +514,35 @@ function U(e, t = (e) => e) {
|
|
|
508
514
|
};
|
|
509
515
|
};
|
|
510
516
|
}
|
|
511
|
-
function
|
|
517
|
+
function U(e, t) {
|
|
512
518
|
for (let n = 0; n < t.length; n++) {
|
|
513
519
|
let r = t[n](e);
|
|
514
520
|
if (r) return r;
|
|
515
521
|
}
|
|
516
522
|
return null;
|
|
517
523
|
}
|
|
518
|
-
var
|
|
524
|
+
var fe = /[.,;\s]/;
|
|
525
|
+
function W(e) {
|
|
526
|
+
return fe.test(e);
|
|
527
|
+
}
|
|
519
528
|
function G(e) {
|
|
520
|
-
return
|
|
529
|
+
return W(e[e.length - 1]);
|
|
521
530
|
}
|
|
522
531
|
function K(e) {
|
|
523
|
-
return
|
|
532
|
+
return W(e[0]);
|
|
524
533
|
}
|
|
525
534
|
function q(e) {
|
|
526
|
-
|
|
535
|
+
let t = e.getPreviousSibling();
|
|
536
|
+
return v(t) && (t = t.getLastDescendant()), t === null || s(t) || n(t) && G(t.getTextContent());
|
|
527
537
|
}
|
|
528
538
|
function J(e) {
|
|
529
|
-
let
|
|
530
|
-
return v(
|
|
531
|
-
}
|
|
532
|
-
function Y(e) {
|
|
533
|
-
let n = e.getNextSibling();
|
|
534
|
-
return v(n) && (n = n.getFirstDescendant()), n === null || s(n) || t(n) && q(n.getTextContent());
|
|
539
|
+
let t = e.getNextSibling();
|
|
540
|
+
return v(t) && (t = t.getFirstDescendant()), t === null || s(t) || n(t) && K(t.getTextContent());
|
|
535
541
|
}
|
|
536
|
-
function
|
|
537
|
-
return (e > 0 ?
|
|
542
|
+
function pe(e, t, n, r) {
|
|
543
|
+
return (e > 0 ? W(n[e - 1]) : q(r[0])) ? t < n.length ? W(n[t]) : J(r[r.length - 1]) : !1;
|
|
538
544
|
}
|
|
539
|
-
function
|
|
545
|
+
function Y(e, t, n) {
|
|
540
546
|
let r = [], i = [], a = [], o = 0, s = 0, c = [...e];
|
|
541
547
|
for (; c.length > 0;) {
|
|
542
548
|
let e = c[0], l = e.getTextContent().length, u = s;
|
|
@@ -549,39 +555,39 @@ function fe(e, t, n) {
|
|
|
549
555
|
a
|
|
550
556
|
];
|
|
551
557
|
}
|
|
552
|
-
function
|
|
558
|
+
function me(e, t, r, i) {
|
|
553
559
|
let a = N(i.url, i.attributes);
|
|
554
560
|
if (e.length === 1) {
|
|
555
|
-
let
|
|
556
|
-
|
|
557
|
-
let s =
|
|
558
|
-
return s.setFormat(
|
|
561
|
+
let n, o = e[0];
|
|
562
|
+
t === 0 ? [n, o] = o.splitText(r) : [, n, o] = o.splitText(t, r);
|
|
563
|
+
let s = C(i.text);
|
|
564
|
+
return s.setFormat(n.getFormat()), s.setDetail(n.getDetail()), s.setStyle(n.getStyle()), a.append(s), n.replace(a), o;
|
|
559
565
|
}
|
|
560
566
|
if (e.length > 1) {
|
|
561
|
-
let i = e[0],
|
|
562
|
-
|
|
567
|
+
let i = e[0], o, s = i.getTextContent().length;
|
|
568
|
+
t === 0 ? o = i : [, o] = i.splitText(t);
|
|
563
569
|
let l = [], u;
|
|
564
570
|
for (let t = 1; t < e.length; t++) {
|
|
565
|
-
let n = e[t], i = n.getTextContent().length, a =
|
|
566
|
-
if (a < r) if (
|
|
571
|
+
let n = e[t], i = n.getTextContent().length, a = s;
|
|
572
|
+
if (a < r) if (s + i <= r) l.push(n);
|
|
567
573
|
else {
|
|
568
574
|
let [e, t] = n.splitText(r - a);
|
|
569
575
|
l.push(e), u = t;
|
|
570
576
|
}
|
|
571
|
-
|
|
577
|
+
s += i;
|
|
572
578
|
}
|
|
573
|
-
let d = x(), p = d ? d.getNodes().find(
|
|
574
|
-
return m.setFormat(
|
|
579
|
+
let d = x(), p = d ? d.getNodes().find(n) : void 0, m = C(o.getTextContent());
|
|
580
|
+
return m.setFormat(o.getFormat()), m.setDetail(o.getDetail()), m.setStyle(o.getStyle()), a.append(m, ...l), p && p === o && (c(d) ? m.select(d.anchor.offset, d.focus.offset) : f(d) && m.select(0, m.getTextContent().length)), o.replace(a), u;
|
|
575
581
|
}
|
|
576
582
|
}
|
|
577
|
-
function X(e,
|
|
583
|
+
function X(e, t, r) {
|
|
578
584
|
let i = e.getChildren(), a = i.length;
|
|
579
|
-
for (let
|
|
580
|
-
let a = i[
|
|
581
|
-
if (!
|
|
585
|
+
for (let t = 0; t < a; t++) {
|
|
586
|
+
let a = i[t];
|
|
587
|
+
if (!n(a) || !a.isSimpleText()) return Z(e), void r(null, e.getURL());
|
|
582
588
|
}
|
|
583
|
-
let o = e.getTextContent(), s =
|
|
584
|
-
if (s === null || s.text !== o || !
|
|
589
|
+
let o = e.getTextContent(), s = U(o, t);
|
|
590
|
+
if (s === null || s.text !== o || !q(e) || !J(e)) return Z(e), void r(null, e.getURL());
|
|
585
591
|
let c = e.getURL();
|
|
586
592
|
if (c !== s.url && (e.setURL(s.url), r(s.url, c)), s.attributes) {
|
|
587
593
|
let t = e.getRel();
|
|
@@ -600,22 +606,22 @@ var Q = {
|
|
|
600
606
|
excludeParents: [],
|
|
601
607
|
matchers: []
|
|
602
608
|
};
|
|
603
|
-
function $(e,
|
|
604
|
-
let { matchers:
|
|
605
|
-
for (let n of
|
|
609
|
+
function $(e, t = Q) {
|
|
610
|
+
let { matchers: r, changeHandlers: i, excludeParents: a } = t, o = (e, t) => {
|
|
611
|
+
for (let n of i) n(e, t);
|
|
606
612
|
};
|
|
607
|
-
return
|
|
608
|
-
let
|
|
609
|
-
P(
|
|
613
|
+
return p(e.registerNodeTransform(y, (e) => {
|
|
614
|
+
let t = e.getParentOrThrow(), i = e.getPreviousSibling();
|
|
615
|
+
P(t) ? X(t, r, o) : !j(t) && !a.some((e) => e(t)) && (e.isSimpleText() && (K(e.getTextContent()) || !P(i)) && (function(e, t, n) {
|
|
610
616
|
for (let t of e) {
|
|
611
617
|
let e = t.getParent();
|
|
612
618
|
if (P(e) && !e.getIsUnlinked()) return;
|
|
613
619
|
}
|
|
614
620
|
let r = [...e], i = r.map((e) => e.getTextContent()).join(""), a, o = i, s = 0;
|
|
615
|
-
for (; (a =
|
|
621
|
+
for (; (a = U(o, t)) && a !== null;) {
|
|
616
622
|
let e = a.index, t = e + a.length;
|
|
617
|
-
if (
|
|
618
|
-
let [i, , c, l] =
|
|
623
|
+
if (pe(s + e, s + t, i, r)) {
|
|
624
|
+
let [i, , c, l] = Y(r, s + e, s + t), u = !1;
|
|
619
625
|
for (let e of c) {
|
|
620
626
|
let t = e.getParent();
|
|
621
627
|
if (P(t) && !t.getIsUnlinked()) {
|
|
@@ -627,38 +633,38 @@ function $(e, r = Q) {
|
|
|
627
633
|
s += t, o = o.substring(t);
|
|
628
634
|
continue;
|
|
629
635
|
}
|
|
630
|
-
let d =
|
|
636
|
+
let d = me(c, s + e - i, s + t - i, a);
|
|
631
637
|
r = d ? [d, ...l] : l, n(a.url, null), s = 0;
|
|
632
638
|
} else s += t;
|
|
633
639
|
o = o.substring(t);
|
|
634
640
|
}
|
|
635
641
|
})(function(e) {
|
|
636
|
-
let
|
|
637
|
-
for (; r !== null &&
|
|
638
|
-
return
|
|
639
|
-
}(e),
|
|
642
|
+
let t = [e], r = e.getNextSibling();
|
|
643
|
+
for (; r !== null && n(r) && r.isSimpleText() && (t.push(r), !/[\s]/.test(r.getTextContent()));) r = r.getNextSibling();
|
|
644
|
+
return t;
|
|
645
|
+
}(e), r, o), (function(e, t, n) {
|
|
640
646
|
let r = e.getParent(), i = e.getPreviousSibling(), a = e.getNextSibling(), o = e.getTextContent();
|
|
641
647
|
if (!P(r) || r.getIsUnlinked()) {
|
|
642
648
|
if (P(i) && !i.getIsUnlinked() && i.is(e.getPreviousSibling()) && e.getParent() === i.getParent()) {
|
|
643
|
-
if (!
|
|
649
|
+
if (!K(o)) return Z(i), void n(null, i.getURL());
|
|
644
650
|
if (s = o, i.isEmailURI() ? /^\.[a-zA-Z]{2,}/.test(s) : /^\.[a-zA-Z0-9]{1,}/.test(s)) {
|
|
645
|
-
let r = i.getTextContent() + o, a =
|
|
651
|
+
let r = i.getTextContent() + o, a = U(r, t);
|
|
646
652
|
a !== null && a.text === r && (i.append(e), X(i, t, n), n(null, i.getURL()));
|
|
647
653
|
}
|
|
648
654
|
}
|
|
649
655
|
var s;
|
|
650
|
-
!P(a) || a.getIsUnlinked() ||
|
|
656
|
+
!P(a) || a.getIsUnlinked() || G(o) || a.is(e.getNextSibling()) && e.getParent() === a.getParent() && (Z(a), n(null, a.getURL()));
|
|
651
657
|
}
|
|
652
|
-
})(e,
|
|
658
|
+
})(e, r, o));
|
|
653
659
|
}), e.registerCommand(F, (e) => {
|
|
654
660
|
let t = x();
|
|
655
|
-
return e !== null || !
|
|
661
|
+
return e !== null || !c(t) || t.extract().forEach((e) => {
|
|
656
662
|
let t = e.getParent();
|
|
657
663
|
P(t) && (t.setIsUnlinked(!t.getIsUnlinked()), t.markDirty());
|
|
658
664
|
}), !1;
|
|
659
665
|
}, 1));
|
|
660
666
|
}
|
|
661
|
-
|
|
667
|
+
r({
|
|
662
668
|
config: Q,
|
|
663
669
|
dependencies: [V],
|
|
664
670
|
mergeConfig(e, t) {
|
|
@@ -678,6 +684,6 @@ e({
|
|
|
678
684
|
register: $
|
|
679
685
|
});
|
|
680
686
|
//#endregion
|
|
681
|
-
export {
|
|
687
|
+
export { H as a, de as c, F as i, L as n, M as o, B as r, $ as s, D as t };
|
|
682
688
|
|
|
683
|
-
//# sourceMappingURL=LexicalLink.prod-
|
|
689
|
+
//# sourceMappingURL=LexicalLink.prod-BKLNLyu8.js.map
|