@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,76 +1,76 @@
|
|
|
1
|
-
import { $ as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { $ as e, $t as t, An as n, At as r, Gt as i, Hn as a, Ht as o, I as s, K as c, Kn as l, Lt as u, Mt as d, N as f, Nt as p, O as m, St as h, Tt as g, U as _, Wn as ee, Wt as v, X as te, Zt as ne, a as y, er as b, f as re, kn as x, kt as ie, m as ae, mn as oe, mt as S, on as se, ot as C, p as ce, pn as le, rt as w, tt as ue, u as T, un as E, v as D, w as O } from "./Lexical.prod-CqPLSi0R.js";
|
|
2
|
+
import { i as de, l as fe, n as pe } from "./LexicalUtils.prod-BqcriFWV.js";
|
|
3
|
+
import { i as k, n as A } from "./LexicalExtension.prod-CUQTgbur.js";
|
|
4
4
|
//#region node_modules/@lexical/list/LexicalList.prod.mjs
|
|
5
|
-
function
|
|
5
|
+
function j(e, ...t) {
|
|
6
6
|
let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
7
7
|
r.append("code", e);
|
|
8
8
|
for (let e of t) r.append("v", e);
|
|
9
9
|
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.`);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function M(e) {
|
|
12
12
|
let t = 1, n = e.getParent();
|
|
13
13
|
for (; n != null;) {
|
|
14
|
-
if (
|
|
14
|
+
if (K(n)) {
|
|
15
15
|
let e = n.getParent();
|
|
16
16
|
if (Z(e)) {
|
|
17
17
|
t++, n = e.getParent();
|
|
18
18
|
continue;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
j(40);
|
|
21
21
|
}
|
|
22
22
|
return t;
|
|
23
23
|
}
|
|
24
24
|
return t;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function N(e) {
|
|
27
27
|
let t = e.getParent();
|
|
28
|
-
Z(t) ||
|
|
28
|
+
Z(t) || j(40);
|
|
29
29
|
let n = t;
|
|
30
30
|
for (; n !== null;) n = n.getParent(), Z(n) && (t = n);
|
|
31
31
|
return t;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
let t = [], n = e.getChildren().filter(
|
|
33
|
+
function P(e) {
|
|
34
|
+
let t = [], n = e.getChildren().filter(K);
|
|
35
35
|
for (let e = 0; e < n.length; e++) {
|
|
36
36
|
let r = n[e], i = r.getFirstChild();
|
|
37
|
-
Z(i) ? t = t.concat(
|
|
37
|
+
Z(i) ? t = t.concat(P(i)) : t.push(r);
|
|
38
38
|
}
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function F(e) {
|
|
42
|
+
return K(e) && Z(e.getFirstChild());
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function I(e) {
|
|
45
|
+
return G().append(e);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
function L(e, t) {
|
|
48
|
+
return K(e) && (t.length === 0 || t.length === 1 && e.is(t[0]) && e.getChildrenSize() === 0);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
let t =
|
|
50
|
+
function R(e) {
|
|
51
|
+
let t = C();
|
|
52
52
|
if (t !== null) {
|
|
53
53
|
let n = t.getNodes();
|
|
54
|
-
if (
|
|
54
|
+
if (D(t)) {
|
|
55
55
|
let r = t.getStartEndPoints();
|
|
56
|
-
r === null &&
|
|
57
|
-
let [
|
|
58
|
-
if (
|
|
59
|
-
let e =
|
|
56
|
+
r === null && j(143);
|
|
57
|
+
let [a] = r, o = a.getNode(), c = o.getParent();
|
|
58
|
+
if (s(o)) {
|
|
59
|
+
let e = o.getFirstChild();
|
|
60
60
|
if (e) n = e.selectStart().getNodes();
|
|
61
61
|
else {
|
|
62
|
-
let e =
|
|
63
|
-
|
|
62
|
+
let e = i();
|
|
63
|
+
o.append(e), n = e.select().getNodes();
|
|
64
64
|
}
|
|
65
|
-
} else if (
|
|
65
|
+
} else if (L(o, n)) {
|
|
66
66
|
let t = X(e);
|
|
67
|
-
if (
|
|
68
|
-
|
|
69
|
-
let e =
|
|
70
|
-
|
|
71
|
-
} else if (
|
|
72
|
-
let e =
|
|
73
|
-
|
|
67
|
+
if (s(c)) {
|
|
68
|
+
o.replace(t);
|
|
69
|
+
let e = G();
|
|
70
|
+
h(o) && (e.setFormat(o.getFormatType()), e.setIndent(o.getIndent())), t.append(e);
|
|
71
|
+
} else if (K(o)) {
|
|
72
|
+
let e = o.getParentOrThrow();
|
|
73
|
+
z(t, e.getChildren()), e.replace(t);
|
|
74
74
|
}
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
@@ -78,24 +78,24 @@ function z(e) {
|
|
|
78
78
|
let r = /* @__PURE__ */ new Set();
|
|
79
79
|
for (let t = 0; t < n.length; t++) {
|
|
80
80
|
let i = n[t];
|
|
81
|
-
if (
|
|
82
|
-
|
|
81
|
+
if (h(i) && i.isEmpty() && !K(i) && !r.has(i.getKey())) {
|
|
82
|
+
B(i, e);
|
|
83
83
|
continue;
|
|
84
84
|
}
|
|
85
|
-
let a =
|
|
85
|
+
let a = g(i) ? i.getParent() : K(i) && i.isEmpty() ? i : null;
|
|
86
86
|
for (; a != null;) {
|
|
87
87
|
let t = a.getKey();
|
|
88
88
|
if (Z(a)) {
|
|
89
89
|
if (!r.has(t)) {
|
|
90
90
|
let n = X(e);
|
|
91
|
-
|
|
91
|
+
z(n, a.getChildren()), a.replace(n), r.add(t);
|
|
92
92
|
}
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
95
|
{
|
|
96
96
|
let n = a.getParent();
|
|
97
|
-
if (
|
|
98
|
-
r.add(t),
|
|
97
|
+
if (s(n) && !r.has(t)) {
|
|
98
|
+
r.add(t), B(a, e);
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
101
|
a = n;
|
|
@@ -104,147 +104,162 @@ function z(e) {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function z(e, t) {
|
|
108
108
|
e.splice(e.getChildrenSize(), 0, t);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function B(e, t) {
|
|
111
111
|
if (Z(e)) return e;
|
|
112
|
-
let n = e.getPreviousSibling(), r = e.getNextSibling(), i =
|
|
113
|
-
if (
|
|
112
|
+
let n = e.getPreviousSibling(), r = e.getNextSibling(), i = G(), a;
|
|
113
|
+
if (z(i, e.getChildren()), Z(n) && t === n.getListType()) n.append(i), Z(r) && t === r.getListType() && (z(n, r.getChildren()), r.remove()), a = n;
|
|
114
114
|
else if (Z(r) && t === r.getListType()) r.getFirstChildOrThrow().insertBefore(i), a = r;
|
|
115
115
|
else {
|
|
116
116
|
let n = X(t);
|
|
117
117
|
n.append(i), e.replace(n), a = n;
|
|
118
118
|
}
|
|
119
119
|
i.setFormat(e.getFormatType()), i.setIndent(e.getIndent());
|
|
120
|
-
let o =
|
|
121
|
-
return
|
|
120
|
+
let o = C();
|
|
121
|
+
return D(o) && (a.getKey() === o.anchor.key && o.anchor.set(i.getKey(), o.anchor.offset, "element"), a.getKey() === o.focus.key && o.focus.set(i.getKey(), o.focus.offset, "element")), e.remove(), a;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function V(e, t) {
|
|
124
124
|
let n = e.getLastChild(), r = t.getFirstChild();
|
|
125
|
-
n && r &&
|
|
125
|
+
n && r && F(n) && F(r) && (V(n.getFirstChild(), r.getFirstChild()), r.remove());
|
|
126
126
|
let i = t.getChildren();
|
|
127
127
|
i.length > 0 && e.append(...i), t.remove();
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
let e =
|
|
131
|
-
if (
|
|
129
|
+
function me() {
|
|
130
|
+
let e = C();
|
|
131
|
+
if (D(e)) {
|
|
132
132
|
let t = /* @__PURE__ */ new Set(), n = e.getNodes(), r = e.anchor.getNode();
|
|
133
|
-
if (
|
|
133
|
+
if (L(r, n)) t.add(N(r));
|
|
134
134
|
else for (let e = 0; e < n.length; e++) {
|
|
135
135
|
let r = n[e];
|
|
136
|
-
if (
|
|
137
|
-
let e =
|
|
138
|
-
e != null && t.add(
|
|
136
|
+
if (g(r)) {
|
|
137
|
+
let e = pe(r, U);
|
|
138
|
+
e != null && t.add(N(e));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
for (let n of t) {
|
|
142
|
-
let t = n, r =
|
|
142
|
+
let t = n, r = P(n);
|
|
143
143
|
for (let n of r) {
|
|
144
|
-
let r =
|
|
145
|
-
|
|
144
|
+
let r = i().setTextStyle(e.style).setTextFormat(e.format);
|
|
145
|
+
z(r, n.getChildren()), t.insertAfter(r), t = r, n.__key === e.anchor.key && m(e.anchor, x(w(r, "next"))), n.__key === e.focus.key && m(e.focus, x(w(r, "next"))), n.remove();
|
|
146
146
|
}
|
|
147
147
|
n.remove();
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function H(e) {
|
|
152
152
|
let t = e.getListType() !== "check", n = e.getStart();
|
|
153
|
-
for (let r of e.getChildren())
|
|
153
|
+
for (let r of e.getChildren()) K(r) && (r.getValue() !== n && r.setValue(n), t && r.getLatest().__checked != null && r.setChecked(void 0), Z(r.getFirstChild()) || n++);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function he(e) {
|
|
156
156
|
let t = /* @__PURE__ */ new Set();
|
|
157
|
-
if (
|
|
157
|
+
if (F(e) || t.has(e.getKey())) return;
|
|
158
158
|
let n = e.getParent(), r = e.getNextSibling(), i = e.getPreviousSibling();
|
|
159
|
-
if (
|
|
159
|
+
if (F(r) && F(i)) {
|
|
160
160
|
let n = i.getFirstChild();
|
|
161
161
|
if (Z(n)) {
|
|
162
162
|
n.append(e);
|
|
163
163
|
let i = r.getFirstChild();
|
|
164
|
-
Z(i) && (
|
|
164
|
+
Z(i) && (z(n, i.getChildren()), r.remove(), t.add(r.getKey()));
|
|
165
165
|
}
|
|
166
|
-
} else if (
|
|
166
|
+
} else if (F(r)) {
|
|
167
167
|
let t = r.getFirstChild();
|
|
168
168
|
if (Z(t)) {
|
|
169
169
|
let n = t.getFirstChild();
|
|
170
170
|
n !== null && n.insertBefore(e);
|
|
171
171
|
}
|
|
172
|
-
} else if (
|
|
172
|
+
} else if (F(i)) {
|
|
173
173
|
let t = i.getFirstChild();
|
|
174
174
|
Z(t) && t.append(e);
|
|
175
175
|
} else if (Z(n)) {
|
|
176
|
-
let t =
|
|
176
|
+
let t = _(e), a = _(n);
|
|
177
177
|
t.append(a), a.append(e), i ? i.insertAfter(t) : r ? r.insertBefore(t) : n.append(t);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
if (
|
|
180
|
+
function ge(e) {
|
|
181
|
+
if (F(e)) return;
|
|
182
182
|
let t = e.getParent(), n = t ? t.getParent() : void 0;
|
|
183
|
-
if (Z(n ? n.getParent() : void 0) &&
|
|
183
|
+
if (Z(n ? n.getParent() : void 0) && K(n) && Z(t)) {
|
|
184
184
|
let r = t ? t.getFirstChild() : void 0, i = t ? t.getLastChild() : void 0;
|
|
185
185
|
if (e.is(r)) n.insertBefore(e), t.isEmpty() && n.remove();
|
|
186
186
|
else if (e.is(i)) n.insertAfter(e), t.isEmpty() && n.remove();
|
|
187
187
|
else {
|
|
188
|
-
let r =
|
|
188
|
+
let r = _(e), i = _(t);
|
|
189
189
|
r.append(i), e.getPreviousSiblings().forEach((e) => i.append(e));
|
|
190
|
-
let a =
|
|
191
|
-
a.append(o),
|
|
190
|
+
let a = _(e), o = _(t);
|
|
191
|
+
a.append(o), z(o, e.getNextSiblings()), n.insertBefore(r), n.insertAfter(a), n.replace(e);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
let t =
|
|
197
|
-
if (!
|
|
198
|
-
let n = t.anchor.getNode(),
|
|
199
|
-
if (
|
|
200
|
-
else if (
|
|
195
|
+
function _e(e = !1) {
|
|
196
|
+
let t = C();
|
|
197
|
+
if (!D(t) || !t.isCollapsed()) return !1;
|
|
198
|
+
let n = t.anchor.getNode(), r = null;
|
|
199
|
+
if (K(n) && n.getChildrenSize() === 0) r = n;
|
|
200
|
+
else if (S(n)) {
|
|
201
201
|
let e = n.getParent();
|
|
202
|
-
|
|
202
|
+
K(e) && e.getChildren().every((e) => S(e) && e.getTextContent().trim() === "") && (r = e);
|
|
203
203
|
}
|
|
204
|
-
if (
|
|
205
|
-
let a =
|
|
206
|
-
Z(o) ||
|
|
207
|
-
let
|
|
208
|
-
if (
|
|
204
|
+
if (r === null) return !1;
|
|
205
|
+
let a = N(r), o = r.getParent();
|
|
206
|
+
Z(o) || j(40);
|
|
207
|
+
let c = o.getParent(), l;
|
|
208
|
+
if (s(c)) l = i(), a.insertAfter(l);
|
|
209
209
|
else {
|
|
210
|
-
if (!
|
|
211
|
-
|
|
210
|
+
if (!K(c)) return !1;
|
|
211
|
+
l = _(c), c.insertAfter(l);
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
let u =
|
|
213
|
+
l.setTextStyle(t.style).setTextFormat(t.format).select();
|
|
214
|
+
let u = r.getNextSiblings();
|
|
215
215
|
if (u.length > 0) {
|
|
216
216
|
let t = e ? function(e, t) {
|
|
217
217
|
return e.getStart() + t.getIndexWithinParent();
|
|
218
|
-
}(o,
|
|
219
|
-
if (
|
|
220
|
-
let e =
|
|
221
|
-
e.append(n),
|
|
222
|
-
} else
|
|
218
|
+
}(o, r) : 1, n = _(o).setStart(t);
|
|
219
|
+
if (K(l)) {
|
|
220
|
+
let e = _(l);
|
|
221
|
+
e.append(n), l.insertAfter(e);
|
|
222
|
+
} else l.insertAfter(n);
|
|
223
223
|
n.append(...u);
|
|
224
224
|
}
|
|
225
225
|
return function(e) {
|
|
226
226
|
let t = e;
|
|
227
227
|
for (; t.getNextSibling() == null && t.getPreviousSibling() == null;) {
|
|
228
228
|
let e = t.getParent();
|
|
229
|
-
if (e == null || !
|
|
229
|
+
if (e == null || !K(e) && !Z(e)) break;
|
|
230
230
|
t = e;
|
|
231
231
|
}
|
|
232
232
|
t.remove();
|
|
233
|
-
}(
|
|
233
|
+
}(r), !0;
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var U = class extends y {
|
|
236
236
|
__value;
|
|
237
237
|
__checked;
|
|
238
238
|
$config() {
|
|
239
239
|
return this.config("listitem", {
|
|
240
|
-
$transform: (
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
$transform: (t) => {
|
|
241
|
+
let n = t.getParent();
|
|
242
|
+
if (Z(n)) n.getListType() !== "check" && t.getChecked() != null && t.setChecked(void 0);
|
|
243
|
+
else if (n) {
|
|
244
|
+
let r = t.createParentElementNode();
|
|
245
|
+
Z(r) || j(340);
|
|
246
|
+
let i = [t];
|
|
247
|
+
for (let n of ["previous", "next"]) {
|
|
248
|
+
i.reverse();
|
|
249
|
+
for (let { origin: r } of e(t, n)) {
|
|
250
|
+
if (!K(r)) break;
|
|
251
|
+
i.push(r);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
t.insertBefore(r), r.splice(0, 0, i), s(n) || (fe(r, d(e(r, "next")), {
|
|
255
|
+
$shouldSplit: () => !1,
|
|
256
|
+
removeEmptyDestination: !0
|
|
257
|
+
}), n.isEmpty() && n.isAttached() && n.remove());
|
|
258
|
+
}
|
|
244
259
|
},
|
|
245
|
-
extends:
|
|
246
|
-
importDOM:
|
|
247
|
-
conversion:
|
|
260
|
+
extends: y,
|
|
261
|
+
importDOM: f({ li: () => ({
|
|
262
|
+
conversion: ve,
|
|
248
263
|
priority: 0
|
|
249
264
|
}) })
|
|
250
265
|
});
|
|
@@ -265,21 +280,23 @@ var W = class extends S {
|
|
|
265
280
|
!Z(r) || r.getListType() !== "check" || Z(t.getFirstChild()) ? (e.removeAttribute("role"), e.removeAttribute("tabIndex"), e.removeAttribute("aria-checked")) : (e.setAttribute("role", "checkbox"), e.setAttribute("tabIndex", "-1"), n && t.__checked === n.__checked || e.setAttribute("aria-checked", t.getChecked() ? "true" : "false"));
|
|
266
281
|
})(t, this, e), t.value = this.__value, function(e, t, n) {
|
|
267
282
|
let r = [], i = [], a = t.list, o = a ? a.listitem : void 0, s;
|
|
268
|
-
if (a && a.nested && (s = a.nested.listitem), o !== void 0 && r.push(...
|
|
283
|
+
if (a && a.nested && (s = a.nested.listitem), o !== void 0 && r.push(...l(o)), a) {
|
|
269
284
|
let e = n.getParent(), t = Z(e) && e.getListType() === "check", o = n.getChecked();
|
|
270
285
|
t && !o || i.push(a.listitemUnchecked), t && o || i.push(a.listitemChecked), t && r.push(o ? a.listitemChecked : a.listitemUnchecked);
|
|
271
286
|
}
|
|
272
287
|
if (s !== void 0) {
|
|
273
|
-
let e =
|
|
288
|
+
let e = l(s);
|
|
274
289
|
n.getChildren().some((e) => Z(e)) ? r.push(...e) : i.push(...e);
|
|
275
290
|
}
|
|
276
|
-
i.length > 0 &&
|
|
291
|
+
i.length > 0 && ee(e, ...i), r.length > 0 && E(e, ...r);
|
|
277
292
|
}(t, n.theme, this);
|
|
278
293
|
let r = e ? e.__style : "", i = this.__style;
|
|
279
|
-
r !== i && (
|
|
280
|
-
let r =
|
|
281
|
-
|
|
282
|
-
|
|
294
|
+
r !== i && oe(t.style, i, r), function(e, t, n) {
|
|
295
|
+
let r = t.__textStyle, i = n ? n.__textStyle : "";
|
|
296
|
+
if (n !== null && i === r) return;
|
|
297
|
+
let a = p(r);
|
|
298
|
+
for (let t in a) e.style.setProperty(`--listitem-marker-${t}`, a[t]);
|
|
299
|
+
if (i !== "") for (let t in p(i)) t in a || e.style.removeProperty(`--listitem-marker-${t}`);
|
|
283
300
|
}(t, this, e);
|
|
284
301
|
}
|
|
285
302
|
updateDOM(e, t, n) {
|
|
@@ -292,8 +309,20 @@ var W = class extends S {
|
|
|
292
309
|
exportDOM(e) {
|
|
293
310
|
let t = this.createDOM(e._config), n = this.getFormatType();
|
|
294
311
|
n && (t.style.textAlign = n);
|
|
295
|
-
let
|
|
296
|
-
return
|
|
312
|
+
let i = this.getDirection();
|
|
313
|
+
return i && (t.dir = i), F(this) ? {
|
|
314
|
+
after(e) {
|
|
315
|
+
if (r(e)) {
|
|
316
|
+
let t = e.previousElementSibling;
|
|
317
|
+
if (r(t) && t.nodeName === "LI") {
|
|
318
|
+
for (; e.firstChild;) t.append(e.firstChild);
|
|
319
|
+
e.remove();
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return e;
|
|
323
|
+
},
|
|
324
|
+
element: t
|
|
325
|
+
} : { element: t };
|
|
297
326
|
}
|
|
298
327
|
exportJSON() {
|
|
299
328
|
return {
|
|
@@ -305,7 +334,7 @@ var W = class extends S {
|
|
|
305
334
|
append(...e) {
|
|
306
335
|
for (let t = 0; t < e.length; t++) {
|
|
307
336
|
let n = e[t];
|
|
308
|
-
if (
|
|
337
|
+
if (h(n) && this.canMergeWith(n)) {
|
|
309
338
|
let e = n.getChildren();
|
|
310
339
|
this.append(...e), n.remove();
|
|
311
340
|
} else super.append(n);
|
|
@@ -313,50 +342,50 @@ var W = class extends S {
|
|
|
313
342
|
return this;
|
|
314
343
|
}
|
|
315
344
|
replace(e, t) {
|
|
316
|
-
if (
|
|
345
|
+
if (K(e)) return super.replace(e);
|
|
317
346
|
this.setIndent(0);
|
|
318
347
|
let n = this.getParentOrThrow();
|
|
319
348
|
if (!Z(n)) return e;
|
|
320
349
|
if (n.__first === this.getKey()) n.insertBefore(e);
|
|
321
350
|
else if (n.__last === this.getKey()) n.insertAfter(e);
|
|
322
351
|
else {
|
|
323
|
-
let t =
|
|
352
|
+
let t = _(n), r = this.getNextSibling();
|
|
324
353
|
for (; r;) {
|
|
325
354
|
let e = r;
|
|
326
355
|
r = r.getNextSibling(), t.append(e);
|
|
327
356
|
}
|
|
328
357
|
n.insertAfter(e), e.insertAfter(t);
|
|
329
358
|
}
|
|
330
|
-
return t && (
|
|
359
|
+
return t && (h(e) || j(139), this.getChildren().forEach((t) => {
|
|
331
360
|
e.append(t);
|
|
332
361
|
})), this.remove(), n.getChildrenSize() === 0 && n.remove(), e;
|
|
333
362
|
}
|
|
334
363
|
insertAfter(e, t = !0) {
|
|
335
364
|
let n = this.getParentOrThrow();
|
|
336
|
-
if (Z(n) ||
|
|
365
|
+
if (Z(n) || j(39), K(e)) return super.insertAfter(e, t);
|
|
337
366
|
let r = this.getNextSiblings();
|
|
338
367
|
if (n.insertAfter(e, t), r.length !== 0) {
|
|
339
|
-
let i =
|
|
368
|
+
let i = _(n);
|
|
340
369
|
r.forEach((e) => i.append(e)), e.insertAfter(i, t);
|
|
341
370
|
}
|
|
342
371
|
return e;
|
|
343
372
|
}
|
|
344
373
|
remove(e) {
|
|
345
374
|
let t = this.getPreviousSibling(), n = this.getNextSibling();
|
|
346
|
-
super.remove(e), t && n &&
|
|
375
|
+
super.remove(e), t && n && F(t) && F(n) && (V(t.getFirstChild(), n.getFirstChild()), n.remove());
|
|
347
376
|
}
|
|
348
377
|
resetOnCopyNodeFrom(e) {
|
|
349
378
|
super.resetOnCopyNodeFrom(e), e.getChecked() && this.setChecked(!1);
|
|
350
379
|
}
|
|
351
380
|
insertNewAfter(e, t = !0) {
|
|
352
|
-
let n =
|
|
381
|
+
let n = _(this);
|
|
353
382
|
return this.insertAfter(n, t), n;
|
|
354
383
|
}
|
|
355
384
|
collapseAtStart(e) {
|
|
356
|
-
let t =
|
|
385
|
+
let t = i();
|
|
357
386
|
this.getChildren().forEach((e) => t.append(e));
|
|
358
|
-
let n = this.getParentOrThrow(), r = n.getParentOrThrow(),
|
|
359
|
-
if (n.getChildrenSize() === 1) if (
|
|
387
|
+
let n = this.getParentOrThrow(), r = n.getParentOrThrow(), a = K(r);
|
|
388
|
+
if (n.getChildrenSize() === 1) if (a) n.remove(), r.select();
|
|
360
389
|
else {
|
|
361
390
|
n.insertBefore(t), n.remove();
|
|
362
391
|
let r = e.anchor, i = e.focus, a = t.getKey();
|
|
@@ -388,26 +417,26 @@ var W = class extends S {
|
|
|
388
417
|
let e = this.getParent();
|
|
389
418
|
if (e === null || !this.isAttached()) return this.getLatest().__indent;
|
|
390
419
|
let t = e.getParentOrThrow(), n = 0;
|
|
391
|
-
for (;
|
|
420
|
+
for (; K(t);) t = t.getParentOrThrow().getParentOrThrow(), n++;
|
|
392
421
|
return n;
|
|
393
422
|
}
|
|
394
423
|
setIndent(e) {
|
|
395
|
-
typeof e != "number" &&
|
|
424
|
+
typeof e != "number" && j(117), (e = Math.floor(e)) >= 0 || j(199);
|
|
396
425
|
let t = this.getIndent();
|
|
397
|
-
for (; t !== e;) t < e ? (
|
|
426
|
+
for (; t !== e;) t < e ? (he(this), t++) : (ge(this), t--);
|
|
398
427
|
return this;
|
|
399
428
|
}
|
|
400
429
|
canInsertAfter(e) {
|
|
401
|
-
return
|
|
430
|
+
return K(e);
|
|
402
431
|
}
|
|
403
432
|
canReplaceWith(e) {
|
|
404
|
-
return
|
|
433
|
+
return K(e);
|
|
405
434
|
}
|
|
406
435
|
canMergeWith(e) {
|
|
407
|
-
return
|
|
436
|
+
return K(e) || le(e);
|
|
408
437
|
}
|
|
409
438
|
extractWithChild(e, t) {
|
|
410
|
-
if (!
|
|
439
|
+
if (!D(t)) return !1;
|
|
411
440
|
let n = t.anchor.getNode(), r = t.focus.getNode();
|
|
412
441
|
return this.isParentOf(n) && this.isParentOf(r) && this.getTextContent().length === t.getTextContent().length;
|
|
413
442
|
}
|
|
@@ -421,26 +450,26 @@ var W = class extends S {
|
|
|
421
450
|
return !0;
|
|
422
451
|
}
|
|
423
452
|
};
|
|
424
|
-
function
|
|
453
|
+
function ve(e) {
|
|
425
454
|
if (e.classList.contains("task-list-item")) {
|
|
426
|
-
for (let t of e.children) if (t.tagName === "INPUT") return
|
|
455
|
+
for (let t of e.children) if (t.tagName === "INPUT") return W(t);
|
|
427
456
|
}
|
|
428
457
|
if (e.classList.contains("joplin-checkbox")) {
|
|
429
|
-
for (let t of e.children) if (t.classList.contains("checkbox-wrapper") && t.children.length > 0 && t.children[0].tagName === "INPUT") return
|
|
458
|
+
for (let t of e.children) if (t.classList.contains("checkbox-wrapper") && t.children.length > 0 && t.children[0].tagName === "INPUT") return W(t.children[0]);
|
|
430
459
|
}
|
|
431
460
|
let t = e.getAttribute("aria-checked");
|
|
432
|
-
return { node:
|
|
461
|
+
return { node: G(t === "true" || t !== "false" && void 0) };
|
|
462
|
+
}
|
|
463
|
+
function W(e) {
|
|
464
|
+
return e.getAttribute("type") === "checkbox" ? { node: G(e.hasAttribute("checked")) } : { node: null };
|
|
433
465
|
}
|
|
434
466
|
function G(e) {
|
|
435
|
-
return
|
|
467
|
+
return b(new U(void 0, e));
|
|
436
468
|
}
|
|
437
469
|
function K(e) {
|
|
438
|
-
return
|
|
439
|
-
}
|
|
440
|
-
function q(e) {
|
|
441
|
-
return e instanceof W;
|
|
470
|
+
return e instanceof U;
|
|
442
471
|
}
|
|
443
|
-
var
|
|
472
|
+
var q = class extends y {
|
|
444
473
|
__tag;
|
|
445
474
|
__start;
|
|
446
475
|
__listType;
|
|
@@ -449,17 +478,17 @@ var J = class extends S {
|
|
|
449
478
|
$transform: (e) => {
|
|
450
479
|
(function(e) {
|
|
451
480
|
let t = e.getNextSibling();
|
|
452
|
-
Z(t) && e.getListType() === t.getListType() &&
|
|
453
|
-
})(e),
|
|
481
|
+
Z(t) && e.getListType() === t.getListType() && V(e, t);
|
|
482
|
+
})(e), H(e);
|
|
454
483
|
},
|
|
455
|
-
extends:
|
|
456
|
-
importDOM:
|
|
484
|
+
extends: y,
|
|
485
|
+
importDOM: f({
|
|
457
486
|
ol: () => ({
|
|
458
|
-
conversion:
|
|
487
|
+
conversion: Y,
|
|
459
488
|
priority: 0
|
|
460
489
|
}),
|
|
461
490
|
ul: () => ({
|
|
462
|
-
conversion:
|
|
491
|
+
conversion: Y,
|
|
463
492
|
priority: 0
|
|
464
493
|
})
|
|
465
494
|
})
|
|
@@ -467,7 +496,7 @@ var J = class extends S {
|
|
|
467
496
|
}
|
|
468
497
|
constructor(e = "number", t = 1, n) {
|
|
469
498
|
super(n);
|
|
470
|
-
let r =
|
|
499
|
+
let r = be[e] || e;
|
|
471
500
|
this.__listType = r, this.__tag = r === "number" ? "ol" : "ul", this.__start = t;
|
|
472
501
|
}
|
|
473
502
|
afterCloneFrom(e) {
|
|
@@ -492,17 +521,17 @@ var J = class extends S {
|
|
|
492
521
|
}
|
|
493
522
|
createDOM(e, t) {
|
|
494
523
|
let n = this.__tag, r = document.createElement(n);
|
|
495
|
-
return this.__start !== 1 && r.setAttribute("start", String(this.__start)), r.__lexicalListType = this.__listType,
|
|
524
|
+
return this.__start !== 1 && r.setAttribute("start", String(this.__start)), r.__lexicalListType = this.__listType, J(r, e.theme, this), r;
|
|
496
525
|
}
|
|
497
526
|
updateDOM(e, t, n) {
|
|
498
|
-
return e.__tag !== this.__tag || e.__listType !== this.__listType || (
|
|
527
|
+
return e.__tag !== this.__tag || e.__listType !== this.__listType || (J(t, n.theme, this), e.__start !== this.__start && t.setAttribute("start", String(this.__start)), !1);
|
|
499
528
|
}
|
|
500
529
|
updateFromJSON(e) {
|
|
501
530
|
return super.updateFromJSON(e).setListType(e.listType).setStart(e.start);
|
|
502
531
|
}
|
|
503
532
|
exportDOM(e) {
|
|
504
533
|
let t = this.createDOM(e._config, e);
|
|
505
|
-
return
|
|
534
|
+
return r(t) && (this.__start !== 1 && t.setAttribute("start", String(this.__start)), this.__listType === "check" && t.setAttribute("__lexicalListType", "check")), { element: t };
|
|
506
535
|
}
|
|
507
536
|
exportJSON() {
|
|
508
537
|
return {
|
|
@@ -519,149 +548,160 @@ var J = class extends S {
|
|
|
519
548
|
return !1;
|
|
520
549
|
}
|
|
521
550
|
splice(e, t, n) {
|
|
522
|
-
let r = n.find(
|
|
551
|
+
let r = n.find(K) ?? this.getChildren().find(K), i = r ? () => _(r) : G, a = n;
|
|
523
552
|
for (let e = 0; e < n.length; e++) {
|
|
524
553
|
let t = n[e];
|
|
525
|
-
|
|
554
|
+
K(t) || (a === n && (a = [...n]), a[e] = i().append(!h(t) || Z(t) || t.isInline() ? t : se(t.getTextContent())));
|
|
526
555
|
}
|
|
527
556
|
return super.splice(e, t, a);
|
|
528
557
|
}
|
|
529
558
|
extractWithChild(e) {
|
|
530
|
-
return
|
|
559
|
+
return K(e);
|
|
531
560
|
}
|
|
532
561
|
};
|
|
533
|
-
function
|
|
562
|
+
function J(e, t, n) {
|
|
534
563
|
let r = [], i = [], a = t.list;
|
|
535
564
|
if (a !== void 0) {
|
|
536
|
-
let e = a[`${n.__tag}Depth`] || [], t =
|
|
537
|
-
if (
|
|
538
|
-
r.push(...
|
|
565
|
+
let e = a[`${n.__tag}Depth`] || [], t = M(n) - 1, o = t % e.length, s = e[o], c = a[n.__tag], u, d = a.nested, f = a.checklist;
|
|
566
|
+
if (d !== void 0 && d.list && (u = d.list), c !== void 0 && r.push(c), f !== void 0 && n.__listType === "check" && r.push(f), s !== void 0) {
|
|
567
|
+
r.push(...l(s));
|
|
539
568
|
for (let t = 0; t < e.length; t++) t !== o && i.push(n.__tag + t);
|
|
540
569
|
}
|
|
541
|
-
if (
|
|
542
|
-
let e =
|
|
570
|
+
if (u !== void 0) {
|
|
571
|
+
let e = l(u);
|
|
543
572
|
t > 1 ? r.push(...e) : i.push(...e);
|
|
544
573
|
}
|
|
545
574
|
}
|
|
546
|
-
i.length > 0 &&
|
|
575
|
+
i.length > 0 && ee(e, ...i), r.length > 0 && E(e, ...r);
|
|
547
576
|
}
|
|
548
|
-
function
|
|
577
|
+
function ye(e) {
|
|
549
578
|
let t = [];
|
|
550
579
|
for (let n = 0; n < e.length; n++) {
|
|
551
580
|
let r = e[n];
|
|
552
|
-
if (
|
|
581
|
+
if (K(r)) {
|
|
553
582
|
t.push(r);
|
|
554
583
|
let e = r.getChildren();
|
|
555
584
|
e.length > 1 && e.forEach((e) => {
|
|
556
|
-
Z(e) && t.push(
|
|
585
|
+
Z(e) && t.push(I(e));
|
|
557
586
|
});
|
|
558
|
-
} else t.push(
|
|
587
|
+
} else t.push(I(r));
|
|
559
588
|
}
|
|
560
589
|
return t;
|
|
561
590
|
}
|
|
562
|
-
function
|
|
591
|
+
function Y(e) {
|
|
563
592
|
let t = e.nodeName.toLowerCase(), n = null;
|
|
564
593
|
return t === "ol" ? n = X("number", e.start) : t === "ul" && (n = function(e) {
|
|
565
594
|
if (e.getAttribute("__lexicallisttype") === "check" || e.classList.contains("contains-task-list") || e.getAttribute("data-is-checklist") === "1") return !0;
|
|
566
|
-
for (let t of e.childNodes) if (
|
|
595
|
+
for (let t of e.childNodes) if (r(t) && t.hasAttribute("aria-checked")) return !0;
|
|
567
596
|
return !1;
|
|
568
597
|
}(e) ? X("check") : X("bullet")), {
|
|
569
|
-
after:
|
|
598
|
+
after: ye,
|
|
570
599
|
node: n
|
|
571
600
|
};
|
|
572
601
|
}
|
|
573
|
-
var
|
|
602
|
+
var be = {
|
|
574
603
|
ol: "number",
|
|
575
604
|
ul: "bullet"
|
|
576
605
|
};
|
|
577
606
|
function X(e = "number", t = 1) {
|
|
578
|
-
return
|
|
607
|
+
return b(new q(e, t));
|
|
579
608
|
}
|
|
580
609
|
function Z(e) {
|
|
581
|
-
return e instanceof
|
|
610
|
+
return e instanceof q;
|
|
582
611
|
}
|
|
583
|
-
var
|
|
584
|
-
function
|
|
585
|
-
let
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
612
|
+
var xe = n("INSERT_CHECK_LIST_COMMAND");
|
|
613
|
+
function Se(e, t) {
|
|
614
|
+
let n = t && t.disableTakeFocusOnClick || !1, i = typeof n == "boolean" ? () => n : n.peek.bind(n), o = (e) => {
|
|
615
|
+
let t = e.target;
|
|
616
|
+
if (!r(t)) return !1;
|
|
617
|
+
let n = t.__lexicalCheckListLastHandled;
|
|
618
|
+
return n !== void 0 && e.timeStamp - n < 500;
|
|
619
|
+
}, s = (e) => {
|
|
620
|
+
let t = e.target;
|
|
621
|
+
r(t) && (t.__lexicalCheckListLastHandled = e.timeStamp);
|
|
622
|
+
}, l = (e) => {
|
|
623
|
+
o(e) || (s(e), Ce(e, i()));
|
|
624
|
+
}, u = (e) => {
|
|
625
|
+
e.pointerType === "touch" && (o(e) || (s(e), Ce(e, i())));
|
|
597
626
|
}, d = (e) => {
|
|
598
627
|
(function(e, t) {
|
|
599
|
-
|
|
628
|
+
Q(e, () => {
|
|
600
629
|
e.preventDefault(), t && e.stopPropagation();
|
|
601
630
|
});
|
|
602
|
-
})(e,
|
|
631
|
+
})(e, i());
|
|
603
632
|
};
|
|
604
|
-
return
|
|
605
|
-
let n =
|
|
606
|
-
return !(n == null || !
|
|
607
|
-
let
|
|
608
|
-
|
|
633
|
+
return T(e.registerCommand(xe, () => (R("check"), !0), 1), e.registerCommand(ae, (t) => we(t, e, !1), 1), e.registerCommand(a, (t) => we(t, e, !0), 1), e.registerCommand(re, () => $() == null ? !1 : (e.getRootElement()?.focus(), !0), 1), e.registerCommand(c, (t) => {
|
|
634
|
+
let n = $();
|
|
635
|
+
return !(n == null || !e.isEditable()) && (e.update(() => {
|
|
636
|
+
let e = O(n);
|
|
637
|
+
K(e) && (t.preventDefault(), e.toggleChecked());
|
|
609
638
|
}), !0);
|
|
610
|
-
}, 1),
|
|
611
|
-
let n =
|
|
612
|
-
if (
|
|
639
|
+
}, 1), e.registerCommand(te, (t) => e.getEditorState().read(() => {
|
|
640
|
+
let n = C();
|
|
641
|
+
if (D(n) && n.isCollapsed()) {
|
|
613
642
|
let { anchor: r } = n, i = r.type === "element";
|
|
614
643
|
if (i || r.offset === 0) {
|
|
615
|
-
let n = r.getNode(), a =
|
|
616
|
-
if (
|
|
644
|
+
let n = r.getNode(), a = v(n, (e) => h(e) && !e.isInline());
|
|
645
|
+
if (K(a)) {
|
|
617
646
|
let r = a.getParent();
|
|
618
647
|
if (Z(r) && r.getListType() === "check" && (i || a.getFirstDescendant() === n)) {
|
|
619
|
-
let n =
|
|
620
|
-
if (n != null && document.activeElement !== n) return n.focus(),
|
|
648
|
+
let n = e.getElementByKey(a.__key);
|
|
649
|
+
if (n != null && document.activeElement !== n) return n.focus(), t.preventDefault(), !0;
|
|
621
650
|
}
|
|
622
651
|
}
|
|
623
652
|
}
|
|
624
653
|
}
|
|
625
654
|
return !1;
|
|
626
|
-
}), 1),
|
|
627
|
-
if (e !== null) return e.addEventListener("click",
|
|
655
|
+
}), 1), e.registerRootListener((e) => {
|
|
656
|
+
if (e !== null) return e.addEventListener("click", l), e.addEventListener("pointerup", u), e.addEventListener("pointerdown", d, { capture: !0 }), e.addEventListener("mousedown", d, { capture: !0 }), e.addEventListener("touchstart", d, {
|
|
628
657
|
capture: !0,
|
|
629
658
|
passive: !1
|
|
630
659
|
}), () => {
|
|
631
|
-
e.removeEventListener("click",
|
|
660
|
+
e.removeEventListener("click", l), e.removeEventListener("pointerup", u), e.removeEventListener("pointerdown", d, { capture: !0 }), e.removeEventListener("mousedown", d, { capture: !0 }), e.removeEventListener("touchstart", d, { capture: !0 });
|
|
632
661
|
};
|
|
633
662
|
}));
|
|
634
663
|
}
|
|
635
|
-
function
|
|
664
|
+
function Q(e, t) {
|
|
636
665
|
let n = e.target;
|
|
637
|
-
if (!
|
|
638
|
-
let
|
|
639
|
-
if (
|
|
640
|
-
let
|
|
641
|
-
if (!
|
|
642
|
-
let
|
|
643
|
-
if ("clientX" in e)
|
|
666
|
+
if (!r(n)) return;
|
|
667
|
+
let i = n.firstChild;
|
|
668
|
+
if (r(i) && (i.tagName === "UL" || i.tagName === "OL")) return;
|
|
669
|
+
let a = n.parentNode;
|
|
670
|
+
if (!a || a.__lexicalListType !== "check") return;
|
|
671
|
+
let o = null, s = null;
|
|
672
|
+
if ("clientX" in e) o = e.clientX;
|
|
644
673
|
else if ("touches" in e) {
|
|
645
674
|
let t = e.touches;
|
|
646
|
-
t.length > 0 && (
|
|
675
|
+
t.length > 0 && (o = t[0].clientX, s = "touch");
|
|
647
676
|
}
|
|
648
|
-
if (
|
|
649
|
-
let
|
|
650
|
-
(n.dir === "rtl" ?
|
|
677
|
+
if (o == null) return;
|
|
678
|
+
let c = n.getBoundingClientRect(), l = o / de(n), u = window.getComputedStyle ? window.getComputedStyle(n, "::before") : { width: "0px" }, d = parseFloat(u.width), f = s === "touch" || "pointerType" in e && e.pointerType === "touch" ? 32 : 0;
|
|
679
|
+
(n.dir === "rtl" ? l < c.right + f && l > c.right - d - f : l > c.left - f && l < c.left + d + f) && t();
|
|
680
|
+
}
|
|
681
|
+
function Ce(e, t) {
|
|
682
|
+
Q(e, () => {
|
|
683
|
+
if (r(e.target)) {
|
|
684
|
+
let n = e.target, r = ce(n);
|
|
685
|
+
r != null && r.isEditable() && r.update(() => {
|
|
686
|
+
let e = O(n);
|
|
687
|
+
K(e) && (t ? (ue("skip-selection-focus"), ue("skip-dom-selection")) : n.focus(), e.toggleChecked());
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
});
|
|
651
691
|
}
|
|
652
|
-
function
|
|
692
|
+
function $() {
|
|
653
693
|
let e = document.activeElement;
|
|
654
|
-
return
|
|
694
|
+
return r(e) && e.tagName === "LI" && e.parentNode != null && e.parentNode.__lexicalListType === "check" ? e : null;
|
|
655
695
|
}
|
|
656
|
-
function
|
|
657
|
-
let r =
|
|
696
|
+
function we(e, t, n) {
|
|
697
|
+
let r = $();
|
|
658
698
|
return r != null && t.update(() => {
|
|
659
|
-
let i =
|
|
660
|
-
if (!
|
|
699
|
+
let i = O(r);
|
|
700
|
+
if (!K(i)) return;
|
|
661
701
|
let a = function(e, t) {
|
|
662
702
|
let n = t ? e.getPreviousSibling() : e.getNextSibling(), r = e;
|
|
663
|
-
for (; n == null &&
|
|
664
|
-
for (;
|
|
703
|
+
for (; n == null && K(r);) r = r.getParentOrThrow().getParent(), r != null && (n = t ? r.getPreviousSibling() : r.getNextSibling());
|
|
704
|
+
for (; K(n);) {
|
|
665
705
|
let e = t ? n.getLastChild() : n.getFirstChild();
|
|
666
706
|
if (!Z(e)) return n;
|
|
667
707
|
n = t ? e.getLastChild() : e.getFirstChild();
|
|
@@ -677,61 +717,61 @@ function be(e, t, n) {
|
|
|
677
717
|
}
|
|
678
718
|
}), !1;
|
|
679
719
|
}
|
|
680
|
-
var
|
|
681
|
-
function
|
|
682
|
-
return
|
|
683
|
-
let { listNodeKey: t, newStart: n } = e, r =
|
|
684
|
-
return !!Z(r) && (r.getListType() === "number" && (r.setStart(n),
|
|
685
|
-
}, 1), e.registerCommand(
|
|
720
|
+
var Te = n("UPDATE_LIST_START_COMMAND"), Ee = n("INSERT_UNORDERED_LIST_COMMAND"), De = n("INSERT_ORDERED_LIST_COMMAND"), Oe = n("REMOVE_LIST_COMMAND");
|
|
721
|
+
function ke(e, n) {
|
|
722
|
+
return T(e.registerCommand(De, () => (R("number"), !0), 1), e.registerCommand(Te, (e) => {
|
|
723
|
+
let { listNodeKey: t, newStart: n } = e, r = ie(t);
|
|
724
|
+
return !!Z(r) && (r.getListType() === "number" && (r.setStart(n), H(r)), !0);
|
|
725
|
+
}, 1), e.registerCommand(Ee, () => (R("bullet"), !0), 1), e.registerCommand(Oe, () => (me(), !0), 1), e.registerCommand(t, () => _e(!!(n && n.restoreNumbering)), 1), e.registerNodeTransform(U, (e) => {
|
|
686
726
|
let t = e.getFirstChild();
|
|
687
727
|
if (t) {
|
|
688
|
-
if (
|
|
728
|
+
if (S(t)) {
|
|
689
729
|
let n = t.getStyle(), r = t.getFormat();
|
|
690
730
|
e.getTextStyle() !== n && e.setTextStyle(n), e.getTextFormat() !== r && e.setTextFormat(r);
|
|
691
731
|
}
|
|
692
732
|
} else {
|
|
693
|
-
let t =
|
|
694
|
-
|
|
733
|
+
let t = C();
|
|
734
|
+
D(t) && (t.style !== e.getTextStyle() || t.format !== e.getTextFormat()) && t.isCollapsed() && e.is(t.anchor.getNode()) && e.setTextStyle(t.style).setTextFormat(t.format);
|
|
695
735
|
}
|
|
696
|
-
}), e.registerNodeTransform(
|
|
736
|
+
}), e.registerNodeTransform(ne, (e) => {
|
|
697
737
|
let t = e.getParent();
|
|
698
|
-
if (
|
|
738
|
+
if (K(t) && e.is(t.getFirstChild())) {
|
|
699
739
|
let n = e.getStyle(), r = e.getFormat();
|
|
700
740
|
n === t.getTextStyle() && r === t.getTextFormat() || t.setTextStyle(n).setTextFormat(r);
|
|
701
741
|
}
|
|
702
742
|
}));
|
|
703
743
|
}
|
|
704
|
-
function
|
|
744
|
+
function Ae(e) {
|
|
705
745
|
let t = (e) => {
|
|
706
746
|
let t = e.getParent();
|
|
707
747
|
if (Z(e.getFirstChild()) || !Z(t)) return;
|
|
708
|
-
let n =
|
|
748
|
+
let n = v(e, (e) => K(e) && Z(e.getParent()) && K(e.getPreviousSibling()));
|
|
709
749
|
if (n === null && e.getIndent() > 0) e.setIndent(0);
|
|
710
|
-
else if (
|
|
750
|
+
else if (K(n)) {
|
|
711
751
|
let r = n.getPreviousSibling();
|
|
712
|
-
if (
|
|
752
|
+
if (K(r)) {
|
|
713
753
|
let n = function(e) {
|
|
714
754
|
let t = e, n = t.getFirstChild();
|
|
715
755
|
for (; Z(n);) {
|
|
716
756
|
let e = n.getLastChild();
|
|
717
|
-
if (!
|
|
757
|
+
if (!K(e)) break;
|
|
718
758
|
t = e, n = t.getFirstChild();
|
|
719
759
|
}
|
|
720
760
|
return t;
|
|
721
761
|
}(r).getParent();
|
|
722
762
|
if (Z(n)) {
|
|
723
|
-
let r =
|
|
724
|
-
r + 1 <
|
|
763
|
+
let r = M(n);
|
|
764
|
+
r + 1 < M(t) && e.setIndent(r);
|
|
725
765
|
}
|
|
726
766
|
}
|
|
727
767
|
}
|
|
728
768
|
};
|
|
729
|
-
return e.registerNodeTransform(
|
|
769
|
+
return e.registerNodeTransform(q, (e) => {
|
|
730
770
|
let n = [e];
|
|
731
771
|
for (; n.length > 0;) {
|
|
732
772
|
let e = n.shift();
|
|
733
773
|
if (Z(e)) {
|
|
734
|
-
for (let r of e.getChildren()) if (
|
|
774
|
+
for (let r of e.getChildren()) if (K(r)) {
|
|
735
775
|
t(r);
|
|
736
776
|
let e = r.getFirstChild();
|
|
737
777
|
Z(e) && n.push(e);
|
|
@@ -740,27 +780,27 @@ function $(e) {
|
|
|
740
780
|
}
|
|
741
781
|
});
|
|
742
782
|
}
|
|
743
|
-
var
|
|
744
|
-
build: (e, t, n) =>
|
|
745
|
-
config:
|
|
783
|
+
var je = o({
|
|
784
|
+
build: (e, t, n) => k(t),
|
|
785
|
+
config: u({
|
|
746
786
|
hasStrictIndent: !1,
|
|
747
787
|
shouldPreserveNumbering: !1
|
|
748
788
|
}),
|
|
749
789
|
name: "@lexical/list/List",
|
|
750
|
-
nodes: () => [
|
|
790
|
+
nodes: () => [q, U],
|
|
751
791
|
register(e, t, n) {
|
|
752
792
|
let r = n.getOutput();
|
|
753
|
-
return
|
|
793
|
+
return T(A(() => ke(e, { restoreNumbering: r.shouldPreserveNumbering.value })), A(() => r.hasStrictIndent.value ? Ae(e) : void 0));
|
|
754
794
|
}
|
|
755
795
|
});
|
|
756
|
-
|
|
757
|
-
build: (e, t) =>
|
|
758
|
-
config:
|
|
759
|
-
dependencies: [
|
|
796
|
+
o({
|
|
797
|
+
build: (e, t) => k(t),
|
|
798
|
+
config: u({ disableTakeFocusOnClick: !1 }),
|
|
799
|
+
dependencies: [je],
|
|
760
800
|
name: "@lexical/list/CheckList",
|
|
761
|
-
register: (e, t, n) =>
|
|
801
|
+
register: (e, t, n) => Se(e, n.getOutput())
|
|
762
802
|
});
|
|
763
803
|
//#endregion
|
|
764
|
-
export {
|
|
804
|
+
export { Z as a, q as c, De as i, K as l, Ee as n, X as o, ke as r, U as s, Oe as t, Ae as u };
|
|
765
805
|
|
|
766
|
-
//# sourceMappingURL=LexicalList.prod-
|
|
806
|
+
//# sourceMappingURL=LexicalList.prod-eYlcb5Ao.js.map
|