@notectl/core 2.0.0 → 2.0.2
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/README.md +12 -10
- package/dist/chunks/{AttrRegistry-B2AGfTE0.mjs → AttrRegistry-iNpjvcSG.mjs} +2 -2
- package/dist/chunks/{AttrRegistry-B2AGfTE0.mjs.map → AttrRegistry-iNpjvcSG.mjs.map} +1 -1
- package/dist/chunks/AttributedMarkCommands-BY1BSYWM.mjs +2 -0
- package/dist/chunks/AttributedMarkCommands-BY1BSYWM.mjs.map +1 -0
- package/dist/chunks/BlockInsertion-BJFhE0jA.mjs +2 -0
- package/dist/chunks/BlockInsertion-BJFhE0jA.mjs.map +1 -0
- package/dist/chunks/{ColorPickerPopup-DRzFvt7o.mjs → ColorPickerPopup-D6XjShhv.mjs} +2 -2
- package/dist/chunks/ColorPickerPopup-D6XjShhv.mjs.map +1 -0
- package/dist/chunks/CommandHelpers-M6mPS6Ww.mjs +2 -0
- package/dist/chunks/CommandHelpers-M6mPS6Ww.mjs.map +1 -0
- package/dist/chunks/Commands-D_gMCnVa.mjs +2 -0
- package/dist/chunks/Commands-D_gMCnVa.mjs.map +1 -0
- package/dist/chunks/Document-3pNX7ear.mjs +2 -0
- package/dist/chunks/Document-3pNX7ear.mjs.map +1 -0
- package/dist/chunks/DocumentParser-LvzDQOd1.mjs +2 -0
- package/dist/chunks/DocumentParser-LvzDQOd1.mjs.map +1 -0
- package/dist/chunks/DomUtils-CznMAZZg.mjs +2 -0
- package/dist/chunks/DomUtils-CznMAZZg.mjs.map +1 -0
- package/dist/chunks/HTMLUtils-Cxy99Ak2.mjs +2 -0
- package/dist/chunks/HTMLUtils-Cxy99Ak2.mjs.map +1 -0
- package/dist/chunks/HeadingPlugin-BmkeUXj8.mjs +2 -0
- package/dist/chunks/HeadingPlugin-BmkeUXj8.mjs.map +1 -0
- package/dist/chunks/MarkCommands-CeCa4WSC.mjs +2 -0
- package/dist/chunks/MarkCommands-CeCa4WSC.mjs.map +1 -0
- package/dist/chunks/NavigationQueries-11qe4j9x.mjs +2 -0
- package/dist/chunks/NavigationQueries-11qe4j9x.mjs.map +1 -0
- package/dist/chunks/NodeResolver-z0ReCR34.mjs +2 -0
- package/dist/chunks/NodeResolver-z0ReCR34.mjs.map +1 -0
- package/dist/chunks/NodeSelectionCommands-CXrOcPtG.mjs +2 -0
- package/dist/chunks/NodeSelectionCommands-CXrOcPtG.mjs.map +1 -0
- package/dist/chunks/NotectlEditor-BJD7-FFx.mjs +4 -0
- package/dist/chunks/NotectlEditor-BJD7-FFx.mjs.map +1 -0
- package/dist/chunks/PluginHelpers-CdPR0MuT.mjs +2 -0
- package/dist/chunks/PluginHelpers-CdPR0MuT.mjs.map +1 -0
- package/dist/chunks/PopupManager-0b_Q0m7K.mjs +2 -0
- package/dist/chunks/PopupManager-0b_Q0m7K.mjs.map +1 -0
- package/dist/chunks/PrintTypes-DukwDSWS.mjs +2 -0
- package/dist/chunks/{PrintTypes-ehbL7ipA.mjs.map → PrintTypes-DukwDSWS.mjs.map} +1 -1
- package/dist/chunks/{RangeIterator-CNI6smOg.mjs → RangeIterator-XFN5FaYf.mjs} +2 -2
- package/dist/chunks/{RangeIterator-CNI6smOg.mjs.map → RangeIterator-XFN5FaYf.mjs.map} +1 -1
- package/dist/chunks/{Selection-6-W6Flxc.mjs → Selection-DhbizDM4.mjs} +2 -2
- package/dist/chunks/{Selection-6-W6Flxc.mjs.map → Selection-DhbizDM4.mjs.map} +1 -1
- package/dist/chunks/SelectionTransactions-DzIZxcuN.mjs +2 -0
- package/dist/chunks/{SelectionTransactions-q71GEzgE.mjs.map → SelectionTransactions-DzIZxcuN.mjs.map} +1 -1
- package/dist/chunks/{TextDirectionLocale-DB_aqrMg.mjs → TextDirectionLocale-CKz0ZrH_.mjs} +2 -2
- package/dist/chunks/{TextDirectionLocale-DB_aqrMg.mjs.map → TextDirectionLocale-CKz0ZrH_.mjs.map} +1 -1
- package/dist/chunks/XmlPatterns-DxQXGjP8.mjs +2 -0
- package/dist/chunks/XmlPatterns-DxQXGjP8.mjs.map +1 -0
- package/dist/chunks/ar-b6VdnxAs.mjs +2 -0
- package/dist/chunks/ar-b6VdnxAs.mjs.map +1 -0
- package/dist/chunks/de-fXvs5vQT.mjs +2 -0
- package/dist/chunks/de-fXvs5vQT.mjs.map +1 -0
- package/dist/chunks/es-BTqy_aQ4.mjs +2 -0
- package/dist/chunks/es-BTqy_aQ4.mjs.map +1 -0
- package/dist/chunks/fr-VdiCNF4J.mjs +2 -0
- package/dist/chunks/fr-VdiCNF4J.mjs.map +1 -0
- package/dist/chunks/hi-BdtVhAzs.mjs +2 -0
- package/dist/chunks/hi-BdtVhAzs.mjs.map +1 -0
- package/dist/chunks/index-C-L4awHz.mjs +2 -0
- package/dist/chunks/index-C-L4awHz.mjs.map +1 -0
- package/dist/chunks/index-Cs9iqxhF.mjs +2 -0
- package/dist/chunks/index-Cs9iqxhF.mjs.map +1 -0
- package/dist/chunks/pt-K0BUlM9X.mjs +2 -0
- package/dist/chunks/pt-K0BUlM9X.mjs.map +1 -0
- package/dist/chunks/ru-Tzd5N37W.mjs +2 -0
- package/dist/chunks/ru-Tzd5N37W.mjs.map +1 -0
- package/dist/chunks/zh-Di3WqY4_.mjs +2 -0
- package/dist/chunks/zh-Di3WqY4_.mjs.map +1 -0
- package/dist/{input → commands}/BlockInsertion.d.ts +14 -1
- package/dist/commands/BlockInsertion.d.ts.map +1 -0
- package/dist/commands/CommandHelpers.d.ts +17 -2
- package/dist/commands/CommandHelpers.d.ts.map +1 -1
- package/dist/commands/Commands.d.ts.map +1 -1
- package/dist/commands/GapCursorCommands.d.ts.map +1 -1
- package/dist/commands/NodeSelectionCommands.d.ts +3 -8
- package/dist/commands/NodeSelectionCommands.d.ts.map +1 -1
- package/dist/commands/PasteCommand.d.ts.map +1 -1
- package/dist/editor/ContentSerializer.d.ts.map +1 -1
- package/dist/editor/EditorConfig.d.ts +50 -0
- package/dist/editor/EditorConfig.d.ts.map +1 -0
- package/dist/editor/EditorConfigController.d.ts +1 -1
- package/dist/editor/EditorConfigController.d.ts.map +1 -1
- package/dist/editor/EditorDOM.d.ts.map +1 -1
- package/dist/editor/EditorInitializer.d.ts +37 -0
- package/dist/editor/EditorInitializer.d.ts.map +1 -0
- package/dist/editor/EditorLifecycleCoordinator.d.ts +6 -1
- package/dist/editor/EditorLifecycleCoordinator.d.ts.map +1 -1
- package/dist/editor/EditorThemeController.d.ts.map +1 -1
- package/dist/editor/NotectlEditor.d.ts +13 -51
- package/dist/editor/NotectlEditor.d.ts.map +1 -1
- package/dist/editor/PluginBootstrapper.d.ts +1 -1
- package/dist/editor/PluginBootstrapper.d.ts.map +1 -1
- package/dist/editor/styles/code-block.d.ts +1 -1
- package/dist/editor/styles/code-block.d.ts.map +1 -1
- package/dist/editor/theme/ThemeEngine.d.ts.map +1 -1
- package/dist/editor/theme/ThemeTokens.d.ts +17 -1
- package/dist/editor/theme/ThemeTokens.d.ts.map +1 -1
- package/dist/full.d.ts +1 -0
- package/dist/full.d.ts.map +1 -1
- package/dist/full.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/input/ClipboardHandler.d.ts +5 -0
- package/dist/input/ClipboardHandler.d.ts.map +1 -1
- package/dist/input/HTMLParser.d.ts +9 -5
- package/dist/input/HTMLParser.d.ts.map +1 -1
- package/dist/input/InputHandler.d.ts +1 -0
- package/dist/input/InputHandler.d.ts.map +1 -1
- package/dist/input/InputManager.d.ts +2 -0
- package/dist/input/InputManager.d.ts.map +1 -1
- package/dist/input/InternalClipboard.d.ts +2 -22
- package/dist/input/InternalClipboard.d.ts.map +1 -1
- package/dist/input/PasteHTMLHandler.d.ts +25 -0
- package/dist/input/PasteHTMLHandler.d.ts.map +1 -0
- package/dist/input/PasteHandler.d.ts +7 -25
- package/dist/input/PasteHandler.d.ts.map +1 -1
- package/dist/input/PasteRichBlockHandler.d.ts +23 -0
- package/dist/input/PasteRichBlockHandler.d.ts.map +1 -0
- package/dist/input/SelectionDocument.d.ts +10 -0
- package/dist/input/SelectionDocument.d.ts.map +1 -0
- package/dist/model/Document.d.ts.map +1 -1
- package/dist/model/HTMLUtils.d.ts +2 -0
- package/dist/model/HTMLUtils.d.ts.map +1 -1
- package/dist/model/PasteInterceptor.d.ts +21 -0
- package/dist/model/PasteInterceptor.d.ts.map +1 -0
- package/dist/model/RichBlockData.d.ts +34 -0
- package/dist/model/RichBlockData.d.ts.map +1 -0
- package/dist/model/SchemaRegistry.d.ts +2 -0
- package/dist/model/SchemaRegistry.d.ts.map +1 -1
- package/dist/notectl-core.mjs +1 -1
- package/dist/notectl-core.umd.js +1 -1
- package/dist/notectl-core.umd.js.map +1 -1
- package/dist/plugins/Plugin.d.ts +3 -0
- package/dist/plugins/Plugin.d.ts.map +1 -1
- package/dist/plugins/PluginContextFactory.d.ts +73 -0
- package/dist/plugins/PluginContextFactory.d.ts.map +1 -0
- package/dist/plugins/PluginManager.d.ts +12 -0
- package/dist/plugins/PluginManager.d.ts.map +1 -1
- package/dist/plugins/alignment/AlignmentPlugin.d.ts.map +1 -1
- package/dist/plugins/alignment.mjs +1 -1
- package/dist/plugins/alignment.mjs.map +1 -1
- package/dist/plugins/blockquote/BlockquoteKeyboardHandlers.d.ts.map +1 -1
- package/dist/plugins/blockquote/BlockquotePlugin.d.ts.map +1 -1
- package/dist/plugins/blockquote.mjs +1 -1
- package/dist/plugins/blockquote.mjs.map +1 -1
- package/dist/plugins/caret-navigation/CaretNavigationPlugin.d.ts.map +1 -1
- package/dist/plugins/caret-navigation.mjs +1 -1
- package/dist/plugins/code-block/CodeBlockKeyboardHandlers.d.ts.map +1 -1
- package/dist/plugins/code-block/CodeBlockPlugin.d.ts +5 -0
- package/dist/plugins/code-block/CodeBlockPlugin.d.ts.map +1 -1
- package/dist/plugins/code-block/CodeBlockTypes.d.ts +7 -0
- package/dist/plugins/code-block/CodeBlockTypes.d.ts.map +1 -1
- package/dist/plugins/code-block/highlighter/RegexTokenizer.d.ts +14 -0
- package/dist/plugins/code-block/highlighter/RegexTokenizer.d.ts.map +1 -0
- package/dist/plugins/code-block/highlighter/TokenizerTypes.d.ts +15 -0
- package/dist/plugins/code-block/highlighter/TokenizerTypes.d.ts.map +1 -0
- package/dist/plugins/code-block/highlighter/languages/index.d.ts +3 -0
- package/dist/plugins/code-block/highlighter/languages/index.d.ts.map +1 -0
- package/dist/plugins/code-block/highlighter/languages/json.d.ts +3 -0
- package/dist/plugins/code-block/highlighter/languages/json.d.ts.map +1 -0
- package/dist/plugins/code-block/highlighter/languages/xml.d.ts +3 -0
- package/dist/plugins/code-block/highlighter/languages/xml.d.ts.map +1 -0
- package/dist/plugins/code-block/index.d.ts +5 -1
- package/dist/plugins/code-block/index.d.ts.map +1 -1
- package/dist/plugins/code-block.mjs +1 -1
- package/dist/plugins/code-block.mjs.map +1 -1
- package/dist/plugins/font/FontPlugin.d.ts.map +1 -1
- package/dist/plugins/font-size/FontSizePlugin.d.ts.map +1 -1
- package/dist/plugins/font-size.mjs +1 -1
- package/dist/plugins/font-size.mjs.map +1 -1
- package/dist/plugins/font.mjs +1 -1
- package/dist/plugins/font.mjs.map +1 -1
- package/dist/plugins/gap-cursor/GapCursorPlugin.d.ts.map +1 -1
- package/dist/plugins/gap-cursor.mjs +1 -1
- package/dist/plugins/hard-break.mjs +1 -1
- package/dist/plugins/heading/HeadingInputRules.d.ts.map +1 -1
- package/dist/plugins/heading/HeadingKeyboardHandlers.d.ts.map +1 -1
- package/dist/plugins/heading/HeadingPlugin.d.ts.map +1 -1
- package/dist/plugins/heading.mjs +1 -1
- package/dist/plugins/highlight/HighlightPlugin.d.ts.map +1 -1
- package/dist/plugins/highlight.mjs +1 -1
- package/dist/plugins/highlight.mjs.map +1 -1
- package/dist/plugins/horizontal-rule/HorizontalRulePlugin.d.ts.map +1 -1
- package/dist/plugins/horizontal-rule.mjs +1 -1
- package/dist/plugins/horizontal-rule.mjs.map +1 -1
- package/dist/plugins/image/ImageCommands.d.ts.map +1 -1
- package/dist/plugins/image/ImagePlugin.d.ts +0 -1
- package/dist/plugins/image/ImagePlugin.d.ts.map +1 -1
- package/dist/plugins/image/ImagePopup.d.ts +11 -0
- package/dist/plugins/image/ImagePopup.d.ts.map +1 -0
- package/dist/plugins/image.mjs +1 -1
- package/dist/plugins/image.mjs.map +1 -1
- package/dist/plugins/link/LinkPlugin.d.ts.map +1 -1
- package/dist/plugins/link.mjs +1 -1
- package/dist/plugins/link.mjs.map +1 -1
- package/dist/plugins/list/ListPlugin.d.ts.map +1 -1
- package/dist/plugins/list.mjs +1 -1
- package/dist/plugins/list.mjs.map +1 -1
- package/dist/plugins/print/PrintPlugin.d.ts.map +1 -1
- package/dist/plugins/print.mjs +1 -1
- package/dist/plugins/print.mjs.map +1 -1
- package/dist/plugins/shared/ColorMarkOperations.d.ts +1 -2
- package/dist/plugins/shared/ColorMarkOperations.d.ts.map +1 -1
- package/dist/plugins/shared/ColorPickerPopup.d.ts +1 -8
- package/dist/plugins/shared/ColorPickerPopup.d.ts.map +1 -1
- package/dist/plugins/shared/PluginHelpers.d.ts +8 -0
- package/dist/plugins/shared/PluginHelpers.d.ts.map +1 -1
- package/dist/plugins/shared/PopupManager.d.ts.map +1 -1
- package/dist/plugins/shared/XmlPatterns.d.ts +10 -0
- package/dist/plugins/shared/XmlPatterns.d.ts.map +1 -0
- package/dist/plugins/shared/index.d.ts +1 -0
- package/dist/plugins/shared/index.d.ts.map +1 -1
- package/dist/plugins/shared.mjs +1 -1
- package/dist/plugins/shared.mjs.map +1 -1
- package/dist/plugins/smart-paste/SmartPasteLocale.d.ts +7 -0
- package/dist/plugins/smart-paste/SmartPasteLocale.d.ts.map +1 -0
- package/dist/plugins/smart-paste/SmartPastePlugin.d.ts +19 -0
- package/dist/plugins/smart-paste/SmartPastePlugin.d.ts.map +1 -0
- package/dist/plugins/smart-paste/SmartPasteTypes.d.ts +24 -0
- package/dist/plugins/smart-paste/SmartPasteTypes.d.ts.map +1 -0
- package/dist/plugins/smart-paste/detectors/JsonDetector.d.ts +6 -0
- package/dist/plugins/smart-paste/detectors/JsonDetector.d.ts.map +1 -0
- package/dist/plugins/smart-paste/detectors/XmlDetector.d.ts +26 -0
- package/dist/plugins/smart-paste/detectors/XmlDetector.d.ts.map +1 -0
- package/dist/plugins/smart-paste/index.d.ts +7 -0
- package/dist/plugins/smart-paste/index.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/ar.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/ar.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/de.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/de.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/es.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/es.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/fr.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/fr.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/hi.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/hi.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/pt.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/pt.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/ru.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/ru.d.ts.map +1 -0
- package/dist/plugins/smart-paste/locales/zh.d.ts +4 -0
- package/dist/plugins/smart-paste/locales/zh.d.ts.map +1 -0
- package/dist/plugins/smart-paste.mjs +2 -0
- package/dist/plugins/smart-paste.mjs.map +1 -0
- package/dist/plugins/strikethrough/StrikethroughPlugin.d.ts.map +1 -1
- package/dist/plugins/strikethrough.mjs +1 -1
- package/dist/plugins/strikethrough.mjs.map +1 -1
- package/dist/plugins/super-sub/SuperSubPlugin.d.ts.map +1 -1
- package/dist/plugins/super-sub.mjs +1 -1
- package/dist/plugins/super-sub.mjs.map +1 -1
- package/dist/plugins/table/TableCommands.d.ts +1 -0
- package/dist/plugins/table/TableCommands.d.ts.map +1 -1
- package/dist/plugins/table/TableContextMenu.d.ts.map +1 -1
- package/dist/plugins/table/TableNavigation.d.ts.map +1 -1
- package/dist/plugins/table/TablePlugin.d.ts.map +1 -1
- package/dist/plugins/table/TableSelection.d.ts.map +1 -1
- package/dist/plugins/table/index.d.ts +1 -0
- package/dist/plugins/table/index.d.ts.map +1 -1
- package/dist/plugins/table.mjs +1 -1
- package/dist/plugins/table.mjs.map +1 -1
- package/dist/plugins/text-color/TextColorPlugin.d.ts.map +1 -1
- package/dist/plugins/text-color.mjs +1 -1
- package/dist/plugins/text-color.mjs.map +1 -1
- package/dist/plugins/text-direction/TextDirectionCorePlugin.d.ts.map +1 -1
- package/dist/plugins/text-direction/TextDirectionPlugin.d.ts.map +1 -1
- package/dist/plugins/text-direction-advanced.mjs +1 -1
- package/dist/plugins/text-direction-advanced.mjs.map +1 -1
- package/dist/plugins/text-direction.mjs +1 -1
- package/dist/plugins/text-direction.mjs.map +1 -1
- package/dist/plugins/text-formatting/TextFormattingPlugin.d.ts.map +1 -1
- package/dist/plugins/text-formatting.mjs +1 -1
- package/dist/plugins/text-formatting.mjs.map +1 -1
- package/dist/plugins/toolbar/ToolbarOverflowController.d.ts +2 -0
- package/dist/plugins/toolbar/ToolbarOverflowController.d.ts.map +1 -1
- package/dist/plugins/toolbar/ToolbarPlugin.d.ts.map +1 -1
- package/dist/plugins/toolbar.mjs +1 -1
- package/dist/plugins/toolbar.mjs.map +1 -1
- package/dist/presets/FullPreset.d.ts.map +1 -1
- package/dist/presets/PresetTypes.d.ts +2 -0
- package/dist/presets/PresetTypes.d.ts.map +1 -1
- package/dist/presets/full.mjs +1 -1
- package/dist/presets/full.mjs.map +1 -1
- package/dist/serialization/DocumentSerializer.d.ts.map +1 -1
- package/dist/state/InlineContentOps.d.ts.map +1 -1
- package/dist/state/StepInversion.d.ts +7 -0
- package/dist/state/StepInversion.d.ts.map +1 -0
- package/dist/state/Steps.d.ts +108 -0
- package/dist/state/Steps.d.ts.map +1 -0
- package/dist/state/Transaction.d.ts +5 -174
- package/dist/state/Transaction.d.ts.map +1 -1
- package/dist/state/TransactionBuilder.d.ts +69 -0
- package/dist/state/TransactionBuilder.d.ts.map +1 -0
- package/dist/test/TestUtils.d.ts.map +1 -1
- package/dist/view/CaretNavigation.d.ts.map +1 -1
- package/dist/view/DomUtils.d.ts +10 -1
- package/dist/view/DomUtils.d.ts.map +1 -1
- package/dist/view/EditorView.d.ts +10 -60
- package/dist/view/EditorView.d.ts.map +1 -1
- package/dist/view/EditorViewEvents.d.ts +54 -0
- package/dist/view/EditorViewEvents.d.ts.map +1 -0
- package/dist/view/EditorViewNavigation.d.ts +47 -0
- package/dist/view/EditorViewNavigation.d.ts.map +1 -0
- package/dist/view/SelectionSync.d.ts.map +1 -1
- package/dist/view/ViewMovementCommands.d.ts.map +1 -1
- package/package.json +12 -2
- package/dist/chunks/AttributedMarkCommands-BB7lzFct.mjs +0 -2
- package/dist/chunks/AttributedMarkCommands-BB7lzFct.mjs.map +0 -1
- package/dist/chunks/ColorPickerPopup-DRzFvt7o.mjs.map +0 -1
- package/dist/chunks/Commands-P9wS8qtN.mjs +0 -2
- package/dist/chunks/Commands-P9wS8qtN.mjs.map +0 -1
- package/dist/chunks/Document-BFYAonMF.mjs +0 -2
- package/dist/chunks/Document-BFYAonMF.mjs.map +0 -1
- package/dist/chunks/DocumentParser-DFcvVMGY.mjs +0 -2
- package/dist/chunks/DocumentParser-DFcvVMGY.mjs.map +0 -1
- package/dist/chunks/DomUtils-Cdz1eDKM.mjs +0 -2
- package/dist/chunks/DomUtils-Cdz1eDKM.mjs.map +0 -1
- package/dist/chunks/HTMLUtils-CCvQ5f83.mjs +0 -2
- package/dist/chunks/HTMLUtils-CCvQ5f83.mjs.map +0 -1
- package/dist/chunks/HeadingPlugin-DYy3IoT_.mjs +0 -2
- package/dist/chunks/HeadingPlugin-DYy3IoT_.mjs.map +0 -1
- package/dist/chunks/LocaleService-B6Z-wyAF.mjs +0 -2
- package/dist/chunks/LocaleService-B6Z-wyAF.mjs.map +0 -1
- package/dist/chunks/MarkCommands-B_erV7zz.mjs +0 -2
- package/dist/chunks/MarkCommands-B_erV7zz.mjs.map +0 -1
- package/dist/chunks/NavigationQueries-ogQuObz7.mjs +0 -2
- package/dist/chunks/NavigationQueries-ogQuObz7.mjs.map +0 -1
- package/dist/chunks/NotectlEditor-4NFnXLyD.mjs +0 -2
- package/dist/chunks/NotectlEditor-4NFnXLyD.mjs.map +0 -1
- package/dist/chunks/Plugin-OzM8Oxm_.mjs +0 -2
- package/dist/chunks/Plugin-OzM8Oxm_.mjs.map +0 -1
- package/dist/chunks/PluginHelpers-DjZt0pQi.mjs +0 -2
- package/dist/chunks/PluginHelpers-DjZt0pQi.mjs.map +0 -1
- package/dist/chunks/PopupManager-BM8IT6M7.mjs +0 -2
- package/dist/chunks/PopupManager-BM8IT6M7.mjs.map +0 -1
- package/dist/chunks/PrintTypes-ehbL7ipA.mjs +0 -2
- package/dist/chunks/SelectionTransactions-q71GEzgE.mjs +0 -2
- package/dist/chunks/index-C8xtb3SM.mjs +0 -2
- package/dist/chunks/index-C8xtb3SM.mjs.map +0 -1
- package/dist/chunks/index-DAoSt12h.mjs +0 -2
- package/dist/chunks/index-DAoSt12h.mjs.map +0 -1
- package/dist/input/BlockInsertion.d.ts.map +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SchemaRegistry } from '../model/SchemaRegistry.js';
|
|
2
|
+
import { DispatchFn, GetStateFn } from './InputHandler.js';
|
|
3
|
+
export declare class PasteHTMLHandler {
|
|
4
|
+
private readonly getState;
|
|
5
|
+
private readonly dispatch;
|
|
6
|
+
private readonly schemaRegistry;
|
|
7
|
+
private readonly tryRichPasteFromJson;
|
|
8
|
+
constructor(getState: GetStateFn, dispatch: DispatchFn, schemaRegistry: SchemaRegistry | undefined, tryRichPasteFromJson: (json: string) => boolean);
|
|
9
|
+
/** Handles HTML or plain text paste from system clipboard. */
|
|
10
|
+
handleHTMLOrTextPaste(clipboardData: DataTransfer, plainText: string): void;
|
|
11
|
+
/** Sanitizes and processes pasted HTML content. */
|
|
12
|
+
private handleHTML;
|
|
13
|
+
/** Extracts embedded rich block JSON from HTML (data-notectl-rich). */
|
|
14
|
+
private extractRichData;
|
|
15
|
+
/** Decodes HTML entities produced by ClipboardHandler's encoding. */
|
|
16
|
+
private decodeHTMLEntities;
|
|
17
|
+
/** Checks whether HTML requires the DocumentParser (tables, void blocks). */
|
|
18
|
+
private requiresDocumentParser;
|
|
19
|
+
/** Checks whether a DOM fragment contains elements matching void block parse rules. */
|
|
20
|
+
private containsVoidBlockElements;
|
|
21
|
+
/** Handles paste of HTML requiring the DocumentParser (tables, void blocks). */
|
|
22
|
+
private handleDocumentPaste;
|
|
23
|
+
private extractTextFromHTML;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=PasteHTMLHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasteHTMLHandler.d.ts","sourceRoot":"","sources":["../../src/input/PasteHTMLHandler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkBH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAYjE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAchE,qBAAa,gBAAgB;IAE3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAHpB,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,EACpB,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO;IAGjE,8DAA8D;IAC9D,qBAAqB,CAAC,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAe3E,mDAAmD;IACnD,OAAO,CAAC,UAAU;IA6ClB,uEAAuE;IACvE,OAAO,CAAC,eAAe;IASvB,qEAAqE;IACrE,OAAO,CAAC,kBAAkB;IAS1B,6EAA6E;IAC7E,OAAO,CAAC,sBAAsB;IAK9B,uFAAuF;IACvF,OAAO,CAAC,yBAAyB;IAgBjC,gFAAgF;IAChF,OAAO,CAAC,mBAAmB;IAgD3B,OAAO,CAAC,mBAAmB;CAK3B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FileHandlerRegistry } from '../model/FileHandlerRegistry.js';
|
|
2
|
+
import { PasteInterceptorEntry } from '../model/PasteInterceptor.js';
|
|
2
3
|
import { SchemaRegistry } from '../model/SchemaRegistry.js';
|
|
3
4
|
import { DispatchFn, GetStateFn } from './InputHandler.js';
|
|
4
5
|
export interface PasteHandlerOptions {
|
|
@@ -7,43 +8,24 @@ export interface PasteHandlerOptions {
|
|
|
7
8
|
readonly schemaRegistry?: SchemaRegistry;
|
|
8
9
|
readonly fileHandlerRegistry?: FileHandlerRegistry;
|
|
9
10
|
readonly isReadOnly?: () => boolean;
|
|
11
|
+
readonly getPasteInterceptors?: () => readonly PasteInterceptorEntry[];
|
|
10
12
|
}
|
|
11
13
|
export declare class PasteHandler {
|
|
12
14
|
private readonly element;
|
|
13
15
|
private readonly getState;
|
|
14
16
|
private readonly dispatch;
|
|
15
|
-
private readonly schemaRegistry?;
|
|
16
17
|
private readonly fileHandlerRegistry?;
|
|
17
18
|
private readonly isReadOnly;
|
|
19
|
+
private readonly getPasteInterceptors;
|
|
18
20
|
private readonly handlePaste;
|
|
21
|
+
private readonly htmlHandler;
|
|
22
|
+
private readonly richBlockHandler;
|
|
19
23
|
constructor(element: HTMLElement, options: PasteHandlerOptions);
|
|
20
24
|
private onPaste;
|
|
21
|
-
/**
|
|
22
|
-
private
|
|
23
|
-
/** Handles paste of an internal block node from ClipboardHandler. */
|
|
24
|
-
private handleBlockPaste;
|
|
25
|
-
/** Parses JSON and delegates to handleRichPaste (for HTML-embedded data). */
|
|
26
|
-
private handleRichPasteFromJson;
|
|
27
|
-
/**
|
|
28
|
-
* Handles paste of rich block data (text selections carrying block structure).
|
|
29
|
-
* Returns true if handled, false to fall through to plain-text paste.
|
|
30
|
-
*/
|
|
31
|
-
private handleRichPaste;
|
|
32
|
-
/** Resolves insertion context (cell or root) and inserts rich blocks. */
|
|
33
|
-
private resolveAndInsertRichBlocks;
|
|
34
|
-
/** Inserts validated rich blocks at the resolved position. */
|
|
35
|
-
private insertRichBlocks;
|
|
25
|
+
/** Runs paste interceptors in priority order. Returns true if one claimed the paste. */
|
|
26
|
+
private tryPasteInterceptors;
|
|
36
27
|
/** Checks for files in clipboard data and delegates to registered handlers. */
|
|
37
28
|
private handleFilePaste;
|
|
38
|
-
/** Extracts embedded rich block JSON from HTML (data-notectl-rich). */
|
|
39
|
-
private extractRichData;
|
|
40
|
-
/** Checks whether HTML requires the DocumentParser (tables, void blocks). */
|
|
41
|
-
private requiresDocumentParser;
|
|
42
|
-
/** Checks whether a DOM fragment contains elements matching void block parse rules. */
|
|
43
|
-
private containsVoidBlockElements;
|
|
44
|
-
/** Handles paste of HTML requiring the DocumentParser (tables, void blocks). */
|
|
45
|
-
private handleDocumentPaste;
|
|
46
|
-
private extractTextFromHTML;
|
|
47
29
|
destroy(): void;
|
|
48
30
|
}
|
|
49
31
|
//# sourceMappingURL=PasteHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasteHandler.d.ts","sourceRoot":"","sources":["../../src/input/PasteHandler.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"PasteHandler.d.ts","sourceRoot":"","sources":["../../src/input/PasteHandler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8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'./InputHandler.js';
|
|
3
|
+
import { RichBlockData } from './InternalClipboard.js';
|
|
4
|
+
export declare class PasteRichBlockHandler {
|
|
5
|
+
private readonly getState;
|
|
6
|
+
private readonly dispatch;
|
|
7
|
+
private readonly schemaRegistry?;
|
|
8
|
+
constructor(getState: GetStateFn, dispatch: DispatchFn, schemaRegistry?: SchemaRegistry | undefined);
|
|
9
|
+
/** Handles paste of an internal block node from ClipboardHandler. */
|
|
10
|
+
handleBlockPaste(json: string): void;
|
|
11
|
+
/** Parses JSON and delegates to handleRichPaste (for HTML-embedded data). */
|
|
12
|
+
handleRichPasteFromJson(json: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Handles paste of rich block data (text selections carrying block structure).
|
|
15
|
+
* Returns true if handled, false to fall through to plain-text paste.
|
|
16
|
+
*/
|
|
17
|
+
handleRichPaste(blocks: readonly RichBlockData[]): boolean;
|
|
18
|
+
/** Resolves insertion context (cell or root) and inserts rich blocks. */
|
|
19
|
+
private resolveAndInsertRichBlocks;
|
|
20
|
+
/** Inserts validated rich blocks at the resolved position. */
|
|
21
|
+
private insertRichBlocks;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=PasteRichBlockHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasteRichBlockHandler.d.ts","sourceRoot":"","sources":["../../src/input/PasteRichBlockHandler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkBH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAYjE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBAAa,qBAAqB;IAEhC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC;gBAFf,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,EACpB,cAAc,CAAC,EAAE,cAAc,YAAA;IAGjD,qEAAqE;IACrE,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA2DpC,6EAA6E;IAC7E,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAW9C;;;OAGG;IACH,eAAe,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,GAAG,OAAO;IAiC1D,yEAAyE;IACzE,OAAO,CAAC,0BAA0B;IA6BlC,8DAA8D;IAC9D,OAAO,CAAC,gBAAgB;CAkCxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Document } from '../model/Document.js';
|
|
2
|
+
import { Selection } from '../model/Selection.js';
|
|
3
|
+
import { EditorState } from '../state/EditorState.js';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a partial document containing only the selected content.
|
|
6
|
+
* Composite ancestors are preserved, while first/last leaf blocks are trimmed
|
|
7
|
+
* to the exact selection offsets.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildSelectionDocument(state: EditorState, selection: Selection): Document;
|
|
10
|
+
//# sourceMappingURL=SelectionDocument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionDocument.d.ts","sourceRoot":"","sources":["../../src/input/SelectionDocument.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAa,QAAQ,EAAwB,MAAM,sBAAsB,CAAC;AAStF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAU3D;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAG,QAAQ,CAwCzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Document.d.ts","sourceRoot":"","sources":["../../src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M,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAA;CAAE,GACjF;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GACtD,IAAI,CAmBN"}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
export declare const SAFE_URI_REGEXP: RegExp;
|
|
10
10
|
/** Escapes special HTML characters in text content. */
|
|
11
11
|
export declare function escapeHTML(text: string): string;
|
|
12
|
+
/** Escapes a value for safe interpolation into an HTML attribute (double-quoted). */
|
|
13
|
+
export declare const escapeAttr: (value: string) => string;
|
|
12
14
|
/**
|
|
13
15
|
* Pretty-prints an HTML string with indentation and line breaks for block-level elements.
|
|
14
16
|
* Inline content (e.g. `<strong>bold</strong> text`) stays on a single line.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HTMLUtils.d.ts","sourceRoot":"","sources":["../../src/model/HTMLUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,MACwE,CAAC;AAEvG,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM/C;
|
|
1
|
+
{"version":3,"file":"HTMLUtils.d.ts","sourceRoot":"","sources":["../../src/model/HTMLUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,MACwE,CAAC;AAEvG,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM/C;AAED,qFAAqF;AACrF,eAAO,MAAM,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAmB,CAAC;AA4ChE;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,SAAO,GAAG,MAAM,CAsC9D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EditorState } from '../state/EditorState.js';
|
|
2
|
+
import { Transaction } from '../state/Transaction.js';
|
|
3
|
+
/**
|
|
4
|
+
* Paste interceptor callback. Receives raw clipboard text and HTML,
|
|
5
|
+
* plus the current state. Returns a Transaction to claim the paste,
|
|
6
|
+
* or null to pass through to the next interceptor / default handling.
|
|
7
|
+
*/
|
|
8
|
+
export type PasteInterceptor = (plainText: string, html: string, state: EditorState) => Transaction | null;
|
|
9
|
+
export interface PasteInterceptorOptions {
|
|
10
|
+
/** Human-readable name for debugging and introspection. */
|
|
11
|
+
readonly name?: string;
|
|
12
|
+
/** Execution priority (lower values run first). Defaults to 100. */
|
|
13
|
+
readonly priority?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface PasteInterceptorEntry {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly pluginId: string;
|
|
18
|
+
readonly interceptor: PasteInterceptor;
|
|
19
|
+
readonly priority: number;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=PasteInterceptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasteInterceptor.d.ts","sourceRoot":"","sources":["../../src/model/PasteInterceptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAC9B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,WAAW,KACd,WAAW,GAAG,IAAI,CAAC;AAExB,MAAM,WAAW,uBAAuB;IACvC,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rich block data types for clipboard serialization.
|
|
3
|
+
*
|
|
4
|
+
* These pure data interfaces describe serialized blocks and inline segments
|
|
5
|
+
* with marks, used by both `input/` (clipboard operations) and `commands/`
|
|
6
|
+
* (block insertion). Placed in `model/` to avoid cross-layer dependencies.
|
|
7
|
+
*/
|
|
8
|
+
/** A serialized text segment preserving marks. */
|
|
9
|
+
export interface RichTextSegment {
|
|
10
|
+
readonly text: string;
|
|
11
|
+
readonly marks: readonly {
|
|
12
|
+
readonly type: string;
|
|
13
|
+
readonly attrs?: Record<string, unknown>;
|
|
14
|
+
}[];
|
|
15
|
+
/** Omitted for backwards compatibility with existing clipboard payloads. */
|
|
16
|
+
readonly kind?: 'text';
|
|
17
|
+
}
|
|
18
|
+
/** A serialized inline node preserved in rich clipboard payloads. */
|
|
19
|
+
export interface RichInlineSegment {
|
|
20
|
+
readonly kind: 'inline';
|
|
21
|
+
readonly inlineType: string;
|
|
22
|
+
readonly attrs?: Record<string, unknown>;
|
|
23
|
+
}
|
|
24
|
+
/** A serialized inline segment: either marked text or an inline node. */
|
|
25
|
+
export type RichSegment = RichTextSegment | RichInlineSegment;
|
|
26
|
+
/** A serialized block from a text-selection copy. */
|
|
27
|
+
export interface RichBlockData {
|
|
28
|
+
readonly type: string;
|
|
29
|
+
readonly text: string;
|
|
30
|
+
readonly attrs?: Record<string, unknown>;
|
|
31
|
+
/** Inline segments with marks. When present, used instead of plain `text`. */
|
|
32
|
+
readonly segments?: readonly RichSegment[];
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=RichBlockData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RichBlockData.d.ts","sourceRoot":"","sources":["../../src/model/RichBlockData.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,EAAE,CAAC;IAC/F,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qEAAqE;AACrE,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,yEAAyE;AACzE,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAE9D,qDAAqD;AACrD,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;CAC3C"}
|
|
@@ -37,6 +37,8 @@ export declare class SchemaRegistry {
|
|
|
37
37
|
getAllowedTags(): string[];
|
|
38
38
|
/** Returns all allowed HTML attributes from base defaults + all spec sanitize configs. */
|
|
39
39
|
getAllowedAttrs(): string[];
|
|
40
|
+
private collectParseRules;
|
|
41
|
+
private collectSanitize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SAAS,MAAM,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;IAOvE,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAI3D,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIxC,kBAAkB,IAAI,MAAM,EAAE;IAM9B,2EAA2E;IAC3E,kBAAkB,IAAI,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE;IAIpF,iFAAiF;IACjF,mBAAmB,IAAI,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE;IAIrF,2EAA2E;IAC3E,iBAAiB,IAAI,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE;IAInF,oFAAoF;IACpF,cAAc,IAAI,MAAM,EAAE;IAS1B,0FAA0F;IAC1F,eAAe,IAAI,MAAM,EAAE;IAM3B,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,qBAAqB;IA4B7B,KAAK,IAAI,IAAI;CAKb"}
|
package/dist/notectl-core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a,c as s,a as e,d as t,e as o,g as r,f as n,h as i,i as c,j as d,k as m,l,m as k,n as p,o as g,p as
|
|
1
|
+
import{b as a,c as s,a as e,d as t,e as o,g as r,f as n,h as i,i as c,j as d,k as m,l,m as k,n as p,o as g,p as h,q as u,r as T}from"./chunks/Document-3pNX7ear.mjs";import{e as f,a as S,b as v,c as B,d as y,f as C,g as x,h as w,i as A,j as P,k as N,l as E,m as j,n as I,o as M,p as R,q as b,r as D,s as L,t as F,u as H,v as O,w as G,x as W,y as _,z,A as K,B as V,C as U,D as q,E as X,F as Q,G as Z,H as J,I as Y}from"./chunks/index-C-L4awHz.mjs";import{c as $,a as aa,b as sa,d as ea,e as ta,i as oa,f as ra,g as na,h as ia,j as ca,s as da,k as ma}from"./chunks/Selection-DhbizDM4.mjs";import{d as la,i as ka,a as pa,s as ga,t as ha,b as ua,c as Ta,e as fa}from"./chunks/MarkCommands-CeCa4WSC.mjs";import{b as Sa,c as va,i as Ba,m as ya,n as Ca,p as xa}from"./chunks/TypeBrands-Bp_Z_o5Y.mjs";import{i as wa,a as Aa,b as Pa}from"./chunks/AttrRegistry-iNpjvcSG.mjs";import{c as Na}from"./chunks/DomUtils-CznMAZZg.mjs";import{e as Ea,a as ja,f as Ia}from"./chunks/HTMLUtils-Cxy99Ak2.mjs";import{C as Ma,a as Ra,b as ba,D as Da,E as La,c as Fa,F as Ha,H as Oa,I as Ga,d as Wa,K as _a,L as za,e as Ka,N as Va,f as Ua,P as qa,S as Xa,T as Qa,g as Za,h as Ja,i as Ya,j as $a,k as as,l as ss,m as es,n as ts,o as os,p as rs,q as ns,r as is,s as cs,t as ds,u as ms,v as ls,w as ks,x as ps,y as gs,z as hs,A as us,B as Ts}from"./chunks/NotectlEditor-BJD7-FFx.mjs";import{f as fs,a as Ss,b as vs,r as Bs,c as ys,w as Cs}from"./chunks/NodeResolver-z0ReCR34.mjs";import{e as xs,m as ws,n as As}from"./chunks/SelectionTransactions-DzIZxcuN.mjs";import{d as Ps,a as Ns,b as Es,i as js,c as Is,m as Ms,s as Rs,e as bs}from"./chunks/Commands-D_gMCnVa.mjs";import{g as Ds,i as Ls,a as Fs,b as Hs,c as Os}from"./chunks/Platform-CU6itXZo.mjs";import{E as Gs,L as Ws,a as _s,S as zs}from"./chunks/PluginHelpers-CdPR0MuT.mjs";import{D as Ks,i as Vs,n as Us,w as qs}from"./chunks/Decoration-D49mFXrH.mjs";import{P as Xs,a as Qs,b as Zs,c as Js,g as Ys,d as $s,i as ae}from"./chunks/PrintTypes-DukwDSWS.mjs";import{a as se,g as ee,i as te,r as oe}from"./chunks/AttributedMarkCommands-BY1BSYWM.mjs";import{c as re,i as ne,a as ie,b as ce,s as de}from"./chunks/NavigationQueries-11qe4j9x.mjs";import{d as me,n as le}from"./chunks/NodeSelectionCommands-CXrOcPtG.mjs";import{f as ke}from"./chunks/RangeIterator-XFN5FaYf.mjs";import{n as pe}from"./chunks/index-Cs9iqxhF.mjs";export{Ma as ClipboardHandler,Ra as CompositionTracker,ba as CursorWrapper,Da as DARK_THEME,Ks as DecorationSet,La as EditorState,Fa as EventBus,Gs as EventKey,Ha as FileHandlerRegistry,Oa as HistoryManager,Ga as InputManager,Wa as InputRuleRegistry,_a as KeymapRegistry,za as LIGHT_THEME,Ka as Locale,Ws as LocaleService,_s as LocaleServiceKey,Va as NodeViewRegistry,Ua as NotectlEditor,Xs as PAPER_MARGIN_HORIZONTAL_PX,Qs as PAPER_MARGIN_TOP_PX,Zs as PAPER_VIEWPORT_PADDING_PX,Js as PaperSize,qa as PluginManager,Xa as SchemaRegistry,zs as ServiceKey,Qa as ThemePreset,Za as TransactionBuilder,Ja as adoptContentStyles,se as applyAttributedMark,Ya as applyStep,Sa as blockId,a as blockOffsetToTextOffset,$a as canContain,re as canCrossBlockBoundary,va as commandName,Na as createBlockElement,s as createBlockNode,$ as createCollapsedSelection,e as createDocument,as as createEditor,aa as createGapCursor,t as createInlineNode,sa as createNodeSelection,ea as createPosition,ta as createSelection,o as createTextNode,ss as createTheme,es as createThemeStyleSheet,la as defaultSchema,ts as deleteBackward,Ps as deleteBackwardAtGap,os as deleteForward,Ns as deleteForwardAtGap,me as deleteNodeSelection,Es as deleteSelectionCommand,f as endOfTextblock,Ea as escapeAttr,ja as escapeHTML,S as extendCharacterBackward,v as extendCharacterForward,B as extendLineDown,y as extendLineUp,C as extendToBlockEnd,x as extendToBlockStart,w as extendToDocumentEnd,A as extendToDocumentStart,P as extendToLineEnd,N as extendToLineStart,xs as extendTx,E as extendWordBackward,j as extendWordForward,fs as findNode,Ss as findNodePath,vs as findNodeWithPath,I as findWordBoundaryBackward,M as findWordBoundaryForward,ke as forEachBlockInRange,Ia as formatHTML,rs as generateThemeCSS,r as getBlockChildren,n as getBlockLength,i as getBlockMarksAtOffset,c as getBlockText,ns as getBlockTypeLabel,R as getCaretRectFromSelection,d as getContentAtOffset,m as getInlineChildren,ee as getMarkAttrAtSelection,Ys as getPaperCSSSize,$s as getPaperDimensions,l as getTextChildren,Ds as getTextDirection,k as hasMark,is as injectContentStyles,Vs as inlineDecoration,Ba as inlineType,js as insertHardBreakCommand,Is as insertTextCommand,cs as invertStep,ds as invertTransaction,ms as isAllowedInReadonly,te as isAttributedMarkActive,p as isBlockNode,oa as isCollapsed,Ls as isFirefox,ra as isForward,na as isGapCursor,g as isInlineNode,wa as isInlineNodeOfType,ne as isInsideIsolating,ie as isIsolatingBlock,h as isLeafBlock,Fs as isMac,ka as isMarkActive,pa as isMarkAllowed,Aa as isMarkOfType,Pa as isNodeOfType,ia as isNodeSelection,Hs as isRtlContext,ls as isSelectionOnlyTransaction,u as isTextNode,ca as isTextSelection,ae as isValidPaperSize,ce as isVoidBlock,Os as isWebKit,T as markSetsEqual,ya as markType,Ms as mergeBlockBackward,b as moveCharacterBackward,D as moveCharacterForward,L as moveLineDown,F as moveLineUp,H as moveToBlockEnd,O as moveToBlockStart,G as moveToDocumentEnd,W as moveToDocumentStart,_ as moveToLineEnd,z as moveToLineStart,ws as moveTx,K as moveWordBackward,V as moveWordForward,U as navigateAcrossBlocks,le as navigateArrowIntoVoid,pe as navigateFromGapCursor,q as navigateVerticalWithGoalColumn,X as nextGraphemeSize,Us as nodeDecoration,As as nodeSelTx,Ca as nodeType,ks as normalizeKeyDescriptor,xa as pluginId,Q as prevGraphemeSize,ps as registerBuiltinSpecs,gs as removeAdoptedStyles,oe as removeAttributedMark,hs as removeContentStyles,Bs as resolveNodeByPath,ys as resolveParentByPath,us as resolveTheme,ga as schemaFromRegistry,Rs as selectAll,da as selectionRange,ma as selectionsEqual,de as sharesParent,Z as skipInlineNode,bs as splitBlockCommand,ha as toggleBold,ua as toggleItalic,Ta as toggleMark,fa as toggleUnderline,Ts as validateContent,J as viewExtend,Y as viewMove,Cs as walkNodes,qs as widgetDecoration};
|
|
2
2
|
//# sourceMappingURL=notectl-core.mjs.map
|