@impermeable/waterproof-editor 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/InputAreaStatus.d.ts +7 -7
- package/dist/api/InputAreaStatus.d.ts.map +1 -1
- package/dist/api/MessageHandlerEditor.d.ts +29 -0
- package/dist/api/MessageHandlerEditor.d.ts.map +1 -0
- package/dist/api/index.d.ts +6 -7
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/types.d.ts +125 -54
- package/dist/api/types.d.ts.map +1 -1
- package/dist/autocomplete/renderSymbol.d.ts +1 -2
- package/dist/autocomplete/renderSymbol.d.ts.map +1 -1
- package/dist/codeview/busy-indicator.d.ts +113 -0
- package/dist/codeview/busy-indicator.d.ts.map +1 -0
- package/dist/codeview/code-plugin.d.ts +5 -5
- package/dist/codeview/code-plugin.d.ts.map +1 -1
- package/dist/codeview/nodeview.d.ts +11 -2
- package/dist/codeview/nodeview.d.ts.map +1 -1
- package/dist/commands/command-helpers.d.ts +7 -22
- package/dist/commands/command-helpers.d.ts.map +1 -1
- package/dist/commands/commands.d.ts +6 -28
- package/dist/commands/commands.d.ts.map +1 -1
- package/dist/commands/index.d.ts +1 -2
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/insert-command.d.ts +7 -33
- package/dist/commands/insert-command.d.ts.map +1 -1
- package/dist/commands/types.d.ts +2 -2
- package/dist/commands/types.d.ts.map +1 -1
- package/dist/commands/utils.d.ts +2 -0
- package/dist/commands/utils.d.ts.map +1 -1
- package/dist/document/blocks/block.d.ts +12 -6
- package/dist/document/blocks/block.d.ts.map +1 -1
- package/dist/document/blocks/blocktypes.d.ts +78 -35
- package/dist/document/blocks/blocktypes.d.ts.map +1 -1
- package/dist/document/blocks/index.d.ts +2 -1
- package/dist/document/blocks/index.d.ts.map +1 -1
- package/dist/document/blocks/schema.d.ts +4 -7
- package/dist/document/blocks/schema.d.ts.map +1 -1
- package/dist/document/blocks/typeguards.d.ts +4 -5
- package/dist/document/blocks/typeguards.d.ts.map +1 -1
- package/dist/document/utils.d.ts +6 -10
- package/dist/document/utils.d.ts.map +1 -1
- package/dist/edit-utils.d.ts +10 -0
- package/dist/edit-utils.d.ts.map +1 -0
- package/dist/editor.d.ts +49 -31
- package/dist/editor.d.ts.map +1 -1
- package/dist/embedded-codemirror/embedded-codemirror-keymap.d.ts.map +1 -1
- package/dist/embedded-codemirror/embeddedCodemirror.d.ts +2 -2
- package/dist/embedded-codemirror/embeddedCodemirror.d.ts.map +1 -1
- package/dist/hinting/hint-plugin.d.ts +1 -2
- package/dist/hinting/hint-plugin.d.ts.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +62 -82
- package/dist/inputArea.d.ts +2 -3
- package/dist/inputArea.d.ts.map +1 -1
- package/dist/mapping/Tree.d.ts +21 -5
- package/dist/mapping/Tree.d.ts.map +1 -1
- package/dist/mapping/mapping.d.ts +17 -0
- package/dist/mapping/mapping.d.ts.map +1 -1
- package/dist/mapping/nodeUpdate.d.ts +5 -5
- package/dist/mapping/nodeUpdate.d.ts.map +1 -1
- package/dist/mapping/textUpdate.d.ts +8 -0
- package/dist/mapping/textUpdate.d.ts.map +1 -1
- package/dist/mapping/types.d.ts.map +1 -1
- package/dist/markdown-defaults/index.d.ts.map +1 -1
- package/dist/markdown-defaults/statemachine.d.ts +11 -2
- package/dist/markdown-defaults/statemachine.d.ts.map +1 -1
- package/dist/markup-views/index.d.ts +1 -4
- package/dist/markup-views/index.d.ts.map +1 -1
- package/dist/markup-views/switchable-view/EditableView.d.ts.map +1 -1
- package/dist/markup-views/switchable-view/RenderedView.d.ts +1 -1
- package/dist/markup-views/switchable-view/RenderedView.d.ts.map +1 -1
- package/dist/markup-views/switchable-view/SwitchableView.d.ts +5 -8
- package/dist/markup-views/switchable-view/SwitchableView.d.ts.map +1 -1
- package/dist/menubar/menubar.d.ts +2 -4
- package/dist/menubar/menubar.d.ts.map +1 -1
- package/dist/progressBar.d.ts +31 -11
- package/dist/progressBar.d.ts.map +1 -1
- package/dist/qedStatus.d.ts.map +1 -1
- package/dist/schema/schema.d.ts +4 -3
- package/dist/schema/schema.d.ts.map +1 -1
- package/dist/serialization/DocumentSerializer.d.ts +43 -5
- package/dist/serialization/DocumentSerializer.d.ts.map +1 -1
- package/dist/styles/index.d.ts +3 -5
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/waterproof-defaults.css +2 -0
- package/dist/translation/index.d.ts +1 -1
- package/dist/translation/index.d.ts.map +1 -1
- package/impermeable-waterproof-editor-0.14.0.tgz +0 -0
- package/package.json +33 -10
- package/tsconfig.test.json +14 -0
- package/dist/codeview/progress-indicator.d.ts +0 -19
- package/dist/codeview/progress-indicator.d.ts.map +0 -1
- package/dist/mapping/newmapping.d.ts +0 -62
- package/dist/mapping/newmapping.d.ts.map +0 -1
- package/dist/src/api/Completions.d.ts +0 -21
- package/dist/src/api/Completions.d.ts.map +0 -1
- package/dist/src/api/DocChange.d.ts +0 -19
- package/dist/src/api/DocChange.d.ts.map +0 -1
- package/dist/src/api/FileFormat.d.ts +0 -10
- package/dist/src/api/FileFormat.d.ts.map +0 -1
- package/dist/src/api/InputAreaStatus.d.ts +0 -14
- package/dist/src/api/InputAreaStatus.d.ts.map +0 -1
- package/dist/src/api/LineNumber.d.ts +0 -10
- package/dist/src/api/LineNumber.d.ts.map +0 -1
- package/dist/src/api/ServerStatus.d.ts +0 -18
- package/dist/src/api/ServerStatus.d.ts.map +0 -1
- package/dist/src/api/Severity.d.ts +0 -12
- package/dist/src/api/Severity.d.ts.map +0 -1
- package/dist/src/api/index.d.ts +0 -12
- package/dist/src/api/index.d.ts.map +0 -1
- package/dist/src/api/types.d.ts +0 -119
- package/dist/src/api/types.d.ts.map +0 -1
- package/dist/src/autocomplete/coqTerms.d.ts +0 -3
- package/dist/src/autocomplete/coqTerms.d.ts.map +0 -1
- package/dist/src/autocomplete/emojis.d.ts +0 -10
- package/dist/src/autocomplete/emojis.d.ts.map +0 -1
- package/dist/src/autocomplete/index.d.ts +0 -2
- package/dist/src/autocomplete/index.d.ts.map +0 -1
- package/dist/src/autocomplete/renderSymbol.d.ts +0 -7
- package/dist/src/autocomplete/renderSymbol.d.ts.map +0 -1
- package/dist/src/autocomplete/symbols.d.ts +0 -7
- package/dist/src/autocomplete/symbols.d.ts.map +0 -1
- package/dist/src/codeview/code-plugin.d.ts +0 -28
- package/dist/src/codeview/code-plugin.d.ts.map +0 -1
- package/dist/src/codeview/color-scheme.d.ts +0 -6
- package/dist/src/codeview/color-scheme.d.ts.map +0 -1
- package/dist/src/codeview/debouncer.d.ts +0 -8
- package/dist/src/codeview/debouncer.d.ts.map +0 -1
- package/dist/src/codeview/index.d.ts +0 -3
- package/dist/src/codeview/index.d.ts.map +0 -1
- package/dist/src/codeview/lang-pack/index.d.ts +0 -8
- package/dist/src/codeview/lang-pack/index.d.ts.map +0 -1
- package/dist/src/codeview/lang-pack/print-grammar.d.ts +0 -2
- package/dist/src/codeview/lang-pack/print-grammar.d.ts.map +0 -1
- package/dist/src/codeview/lang-pack/syntax.d.ts +0 -3
- package/dist/src/codeview/lang-pack/syntax.d.ts.map +0 -1
- package/dist/src/codeview/lang-pack/syntax.terms.d.ts +0 -2
- package/dist/src/codeview/lang-pack/syntax.terms.d.ts.map +0 -1
- package/dist/src/codeview/nodeview.d.ts +0 -63
- package/dist/src/codeview/nodeview.d.ts.map +0 -1
- package/dist/src/commands/command-helpers.d.ts +0 -48
- package/dist/src/commands/command-helpers.d.ts.map +0 -1
- package/dist/src/commands/commands.d.ts +0 -30
- package/dist/src/commands/commands.d.ts.map +0 -1
- package/dist/src/commands/delete-command.d.ts +0 -4
- package/dist/src/commands/delete-command.d.ts.map +0 -1
- package/dist/src/commands/index.d.ts +0 -4
- package/dist/src/commands/index.d.ts.map +0 -1
- package/dist/src/commands/insert-command.d.ts +0 -34
- package/dist/src/commands/insert-command.d.ts.map +0 -1
- package/dist/src/commands/types.d.ts +0 -15
- package/dist/src/commands/types.d.ts.map +0 -1
- package/dist/src/context-menu/index.d.ts +0 -2
- package/dist/src/context-menu/index.d.ts.map +0 -1
- package/dist/src/context-menu/menu.d.ts +0 -8
- package/dist/src/context-menu/menu.d.ts.map +0 -1
- package/dist/src/document/blocks/block.d.ts +0 -24
- package/dist/src/document/blocks/block.d.ts.map +0 -1
- package/dist/src/document/blocks/blocktypes.d.ts +0 -78
- package/dist/src/document/blocks/blocktypes.d.ts.map +0 -1
- package/dist/src/document/blocks/index.d.ts +0 -3
- package/dist/src/document/blocks/index.d.ts.map +0 -1
- package/dist/src/document/blocks/schema.d.ts +0 -21
- package/dist/src/document/blocks/schema.d.ts.map +0 -1
- package/dist/src/document/blocks/typeguards.d.ts +0 -11
- package/dist/src/document/blocks/typeguards.d.ts.map +0 -1
- package/dist/src/document/construct-document.d.ts +0 -4
- package/dist/src/document/construct-document.d.ts.map +0 -1
- package/dist/src/document/index.d.ts +0 -5
- package/dist/src/document/index.d.ts.map +0 -1
- package/dist/src/document/utils.d.ts +0 -49
- package/dist/src/document/utils.d.ts.map +0 -1
- package/dist/src/documentProgressDecorator.d.ts +0 -9
- package/dist/src/documentProgressDecorator.d.ts.map +0 -1
- package/dist/src/editor.d.ts +0 -154
- package/dist/src/editor.d.ts.map +0 -1
- package/dist/src/embedded-codemirror/embedded-codemirror-keymap.d.ts +0 -9
- package/dist/src/embedded-codemirror/embedded-codemirror-keymap.d.ts.map +0 -1
- package/dist/src/embedded-codemirror/embeddedCodemirror.d.ts +0 -40
- package/dist/src/embedded-codemirror/embeddedCodemirror.d.ts.map +0 -1
- package/dist/src/embedded-codemirror/index.d.ts +0 -3
- package/dist/src/embedded-codemirror/index.d.ts.map +0 -1
- package/dist/src/embedded-codemirror/types.d.ts +0 -9
- package/dist/src/embedded-codemirror/types.d.ts.map +0 -1
- package/dist/src/hinting/hint-plugin.d.ts +0 -9
- package/dist/src/hinting/hint-plugin.d.ts.map +0 -1
- package/dist/src/hinting/index.d.ts +0 -2
- package/dist/src/hinting/index.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -6
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/inputArea.d.ts +0 -14
- package/dist/src/inputArea.d.ts.map +0 -1
- package/dist/src/markup-views/CoqdocPlugin.d.ts +0 -19
- package/dist/src/markup-views/CoqdocPlugin.d.ts.map +0 -1
- package/dist/src/markup-views/CoqdocView.d.ts +0 -15
- package/dist/src/markup-views/CoqdocView.d.ts.map +0 -1
- package/dist/src/markup-views/MarkdownPlugin.d.ts +0 -21
- package/dist/src/markup-views/MarkdownPlugin.d.ts.map +0 -1
- package/dist/src/markup-views/MarkdownView.d.ts +0 -15
- package/dist/src/markup-views/MarkdownView.d.ts.map +0 -1
- package/dist/src/markup-views/index.d.ts +0 -5
- package/dist/src/markup-views/index.d.ts.map +0 -1
- package/dist/src/markup-views/switchable-view/EditableView.d.ts +0 -22
- package/dist/src/markup-views/switchable-view/EditableView.d.ts.map +0 -1
- package/dist/src/markup-views/switchable-view/EditorTheme.d.ts +0 -8
- package/dist/src/markup-views/switchable-view/EditorTheme.d.ts.map +0 -1
- package/dist/src/markup-views/switchable-view/MarkdownSchema.d.ts +0 -8
- package/dist/src/markup-views/switchable-view/MarkdownSchema.d.ts.map +0 -1
- package/dist/src/markup-views/switchable-view/RenderedView.d.ts +0 -13
- package/dist/src/markup-views/switchable-view/RenderedView.d.ts.map +0 -1
- package/dist/src/markup-views/switchable-view/SwitchableView.d.ts +0 -62
- package/dist/src/markup-views/switchable-view/SwitchableView.d.ts.map +0 -1
- package/dist/src/markup-views/switchable-view/index.d.ts +0 -2
- package/dist/src/markup-views/switchable-view/index.d.ts.map +0 -1
- package/dist/src/math-integration/index.d.ts +0 -2
- package/dist/src/math-integration/index.d.ts.map +0 -1
- package/dist/src/math-integration/nodespecs.d.ts +0 -4
- package/dist/src/math-integration/nodespecs.d.ts.map +0 -1
- package/dist/src/menubar/index.d.ts +0 -2
- package/dist/src/menubar/index.d.ts.map +0 -1
- package/dist/src/menubar/menubar.d.ts +0 -25
- package/dist/src/menubar/menubar.d.ts.map +0 -1
- package/dist/src/osType.d.ts +0 -8
- package/dist/src/osType.d.ts.map +0 -1
- package/dist/src/progressBar.d.ts +0 -13
- package/dist/src/progressBar.d.ts.map +0 -1
- package/dist/src/qedStatus.d.ts +0 -9
- package/dist/src/qedStatus.d.ts.map +0 -1
- package/dist/src/schema/index.d.ts +0 -2
- package/dist/src/schema/index.d.ts.map +0 -1
- package/dist/src/schema/schema-nodes.d.ts +0 -1
- package/dist/src/schema/schema-nodes.d.ts.map +0 -1
- package/dist/src/schema/schema.d.ts +0 -23
- package/dist/src/schema/schema.d.ts.map +0 -1
- package/dist/src/styles/index.d.ts +0 -17
- package/dist/src/styles/index.d.ts.map +0 -1
- package/dist/src/translation/Translator.d.ts +0 -12
- package/dist/src/translation/Translator.d.ts.map +0 -1
- package/dist/src/translation/index.d.ts +0 -2
- package/dist/src/translation/index.d.ts.map +0 -1
- package/dist/src/translation/toProsemirror/index.d.ts +0 -2
- package/dist/src/translation/toProsemirror/index.d.ts.map +0 -1
- package/dist/src/translation/toProsemirror/mvFileToProsemirror.d.ts +0 -2
- package/dist/src/translation/toProsemirror/mvFileToProsemirror.d.ts.map +0 -1
- package/dist/src/translation/toProsemirror/parseAsMv.d.ts +0 -7
- package/dist/src/translation/toProsemirror/parseAsMv.d.ts.map +0 -1
- package/dist/src/translation/toProsemirror/parser.d.ts +0 -3
- package/dist/src/translation/toProsemirror/parser.d.ts.map +0 -1
- package/dist/src/translation/types.d.ts +0 -12
- package/dist/src/translation/types.d.ts.map +0 -1
- package/dist/src/utilities/index.d.ts +0 -2
- package/dist/src/utilities/index.d.ts.map +0 -1
- package/dist/src/utilities/prosemirror.d.ts +0 -13
- package/dist/src/utilities/prosemirror.d.ts.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/jest-thingie +0 -0
package/dist/src/editor.d.ts
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { Node as ProseNode } from "prosemirror-model";
|
|
2
|
-
import { EditorState, Plugin, Selection } from "prosemirror-state";
|
|
3
|
-
import { LineNumber, InputAreaStatus, SimpleProgressParams, HistoryChange, Severity, OffsetDiagnostic } from "./api";
|
|
4
|
-
import "katex/dist/katex.min.css";
|
|
5
|
-
import "prosemirror-view/style/prosemirror.css";
|
|
6
|
-
import "./styles";
|
|
7
|
-
import { WaterproofEditorConfig, ThemeStyle } from "./api";
|
|
8
|
-
import { Completion } from "@codemirror/autocomplete";
|
|
9
|
-
import { ServerStatus } from "./api";
|
|
10
|
-
/** Type that contains a coq diagnostics object fit for use in the ProseMirror editor context. */
|
|
11
|
-
export type DiagnosticObjectProse = {
|
|
12
|
-
message: string;
|
|
13
|
-
start: number;
|
|
14
|
-
end: number;
|
|
15
|
-
severity: Severity;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* WaterproofEditor class. Configured via the WaterproofEditorConfig object.
|
|
19
|
-
*/
|
|
20
|
-
export declare class WaterproofEditor {
|
|
21
|
-
private readonly initialThemeStyle;
|
|
22
|
-
private _editorConfig;
|
|
23
|
-
private _schema;
|
|
24
|
-
private _editorElem;
|
|
25
|
-
private _view;
|
|
26
|
-
private _translator;
|
|
27
|
-
private _mapping;
|
|
28
|
-
private readonly _userOS;
|
|
29
|
-
private currentProseDiagnostics;
|
|
30
|
-
get diagnosticsVersion(): number;
|
|
31
|
-
private diagnosticsUpdateCounter;
|
|
32
|
-
private _lineNumbersShown;
|
|
33
|
-
/**
|
|
34
|
-
* Create a new WaterproofEditor instance.
|
|
35
|
-
* @param editorElement The HTML element where the editor will be inserted in the document
|
|
36
|
-
* @param config The configuration of the editor to use.
|
|
37
|
-
*/
|
|
38
|
-
constructor(editorElement: HTMLElement, config: WaterproofEditorConfig, initialThemeStyle: ThemeStyle);
|
|
39
|
-
init(content: string, version?: number): void;
|
|
40
|
-
get state(): EditorState | undefined;
|
|
41
|
-
createProseMirrorEditor(proseDoc: ProseNode): void;
|
|
42
|
-
/** Create initial prosemirror state */
|
|
43
|
-
createState(proseDoc: ProseNode): EditorState;
|
|
44
|
-
/** Create the array of plugins used by the prosemirror editor */
|
|
45
|
-
createPluginsArray(): Plugin[];
|
|
46
|
-
updateNodeViewThemes(theme: ThemeStyle): void;
|
|
47
|
-
/**
|
|
48
|
-
* Handle a snippet that should be inserted into the editor.
|
|
49
|
-
* @param template The template string of the snippet that should be inserted.
|
|
50
|
-
*/
|
|
51
|
-
handleSnippet(template: string): void;
|
|
52
|
-
/** Called on every selection update. */
|
|
53
|
-
updateCursor(pos: Selection): void;
|
|
54
|
-
/** Called on every transaction update in which the textdocument was modified */
|
|
55
|
-
sendLineNumbers(): void;
|
|
56
|
-
private updateDocumentProgress;
|
|
57
|
-
/**
|
|
58
|
-
* Updates the dynamic autocomplete suggestions shown in the editor.
|
|
59
|
-
* @param completions Array of completions.
|
|
60
|
-
*/
|
|
61
|
-
handleCompletions(completions: Array<Completion>): void;
|
|
62
|
-
/** Called whenever a line number message is received from vscode to update line numbers of codemirror cells */
|
|
63
|
-
setLineNumbers(msg: LineNumber): void;
|
|
64
|
-
/**
|
|
65
|
-
* Execute a history change (undo/redo) in the editor.
|
|
66
|
-
* @param type Type of the change
|
|
67
|
-
*/
|
|
68
|
-
handleHistoryChange(type: HistoryChange): void;
|
|
69
|
-
handleScroll(innerHeight: number): void;
|
|
70
|
-
/**
|
|
71
|
-
* Insert a symbol at the cursor position (replaces the current selection if there is one).
|
|
72
|
-
*
|
|
73
|
-
* @param symbolUnicode The unicode character to insert.
|
|
74
|
-
* @returns Whether the operation was a success.
|
|
75
|
-
*/
|
|
76
|
-
insertSymbol(symbolUnicode: string): boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Toggles line numbers for all codeblocks.
|
|
79
|
-
* @param show The editor will show line numbers in the code cells when set to `true`.
|
|
80
|
-
*/
|
|
81
|
-
setShowLineNumbers(show: boolean): void;
|
|
82
|
-
/**
|
|
83
|
-
* Toggles showing menu items in the editor for students.
|
|
84
|
-
* @param show The editor will show menu items to students when set to `true`.
|
|
85
|
-
*/
|
|
86
|
-
setShowMenuItems(show: boolean): void;
|
|
87
|
-
private createAndDispatchInsertionTransaction;
|
|
88
|
-
/**
|
|
89
|
-
* Called whenever a message describing the configuration of user is sent
|
|
90
|
-
*
|
|
91
|
-
* @param isTeacher Whether teacher mode is enabled
|
|
92
|
-
*/
|
|
93
|
-
updateLockingState(isTeacher: boolean): void;
|
|
94
|
-
/**
|
|
95
|
-
* Updates the state of the progress bar in the editor.
|
|
96
|
-
*
|
|
97
|
-
* @param progressParams The type used to store information on the status of the checking of the current file
|
|
98
|
-
*/
|
|
99
|
-
updateProgressBar(progressParams: SimpleProgressParams): void;
|
|
100
|
-
updateServerStatus(status: ServerStatus): void;
|
|
101
|
-
/**
|
|
102
|
-
* Updates the status of the input areas in the editor.
|
|
103
|
-
*
|
|
104
|
-
* @param status Array containing the status of the input areas within the current document, where `status[i]` corresponds to the i-th input area (starting at zero for the first input area).
|
|
105
|
-
*/
|
|
106
|
-
updateQedStatus(status: InputAreaStatus[]): void;
|
|
107
|
-
/**
|
|
108
|
-
* Pushes the diagnostics to the array of diagnostics stored in the editor.
|
|
109
|
-
*
|
|
110
|
-
* In comparison to {@linkcode setActiveDiagnostics} this will keep the old
|
|
111
|
-
* diagnostics around.
|
|
112
|
-
*
|
|
113
|
-
* @param diagnostics The diagnostics to add.
|
|
114
|
-
*/
|
|
115
|
-
pushDiagnostics(...diagnostics: Array<OffsetDiagnostic>): void;
|
|
116
|
-
/**
|
|
117
|
-
* Removes the diagnostic `toRemove` from the set of stored diagnostics.
|
|
118
|
-
*
|
|
119
|
-
* Note that if `toRemove` occurs more than once, all instances will be removed!
|
|
120
|
-
* @param toRemove The diagnostic object to remove
|
|
121
|
-
* @returns Whether any instance of `toRemove` was removed from the set of diagnostics.
|
|
122
|
-
*/
|
|
123
|
-
removeDiagnostic(toRemove: DiagnosticObjectProse): boolean;
|
|
124
|
-
/**
|
|
125
|
-
* Sets the current set of diagnostics in the document.
|
|
126
|
-
* This function takes the set of all diagnostics in the current document,
|
|
127
|
-
* translates the position to ProseMirror offsets and stores them.
|
|
128
|
-
*
|
|
129
|
-
* Note: Calling this function overwrites the set of diagnostics.
|
|
130
|
-
* If you want to add a diagnostic use {@linkcode pushDiagnostics}
|
|
131
|
-
*
|
|
132
|
-
* @param msg The set of diagnostics for the current document.
|
|
133
|
-
*/
|
|
134
|
-
setActiveDiagnostics(diagnostics: Array<OffsetDiagnostic>): void;
|
|
135
|
-
private diagnosticsChanged;
|
|
136
|
-
/**
|
|
137
|
-
* Returns the set of stored diagnostics in the range low to high.
|
|
138
|
-
* @param low Lower bound for the diagnostic range.
|
|
139
|
-
* @param high Upper bound for the diagnostic range.
|
|
140
|
-
* @param truncationLevel If desired, only include diagnostics with a severity level below the `truncationLevel`.
|
|
141
|
-
* @returns The set of diagnostics in the range low to high.
|
|
142
|
-
*/
|
|
143
|
-
getDiagnosticsInRange(low: number, high: number, truncationLevel?: number): Array<DiagnosticObjectProse>;
|
|
144
|
-
/**
|
|
145
|
-
* Returns the set of diagnostics for which the intersection of the diagnostic range and the range [low, high]
|
|
146
|
-
* is non-empty. The ranges of these diagnostics will be trimmed such that they are fully contained in [low, high].
|
|
147
|
-
* @param truncationLevel If desired, only include diagnostics with a severity level below the `truncationLevel`.
|
|
148
|
-
* @returns The set of diagnostics which are (at least partially) contained in the range low to high.
|
|
149
|
-
*/
|
|
150
|
-
getPartialDiagnosticsInRange(low: number, high: number, truncationLevel?: number): Array<DiagnosticObjectProse>;
|
|
151
|
-
executeCommand(command: string): void;
|
|
152
|
-
executeHelp(): void;
|
|
153
|
-
}
|
|
154
|
-
//# sourceMappingURL=editor.d.ts.map
|
package/dist/src/editor.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/editor.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { KeyBinding } from "@codemirror/view";
|
|
2
|
-
import { StateCommand } from "@codemirror/state";
|
|
3
|
-
export declare const indentMoreCustom: StateCommand;
|
|
4
|
-
/**
|
|
5
|
-
* Filtered set of keybindings taken from
|
|
6
|
-
* https://github.com/codemirror/commands/blob/e27916c9b09d2cedd7e0c9770bff04eeb3696e69/src/commands.ts#L878
|
|
7
|
-
*/
|
|
8
|
-
export declare const keybindings: KeyBinding[];
|
|
9
|
-
//# sourceMappingURL=embedded-codemirror-keymap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-codemirror-keymap.d.ts","sourceRoot":"","sources":["../../../src/embedded-codemirror/embedded-codemirror-keymap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAe,YAAY,EAAqD,MAAM,mBAAmB,CAAA;AAgBhH,eAAO,MAAM,gBAAgB,EAAE,YAM9B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,UAAU,EA2CnC,CAAA"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { EditorView as CodeMirror, Command, KeyBinding, ViewUpdate } from "@codemirror/view";
|
|
2
|
-
import { Node as PNode, Schema } from "prosemirror-model";
|
|
3
|
-
import { Decoration, DecorationSource, EditorView, NodeView } from "prosemirror-view";
|
|
4
|
-
import { MovementDirection, MovementUnit } from "./types";
|
|
5
|
-
/**
|
|
6
|
-
* A class implementing everything required to create an embedded codemirror editor for prosemirror.
|
|
7
|
-
* Implements the `NodeView` prosemirror class. Can be extended to create custom codemirror editors like
|
|
8
|
-
* the one used to edit markdown or coq.
|
|
9
|
-
*/
|
|
10
|
-
export declare class EmbeddedCodeMirrorEditor implements NodeView {
|
|
11
|
-
_getPos: (() => number | undefined);
|
|
12
|
-
protected updating: boolean;
|
|
13
|
-
protected _codemirror: CodeMirror | undefined;
|
|
14
|
-
protected _outerView: EditorView;
|
|
15
|
-
protected _schema: Schema;
|
|
16
|
-
protected _node: PNode;
|
|
17
|
-
constructor(node: PNode, view: EditorView, getPos: (() => number | undefined), schema: Schema);
|
|
18
|
-
dom: Node;
|
|
19
|
-
contentDOM?: HTMLElement | null | undefined;
|
|
20
|
-
update(node: PNode, _decorations: readonly Decoration[], _innerDecorations: DecorationSource): boolean;
|
|
21
|
-
selectNode?: (() => void) | undefined;
|
|
22
|
-
deselectNode?: (() => void) | undefined;
|
|
23
|
-
setSelection(anchor: number, head: number, _root: Document | ShadowRoot): void;
|
|
24
|
-
stopEvent?: ((event: Event) => boolean) | undefined;
|
|
25
|
-
ignoreMutation?: ((mutation: MutationRecord) => boolean) | undefined;
|
|
26
|
-
destroy?(): void;
|
|
27
|
-
forwardUpdate(update: ViewUpdate): void;
|
|
28
|
-
/**
|
|
29
|
-
* Do a movement, but first check if we escape the current view.
|
|
30
|
-
*
|
|
31
|
-
* The command returns false when we **will not** escape the current view.
|
|
32
|
-
*
|
|
33
|
-
* @param unit The movement unit (could be a line (up and down) or a character (left to right))
|
|
34
|
-
* @param dir The direction either forward or backward.
|
|
35
|
-
* @returns A command handling the escaping.
|
|
36
|
-
*/
|
|
37
|
-
maybeEscape(unit: MovementUnit, dir: MovementDirection): Command;
|
|
38
|
-
embeddedCodeMirrorKeymap(): KeyBinding[];
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=embeddedCodemirror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embeddedCodemirror.d.ts","sourceRoot":"","sources":["../../../src/embedded-codemirror/embeddedCodemirror.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI1D;;;;GAIG;AACH,qBAAa,wBAAyB,YAAW,QAAQ;IAC9C,OAAO,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC;IAG9C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAEzB,SAAS,CAAC,WAAW,EAAE,UAAU,GAAG,SAAS,CAAC;IAE9C,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IAEjC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAE1B,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBAGnB,IAAI,EAAE,KAAK,EACjB,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,EAClC,MAAM,EAAE,MAAM;IAYZ,GAAG,EAAG,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IAE5C,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,UAAU,EAAE,EAAE,iBAAiB,EAAE,gBAAgB;IAqD5F,UAAU,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAExC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,UAAU;IAYvE,SAAS,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;IACpD,cAAc,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;IACrE,OAAO,CAAC,IAAI,IAAI;IAEnB,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAmCpC;;;;;;;;OAQA;IACH,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO;IAkEhE,wBAAwB,IAAI,UAAU,EAAE;CAmBxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/embedded-codemirror/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/embedded-codemirror/types.ts"],"names":[],"mappings":"AAEA,oBAAY,YAAY;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;CACvB;AAGD,oBAAY,iBAAiB;IAC5B,OAAO,IAAK;IACZ,QAAQ,KAAK;CACb"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Schema } from "prosemirror-model";
|
|
2
|
-
import { Plugin } from "prosemirror-state";
|
|
3
|
-
/**
|
|
4
|
-
* Function that returns the hint plugin.
|
|
5
|
-
* @param schema The schema in use for the editor.
|
|
6
|
-
* @returns A `Plugin` that enables the hint functionality.
|
|
7
|
-
*/
|
|
8
|
-
export declare const createHintPlugin: (schema: Schema) => Plugin;
|
|
9
|
-
//# sourceMappingURL=hint-plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hint-plugin.d.ts","sourceRoot":"","sources":["../../../src/hinting/hint-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAkC,MAAM,EAAe,MAAM,mBAAmB,CAAC;AAIxF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,MA6BjD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hinting/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/src/index.d.ts
DELETED
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/src/inputArea.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Plugin, PluginKey } from "prosemirror-state";
|
|
2
|
-
/**
|
|
3
|
-
* Interface describing the state of the input are plugin.
|
|
4
|
-
* Contains fields `locked: boolean` indicating wether non-input areas should be locked (ie. non-teacher mode) and
|
|
5
|
-
* `globalLock: boolean` indicating that we are in a global lockdown state (caused by an unrecoverable error).
|
|
6
|
-
*/
|
|
7
|
-
export interface IInputAreaPluginState {
|
|
8
|
-
teacher: boolean;
|
|
9
|
-
globalLock: boolean;
|
|
10
|
-
}
|
|
11
|
-
/** The plugin key for the input area plugin */
|
|
12
|
-
export declare const INPUT_AREA_PLUGIN_KEY: PluginKey<IInputAreaPluginState>;
|
|
13
|
-
export declare const inputAreaPlugin: Plugin<IInputAreaPluginState>;
|
|
14
|
-
//# sourceMappingURL=inputArea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inputArea.d.ts","sourceRoot":"","sources":["../../src/inputArea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,EAAE,SAAS,EAA2B,MAClE,mBAAmB,CAAC;AAEpB;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACrC,OAAO,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,+CAA+C;AAC/C,eAAO,MAAM,qBAAqB,kCAA8D,CAAC;AAiFjG,eAAO,MAAM,eAAe,+BAAkC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Schema, Node as ProseNode } from "prosemirror-model";
|
|
2
|
-
import { Plugin as ProsePlugin, PluginKey } from "prosemirror-state";
|
|
3
|
-
import { EditorView } from "prosemirror-view";
|
|
4
|
-
import { CoqdocView } from "./CoqdocView";
|
|
5
|
-
export interface ICoqdocPluginState {
|
|
6
|
-
macros: {
|
|
7
|
-
[cmd: string]: string;
|
|
8
|
-
};
|
|
9
|
-
/** A list of currently active `NodeView`s, in insertion order. */
|
|
10
|
-
activeNodeViews: CoqdocView[];
|
|
11
|
-
}
|
|
12
|
-
export declare const COQDOC_PLUGIN_KEY: PluginKey<ICoqdocPluginState>;
|
|
13
|
-
/**
|
|
14
|
-
* Returns a function suitable for passing as a field in `EditorProps.nodeViews`.
|
|
15
|
-
* @see https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews
|
|
16
|
-
*/
|
|
17
|
-
export declare function createCoqdocView(schema: Schema): (node: ProseNode, view: EditorView, getPos: () => number | undefined) => CoqdocView;
|
|
18
|
-
export declare const coqdocPlugin: (schema: Schema) => ProsePlugin<ICoqdocPluginState>;
|
|
19
|
-
//# sourceMappingURL=CoqdocPlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CoqdocPlugin.d.ts","sourceRoot":"","sources":["../../../src/markup-views/CoqdocPlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,SAAS,EAAc,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAC,MAAM,GAAI,MAAM,CAAA;KAAE,CAAC;IAClC,kEAAkE;IAClE,eAAe,EAAE,UAAU,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,+BAAoE,CAAC;AAEnG;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,IACtC,MAAM,SAAS,EAAE,MAAM,UAAU,EAAE,QAAQ,MAAM,MAAM,GAAG,SAAS,KAAG,UAAU,CAcxF;AA6BD,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,oCAA8C,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PluginKey } from "prosemirror-state";
|
|
2
|
-
import { SwitchableView } from "./switchable-view";
|
|
3
|
-
import { EditorView } from "prosemirror-view";
|
|
4
|
-
import { Node as PNode, Schema } from "prosemirror-model";
|
|
5
|
-
/**
|
|
6
|
-
* CoqdocView class extends the SwitchableView class.
|
|
7
|
-
*
|
|
8
|
-
* Used to edit and render coqdoc syntax within the prosemirror editor.
|
|
9
|
-
*/
|
|
10
|
-
export declare class CoqdocView extends SwitchableView {
|
|
11
|
-
constructor(getPos: (() => number | undefined), outerView: EditorView, content: string, node: PNode, schema: Schema, pluginKey: PluginKey, viewName: string);
|
|
12
|
-
preprocessContentForEditing(input: string): string;
|
|
13
|
-
preprocessContentForRendering(input: string): string;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=CoqdocView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CoqdocView.d.ts","sourceRoot":"","sources":["../../../src/markup-views/CoqdocView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG1D;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,cAAc;gBAGtC,MAAM,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,EACzD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAC5C,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM;IAM1C,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlD,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAKvD"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Schema, Node as ProseNode } from "prosemirror-model";
|
|
2
|
-
import { Plugin as ProsePlugin, PluginKey, TextSelection } from "prosemirror-state";
|
|
3
|
-
import { EditorView } from "prosemirror-view";
|
|
4
|
-
import { MarkdownView } from "./MarkdownView";
|
|
5
|
-
export interface IRealMarkdownPluginState {
|
|
6
|
-
macros: {
|
|
7
|
-
[cmd: string]: string;
|
|
8
|
-
};
|
|
9
|
-
/** A list of currently active `NodeView`s, in insertion order. */
|
|
10
|
-
activeNodeViews: MarkdownView[];
|
|
11
|
-
/** The selection of the current cursor position */
|
|
12
|
-
cursor: TextSelection | undefined;
|
|
13
|
-
}
|
|
14
|
-
export declare const REAL_MARKDOWN_PLUGIN_KEY: PluginKey<IRealMarkdownPluginState>;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a function suitable for passing as a field in `EditorProps.nodeViews`.
|
|
17
|
-
* @see https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews
|
|
18
|
-
*/
|
|
19
|
-
export declare function createRealMarkdownView(schema: Schema): (node: ProseNode, view: EditorView, getPos: (() => number | undefined)) => MarkdownView;
|
|
20
|
-
export declare const realMarkdownPlugin: (schema: Schema) => ProsePlugin<IRealMarkdownPluginState>;
|
|
21
|
-
//# sourceMappingURL=MarkdownPlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownPlugin.d.ts","sourceRoot":"","sources":["../../../src/markup-views/MarkdownPlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,SAAS,EAAc,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,MAAM,WAAW,wBAAwB;IACxC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAC,MAAM,GAAI,MAAM,CAAA;KAAE,CAAC;IAClC,kEAAkE;IAClE,eAAe,EAAE,YAAY,EAAE,CAAC;IAChC,mDAAmD;IACnD,MAAM,EAAE,aAAa,GAAG,SAAS,CAAC;CAElC;AAED,eAAO,MAAM,wBAAwB,qCAA2E,CAAC;AAEjH;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,IAC5C,MAAM,SAAS,EAAE,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,KAAG,YAAY,CAe5F;AAmCD,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,0CAAoD,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EditorView } from "prosemirror-view";
|
|
2
|
-
import { SwitchableView } from "./switchable-view";
|
|
3
|
-
import { Node as PNode, Schema } from "prosemirror-model";
|
|
4
|
-
import { PluginKey } from "prosemirror-state";
|
|
5
|
-
/**
|
|
6
|
-
* MarkdownView class extends the SwitchableView class.
|
|
7
|
-
*
|
|
8
|
-
* Used to edit and render markdown within the prosemirror editor.
|
|
9
|
-
*/
|
|
10
|
-
export declare class MarkdownView extends SwitchableView {
|
|
11
|
-
constructor(getPos: (() => number | undefined), outerView: EditorView, content: string, node: PNode, schema: Schema, pluginKey: PluginKey, viewName: string);
|
|
12
|
-
preprocessContentForEditing(input: string): string;
|
|
13
|
-
preprocessContentForRendering(input: string): string;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=MarkdownView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownView.d.ts","sourceRoot":"","sources":["../../../src/markup-views/MarkdownView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,cAAc;gBAGxC,MAAM,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,EACzD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAC5C,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM;IAM1C,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAKlD,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAKvD"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { CoqdocView } from "./CoqdocView";
|
|
2
|
-
export { coqdocPlugin, COQDOC_PLUGIN_KEY } from "./CoqdocPlugin";
|
|
3
|
-
export { MarkdownView } from "./MarkdownView";
|
|
4
|
-
export { realMarkdownPlugin, REAL_MARKDOWN_PLUGIN_KEY } from "./MarkdownPlugin";
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/markup-views/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { EditorView as CodeMirror, ViewUpdate } from "@codemirror/view";
|
|
2
|
-
import { Node, Schema } from "prosemirror-model";
|
|
3
|
-
import { PluginKey } from "prosemirror-state";
|
|
4
|
-
import { Decoration, EditorView } from "prosemirror-view";
|
|
5
|
-
import { SwitchableView } from "./SwitchableView";
|
|
6
|
-
import { EmbeddedCodeMirrorEditor } from "../../embedded-codemirror";
|
|
7
|
-
/**
|
|
8
|
-
* Export CodeBlockView class that implements the custom codeblock nodeview.
|
|
9
|
-
* Corresponds with the example as can be found here:
|
|
10
|
-
* https://prosemirror.net/examples/codemirror/
|
|
11
|
-
*/
|
|
12
|
-
export declare class EditableView extends EmbeddedCodeMirrorEditor {
|
|
13
|
-
view: CodeMirror;
|
|
14
|
-
private _parent;
|
|
15
|
-
private _pluginKey;
|
|
16
|
-
constructor(node: Node, outerView: EditorView, schema: Schema, getPos: (() => number | undefined), place: HTMLElement, parent: SwitchableView, pluginKey: PluginKey);
|
|
17
|
-
focus(): void;
|
|
18
|
-
destroy(): void;
|
|
19
|
-
forwardUpdate(update: ViewUpdate): void;
|
|
20
|
-
update(node: Node, _decorations: readonly Decoration[]): boolean;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=EditableView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditableView.d.ts","sourceRoot":"","sources":["../../../../src/markup-views/switchable-view/EditableView.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,IAAI,UAAU,EAAE,UAAU,EAEpC,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,SAAS,EAAiB,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEpE;;;;GAIG;AAEH,qBAAa,YAAa,SAAQ,wBAAwB;IAC/C,IAAI,EAAE,UAAU,CAAC;IAC3B,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,UAAU,CAAY;gBAGvB,IAAI,EAAE,IAAI,EAChB,SAAS,EAAE,UAAU,EACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,EAClC,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,cAAc,EACtB,SAAS,EAAE,SAAS;IA8BrB,KAAK;IACF,OAAO;IAGV,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IA+BvC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,UAAU,EAAE;CAgDtD"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inspired by:
|
|
3
|
-
* https://github.com/codemirror/theme-one-dark/blob/main/src/one-dark.ts
|
|
4
|
-
*
|
|
5
|
-
* Used for theming the markdown editors, differs from the one in color-scheme.ts.
|
|
6
|
-
*/
|
|
7
|
-
export declare const editorTheme: import("@codemirror/state").Extension;
|
|
8
|
-
//# sourceMappingURL=EditorTheme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorTheme.d.ts","sourceRoot":"","sources":["../../../../src/markup-views/switchable-view/EditorTheme.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,uCAA4C,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Schema } from "prosemirror-model";
|
|
2
|
-
/**
|
|
3
|
-
* The schema in use to render markdown.
|
|
4
|
-
* Consists of the default prosemirror-markdown schema augmented with the
|
|
5
|
-
* prosemirror-math `math_inline` nodes.
|
|
6
|
-
*/
|
|
7
|
-
export declare const markdownRenderingSchema: Schema<keyof import("orderedmap").default<import("prosemirror-model").NodeSpec>, keyof import("orderedmap").default<import("prosemirror-model").MarkSpec>>;
|
|
8
|
-
//# sourceMappingURL=MarkdownSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownSchema.d.ts","sourceRoot":"","sources":["../../../../src/markup-views/switchable-view/MarkdownSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,4JAGlC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EditorView } from "prosemirror-view";
|
|
2
|
-
import { SwitchableView } from "./SwitchableView";
|
|
3
|
-
export declare class RenderedView {
|
|
4
|
-
view: EditorView;
|
|
5
|
-
private _outerView;
|
|
6
|
-
private _parent;
|
|
7
|
-
constructor(target: HTMLElement, content: string, outerView: EditorView, parent: SwitchableView, usingCoqdocSyntax: boolean, _getPos: (() => number | undefined));
|
|
8
|
-
setSelection(anchor: number, head: number, _root: Document | ShadowRoot): void;
|
|
9
|
-
update(): boolean;
|
|
10
|
-
focus(): void;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=RenderedView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RenderedView.d.ts","sourceRoot":"","sources":["../../../../src/markup-views/switchable-view/RenderedView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,qBAAa,YAAY;IACd,IAAI,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,OAAO,CAAiB;gBAG5B,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,UAAU,EACrB,MAAM,EAAE,cAAc,EACtB,iBAAiB,EAAE,OAAO,EAC1B,OAAO,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC;IAiCvC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,UAAU;IAUvE,MAAM;IAIN,KAAK;IACL,OAAO;CACV"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Decoration, EditorView, NodeView } from "prosemirror-view";
|
|
2
|
-
import { PluginKey } from "prosemirror-state";
|
|
3
|
-
import { Node as PNode, Schema } from "prosemirror-model";
|
|
4
|
-
/**
|
|
5
|
-
* Abstract class for a switchable view.
|
|
6
|
-
* Switchable views allow for editing and rendering.
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class SwitchableView implements NodeView {
|
|
9
|
-
/** The DOM for this nodeview. */
|
|
10
|
-
dom: HTMLElement;
|
|
11
|
-
/** The currently active view. */
|
|
12
|
-
private view;
|
|
13
|
-
/** Whether we are in rendered mode */
|
|
14
|
-
private inRenderMode;
|
|
15
|
-
/** The place to insert the views into */
|
|
16
|
-
private _place;
|
|
17
|
-
/** The outer prosemirror editor */
|
|
18
|
-
private _outerView;
|
|
19
|
-
/** The node that is passed when constructing the NodeView */
|
|
20
|
-
private _node;
|
|
21
|
-
/** Represents whether the view is currently updating */
|
|
22
|
-
private _updating;
|
|
23
|
-
private _getPos;
|
|
24
|
-
private _outerSchema;
|
|
25
|
-
private _viewName;
|
|
26
|
-
private _pluginKey;
|
|
27
|
-
private _emptyClassName;
|
|
28
|
-
private _viewClassName;
|
|
29
|
-
private _editorClassName;
|
|
30
|
-
private _renderedClassName;
|
|
31
|
-
private _usingCoqdocSyntax;
|
|
32
|
-
get content(): string;
|
|
33
|
-
constructor(getPos: (() => number | undefined), outerView: EditorView, content: string, node: PNode, schema: Schema, pluginKey: PluginKey, viewName: string, usingCoqdocSyntax: boolean);
|
|
34
|
-
/**
|
|
35
|
-
* Returns whether this view is currently in the updating state.
|
|
36
|
-
*/
|
|
37
|
-
get isUpdating(): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Overwrite the updating state of this node.
|
|
40
|
-
*/
|
|
41
|
-
set updating(update: boolean);
|
|
42
|
-
/**
|
|
43
|
-
* Switch to the rendered view.
|
|
44
|
-
* This destroys the view currently in place and then adds a new rendered view.
|
|
45
|
-
*/
|
|
46
|
-
makeRenderedView(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Switch to the editable view.
|
|
49
|
-
* This destroys the view currently in place and then adds a new editable view.
|
|
50
|
-
*/
|
|
51
|
-
makeEditableView(): void;
|
|
52
|
-
abstract preprocessContentForEditing(input: string): string;
|
|
53
|
-
abstract preprocessContentForRendering(input: string): string;
|
|
54
|
-
update(node: PNode, decorations: readonly Decoration[]): boolean;
|
|
55
|
-
selectNode(): void;
|
|
56
|
-
deselectNode(): void;
|
|
57
|
-
setSelection(anchor: number, head: number, root: Document | ShadowRoot): void;
|
|
58
|
-
stopEvent(event: Event): boolean;
|
|
59
|
-
ignoreMutation(): boolean;
|
|
60
|
-
destroy(): void;
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=SwitchableView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchableView.d.ts","sourceRoot":"","sources":["../../../../src/markup-views/switchable-view/SwitchableView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGpE,OAAO,EAAiB,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;GAGG;AACH,8BAAsB,cAAe,YAAW,QAAQ;IACpD,iCAAiC;IACjC,GAAG,EAAE,WAAW,CAAC;IACjB,iCAAiC;IACjC,OAAO,CAAC,IAAI,CAA8B;IAC1C,sCAAsC;IACtC,OAAO,CAAC,YAAY,CAAiB;IACrC,yCAAyC;IACzC,OAAO,CAAC,MAAM,CAAc;IAC5B,mCAAmC;IACnC,OAAO,CAAC,UAAU,CAAa;IAC/B,6DAA6D;IAC7D,OAAO,CAAC,KAAK,CAAQ;IAErB,wDAAwD;IACxD,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,YAAY,CAAC;IAGrB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,UAAU,CAAY;IAE9B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,kBAAkB,CAAS;IAEnC,OAAO,CAAC,kBAAkB,CAAU;IAEpC,IAAW,OAAO,WAEjB;gBAGG,MAAM,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,EACzD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAC5C,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EACtC,iBAAiB,EAAE,OAAO;IAsD9B;;OAEG;IACH,IAAW,UAAU,YAEpB;IAED;;OAEG;IACH,IAAW,QAAQ,CAAC,MAAM,EAAE,OAAO,EAElC;IAED;;;OAGG;IACH,gBAAgB;IAchB;;;OAGG;IACH,gBAAgB;IAWhB,QAAQ,CAAC,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAC3D,QAAQ,CAAC,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAE7D,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,UAAU,EAAE;IAOtD,UAAU;IAWV,YAAY;IAQZ,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,UAAU;IAKtE,SAAS,CAAC,KAAK,EAAE,KAAK;IAQtB,cAAc;IAEd,OAAO;CAGV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/markup-views/switchable-view/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/math-integration/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodespecs.d.ts","sourceRoot":"","sources":["../../../src/math-integration/nodespecs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAQ5C,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAA;AAGD,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/menubar/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Schema } from "prosemirror-model";
|
|
2
|
-
import { Plugin, PluginKey } from "prosemirror-state";
|
|
3
|
-
import { OS } from "../osType";
|
|
4
|
-
import { FileFormat } from "../api/FileFormat";
|
|
5
|
-
/**
|
|
6
|
-
* Interface describing the state of the menu plugin
|
|
7
|
-
*/
|
|
8
|
-
interface IMenuPluginState {
|
|
9
|
-
showMenuItems: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The menu plugin key.
|
|
13
|
-
*/
|
|
14
|
-
export declare const MENU_PLUGIN_KEY: PluginKey<IMenuPluginState>;
|
|
15
|
-
/**
|
|
16
|
-
* Create a new menu plugin given the schema and file format.
|
|
17
|
-
* @param schema The schema in use for the editor.
|
|
18
|
-
* @param filef The file format of the currently opened file.
|
|
19
|
-
* @returns A prosemirror `Plugin` type containing the menubar.
|
|
20
|
-
*/
|
|
21
|
-
export declare function menuPlugin(schema: Schema, filef: FileFormat, os: OS): Plugin<{
|
|
22
|
-
showMenuItems: boolean;
|
|
23
|
-
}>;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=menubar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.d.ts","sourceRoot":"","sources":["../../../src/menubar/menubar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAuB,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI3E,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAiM/C;;GAEG;AACH,UAAU,gBAAgB;IACtB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,6BAAyD,CAAC;AAEtF;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE;;GAiCnE"}
|