@kerebron/extension-codemirror 0.4.5 → 0.4.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/esm/{extension-codemirror/src/ExtensionCodeMirror.d.ts → ExtensionCodeMirror.d.ts} +1 -2
- package/esm/ExtensionCodeMirror.d.ts.map +1 -0
- package/esm/{extension-codemirror/src/ExtensionCodeMirror.js → ExtensionCodeMirror.js} +2 -3
- package/esm/{extension-codemirror/src/NodeCodeMirror.d.ts → NodeCodeMirror.d.ts} +3 -3
- package/esm/NodeCodeMirror.d.ts.map +1 -0
- package/esm/{extension-codemirror/src/NodeCodeMirror.js → NodeCodeMirror.js} +2 -2
- package/esm/{extension-codemirror/src/codeMirrorBlockNodeView.d.ts → codeMirrorBlockNodeView.d.ts} +1 -1
- package/esm/codeMirrorBlockNodeView.d.ts.map +1 -0
- package/esm/defaults.d.ts.map +1 -0
- package/esm/languageLoaders.d.ts.map +1 -0
- package/esm/languages.d.ts.map +1 -0
- package/esm/{extension-codemirror/src/lsp → lsp}/LSPExtension.d.ts +2 -2
- package/esm/lsp/LSPExtension.d.ts.map +1 -0
- package/esm/lsp/completion.d.ts.map +1 -0
- package/esm/lsp/hover.d.ts.map +1 -0
- package/esm/lsp/index.d.ts.map +1 -0
- package/esm/{extension-codemirror/src/lsp → lsp}/plugin.d.ts +3 -3
- package/esm/lsp/plugin.d.ts.map +1 -0
- package/esm/{extension-codemirror/src/lsp → lsp}/plugin.js +2 -2
- package/esm/lsp/pos.d.ts.map +1 -0
- package/esm/lsp/text.d.ts.map +1 -0
- package/esm/lsp/theme.d.ts.map +1 -0
- package/esm/remote-selections.d.ts.map +1 -0
- package/esm/{extension-codemirror/src/remote-sync.d.ts → remote-sync.d.ts} +1 -1
- package/esm/remote-sync.d.ts.map +1 -0
- package/esm/{extension-codemirror/src/types.d.ts → types.d.ts} +1 -1
- package/esm/types.d.ts.map +1 -0
- package/esm/{extension-codemirror/src/utils.d.ts → utils.d.ts} +1 -1
- package/esm/utils.d.ts.map +1 -0
- package/package.json +30 -6
- package/esm/_dnt.polyfills.d.ts +0 -101
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -127
- package/esm/_dnt.shims.d.ts +0 -2
- package/esm/_dnt.shims.d.ts.map +0 -1
- package/esm/_dnt.shims.js +0 -57
- package/esm/editor/src/CoreEditor.d.ts +0 -40
- package/esm/editor/src/CoreEditor.d.ts.map +0 -1
- package/esm/editor/src/CoreEditor.js +0 -252
- package/esm/editor/src/DummyEditorView.d.ts +0 -60
- package/esm/editor/src/DummyEditorView.d.ts.map +0 -1
- package/esm/editor/src/DummyEditorView.js +0 -277
- package/esm/editor/src/Extension.d.ts +0 -31
- package/esm/editor/src/Extension.d.ts.map +0 -1
- package/esm/editor/src/Extension.js +0 -53
- package/esm/editor/src/ExtensionManager.d.ts +0 -32
- package/esm/editor/src/ExtensionManager.d.ts.map +0 -1
- package/esm/editor/src/ExtensionManager.js +0 -260
- package/esm/editor/src/Mark.d.ts +0 -23
- package/esm/editor/src/Mark.d.ts.map +0 -1
- package/esm/editor/src/Mark.js +0 -51
- package/esm/editor/src/Node.d.ts +0 -32
- package/esm/editor/src/Node.d.ts.map +0 -1
- package/esm/editor/src/Node.js +0 -60
- package/esm/editor/src/commands/CommandManager.d.ts +0 -23
- package/esm/editor/src/commands/CommandManager.d.ts.map +0 -1
- package/esm/editor/src/commands/CommandManager.js +0 -118
- package/esm/editor/src/commands/baseCommandFactories.d.ts +0 -3
- package/esm/editor/src/commands/baseCommandFactories.d.ts.map +0 -1
- package/esm/editor/src/commands/baseCommandFactories.js +0 -836
- package/esm/editor/src/commands/createChainableState.d.ts +0 -3
- package/esm/editor/src/commands/createChainableState.d.ts.map +0 -1
- package/esm/editor/src/commands/createChainableState.js +0 -29
- package/esm/editor/src/commands/keyCommandFactories.d.ts +0 -3
- package/esm/editor/src/commands/keyCommandFactories.d.ts.map +0 -1
- package/esm/editor/src/commands/keyCommandFactories.js +0 -10
- package/esm/editor/src/commands/mod.d.ts +0 -7
- package/esm/editor/src/commands/mod.d.ts.map +0 -1
- package/esm/editor/src/commands/mod.js +0 -76
- package/esm/editor/src/commands/replaceCommandFactories.d.ts +0 -3
- package/esm/editor/src/commands/replaceCommandFactories.d.ts.map +0 -1
- package/esm/editor/src/commands/replaceCommandFactories.js +0 -94
- package/esm/editor/src/commands/types.d.ts +0 -18
- package/esm/editor/src/commands/types.d.ts.map +0 -1
- package/esm/editor/src/mod.d.ts +0 -9
- package/esm/editor/src/mod.d.ts.map +0 -1
- package/esm/editor/src/mod.js +0 -8
- package/esm/editor/src/nodeToTreeString.d.ts +0 -10
- package/esm/editor/src/nodeToTreeString.d.ts.map +0 -1
- package/esm/editor/src/nodeToTreeString.js +0 -74
- package/esm/editor/src/plugins/TrackSelecionPlugin.d.ts +0 -6
- package/esm/editor/src/plugins/TrackSelecionPlugin.d.ts.map +0 -1
- package/esm/editor/src/plugins/TrackSelecionPlugin.js +0 -24
- package/esm/editor/src/plugins/input-rules/InputRulesPlugin.d.ts +0 -23
- package/esm/editor/src/plugins/input-rules/InputRulesPlugin.d.ts.map +0 -1
- package/esm/editor/src/plugins/input-rules/InputRulesPlugin.js +0 -163
- package/esm/editor/src/plugins/input-rules/mod.d.ts +0 -3
- package/esm/editor/src/plugins/input-rules/mod.d.ts.map +0 -1
- package/esm/editor/src/plugins/input-rules/mod.js +0 -2
- package/esm/editor/src/plugins/input-rules/rulebuilders.d.ts +0 -5
- package/esm/editor/src/plugins/input-rules/rulebuilders.d.ts.map +0 -1
- package/esm/editor/src/plugins/input-rules/rulebuilders.js +0 -50
- package/esm/editor/src/plugins/keymap/keymap.d.ts +0 -11
- package/esm/editor/src/plugins/keymap/keymap.d.ts.map +0 -1
- package/esm/editor/src/plugins/keymap/keymap.js +0 -125
- package/esm/editor/src/plugins/keymap/w3c-keyname.d.ts +0 -4
- package/esm/editor/src/plugins/keymap/w3c-keyname.d.ts.map +0 -1
- package/esm/editor/src/plugins/keymap/w3c-keyname.js +0 -124
- package/esm/editor/src/types.d.ts +0 -52
- package/esm/editor/src/types.d.ts.map +0 -1
- package/esm/editor/src/types.js +0 -1
- package/esm/editor/src/ui.d.ts +0 -15
- package/esm/editor/src/ui.d.ts.map +0 -1
- package/esm/editor/src/ui.js +0 -16
- package/esm/editor/src/utilities/SmartOutput.d.ts +0 -41
- package/esm/editor/src/utilities/SmartOutput.d.ts.map +0 -1
- package/esm/editor/src/utilities/SmartOutput.js +0 -228
- package/esm/editor/src/utilities/createNodeFromContent.d.ts +0 -9
- package/esm/editor/src/utilities/createNodeFromContent.d.ts.map +0 -1
- package/esm/editor/src/utilities/createNodeFromContent.js +0 -32
- package/esm/editor/src/utilities/getHtmlAttributes.d.ts +0 -9
- package/esm/editor/src/utilities/getHtmlAttributes.d.ts.map +0 -1
- package/esm/editor/src/utilities/getHtmlAttributes.js +0 -47
- package/esm/editor/src/utilities/getShadowRoot.d.ts +0 -2
- package/esm/editor/src/utilities/getShadowRoot.d.ts.map +0 -1
- package/esm/editor/src/utilities/getShadowRoot.js +0 -16
- package/esm/editor/src/utilities/mod.d.ts +0 -6
- package/esm/editor/src/utilities/mod.d.ts.map +0 -1
- package/esm/editor/src/utilities/mod.js +0 -5
- package/esm/editor/src/utilities/toRawTextResult.d.ts +0 -3
- package/esm/editor/src/utilities/toRawTextResult.d.ts.map +0 -1
- package/esm/editor/src/utilities/toRawTextResult.js +0 -21
- package/esm/extension-autocomplete/src/AutocompletePlugin.d.ts +0 -8
- package/esm/extension-autocomplete/src/AutocompletePlugin.d.ts.map +0 -1
- package/esm/extension-autocomplete/src/AutocompletePlugin.js +0 -232
- package/esm/extension-autocomplete/src/DefaultRenderer.d.ts +0 -17
- package/esm/extension-autocomplete/src/DefaultRenderer.d.ts.map +0 -1
- package/esm/extension-autocomplete/src/DefaultRenderer.js +0 -137
- package/esm/extension-autocomplete/src/ExtensionAutocomplete.d.ts +0 -26
- package/esm/extension-autocomplete/src/ExtensionAutocomplete.d.ts.map +0 -1
- package/esm/extension-autocomplete/src/ExtensionAutocomplete.js +0 -30
- package/esm/extension-autocomplete/src/createDefaultMatcher.d.ts +0 -11
- package/esm/extension-autocomplete/src/createDefaultMatcher.d.ts.map +0 -1
- package/esm/extension-autocomplete/src/createDefaultMatcher.js +0 -58
- package/esm/extension-autocomplete/src/createRegexMatcher.d.ts +0 -4
- package/esm/extension-autocomplete/src/createRegexMatcher.d.ts.map +0 -1
- package/esm/extension-autocomplete/src/createRegexMatcher.js +0 -50
- package/esm/extension-autocomplete/src/mod.d.ts +0 -3
- package/esm/extension-autocomplete/src/mod.d.ts.map +0 -1
- package/esm/extension-autocomplete/src/mod.js +0 -2
- package/esm/extension-autocomplete/src/types.d.ts +0 -60
- package/esm/extension-autocomplete/src/types.d.ts.map +0 -1
- package/esm/extension-autocomplete/src/types.js +0 -1
- package/esm/extension-basic-editor/src/ExtensionHtml.d.ts +0 -15
- package/esm/extension-basic-editor/src/ExtensionHtml.d.ts.map +0 -1
- package/esm/extension-basic-editor/src/ExtensionHtml.js +0 -108
- package/esm/extension-basic-editor/src/NodeCodeBlock.d.ts +0 -9
- package/esm/extension-basic-editor/src/NodeCodeBlock.d.ts.map +0 -1
- package/esm/extension-basic-editor/src/NodeCodeBlock.js +0 -58
- package/esm/extension-basic-editor/src/remote-selection/ExtensionRemoteSelection.d.ts +0 -24
- package/esm/extension-basic-editor/src/remote-selection/ExtensionRemoteSelection.d.ts.map +0 -1
- package/esm/extension-basic-editor/src/remote-selection/ExtensionRemoteSelection.js +0 -35
- package/esm/extension-basic-editor/src/remote-selection/remoteSelectionPlugin.d.ts +0 -25
- package/esm/extension-basic-editor/src/remote-selection/remoteSelectionPlugin.d.ts.map +0 -1
- package/esm/extension-basic-editor/src/remote-selection/remoteSelectionPlugin.js +0 -96
- package/esm/extension-codemirror/src/ExtensionCodeMirror.d.ts.map +0 -1
- package/esm/extension-codemirror/src/NodeCodeMirror.d.ts.map +0 -1
- package/esm/extension-codemirror/src/codeMirrorBlockNodeView.d.ts.map +0 -1
- package/esm/extension-codemirror/src/defaults.d.ts.map +0 -1
- package/esm/extension-codemirror/src/languageLoaders.d.ts.map +0 -1
- package/esm/extension-codemirror/src/languages.d.ts.map +0 -1
- package/esm/extension-codemirror/src/lsp/LSPExtension.d.ts.map +0 -1
- package/esm/extension-codemirror/src/lsp/completion.d.ts.map +0 -1
- package/esm/extension-codemirror/src/lsp/hover.d.ts.map +0 -1
- package/esm/extension-codemirror/src/lsp/index.d.ts.map +0 -1
- package/esm/extension-codemirror/src/lsp/plugin.d.ts.map +0 -1
- package/esm/extension-codemirror/src/lsp/pos.d.ts.map +0 -1
- package/esm/extension-codemirror/src/lsp/text.d.ts.map +0 -1
- package/esm/extension-codemirror/src/lsp/theme.d.ts.map +0 -1
- package/esm/extension-codemirror/src/remote-selections.d.ts.map +0 -1
- package/esm/extension-codemirror/src/remote-sync.d.ts.map +0 -1
- package/esm/extension-codemirror/src/types.d.ts.map +0 -1
- package/esm/extension-codemirror/src/types.js +0 -1
- package/esm/extension-codemirror/src/utils.d.ts.map +0 -1
- package/esm/extension-lsp/src/DiagnosticPlugin.d.ts +0 -32
- package/esm/extension-lsp/src/DiagnosticPlugin.d.ts.map +0 -1
- package/esm/extension-lsp/src/DiagnosticPlugin.js +0 -131
- package/esm/extension-lsp/src/ExtensionLsp.d.ts +0 -25
- package/esm/extension-lsp/src/ExtensionLsp.d.ts.map +0 -1
- package/esm/extension-lsp/src/ExtensionLsp.js +0 -126
- package/esm/extension-lsp/src/LSPClient.d.ts +0 -56
- package/esm/extension-lsp/src/LSPClient.d.ts.map +0 -1
- package/esm/extension-lsp/src/LSPClient.js +0 -449
- package/esm/extension-lsp/src/computeIncrementalChanges.d.ts +0 -8
- package/esm/extension-lsp/src/computeIncrementalChanges.d.ts.map +0 -1
- package/esm/extension-lsp/src/computeIncrementalChanges.js +0 -82
- package/esm/extension-lsp/src/createLspAutocomplete.d.ts +0 -23
- package/esm/extension-lsp/src/createLspAutocomplete.d.ts.map +0 -1
- package/esm/extension-lsp/src/createLspAutocomplete.js +0 -68
- package/esm/extension-lsp/src/mod.d.ts +0 -4
- package/esm/extension-lsp/src/mod.d.ts.map +0 -1
- package/esm/extension-lsp/src/mod.js +0 -3
- package/esm/extension-lsp/src/workspace.d.ts +0 -62
- package/esm/extension-lsp/src/workspace.d.ts.map +0 -1
- package/esm/extension-lsp/src/workspace.js +0 -168
- package/esm/extension-markdown/src/DocumentMarkdownInlineTokenizer.d.ts +0 -36
- package/esm/extension-markdown/src/DocumentMarkdownInlineTokenizer.d.ts.map +0 -1
- package/esm/extension-markdown/src/DocumentMarkdownInlineTokenizer.js +0 -240
- package/esm/extension-markdown/src/DocumentMarkdownTokenizer.d.ts +0 -26
- package/esm/extension-markdown/src/DocumentMarkdownTokenizer.d.ts.map +0 -1
- package/esm/extension-markdown/src/DocumentMarkdownTokenizer.js +0 -115
- package/esm/extension-markdown/src/ExtensionMarkdown.d.ts +0 -22
- package/esm/extension-markdown/src/ExtensionMarkdown.d.ts.map +0 -1
- package/esm/extension-markdown/src/ExtensionMarkdown.js +0 -48
- package/esm/extension-markdown/src/MarkdownParser.d.ts +0 -61
- package/esm/extension-markdown/src/MarkdownParser.d.ts.map +0 -1
- package/esm/extension-markdown/src/MarkdownParser.js +0 -249
- package/esm/extension-markdown/src/MarkdownSerializer.d.ts +0 -42
- package/esm/extension-markdown/src/MarkdownSerializer.d.ts.map +0 -1
- package/esm/extension-markdown/src/MarkdownSerializer.js +0 -325
- package/esm/extension-markdown/src/PositionMapper.d.ts +0 -15
- package/esm/extension-markdown/src/PositionMapper.d.ts.map +0 -1
- package/esm/extension-markdown/src/PositionMapper.js +0 -100
- package/esm/extension-markdown/src/TokenSource.d.ts +0 -11
- package/esm/extension-markdown/src/TokenSource.d.ts.map +0 -1
- package/esm/extension-markdown/src/TokenSource.js +0 -39
- package/esm/extension-markdown/src/mdToPmConverter.d.ts +0 -5
- package/esm/extension-markdown/src/mdToPmConverter.d.ts.map +0 -1
- package/esm/extension-markdown/src/mdToPmConverter.js +0 -111
- package/esm/extension-markdown/src/pmToMdConverter.d.ts +0 -16
- package/esm/extension-markdown/src/pmToMdConverter.d.ts.map +0 -1
- package/esm/extension-markdown/src/pmToMdConverter.js +0 -433
- package/esm/extension-markdown/src/token_handlers/basic_token_handlers.d.ts +0 -4
- package/esm/extension-markdown/src/token_handlers/basic_token_handlers.d.ts.map +0 -1
- package/esm/extension-markdown/src/token_handlers/basic_token_handlers.js +0 -151
- package/esm/extension-markdown/src/token_handlers/footnote_token_handlers.d.ts +0 -3
- package/esm/extension-markdown/src/token_handlers/footnote_token_handlers.d.ts.map +0 -1
- package/esm/extension-markdown/src/token_handlers/footnote_token_handlers.js +0 -34
- package/esm/extension-markdown/src/token_handlers/inline_token_handlers.d.ts +0 -6
- package/esm/extension-markdown/src/token_handlers/inline_token_handlers.d.ts.map +0 -1
- package/esm/extension-markdown/src/token_handlers/inline_token_handlers.js +0 -380
- package/esm/extension-markdown/src/token_handlers/lists_token_handlers.d.ts +0 -3
- package/esm/extension-markdown/src/token_handlers/lists_token_handlers.d.ts.map +0 -1
- package/esm/extension-markdown/src/token_handlers/lists_token_handlers.js +0 -323
- package/esm/extension-markdown/src/token_handlers/table_token_handlers.d.ts +0 -9
- package/esm/extension-markdown/src/token_handlers/table_token_handlers.d.ts.map +0 -1
- package/esm/extension-markdown/src/token_handlers/table_token_handlers.js +0 -308
- package/esm/extension-markdown/src/treeSitterTokenizer.d.ts +0 -5
- package/esm/extension-markdown/src/treeSitterTokenizer.d.ts.map +0 -1
- package/esm/extension-markdown/src/treeSitterTokenizer.js +0 -769
- package/esm/extension-markdown/src/types.d.ts +0 -28
- package/esm/extension-markdown/src/types.d.ts.map +0 -1
- package/esm/extension-markdown/src/types.js +0 -131
- package/esm/extension-markdown/src/utils.d.ts +0 -8
- package/esm/extension-markdown/src/utils.d.ts.map +0 -1
- package/esm/extension-markdown/src/utils.js +0 -86
- package/esm/tree-sitter-shim/src/main.d.ts +0 -15
- package/esm/tree-sitter-shim/src/main.d.ts.map +0 -1
- package/esm/tree-sitter-shim/src/main.js +0 -25
- package/esm/tree-sitter-shim/src/tree_sitter/node.d.ts +0 -6
- package/esm/tree-sitter-shim/src/tree_sitter/node.d.ts.map +0 -1
- package/esm/tree-sitter-shim/src/tree_sitter/node.js +0 -1
- package/esm/tree-sitter-shim/src/tree_sitter/parser.d.ts +0 -7
- package/esm/tree-sitter-shim/src/tree_sitter/parser.d.ts.map +0 -1
- package/esm/tree-sitter-shim/src/tree_sitter/parser.js +0 -5
- package/esm/tree-sitter-shim/src/tree_sitter/tree.d.ts +0 -6
- package/esm/tree-sitter-shim/src/tree_sitter/tree.d.ts.map +0 -1
- package/esm/tree-sitter-shim/src/tree_sitter/tree.js +0 -1
- package/esm/wasm/src/mod.d.ts +0 -12
- package/esm/wasm/src/mod.d.ts.map +0 -1
- package/esm/wasm/src/mod.js +0 -48
- package/esm/wasm/wasm.d.ts +0 -138
- package/esm/wasm/wasm.d.ts.map +0 -1
- package/esm/wasm/wasm.js +0 -120
- /package/esm/{extension-codemirror/src/codeMirrorBlockNodeView.js → codeMirrorBlockNodeView.js} +0 -0
- /package/esm/{extension-codemirror/src/defaults.d.ts → defaults.d.ts} +0 -0
- /package/esm/{extension-codemirror/src/defaults.js → defaults.js} +0 -0
- /package/esm/{extension-codemirror/src/languageLoaders.d.ts → languageLoaders.d.ts} +0 -0
- /package/esm/{extension-codemirror/src/languageLoaders.js → languageLoaders.js} +0 -0
- /package/esm/{extension-codemirror/src/languages.d.ts → languages.d.ts} +0 -0
- /package/esm/{extension-codemirror/src/languages.js → languages.js} +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/LSPExtension.js +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/completion.d.ts +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/completion.js +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/hover.d.ts +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/hover.js +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/index.d.ts +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/index.js +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/pos.d.ts +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/pos.js +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/text.d.ts +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/text.js +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/theme.d.ts +0 -0
- /package/esm/{extension-codemirror/src/lsp → lsp}/theme.js +0 -0
- /package/esm/{extension-codemirror/src/remote-selections.d.ts → remote-selections.d.ts} +0 -0
- /package/esm/{extension-codemirror/src/remote-selections.js → remote-selections.js} +0 -0
- /package/esm/{extension-codemirror/src/remote-sync.js → remote-sync.js} +0 -0
- /package/esm/{editor/src/commands/types.js → types.js} +0 -0
- /package/esm/{extension-codemirror/src/utils.js → utils.js} +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "../../_dnt.polyfills.js";
|
|
2
1
|
import { Schema } from 'prosemirror-model';
|
|
3
|
-
import { AnyExtensionOrReq, type Converter, type CoreEditor, Extension } from '
|
|
2
|
+
import { AnyExtensionOrReq, type Converter, type CoreEditor, Extension } from '@kerebron/editor';
|
|
4
3
|
import { NodeCodeMirrorConfig } from './NodeCodeMirror.js';
|
|
5
4
|
export * from './NodeCodeMirror.js';
|
|
6
5
|
export interface ExtensionCodeMirrorConfig {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionCodeMirror.d.ts","sourceRoot":"","sources":["../src/ExtensionCodeMirror.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,SAAS,EACV,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAkB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3E,cAAc,qBAAqB,CAAC;AAEpC,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,CAAC,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IAC9D,KAAK,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,mBAAoB,SAAQ,SAAS;cAIjB,MAAM,EAAE,yBAAyB;IAHvD,IAAI,SAAiB;IAC9B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;gBAEC,MAAM,EAAE,yBAAyB;IAWvD,aAAa,CACpB,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,MAAM,GACb,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;CA+C7B"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { createNodeFromObject } from '../../editor/src/utilities/mod.js';
|
|
1
|
+
import { Extension, } from '@kerebron/editor';
|
|
2
|
+
import { createNodeFromObject } from '@kerebron/editor/utilities';
|
|
4
3
|
import { NodeCodeMirror } from './NodeCodeMirror.js';
|
|
5
4
|
export * from './NodeCodeMirror.js';
|
|
6
5
|
export class ExtensionCodeMirror extends Extension {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Plugin, PluginKey } from 'prosemirror-state';
|
|
2
2
|
import type { NodeType } from 'prosemirror-model';
|
|
3
|
-
import { type CoreEditor } from '
|
|
4
|
-
import { type CommandFactories, type CommandShortcuts } from '
|
|
5
|
-
import { NodeCodeBlock } from '
|
|
3
|
+
import { type CoreEditor } from '@kerebron/editor';
|
|
4
|
+
import { type CommandFactories, type CommandShortcuts } from '@kerebron/editor/commands';
|
|
5
|
+
import { NodeCodeBlock } from '@kerebron/extension-basic-editor/NodeCodeBlock';
|
|
6
6
|
import { CodeBlockSettings } from './types.js';
|
|
7
7
|
export declare const codeMirrorBlockKey: PluginKey<any>;
|
|
8
8
|
export interface NodeCodeMirrorConfig {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeCodeMirror.d.ts","sourceRoot":"","sources":["../src/NodeCodeMirror.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,MAAM,EACN,SAAS,EAGV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAE/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,eAAO,MAAM,kBAAkB,gBAAoC,CAAC;AA+CpE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IAC3D,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;CACpC;AAED,qBAAa,cAAe,SAAQ,aAAa;IAC1B,MAAM,EAAE,oBAAoB;gBAA5B,MAAM,EAAE,oBAAoB;IAIxC,mBAAmB,CAC1B,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,QAAQ,GACb,OAAO,CAAC,gBAAgB,CAAC;IAWnB,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAUjD,qBAAqB,IAAI,MAAM,EAAE;CA6B3C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Plugin, PluginKey, Selection, } from 'prosemirror-state';
|
|
2
|
-
import { getShadowRoot } from '
|
|
3
|
-
import { NodeCodeBlock } from '
|
|
2
|
+
import { getShadowRoot } from '@kerebron/editor/utilities';
|
|
3
|
+
import { NodeCodeBlock } from '@kerebron/extension-basic-editor/NodeCodeBlock';
|
|
4
4
|
import { codeMirrorBlockNodeView } from './codeMirrorBlockNodeView.js';
|
|
5
5
|
import { defaultSettings } from './defaults.js';
|
|
6
6
|
import languageLoaders, { legacyLanguageLoaders } from './languageLoaders.js';
|
package/esm/{extension-codemirror/src/codeMirrorBlockNodeView.d.ts → codeMirrorBlockNodeView.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
2
|
import { Decoration, DecorationSource, EditorView, NodeView } from 'prosemirror-view';
|
|
3
|
-
import { CoreEditor } from '
|
|
3
|
+
import { CoreEditor } from '@kerebron/editor';
|
|
4
4
|
import { CodeBlockSettings } from './types.js';
|
|
5
5
|
export declare const themeCallbacks: Array<(theme: string) => void>;
|
|
6
6
|
export declare const codeMirrorBlockNodeView: (settings: CodeBlockSettings, editor: CoreEditor) => (node: Node, view: EditorView, getPos: () => number | undefined, decorations: readonly Decoration[], innerDecorations: DecorationSource) => NodeView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codeMirrorBlockNodeView.d.ts","sourceRoot":"","sources":["../src/codeMirrorBlockNodeView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EAEV,QAAQ,EACT,MAAM,kBAAkB,CAAC;AA8B1B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAY9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAS/C,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAM,CAAC;AAoUjE,eAAO,MAAM,uBAAuB,EAAE,CACpC,QAAQ,EAAE,iBAAiB,EAC3B,MAAM,EAAE,UAAU,KACf,CACH,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,MAAM,MAAM,GAAG,SAAS,EAChC,WAAW,EAAE,SAAS,UAAU,EAAE,EAClC,gBAAgB,EAAE,gBAAgB,KAC/B,QAQJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,mBAAmB,GAC9B,UAAU,iBAAiB,EAC3B,KAAK,WAAW,EAChB,MAAM,IAAI,EACV,MAAM,UAAU,EAChB,QAAQ,MAAM,MAAM,GAAG,SAAS,eAyCjC,CAAC;AAmBF,eAAO,MAAM,eAAe,EAAE,iBAS7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"languageLoaders.d.ts","sourceRoot":"","sources":["../src/languageLoaders.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,QAAA,MAAM,eAAe,EAAE,eA6BtB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,eAyWnC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../src/languages.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,GAAG,QAAQ;IAC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b,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,EAAE,OAAO;IACT,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Extension } from '@codemirror/state';
|
|
2
|
-
import type { CoreEditor } from '
|
|
3
|
-
import type { ExtensionLsp } from '
|
|
2
|
+
import type { CoreEditor } from '@kerebron/editor';
|
|
3
|
+
import type { ExtensionLsp } from '@kerebron/extension-lsp';
|
|
4
4
|
export interface LSPExtensionConfig {
|
|
5
5
|
extensions?: readonly Extension[];
|
|
6
6
|
getPos: () => number | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LSPExtension.d.ts","sourceRoot":"","sources":["../../src/lsp/LSPExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAK5D,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IAClC,MAAM,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,qBAAa,YAAY;IAIrB,QAAQ,CAAC,MAAM,EAAE,kBAAkB;IAHrC,UAAU,EAAE,SAAS,EAAE,CAAM;gBAGlB,MAAM,EAAE,kBAAkB;IASrC,MAAM,CAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS;CAelE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/lsp/completion.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,SAAS,EAAS,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAIL,gBAAgB,EAEjB,MAAM,0BAA0B,CAAC;AAKlC,wBAAgB,gBAAgB,CAAC,MAAM,GAAE;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,SAAS,CAYjB;AAiED,eAAO,MAAM,sBAAsB,EAAE,gBAiFpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../../src/lsp/hover.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAa9C,wBAAgB,aAAa,CAAC,MAAM,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,SAAS,CAK5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lsp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAiC3C,wBAAgB,wBAAwB,IAAI,SAAS,CACnD,SAAS,CACV,EAAE,CAaF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as lsp from 'vscode-languageserver-protocol';
|
|
2
2
|
import { EditorView, ViewPlugin } from '@codemirror/view';
|
|
3
3
|
import { Text } from '@codemirror/state';
|
|
4
|
-
import { type CoreEditor } from '
|
|
5
|
-
import type { ExtensionLsp, LSPClient, LspSource } from '
|
|
4
|
+
import { type CoreEditor } from '@kerebron/editor';
|
|
5
|
+
import type { ExtensionLsp, LSPClient, LspSource } from '@kerebron/extension-lsp';
|
|
6
6
|
import { LSPExtension } from './index.js';
|
|
7
7
|
export declare class LSPPlugin {
|
|
8
8
|
readonly view: EditorView;
|
|
@@ -19,7 +19,7 @@ export declare class LSPPlugin {
|
|
|
19
19
|
uri: string;
|
|
20
20
|
editor: CoreEditor;
|
|
21
21
|
});
|
|
22
|
-
getClient():
|
|
22
|
+
getClient(): any;
|
|
23
23
|
setLang(lang: string): void;
|
|
24
24
|
update(): void;
|
|
25
25
|
docToHTML(value: string | lsp.MarkupContent, defaultKind?: lsp.MarkupKind): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/lsp/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,SAAS,EACV,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,qBAAa,SAAS;IAYlB,QAAQ,CAAC,IAAI,EAAE,UAAU;IAX3B,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;IACjC,IAAI,SAAe;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC;gBAKP,IAAI,EAAE,UAAU,EACzB,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE;QACxC,SAAS,EAAE,YAAY,CAAC;QACxB,YAAY,EAAE,YAAY,CAAC;QAC3B,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,UAAU,CAAC;KACpB;IAwBH,SAAS;IAIT,OAAO,CAAC,IAAI,EAAE,MAAM;IAgBpB,MAAM;IAcN,SAAS,CACP,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC,aAAa,EACjC,WAAW,GAAE,GAAG,CAAC,UAAwB;IAW3C,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,IAA0B,GAAG,GAAG,CAAC,QAAQ;IAMtE,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,GAAG,GAAE,IAA0B,GAAG,MAAM;IAKxE,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG;IAKrC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU;CAG5B;AAED,eAAO,MAAM,SAAS;eAhGL,YAAY;kBACT,YAAY;SACrB,MAAM;YACH,UAAU;EA6FgC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ViewPlugin } from '@codemirror/view';
|
|
2
2
|
import { fromPosition, toPosition } from './pos.js';
|
|
3
3
|
import { escHTML } from './text.js';
|
|
4
|
-
import { PositionMapper } from '
|
|
5
|
-
import { toRawTextResult } from '
|
|
4
|
+
import { PositionMapper } from '@kerebron/extension-markdown/PositionMapper';
|
|
5
|
+
import { toRawTextResult } from '@kerebron/editor/utilities';
|
|
6
6
|
export class LSPPlugin {
|
|
7
7
|
/// @internal
|
|
8
8
|
constructor(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pos.d.ts","sourceRoot":"","sources":["../../src/lsp/pos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,wBAAgB,UAAU,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,QAAQ,CAG/D;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,QAAQ,GAAG,MAAM,CAGjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/lsp/text.ts"],"names":[],"mappings":"AAsBA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,UAKnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/lsp/theme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,uCA8EnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-selections.d.ts","sourceRoot":"","sources":["../src/remote-selections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAK7C,OAAO,EAAE,gBAAgB,EAAmB,MAAM,kBAAkB,CAAC;AAKrE,eAAO,MAAM,sBAAsB,mBAuDjC,CAAC;AA8CH,qBAAa,4BAA4B;IACvC,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,CAAC,MAAM,CAAa;IAC3B,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;IAClC,OAAO,CAAC,sBAAsB,CAAa;gBAE/B,IAAI,EAAE,MAAM,CAAC,UAAU;IAcnC,OAAO;IAOP,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU;CAmHjC;AAED,eAAO,MAAM,iBAAiB,4DAK7B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as cmState from '@codemirror/state';
|
|
2
2
|
import { Node } from 'prosemirror-model';
|
|
3
|
-
import type { CoreEditor } from '
|
|
3
|
+
import type { CoreEditor } from '@kerebron/editor';
|
|
4
4
|
export declare class RemoteSyncConfig {
|
|
5
5
|
getNode: () => Node;
|
|
6
6
|
getPmPos: () => number | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-sync.d.ts","sourceRoot":"","sources":["../src/remote-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,qBAAa,gBAAgB;IAElB,OAAO,EAAE,MAAM,IAAI;IACnB,QAAQ,EAAE,MAAM,MAAM,GAAG,SAAS;IAClC,MAAM,EAAE,UAAU;gBAFlB,OAAO,EAAE,MAAM,IAAI,EACnB,QAAQ,EAAE,MAAM,MAAM,GAAG,SAAS,EAClC,MAAM,EAAE,UAAU;CAG5B;AAED,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,KAAK,CACzC,gBAAgB,EAChB,gBAAgB,CAMd,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { Node } from 'prosemirror-model';
|
|
|
4
4
|
import { EditorView } from 'prosemirror-view';
|
|
5
5
|
import { LanguageSupport } from '@codemirror/language';
|
|
6
6
|
import { Extension as CmExtension } from '@codemirror/state';
|
|
7
|
-
import { type Transport } from '
|
|
7
|
+
import { type Transport } from '@kerebron/extension-lsp';
|
|
8
8
|
export type LanguageLoaders = Record<string, () => Promise<LanguageSupport>>;
|
|
9
9
|
export type Them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,EAAE,IAAI,EACV,IAAI,EAAE,UAAU,EAChB,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,MAAM,MAAM,GAAG,SAAS,KAC7B,MAAM,IAAI,CAAC;IAChB,SAAS,EAAE,CACT,CAAC,EAAE,KAAK,EACR,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,MAAM,GAAG,SAAS,EAChC,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,WAAW,KACb,OAAO,CAAC;IACb,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,KAAK,IAAI,CAAC;IACzE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,KAAK,IAAI,CAAC;IACzE,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { Node } from 'prosemirror-model';
|
|
|
4
4
|
import { EditorView } from '@codemirror/view';
|
|
5
5
|
import { Compartment } from '@codemirror/state';
|
|
6
6
|
import type { CodeBlockSettings, ThemeItem } from './types.js';
|
|
7
|
-
import type { CoreEditor } from '
|
|
7
|
+
import type { CoreEditor } from '@kerebron/editor';
|
|
8
8
|
export declare const CodeBlockNodeName = "code_block";
|
|
9
9
|
export declare function computeChange(oldVal: string, newVal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,GAC3B,QAAQ,YAAY,EACpB,MAAM,UAAU,EAChB,QAAQ,UAAU,YAYnB,CAAC;AAEF,eAAO,MAAM,OAAO,GAClB,MAAM,MAAM,EACZ,QAAQ,UAAU,EAClB,UAAU,iBAAiB,EAC3B,cAAc,WAAW,kBAa1B,CAAC;AAcF,eAAO,MAAM,QAAQ,GACnB,QAAQ,UAAU,EAClB,aAAa,WAAW,EACxB,OAAO,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,kBAOpC,CAAC;AA2BF,eAAO,MAAM,eAAe,GAC1B,OAAO,WAAW,EAClB,UAAU,CAAC,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,EACjD,YAAY,MAAM,YA4DnB,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,OAAO,WAAW,EAClB,UAAU,CAAC,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,YAwBlD,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,OAAO,WAAW,EAClB,UAAU,CAAC,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,EACjD,YAAY,MAAM,YAanB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAC;AAEF,eAAO,MAAM,uBAAuB;iBACF,OAAO;CACxC,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;iBAHM,OAAO;CAMxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,21 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kerebron/extension-codemirror",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"module": "./esm/
|
|
5
|
+
"module": "./esm/ExtensionCodeMirror.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"import": "./esm/
|
|
8
|
+
"import": "./esm/ExtensionCodeMirror.js"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"scripts": {},
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@codemirror/autocomplete": "6.18.6",
|
|
14
|
+
"@codemirror/commands": "6.8.1",
|
|
15
|
+
"@codemirror/lang-cpp": "latest",
|
|
16
|
+
"@codemirror/lang-css": "latest",
|
|
17
|
+
"@codemirror/lang-html": "latest",
|
|
18
|
+
"@codemirror/lang-java": "latest",
|
|
19
|
+
"@codemirror/lang-javascript": "6.2.3",
|
|
20
|
+
"@codemirror/lang-json": "latest",
|
|
21
|
+
"@codemirror/lang-lezer": "latest",
|
|
22
|
+
"@codemirror/lang-markdown": "latest",
|
|
23
|
+
"@codemirror/lang-php": "latest",
|
|
24
|
+
"@codemirror/lang-python": "latest",
|
|
25
|
+
"@codemirror/lang-rust": "latest",
|
|
26
|
+
"@codemirror/lang-sql": "latest",
|
|
27
|
+
"@codemirror/lang-wast": "latest",
|
|
28
|
+
"@codemirror/lang-xml": "latest",
|
|
29
|
+
"@codemirror/language": "6.11.0",
|
|
30
|
+
"@codemirror/legacy-modes": "6.5.0",
|
|
31
|
+
"@codemirror/search": "6.5.10",
|
|
32
|
+
"@codemirror/state": "6.5.2",
|
|
33
|
+
"@codemirror/view": "6.38.1",
|
|
34
|
+
"@kerebron/editor": "0.4.6",
|
|
35
|
+
"@kerebron/extension-basic-editor": "0.4.6",
|
|
36
|
+
"@kerebron/extension-lsp": "0.4.6",
|
|
37
|
+
"@kerebron/extension-markdown": "0.4.6",
|
|
38
|
+
"lib0": "0.2.109",
|
|
13
39
|
"prosemirror-model": "1.25.3",
|
|
14
40
|
"prosemirror-state": "1.4.3",
|
|
15
|
-
"prosemirror-transform": "1.10.4",
|
|
16
41
|
"prosemirror-view": "1.40.0",
|
|
17
|
-
"vscode-languageserver-protocol": "3.17.5"
|
|
18
|
-
"web-tree-sitter": "0.24.7"
|
|
42
|
+
"vscode-languageserver-protocol": "3.17.5"
|
|
19
43
|
},
|
|
20
44
|
"devDependencies": {
|
|
21
45
|
"@types/node": "^20.9.0"
|
package/esm/_dnt.polyfills.d.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
|
|
3
|
-
* but instead of using npm to install additional dependencies,
|
|
4
|
-
* this approach manually consolidates cjs/mjs/d.ts into a single file.
|
|
5
|
-
*
|
|
6
|
-
* Note that this code might be imported multiple times
|
|
7
|
-
* (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
|
|
8
|
-
* or Node.js might dynamically clear the cache and then force a require).
|
|
9
|
-
* Therefore, it's important to avoid redundant writes to global objects.
|
|
10
|
-
* Additionally, consider that commonjs is used alongside esm,
|
|
11
|
-
* so the two ponyfill functions are stored independently in two separate global objects.
|
|
12
|
-
*/
|
|
13
|
-
import { createRequire } from "node:module";
|
|
14
|
-
import { type URL } from "node:url";
|
|
15
|
-
declare global {
|
|
16
|
-
interface ImportMeta {
|
|
17
|
-
/** A string representation of the fully qualified module URL. When the
|
|
18
|
-
* module is loaded locally, the value will be a file URL (e.g.
|
|
19
|
-
* `file:///path/module.ts`).
|
|
20
|
-
*
|
|
21
|
-
* You can also parse the string as a URL to determine more information about
|
|
22
|
-
* how the current module was loaded. For example to determine if a module was
|
|
23
|
-
* local or not:
|
|
24
|
-
*
|
|
25
|
-
* ```ts
|
|
26
|
-
* const url = new URL(import.meta.url);
|
|
27
|
-
* if (url.protocol === "file:") {
|
|
28
|
-
* console.log("this module was loaded locally");
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
url: string;
|
|
33
|
-
/**
|
|
34
|
-
* A function that returns resolved specifier as if it would be imported
|
|
35
|
-
* using `import(specifier)`.
|
|
36
|
-
*
|
|
37
|
-
* ```ts
|
|
38
|
-
* console.log(import.meta.resolve("./foo.js"));
|
|
39
|
-
* // file:///dev/foo.js
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @param specifier The module specifier to resolve relative to `parent`.
|
|
43
|
-
* @param parent The absolute parent module URL to resolve from.
|
|
44
|
-
* @returns The absolute (`file:`) URL string for the resolved module.
|
|
45
|
-
*/
|
|
46
|
-
resolve(specifier: string, parent?: string | URL | undefined): string;
|
|
47
|
-
/** A flag that indicates if the current module is the main module that was
|
|
48
|
-
* called when starting the program under Deno.
|
|
49
|
-
*
|
|
50
|
-
* ```ts
|
|
51
|
-
* if (import.meta.main) {
|
|
52
|
-
* // this was loaded as the main module, maybe do some bootstrapping
|
|
53
|
-
* }
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
main: boolean;
|
|
57
|
-
/** The absolute path of the current module.
|
|
58
|
-
*
|
|
59
|
-
* This property is only provided for local modules (ie. using `file://` URLs).
|
|
60
|
-
*
|
|
61
|
-
* Example:
|
|
62
|
-
* ```
|
|
63
|
-
* // Unix
|
|
64
|
-
* console.log(import.meta.filename); // /home/alice/my_module.ts
|
|
65
|
-
*
|
|
66
|
-
* // Windows
|
|
67
|
-
* console.log(import.meta.filename); // C:\alice\my_module.ts
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
filename: string;
|
|
71
|
-
/** The absolute path of the directory containing the current module.
|
|
72
|
-
*
|
|
73
|
-
* This property is only provided for local modules (ie. using `file://` URLs).
|
|
74
|
-
*
|
|
75
|
-
* * Example:
|
|
76
|
-
* ```
|
|
77
|
-
* // Unix
|
|
78
|
-
* console.log(import.meta.dirname); // /home/alice
|
|
79
|
-
*
|
|
80
|
-
* // Windows
|
|
81
|
-
* console.log(import.meta.dirname); // C:\alice
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
dirname: string;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
type NodeRequest = ReturnType<typeof createRequire>;
|
|
88
|
-
type NodeModule = NonNullable<NodeRequest["main"]>;
|
|
89
|
-
interface ImportMetaPonyfillCommonjs {
|
|
90
|
-
(require: NodeRequest, module: NodeModule): ImportMeta;
|
|
91
|
-
}
|
|
92
|
-
interface ImportMetaPonyfillEsmodule {
|
|
93
|
-
(importMeta: ImportMeta): ImportMeta;
|
|
94
|
-
}
|
|
95
|
-
interface ImportMetaPonyfill extends ImportMetaPonyfillCommonjs, ImportMetaPonyfillEsmodule {
|
|
96
|
-
}
|
|
97
|
-
export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
|
|
98
|
-
export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
|
|
99
|
-
export declare let import_meta_ponyfill: ImportMetaPonyfill;
|
|
100
|
-
export {};
|
|
101
|
-
//# sourceMappingURL=_dnt.polyfills.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAgC,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAGlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB;;;;;;;;;;;;;;WAcG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;;;;;;;;;;;WAYG;QACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,GAAG,MAAM,CAAC;QACtE;;;;;;;;WAQG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;;;;;;;WAYG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;;;;;;;;;WAYG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,KAAK,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AACnD,UAAU,0BAA0B;IAClC,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CACxD;AACD,UAAU,0BAA0B;IAClC,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAAC;CACtC;AACD,UAAU,kBACR,SAAQ,0BAA0B,EAAE,0BAA0B;CAC/D;AAiBD,eAAO,IAAI,6BAA6B,EA2BnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,6BAA6B,EA4DnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,oBAAoB,EAoB1B,kBAAkB,CAAC"}
|
package/esm/_dnt.polyfills.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
|
|
3
|
-
* but instead of using npm to install additional dependencies,
|
|
4
|
-
* this approach manually consolidates cjs/mjs/d.ts into a single file.
|
|
5
|
-
*
|
|
6
|
-
* Note that this code might be imported multiple times
|
|
7
|
-
* (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
|
|
8
|
-
* or Node.js might dynamically clear the cache and then force a require).
|
|
9
|
-
* Therefore, it's important to avoid redundant writes to global objects.
|
|
10
|
-
* Additionally, consider that commonjs is used alongside esm,
|
|
11
|
-
* so the two ponyfill functions are stored independently in two separate global objects.
|
|
12
|
-
*/
|
|
13
|
-
//@ts-ignore
|
|
14
|
-
import { createRequire } from "node:module";
|
|
15
|
-
//@ts-ignore
|
|
16
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
17
|
-
//@ts-ignore
|
|
18
|
-
import { dirname } from "node:path";
|
|
19
|
-
const defineGlobalPonyfill = (symbolFor, fn) => {
|
|
20
|
-
if (!Reflect.has(globalThis, Symbol.for(symbolFor))) {
|
|
21
|
-
Object.defineProperty(globalThis, Symbol.for(symbolFor), {
|
|
22
|
-
configurable: true,
|
|
23
|
-
get() {
|
|
24
|
-
return fn;
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
export let import_meta_ponyfill_commonjs = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-commonjs")) ??
|
|
30
|
-
(() => {
|
|
31
|
-
const moduleImportMetaWM = new WeakMap();
|
|
32
|
-
return (require, module) => {
|
|
33
|
-
let importMetaCache = moduleImportMetaWM.get(module);
|
|
34
|
-
if (importMetaCache == null) {
|
|
35
|
-
const importMeta = Object.assign(Object.create(null), {
|
|
36
|
-
url: pathToFileURL(module.filename).href,
|
|
37
|
-
main: require.main == module,
|
|
38
|
-
resolve: (specifier, parentURL = importMeta.url) => {
|
|
39
|
-
return pathToFileURL((importMeta.url === parentURL
|
|
40
|
-
? require
|
|
41
|
-
: createRequire(parentURL))
|
|
42
|
-
.resolve(specifier)).href;
|
|
43
|
-
},
|
|
44
|
-
filename: module.filename,
|
|
45
|
-
dirname: module.path,
|
|
46
|
-
});
|
|
47
|
-
moduleImportMetaWM.set(module, importMeta);
|
|
48
|
-
importMetaCache = importMeta;
|
|
49
|
-
}
|
|
50
|
-
return importMetaCache;
|
|
51
|
-
};
|
|
52
|
-
})());
|
|
53
|
-
defineGlobalPonyfill("import-meta-ponyfill-commonjs", import_meta_ponyfill_commonjs);
|
|
54
|
-
export let import_meta_ponyfill_esmodule = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-esmodule")) ??
|
|
55
|
-
((importMeta) => {
|
|
56
|
-
const resolveFunStr = String(importMeta.resolve);
|
|
57
|
-
const shimWs = new WeakSet();
|
|
58
|
-
//@ts-ignore
|
|
59
|
-
const mainUrl = ("file:///" + process.argv[1].replace(/\\/g, "/"))
|
|
60
|
-
.replace(/\/{3,}/, "///");
|
|
61
|
-
const commonShim = (importMeta) => {
|
|
62
|
-
if (typeof importMeta.main !== "boolean") {
|
|
63
|
-
importMeta.main = importMeta.url === mainUrl;
|
|
64
|
-
}
|
|
65
|
-
if (typeof importMeta.filename !== "string") {
|
|
66
|
-
importMeta.filename = fileURLToPath(importMeta.url);
|
|
67
|
-
importMeta.dirname = dirname(importMeta.filename);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
if (
|
|
71
|
-
// v16.2.0+, v14.18.0+: Add support for WHATWG URL object to parentURL parameter.
|
|
72
|
-
resolveFunStr === "undefined" ||
|
|
73
|
-
// v20.0.0+, v18.19.0+"" This API now returns a string synchronously instead of a Promise.
|
|
74
|
-
resolveFunStr.startsWith("async")
|
|
75
|
-
// enable by --experimental-import-meta-resolve flag
|
|
76
|
-
) {
|
|
77
|
-
import_meta_ponyfill_esmodule = (importMeta) => {
|
|
78
|
-
if (!shimWs.has(importMeta)) {
|
|
79
|
-
shimWs.add(importMeta);
|
|
80
|
-
const importMetaUrlRequire = {
|
|
81
|
-
url: importMeta.url,
|
|
82
|
-
require: createRequire(importMeta.url),
|
|
83
|
-
};
|
|
84
|
-
importMeta.resolve = function resolve(specifier, parentURL = importMeta.url) {
|
|
85
|
-
return pathToFileURL((importMetaUrlRequire.url === parentURL
|
|
86
|
-
? importMetaUrlRequire.require
|
|
87
|
-
: createRequire(parentURL)).resolve(specifier)).href;
|
|
88
|
-
};
|
|
89
|
-
commonShim(importMeta);
|
|
90
|
-
}
|
|
91
|
-
return importMeta;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
/// native support
|
|
96
|
-
import_meta_ponyfill_esmodule = (importMeta) => {
|
|
97
|
-
if (!shimWs.has(importMeta)) {
|
|
98
|
-
shimWs.add(importMeta);
|
|
99
|
-
commonShim(importMeta);
|
|
100
|
-
}
|
|
101
|
-
return importMeta;
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
return import_meta_ponyfill_esmodule(importMeta);
|
|
105
|
-
}));
|
|
106
|
-
defineGlobalPonyfill("import-meta-ponyfill-esmodule", import_meta_ponyfill_esmodule);
|
|
107
|
-
export let import_meta_ponyfill = ((...args) => {
|
|
108
|
-
const _MODULE = (() => {
|
|
109
|
-
if (typeof require === "function" && typeof module === "object") {
|
|
110
|
-
return "commonjs";
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
// eval("typeof import.meta");
|
|
114
|
-
return "esmodule";
|
|
115
|
-
}
|
|
116
|
-
})();
|
|
117
|
-
if (_MODULE === "commonjs") {
|
|
118
|
-
//@ts-ignore
|
|
119
|
-
import_meta_ponyfill = (r, m) => import_meta_ponyfill_commonjs(r, m);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
//@ts-ignore
|
|
123
|
-
import_meta_ponyfill = (im) => import_meta_ponyfill_esmodule(im);
|
|
124
|
-
}
|
|
125
|
-
//@ts-ignore
|
|
126
|
-
return import_meta_ponyfill(...args);
|
|
127
|
-
});
|
package/esm/_dnt.shims.d.ts
DELETED
package/esm/_dnt.shims.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gCAA2C,CAAC"}
|
package/esm/_dnt.shims.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const dntGlobals = {};
|
|
2
|
-
export const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
|
|
3
|
-
function createMergeProxy(baseObj, extObj) {
|
|
4
|
-
return new Proxy(baseObj, {
|
|
5
|
-
get(_target, prop, _receiver) {
|
|
6
|
-
if (prop in extObj) {
|
|
7
|
-
return extObj[prop];
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
return baseObj[prop];
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
set(_target, prop, value) {
|
|
14
|
-
if (prop in extObj) {
|
|
15
|
-
delete extObj[prop];
|
|
16
|
-
}
|
|
17
|
-
baseObj[prop] = value;
|
|
18
|
-
return true;
|
|
19
|
-
},
|
|
20
|
-
deleteProperty(_target, prop) {
|
|
21
|
-
let success = false;
|
|
22
|
-
if (prop in extObj) {
|
|
23
|
-
delete extObj[prop];
|
|
24
|
-
success = true;
|
|
25
|
-
}
|
|
26
|
-
if (prop in baseObj) {
|
|
27
|
-
delete baseObj[prop];
|
|
28
|
-
success = true;
|
|
29
|
-
}
|
|
30
|
-
return success;
|
|
31
|
-
},
|
|
32
|
-
ownKeys(_target) {
|
|
33
|
-
const baseKeys = Reflect.ownKeys(baseObj);
|
|
34
|
-
const extKeys = Reflect.ownKeys(extObj);
|
|
35
|
-
const extKeysSet = new Set(extKeys);
|
|
36
|
-
return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
|
|
37
|
-
},
|
|
38
|
-
defineProperty(_target, prop, desc) {
|
|
39
|
-
if (prop in extObj) {
|
|
40
|
-
delete extObj[prop];
|
|
41
|
-
}
|
|
42
|
-
Reflect.defineProperty(baseObj, prop, desc);
|
|
43
|
-
return true;
|
|
44
|
-
},
|
|
45
|
-
getOwnPropertyDescriptor(_target, prop) {
|
|
46
|
-
if (prop in extObj) {
|
|
47
|
-
return Reflect.getOwnPropertyDescriptor(extObj, prop);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return Reflect.getOwnPropertyDescriptor(baseObj, prop);
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
has(_target, prop) {
|
|
54
|
-
return prop in extObj || prop in baseObj;
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { EditorView } from 'prosemirror-view';
|
|
2
|
-
import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
|
|
3
|
-
import type { EditorConfig, JSONContent } from './types.js';
|
|
4
|
-
import { EditorState, Transaction } from 'prosemirror-state';
|
|
5
|
-
import { DummyEditorView } from './DummyEditorView.js';
|
|
6
|
-
import { ChainedCommands } from './commands/mod.js';
|
|
7
|
-
import { Extension } from './Extension.js';
|
|
8
|
-
import { EditorUi } from './ui.js';
|
|
9
|
-
export declare class CoreEditor extends EventTarget {
|
|
10
|
-
readonly config: Partial<EditorConfig>;
|
|
11
|
-
private extensionManager;
|
|
12
|
-
private commandManager;
|
|
13
|
-
view: EditorView | DummyEditorView;
|
|
14
|
-
state: EditorState;
|
|
15
|
-
ui: EditorUi;
|
|
16
|
-
constructor(config?: Partial<EditorConfig>);
|
|
17
|
-
getExtension<T extends Extension>(name: string): T | undefined;
|
|
18
|
-
get schema(): Schema<any, any>;
|
|
19
|
-
get run(): {
|
|
20
|
-
[key: string]: (...args: any[]) => boolean;
|
|
21
|
-
};
|
|
22
|
-
get commandFactories(): {
|
|
23
|
-
[key: string]: import("./commands/types.js").CommandFactory;
|
|
24
|
-
};
|
|
25
|
-
chain(): ChainedCommands;
|
|
26
|
-
can(): ChainedCommands;
|
|
27
|
-
private createView;
|
|
28
|
-
dispatchTransaction(transaction: Transaction): void;
|
|
29
|
-
private setupPlugins;
|
|
30
|
-
clearDocument(): void;
|
|
31
|
-
setDocument(content: any): void;
|
|
32
|
-
getDocument(): ProseMirrorNode;
|
|
33
|
-
loadDocument(mediaType: string, content: Uint8Array): Promise<void>;
|
|
34
|
-
saveDocument(mediaType: string): Promise<Uint8Array>;
|
|
35
|
-
getJSON(): JSONContent;
|
|
36
|
-
clone(options?: Partial<EditorConfig>): CoreEditor;
|
|
37
|
-
debug(doc?: ProseMirrorNode): void;
|
|
38
|
-
destroy(): void;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=CoreEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CoreEditor.d.ts","sourceRoot":"","sources":["../../../src/editor/src/CoreEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGpE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,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