@uva-glass/component-library 3.55.1 → 3.55.3
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 +69 -0
- package/dist/Accordion-BpnBHYIx.js.map +1 -0
- package/dist/AccordionCard-BXy-plB7.js +43 -0
- package/dist/AccordionCard-BXy-plB7.js.map +1 -0
- package/dist/ActionList-O9w1hqNg.js +95 -0
- package/dist/ActionList-O9w1hqNg.js.map +1 -0
- package/dist/AddCatalogueLinkForm-Cy6fPNvN.js +117 -0
- package/dist/AddCatalogueLinkForm-Cy6fPNvN.js.map +1 -0
- package/dist/AppStatusBar-Bca0KFDR.js +20 -0
- package/dist/AppStatusBar-Bca0KFDR.js.map +1 -0
- package/dist/Attention-Bq5UU9I8.js +13 -0
- package/dist/Attention-Bq5UU9I8.js.map +1 -0
- package/dist/Backdrop-D8AHeuBn.js +10 -0
- package/dist/Backdrop-D8AHeuBn.js.map +1 -0
- package/dist/Button.module-DJlNwQUj.js +16 -0
- package/dist/Button.module-DJlNwQUj.js.map +1 -0
- package/dist/ButtonGroup-DR80lTLz.js +21 -0
- package/dist/ButtonGroup-DR80lTLz.js.map +1 -0
- package/dist/Card-DMFyuTmy.js +32 -0
- package/dist/Card-DMFyuTmy.js.map +1 -0
- package/dist/Checkbox-D6-b_4dC.js +12 -0
- package/dist/Checkbox-D6-b_4dC.js.map +1 -0
- package/dist/CheckboxButtonBar-CalU0IYK.js +79 -0
- package/dist/CheckboxButtonBar-CalU0IYK.js.map +1 -0
- package/dist/Chip-DJHvFToV.js +22 -0
- package/dist/Chip-DJHvFToV.js.map +1 -0
- package/dist/ClipboardButton-geHjMl2J.js +43 -0
- package/dist/ClipboardButton-geHjMl2J.js.map +1 -0
- package/dist/Column-BwKEOOuL.js +84 -0
- package/dist/Column-BwKEOOuL.js.map +1 -0
- package/dist/Container-BLjtYDqq.js +31 -0
- package/dist/Container-BLjtYDqq.js.map +1 -0
- package/dist/ControlsButton-zemVxTlg.js +64 -0
- package/dist/ControlsButton-zemVxTlg.js.map +1 -0
- package/dist/CopyableText-DkyhZ6wk.js +57 -0
- package/dist/CopyableText-DkyhZ6wk.js.map +1 -0
- package/dist/Drawer-Ggofac6y.js +77 -0
- package/dist/Drawer-Ggofac6y.js.map +1 -0
- package/dist/EmptyStateDataDisplay-D0QiI8nE.js +46 -0
- package/dist/EmptyStateDataDisplay-D0QiI8nE.js.map +1 -0
- package/dist/ExpandableInfoPanel-CnBVVNlJ.js +58 -0
- package/dist/ExpandableInfoPanel-CnBVVNlJ.js.map +1 -0
- package/dist/FeedbackBar-ByKp32HE.js +43 -0
- package/dist/FeedbackBar-ByKp32HE.js.map +1 -0
- package/dist/FeedbackBox-Bu7uB9DP.js +29 -0
- package/dist/FeedbackBox-Bu7uB9DP.js.map +1 -0
- package/dist/FieldHint-D0HtbTnt.js +16 -0
- package/dist/FieldHint-D0HtbTnt.js.map +1 -0
- package/dist/Fieldset-CoNu_Owa.js +23 -0
- package/dist/Fieldset-CoNu_Owa.js.map +1 -0
- package/dist/Flyout-DEpzfZOC.js +18 -0
- package/dist/Flyout-DEpzfZOC.js.map +1 -0
- package/dist/FormField-BZSoQdp9.js +21 -0
- package/dist/FormField-BZSoQdp9.js.map +1 -0
- package/dist/HorizontalList-C22DaDz-.js +20 -0
- package/dist/HorizontalList-C22DaDz-.js.map +1 -0
- package/dist/IconButton-CWCMH9uf.js +24 -0
- package/dist/IconButton-CWCMH9uf.js.map +1 -0
- package/dist/InfoBanner-DyznQLGr.js +13 -0
- package/dist/InfoBanner-DyznQLGr.js.map +1 -0
- package/dist/InfoMessage-I-VlwxVc.js +19 -0
- package/dist/InfoMessage-I-VlwxVc.js.map +1 -0
- package/dist/Input-Bn-arMaC.js +25 -0
- package/dist/Input-Bn-arMaC.js.map +1 -0
- package/dist/InputField-BWAy19w9.js +51 -0
- package/dist/InputField-BWAy19w9.js.map +1 -0
- package/dist/Label-o0BcWTUS.js +21 -0
- package/dist/Label-o0BcWTUS.js.map +1 -0
- package/dist/Lexical.prod-DIglXatJ.js +5246 -0
- package/dist/Lexical.prod-DIglXatJ.js.map +1 -0
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js +248 -0
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js.map +1 -0
- package/dist/LexicalComposerContext.prod-Ca-YN_fj.js +22 -0
- package/dist/LexicalComposerContext.prod-Ca-YN_fj.js.map +1 -0
- package/dist/LexicalExtension.prod-COPHoPpX.js +886 -0
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +1 -0
- package/dist/LexicalLink.prod-Bf9JUdMv.js +683 -0
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +1 -0
- package/dist/LexicalList.prod-DRz8vsM9.js +766 -0
- package/dist/LexicalList.prod-DRz8vsM9.js.map +1 -0
- package/dist/LexicalTable.prod-D16GW-aZ.js +2003 -0
- package/dist/LexicalTable.prod-D16GW-aZ.js.map +1 -0
- package/dist/LexicalUtils.prod-BBTLliac.js +360 -0
- package/dist/LexicalUtils.prod-BBTLliac.js.map +1 -0
- package/dist/LinkContextMenu-m_CGQEiX.js +101 -0
- package/dist/LinkContextMenu-m_CGQEiX.js.map +1 -0
- package/dist/MenuLink-Cm1yZO_5.js +21 -0
- package/dist/MenuLink-Cm1yZO_5.js.map +1 -0
- package/dist/MetaDataBar-C4QO9oBV.js +23 -0
- package/dist/MetaDataBar-C4QO9oBV.js.map +1 -0
- package/dist/MetaDataList-CAR1HTYs.js +24 -0
- package/dist/MetaDataList-CAR1HTYs.js.map +1 -0
- package/dist/ModalDialog-HUkDdAJ-.js +114 -0
- package/dist/ModalDialog-HUkDdAJ-.js.map +1 -0
- package/dist/MultiSelectBox-Cuh_o-A1.js +189 -0
- package/dist/MultiSelectBox-Cuh_o-A1.js.map +1 -0
- package/dist/MultiSelectItem-BF5xRjz5.js +36 -0
- package/dist/MultiSelectItem-BF5xRjz5.js.map +1 -0
- package/dist/Notification-CIhsHuF0.js +68 -0
- package/dist/Notification-CIhsHuF0.js.map +1 -0
- package/dist/OverlayCloseButton-rttFbAM_.js +22 -0
- package/dist/OverlayCloseButton-rttFbAM_.js.map +1 -0
- package/dist/OverlayStepBar-CjaoYdsh.js +45 -0
- package/dist/OverlayStepBar-CjaoYdsh.js.map +1 -0
- package/dist/PageOverlay-D_wG2oie.js +108 -0
- package/dist/PageOverlay-D_wG2oie.js.map +1 -0
- package/dist/PasteHandlerPlugin-DjD1wryY.js +235 -0
- package/dist/PasteHandlerPlugin-DjD1wryY.js.map +1 -0
- package/dist/Periods-BYETtB6R.js +40 -0
- package/dist/Periods-BYETtB6R.js.map +1 -0
- package/dist/ProgrammeCard-76gG7ksx.js +27 -0
- package/dist/ProgrammeCard-76gG7ksx.js.map +1 -0
- package/dist/RadioButton-Bto2p5B9.js +35 -0
- package/dist/RadioButton-Bto2p5B9.js.map +1 -0
- package/dist/RadioGroup-JeTjVp5B.js +50 -0
- package/dist/RadioGroup-JeTjVp5B.js.map +1 -0
- package/dist/Repeater-BhkTEUai.js +22 -0
- package/dist/Repeater-BhkTEUai.js.map +1 -0
- package/dist/RteEditor.module-Jk80F1FA.js +42 -0
- package/dist/RteEditor.module-Jk80F1FA.js.map +1 -0
- package/dist/SearchField.module-BgxjHaPG.js +19 -0
- package/dist/SearchField.module-BgxjHaPG.js.map +1 -0
- package/dist/SectionNotification-CQqwPTqP.js +14 -0
- package/dist/SectionNotification-CQqwPTqP.js.map +1 -0
- package/dist/SelectListbox.module-HaPs1CLD.js +30 -0
- package/dist/SelectListbox.module-HaPs1CLD.js.map +1 -0
- package/dist/Slider-BlLyrET9.js +102 -0
- package/dist/Slider-BlLyrET9.js.map +1 -0
- package/dist/Sortable.module-BTUOSbOU.js +27 -0
- package/dist/Sortable.module-BTUOSbOU.js.map +1 -0
- package/dist/SortableProvider-Dc7hwkb5.js +147 -0
- package/dist/SortableProvider-Dc7hwkb5.js.map +1 -0
- package/dist/Spinner-D8tWqg9j.js +31 -0
- package/dist/Spinner-D8tWqg9j.js.map +1 -0
- package/dist/StatusBage-DQDOF5-U.js +13 -0
- package/dist/StatusBage-DQDOF5-U.js.map +1 -0
- package/dist/StatusPill-DM7n3I4W.js +30 -0
- package/dist/StatusPill-DM7n3I4W.js.map +1 -0
- package/dist/TableCellContextMenu-D0IMQr3E.js +119 -0
- package/dist/TableCellContextMenu-D0IMQr3E.js.map +1 -0
- package/dist/TableCellResizerPlugin-CgYsYsuY.js +208 -0
- package/dist/TableCellResizerPlugin-CgYsYsuY.js.map +1 -0
- package/dist/TextArea-DqKIpOfT.js +68 -0
- package/dist/TextArea-DqKIpOfT.js.map +1 -0
- package/dist/ToggleSwitch-C7z7JVtx.js +51 -0
- package/dist/ToggleSwitch-C7z7JVtx.js.map +1 -0
- package/dist/Tooltip-BzB3jznk.js +80 -0
- package/dist/Tooltip-BzB3jznk.js.map +1 -0
- package/dist/VarIndicator-C-GueOZD.js +50 -0
- package/dist/VarIndicator-C-GueOZD.js.map +1 -0
- package/dist/WeekSelector.module-BLPrVYgn.js +18 -0
- package/dist/WeekSelector.module-BLPrVYgn.js.map +1 -0
- package/dist/__mocks__/svgrMock.js +12 -9
- package/dist/__mocks__/svgrMock.js.map +1 -1
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/AccordionCard.css +1 -1
- package/dist/assets/ActionList.css +1 -1
- package/dist/assets/AddCatalogueLinkForm.css +1 -1
- package/dist/assets/AppStatusBar.css +1 -1
- package/dist/assets/Attention.css +1 -1
- package/dist/assets/Backdrop.css +1 -1
- package/dist/assets/Backdrop2.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonGroup.css +1 -1
- package/dist/assets/Card.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/CheckboxButtonBar.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/ClipboardButton.css +1 -1
- package/dist/assets/Column.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/ControlsButton.css +1 -1
- package/dist/assets/CopyableText.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/EmptyStateDataDisplay.css +1 -1
- package/dist/assets/ExpandableInfoPanel.css +1 -1
- package/dist/assets/FeedbackBar.css +1 -1
- package/dist/assets/FeedbackBox.css +1 -1
- package/dist/assets/Fieldset.css +1 -1
- package/dist/assets/Flyout.css +1 -1
- package/dist/assets/FormField.css +1 -1
- package/dist/assets/GridRow.css +1 -1
- package/dist/assets/HorizontalList.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/InfoBanner.css +1 -1
- package/dist/assets/InfoMessage.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputField.css +1 -1
- package/dist/assets/Label.css +1 -1
- package/dist/assets/LinkContextMenu.css +1 -1
- package/dist/assets/MenuLink.css +1 -1
- package/dist/assets/MenuLink2.css +1 -1
- package/dist/assets/MetaDataBar.css +1 -1
- package/dist/assets/MetaDataList.css +1 -1
- package/dist/assets/ModalDialog.css +1 -1
- package/dist/assets/MultiSelectBox.css +1 -1
- package/dist/assets/MultiSelectItem.css +1 -1
- package/dist/assets/Notification.css +1 -1
- package/dist/assets/OverlayCloseButton.css +1 -1
- package/dist/assets/OverlayStepBar.css +1 -1
- package/dist/assets/PageOverlay.css +1 -1
- package/dist/assets/Periods.css +1 -1
- package/dist/assets/ProgrammeCard.css +1 -1
- package/dist/assets/RadioButton.css +1 -1
- package/dist/assets/RadioButton2.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/SectionNotification.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/assets/Spinner.css +1 -1
- package/dist/assets/StatusBage.css +1 -1
- package/dist/assets/StatusPill.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/ToggleSwitch.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/VarIndicator.css +1 -1
- package/dist/assets/WeekSelector.css +1 -1
- package/dist/assets/components.css +1 -0
- package/dist/chunk-DeC0fbbY.js +23 -0
- package/dist/chunk-SZQXB3JV-D0XG4Tlp.js +8448 -0
- package/dist/chunk-SZQXB3JV-D0XG4Tlp.js.map +1 -0
- package/dist/client-UU-mS47K.js +18953 -0
- package/dist/client-UU-mS47K.js.map +1 -0
- package/dist/clsx-BD2qMUU1.js +18 -0
- package/dist/clsx-BD2qMUU1.js.map +1 -0
- package/dist/components/Accordion/Accordion.js +2 -94
- package/dist/components/Accordion/Accordion.stories.js +30 -32
- package/dist/components/Accordion/Accordion.stories.js.map +1 -1
- package/dist/components/Accordion/Accordion.test.js +49 -27
- package/dist/components/Accordion/Accordion.test.js.map +1 -1
- package/dist/components/Accordion/index.js +2 -5
- package/dist/components/AccordionCard/AccordionCard.js +2 -58
- package/dist/components/AccordionCard/AccordionCard.stories.js +31 -32
- package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -1
- package/dist/components/AccordionCard/AccordionCard.test.js +54 -31
- package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
- package/dist/components/AccordionCard/index.js +2 -5
- package/dist/components/ActionList/ActionList.js +2 -83
- package/dist/components/ActionList/ActionList.stories.js +49 -38
- package/dist/components/ActionList/ActionList.stories.js.map +1 -1
- package/dist/components/ActionList/ActionList.test.js +97 -57
- package/dist/components/ActionList/ActionList.test.js.map +1 -1
- package/dist/components/ActionList/index.js +2 -5
- package/dist/components/AppStatusBar/AppStatusBar.js +2 -13
- package/dist/components/AppStatusBar/AppStatusBar.stories.js +25 -26
- package/dist/components/AppStatusBar/AppStatusBar.stories.js.map +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +17 -8
- package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
- package/dist/components/AppStatusBar/index.js +2 -5
- package/dist/components/Attention/Attention.js +2 -12
- package/dist/components/Attention/Attention.stories.js +18 -16
- package/dist/components/Attention/Attention.stories.js.map +1 -1
- package/dist/components/Attention/Attention.test.js +14 -8
- package/dist/components/Attention/Attention.test.js.map +1 -1
- package/dist/components/Attention/index.js +2 -5
- package/dist/components/Backdrop/Backdrop.js +2 -8
- package/dist/components/Backdrop/Backdrop.stories.js +32 -28
- package/dist/components/Backdrop/Backdrop.stories.js.map +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +13 -7
- package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
- package/dist/components/Backdrop/index.js +2 -5
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -26
- package/dist/components/ButtonGroup/ButtonGroup.stories.js +29 -39
- package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -1
- package/dist/components/ButtonGroup/index.js +2 -5
- package/dist/components/Buttons/Button.js +16 -22
- package/dist/components/Buttons/Button.js.map +1 -1
- package/dist/components/Buttons/Button.stories.js +43 -56
- package/dist/components/Buttons/Button.stories.js.map +1 -1
- package/dist/components/Buttons/Button.test.js +60 -33
- package/dist/components/Buttons/Button.test.js.map +1 -1
- package/dist/components/Buttons/LinkButton.js +14 -11
- package/dist/components/Buttons/LinkButton.js.map +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +41 -57
- package/dist/components/Buttons/LinkButton.stories.js.map +1 -1
- package/dist/components/Buttons/LinkButton.test.js +71 -65
- package/dist/components/Buttons/LinkButton.test.js.map +1 -1
- package/dist/components/Buttons/MenuButton.js +18 -15
- package/dist/components/Buttons/MenuButton.js.map +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +45 -61
- package/dist/components/Buttons/MenuButton.stories.js.map +1 -1
- package/dist/components/Buttons/MenuButton.test.js +70 -64
- package/dist/components/Buttons/MenuButton.test.js.map +1 -1
- package/dist/components/Buttons/index.js +4 -9
- package/dist/components/Card/Card.js +2 -39
- package/dist/components/Card/Card.stories.js +42 -49
- package/dist/components/Card/Card.stories.js.map +1 -1
- package/dist/components/Card/Card.test.js +14 -8
- package/dist/components/Card/Card.test.js.map +1 -1
- package/dist/components/Card/index.js +2 -5
- package/dist/components/Checkbox/Checkbox.js +2 -9
- package/dist/components/Checkbox/Checkbox.stories.js +44 -41
- package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +21 -15
- package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
- package/dist/components/Checkbox/index.js +2 -5
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +2 -114
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +277 -310
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +71 -85
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/index.js +2 -5
- package/dist/components/CheckboxTree/CheckboxTree.js +3 -172
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +89 -139
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/CheckboxTree/index.js +3 -5
- package/dist/components/Chip/Chip.js +2 -14
- package/dist/components/Chip/Chip.stories.js +24 -28
- package/dist/components/Chip/Chip.stories.js.map +1 -1
- package/dist/components/Chip/index.js +2 -5
- package/dist/components/ControlsButton/ControlsButton.js +2 -82
- package/dist/components/ControlsButton/ControlsButton.stories.js +98 -122
- package/dist/components/ControlsButton/ControlsButton.stories.js.map +1 -1
- package/dist/components/ControlsButton/index.js +2 -5
- package/dist/components/CopyableText/CopyableText.js +2 -64
- package/dist/components/CopyableText/CopyableText.stories.js +36 -35
- package/dist/components/CopyableText/CopyableText.stories.js.map +1 -1
- package/dist/components/CopyableText/index.js +2 -5
- package/dist/components/Drawer/Drawer.js +2 -62
- package/dist/components/Drawer/Drawer.stories.js +49 -68
- package/dist/components/Drawer/Drawer.stories.js.map +1 -1
- package/dist/components/Drawer/index.js +2 -5
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +2 -50
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +17 -18
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
- package/dist/components/EmptyStateDataDisplay/index.js +2 -5
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +2 -57
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js +57 -50
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js.map +1 -1
- package/dist/components/ExpandableInfoPanel/index.js +2 -5
- package/dist/components/FeedbackBar/FeedbackBar.js +2 -30
- package/dist/components/FeedbackBar/FeedbackBar.stories.js +30 -33
- package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +18 -12
- package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
- package/dist/components/FeedbackBar/index.js +2 -5
- package/dist/components/FeedbackBox/FeedbackBox.js +2 -31
- package/dist/components/FeedbackBox/FeedbackBox.stories.js +30 -34
- package/dist/components/FeedbackBox/FeedbackBox.stories.js.map +1 -1
- package/dist/components/FeedbackBox/index.js +2 -5
- package/dist/components/FieldHint/FieldHint.js +2 -15
- package/dist/components/FieldHint/FieldHint.stories.js +27 -35
- package/dist/components/FieldHint/FieldHint.stories.js.map +1 -1
- package/dist/components/FieldHint/index.js +2 -5
- package/dist/components/Fieldset/Fieldset.js +2 -32
- package/dist/components/Fieldset/Fieldset.stories.js +40 -46
- package/dist/components/Fieldset/Fieldset.stories.js.map +1 -1
- package/dist/components/Fieldset/index.js +2 -5
- package/dist/components/FormField/FormField.js +2 -23
- package/dist/components/FormField/FormField.stories.js +40 -45
- package/dist/components/FormField/FormField.stories.js.map +1 -1
- package/dist/components/FormField/index.js +2 -5
- package/dist/components/FormInput/FormInput.js +3 -79
- package/dist/components/FormInput/FormInput.stories.js +60 -40
- package/dist/components/FormInput/FormInput.stories.js.map +1 -1
- package/dist/components/FormInput/index.js +3 -5
- package/dist/components/GridRow/Column/Column.js +2 -7
- package/dist/components/GridRow/Column/index.js +2 -5
- package/dist/components/GridRow/GridRow.js +27 -38
- package/dist/components/GridRow/GridRow.js.map +1 -1
- package/dist/components/GridRow/GridRow.stories.js +198 -95
- package/dist/components/GridRow/GridRow.stories.js.map +1 -1
- package/dist/components/GridRow/index.js +2 -5
- package/dist/components/HorizontalList/HorizontalList.js +2 -13
- package/dist/components/HorizontalList/HorizontalList.stories.js +44 -46
- package/dist/components/HorizontalList/HorizontalList.stories.js.map +1 -1
- package/dist/components/HorizontalList/index.js +2 -5
- package/dist/components/Icon/Icon.js +16 -9
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/Icon.stories.js +47 -50
- package/dist/components/Icon/Icon.stories.js.map +1 -1
- package/dist/components/Icon/icons/index.js +2 -672
- package/dist/components/Icon/index.js +2 -5
- package/dist/components/IconButton/IconButton.js +2 -28
- package/dist/components/IconButton/IconButton.stories.js +55 -58
- package/dist/components/IconButton/IconButton.stories.js.map +1 -1
- package/dist/components/IconButton/index.js +2 -5
- package/dist/components/InfoBanner/InfoBanner.js +2 -12
- package/dist/components/InfoBanner/InfoBanner.stories.js +18 -22
- package/dist/components/InfoBanner/InfoBanner.stories.js.map +1 -1
- package/dist/components/InfoBanner/index.js +2 -5
- package/dist/components/InfoMessage/InfoMessage.js +2 -23
- package/dist/components/InfoMessage/InfoMessage.stories.js +21 -26
- package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
- package/dist/components/InfoMessage/index.js +2 -5
- package/dist/components/Input/Input.js +2 -28
- package/dist/components/Input/Input.stories.js +31 -50
- package/dist/components/Input/Input.stories.js.map +1 -1
- package/dist/components/Input/index.js +2 -5
- package/dist/components/InputField/InputField.js +2 -70
- package/dist/components/InputField/InputField.stories.js +81 -109
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/InputField/index.js +2 -5
- package/dist/components/Label/Label.js +2 -24
- package/dist/components/Label/Label.stories.js +26 -37
- package/dist/components/Label/Label.stories.js.map +1 -1
- package/dist/components/Label/Label.test.js +35 -20
- package/dist/components/Label/Label.test.js.map +1 -1
- package/dist/components/Label/index.js +2 -5
- package/dist/components/MenuLink/MenuLink.js +2 -25
- package/dist/components/MenuLink/MenuLink.stories.js +64 -27
- package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
- package/dist/components/MenuLink/index.js +2 -5
- package/dist/components/MetaDataBar/MetaDataBar.js +2 -13
- package/dist/components/MetaDataBar/MetaDataBar.stories.js +20 -20
- package/dist/components/MetaDataBar/MetaDataBar.stories.js.map +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +26 -16
- package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
- package/dist/components/MetaDataBar/index.js +2 -5
- package/dist/components/MetaDataList/MetaDataList.js +2 -14
- package/dist/components/MetaDataList/MetaDataList.stories.js +21 -23
- package/dist/components/MetaDataList/MetaDataList.stories.js.map +1 -1
- package/dist/components/MetaDataList/index.js +2 -5
- package/dist/components/ModalDialog/ModalDialog.js +2 -130
- package/dist/components/ModalDialog/ModalDialog.stories.js +80 -93
- package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
- package/dist/components/ModalDialog/index.js +2 -5
- package/dist/components/MultiSelect/MultiSelect.js +3 -8
- package/dist/components/MultiSelect/MultiSelect.stories.js +83 -93
- package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -34
- package/dist/components/MultiSelect/components/MultiSelectItem.js +2 -9
- package/dist/components/MultiSelect/index.js +3 -5
- package/dist/components/MultiSelectBox/MultiSelectBox.js +2 -207
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +101 -70
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +54 -29
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
- package/dist/components/MultiSelectBox/index.js +2 -5
- package/dist/components/Notification/Notification.js +2 -58
- package/dist/components/Notification/Notification.stories.js +43 -40
- package/dist/components/Notification/Notification.stories.js.map +1 -1
- package/dist/components/Notification/Notification.test.js +24 -10
- package/dist/components/Notification/Notification.test.js.map +1 -1
- package/dist/components/Notification/index.js +2 -5
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js +2 -25
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +30 -29
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
- package/dist/components/OverlayCloseButton/index.js +2 -5
- package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -57
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +44 -49
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js.map +1 -1
- package/dist/components/OverlayStepBar/index.js +2 -5
- package/dist/components/PageOverlay/PageOverlay.js +2 -114
- package/dist/components/PageOverlay/PageOverlay.stories.js +155 -163
- package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
- package/dist/components/PageOverlay/index.js +2 -5
- package/dist/components/PeriodSelector/PeriodSelector.js +3 -96
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +27 -24
- package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
- package/dist/components/PeriodSelector/index.js +3 -5
- package/dist/components/Periods/Periods.js +2 -46
- package/dist/components/Periods/Periods.stories.js +53 -60
- package/dist/components/Periods/Periods.stories.js.map +1 -1
- package/dist/components/Periods/index.js +2 -5
- package/dist/components/ProgrammeCard/ProgrammeCard.js +2 -29
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +71 -80
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/ProgrammeCard/index.js +2 -5
- package/dist/components/RadioButton/RadioButton.js +2 -26
- package/dist/components/RadioButton/RadioButton.stories.js +30 -40
- package/dist/components/RadioButton/RadioButton.stories.js.map +1 -1
- package/dist/components/RadioButton/index.js +2 -5
- package/dist/components/RadioGroup/RadioGroup.js +2 -52
- package/dist/components/RadioGroup/RadioGroup.stories.js +39 -46
- package/dist/components/RadioGroup/RadioGroup.stories.js.map +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +46 -22
- package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
- package/dist/components/RadioGroup/index.js +2 -5
- package/dist/components/RadioTabSelector/RadioTabSelector.js +3 -94
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +76 -74
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
- package/dist/components/RadioTabSelector/index.js +3 -5
- package/dist/components/Repeater/Repeater.js +2 -19
- package/dist/components/Repeater/Repeater.stories.js +32 -42
- package/dist/components/Repeater/Repeater.stories.js.map +1 -1
- package/dist/components/Repeater/index.js +2 -5
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +3 -43
- package/dist/components/RteEditor/EditorHeader/index.js +3 -5
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +45 -47
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +2 -108
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +2 -5
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +150 -194
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +3 -81
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +3 -5
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -38
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +2 -95
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +3 -217
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +2 -12
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +3 -5
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +75 -83
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +2 -31
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +2 -14
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -36
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +2 -133
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +2 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -42
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +69 -92
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +4 -7
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -90
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +3 -5
- package/dist/components/RteEditor/Plugins/index.js +7 -21
- package/dist/components/RteEditor/Providers/LanguageProvider.js +22 -17
- package/dist/components/RteEditor/Providers/LanguageProvider.js.map +1 -1
- package/dist/components/RteEditor/RteEditor.js +3 -871
- package/dist/components/RteEditor/RteEditor.stories.js +160 -207
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +41 -40
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/index.js +2 -5
- package/dist/components/RteEditor/helpers.js +33 -40
- package/dist/components/RteEditor/helpers.js.map +1 -1
- package/dist/components/RteEditor/hooks/components/Flyout.js +2 -11
- package/dist/components/RteEditor/hooks/useFlyout.js +35 -23
- package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
- package/dist/components/RteEditor/hooks/useTranslation.js +9 -8
- package/dist/components/RteEditor/hooks/useTranslation.js.map +1 -1
- package/dist/components/RteEditor/index.js +3 -6
- package/dist/components/RteEditor/mockCatalogueSearchData.js +484 -484
- package/dist/components/RteEditor/mockCatalogueSearchData.js.map +1 -1
- package/dist/components/RteEditor/mockRteContent.js +6 -100
- package/dist/components/RteEditor/mockRteContent.js.map +1 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +98 -122
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js.map +1 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/index.js +2 -11
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +58 -72
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js.map +1 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/index.js +2 -10
- package/dist/components/RteEditor/nodes/index.js +3 -18
- package/dist/components/RteEditor/translations.js +216 -215
- package/dist/components/RteEditor/translations.js.map +1 -1
- package/dist/components/SearchField/SearchField.js +104 -105
- package/dist/components/SearchField/SearchField.js.map +1 -1
- package/dist/components/SearchField/SearcheField.stories.js +89 -118
- package/dist/components/SearchField/SearcheField.stories.js.map +1 -1
- package/dist/components/SearchField/components/ResultOptionBox.js +19 -12
- package/dist/components/SearchField/components/ResultOptionBox.js.map +1 -1
- package/dist/components/SearchField/components/ResultsOption.js +50 -55
- package/dist/components/SearchField/components/ResultsOption.js.map +1 -1
- package/dist/components/SearchField/index.js +2 -5
- package/dist/components/SearchField/mockData.js +136 -135
- package/dist/components/SearchField/mockData.js.map +1 -1
- package/dist/components/SectionNotification/SectionNotification.js +2 -18
- package/dist/components/SectionNotification/SectionNotification.stories.js +21 -24
- package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
- package/dist/components/SectionNotification/index.js +2 -5
- package/dist/components/SelectListbox/SelectListBox.stories.js +3415 -248
- package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectListbox.js +45 -56
- package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +42 -43
- package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js +63 -77
- package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectContainer.js +22 -21
- package/dist/components/SelectListbox/components/SelectContainer.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +69 -66
- package/dist/components/SelectListbox/components/SelectOption.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectOptionBox.js +28 -30
- package/dist/components/SelectListbox/components/SelectOptionBox.js.map +1 -1
- package/dist/components/SelectListbox/index.js +2 -5
- package/dist/components/Slider/Slider.js +2 -113
- package/dist/components/Slider/Slider.stories.js +59 -38
- package/dist/components/Slider/Slider.stories.js.map +1 -1
- package/dist/components/Slider/index.js +2 -5
- package/dist/components/Sortable/Sortable.js +25 -41
- package/dist/components/Sortable/Sortable.js.map +1 -1
- package/dist/components/Sortable/Sortable.stories.js +79 -59
- package/dist/components/Sortable/Sortable.stories.js.map +1 -1
- package/dist/components/Sortable/SortableProvider.js +2 -10
- package/dist/components/Sortable/actions.js +24 -32
- package/dist/components/Sortable/actions.js.map +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +2 -9
- package/dist/components/Sortable/components/SortableHandle.js +13 -9
- package/dist/components/Sortable/components/SortableHandle.js.map +1 -1
- package/dist/components/Sortable/components/SortableItem.js +103 -113
- package/dist/components/Sortable/components/SortableItem.js.map +1 -1
- package/dist/components/Sortable/constants.js +6 -14
- package/dist/components/Sortable/constants.js.map +1 -1
- package/dist/components/Sortable/index.js +1 -4
- package/dist/components/Sortable/sortableReducer.js +76 -90
- package/dist/components/Sortable/sortableReducer.js.map +1 -1
- package/dist/components/Spinner/Spinner.js +2 -22
- package/dist/components/Spinner/Spinner.stories.js +21 -26
- package/dist/components/Spinner/Spinner.stories.js.map +1 -1
- package/dist/components/Spinner/index.js +2 -5
- package/dist/components/StatusBadge/StatusBadge.stories.js +18 -21
- package/dist/components/StatusBadge/StatusBadge.stories.js.map +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +19 -10
- package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
- package/dist/components/StatusBadge/StatusBage.js +2 -10
- package/dist/components/StatusBadge/index.js +2 -5
- package/dist/components/StatusPill/StatusPill.js +2 -35
- package/dist/components/StatusPill/StatusPill.stories.js +20 -20
- package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
- package/dist/components/StatusPill/index.js +2 -5
- package/dist/components/TextArea/TextArea.js +2 -65
- package/dist/components/TextArea/TextArea.stories.js +30 -31
- package/dist/components/TextArea/TextArea.stories.js.map +1 -1
- package/dist/components/TextArea/TextArea.test.js +38 -22
- package/dist/components/TextArea/TextArea.test.js.map +1 -1
- package/dist/components/TextArea/index.js +2 -5
- package/dist/components/ToggleSwitch/ToggleSwitch.js +2 -66
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +20 -26
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js.map +1 -1
- package/dist/components/ToggleSwitch/index.js +2 -5
- package/dist/components/Tooltip/Tooltip.js +2 -75
- package/dist/components/Tooltip/Tooltip.stories.js +27 -32
- package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/dist/components/Tooltip/index.js +2 -5
- package/dist/components/VarIndicator/VarIndicator.js +2 -62
- package/dist/components/VarIndicator/VarIndicator.stories.js +31 -30
- package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +72 -54
- package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
- package/dist/components/VarIndicator/index.js +2 -5
- package/dist/components/WeekSelector/WeekSelector.js +89 -97
- package/dist/components/WeekSelector/WeekSelector.js.map +1 -1
- package/dist/components/WeekSelector/WeekSelector.stories.js +146 -191
- package/dist/components/WeekSelector/WeekSelector.stories.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorButton.js +20 -22
- package/dist/components/WeekSelector/components/WeekSelectorButton.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOption.js +72 -85
- package/dist/components/WeekSelector/components/WeekSelectorOption.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js +30 -17
- package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js.map +1 -1
- package/dist/components/WeekSelector/index.js +2 -5
- package/dist/components/WeekSelector/mockdata.js +470 -469
- package/dist/components/WeekSelector/mockdata.js.map +1 -1
- package/dist/components/hooks/useDebounce.js +17 -16
- package/dist/components/hooks/useDebounce.js.map +1 -1
- package/dist/components/hooks/useOnClickOutside.js +15 -14
- package/dist/components/hooks/useOnClickOutside.js.map +1 -1
- package/dist/components/hooks/usePositionedFloaters.js +66 -71
- package/dist/components/hooks/usePositionedFloaters.js.map +1 -1
- package/dist/components/hooks/useResponsive.js +36 -32
- package/dist/components/hooks/useResponsive.js.map +1 -1
- package/dist/components/index.js +64 -139
- package/dist/components-C4MCdrDH.js +1995 -0
- package/dist/components-C4MCdrDH.js.map +1 -0
- package/dist/dist-2TKCXdYZ.js +2005 -0
- package/dist/dist-2TKCXdYZ.js.map +1 -0
- package/dist/esm-UNe_gmRA.js +2781 -0
- package/dist/esm-UNe_gmRA.js.map +1 -0
- package/dist/helpers-BBSxTGRl.js +34 -0
- package/dist/helpers-BBSxTGRl.js.map +1 -0
- package/dist/icons-TRhI-4V6.js +2681 -0
- package/dist/icons-TRhI-4V6.js.map +1 -0
- package/dist/index.js +64 -139
- package/dist/lib-6BbFZdI7.js +5595 -0
- package/dist/lib-6BbFZdI7.js.map +1 -0
- package/dist/react-18-CRbkdI-3.js +43 -0
- package/dist/react-18-CRbkdI-3.js.map +1 -0
- package/dist/react.esm-CzIhAqlo.js +3297 -0
- package/dist/react.esm-CzIhAqlo.js.map +1 -0
- package/dist/setupTests.js +1226 -36
- package/dist/setupTests.js.map +1 -1
- package/dist/storyComponents/ClipboardButton/ClipboardButton.js +2 -45
- package/dist/storyComponents/ClipboardButton/index.js +2 -5
- package/dist/storyComponents/Container/Container.js +2 -40
- package/dist/storyComponents/Container/index.js +2 -5
- package/dist/storybook__react.d.js +6939 -7524
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/test-DQruvi8i.js +19466 -0
- package/dist/test-DQruvi8i.js.map +1 -0
- package/dist/test-utils-BSs0eZfL.js +21 -0
- package/dist/test-utils-BSs0eZfL.js.map +1 -0
- package/dist/types/UserInterface.js +0 -2
- package/dist/vite-env.d.js +0 -2
- package/package.json +27 -27
- package/dist/Button.module-S1-6tV9o.js +0 -16
- package/dist/Button.module-S1-6tV9o.js.map +0 -1
- package/dist/Column-BL3dsYxn.js +0 -101
- package/dist/Column-BL3dsYxn.js.map +0 -1
- package/dist/Lexical.prod-o6Eq_uLx.js +0 -5202
- package/dist/Lexical.prod-o6Eq_uLx.js.map +0 -1
- package/dist/LexicalClipboard.prod-CnUrf2_p.js +0 -265
- package/dist/LexicalClipboard.prod-CnUrf2_p.js.map +0 -1
- package/dist/LexicalComposerContext.prod-DOyoZx0P.js +0 -22
- package/dist/LexicalComposerContext.prod-DOyoZx0P.js.map +0 -1
- package/dist/LexicalExtension.prod-CanXuzFO.js +0 -551
- package/dist/LexicalExtension.prod-CanXuzFO.js.map +0 -1
- package/dist/LexicalLink.prod-DAVbKER8.js +0 -561
- package/dist/LexicalLink.prod-DAVbKER8.js.map +0 -1
- package/dist/LexicalList.prod-C6cknPBV.js +0 -632
- package/dist/LexicalList.prod-C6cknPBV.js.map +0 -1
- package/dist/LexicalSelection.prod-B8GGrzJ3.js +0 -116
- package/dist/LexicalSelection.prod-B8GGrzJ3.js.map +0 -1
- package/dist/LexicalTable.prod-upbwOtcE.js +0 -1892
- package/dist/LexicalTable.prod-upbwOtcE.js.map +0 -1
- package/dist/LexicalUtils.prod-CF7x-KWm.js +0 -134
- package/dist/LexicalUtils.prod-CF7x-KWm.js.map +0 -1
- package/dist/MultiSelectItem-BzBmsKof.js +0 -24
- package/dist/MultiSelectItem-BzBmsKof.js.map +0 -1
- package/dist/RteEditor.module-CoTOIw5i.js +0 -41
- package/dist/RteEditor.module-CoTOIw5i.js.map +0 -1
- package/dist/SearchField.module-CMUEgX7d.js +0 -17
- package/dist/SearchField.module-CMUEgX7d.js.map +0 -1
- package/dist/SelectListbox.module-CXqMuXRB.js +0 -29
- package/dist/SelectListbox.module-CXqMuXRB.js.map +0 -1
- package/dist/Sortable.module-DCVXxKnw.js +0 -26
- package/dist/Sortable.module-DCVXxKnw.js.map +0 -1
- package/dist/SortableProvider-BbwlEPIr.js +0 -160
- package/dist/SortableProvider-BbwlEPIr.js.map +0 -1
- package/dist/TableCellResizerPlugin-qMtSAoKT.js +0 -248
- package/dist/TableCellResizerPlugin-qMtSAoKT.js.map +0 -1
- package/dist/TablePlugin-BRZcXq73.js +0 -308
- package/dist/TablePlugin-BRZcXq73.js.map +0 -1
- package/dist/WeekSelector.module-Clco7jTs.js +0 -17
- package/dist/WeekSelector.module-Clco7jTs.js.map +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
- package/dist/assets/CheckboxTree.css +0 -1
- package/dist/assets/EditorHeader.css +0 -1
- package/dist/assets/FormInput.css +0 -1
- package/dist/assets/PeriodSelector.css +0 -1
- package/dist/assets/RadioTabSelector.css +0 -1
- package/dist/assets/TablePlugin.css +0 -1
- package/dist/chunk-OPOZOKLO-nJkI9rUN.js +0 -4508
- package/dist/chunk-OPOZOKLO-nJkI9rUN.js.map +0 -1
- package/dist/client-D5eE1v54.js +0 -27222
- package/dist/client-D5eE1v54.js.map +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -17
- package/dist/clsx-OuTLNxxd.js.map +0 -1
- package/dist/components/Accordion/Accordion.js.map +0 -1
- package/dist/components/Accordion/index.js.map +0 -1
- package/dist/components/AccordionCard/AccordionCard.js.map +0 -1
- package/dist/components/AccordionCard/index.js.map +0 -1
- package/dist/components/ActionList/ActionList.js.map +0 -1
- package/dist/components/ActionList/index.js.map +0 -1
- package/dist/components/AppStatusBar/AppStatusBar.js.map +0 -1
- package/dist/components/AppStatusBar/index.js.map +0 -1
- package/dist/components/Attention/Attention.js.map +0 -1
- package/dist/components/Attention/index.js.map +0 -1
- package/dist/components/Backdrop/Backdrop.js.map +0 -1
- package/dist/components/Backdrop/index.js.map +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.js.map +0 -1
- package/dist/components/ButtonGroup/index.js.map +0 -1
- package/dist/components/Buttons/index.js.map +0 -1
- package/dist/components/Card/Card.js.map +0 -1
- package/dist/components/Card/index.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/Checkbox/index.js.map +0 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +0 -1
- package/dist/components/CheckboxButtonBar/index.js.map +0 -1
- package/dist/components/CheckboxTree/CheckboxTree.js.map +0 -1
- package/dist/components/CheckboxTree/index.js.map +0 -1
- package/dist/components/Chip/Chip.js.map +0 -1
- package/dist/components/Chip/index.js.map +0 -1
- package/dist/components/ControlsButton/ControlsButton.js.map +0 -1
- package/dist/components/ControlsButton/index.js.map +0 -1
- package/dist/components/CopyableText/CopyableText.js.map +0 -1
- package/dist/components/CopyableText/index.js.map +0 -1
- package/dist/components/Drawer/Drawer.js.map +0 -1
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js.map +0 -1
- package/dist/components/EmptyStateDataDisplay/index.js.map +0 -1
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js.map +0 -1
- package/dist/components/ExpandableInfoPanel/index.js.map +0 -1
- package/dist/components/FeedbackBar/FeedbackBar.js.map +0 -1
- package/dist/components/FeedbackBar/index.js.map +0 -1
- package/dist/components/FeedbackBox/FeedbackBox.js.map +0 -1
- package/dist/components/FeedbackBox/index.js.map +0 -1
- package/dist/components/FieldHint/FieldHint.js.map +0 -1
- package/dist/components/FieldHint/index.js.map +0 -1
- package/dist/components/Fieldset/Fieldset.js.map +0 -1
- package/dist/components/Fieldset/index.js.map +0 -1
- package/dist/components/FormField/FormField.js.map +0 -1
- package/dist/components/FormField/index.js.map +0 -1
- package/dist/components/FormInput/FormInput.js.map +0 -1
- package/dist/components/FormInput/index.js.map +0 -1
- package/dist/components/GridRow/Column/Column.js.map +0 -1
- package/dist/components/GridRow/Column/index.js.map +0 -1
- package/dist/components/GridRow/index.js.map +0 -1
- package/dist/components/HorizontalList/HorizontalList.js.map +0 -1
- package/dist/components/HorizontalList/index.js.map +0 -1
- package/dist/components/Icon/icons/index.js.map +0 -1
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/IconButton/IconButton.js.map +0 -1
- package/dist/components/IconButton/index.js.map +0 -1
- package/dist/components/InfoBanner/InfoBanner.js.map +0 -1
- package/dist/components/InfoBanner/index.js.map +0 -1
- package/dist/components/InfoMessage/InfoMessage.js.map +0 -1
- package/dist/components/InfoMessage/index.js.map +0 -1
- package/dist/components/Input/Input.js.map +0 -1
- package/dist/components/Input/index.js.map +0 -1
- package/dist/components/InputField/InputField.js.map +0 -1
- package/dist/components/InputField/index.js.map +0 -1
- package/dist/components/Label/Label.js.map +0 -1
- package/dist/components/Label/index.js.map +0 -1
- package/dist/components/MenuLink/MenuLink.js.map +0 -1
- package/dist/components/MenuLink/index.js.map +0 -1
- package/dist/components/MetaDataBar/MetaDataBar.js.map +0 -1
- package/dist/components/MetaDataBar/index.js.map +0 -1
- package/dist/components/MetaDataList/MetaDataList.js.map +0 -1
- package/dist/components/MetaDataList/index.js.map +0 -1
- package/dist/components/ModalDialog/ModalDialog.js.map +0 -1
- package/dist/components/ModalDialog/index.js.map +0 -1
- package/dist/components/MultiSelect/MultiSelect.js.map +0 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +0 -1
- package/dist/components/MultiSelect/components/MultiSelectItem.js.map +0 -1
- package/dist/components/MultiSelect/index.js.map +0 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js.map +0 -1
- package/dist/components/MultiSelectBox/index.js.map +0 -1
- package/dist/components/Notification/Notification.js.map +0 -1
- package/dist/components/Notification/index.js.map +0 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js.map +0 -1
- package/dist/components/OverlayCloseButton/index.js.map +0 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js.map +0 -1
- package/dist/components/OverlayStepBar/index.js.map +0 -1
- package/dist/components/PageOverlay/PageOverlay.js.map +0 -1
- package/dist/components/PageOverlay/index.js.map +0 -1
- package/dist/components/PeriodSelector/PeriodSelector.js.map +0 -1
- package/dist/components/PeriodSelector/index.js.map +0 -1
- package/dist/components/Periods/Periods.js.map +0 -1
- package/dist/components/Periods/index.js.map +0 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.js.map +0 -1
- package/dist/components/ProgrammeCard/index.js.map +0 -1
- package/dist/components/RadioButton/RadioButton.js.map +0 -1
- package/dist/components/RadioButton/index.js.map +0 -1
- package/dist/components/RadioGroup/RadioGroup.js.map +0 -1
- package/dist/components/RadioGroup/index.js.map +0 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js.map +0 -1
- package/dist/components/RadioTabSelector/index.js.map +0 -1
- package/dist/components/Repeater/Repeater.js.map +0 -1
- package/dist/components/Repeater/index.js.map +0 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +0 -1
- package/dist/components/RteEditor/EditorHeader/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js.map +0 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/index.js.map +0 -1
- package/dist/components/RteEditor/RteEditor.js.map +0 -1
- package/dist/components/RteEditor/UvaTheme/index.js.map +0 -1
- package/dist/components/RteEditor/hooks/components/Flyout.js.map +0 -1
- package/dist/components/RteEditor/index.js.map +0 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/index.js.map +0 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/index.js.map +0 -1
- package/dist/components/RteEditor/nodes/index.js.map +0 -1
- package/dist/components/SearchField/index.js.map +0 -1
- package/dist/components/SectionNotification/SectionNotification.js.map +0 -1
- package/dist/components/SectionNotification/index.js.map +0 -1
- package/dist/components/SelectListbox/index.js.map +0 -1
- package/dist/components/Slider/Slider.js.map +0 -1
- package/dist/components/Slider/index.js.map +0 -1
- package/dist/components/Sortable/SortableProvider.js.map +0 -1
- package/dist/components/Sortable/components/SortableContainer.js.map +0 -1
- package/dist/components/Sortable/index.js.map +0 -1
- package/dist/components/Spinner/Spinner.js.map +0 -1
- package/dist/components/Spinner/index.js.map +0 -1
- package/dist/components/StatusBadge/StatusBage.js.map +0 -1
- package/dist/components/StatusBadge/index.js.map +0 -1
- package/dist/components/StatusPill/StatusPill.js.map +0 -1
- package/dist/components/StatusPill/index.js.map +0 -1
- package/dist/components/TextArea/TextArea.js.map +0 -1
- package/dist/components/TextArea/index.js.map +0 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.js.map +0 -1
- package/dist/components/ToggleSwitch/index.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/Tooltip/index.js.map +0 -1
- package/dist/components/VarIndicator/VarIndicator.js.map +0 -1
- package/dist/components/VarIndicator/index.js.map +0 -1
- package/dist/components/WeekSelector/index.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/index-B_q_4aBT.js +0 -24946
- package/dist/index-B_q_4aBT.js.map +0 -1
- package/dist/index-CULNJwuI.js +0 -2355
- package/dist/index-CULNJwuI.js.map +0 -1
- package/dist/index-D6WVIfcJ.js +0 -6039
- package/dist/index-D6WVIfcJ.js.map +0 -1
- package/dist/index-YdDr6J97.js +0 -3099
- package/dist/index-YdDr6J97.js.map +0 -1
- package/dist/index-yEhaxKq-.js +0 -238
- package/dist/index-yEhaxKq-.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/react-18-CxCoNkIN.js +0 -41
- package/dist/react-18-CxCoNkIN.js.map +0 -1
- package/dist/react.esm-C68fQMAi.js +0 -4237
- package/dist/react.esm-C68fQMAi.js.map +0 -1
- package/dist/storyComponents/ClipboardButton/ClipboardButton.js.map +0 -1
- package/dist/storyComponents/ClipboardButton/index.js.map +0 -1
- package/dist/storyComponents/Container/Container.js.map +0 -1
- package/dist/storyComponents/Container/index.js.map +0 -1
- package/dist/test-utils-BcpWLsLH.js +0 -56
- package/dist/test-utils-BcpWLsLH.js.map +0 -1
- package/dist/types/UserInterface.js.map +0 -1
- package/dist/vite-env.d.js.map +0 -1
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
import { A as e, Bn as t, Cn as n, F as r, Gt as i, Mt as a, Nn as o, Nt as s, O as c, Vt as l, b as u, d, et as f, fn as p, g as m, in as h, jn as g, l as _, nt as v, o as ee, on as y, ot as b, p as te, q as ne, r as x, rt as re, s as ie, vn as ae, yn as S, zn as oe } from "./Lexical.prod-DIglXatJ.js";
|
|
2
|
+
import { a as se, o as ce } from "./LexicalUtils.prod-BBTLliac.js";
|
|
3
|
+
import { a as C, o as w } from "./LexicalExtension.prod-COPHoPpX.js";
|
|
4
|
+
//#region node_modules/@lexical/link/LexicalLink.prod.mjs
|
|
5
|
+
var le = new Set([
|
|
6
|
+
"http:",
|
|
7
|
+
"https:",
|
|
8
|
+
"mailto:",
|
|
9
|
+
"sms:",
|
|
10
|
+
"tel:"
|
|
11
|
+
]), T = class e extends ee {
|
|
12
|
+
__url;
|
|
13
|
+
__target;
|
|
14
|
+
__rel;
|
|
15
|
+
__title;
|
|
16
|
+
static getType() {
|
|
17
|
+
return "link";
|
|
18
|
+
}
|
|
19
|
+
static clone(t) {
|
|
20
|
+
return new e(t.__url, {
|
|
21
|
+
rel: t.__rel,
|
|
22
|
+
target: t.__target,
|
|
23
|
+
title: t.__title
|
|
24
|
+
}, t.__key);
|
|
25
|
+
}
|
|
26
|
+
constructor(e = "", t = {}, n) {
|
|
27
|
+
super(n);
|
|
28
|
+
let { target: r = null, rel: i = null, title: a = null } = t;
|
|
29
|
+
this.__url = e, this.__target = r, this.__rel = i, this.__title = a;
|
|
30
|
+
}
|
|
31
|
+
afterCloneFrom(e) {
|
|
32
|
+
super.afterCloneFrom(e), this.__url = e.__url, this.__rel = e.__rel, this.__target = e.__target, this.__title = e.__title;
|
|
33
|
+
}
|
|
34
|
+
createDOM(e) {
|
|
35
|
+
let t = document.createElement("a");
|
|
36
|
+
return this.updateLinkDOM(null, t, e), l(t, e.theme.link), t;
|
|
37
|
+
}
|
|
38
|
+
updateLinkDOM(e, t, n) {
|
|
39
|
+
if (_(t)) {
|
|
40
|
+
e && e.__url === this.__url || (t.href = this.sanitizeUrl(this.__url));
|
|
41
|
+
for (let n of [
|
|
42
|
+
"target",
|
|
43
|
+
"rel",
|
|
44
|
+
"title"
|
|
45
|
+
]) {
|
|
46
|
+
let r = `__${n}`, i = this[r];
|
|
47
|
+
e && e[r] === i || (i ? t[n] = i : t.removeAttribute(n));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
updateDOM(e, t, n) {
|
|
52
|
+
return this.updateLinkDOM(e, t, n), !1;
|
|
53
|
+
}
|
|
54
|
+
static importDOM() {
|
|
55
|
+
return { a: (e) => ({
|
|
56
|
+
conversion: k,
|
|
57
|
+
priority: 1
|
|
58
|
+
}) };
|
|
59
|
+
}
|
|
60
|
+
static importJSON(e) {
|
|
61
|
+
return A().updateFromJSON(e);
|
|
62
|
+
}
|
|
63
|
+
updateFromJSON(e) {
|
|
64
|
+
return super.updateFromJSON(e).setURL(e.url).setRel(e.rel || null).setTarget(e.target || null).setTitle(e.title || null);
|
|
65
|
+
}
|
|
66
|
+
sanitizeUrl(e) {
|
|
67
|
+
e = z(e);
|
|
68
|
+
try {
|
|
69
|
+
let t = new URL(z(e));
|
|
70
|
+
if (!le.has(t.protocol)) return "about:blank";
|
|
71
|
+
} catch {
|
|
72
|
+
return e;
|
|
73
|
+
}
|
|
74
|
+
return e;
|
|
75
|
+
}
|
|
76
|
+
exportJSON() {
|
|
77
|
+
return {
|
|
78
|
+
...super.exportJSON(),
|
|
79
|
+
rel: this.getRel(),
|
|
80
|
+
target: this.getTarget(),
|
|
81
|
+
title: this.getTitle(),
|
|
82
|
+
url: this.getURL()
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
getURL() {
|
|
86
|
+
return this.getLatest().__url;
|
|
87
|
+
}
|
|
88
|
+
setURL(e) {
|
|
89
|
+
let t = this.getWritable();
|
|
90
|
+
return t.__url = e, t;
|
|
91
|
+
}
|
|
92
|
+
getTarget() {
|
|
93
|
+
return this.getLatest().__target;
|
|
94
|
+
}
|
|
95
|
+
setTarget(e) {
|
|
96
|
+
let t = this.getWritable();
|
|
97
|
+
return t.__target = e, t;
|
|
98
|
+
}
|
|
99
|
+
getRel() {
|
|
100
|
+
return this.getLatest().__rel;
|
|
101
|
+
}
|
|
102
|
+
setRel(e) {
|
|
103
|
+
let t = this.getWritable();
|
|
104
|
+
return t.__rel = e, t;
|
|
105
|
+
}
|
|
106
|
+
getTitle() {
|
|
107
|
+
return this.getLatest().__title;
|
|
108
|
+
}
|
|
109
|
+
setTitle(e) {
|
|
110
|
+
let t = this.getWritable();
|
|
111
|
+
return t.__title = e, t;
|
|
112
|
+
}
|
|
113
|
+
insertNewAfter(e, t = !0) {
|
|
114
|
+
let n = g(this);
|
|
115
|
+
return this.insertAfter(n, t), n;
|
|
116
|
+
}
|
|
117
|
+
canInsertTextBefore() {
|
|
118
|
+
return !1;
|
|
119
|
+
}
|
|
120
|
+
canInsertTextAfter() {
|
|
121
|
+
return !1;
|
|
122
|
+
}
|
|
123
|
+
canBeEmpty() {
|
|
124
|
+
return !1;
|
|
125
|
+
}
|
|
126
|
+
isInline() {
|
|
127
|
+
return !0;
|
|
128
|
+
}
|
|
129
|
+
extractWithChild(e, t, n) {
|
|
130
|
+
if (!o(t)) return !1;
|
|
131
|
+
let r = t.anchor.getNode(), i = t.focus.getNode();
|
|
132
|
+
return this.isParentOf(r) && this.isParentOf(i) && t.getTextContent().length > 0;
|
|
133
|
+
}
|
|
134
|
+
isEmailURI() {
|
|
135
|
+
return this.__url.startsWith("mailto:");
|
|
136
|
+
}
|
|
137
|
+
isWebSiteURI() {
|
|
138
|
+
return this.__url.startsWith("https://") || this.__url.startsWith("http://");
|
|
139
|
+
}
|
|
140
|
+
shouldMergeAdjacentLink(e) {
|
|
141
|
+
return this.getType() === e.getType() && this.__url === e.__url && this.__target === e.__target && this.__rel === e.__rel && this.__title === e.__title;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
function E(e) {
|
|
145
|
+
let t = ie(e, "next");
|
|
146
|
+
return [t, t.getFlipped()];
|
|
147
|
+
}
|
|
148
|
+
function D(e, t) {
|
|
149
|
+
for (let n of t) if (n.origin.isAttached()) {
|
|
150
|
+
re(e, d(n));
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function O(e) {
|
|
155
|
+
let t = x(), n = null, i = null;
|
|
156
|
+
function a() {
|
|
157
|
+
o(t) && (D(t.anchor, n), D(t.focus, i), m(t));
|
|
158
|
+
}
|
|
159
|
+
o(t) && (n = E(t.anchor), i = E(t.focus));
|
|
160
|
+
let s = !1;
|
|
161
|
+
for (let t of ae(e, "next")) {
|
|
162
|
+
let n = t.origin;
|
|
163
|
+
if (v(n) && !n.isInline()) {
|
|
164
|
+
let i = n.getChildren();
|
|
165
|
+
if (i.length > 0) {
|
|
166
|
+
let t = g(e);
|
|
167
|
+
t.append(...i), n.append(t), s = !0;
|
|
168
|
+
}
|
|
169
|
+
se(n, r(t), { $shouldSplit: () => !1 });
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
if (e.isAttached()) {
|
|
173
|
+
let t = e.getPreviousSibling();
|
|
174
|
+
if (j(t) && t.shouldMergeAdjacentLink(e)) return t.append(...e.getChildren()), e.remove(), void a();
|
|
175
|
+
let n = e.getNextSibling();
|
|
176
|
+
j(n) && e.shouldMergeAdjacentLink(n) && (e.append(...n.getChildren()), n.remove(), s = !0);
|
|
177
|
+
}
|
|
178
|
+
if (s) {
|
|
179
|
+
if (!e.canBeEmpty() && e.isEmpty()) {
|
|
180
|
+
let t = e.getParent();
|
|
181
|
+
e.remove(), t && t.isEmpty() && t.remove();
|
|
182
|
+
}
|
|
183
|
+
a();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function k(e) {
|
|
187
|
+
let t = null;
|
|
188
|
+
if (_(e)) {
|
|
189
|
+
let n = e.textContent;
|
|
190
|
+
(n !== null && n !== "" || e.children.length > 0) && (t = A(e.getAttribute("href") || "", {
|
|
191
|
+
rel: e.getAttribute("rel"),
|
|
192
|
+
target: e.getAttribute("target"),
|
|
193
|
+
title: e.getAttribute("title")
|
|
194
|
+
}));
|
|
195
|
+
}
|
|
196
|
+
return { node: t };
|
|
197
|
+
}
|
|
198
|
+
function A(e = "", t) {
|
|
199
|
+
return h(new T(e, t));
|
|
200
|
+
}
|
|
201
|
+
function j(e) {
|
|
202
|
+
return e instanceof T;
|
|
203
|
+
}
|
|
204
|
+
var M = class e extends T {
|
|
205
|
+
__isUnlinked;
|
|
206
|
+
constructor(e = "", t = {}, n) {
|
|
207
|
+
super(e, t, n), this.__isUnlinked = t.isUnlinked !== void 0 && t.isUnlinked !== null && t.isUnlinked;
|
|
208
|
+
}
|
|
209
|
+
afterCloneFrom(e) {
|
|
210
|
+
super.afterCloneFrom(e), this.__isUnlinked = e.__isUnlinked;
|
|
211
|
+
}
|
|
212
|
+
static getType() {
|
|
213
|
+
return "autolink";
|
|
214
|
+
}
|
|
215
|
+
static clone(t) {
|
|
216
|
+
return new e(t.__url, {
|
|
217
|
+
isUnlinked: t.__isUnlinked,
|
|
218
|
+
rel: t.__rel,
|
|
219
|
+
target: t.__target,
|
|
220
|
+
title: t.__title
|
|
221
|
+
}, t.__key);
|
|
222
|
+
}
|
|
223
|
+
shouldMergeAdjacentLink(e) {
|
|
224
|
+
return !1;
|
|
225
|
+
}
|
|
226
|
+
getIsUnlinked() {
|
|
227
|
+
return this.__isUnlinked;
|
|
228
|
+
}
|
|
229
|
+
setIsUnlinked(e) {
|
|
230
|
+
let t = this.getWritable();
|
|
231
|
+
return t.__isUnlinked = e, t;
|
|
232
|
+
}
|
|
233
|
+
createDOM(e) {
|
|
234
|
+
return this.__isUnlinked ? document.createElement("span") : super.createDOM(e);
|
|
235
|
+
}
|
|
236
|
+
updateDOM(e, t, n) {
|
|
237
|
+
return super.updateDOM(e, t, n) || e.__isUnlinked !== this.__isUnlinked;
|
|
238
|
+
}
|
|
239
|
+
static importJSON(e) {
|
|
240
|
+
return N().updateFromJSON(e);
|
|
241
|
+
}
|
|
242
|
+
updateFromJSON(e) {
|
|
243
|
+
return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked || !1);
|
|
244
|
+
}
|
|
245
|
+
static importDOM() {
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
exportJSON() {
|
|
249
|
+
return {
|
|
250
|
+
...super.exportJSON(),
|
|
251
|
+
isUnlinked: this.__isUnlinked
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
insertNewAfter(e, t = !0) {
|
|
255
|
+
let n = N(this.__url, {
|
|
256
|
+
isUnlinked: this.__isUnlinked,
|
|
257
|
+
rel: this.__rel,
|
|
258
|
+
target: this.__target,
|
|
259
|
+
title: this.__title
|
|
260
|
+
});
|
|
261
|
+
return this.insertAfter(n, t), n;
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
function N(e = "", t) {
|
|
265
|
+
return h(new M(e, t));
|
|
266
|
+
}
|
|
267
|
+
function P(e) {
|
|
268
|
+
return e instanceof M;
|
|
269
|
+
}
|
|
270
|
+
var F = p("TOGGLE_LINK_COMMAND");
|
|
271
|
+
function I(e, t) {
|
|
272
|
+
if (e.type === "element") {
|
|
273
|
+
let n = e.getNode();
|
|
274
|
+
return v(n) || function(e, ...t) {
|
|
275
|
+
let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
276
|
+
r.append("code", e);
|
|
277
|
+
for (let e of t) r.append("v", e);
|
|
278
|
+
throw n.search = r.toString(), Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
279
|
+
}(252), n.getChildren()[e.offset + t] || null;
|
|
280
|
+
}
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
function L(e, t = {}) {
|
|
284
|
+
let n;
|
|
285
|
+
if (e && typeof e == "object") {
|
|
286
|
+
let { url: r, ...i } = e;
|
|
287
|
+
n = r, t = {
|
|
288
|
+
...i,
|
|
289
|
+
...t
|
|
290
|
+
};
|
|
291
|
+
} else n = e;
|
|
292
|
+
let { target: r, title: i } = t, a = t.rel === void 0 ? "noreferrer" : t.rel, s = x();
|
|
293
|
+
if (s === null || !o(s) && !f(s)) return;
|
|
294
|
+
if (f(s)) {
|
|
295
|
+
let e = s.getNodes();
|
|
296
|
+
if (e.length === 0) return;
|
|
297
|
+
e.forEach((e) => {
|
|
298
|
+
if (n === null) {
|
|
299
|
+
let t = c(e, (e) => !P(e) && j(e));
|
|
300
|
+
t && (t.insertBefore(e), t.getChildren().length === 0 && t.remove());
|
|
301
|
+
} else {
|
|
302
|
+
let t = c(e, (e) => !P(e) && j(e));
|
|
303
|
+
if (t) t.setURL(n), r !== void 0 && t.setTarget(r), a !== void 0 && t.setRel(a);
|
|
304
|
+
else {
|
|
305
|
+
let t = A(n, {
|
|
306
|
+
rel: a,
|
|
307
|
+
target: r
|
|
308
|
+
});
|
|
309
|
+
e.insertBefore(t), t.append(e);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
if (s.isCollapsed() && n === null) for (let e of s.getNodes()) {
|
|
316
|
+
let t = c(e, (e) => !P(e) && j(e));
|
|
317
|
+
t !== null && (t.getChildren().forEach((e) => {
|
|
318
|
+
t.insertBefore(e);
|
|
319
|
+
}), t.remove());
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
let l = s.extract();
|
|
323
|
+
if (n === null) {
|
|
324
|
+
let e = /* @__PURE__ */ new Set();
|
|
325
|
+
l.forEach((t) => {
|
|
326
|
+
let n = c(t, (e) => !P(e) && j(e));
|
|
327
|
+
if (n !== null) {
|
|
328
|
+
let t = n.getKey();
|
|
329
|
+
if (e.has(t)) return;
|
|
330
|
+
(function(e, t) {
|
|
331
|
+
let n = new Set(t.filter((t) => e.isParentOf(t)).map((e) => e.getKey())), r = e.getChildren(), i = (r) => n.has(r.getKey()) || v(r) && t.some((t) => e.isParentOf(t) && r.isParentOf(t)), a = r.filter(i);
|
|
332
|
+
if (a.length === r.length) return r.forEach((t) => e.insertBefore(t)), void e.remove();
|
|
333
|
+
let o = r.findIndex(i), s = r.findLastIndex(i), c = o === 0, l = s === r.length - 1;
|
|
334
|
+
if (c) a.forEach((t) => e.insertBefore(t));
|
|
335
|
+
else if (l) for (let t = a.length - 1; t >= 0; t--) e.insertAfter(a[t]);
|
|
336
|
+
else {
|
|
337
|
+
for (let t = a.length - 1; t >= 0; t--) e.insertAfter(a[t]);
|
|
338
|
+
let t = r.slice(s + 1);
|
|
339
|
+
if (t.length > 0) {
|
|
340
|
+
let n = g(e);
|
|
341
|
+
a[a.length - 1].insertAfter(n), t.forEach((e) => n.append(e));
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
})(n, l), e.add(t);
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
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), a !== void 0 && e.setRel(a), i !== void 0 && e.setTitle(i));
|
|
351
|
+
};
|
|
352
|
+
if (l.length === 1) {
|
|
353
|
+
let e = l[0], t = c(e, j);
|
|
354
|
+
if (t !== null) return d(t);
|
|
355
|
+
}
|
|
356
|
+
(function(e) {
|
|
357
|
+
let t = x();
|
|
358
|
+
if (!o(t)) return e();
|
|
359
|
+
let n = m(t), r = n.isBackward(), i = I(n.anchor, r ? -1 : 0), a = I(n.focus, r ? 0 : -1);
|
|
360
|
+
if (e(), i || a) {
|
|
361
|
+
let e = x();
|
|
362
|
+
if (o(e)) {
|
|
363
|
+
let t = e.clone();
|
|
364
|
+
if (i) {
|
|
365
|
+
let e = i.getParent();
|
|
366
|
+
e && t.anchor.set(e.getKey(), i.getIndexWithinParent() + (r ? 1 : 0), "element");
|
|
367
|
+
}
|
|
368
|
+
if (a) {
|
|
369
|
+
let e = a.getParent();
|
|
370
|
+
e && t.focus.set(e.getKey(), a.getIndexWithinParent() + (r ? 0 : 1), "element");
|
|
371
|
+
}
|
|
372
|
+
te(m(t));
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
})(() => {
|
|
376
|
+
let e = null;
|
|
377
|
+
for (let t of l) {
|
|
378
|
+
if (!t.isAttached()) continue;
|
|
379
|
+
let o = c(t, j);
|
|
380
|
+
if (o) {
|
|
381
|
+
d(o);
|
|
382
|
+
continue;
|
|
383
|
+
}
|
|
384
|
+
if (v(t)) {
|
|
385
|
+
if (!t.isInline()) continue;
|
|
386
|
+
if (j(t)) {
|
|
387
|
+
if (!(P(t) || e !== null && e.getParentOrThrow().isParentOf(t))) {
|
|
388
|
+
d(t), e = t;
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
for (let e of t.getChildren()) t.insertBefore(e);
|
|
392
|
+
t.remove();
|
|
393
|
+
continue;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
let s = t.getPreviousSibling();
|
|
397
|
+
j(s) && s.is(e) ? s.append(t) : (e = A(n, {
|
|
398
|
+
rel: a,
|
|
399
|
+
target: r,
|
|
400
|
+
title: i
|
|
401
|
+
}), t.insertAfter(e), e.append(t));
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
var R = /^\+?[0-9\s()-]{5,}$/;
|
|
406
|
+
function z(e) {
|
|
407
|
+
return e.match(/^[a-z][a-z0-9+.-]*:/i) || e.match(/^[/#.]/) ? e : e.includes("@") ? `mailto:${e}` : R.test(e) ? `tel:${e}` : `https://${e}`;
|
|
408
|
+
}
|
|
409
|
+
function B(e, t) {
|
|
410
|
+
return n(e.registerNodeTransform(T, O), e.registerCommand(F, (e) => {
|
|
411
|
+
let n = t.validateUrl.peek(), r = t.attributes.peek();
|
|
412
|
+
if (e === null) return L(null), !0;
|
|
413
|
+
if (typeof e == "string") return !(n !== void 0 && !n(e)) && (L(e, r), !0);
|
|
414
|
+
{
|
|
415
|
+
let { url: t, target: n, rel: i, title: a } = e;
|
|
416
|
+
return L(t, {
|
|
417
|
+
...r,
|
|
418
|
+
rel: i,
|
|
419
|
+
target: n,
|
|
420
|
+
title: a
|
|
421
|
+
}), !0;
|
|
422
|
+
}
|
|
423
|
+
}, 0), C(() => {
|
|
424
|
+
let n = t.validateUrl.value;
|
|
425
|
+
if (!n) return;
|
|
426
|
+
let r = t.attributes.value;
|
|
427
|
+
return e.registerCommand(i, (t) => {
|
|
428
|
+
let i = x();
|
|
429
|
+
if (!o(i) || i.isCollapsed() || !ce(t, ClipboardEvent) || t.clipboardData === null) return !1;
|
|
430
|
+
let a = t.clipboardData.getData("text");
|
|
431
|
+
return !!n(a) && !i.getNodes().some((e) => v(e)) && (e.dispatchCommand(F, {
|
|
432
|
+
...r,
|
|
433
|
+
url: a
|
|
434
|
+
}), t.preventDefault(), !0);
|
|
435
|
+
}, 1);
|
|
436
|
+
}));
|
|
437
|
+
}
|
|
438
|
+
var V = e({
|
|
439
|
+
build: (e, t, n) => w(t),
|
|
440
|
+
config: {
|
|
441
|
+
attributes: void 0,
|
|
442
|
+
validateUrl: void 0
|
|
443
|
+
},
|
|
444
|
+
mergeConfig(e, t) {
|
|
445
|
+
let n = a(e, t);
|
|
446
|
+
return e.attributes && (n.attributes = a(e.attributes, n.attributes)), n;
|
|
447
|
+
},
|
|
448
|
+
name: "@lexical/link/Link",
|
|
449
|
+
nodes: () => [T],
|
|
450
|
+
register: (e, t, n) => B(e, n.getOutput())
|
|
451
|
+
});
|
|
452
|
+
function H(e, t, n = {}) {
|
|
453
|
+
let r = (n) => {
|
|
454
|
+
let r = n.target;
|
|
455
|
+
if (!u(r)) return;
|
|
456
|
+
let i = oe(r);
|
|
457
|
+
if (i === null) return;
|
|
458
|
+
let a = null, s = null;
|
|
459
|
+
if (i.update(() => {
|
|
460
|
+
let e = ne(r);
|
|
461
|
+
if (e !== null) {
|
|
462
|
+
let n = c(e, v);
|
|
463
|
+
if (!t.disabled.peek()) if (j(n)) a = n.sanitizeUrl(n.getURL()), s = n.getTarget();
|
|
464
|
+
else {
|
|
465
|
+
let e = function(e, t) {
|
|
466
|
+
let n = e;
|
|
467
|
+
for (; n != null;) {
|
|
468
|
+
if (t(n)) return n;
|
|
469
|
+
n = n.parentNode;
|
|
470
|
+
}
|
|
471
|
+
return null;
|
|
472
|
+
}(r, _);
|
|
473
|
+
e !== null && (a = e.href, s = e.target);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}), a === null || a === "") return;
|
|
477
|
+
let l = e.getEditorState().read(x);
|
|
478
|
+
if (o(l) && !l.isCollapsed()) return void n.preventDefault();
|
|
479
|
+
let d = n.type === "auxclick" && n.button === 1;
|
|
480
|
+
window.open(a, t.newTab.peek() || d || n.metaKey || n.ctrlKey || s === "_blank" ? "_blank" : "_self"), n.preventDefault();
|
|
481
|
+
}, i = (e) => {
|
|
482
|
+
e.button === 1 && r(e);
|
|
483
|
+
};
|
|
484
|
+
return e.registerRootListener((e) => {
|
|
485
|
+
if (e) return e.addEventListener("click", r, n), e.addEventListener("mouseup", i, n), () => {
|
|
486
|
+
e.removeEventListener("click", r), e.removeEventListener("mouseup", i);
|
|
487
|
+
};
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
e({
|
|
491
|
+
build: (e, t, n) => w(t),
|
|
492
|
+
config: b({
|
|
493
|
+
disabled: !1,
|
|
494
|
+
newTab: !1
|
|
495
|
+
}),
|
|
496
|
+
dependencies: [V],
|
|
497
|
+
name: "@lexical/link/ClickableLink",
|
|
498
|
+
register: (e, t, n) => H(e, n.getOutput())
|
|
499
|
+
});
|
|
500
|
+
function U(e, t = (e) => e) {
|
|
501
|
+
return (n) => {
|
|
502
|
+
let r = e.exec(n);
|
|
503
|
+
return r === null ? null : {
|
|
504
|
+
index: r.index,
|
|
505
|
+
length: r[0].length,
|
|
506
|
+
text: r[0],
|
|
507
|
+
url: t(r[0])
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
function W(e, t) {
|
|
512
|
+
for (let n = 0; n < t.length; n++) {
|
|
513
|
+
let r = t[n](e);
|
|
514
|
+
if (r) return r;
|
|
515
|
+
}
|
|
516
|
+
return null;
|
|
517
|
+
}
|
|
518
|
+
var ue = /[.,;\s]/;
|
|
519
|
+
function G(e) {
|
|
520
|
+
return ue.test(e);
|
|
521
|
+
}
|
|
522
|
+
function K(e) {
|
|
523
|
+
return G(e[e.length - 1]);
|
|
524
|
+
}
|
|
525
|
+
function q(e) {
|
|
526
|
+
return G(e[0]);
|
|
527
|
+
}
|
|
528
|
+
function J(e) {
|
|
529
|
+
let n = e.getPreviousSibling();
|
|
530
|
+
return v(n) && (n = n.getLastDescendant()), n === null || s(n) || t(n) && K(n.getTextContent());
|
|
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());
|
|
535
|
+
}
|
|
536
|
+
function de(e, t, n, r) {
|
|
537
|
+
return (e > 0 ? G(n[e - 1]) : J(r[0])) ? t < n.length ? G(n[t]) : Y(r[r.length - 1]) : !1;
|
|
538
|
+
}
|
|
539
|
+
function fe(e, t, n) {
|
|
540
|
+
let r = [], i = [], a = [], o = 0, s = 0, c = [...e];
|
|
541
|
+
for (; c.length > 0;) {
|
|
542
|
+
let e = c[0], l = e.getTextContent().length, u = s;
|
|
543
|
+
s + l <= t ? (r.push(e), o += l) : u >= n ? a.push(e) : i.push(e), s += l, c.shift();
|
|
544
|
+
}
|
|
545
|
+
return [
|
|
546
|
+
o,
|
|
547
|
+
r,
|
|
548
|
+
i,
|
|
549
|
+
a
|
|
550
|
+
];
|
|
551
|
+
}
|
|
552
|
+
function pe(e, n, r, i) {
|
|
553
|
+
let a = N(i.url, i.attributes);
|
|
554
|
+
if (e.length === 1) {
|
|
555
|
+
let t, o = e[0];
|
|
556
|
+
n === 0 ? [t, o] = o.splitText(r) : [, t, o] = o.splitText(n, r);
|
|
557
|
+
let s = S(i.text);
|
|
558
|
+
return s.setFormat(t.getFormat()), s.setDetail(t.getDetail()), s.setStyle(t.getStyle()), a.append(s), t.replace(a), o;
|
|
559
|
+
}
|
|
560
|
+
if (e.length > 1) {
|
|
561
|
+
let i = e[0], s, c = i.getTextContent().length;
|
|
562
|
+
n === 0 ? s = i : [, s] = i.splitText(n);
|
|
563
|
+
let l = [], u;
|
|
564
|
+
for (let t = 1; t < e.length; t++) {
|
|
565
|
+
let n = e[t], i = n.getTextContent().length, a = c;
|
|
566
|
+
if (a < r) if (c + i <= r) l.push(n);
|
|
567
|
+
else {
|
|
568
|
+
let [e, t] = n.splitText(r - a);
|
|
569
|
+
l.push(e), u = t;
|
|
570
|
+
}
|
|
571
|
+
c += i;
|
|
572
|
+
}
|
|
573
|
+
let d = x(), p = d ? d.getNodes().find(t) : void 0, m = S(s.getTextContent());
|
|
574
|
+
return m.setFormat(s.getFormat()), m.setDetail(s.getDetail()), m.setStyle(s.getStyle()), a.append(m, ...l), p && p === s && (o(d) ? m.select(d.anchor.offset, d.focus.offset) : f(d) && m.select(0, m.getTextContent().length)), s.replace(a), u;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
function X(e, n, r) {
|
|
578
|
+
let i = e.getChildren(), a = i.length;
|
|
579
|
+
for (let n = 0; n < a; n++) {
|
|
580
|
+
let a = i[n];
|
|
581
|
+
if (!t(a) || !a.isSimpleText()) return Z(e), void r(null, e.getURL());
|
|
582
|
+
}
|
|
583
|
+
let o = e.getTextContent(), s = W(o, n);
|
|
584
|
+
if (s === null || s.text !== o || !J(e) || !Y(e)) return Z(e), void r(null, e.getURL());
|
|
585
|
+
let c = e.getURL();
|
|
586
|
+
if (c !== s.url && (e.setURL(s.url), r(s.url, c)), s.attributes) {
|
|
587
|
+
let t = e.getRel();
|
|
588
|
+
t !== s.attributes.rel && (e.setRel(s.attributes.rel || null), r(s.attributes.rel || null, t));
|
|
589
|
+
let n = e.getTarget();
|
|
590
|
+
n !== s.attributes.target && (e.setTarget(s.attributes.target || null), r(s.attributes.target || null, n));
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
function Z(e) {
|
|
594
|
+
let t = e.getChildren();
|
|
595
|
+
for (let n = t.length - 1; n >= 0; n--) e.insertAfter(t[n]);
|
|
596
|
+
return e.remove(), t.map((e) => e.getLatest());
|
|
597
|
+
}
|
|
598
|
+
var Q = {
|
|
599
|
+
changeHandlers: [],
|
|
600
|
+
excludeParents: [],
|
|
601
|
+
matchers: []
|
|
602
|
+
};
|
|
603
|
+
function $(e, r = Q) {
|
|
604
|
+
let { matchers: i, changeHandlers: a, excludeParents: s } = r, c = (e, t) => {
|
|
605
|
+
for (let n of a) n(e, t);
|
|
606
|
+
};
|
|
607
|
+
return n(e.registerNodeTransform(y, (e) => {
|
|
608
|
+
let n = e.getParentOrThrow(), r = e.getPreviousSibling();
|
|
609
|
+
P(n) ? X(n, i, c) : !j(n) && !s.some((e) => e(n)) && (e.isSimpleText() && (q(e.getTextContent()) || !P(r)) && (function(e, t, n) {
|
|
610
|
+
for (let t of e) {
|
|
611
|
+
let e = t.getParent();
|
|
612
|
+
if (P(e) && !e.getIsUnlinked()) return;
|
|
613
|
+
}
|
|
614
|
+
let r = [...e], i = r.map((e) => e.getTextContent()).join(""), a, o = i, s = 0;
|
|
615
|
+
for (; (a = W(o, t)) && a !== null;) {
|
|
616
|
+
let e = a.index, t = e + a.length;
|
|
617
|
+
if (de(s + e, s + t, i, r)) {
|
|
618
|
+
let [i, , c, l] = fe(r, s + e, s + t), u = !1;
|
|
619
|
+
for (let e of c) {
|
|
620
|
+
let t = e.getParent();
|
|
621
|
+
if (P(t) && !t.getIsUnlinked()) {
|
|
622
|
+
u = !0;
|
|
623
|
+
break;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
if (u) {
|
|
627
|
+
s += t, o = o.substring(t);
|
|
628
|
+
continue;
|
|
629
|
+
}
|
|
630
|
+
let d = pe(c, s + e - i, s + t - i, a);
|
|
631
|
+
r = d ? [d, ...l] : l, n(a.url, null), s = 0;
|
|
632
|
+
} else s += t;
|
|
633
|
+
o = o.substring(t);
|
|
634
|
+
}
|
|
635
|
+
})(function(e) {
|
|
636
|
+
let n = [e], r = e.getNextSibling();
|
|
637
|
+
for (; r !== null && t(r) && r.isSimpleText() && (n.push(r), !/[\s]/.test(r.getTextContent()));) r = r.getNextSibling();
|
|
638
|
+
return n;
|
|
639
|
+
}(e), i, c), (function(e, t, n) {
|
|
640
|
+
let r = e.getParent(), i = e.getPreviousSibling(), a = e.getNextSibling(), o = e.getTextContent();
|
|
641
|
+
if (!P(r) || r.getIsUnlinked()) {
|
|
642
|
+
if (P(i) && !i.getIsUnlinked() && i.is(e.getPreviousSibling()) && e.getParent() === i.getParent()) {
|
|
643
|
+
if (!q(o)) return Z(i), void n(null, i.getURL());
|
|
644
|
+
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 = W(r, t);
|
|
646
|
+
a !== null && a.text === r && (i.append(e), X(i, t, n), n(null, i.getURL()));
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
var s;
|
|
650
|
+
!P(a) || a.getIsUnlinked() || K(o) || a.is(e.getNextSibling()) && e.getParent() === a.getParent() && (Z(a), n(null, a.getURL()));
|
|
651
|
+
}
|
|
652
|
+
})(e, i, c));
|
|
653
|
+
}), e.registerCommand(F, (e) => {
|
|
654
|
+
let t = x();
|
|
655
|
+
return e !== null || !o(t) || t.extract().forEach((e) => {
|
|
656
|
+
let t = e.getParent();
|
|
657
|
+
P(t) && (t.setIsUnlinked(!t.getIsUnlinked()), t.markDirty());
|
|
658
|
+
}), !1;
|
|
659
|
+
}, 1));
|
|
660
|
+
}
|
|
661
|
+
e({
|
|
662
|
+
config: Q,
|
|
663
|
+
dependencies: [V],
|
|
664
|
+
mergeConfig(e, t) {
|
|
665
|
+
let n = a(e, t);
|
|
666
|
+
for (let r of [
|
|
667
|
+
"matchers",
|
|
668
|
+
"changeHandlers",
|
|
669
|
+
"excludeParents"
|
|
670
|
+
]) {
|
|
671
|
+
let i = t[r];
|
|
672
|
+
Array.isArray(i) && (n[r] = [...e[r], ...i]);
|
|
673
|
+
}
|
|
674
|
+
return n;
|
|
675
|
+
},
|
|
676
|
+
name: "@lexical/link/AutoLink",
|
|
677
|
+
nodes: [M],
|
|
678
|
+
register: $
|
|
679
|
+
});
|
|
680
|
+
//#endregion
|
|
681
|
+
export { $ as a, M as c, U as i, T as n, L as o, B as r, H as s, F as t };
|
|
682
|
+
|
|
683
|
+
//# sourceMappingURL=LexicalLink.prod-Bf9JUdMv.js.map
|