@impermeable/waterproof-editor 0.12.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 -58
- 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 +6 -5
- package/dist/codeview/code-plugin.d.ts.map +1 -1
- package/dist/codeview/nodeview.d.ts +24 -15
- 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 +16 -0
- package/dist/commands/utils.d.ts.map +1 -0
- 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 +88 -34
- 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 -81
- package/dist/inputArea.d.ts +2 -3
- package/dist/inputArea.d.ts.map +1 -1
- package/dist/mapping/Tree.d.ts +91 -0
- package/dist/mapping/Tree.d.ts.map +1 -0
- package/dist/mapping/helper-functions.d.ts +4 -0
- package/dist/mapping/helper-functions.d.ts.map +1 -0
- package/dist/mapping/index.d.ts +4 -0
- package/dist/mapping/index.d.ts.map +1 -0
- package/dist/mapping/mapping.d.ts +82 -0
- package/dist/mapping/mapping.d.ts.map +1 -0
- package/dist/mapping/nodeUpdate.d.ts +27 -0
- package/dist/mapping/nodeUpdate.d.ts.map +1 -0
- package/dist/mapping/textUpdate.d.ts +16 -0
- package/dist/mapping/textUpdate.d.ts.map +1 -0
- package/dist/mapping/types.d.ts +22 -0
- package/dist/mapping/types.d.ts.map +1 -0
- package/dist/markdown-defaults/index.d.ts +4 -0
- package/dist/markdown-defaults/index.d.ts.map +1 -0
- package/dist/markdown-defaults/statemachine.d.ts +23 -0
- package/dist/markdown-defaults/statemachine.d.ts.map +1 -0
- package/dist/markup-views/SwitchableViewPlugin.d.ts +22 -0
- package/dist/markup-views/SwitchableViewPlugin.d.ts.map +1 -0
- 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 +127 -0
- package/dist/serialization/DocumentSerializer.d.ts.map +1 -0
- 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/dist/translation/toMarkdownTranslation.d.ts +3 -0
- package/dist/translation/toMarkdownTranslation.d.ts.map +1 -0
- package/impermeable-waterproof-editor-0.14.0.tgz +0 -0
- package/package.json +33 -10
- package/tsconfig.test.json +14 -0
package/dist/editor.d.ts
CHANGED
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { LineNumber, InputAreaStatus, SimpleProgressParams, HistoryChange, Severity } from "./api";
|
|
1
|
+
import { Command } from "prosemirror-state";
|
|
2
|
+
import { InputAreaStatus, HistoryChange, Severity, OffsetDiagnostic, ThemeStyle, WaterproofEditorConfig, MessageHandlerEditor } from "./api";
|
|
4
3
|
import "katex/dist/katex.min.css";
|
|
5
4
|
import "prosemirror-view/style/prosemirror.css";
|
|
6
5
|
import "./styles";
|
|
7
|
-
import { WaterproofEditorConfig, DiagnosticMessage, ThemeStyle } from "./api";
|
|
8
6
|
import { Completion } from "@codemirror/autocomplete";
|
|
9
|
-
import { ServerStatus } from "./api";
|
|
10
7
|
/** Type that contains a coq diagnostics object fit for use in the ProseMirror editor context. */
|
|
11
|
-
type DiagnosticObjectProse = {
|
|
8
|
+
export type DiagnosticObjectProse = {
|
|
12
9
|
message: string;
|
|
13
10
|
start: number;
|
|
14
11
|
end: number;
|
|
15
|
-
$start: ResolvedPos;
|
|
16
|
-
$end: ResolvedPos;
|
|
17
12
|
severity: Severity;
|
|
18
13
|
};
|
|
19
14
|
/**
|
|
20
15
|
* WaterproofEditor class. Configured via the WaterproofEditorConfig object.
|
|
21
16
|
*/
|
|
22
|
-
export declare class WaterproofEditor {
|
|
17
|
+
export declare class WaterproofEditor implements MessageHandlerEditor {
|
|
23
18
|
private readonly initialThemeStyle;
|
|
24
|
-
private _editorConfig;
|
|
25
|
-
private
|
|
26
|
-
private _editorElem;
|
|
19
|
+
private readonly _editorConfig;
|
|
20
|
+
private readonly _editorElem;
|
|
27
21
|
private _view;
|
|
28
|
-
private _translator;
|
|
29
22
|
private _mapping;
|
|
30
23
|
private readonly _userOS;
|
|
31
24
|
private currentProseDiagnostics;
|
|
25
|
+
private diagnosticsUpdateCounter;
|
|
32
26
|
private _lineNumbersShown;
|
|
27
|
+
private readonly _serializer;
|
|
28
|
+
private readonly _progressBar;
|
|
29
|
+
private oldOffsetChecked;
|
|
33
30
|
/**
|
|
34
31
|
* Create a new WaterproofEditor instance.
|
|
35
32
|
* @param editorElement The HTML element where the editor will be inserted in the document
|
|
@@ -37,12 +34,32 @@ export declare class WaterproofEditor {
|
|
|
37
34
|
*/
|
|
38
35
|
constructor(editorElement: HTMLElement, config: WaterproofEditorConfig, initialThemeStyle: ThemeStyle);
|
|
39
36
|
init(content: string, version?: number): void;
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
refreshDocument(content: string, version?: number): void;
|
|
38
|
+
private get state();
|
|
39
|
+
private createProseMirrorEditor;
|
|
42
40
|
/** Create initial prosemirror state */
|
|
43
|
-
createState
|
|
41
|
+
private createState;
|
|
44
42
|
/** Create the array of plugins used by the prosemirror editor */
|
|
45
|
-
createPluginsArray
|
|
43
|
+
private createPluginsArray;
|
|
44
|
+
/**
|
|
45
|
+
* Serialize the current document to a string.
|
|
46
|
+
* @returns Either the serialized document or `undefined` when the editor is not initialized.
|
|
47
|
+
*/
|
|
48
|
+
serializeDocument(): string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Returns the text content of specified parts of the document as well as the positions where the text starts.
|
|
51
|
+
*
|
|
52
|
+
* Does not use the serializer, but extracts the text content directly from the nodes.
|
|
53
|
+
* @param include Types of content to include.
|
|
54
|
+
*/
|
|
55
|
+
textContentOfInputAreas(include?: number): Array<[string, {
|
|
56
|
+
start: number;
|
|
57
|
+
end: number;
|
|
58
|
+
}]>;
|
|
59
|
+
/**
|
|
60
|
+
* Update the themestyle used inside of the code cells (switch between dark and light)
|
|
61
|
+
* @param theme Either `ThemeStyle.Light` or `ThemeStyle.Dark`
|
|
62
|
+
*/
|
|
46
63
|
updateNodeViewThemes(theme: ThemeStyle): void;
|
|
47
64
|
/**
|
|
48
65
|
* Handle a snippet that should be inserted into the editor.
|
|
@@ -50,17 +67,14 @@ export declare class WaterproofEditor {
|
|
|
50
67
|
*/
|
|
51
68
|
handleSnippet(template: string): void;
|
|
52
69
|
/** Called on every selection update. */
|
|
53
|
-
updateCursor
|
|
70
|
+
private updateCursor;
|
|
54
71
|
/** Called on every transaction update in which the textdocument was modified */
|
|
55
|
-
|
|
56
|
-
private updateDocumentProgress;
|
|
72
|
+
private updateLineNumbers;
|
|
57
73
|
/**
|
|
58
74
|
* Updates the dynamic autocomplete suggestions shown in the editor.
|
|
59
75
|
* @param completions Array of completions.
|
|
60
76
|
*/
|
|
61
77
|
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
78
|
/**
|
|
65
79
|
* Execute a history change (undo/redo) in the editor.
|
|
66
80
|
* @param type Type of the change
|
|
@@ -74,6 +88,7 @@ export declare class WaterproofEditor {
|
|
|
74
88
|
* @returns Whether the operation was a success.
|
|
75
89
|
*/
|
|
76
90
|
insertSymbol(symbolUnicode: string): boolean;
|
|
91
|
+
replaceRange(startOffset: number, endOffset: number, text: string): boolean;
|
|
77
92
|
/**
|
|
78
93
|
* Toggles line numbers for all codeblocks.
|
|
79
94
|
* @param show The editor will show line numbers in the code cells when set to `true`.
|
|
@@ -91,28 +106,67 @@ export declare class WaterproofEditor {
|
|
|
91
106
|
* @param isTeacher Whether teacher mode is enabled
|
|
92
107
|
*/
|
|
93
108
|
updateLockingState(isTeacher: boolean): void;
|
|
109
|
+
reportProgress(current: number, total: number, text?: string): void;
|
|
110
|
+
startSpinner(): void;
|
|
111
|
+
stopSpinner(): void;
|
|
112
|
+
setBusyIndicator(busyPos: number): void;
|
|
113
|
+
removeBusyIndicators(): void;
|
|
94
114
|
/**
|
|
95
|
-
* Updates the
|
|
115
|
+
* Updates the status of the input areas in the editor.
|
|
96
116
|
*
|
|
97
|
-
* @param
|
|
117
|
+
* @param status Array containing the status of the input areas within the current document, where `status[i]`
|
|
118
|
+
* corresponds to the i-th input area (starting at zero for the first input area).
|
|
98
119
|
*/
|
|
99
|
-
|
|
100
|
-
updateServerStatus(status: ServerStatus): void;
|
|
120
|
+
setInputAreaStatus(status: InputAreaStatus[]): void;
|
|
101
121
|
/**
|
|
102
|
-
*
|
|
122
|
+
* Pushes the diagnostics to the array of diagnostics stored in the editor.
|
|
123
|
+
*
|
|
124
|
+
* In comparison to {@linkcode setActiveDiagnostics} this will keep the old
|
|
125
|
+
* diagnostics around.
|
|
103
126
|
*
|
|
104
|
-
* @param
|
|
127
|
+
* @param diagnostics The diagnostics to add.
|
|
105
128
|
*/
|
|
106
|
-
|
|
129
|
+
pushDiagnostics(...diagnostics: Array<OffsetDiagnostic>): void;
|
|
107
130
|
/**
|
|
108
|
-
*
|
|
131
|
+
* Removes the diagnostic `toRemove` from the set of stored diagnostics.
|
|
132
|
+
*
|
|
133
|
+
* Note that if `toRemove` occurs more than once, all instances will be removed!
|
|
134
|
+
* @param toRemove The diagnostic object to remove
|
|
135
|
+
* @returns Whether any instance of `toRemove` was removed from the set of diagnostics.
|
|
136
|
+
*/
|
|
137
|
+
removeDiagnostic(toRemove: OffsetDiagnostic): boolean;
|
|
138
|
+
clearDiagnostics(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Sets the current set of diagnostics in the document.
|
|
141
|
+
* This function takes the set of all diagnostics in the current document,
|
|
142
|
+
* translates the position to ProseMirror offsets and stores them.
|
|
143
|
+
*
|
|
144
|
+
* Note: Calling this function overwrites the set of diagnostics.
|
|
145
|
+
* If you want to add a diagnostic use {@linkcode pushDiagnostics}
|
|
109
146
|
*
|
|
110
147
|
* @param msg The set of diagnostics for the current document.
|
|
111
148
|
*/
|
|
112
|
-
|
|
149
|
+
setActiveDiagnostics(diagnostics: Array<OffsetDiagnostic>): void;
|
|
150
|
+
private informCodemirrorViews;
|
|
151
|
+
/**
|
|
152
|
+
* Returns the set of stored diagnostics in the range low to high.
|
|
153
|
+
* @param low Lower bound for the diagnostic range.
|
|
154
|
+
* @param high Upper bound for the diagnostic range.
|
|
155
|
+
* @param truncationLevel If desired, only include diagnostics with a severity level below the `truncationLevel`.
|
|
156
|
+
* @returns The set of diagnostics in the range low to high.
|
|
157
|
+
*/
|
|
113
158
|
getDiagnosticsInRange(low: number, high: number, truncationLevel?: number): Array<DiagnosticObjectProse>;
|
|
114
|
-
|
|
115
|
-
|
|
159
|
+
/**
|
|
160
|
+
* Returns the set of diagnostics for which the intersection of the diagnostic range and the range [low, high]
|
|
161
|
+
* is non-empty. The ranges of these diagnostics will be trimmed such that they are fully contained in [low, high].
|
|
162
|
+
* @param truncationLevel If desired, only include diagnostics with a severity level below the `truncationLevel`.
|
|
163
|
+
* @returns The set of diagnostics which are (at least partially) contained in the range low to high.
|
|
164
|
+
*/
|
|
165
|
+
getPartialDiagnosticsInRange(low: number, high: number, truncationLevel?: number): Array<DiagnosticObjectProse>;
|
|
166
|
+
/**
|
|
167
|
+
* Execute a ProseMirror command on the editor.
|
|
168
|
+
* @param cmd The ProseMirror command to execute.
|
|
169
|
+
*/
|
|
170
|
+
executeProsemirrorCommand(cmd: Command): void;
|
|
116
171
|
}
|
|
117
|
-
export {};
|
|
118
172
|
//# sourceMappingURL=editor.d.ts.map
|
package/dist/editor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAA6E,MAAM,mBAAmB,CAAC;AAMvH,OAAO,EAAa,eAAe,EAAqB,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAkF,UAAU,EAAE,sBAAsB,EAA0B,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAanR,OAAO,0BAA0B,CAAC;AAClC,OAAO,wCAAwC,CAAC;AAChD,OAAO,UAAU,CAAC;AAIlB,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAOtD,iGAAiG;AACjG,MAAM,MAAM,qBAAqB,GAAG;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAC,CAAC;AAEtG;;GAEG;AACH,qBAAa,gBAAiB,YAAW,oBAAoB;IAqCa,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAnC3G,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAyB;IAGvD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAG1C,OAAO,CAAC,KAAK,CAAyB;IAGtC,OAAO,CAAC,QAAQ,CAAsB;IAGtC,OAAO,CAAC,QAAQ,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-1 +1 @@
|
|
|
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,
|
|
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,EAgEnC,CAAA"}
|
|
@@ -18,8 +18,8 @@ export declare class EmbeddedCodeMirrorEditor implements NodeView {
|
|
|
18
18
|
dom: Node;
|
|
19
19
|
contentDOM?: HTMLElement | null | undefined;
|
|
20
20
|
update(node: PNode, _decorations: readonly Decoration[], _innerDecorations: DecorationSource): boolean;
|
|
21
|
-
selectNode
|
|
22
|
-
deselectNode
|
|
21
|
+
selectNode(): void;
|
|
22
|
+
deselectNode(): void;
|
|
23
23
|
setSelection(anchor: number, head: number, _root: Document | ShadowRoot): void;
|
|
24
24
|
stopEvent?: ((event: Event) => boolean) | undefined;
|
|
25
25
|
ignoreMutation?: ((mutation: MutationRecord) => boolean) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embeddedCodemirror.d.ts","sourceRoot":"","sources":["../../src/embedded-codemirror/embeddedCodemirror.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,OAAO,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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;IAMV,YAAY;IAMZ,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;IAyCpC;;;;;;;;OAQA;IACH,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO;IAkEhE,wBAAwB,IAAI,UAAU,EAAE;CAUxC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Schema } from "prosemirror-model";
|
|
2
1
|
import { Plugin } from "prosemirror-state";
|
|
3
2
|
/**
|
|
4
3
|
* Function that returns the hint plugin.
|
|
5
4
|
* @param schema The schema in use for the editor.
|
|
6
5
|
* @returns A `Plugin` that enables the hint functionality.
|
|
7
6
|
*/
|
|
8
|
-
export declare const createHintPlugin: (
|
|
7
|
+
export declare const createHintPlugin: () => Plugin;
|
|
9
8
|
//# sourceMappingURL=hint-plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hint-plugin.d.ts","sourceRoot":"","sources":["../../src/hinting/hint-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hint-plugin.d.ts","sourceRoot":"","sources":["../../src/hinting/hint-plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAkC,MAAM,EAAe,MAAM,mBAAmB,CAAC;AAKxF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAAO,MA6BnC,CAAA"}
|