@uva-glass/component-library 3.55.4 → 3.55.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-BpnBHYIx.js → Accordion-DvblEUVu.js} +16 -17
- package/dist/{Accordion-BpnBHYIx.js.map → Accordion-DvblEUVu.js.map} +1 -1
- package/dist/ActionList-O9w1hqNg.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-CqPLSi0R.js} +1225 -1120
- package/dist/Lexical.prod-CqPLSi0R.js.map +1 -0
- package/dist/LexicalClipboard.prod-BVw_sFpo.js +651 -0
- package/dist/LexicalClipboard.prod-BVw_sFpo.js.map +1 -0
- package/dist/{LexicalExtension.prod-COPHoPpX.js → LexicalExtension.prod-CUQTgbur.js} +318 -291
- package/dist/LexicalExtension.prod-CUQTgbur.js.map +1 -0
- package/dist/{LexicalLink.prod-Bf9JUdMv.js → LexicalLink.prod-DMhcqD9x.js} +212 -205
- package/dist/LexicalLink.prod-DMhcqD9x.js.map +1 -0
- package/dist/{LexicalList.prod-DRz8vsM9.js → LexicalList.prod-eYlcb5Ao.js} +295 -255
- package/dist/LexicalList.prod-eYlcb5Ao.js.map +1 -0
- package/dist/{LexicalTable.prod-D16GW-aZ.js → LexicalTable.prod-DlOxUQou.js} +717 -703
- package/dist/LexicalTable.prod-DlOxUQou.js.map +1 -0
- package/dist/LexicalUtils.prod-BqcriFWV.js +343 -0
- package/dist/LexicalUtils.prod-BqcriFWV.js.map +1 -0
- package/dist/{LinkContextMenu-m_CGQEiX.js → LinkContextMenu-ePn1iZ_z.js} +2 -2
- package/dist/{LinkContextMenu-m_CGQEiX.js.map → LinkContextMenu-ePn1iZ_z.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/MultiSelectBox-Cuh_o-A1.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-BNp8ST0q.js} +5 -5
- package/dist/{PasteHandlerPlugin-DjD1wryY.js.map → PasteHandlerPlugin-BNp8ST0q.js.map} +1 -1
- package/dist/Periods-BYETtB6R.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/Slider-BlLyrET9.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-Bc5y-Qbx.js} +36 -36
- package/dist/{TableCellResizerPlugin-CgYsYsuY.js.map → TableCellResizerPlugin-Bc5y-Qbx.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-DeC0fbbY.js → chunk-3e0lkp8x.js} +1 -1
- package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js → chunk-SZQXB3JV-D6GR5B4F.js} +5 -5
- package/dist/chunk-SZQXB3JV-D6GR5B4F.js.map +1 -0
- package/dist/{client-UU-mS47K.js → client-8jeXrH7N.js} +10 -10
- package/dist/{client-UU-mS47K.js.map → client-8jeXrH7N.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.stories.js.map +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.stories.js.map +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.stories.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.stories.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.stories.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.stories.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/ButtonGroup/ButtonGroup.stories.js.map +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.stories.js.map +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.stories.js.map +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.stories.js.map +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.stories.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.stories.js.map +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.stories.js.map +1 -1
- 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/Chip/Chip.stories.js.map +1 -1
- package/dist/components/ControlsButton/ControlsButton.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +2 -2
- package/dist/components/ControlsButton/ControlsButton.stories.js.map +1 -1
- 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/Drawer.stories.js.map +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js.map +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -5
- package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
- package/dist/components/FeedbackBox/FeedbackBox.stories.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/FieldHint.stories.js.map +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/Fieldset.stories.js.map +1 -1
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FormField/FormField.stories.js.map +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/GridRow/GridRow.stories.js.map +1 -1
- package/dist/components/HorizontalList/HorizontalList.stories.js.map +1 -1
- package/dist/components/Icon/Icon.stories.js.map +1 -1
- package/dist/components/IconButton/IconButton.stories.js +6 -7
- package/dist/components/IconButton/IconButton.stories.js.map +1 -1
- package/dist/components/InfoBanner/InfoBanner.stories.js.map +1 -1
- package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
- package/dist/components/Input/Input.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.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/MenuLink/MenuLink.stories.js.map +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.stories.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/MetaDataList/MetaDataList.stories.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/ModalDialog.stories.js.map +1 -1
- 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.stories.js.map +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.stories.js.map +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/OverlayStepBar/OverlayStepBar.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/PageOverlay.stories.js.map +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/RadioButton/RadioButton.stories.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js.map +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/Repeater/Repeater.stories.js.map +1 -1
- 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 +5 -5
- 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 +36 -36
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
- 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 +16 -16
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
- 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 +29 -29
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
- 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/helpers.js.map +1 -1
- package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
- package/dist/components/RteEditor/index.js +1 -2
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +17 -17
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js.map +1 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +19 -19
- package/dist/components/SearchField/SearcheField.stories.js.map +1 -1
- package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
- package/dist/components/Slider/Slider.stories.js.map +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js.map +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/Spinner.stories.js.map +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.stories.js.map +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -5
- package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
- package/dist/components/StatusPill/StatusPill.stories.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.stories.js.map +1 -1
- 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/ToggleSwitch/ToggleSwitch.stories.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.stories.js +1 -1
- package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -6
- package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
- package/dist/components/WeekSelector/WeekSelector.stories.js.map +1 -1
- package/dist/components/index.js +12 -13
- package/dist/{components-MNvdQLv1.js → components-BzxAULjf.js} +495 -495
- package/dist/components-BzxAULjf.js.map +1 -0
- package/dist/{dist-2TKCXdYZ.js → dist-V_v3kC0L.js} +183 -183
- package/dist/dist-V_v3kC0L.js.map +1 -0
- package/dist/{esm-UNe_gmRA.js → esm-BwHoYxVb.js} +5 -5
- package/dist/{esm-UNe_gmRA.js.map → esm-BwHoYxVb.js.map} +1 -1
- package/dist/{helpers-BBSxTGRl.js → helpers-B1VK8xTF.js} +7 -7
- package/dist/{helpers-BBSxTGRl.js.map → helpers-B1VK8xTF.js.map} +1 -1
- package/dist/index.js +12 -13
- package/dist/{lib-6BbFZdI7.js → lib-BvOQt8El.js} +2 -2
- package/dist/{lib-6BbFZdI7.js.map → lib-BvOQt8El.js.map} +1 -1
- package/dist/{react-18-CRbkdI-3.js → react-18-B7MZmX_Z.js} +3 -3
- package/dist/{react-18-CRbkdI-3.js.map → react-18-B7MZmX_Z.js.map} +1 -1
- package/dist/{react.esm-CzIhAqlo.js → react.esm-D_F72rY1.js} +590 -590
- package/dist/react.esm-D_F72rY1.js.map +1 -0
- package/dist/setupTests.js +2 -3
- package/dist/setupTests.js.map +1 -1
- package/dist/storybook__react.d.js +99 -99
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-DQruvi8i.js → test-Pa9Lwbsq.js} +13 -11
- package/dist/test-Pa9Lwbsq.js.map +1 -0
- package/dist/{test-utils-BSs0eZfL.js → test-utils-Cmn06m_x.js} +2 -2
- package/dist/{test-utils-BSs0eZfL.js.map → test-utils-Cmn06m_x.js.map} +1 -1
- package/package.json +30 -30
- package/dist/Fieldset-CoNu_Owa.js +0 -23
- package/dist/Lexical.prod-DIglXatJ.js.map +0 -1
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js +0 -248
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js.map +0 -1
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +0 -1
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +0 -1
- package/dist/LexicalList.prod-DRz8vsM9.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/chunk-SZQXB3JV-D0XG4Tlp.js.map +0 -1
- package/dist/components-MNvdQLv1.js.map +0 -1
- package/dist/dist-2TKCXdYZ.js.map +0 -1
- package/dist/react.esm-CzIhAqlo.js.map +0 -1
- package/dist/test-DQruvi8i.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 {
|
|
3
|
-
import {
|
|
1
|
+
import { An as e, F as t, Fn as n, Ht as r, Kt as i, Lt as a, Mt as o, O as s, On as c, Rt as l, St as u, U as d, Wt as f, Zt as p, a as m, bn as h, bt as g, er as _, ft as v, kn as y, mt as b, on as x, ot as S, p as ee, pt as te, rt as C, u as w, un as ne, v as T, w as re, wn as ie } from "./Lexical.prod-CqPLSi0R.js";
|
|
2
|
+
import { l as ae, r as oe } from "./LexicalUtils.prod-BqcriFWV.js";
|
|
3
|
+
import { i as E, n as se } from "./LexicalExtension.prod-CUQTgbur.js";
|
|
4
4
|
//#region node_modules/@lexical/link/LexicalLink.prod.mjs
|
|
5
|
-
var
|
|
5
|
+
var ce = new Set([
|
|
6
6
|
"http:",
|
|
7
7
|
"https:",
|
|
8
8
|
"mailto:",
|
|
9
9
|
"sms:",
|
|
10
10
|
"tel:"
|
|
11
|
-
]),
|
|
11
|
+
]), D = class e extends m {
|
|
12
12
|
__url;
|
|
13
13
|
__target;
|
|
14
14
|
__rel;
|
|
@@ -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), ne(t, e.theme.link), t;
|
|
37
37
|
}
|
|
38
38
|
updateLinkDOM(e, t, n) {
|
|
39
|
-
if (
|
|
39
|
+
if (g(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
|
}
|
|
@@ -64,10 +64,10 @@ var le = new Set([
|
|
|
64
64
|
return super.updateFromJSON(e).setURL(e.url).setRel(e.rel || null).setTarget(e.target || null).setTitle(e.title || null);
|
|
65
65
|
}
|
|
66
66
|
sanitizeUrl(e) {
|
|
67
|
-
e =
|
|
67
|
+
e = R(e);
|
|
68
68
|
try {
|
|
69
|
-
let t = new URL(
|
|
70
|
-
if (!
|
|
69
|
+
let t = new URL(R(e));
|
|
70
|
+
if (!ce.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 = d(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 (!T(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,51 +141,57 @@ 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
|
|
144
|
+
function O(e) {
|
|
145
145
|
let t = ie(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
|
+
s(e, y(n));
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
let t =
|
|
156
|
-
function
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
let
|
|
161
|
-
for (let t of
|
|
154
|
+
function le(e) {
|
|
155
|
+
let t = S(), n = null, r = null;
|
|
156
|
+
function i() {
|
|
157
|
+
T(t) && (k(t.anchor, n), k(t.focus, r), v(t));
|
|
158
|
+
}
|
|
159
|
+
T(t) && (n = O(t.anchor), r = O(t.focus));
|
|
160
|
+
let a = !1;
|
|
161
|
+
for (let t of C(e, "next")) {
|
|
162
162
|
let n = t.origin;
|
|
163
|
-
if (
|
|
164
|
-
let
|
|
165
|
-
if (
|
|
166
|
-
let t =
|
|
167
|
-
t.append(...
|
|
163
|
+
if (u(n) && !n.isInline()) {
|
|
164
|
+
let r = n.getChildren();
|
|
165
|
+
if (r.length > 0) {
|
|
166
|
+
let t = d(e);
|
|
167
|
+
t.append(...r), n.append(t), a = !0;
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
ae(n, o(t), { $shouldSplit: () => !1 });
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
+
function s(e, t, n) {
|
|
173
|
+
let [r, i] = e, a = (e) => te(e) && e.origin.is(t);
|
|
174
|
+
if (!a(r) && !a(i)) return e;
|
|
175
|
+
let o = y(C(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
|
|
175
|
-
let
|
|
176
|
-
j(
|
|
180
|
+
if (j(t) && t.shouldMergeAdjacentLink(e)) return n &&= s(n, t, e), r &&= s(r, t, e), t.append(...e.getChildren()), e.remove(), void i();
|
|
181
|
+
let o = e.getNextSibling();
|
|
182
|
+
j(o) && e.shouldMergeAdjacentLink(o) && (n &&= s(n, e, o), r &&= s(r, e, o), e.append(...o.getChildren()), o.remove(), a = !0);
|
|
177
183
|
}
|
|
178
|
-
if (
|
|
184
|
+
if (a) {
|
|
179
185
|
if (!e.canBeEmpty() && e.isEmpty()) {
|
|
180
186
|
let t = e.getParent();
|
|
181
187
|
e.remove(), t && t.isEmpty() && t.remove();
|
|
182
188
|
}
|
|
183
|
-
|
|
189
|
+
i();
|
|
184
190
|
}
|
|
185
191
|
}
|
|
186
|
-
function
|
|
192
|
+
function ue(e) {
|
|
187
193
|
let t = null;
|
|
188
|
-
if (
|
|
194
|
+
if (g(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 _(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,16 +268,16 @@ var M = class e extends T {
|
|
|
262
268
|
}
|
|
263
269
|
};
|
|
264
270
|
function N(e = "", t) {
|
|
265
|
-
return
|
|
271
|
+
return _(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 = e("TOGGLE_LINK_COMMAND");
|
|
271
277
|
function I(e, t) {
|
|
272
278
|
if (e.type === "element") {
|
|
273
279
|
let n = e.getNode();
|
|
274
|
-
return
|
|
280
|
+
return u(n) || function(e, ...t) {
|
|
275
281
|
let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
276
282
|
r.append("code", e);
|
|
277
283
|
for (let e of t) r.append("v", e);
|
|
@@ -280,31 +286,31 @@ function I(e, t) {
|
|
|
280
286
|
}
|
|
281
287
|
return null;
|
|
282
288
|
}
|
|
283
|
-
function L(e,
|
|
284
|
-
let
|
|
289
|
+
function L(e, n = {}) {
|
|
290
|
+
let r;
|
|
285
291
|
if (e && typeof e == "object") {
|
|
286
|
-
let { url:
|
|
287
|
-
|
|
292
|
+
let { url: t, ...i } = e;
|
|
293
|
+
r = t, n = {
|
|
288
294
|
...i,
|
|
289
|
-
...
|
|
295
|
+
...n
|
|
290
296
|
};
|
|
291
|
-
} else
|
|
292
|
-
let { target:
|
|
293
|
-
if (
|
|
294
|
-
if (
|
|
295
|
-
let e =
|
|
297
|
+
} else r = e;
|
|
298
|
+
let { target: a, title: o } = n, s = n.rel === void 0 ? "noreferrer" : n.rel, c = S();
|
|
299
|
+
if (c === null || !T(c) && !t(c)) return;
|
|
300
|
+
if (t(c)) {
|
|
301
|
+
let e = c.getNodes();
|
|
296
302
|
if (e.length === 0) return;
|
|
297
303
|
e.forEach((e) => {
|
|
298
|
-
if (
|
|
299
|
-
let t =
|
|
304
|
+
if (r === null) {
|
|
305
|
+
let t = f(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(
|
|
308
|
+
let t = f(e, (e) => !P(e) && j(e));
|
|
309
|
+
if (t) t.setURL(r), a !== void 0 && t.setTarget(a), s !== void 0 && t.setRel(s);
|
|
304
310
|
else {
|
|
305
|
-
let t = A(
|
|
306
|
-
rel:
|
|
307
|
-
target:
|
|
311
|
+
let t = A(r, {
|
|
312
|
+
rel: s,
|
|
313
|
+
target: a
|
|
308
314
|
});
|
|
309
315
|
e.insertBefore(t), t.append(e);
|
|
310
316
|
}
|
|
@@ -312,23 +318,23 @@ function L(e, t = {}) {
|
|
|
312
318
|
});
|
|
313
319
|
return;
|
|
314
320
|
}
|
|
315
|
-
if (
|
|
316
|
-
let t =
|
|
321
|
+
if (c.isCollapsed() && r === null) for (let e of c.getNodes()) {
|
|
322
|
+
let t = f(e, (e) => !P(e) && j(e));
|
|
317
323
|
t !== null && (t.getChildren().forEach((e) => {
|
|
318
324
|
t.insertBefore(e);
|
|
319
325
|
}), t.remove());
|
|
320
326
|
return;
|
|
321
327
|
}
|
|
322
|
-
let l =
|
|
323
|
-
if (
|
|
328
|
+
let l = c.extract();
|
|
329
|
+
if (r === null) {
|
|
324
330
|
let e = /* @__PURE__ */ new Set();
|
|
325
331
|
l.forEach((t) => {
|
|
326
|
-
let n =
|
|
332
|
+
let n = f(t, (e) => !P(e) && j(e));
|
|
327
333
|
if (n !== null) {
|
|
328
334
|
let t = n.getKey();
|
|
329
335
|
if (e.has(t)) return;
|
|
330
336
|
(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()) ||
|
|
337
|
+
let n = new Set(t.filter((t) => e.isParentOf(t)).map((e) => e.getKey())), r = e.getChildren(), i = (r) => n.has(r.getKey()) || u(r) && t.some((t) => e.isParentOf(t) && r.isParentOf(t)), a = r.filter(i);
|
|
332
338
|
if (a.length === r.length) return r.forEach((t) => e.insertBefore(t)), void e.remove();
|
|
333
339
|
let o = r.findIndex(i), s = r.findLastIndex(i), c = o === 0, l = s === r.length - 1;
|
|
334
340
|
if (c) a.forEach((t) => e.insertBefore(t));
|
|
@@ -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 = d(e);
|
|
341
347
|
a[a.length - 1].insertAfter(n), t.forEach((e) => n.append(e));
|
|
342
348
|
}
|
|
343
349
|
}
|
|
@@ -346,46 +352,46 @@ function L(e, t = {}) {
|
|
|
346
352
|
});
|
|
347
353
|
return;
|
|
348
354
|
}
|
|
349
|
-
let
|
|
350
|
-
|
|
355
|
+
let p = /* @__PURE__ */ new Set(), m = (e) => {
|
|
356
|
+
p.has(e.getKey()) || (p.add(e.getKey()), e.setURL(r), a !== void 0 && e.setTarget(a), s !== void 0 && e.setRel(s), o !== void 0 && e.setTitle(o));
|
|
351
357
|
};
|
|
352
358
|
if (l.length === 1) {
|
|
353
|
-
let e = l[0], t =
|
|
354
|
-
if (t !== null) return
|
|
359
|
+
let e = l[0], t = f(e, j);
|
|
360
|
+
if (t !== null) return m(t);
|
|
355
361
|
}
|
|
356
362
|
(function(e) {
|
|
357
|
-
let t =
|
|
358
|
-
if (!
|
|
359
|
-
let n =
|
|
360
|
-
if (e(),
|
|
361
|
-
let e =
|
|
362
|
-
if (
|
|
363
|
+
let t = S();
|
|
364
|
+
if (!T(t)) return e();
|
|
365
|
+
let n = v(t), r = n.isBackward(), a = I(n.anchor, r ? -1 : 0), o = I(n.focus, r ? 0 : -1);
|
|
366
|
+
if (e(), a || o) {
|
|
367
|
+
let e = S();
|
|
368
|
+
if (T(e)) {
|
|
363
369
|
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
370
|
if (a) {
|
|
369
371
|
let e = a.getParent();
|
|
370
|
-
e && t.
|
|
372
|
+
e && t.anchor.set(e.getKey(), a.getIndexWithinParent() + +!!r, "element");
|
|
373
|
+
}
|
|
374
|
+
if (o) {
|
|
375
|
+
let e = o.getParent();
|
|
376
|
+
e && t.focus.set(e.getKey(), o.getIndexWithinParent() + +!r, "element");
|
|
371
377
|
}
|
|
372
|
-
|
|
378
|
+
i(v(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
|
-
|
|
385
|
+
let n = f(t, j);
|
|
386
|
+
if (n) {
|
|
387
|
+
m(n);
|
|
382
388
|
continue;
|
|
383
389
|
}
|
|
384
|
-
if (
|
|
390
|
+
if (u(t)) {
|
|
385
391
|
if (!t.isInline()) continue;
|
|
386
392
|
if (j(t)) {
|
|
387
393
|
if (!(P(t) || e !== null && e.getParentOrThrow().isParentOf(t))) {
|
|
388
|
-
|
|
394
|
+
m(t), e = t;
|
|
389
395
|
continue;
|
|
390
396
|
}
|
|
391
397
|
for (let e of t.getChildren()) t.insertBefore(e);
|
|
@@ -393,21 +399,21 @@ function L(e, t = {}) {
|
|
|
393
399
|
continue;
|
|
394
400
|
}
|
|
395
401
|
}
|
|
396
|
-
let
|
|
397
|
-
j(
|
|
398
|
-
rel:
|
|
399
|
-
target:
|
|
400
|
-
title:
|
|
402
|
+
let i = t.getPreviousSibling();
|
|
403
|
+
j(i) && i.is(e) ? i.append(t) : (e = A(r, {
|
|
404
|
+
rel: s,
|
|
405
|
+
target: a,
|
|
406
|
+
title: o
|
|
401
407
|
}), t.insertAfter(e), e.append(t));
|
|
402
408
|
}
|
|
403
409
|
});
|
|
404
410
|
}
|
|
405
|
-
var
|
|
406
|
-
function
|
|
407
|
-
return e.match(/^[a-z][a-z0-9+.-]*:/i) || e.match(/^[/#.]/) ? e : e.includes("@") ? `mailto:${e}` :
|
|
411
|
+
var de = /^\+?[0-9\s()-]{5,}$/;
|
|
412
|
+
function R(e) {
|
|
413
|
+
return e.match(/^[a-z][a-z0-9+.-]*:/i) || e.match(/^[/#.]/) ? e : e.includes("@") ? `mailto:${e}` : de.test(e) ? `tel:${e}` : `https://${e}`;
|
|
408
414
|
}
|
|
409
|
-
function
|
|
410
|
-
return
|
|
415
|
+
function z(e, t) {
|
|
416
|
+
return w(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,47 +426,47 @@ function B(e, t) {
|
|
|
420
426
|
title: a
|
|
421
427
|
}), !0;
|
|
422
428
|
}
|
|
423
|
-
}, 0),
|
|
429
|
+
}, 0), se(() => {
|
|
424
430
|
let n = t.validateUrl.value;
|
|
425
431
|
if (!n) return;
|
|
426
432
|
let r = t.attributes.value;
|
|
427
|
-
return e.registerCommand(
|
|
428
|
-
let i =
|
|
429
|
-
if (!
|
|
433
|
+
return e.registerCommand(l, (t) => {
|
|
434
|
+
let i = S();
|
|
435
|
+
if (!T(i) || i.isCollapsed() || !oe(t, ClipboardEvent) || t.clipboardData === null) return !1;
|
|
430
436
|
let a = t.clipboardData.getData("text");
|
|
431
|
-
return !!n(a) && !i.getNodes().some((e) =>
|
|
437
|
+
return !!n(a) && !i.getNodes().some((e) => u(e)) && (e.dispatchCommand(F, {
|
|
432
438
|
...r,
|
|
433
439
|
url: a
|
|
434
440
|
}), t.preventDefault(), !0);
|
|
435
441
|
}, 1);
|
|
436
442
|
}));
|
|
437
443
|
}
|
|
438
|
-
var
|
|
439
|
-
build: (e, t, n) =>
|
|
444
|
+
var B = r({
|
|
445
|
+
build: (e, t, n) => E(t),
|
|
440
446
|
config: {
|
|
441
447
|
attributes: void 0,
|
|
442
448
|
validateUrl: void 0
|
|
443
449
|
},
|
|
444
450
|
mergeConfig(e, t) {
|
|
445
|
-
let n =
|
|
446
|
-
return e.attributes && (n.attributes =
|
|
451
|
+
let n = h(e, t);
|
|
452
|
+
return e.attributes && (n.attributes = h(e.attributes, n.attributes)), n;
|
|
447
453
|
},
|
|
448
454
|
name: "@lexical/link/Link",
|
|
449
|
-
nodes: () => [
|
|
450
|
-
register: (e, t, n) =>
|
|
455
|
+
nodes: () => [D],
|
|
456
|
+
register: (e, t, n) => z(e, n.getOutput())
|
|
451
457
|
});
|
|
452
|
-
function
|
|
458
|
+
function V(e, t, n = {}) {
|
|
453
459
|
let r = (n) => {
|
|
454
460
|
let r = n.target;
|
|
455
|
-
if (!
|
|
456
|
-
let i =
|
|
461
|
+
if (!c(r)) return;
|
|
462
|
+
let i = ee(r);
|
|
457
463
|
if (i === null) return;
|
|
458
|
-
let a = null,
|
|
464
|
+
let a = null, o = null;
|
|
459
465
|
if (i.update(() => {
|
|
460
|
-
let e =
|
|
466
|
+
let e = re(r);
|
|
461
467
|
if (e !== null) {
|
|
462
|
-
let n =
|
|
463
|
-
if (!t.disabled.peek()) if (j(n)) a = n.sanitizeUrl(n.getURL()),
|
|
468
|
+
let n = f(e, u);
|
|
469
|
+
if (!t.disabled.peek()) if (j(n)) a = n.sanitizeUrl(n.getURL()), o = n.getTarget();
|
|
464
470
|
else {
|
|
465
471
|
let e = function(e, t) {
|
|
466
472
|
let n = e;
|
|
@@ -469,15 +475,15 @@ function H(e, t, n = {}) {
|
|
|
469
475
|
n = n.parentNode;
|
|
470
476
|
}
|
|
471
477
|
return null;
|
|
472
|
-
}(r,
|
|
473
|
-
e !== null && (a = e.href,
|
|
478
|
+
}(r, g);
|
|
479
|
+
e !== null && (a = e.href, o = e.target);
|
|
474
480
|
}
|
|
475
481
|
}
|
|
476
482
|
}), a === null || a === "") return;
|
|
477
|
-
let
|
|
478
|
-
if (
|
|
479
|
-
let
|
|
480
|
-
window.open(a, t.newTab.peek() ||
|
|
483
|
+
let s = e.getEditorState().read(S, { editor: e });
|
|
484
|
+
if (T(s) && !s.isCollapsed()) return void n.preventDefault();
|
|
485
|
+
let l = n.type === "auxclick" && n.button === 1;
|
|
486
|
+
window.open(a, t.newTab.peek() || l || n.metaKey || n.ctrlKey || o === "_blank" ? "_blank" : "_self"), n.preventDefault();
|
|
481
487
|
}, i = (e) => {
|
|
482
488
|
e.button === 1 && r(e);
|
|
483
489
|
};
|
|
@@ -487,17 +493,17 @@ function H(e, t, n = {}) {
|
|
|
487
493
|
};
|
|
488
494
|
});
|
|
489
495
|
}
|
|
490
|
-
|
|
491
|
-
build: (e, t, n) =>
|
|
492
|
-
config:
|
|
496
|
+
r({
|
|
497
|
+
build: (e, t, n) => E(t),
|
|
498
|
+
config: a({
|
|
493
499
|
disabled: !1,
|
|
494
500
|
newTab: !1
|
|
495
501
|
}),
|
|
496
|
-
dependencies: [
|
|
502
|
+
dependencies: [B],
|
|
497
503
|
name: "@lexical/link/ClickableLink",
|
|
498
|
-
register: (e, t, n) =>
|
|
504
|
+
register: (e, t, n) => V(e, n.getOutput())
|
|
499
505
|
});
|
|
500
|
-
function
|
|
506
|
+
function fe(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 H(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
|
|
519
|
-
function
|
|
520
|
-
return
|
|
524
|
+
var U = /[.,;\s]/;
|
|
525
|
+
function W(e, t) {
|
|
526
|
+
return t.test(e);
|
|
521
527
|
}
|
|
522
|
-
function
|
|
523
|
-
return
|
|
528
|
+
function G(e, t) {
|
|
529
|
+
return W(e[e.length - 1], t);
|
|
524
530
|
}
|
|
525
|
-
function
|
|
526
|
-
return
|
|
531
|
+
function K(e, t) {
|
|
532
|
+
return W(e[0], t);
|
|
527
533
|
}
|
|
528
|
-
function
|
|
529
|
-
let
|
|
530
|
-
return
|
|
534
|
+
function q(e, t) {
|
|
535
|
+
let r = e.getPreviousSibling();
|
|
536
|
+
return u(r) && (r = r.getLastDescendant()), r === null || n(r) || b(r) && G(r.getTextContent(), t);
|
|
531
537
|
}
|
|
532
|
-
function
|
|
533
|
-
let
|
|
534
|
-
return
|
|
538
|
+
function J(e, t) {
|
|
539
|
+
let r = e.getNextSibling();
|
|
540
|
+
return u(r) && (r = r.getFirstDescendant()), r === null || n(r) || b(r) && K(r.getTextContent(), t);
|
|
535
541
|
}
|
|
536
|
-
function
|
|
537
|
-
return (e > 0 ?
|
|
542
|
+
function Y(e, t, n, r, i) {
|
|
543
|
+
return (e > 0 ? W(r[e - 1], n) : q(i[0], n)) ? t < r.length ? W(r[t], n) : J(i[i.length - 1], n) : !1;
|
|
538
544
|
}
|
|
539
|
-
function
|
|
545
|
+
function pe(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,45 +555,45 @@ function fe(e, t, n) {
|
|
|
549
555
|
a
|
|
550
556
|
];
|
|
551
557
|
}
|
|
552
|
-
function
|
|
558
|
+
function me(e, n, r, i) {
|
|
553
559
|
let a = N(i.url, i.attributes);
|
|
554
560
|
if (e.length === 1) {
|
|
555
561
|
let t, o = e[0];
|
|
556
562
|
n === 0 ? [t, o] = o.splitText(r) : [, t, o] = o.splitText(n, r);
|
|
557
|
-
let s =
|
|
563
|
+
let s = x(i.text);
|
|
558
564
|
return s.setFormat(t.getFormat()), s.setDetail(t.getDetail()), s.setStyle(t.getStyle()), a.append(s), t.replace(a), o;
|
|
559
565
|
}
|
|
560
566
|
if (e.length > 1) {
|
|
561
|
-
let i = e[0],
|
|
562
|
-
n === 0 ?
|
|
563
|
-
let
|
|
567
|
+
let i = e[0], o, s = i.getTextContent().length;
|
|
568
|
+
n === 0 ? o = i : [, o] = i.splitText(n);
|
|
569
|
+
let c = [], l;
|
|
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) c.push(n);
|
|
567
573
|
else {
|
|
568
574
|
let [e, t] = n.splitText(r - a);
|
|
569
|
-
|
|
575
|
+
c.push(e), l = t;
|
|
570
576
|
}
|
|
571
|
-
|
|
577
|
+
s += i;
|
|
572
578
|
}
|
|
573
|
-
let
|
|
574
|
-
return
|
|
579
|
+
let u = S(), d = u ? u.getNodes().find(b) : void 0, f = x(o.getTextContent());
|
|
580
|
+
return f.setFormat(o.getFormat()), f.setDetail(o.getDetail()), f.setStyle(o.getStyle()), a.append(f, ...c), d && d === o && (T(u) ? f.select(u.anchor.offset, u.focus.offset) : t(u) && f.select(0, f.getTextContent().length)), o.replace(a), l;
|
|
575
581
|
}
|
|
576
582
|
}
|
|
577
|
-
function X(e, n, r) {
|
|
583
|
+
function X(e, t, n, r) {
|
|
578
584
|
let i = e.getChildren(), a = i.length;
|
|
579
|
-
for (let
|
|
580
|
-
let
|
|
581
|
-
if (!
|
|
585
|
+
for (let t = 0; t < a; t++) {
|
|
586
|
+
let r = i[t];
|
|
587
|
+
if (!b(r) || !r.isSimpleText()) return Z(e), void n(null, e.getURL());
|
|
582
588
|
}
|
|
583
|
-
let o = e.getTextContent(), s =
|
|
584
|
-
if (s === null || s.text !== o || !
|
|
589
|
+
let o = e.getTextContent(), s = H(o, t);
|
|
590
|
+
if (s === null || s.text !== o || !q(e, r) || !J(e, r)) return Z(e), void n(null, e.getURL());
|
|
585
591
|
let c = e.getURL();
|
|
586
|
-
if (c !== s.url && (e.setURL(s.url),
|
|
592
|
+
if (c !== s.url && (e.setURL(s.url), n(s.url, c)), s.attributes) {
|
|
587
593
|
let t = e.getRel();
|
|
588
|
-
t !== s.attributes.rel && (e.setRel(s.attributes.rel || null),
|
|
589
|
-
let
|
|
590
|
-
|
|
594
|
+
t !== s.attributes.rel && (e.setRel(s.attributes.rel || null), n(s.attributes.rel || null, t));
|
|
595
|
+
let r = e.getTarget();
|
|
596
|
+
r !== s.attributes.target && (e.setTarget(s.attributes.target || null), n(s.attributes.target || null, r));
|
|
591
597
|
}
|
|
592
598
|
}
|
|
593
599
|
function Z(e) {
|
|
@@ -598,25 +604,26 @@ function Z(e) {
|
|
|
598
604
|
var Q = {
|
|
599
605
|
changeHandlers: [],
|
|
600
606
|
excludeParents: [],
|
|
601
|
-
matchers: []
|
|
607
|
+
matchers: [],
|
|
608
|
+
separatorRegex: U
|
|
602
609
|
};
|
|
603
|
-
function $(e,
|
|
604
|
-
let { matchers:
|
|
605
|
-
for (let n of
|
|
610
|
+
function $(e, t = Q) {
|
|
611
|
+
let { matchers: n, changeHandlers: r, excludeParents: i, separatorRegex: a = U } = t, o = (e, t) => {
|
|
612
|
+
for (let n of r) n(e, t);
|
|
606
613
|
};
|
|
607
|
-
return
|
|
608
|
-
let
|
|
609
|
-
P(
|
|
614
|
+
return w(e.registerNodeTransform(p, (e) => {
|
|
615
|
+
let t = e.getParentOrThrow(), r = e.getPreviousSibling();
|
|
616
|
+
P(t) ? X(t, n, o, a) : !j(t) && !i.some((e) => e(t)) && (e.isSimpleText() && (K(e.getTextContent(), a) || !P(r)) && (function(e, t, n, r) {
|
|
610
617
|
for (let t of e) {
|
|
611
618
|
let e = t.getParent();
|
|
612
619
|
if (P(e) && !e.getIsUnlinked()) return;
|
|
613
620
|
}
|
|
614
|
-
let
|
|
615
|
-
for (; (
|
|
616
|
-
let e =
|
|
617
|
-
if (
|
|
618
|
-
let [
|
|
619
|
-
for (let e of
|
|
621
|
+
let i = [...e], a = i.map((e) => e.getTextContent()).join(""), o, s = a, c = 0;
|
|
622
|
+
for (; (o = H(s, t)) && o !== null;) {
|
|
623
|
+
let e = o.index, t = e + o.length;
|
|
624
|
+
if (Y(c + e, c + t, r, a, i)) {
|
|
625
|
+
let [r, , a, l] = pe(i, c + e, c + t), u = !1;
|
|
626
|
+
for (let e of a) {
|
|
620
627
|
let t = e.getParent();
|
|
621
628
|
if (P(t) && !t.getIsUnlinked()) {
|
|
622
629
|
u = !0;
|
|
@@ -624,45 +631,45 @@ function $(e, r = Q) {
|
|
|
624
631
|
}
|
|
625
632
|
}
|
|
626
633
|
if (u) {
|
|
627
|
-
|
|
634
|
+
c += t, s = s.substring(t);
|
|
628
635
|
continue;
|
|
629
636
|
}
|
|
630
|
-
let d =
|
|
631
|
-
|
|
632
|
-
} else
|
|
633
|
-
|
|
637
|
+
let d = me(a, c + e - r, c + t - r, o);
|
|
638
|
+
i = d ? [d, ...l] : l, n(o.url, null), c = 0;
|
|
639
|
+
} else c += t;
|
|
640
|
+
s = s.substring(t);
|
|
634
641
|
}
|
|
635
642
|
})(function(e) {
|
|
636
|
-
let
|
|
637
|
-
for (;
|
|
638
|
-
return
|
|
639
|
-
}(e),
|
|
640
|
-
let
|
|
641
|
-
if (!P(
|
|
642
|
-
if (P(
|
|
643
|
-
if (!
|
|
644
|
-
if (
|
|
645
|
-
let
|
|
646
|
-
|
|
643
|
+
let t = [e], n = e.getNextSibling();
|
|
644
|
+
for (; n !== null && b(n) && n.isSimpleText() && (t.push(n), !/[\s]/.test(n.getTextContent()));) n = n.getNextSibling();
|
|
645
|
+
return t;
|
|
646
|
+
}(e), n, o, a), (function(e, t, n, r) {
|
|
647
|
+
let i = e.getParent(), a = e.getPreviousSibling(), o = e.getNextSibling(), s = e.getTextContent();
|
|
648
|
+
if (!P(i) || i.getIsUnlinked()) {
|
|
649
|
+
if (P(a) && !a.getIsUnlinked() && a.is(e.getPreviousSibling()) && e.getParent() === a.getParent()) {
|
|
650
|
+
if (!K(s, r)) return Z(a), void n(null, a.getURL());
|
|
651
|
+
if (c = s, a.isEmailURI() ? /^\.[a-zA-Z]{2,}/.test(c) : /^\.[a-zA-Z0-9]{1,}/.test(c)) {
|
|
652
|
+
let i = a.getTextContent() + s, o = H(i, t);
|
|
653
|
+
o !== null && o.text === i && (a.append(e), X(a, t, n, r), n(null, a.getURL()));
|
|
647
654
|
}
|
|
648
655
|
}
|
|
649
|
-
var
|
|
650
|
-
!P(
|
|
656
|
+
var c;
|
|
657
|
+
!P(o) || o.getIsUnlinked() || G(s, r) || o.is(e.getNextSibling()) && e.getParent() === o.getParent() && (Z(o), n(null, o.getURL()));
|
|
651
658
|
}
|
|
652
|
-
})(e,
|
|
659
|
+
})(e, n, o, a));
|
|
653
660
|
}), e.registerCommand(F, (e) => {
|
|
654
|
-
let t =
|
|
655
|
-
return e !== null || !
|
|
661
|
+
let t = S();
|
|
662
|
+
return e !== null || !T(t) || t.extract().forEach((e) => {
|
|
656
663
|
let t = e.getParent();
|
|
657
664
|
P(t) && (t.setIsUnlinked(!t.getIsUnlinked()), t.markDirty());
|
|
658
665
|
}), !1;
|
|
659
666
|
}, 1));
|
|
660
667
|
}
|
|
661
|
-
|
|
668
|
+
r({
|
|
662
669
|
config: Q,
|
|
663
|
-
dependencies: [
|
|
670
|
+
dependencies: [B],
|
|
664
671
|
mergeConfig(e, t) {
|
|
665
|
-
let n =
|
|
672
|
+
let n = h(e, t);
|
|
666
673
|
for (let r of [
|
|
667
674
|
"matchers",
|
|
668
675
|
"changeHandlers",
|
|
@@ -678,6 +685,6 @@ e({
|
|
|
678
685
|
register: $
|
|
679
686
|
});
|
|
680
687
|
//#endregion
|
|
681
|
-
export {
|
|
688
|
+
export { V as a, fe as c, F as i, L as n, M as o, z as r, $ as s, D as t };
|
|
682
689
|
|
|
683
|
-
//# sourceMappingURL=LexicalLink.prod-
|
|
690
|
+
//# sourceMappingURL=LexicalLink.prod-DMhcqD9x.js.map
|