@uva-glass/component-library 3.55.3 → 3.55.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-BpnBHYIx.js → Accordion-DvblEUVu.js} +16 -17
- package/dist/{Accordion-BpnBHYIx.js.map → Accordion-DvblEUVu.js.map} +1 -1
- package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js → AddCatalogueLinkForm-rph4K9P0.js} +24 -25
- package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js.map → AddCatalogueLinkForm-rph4K9P0.js.map} +1 -1
- package/dist/{CheckboxButtonBar-CalU0IYK.js → CheckboxButtonBar-5UMIFMKH.js} +2 -2
- package/dist/{CheckboxButtonBar-CalU0IYK.js.map → CheckboxButtonBar-5UMIFMKH.js.map} +1 -1
- package/dist/{ControlsButton-zemVxTlg.js → ControlsButton-B1XRpMUM.js} +15 -16
- package/dist/{ControlsButton-zemVxTlg.js.map → ControlsButton-B1XRpMUM.js.map} +1 -1
- package/dist/{Drawer-Ggofac6y.js → Drawer-e7UFHVg9.js} +29 -30
- package/dist/{Drawer-Ggofac6y.js.map → Drawer-e7UFHVg9.js.map} +1 -1
- package/dist/{FieldHint-D0HtbTnt.js → FieldHint-fxnEOsVZ.js} +2 -2
- package/dist/{FieldHint-D0HtbTnt.js.map → FieldHint-fxnEOsVZ.js.map} +1 -1
- package/dist/Fieldset-0LFsZ3Mz.js +22 -0
- package/dist/{Fieldset-CoNu_Owa.js.map → Fieldset-0LFsZ3Mz.js.map} +1 -1
- package/dist/{Lexical.prod-DIglXatJ.js → Lexical.prod-sbwgNRjw.js} +575 -568
- package/dist/Lexical.prod-sbwgNRjw.js.map +1 -0
- package/dist/{LexicalClipboard.prod-Bnzu0sh_.js → LexicalClipboard.prod-DdImsyd1.js} +82 -82
- package/dist/{LexicalClipboard.prod-Bnzu0sh_.js.map → LexicalClipboard.prod-DdImsyd1.js.map} +1 -1
- package/dist/{LexicalExtension.prod-COPHoPpX.js → LexicalExtension.prod-jTSDl1mh.js} +208 -198
- package/dist/LexicalExtension.prod-jTSDl1mh.js.map +1 -0
- package/dist/{LexicalLink.prod-Bf9JUdMv.js → LexicalLink.prod-BKLNLyu8.js} +155 -149
- package/dist/LexicalLink.prod-BKLNLyu8.js.map +1 -0
- package/dist/{LexicalList.prod-DRz8vsM9.js → LexicalList.prod-DEtc4lSr.js} +222 -222
- package/dist/{LexicalList.prod-DRz8vsM9.js.map → LexicalList.prod-DEtc4lSr.js.map} +1 -1
- package/dist/{LexicalTable.prod-D16GW-aZ.js → LexicalTable.prod-CpIPDW6z.js} +436 -428
- package/dist/LexicalTable.prod-CpIPDW6z.js.map +1 -0
- package/dist/LexicalUtils.prod-DjjGkphN.js +360 -0
- package/dist/LexicalUtils.prod-DjjGkphN.js.map +1 -0
- package/dist/{LinkContextMenu-m_CGQEiX.js → LinkContextMenu-CTkNPiIW.js} +2 -2
- package/dist/{LinkContextMenu-m_CGQEiX.js.map → LinkContextMenu-CTkNPiIW.js.map} +1 -1
- package/dist/{ModalDialog-HUkDdAJ-.js → ModalDialog-N50NGnd4.js} +2 -2
- package/dist/{ModalDialog-HUkDdAJ-.js.map → ModalDialog-N50NGnd4.js.map} +1 -1
- package/dist/{PageOverlay-D_wG2oie.js → PageOverlay-S4xsqJha.js} +2 -2
- package/dist/{PageOverlay-D_wG2oie.js.map → PageOverlay-S4xsqJha.js.map} +1 -1
- package/dist/{PasteHandlerPlugin-DjD1wryY.js → PasteHandlerPlugin-YpQruA-w.js} +4 -4
- package/dist/{PasteHandlerPlugin-DjD1wryY.js.map → PasteHandlerPlugin-YpQruA-w.js.map} +1 -1
- package/dist/{RteEditor.module-Jk80F1FA.js → RteEditor.module-BJLUYSpf.js} +9 -10
- package/dist/{RteEditor.module-Jk80F1FA.js.map → RteEditor.module-BJLUYSpf.js.map} +1 -1
- package/dist/{Sortable.module-BTUOSbOU.js → Sortable.module-8SoaHfuE.js} +6 -7
- package/dist/{Sortable.module-BTUOSbOU.js.map → Sortable.module-8SoaHfuE.js.map} +1 -1
- package/dist/{SortableProvider-Dc7hwkb5.js → SortableProvider-8HYiBXJS.js} +2 -2
- package/dist/{SortableProvider-Dc7hwkb5.js.map → SortableProvider-8HYiBXJS.js.map} +1 -1
- package/dist/Spinner-BpElTDIu.js +30 -0
- package/dist/{Spinner-D8tWqg9j.js.map → Spinner-BpElTDIu.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-CgYsYsuY.js → TableCellResizerPlugin-Ceof6StD.js} +17 -17
- package/dist/{TableCellResizerPlugin-CgYsYsuY.js.map → TableCellResizerPlugin-Ceof6StD.js.map} +1 -1
- package/dist/{TextArea-DqKIpOfT.js → TextArea-CuASC9bX.js} +16 -17
- package/dist/{TextArea-DqKIpOfT.js.map → TextArea-CuASC9bX.js.map} +1 -1
- package/dist/{Tooltip-BzB3jznk.js → Tooltip-D27p9kh4.js} +13 -14
- package/dist/{Tooltip-BzB3jznk.js.map → Tooltip-D27p9kh4.js.map} +1 -1
- package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js → chunk-SZQXB3JV-KiB8lSa9.js} +5 -5
- package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js.map → chunk-SZQXB3JV-KiB8lSa9.js.map} +1 -1
- package/dist/{client-UU-mS47K.js → client-CHQ7u_QI.js} +9 -9
- package/dist/{client-UU-mS47K.js.map → client-CHQ7u_QI.js.map} +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.stories.js +1 -1
- package/dist/components/Accordion/Accordion.test.js +4 -7
- package/dist/components/Accordion/Accordion.test.js.map +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionCard/AccordionCard.test.js +3 -6
- package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
- package/dist/components/ActionList/ActionList.test.js +3 -6
- package/dist/components/ActionList/ActionList.test.js.map +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -5
- package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
- package/dist/components/Attention/Attention.test.js +2 -5
- package/dist/components/Attention/Attention.test.js.map +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +2 -5
- package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +2 -5
- package/dist/components/Buttons/Button.test.js.map +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +2 -5
- package/dist/components/Buttons/LinkButton.test.js.map +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +2 -5
- package/dist/components/Buttons/MenuButton.test.js.map +1 -1
- package/dist/components/Card/Card.test.js +2 -5
- package/dist/components/Card/Card.test.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +3 -6
- package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +2 -2
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -6
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/index.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -4
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/CheckboxTree/index.js +1 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +2 -2
- package/dist/components/ControlsButton/index.js +1 -1
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +2 -2
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -5
- package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
- package/dist/components/FieldHint/FieldHint.js +1 -1
- package/dist/components/FieldHint/FieldHint.stories.js +1 -1
- package/dist/components/FieldHint/index.js +1 -1
- package/dist/components/Fieldset/Fieldset.js +1 -1
- package/dist/components/Fieldset/Fieldset.stories.js +1 -1
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -2
- package/dist/components/FormInput/FormInput.stories.js +2 -3
- package/dist/components/FormInput/FormInput.stories.js.map +1 -1
- package/dist/components/FormInput/index.js +1 -2
- package/dist/components/IconButton/IconButton.stories.js +6 -7
- package/dist/components/IconButton/IconButton.stories.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -3
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/Label/Label.test.js +2 -5
- package/dist/components/Label/Label.test.js.map +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -4
- package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
- package/dist/components/ModalDialog/ModalDialog.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +2 -2
- package/dist/components/ModalDialog/index.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -3
- package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -2
- package/dist/components/MultiSelect/index.js +1 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -5
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +2 -5
- package/dist/components/Notification/Notification.test.js.map +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +6 -7
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
- package/dist/components/PageOverlay/PageOverlay.js +1 -1
- package/dist/components/PageOverlay/PageOverlay.stories.js +1 -1
- package/dist/components/PageOverlay/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -3
- package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
- package/dist/components/PeriodSelector/index.js +1 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +0 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -5
- package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -3
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
- package/dist/components/RadioTabSelector/index.js +1 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -2
- package/dist/components/RteEditor/EditorHeader/index.js +1 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +30 -30
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +6 -6
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +16 -16
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/index.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +1 -2
- package/dist/components/RteEditor/RteEditor.stories.js +1 -2
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
- package/dist/components/RteEditor/helpers.js +5 -5
- package/dist/components/RteEditor/index.js +1 -2
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +14 -14
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +19 -19
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableHandle.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +2 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/Spinner.stories.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -5
- package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +2 -2
- package/dist/components/TextArea/TextArea.test.js +4 -7
- package/dist/components/TextArea/TextArea.test.js.map +1 -1
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.stories.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -6
- package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
- package/dist/components/index.js +12 -13
- package/dist/{components-C4MCdrDH.js → components-DAwjkky5.js} +436 -436
- package/dist/components-DAwjkky5.js.map +1 -0
- package/dist/{dist-2TKCXdYZ.js → dist-BIkFjHck.js} +181 -181
- package/dist/{dist-2TKCXdYZ.js.map → dist-BIkFjHck.js.map} +1 -1
- package/dist/{esm-UNe_gmRA.js → esm-ipAmzhQq.js} +4 -4
- package/dist/{esm-UNe_gmRA.js.map → esm-ipAmzhQq.js.map} +1 -1
- package/dist/{helpers-BBSxTGRl.js → helpers-MNJmfDe_.js} +7 -7
- package/dist/{helpers-BBSxTGRl.js.map → helpers-MNJmfDe_.js.map} +1 -1
- package/dist/index.js +12 -13
- package/dist/{react-18-CRbkdI-3.js → react-18-Dwpebadr.js} +2 -2
- package/dist/{react-18-CRbkdI-3.js.map → react-18-Dwpebadr.js.map} +1 -1
- package/dist/{react.esm-CzIhAqlo.js → react.esm-R7eBXTUI.js} +587 -587
- package/dist/{react.esm-CzIhAqlo.js.map → react.esm-R7eBXTUI.js.map} +1 -1
- package/dist/setupTests.js +1 -2
- package/dist/setupTests.js.map +1 -1
- package/dist/storybook__react.d.js +97 -97
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-DQruvi8i.js → test-Cr_l59hN.js} +12 -10
- package/dist/{test-DQruvi8i.js.map → test-Cr_l59hN.js.map} +1 -1
- package/package.json +27 -27
- package/dist/Fieldset-CoNu_Owa.js +0 -23
- package/dist/Lexical.prod-DIglXatJ.js.map +0 -1
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +0 -1
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +0 -1
- package/dist/LexicalTable.prod-D16GW-aZ.js.map +0 -1
- package/dist/LexicalUtils.prod-BBTLliac.js +0 -360
- package/dist/LexicalUtils.prod-BBTLliac.js.map +0 -1
- package/dist/Spinner-D8tWqg9j.js +0 -31
- package/dist/components-C4MCdrDH.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,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
1
|
+
import { $t as e, C as t, Ct as n, En as r, H as i, L as a, Ln as o, P as s, Pn as c, S as ee, Sn as te, T as ne, Tt as re, U as l, Vn as ie, X as u, Zt as d, at as f, cn as ae, dn as p, f as oe, fn as se, g as ce, hn as le, jt as m, k as ue, kt as de, mn as fe, n as pe, on as me, ot as he, p as ge, pn as _e, r as h, sn as ve, st as ye, t as be, w as xe, wt as Se, x as Ce, y as we, z as Te, zt as Ee } from "./Lexical.prod-sbwgNRjw.js";
|
|
2
|
+
import { c as De, n as Oe, t as ke, u as Ae } from "./LexicalUtils.prod-DjjGkphN.js";
|
|
3
3
|
//#region node_modules/@lexical/extension/LexicalExtension.prod.mjs
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
if (
|
|
4
|
+
var je = Symbol.for("preact-signals");
|
|
5
|
+
function g() {
|
|
6
|
+
if (S > 1) return void S--;
|
|
7
7
|
let e, t = !1;
|
|
8
|
-
for (
|
|
9
|
-
let
|
|
10
|
-
for (x = void 0
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
for (function() {
|
|
9
|
+
let e = x;
|
|
10
|
+
for (x = void 0; e !== void 0;) e.S.v === e.v && (e.S.i = e.i), e = e.o;
|
|
11
|
+
}(); y !== void 0;) {
|
|
12
|
+
let n = y;
|
|
13
|
+
for (y = void 0, C++; n !== void 0;) {
|
|
14
|
+
let r = n.u;
|
|
15
|
+
if (n.u = void 0, n.f &= -3, !(8 & n.f) && k(n)) try {
|
|
13
16
|
n.c();
|
|
14
17
|
} catch (n) {
|
|
15
18
|
t ||= (e = n, !0);
|
|
@@ -17,44 +20,44 @@ function v() {
|
|
|
17
20
|
n = r;
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
|
-
if (
|
|
23
|
+
if (C = 0, S--, t) throw e;
|
|
21
24
|
}
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
+
function _(e) {
|
|
26
|
+
if (S > 0) return e();
|
|
27
|
+
w = ++Me, S++;
|
|
25
28
|
try {
|
|
26
29
|
return e();
|
|
27
30
|
} finally {
|
|
28
|
-
|
|
31
|
+
g();
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
|
-
var
|
|
32
|
-
function
|
|
33
|
-
let t =
|
|
34
|
-
|
|
34
|
+
var v, y;
|
|
35
|
+
function b(e) {
|
|
36
|
+
let t = v;
|
|
37
|
+
v = void 0;
|
|
35
38
|
try {
|
|
36
39
|
return e();
|
|
37
40
|
} finally {
|
|
38
|
-
|
|
41
|
+
v = t;
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
|
-
var C = 0, w = 0, T = 0;
|
|
44
|
+
var x, S = 0, C = 0, Me = 0, w = 0, T = 0;
|
|
42
45
|
function E(e) {
|
|
43
|
-
if (
|
|
46
|
+
if (v === void 0) return;
|
|
44
47
|
let t = e.n;
|
|
45
|
-
return t === void 0 || t.t !==
|
|
48
|
+
return t === void 0 || t.t !== v ? (t = {
|
|
46
49
|
i: 0,
|
|
47
50
|
S: e,
|
|
48
|
-
p:
|
|
51
|
+
p: v.s,
|
|
49
52
|
n: void 0,
|
|
50
|
-
t:
|
|
53
|
+
t: v,
|
|
51
54
|
e: void 0,
|
|
52
55
|
x: void 0,
|
|
53
56
|
r: t
|
|
54
|
-
},
|
|
57
|
+
}, v.s !== void 0 && (v.s.n = t), v.s = t, e.n = t, 32 & v.f && e.S(t), t) : t.i === -1 ? (t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = v.s, t.n = void 0, v.s.n = t, v.s = t), t) : void 0;
|
|
55
58
|
}
|
|
56
59
|
function D(e, t) {
|
|
57
|
-
this.v = e, this.i = 0, this.n = void 0, this.t = void 0, this.W = t?.watched, this.Z = t?.unwatched, this.name = t?.name;
|
|
60
|
+
this.v = e, this.i = 0, this.n = void 0, this.t = void 0, this.l = 0, this.W = t?.watched, this.Z = t?.unwatched, this.name = t?.name;
|
|
58
61
|
}
|
|
59
62
|
function O(e, t) {
|
|
60
63
|
return new D(e, t);
|
|
@@ -83,34 +86,34 @@ function j(e) {
|
|
|
83
86
|
function M(e, t) {
|
|
84
87
|
D.call(this, void 0), this.x = e, this.s = void 0, this.g = T - 1, this.f = 4, this.W = t?.watched, this.Z = t?.unwatched, this.name = t?.name;
|
|
85
88
|
}
|
|
86
|
-
function
|
|
89
|
+
function Ne(e, t) {
|
|
87
90
|
return new M(e, t);
|
|
88
91
|
}
|
|
89
|
-
function
|
|
90
|
-
let t = e.
|
|
91
|
-
if (e.
|
|
92
|
-
|
|
93
|
-
let n =
|
|
94
|
-
|
|
92
|
+
function Pe(e) {
|
|
93
|
+
let t = e.m;
|
|
94
|
+
if (e.m = void 0, typeof t == "function") {
|
|
95
|
+
S++;
|
|
96
|
+
let n = v;
|
|
97
|
+
v = void 0;
|
|
95
98
|
try {
|
|
96
99
|
t();
|
|
97
100
|
} catch (t) {
|
|
98
101
|
throw e.f &= -2, e.f |= 8, N(e), t;
|
|
99
102
|
} finally {
|
|
100
|
-
|
|
103
|
+
v = n, g();
|
|
101
104
|
}
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
107
|
function N(e) {
|
|
105
108
|
for (let t = e.s; t !== void 0; t = t.n) t.S.U(t);
|
|
106
|
-
e.x = void 0, e.s = void 0,
|
|
109
|
+
e.x = void 0, e.s = void 0, Pe(e);
|
|
107
110
|
}
|
|
108
|
-
function
|
|
109
|
-
if (
|
|
110
|
-
j(this),
|
|
111
|
+
function Fe(e) {
|
|
112
|
+
if (v !== this) throw Error("Out-of-order effect");
|
|
113
|
+
j(this), v = e, this.f &= -2, 8 & this.f && N(this), g();
|
|
111
114
|
}
|
|
112
115
|
function P(e, t) {
|
|
113
|
-
this.x = e, this.
|
|
116
|
+
this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name;
|
|
114
117
|
}
|
|
115
118
|
function F(e, t) {
|
|
116
119
|
let n = new P(e, t);
|
|
@@ -130,30 +133,30 @@ function I(e, t = {}) {
|
|
|
130
133
|
}
|
|
131
134
|
return n;
|
|
132
135
|
}
|
|
133
|
-
D.prototype.brand =
|
|
136
|
+
D.prototype.brand = je, D.prototype.h = function() {
|
|
134
137
|
return !0;
|
|
135
138
|
}, D.prototype.S = function(e) {
|
|
136
139
|
let t = this.t;
|
|
137
|
-
t !== e && e.e === void 0 && (e.x = t, this.t = e, t === void 0 ?
|
|
140
|
+
t !== e && e.e === void 0 && (e.x = t, this.t = e, t === void 0 ? b(() => {
|
|
138
141
|
var e;
|
|
139
142
|
(e = this.W) == null || e.call(this);
|
|
140
143
|
}) : t.e = e);
|
|
141
144
|
}, D.prototype.U = function(e) {
|
|
142
145
|
if (this.t !== void 0) {
|
|
143
146
|
let t = e.e, n = e.x;
|
|
144
|
-
t !== void 0 && (t.x = n, e.e = void 0), n !== void 0 && (n.e = t, e.x = void 0), e === this.t && (this.t = n, n === void 0 &&
|
|
147
|
+
t !== void 0 && (t.x = n, e.e = void 0), n !== void 0 && (n.e = t, e.x = void 0), e === this.t && (this.t = n, n === void 0 && b(() => {
|
|
145
148
|
var e;
|
|
146
149
|
(e = this.Z) == null || e.call(this);
|
|
147
150
|
}));
|
|
148
151
|
}
|
|
149
152
|
}, D.prototype.subscribe = function(e) {
|
|
150
153
|
return F(() => {
|
|
151
|
-
let t = this.value, n =
|
|
152
|
-
|
|
154
|
+
let t = this.value, n = v;
|
|
155
|
+
v = void 0;
|
|
153
156
|
try {
|
|
154
157
|
e(t);
|
|
155
158
|
} finally {
|
|
156
|
-
|
|
159
|
+
v = n;
|
|
157
160
|
}
|
|
158
161
|
}, { name: "sub" });
|
|
159
162
|
}, D.prototype.valueOf = function() {
|
|
@@ -163,12 +166,12 @@ D.prototype.brand = ke, D.prototype.h = function() {
|
|
|
163
166
|
}, D.prototype.toJSON = function() {
|
|
164
167
|
return this.value;
|
|
165
168
|
}, D.prototype.peek = function() {
|
|
166
|
-
let e =
|
|
167
|
-
|
|
169
|
+
let e = v;
|
|
170
|
+
v = void 0;
|
|
168
171
|
try {
|
|
169
172
|
return this.value;
|
|
170
173
|
} finally {
|
|
171
|
-
|
|
174
|
+
v = e;
|
|
172
175
|
}
|
|
173
176
|
}, Object.defineProperty(D.prototype, "value", {
|
|
174
177
|
get() {
|
|
@@ -177,12 +180,19 @@ D.prototype.brand = ke, D.prototype.h = function() {
|
|
|
177
180
|
},
|
|
178
181
|
set(e) {
|
|
179
182
|
if (e !== this.v) {
|
|
180
|
-
if (
|
|
181
|
-
|
|
183
|
+
if (C > 100) throw Error("Cycle detected");
|
|
184
|
+
(function(e) {
|
|
185
|
+
S !== 0 && C === 0 && e.l !== w && (e.l = w, x = {
|
|
186
|
+
S: e,
|
|
187
|
+
v: e.v,
|
|
188
|
+
i: e.i,
|
|
189
|
+
o: x
|
|
190
|
+
});
|
|
191
|
+
})(this), this.v = e, this.i++, T++, S++;
|
|
182
192
|
try {
|
|
183
193
|
for (let e = this.t; e !== void 0; e = e.x) e.t.N();
|
|
184
194
|
} finally {
|
|
185
|
-
|
|
195
|
+
g();
|
|
186
196
|
}
|
|
187
197
|
}
|
|
188
198
|
}
|
|
@@ -190,15 +200,15 @@ D.prototype.brand = ke, D.prototype.h = function() {
|
|
|
190
200
|
if (this.f &= -3, 1 & this.f) return !1;
|
|
191
201
|
if ((36 & this.f) == 32 || (this.f &= -5, this.g === T)) return !0;
|
|
192
202
|
if (this.g = T, this.f |= 1, this.i > 0 && !k(this)) return this.f &= -2, !0;
|
|
193
|
-
let e =
|
|
203
|
+
let e = v;
|
|
194
204
|
try {
|
|
195
|
-
A(this),
|
|
205
|
+
A(this), v = this;
|
|
196
206
|
let e = this.x();
|
|
197
207
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
198
208
|
} catch (e) {
|
|
199
209
|
this.v = e, this.f |= 16, this.i++;
|
|
200
210
|
}
|
|
201
|
-
return
|
|
211
|
+
return v = e, j(this), this.f &= -2, !0;
|
|
202
212
|
}, M.prototype.S = function(e) {
|
|
203
213
|
if (this.t === void 0) {
|
|
204
214
|
this.f |= 36;
|
|
@@ -225,24 +235,24 @@ D.prototype.brand = ke, D.prototype.h = function() {
|
|
|
225
235
|
try {
|
|
226
236
|
if (8 & this.f || this.x === void 0) return;
|
|
227
237
|
let e = this.x();
|
|
228
|
-
typeof e == "function" && (this.
|
|
238
|
+
typeof e == "function" && (this.m = e);
|
|
229
239
|
} finally {
|
|
230
240
|
e();
|
|
231
241
|
}
|
|
232
242
|
}, P.prototype.S = function() {
|
|
233
243
|
if (1 & this.f) throw Error("Cycle detected");
|
|
234
|
-
this.f |= 1, this.f &= -9,
|
|
235
|
-
let e =
|
|
236
|
-
return
|
|
244
|
+
this.f |= 1, this.f &= -9, Pe(this), A(this), S++;
|
|
245
|
+
let e = v;
|
|
246
|
+
return v = this, Fe.bind(this, e);
|
|
237
247
|
}, P.prototype.N = function() {
|
|
238
|
-
2 & this.f || (this.f |= 2, this.
|
|
248
|
+
2 & this.f || (this.f |= 2, this.u = y, y = this);
|
|
239
249
|
}, P.prototype.d = function() {
|
|
240
250
|
this.f |= 8, 1 & this.f || N(this);
|
|
241
251
|
}, P.prototype.dispose = function() {
|
|
242
252
|
this.d();
|
|
243
|
-
},
|
|
253
|
+
}, t({
|
|
244
254
|
build: (e, t, n) => I(t),
|
|
245
|
-
config:
|
|
255
|
+
config: m({
|
|
246
256
|
defaultSelection: "rootEnd",
|
|
247
257
|
disabled: !1
|
|
248
258
|
}),
|
|
@@ -257,29 +267,29 @@ D.prototype.brand = ke, D.prototype.h = function() {
|
|
|
257
267
|
}));
|
|
258
268
|
}
|
|
259
269
|
});
|
|
260
|
-
function
|
|
261
|
-
let e =
|
|
262
|
-
e.clear(), e.append(n), t !== null && n.select(),
|
|
270
|
+
function Ie() {
|
|
271
|
+
let e = f(), t = h(), n = de();
|
|
272
|
+
e.clear(), e.append(n), t !== null && n.select(), c(t) && (t.format = 0);
|
|
263
273
|
}
|
|
264
|
-
function
|
|
265
|
-
return e.registerCommand(
|
|
274
|
+
function Le(e, t = Ie) {
|
|
275
|
+
return e.registerCommand(be, (n) => (e.update(t), !0), 0);
|
|
266
276
|
}
|
|
267
|
-
|
|
277
|
+
t({
|
|
268
278
|
build: (e, t, n) => I(t),
|
|
269
|
-
config:
|
|
279
|
+
config: m({ $onClear: Ie }),
|
|
270
280
|
name: "@lexical/extension/ClearEditor",
|
|
271
281
|
register(e, t, n) {
|
|
272
282
|
let { $onClear: r } = n.getOutput();
|
|
273
|
-
return F(() =>
|
|
283
|
+
return F(() => Le(e, r.value));
|
|
274
284
|
}
|
|
275
285
|
});
|
|
276
|
-
function
|
|
286
|
+
function Re(e) {
|
|
277
287
|
return (typeof e.nodes == "function" ? e.nodes() : e.nodes) || [];
|
|
278
288
|
}
|
|
279
|
-
var L =
|
|
289
|
+
var L = e("format", { parse: (e) => typeof e == "number" ? e : 0 }), ze = class extends l {
|
|
280
290
|
$config() {
|
|
281
291
|
return this.config("decorator-text", {
|
|
282
|
-
extends:
|
|
292
|
+
extends: l,
|
|
283
293
|
stateConfigs: [{
|
|
284
294
|
flat: !0,
|
|
285
295
|
stateConfig: L
|
|
@@ -287,20 +297,20 @@ var L = se("format", { parse: (e) => typeof e == "number" ? e : 0 }), Ie = class
|
|
|
287
297
|
});
|
|
288
298
|
}
|
|
289
299
|
getFormat() {
|
|
290
|
-
return
|
|
300
|
+
return le(this, L);
|
|
291
301
|
}
|
|
292
302
|
getFormatFlags(e, t) {
|
|
293
|
-
return
|
|
303
|
+
return Ee(this.getFormat(), e, t);
|
|
294
304
|
}
|
|
295
305
|
hasFormat(e) {
|
|
296
|
-
let t =
|
|
306
|
+
let t = ie[e];
|
|
297
307
|
return (this.getFormat() & t) !== 0;
|
|
298
308
|
}
|
|
299
309
|
setFormat(e) {
|
|
300
|
-
return
|
|
310
|
+
return ve(this, L, e);
|
|
301
311
|
}
|
|
302
312
|
toggleFormat(e) {
|
|
303
|
-
let t =
|
|
313
|
+
let t = Ee(this.getFormat(), e, null);
|
|
304
314
|
return this.setFormat(t);
|
|
305
315
|
}
|
|
306
316
|
isInline() {
|
|
@@ -313,19 +323,19 @@ var L = se("format", { parse: (e) => typeof e == "number" ? e : 0 }), Ie = class
|
|
|
313
323
|
return !1;
|
|
314
324
|
}
|
|
315
325
|
};
|
|
316
|
-
function
|
|
317
|
-
return e instanceof
|
|
326
|
+
function Be(e) {
|
|
327
|
+
return e instanceof ze;
|
|
318
328
|
}
|
|
319
|
-
|
|
329
|
+
t({
|
|
320
330
|
name: "@lexical/extension/DecoratorText",
|
|
321
|
-
nodes: () => [
|
|
322
|
-
register: (e, t, n) => e.registerCommand(
|
|
323
|
-
let t =
|
|
324
|
-
if (
|
|
331
|
+
nodes: () => [ze],
|
|
332
|
+
register: (e, t, n) => e.registerCommand(ae, (e) => {
|
|
333
|
+
let t = h();
|
|
334
|
+
if (u(t) || c(t)) for (let n of t.getNodes()) Be(n) && n.toggleFormat(e);
|
|
325
335
|
return !1;
|
|
326
336
|
}, 1)
|
|
327
337
|
});
|
|
328
|
-
function
|
|
338
|
+
function Ve(e, t) {
|
|
329
339
|
let n;
|
|
330
340
|
return O(e(), {
|
|
331
341
|
unwatched() {
|
|
@@ -336,8 +346,8 @@ function Re(e, t) {
|
|
|
336
346
|
}
|
|
337
347
|
});
|
|
338
348
|
}
|
|
339
|
-
var R =
|
|
340
|
-
build: (e) =>
|
|
349
|
+
var R = t({
|
|
350
|
+
build: (e) => Ve(() => e.getEditorState(), (t) => e.registerUpdateListener((e) => {
|
|
341
351
|
t.value = e.editorState;
|
|
342
352
|
})),
|
|
343
353
|
name: "@lexical/extension/EditorState"
|
|
@@ -348,27 +358,27 @@ function z(e, ...t) {
|
|
|
348
358
|
for (let e of t) r.append("v", e);
|
|
349
359
|
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.`);
|
|
350
360
|
}
|
|
351
|
-
function
|
|
361
|
+
function He(e, t) {
|
|
352
362
|
if (e && t && !Array.isArray(t) && typeof e == "object" && typeof t == "object") {
|
|
353
363
|
let n = e, r = t;
|
|
354
|
-
for (let e in r) n[e] =
|
|
364
|
+
for (let e in r) n[e] = He(n[e], r[e]);
|
|
355
365
|
return e;
|
|
356
366
|
}
|
|
357
367
|
return t;
|
|
358
368
|
}
|
|
359
|
-
var B = 0, V = 1,
|
|
369
|
+
var B = 0, V = 1, Ue = 2, H = 3, U = 4, W = 5, G = 6, K = 7;
|
|
360
370
|
function q(e) {
|
|
361
371
|
return e.id === B;
|
|
362
372
|
}
|
|
363
|
-
function
|
|
364
|
-
return e.id ===
|
|
373
|
+
function We(e) {
|
|
374
|
+
return e.id === Ue;
|
|
365
375
|
}
|
|
366
|
-
function
|
|
376
|
+
function Ge(e) {
|
|
367
377
|
return function(e) {
|
|
368
378
|
return e.id === V;
|
|
369
|
-
}(e) || z(305, String(e.id), String(V)), Object.assign(e, { id:
|
|
379
|
+
}(e) || z(305, String(e.id), String(V)), Object.assign(e, { id: Ue });
|
|
370
380
|
}
|
|
371
|
-
var
|
|
381
|
+
var Ke = /* @__PURE__ */ new Set(), qe = class {
|
|
372
382
|
builder;
|
|
373
383
|
configs;
|
|
374
384
|
_dependency;
|
|
@@ -380,13 +390,13 @@ var Ue = /* @__PURE__ */ new Set(), We = class {
|
|
|
380
390
|
this.builder = e, this.extension = t, this.configs = /* @__PURE__ */ new Set(), this.state = { id: B };
|
|
381
391
|
}
|
|
382
392
|
mergeConfigs() {
|
|
383
|
-
let e = this.extension.config || {}, t = this.extension.mergeConfig ? this.extension.mergeConfig.bind(this.extension) :
|
|
393
|
+
let e = this.extension.config || {}, t = this.extension.mergeConfig ? this.extension.mergeConfig.bind(this.extension) : r;
|
|
384
394
|
for (let n of this.configs) e = t(e, n);
|
|
385
395
|
return e;
|
|
386
396
|
}
|
|
387
397
|
init(e) {
|
|
388
398
|
let t = this.state;
|
|
389
|
-
|
|
399
|
+
We(t) || z(306, String(t.id));
|
|
390
400
|
let n = {
|
|
391
401
|
getDependency: this.getInitDependency.bind(this),
|
|
392
402
|
getDirectDependentNames: this.getDirectDependentNames.bind(this),
|
|
@@ -487,7 +497,7 @@ var Ue = /* @__PURE__ */ new Set(), We = class {
|
|
|
487
497
|
}(e) || z(316, String(e.id), String(K)), e;
|
|
488
498
|
}
|
|
489
499
|
getDirectDependentNames() {
|
|
490
|
-
return this.builder.incomingEdges.get(this.extension.name) ||
|
|
500
|
+
return this.builder.incomingEdges.get(this.extension.name) || Ke;
|
|
491
501
|
}
|
|
492
502
|
getPeerNameSet() {
|
|
493
503
|
let e = this._peerNameSet;
|
|
@@ -506,17 +516,17 @@ var Ue = /* @__PURE__ */ new Set(), We = class {
|
|
|
506
516
|
}
|
|
507
517
|
return this._dependency;
|
|
508
518
|
}
|
|
509
|
-
},
|
|
510
|
-
function
|
|
511
|
-
let e =
|
|
512
|
-
e.isEmpty() && e.append(
|
|
519
|
+
}, Je = { tag: n };
|
|
520
|
+
function Ye() {
|
|
521
|
+
let e = f();
|
|
522
|
+
e.isEmpty() && e.append(de());
|
|
513
523
|
}
|
|
514
|
-
var
|
|
515
|
-
config:
|
|
516
|
-
setOptions:
|
|
517
|
-
updateOptions:
|
|
524
|
+
var Xe = t({
|
|
525
|
+
config: m({
|
|
526
|
+
setOptions: Je,
|
|
527
|
+
updateOptions: Je
|
|
518
528
|
}),
|
|
519
|
-
init: ({ $initialEditorState: e =
|
|
529
|
+
init: ({ $initialEditorState: e = Ye }) => ({
|
|
520
530
|
$initialEditorState: e,
|
|
521
531
|
initialized: !1
|
|
522
532
|
}),
|
|
@@ -525,7 +535,7 @@ var qe = e({
|
|
|
525
535
|
if (!i.initialized) {
|
|
526
536
|
i.initialized = !0;
|
|
527
537
|
let { $initialEditorState: r } = i;
|
|
528
|
-
if (
|
|
538
|
+
if (s(r)) e.setEditorState(r, n);
|
|
529
539
|
else if (typeof r == "function") e.update(() => {
|
|
530
540
|
r(e);
|
|
531
541
|
}, t);
|
|
@@ -538,21 +548,21 @@ var qe = e({
|
|
|
538
548
|
},
|
|
539
549
|
name: "@lexical/extension/InitialState",
|
|
540
550
|
nodes: [
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
551
|
+
Te,
|
|
552
|
+
me,
|
|
553
|
+
xe,
|
|
544
554
|
o,
|
|
545
|
-
|
|
555
|
+
pe
|
|
546
556
|
]
|
|
547
|
-
}),
|
|
548
|
-
function
|
|
549
|
-
function
|
|
557
|
+
}), Ze = Symbol.for("@lexical/extension/LexicalBuilder");
|
|
558
|
+
function Qe() {}
|
|
559
|
+
function $e(e) {
|
|
550
560
|
throw e;
|
|
551
561
|
}
|
|
552
562
|
function J(e) {
|
|
553
563
|
return Array.isArray(e) ? e : [e];
|
|
554
564
|
}
|
|
555
|
-
var Y = "0.
|
|
565
|
+
var Y = "0.43.0+prod.esm", X = class e {
|
|
556
566
|
roots;
|
|
557
567
|
extensionNameMap;
|
|
558
568
|
outgoingConfigEdges;
|
|
@@ -565,12 +575,12 @@ var Y = "0.42.0+prod.esm", X = class e {
|
|
|
565
575
|
for (let t of e) this.addExtension(t);
|
|
566
576
|
}
|
|
567
577
|
static fromExtensions(t) {
|
|
568
|
-
let n = [J(
|
|
578
|
+
let n = [J(Xe)];
|
|
569
579
|
for (let e of t) n.push(J(e));
|
|
570
580
|
return new e(n);
|
|
571
581
|
}
|
|
572
582
|
static maybeFromEditor(t) {
|
|
573
|
-
let n = t[
|
|
583
|
+
let n = t[Ze];
|
|
574
584
|
return n && (n.PACKAGE_VERSION !== Y && z(292, n.PACKAGE_VERSION, Y), n instanceof e || z(293)), n;
|
|
575
585
|
}
|
|
576
586
|
static fromEditor(t) {
|
|
@@ -578,29 +588,29 @@ var Y = "0.42.0+prod.esm", X = class e {
|
|
|
578
588
|
return n === void 0 && z(294), n;
|
|
579
589
|
}
|
|
580
590
|
constructEditor() {
|
|
581
|
-
let { $initialEditorState: e, onError: t, ...n } = this.buildCreateEditorArgs(), r = Object.assign(
|
|
591
|
+
let { $initialEditorState: e, onError: t, ...n } = this.buildCreateEditorArgs(), r = Object.assign(_e({
|
|
582
592
|
...n,
|
|
583
593
|
...t ? { onError: (e) => {
|
|
584
594
|
t(e, r);
|
|
585
595
|
} } : {}
|
|
586
|
-
}), { [
|
|
596
|
+
}), { [Ze]: this });
|
|
587
597
|
for (let e of this.sortedExtensionReps()) e.build(r);
|
|
588
598
|
return r;
|
|
589
599
|
}
|
|
590
600
|
buildEditor() {
|
|
591
|
-
let e =
|
|
601
|
+
let e = Qe;
|
|
592
602
|
function t() {
|
|
593
603
|
try {
|
|
594
604
|
e();
|
|
595
605
|
} finally {
|
|
596
|
-
e =
|
|
606
|
+
e = Qe;
|
|
597
607
|
}
|
|
598
608
|
}
|
|
599
609
|
let n = Object.assign(this.constructEditor(), {
|
|
600
610
|
dispose: t,
|
|
601
611
|
[Symbol.dispose]: t
|
|
602
612
|
});
|
|
603
|
-
return e =
|
|
613
|
+
return e = d(this.registerEditor(n), () => n.setRootElement(null)), n;
|
|
604
614
|
}
|
|
605
615
|
hasExtensionByName(e) {
|
|
606
616
|
return this.extensionNameMap.has(e);
|
|
@@ -621,7 +631,7 @@ var Y = "0.42.0+prod.esm", X = class e {
|
|
|
621
631
|
typeof t.name != "string" && z(297, typeof t.name);
|
|
622
632
|
let n = this.extensionNameMap.get(t.name);
|
|
623
633
|
if (n !== void 0 && n.extension !== t && z(298, t.name), !n) {
|
|
624
|
-
n = new
|
|
634
|
+
n = new qe(this, t), this.extensionNameMap.set(t.name, n);
|
|
625
635
|
let e = this.conflicts.get(t.name);
|
|
626
636
|
typeof e == "string" && z(299, t.name, e);
|
|
627
637
|
for (let e of t.conflictsWith || []) this.extensionNameMap.has(e) && z(299, t.name, e), this.conflicts.set(e, t.name);
|
|
@@ -636,7 +646,7 @@ var Y = "0.42.0+prod.esm", X = class e {
|
|
|
636
646
|
if (this._sortedExtensionReps) return this._sortedExtensionReps;
|
|
637
647
|
let e = [], t = (n, r) => {
|
|
638
648
|
let i = n.state;
|
|
639
|
-
if (
|
|
649
|
+
if (We(i)) return;
|
|
640
650
|
let a = n.extension.name;
|
|
641
651
|
var o;
|
|
642
652
|
q(i) || z(300, a, r || "[unknown]"), q(o = i) || z(304, String(o.id), String(B)), i = Object.assign(o, { id: V }), n.state = i;
|
|
@@ -645,7 +655,7 @@ var Y = "0.42.0+prod.esm", X = class e {
|
|
|
645
655
|
let n = this.extensionNameMap.get(e);
|
|
646
656
|
n && t(n, a);
|
|
647
657
|
}
|
|
648
|
-
i =
|
|
658
|
+
i = Ge(i), n.state = i, e.push(n);
|
|
649
659
|
};
|
|
650
660
|
for (let e of this.extensionNameMap.values()) q(e.state) && t(e);
|
|
651
661
|
for (let t of e) for (let [e, n] of this.outgoingConfigEdges.get(t.extension.name) || []) if (n.length > 0) {
|
|
@@ -660,22 +670,22 @@ var Y = "0.42.0+prod.esm", X = class e {
|
|
|
660
670
|
return this._sortedExtensionReps = e, this._sortedExtensionReps;
|
|
661
671
|
}
|
|
662
672
|
registerEditor(e) {
|
|
663
|
-
let t = this.sortedExtensionReps(), n = new AbortController(),
|
|
673
|
+
let t = this.sortedExtensionReps(), n = new AbortController(), r = [() => n.abort()], i = n.signal;
|
|
664
674
|
for (let n of t) {
|
|
665
|
-
let t = n.register(e,
|
|
666
|
-
t &&
|
|
675
|
+
let t = n.register(e, i);
|
|
676
|
+
t && r.push(t);
|
|
667
677
|
}
|
|
668
678
|
for (let n of t) {
|
|
669
679
|
let t = n.afterRegistration(e);
|
|
670
|
-
t &&
|
|
680
|
+
t && r.push(t);
|
|
671
681
|
}
|
|
672
|
-
return
|
|
682
|
+
return d(...r);
|
|
673
683
|
}
|
|
674
684
|
buildCreateEditorArgs() {
|
|
675
685
|
let e = {}, t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = {}, a = {}, o = this.sortedExtensionReps();
|
|
676
686
|
for (let s of o) {
|
|
677
687
|
let { extension: o } = s;
|
|
678
|
-
if (o.onError !== void 0 && (e.onError = o.onError), o.disableEvents !== void 0 && (e.disableEvents = o.disableEvents), o.parentEditor !== void 0 && (e.parentEditor = o.parentEditor), o.editable !== void 0 && (e.editable = o.editable), o.namespace !== void 0 && (e.namespace = o.namespace), o.$initialEditorState !== void 0 && (e.$initialEditorState = o.$initialEditorState), o.nodes) for (let e of
|
|
688
|
+
if (o.onError !== void 0 && (e.onError = o.onError), o.disableEvents !== void 0 && (e.disableEvents = o.disableEvents), o.parentEditor !== void 0 && (e.parentEditor = o.parentEditor), o.editable !== void 0 && (e.editable = o.editable), o.namespace !== void 0 && (e.namespace = o.namespace), o.$initialEditorState !== void 0 && (e.$initialEditorState = o.$initialEditorState), o.nodes) for (let e of Re(o)) {
|
|
679
689
|
if (typeof e != "function") {
|
|
680
690
|
let t = n.get(e.replace);
|
|
681
691
|
t && z(302, o.name, e.replace.name, t.extension.name), n.set(e.replace, s);
|
|
@@ -686,42 +696,42 @@ var Y = "0.42.0+prod.esm", X = class e {
|
|
|
686
696
|
if (o.html.export) for (let [e, t] of o.html.export.entries()) r.set(e, t);
|
|
687
697
|
o.html.import && Object.assign(i, o.html.import);
|
|
688
698
|
}
|
|
689
|
-
o.theme &&
|
|
699
|
+
o.theme && He(a, o.theme);
|
|
690
700
|
}
|
|
691
701
|
Object.keys(a).length > 0 && (e.theme = a), t.size && (e.nodes = [...t]);
|
|
692
702
|
let s = Object.keys(i).length > 0, c = r.size > 0;
|
|
693
703
|
(s || c) && (e.html = {}, s && (e.html.import = i), c && (e.html.export = r));
|
|
694
704
|
for (let t of o) t.init(e);
|
|
695
|
-
return e.onError ||=
|
|
705
|
+
return e.onError ||= $e, e;
|
|
696
706
|
}
|
|
697
707
|
};
|
|
698
|
-
function
|
|
708
|
+
function et(e, t) {
|
|
699
709
|
let n = X.fromEditor(e).extensionNameMap.get(t);
|
|
700
710
|
return n ? n.getExtensionDependency() : void 0;
|
|
701
711
|
}
|
|
702
|
-
var
|
|
712
|
+
var tt = /* @__PURE__ */ new Set(), nt = t({
|
|
703
713
|
build(e, t, n) {
|
|
704
|
-
let r = n.getDependency(R).output, i = O({ watchedNodeKeys: /* @__PURE__ */ new Map() }), a =
|
|
714
|
+
let r = n.getDependency(R).output, i = O({ watchedNodeKeys: /* @__PURE__ */ new Map() }), a = Ve(() => {}, () => F(() => {
|
|
705
715
|
let e = a.peek(), { watchedNodeKeys: t } = i.value, n, o = !1;
|
|
706
716
|
r.value.read(() => {
|
|
707
|
-
if (
|
|
717
|
+
if (h()) for (let [r, i] of t.entries()) {
|
|
708
718
|
if (i.size === 0) {
|
|
709
719
|
t.delete(r);
|
|
710
720
|
continue;
|
|
711
721
|
}
|
|
712
|
-
let a =
|
|
722
|
+
let a = ce(r), s = a && a.isSelected() || !1;
|
|
713
723
|
o ||= s !== (!!e && e.has(r)), s && (n ||= /* @__PURE__ */ new Set(), n.add(r));
|
|
714
724
|
}
|
|
715
725
|
}), !o && n && e && n.size === e.size || (a.value = n);
|
|
716
726
|
}));
|
|
717
727
|
return { watchNodeKey: function(e) {
|
|
718
|
-
let t =
|
|
728
|
+
let t = Ne(() => (a.value || tt).has(e)), { watchedNodeKeys: n } = i.peek(), r = n.get(e), o = r !== void 0;
|
|
719
729
|
return r ||= /* @__PURE__ */ new Set(), r.add(t), o || (n.set(e, r), i.value = { watchedNodeKeys: n }), t;
|
|
720
730
|
} };
|
|
721
731
|
},
|
|
722
732
|
dependencies: [R],
|
|
723
733
|
name: "@lexical/extension/NodeSelection"
|
|
724
|
-
}),
|
|
734
|
+
}), rt = se("INSERT_HORIZONTAL_RULE_COMMAND"), Z = class e extends l {
|
|
725
735
|
static getType() {
|
|
726
736
|
return "horizontalrule";
|
|
727
737
|
}
|
|
@@ -733,7 +743,7 @@ var Qe = /* @__PURE__ */ new Set(), $e = e({
|
|
|
733
743
|
}
|
|
734
744
|
static importDOM() {
|
|
735
745
|
return { hr: () => ({
|
|
736
|
-
conversion:
|
|
746
|
+
conversion: it,
|
|
737
747
|
priority: 0
|
|
738
748
|
}) };
|
|
739
749
|
}
|
|
@@ -742,7 +752,7 @@ var Qe = /* @__PURE__ */ new Set(), $e = e({
|
|
|
742
752
|
}
|
|
743
753
|
createDOM(e) {
|
|
744
754
|
let t = document.createElement("hr");
|
|
745
|
-
return
|
|
755
|
+
return p(t, e.theme.hr), t;
|
|
746
756
|
}
|
|
747
757
|
getTextContent() {
|
|
748
758
|
return "\n";
|
|
@@ -754,60 +764,60 @@ var Qe = /* @__PURE__ */ new Set(), $e = e({
|
|
|
754
764
|
return !1;
|
|
755
765
|
}
|
|
756
766
|
};
|
|
757
|
-
function
|
|
767
|
+
function it() {
|
|
758
768
|
return { node: Q() };
|
|
759
769
|
}
|
|
760
770
|
function Q() {
|
|
761
|
-
return
|
|
771
|
+
return ne(Z);
|
|
762
772
|
}
|
|
763
|
-
function
|
|
773
|
+
function at(e) {
|
|
764
774
|
return e instanceof Z;
|
|
765
775
|
}
|
|
766
|
-
|
|
767
|
-
dependencies: [R,
|
|
776
|
+
t({
|
|
777
|
+
dependencies: [R, nt],
|
|
768
778
|
name: "@lexical/extension/HorizontalRule",
|
|
769
779
|
nodes: () => [Z],
|
|
770
|
-
register(e,
|
|
771
|
-
let { watchNodeKey:
|
|
772
|
-
return
|
|
773
|
-
let t =
|
|
774
|
-
return
|
|
775
|
-
}, 0), e.registerCommand(
|
|
776
|
-
if (
|
|
777
|
-
let
|
|
778
|
-
if (
|
|
779
|
-
let
|
|
780
|
-
|
|
781
|
-
}(
|
|
780
|
+
register(e, t, n) {
|
|
781
|
+
let { watchNodeKey: r } = n.getDependency(nt).output, i = O({ nodeSelections: /* @__PURE__ */ new Map() }), o = e._config.theme.hrSelected ?? "selected";
|
|
782
|
+
return d(e.registerCommand(rt, (e) => {
|
|
783
|
+
let t = h();
|
|
784
|
+
return c(t) ? (t.focus.getNode() !== null && Ae(Q()), !0) : !1;
|
|
785
|
+
}, 0), e.registerCommand(fe, (e) => {
|
|
786
|
+
if (ee(e.target)) {
|
|
787
|
+
let t = Ce(e.target);
|
|
788
|
+
if (at(t)) return function(e, t = !1) {
|
|
789
|
+
let n = h(), r = e.isSelected(), i = e.getKey(), o;
|
|
790
|
+
t && u(n) ? o = n : (o = a(), Se(o)), r ? o.delete(i) : o.add(i);
|
|
791
|
+
}(t, e.shiftKey), !0;
|
|
782
792
|
}
|
|
783
793
|
return !1;
|
|
784
794
|
}, 1), e.registerMutationListener(Z, (t, n) => {
|
|
785
|
-
|
|
786
|
-
let n = !1, { nodeSelections:
|
|
787
|
-
for (let [i, o] of t.entries()) if (o === "destroyed")
|
|
795
|
+
_(() => {
|
|
796
|
+
let n = !1, { nodeSelections: a } = i.peek();
|
|
797
|
+
for (let [i, o] of t.entries()) if (o === "destroyed") a.delete(i), n = !0;
|
|
788
798
|
else {
|
|
789
|
-
let t =
|
|
790
|
-
t ? t.domNode.value = o : (n = !0,
|
|
799
|
+
let t = a.get(i), o = e.getElementByKey(i);
|
|
800
|
+
t ? t.domNode.value = o : (n = !0, a.set(i, {
|
|
791
801
|
domNode: O(o),
|
|
792
|
-
selectedSignal:
|
|
802
|
+
selectedSignal: r(i)
|
|
793
803
|
}));
|
|
794
804
|
}
|
|
795
|
-
n && (
|
|
805
|
+
n && (i.value = { nodeSelections: a });
|
|
796
806
|
});
|
|
797
807
|
}), F(() => {
|
|
798
808
|
let e = [];
|
|
799
|
-
for (let { domNode: t, selectedSignal: n } of
|
|
809
|
+
for (let { domNode: t, selectedSignal: n } of i.value.nodeSelections.values()) e.push(F(() => {
|
|
800
810
|
let e = t.value;
|
|
801
|
-
e && (n.value ?
|
|
811
|
+
e && (n.value ? p(e, o) : te(e, o));
|
|
802
812
|
}));
|
|
803
|
-
return
|
|
813
|
+
return d(...e);
|
|
804
814
|
}));
|
|
805
815
|
}
|
|
806
|
-
}),
|
|
816
|
+
}), t({
|
|
807
817
|
build: (e, t) => I({ inheritEditableFromParent: t.inheritEditableFromParent }),
|
|
808
|
-
config:
|
|
818
|
+
config: m({
|
|
809
819
|
$getParentEditor: function() {
|
|
810
|
-
let e =
|
|
820
|
+
let e = ye();
|
|
811
821
|
return X.fromEditor(e), e;
|
|
812
822
|
},
|
|
813
823
|
inheritEditableFromParent: !1
|
|
@@ -821,9 +831,9 @@ e({
|
|
|
821
831
|
let t = e._parentEditor;
|
|
822
832
|
if (t && n.getOutput().inheritEditableFromParent.value) return e.setEditable(t.isEditable()), t.registerEditableListener(e.setEditable.bind(e));
|
|
823
833
|
})
|
|
824
|
-
}),
|
|
834
|
+
}), t({
|
|
825
835
|
build: (e, t, n) => I(t),
|
|
826
|
-
config:
|
|
836
|
+
config: m({
|
|
827
837
|
disabled: !1,
|
|
828
838
|
onReposition: void 0
|
|
829
839
|
}),
|
|
@@ -831,43 +841,43 @@ e({
|
|
|
831
841
|
register: (e, t, n) => {
|
|
832
842
|
let r = n.getOutput();
|
|
833
843
|
return F(() => {
|
|
834
|
-
if (!r.disabled.value) return
|
|
844
|
+
if (!r.disabled.value) return De(e, r.onReposition.value);
|
|
835
845
|
});
|
|
836
846
|
}
|
|
837
847
|
});
|
|
838
848
|
function $(e) {
|
|
839
849
|
return e.canBeEmpty();
|
|
840
850
|
}
|
|
841
|
-
function
|
|
842
|
-
return
|
|
843
|
-
let
|
|
844
|
-
if (!
|
|
851
|
+
function ot(e, t, n = $) {
|
|
852
|
+
return d(e.registerCommand(ge, (t) => {
|
|
853
|
+
let n = h();
|
|
854
|
+
if (!c(n)) return !1;
|
|
845
855
|
t.preventDefault();
|
|
846
|
-
let
|
|
847
|
-
if (e.getNodes().filter((e) =>
|
|
848
|
-
let t = e.anchor, n = e.focus, r = n.isBefore(t) ? n : t, i =
|
|
856
|
+
let r = function(e) {
|
|
857
|
+
if (e.getNodes().filter((e) => he(e) && e.canIndent()).length > 0) return !0;
|
|
858
|
+
let t = e.anchor, n = e.focus, r = n.isBefore(t) ? n : t, i = Oe(r.getNode());
|
|
849
859
|
if (i.canIndent()) {
|
|
850
|
-
let e = i.getKey(), t =
|
|
851
|
-
if (t.anchor.set(e, 0, "element"), t.focus.set(e, 0, "element"), t =
|
|
860
|
+
let e = i.getKey(), t = re();
|
|
861
|
+
if (t.anchor.set(e, 0, "element"), t.focus.set(e, 0, "element"), t = oe(t), t.anchor.is(r)) return !0;
|
|
852
862
|
}
|
|
853
863
|
return !1;
|
|
854
|
-
}(
|
|
855
|
-
return e.dispatchCommand(
|
|
856
|
-
}, 0), e.registerCommand(
|
|
864
|
+
}(n) ? t.shiftKey ? ue : i : we;
|
|
865
|
+
return e.dispatchCommand(r, void 0);
|
|
866
|
+
}, 0), e.registerCommand(i, () => {
|
|
857
867
|
let e = typeof t == "number" ? t : t ? t.peek() : null;
|
|
858
|
-
if (!
|
|
859
|
-
let
|
|
860
|
-
return
|
|
861
|
-
if (
|
|
868
|
+
if (!c(h())) return !1;
|
|
869
|
+
let r = typeof n == "function" ? n : n.peek();
|
|
870
|
+
return ke((t) => {
|
|
871
|
+
if (r(t)) {
|
|
862
872
|
let n = t.getIndent() + 1;
|
|
863
873
|
(!e || n < e) && t.setIndent(n);
|
|
864
874
|
}
|
|
865
875
|
});
|
|
866
876
|
}, 4));
|
|
867
877
|
}
|
|
868
|
-
|
|
878
|
+
t({
|
|
869
879
|
build: (e, t, n) => I(t),
|
|
870
|
-
config:
|
|
880
|
+
config: m({
|
|
871
881
|
$canIndent: $,
|
|
872
882
|
disabled: !1,
|
|
873
883
|
maxIndent: null
|
|
@@ -876,11 +886,11 @@ e({
|
|
|
876
886
|
register(e, t, n) {
|
|
877
887
|
let { disabled: r, maxIndent: i, $canIndent: a } = n.getOutput();
|
|
878
888
|
return F(() => {
|
|
879
|
-
if (!r.value) return
|
|
889
|
+
if (!r.value) return ot(e, i, a);
|
|
880
890
|
});
|
|
881
891
|
}
|
|
882
892
|
});
|
|
883
893
|
//#endregion
|
|
884
|
-
export {
|
|
894
|
+
export { O as a, et as i, _ as n, F as o, X as r, I as t };
|
|
885
895
|
|
|
886
|
-
//# sourceMappingURL=LexicalExtension.prod-
|
|
896
|
+
//# sourceMappingURL=LexicalExtension.prod-jTSDl1mh.js.map
|