@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impermeable/waterproof-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Waterproof Editor ",
|
|
5
5
|
"homepage": "https://github.com/impermeable/waterproof-editor#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"main": "./dist/index.js",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./dist/index.js",
|
|
18
|
-
"./styles.css": "./dist/index.css"
|
|
18
|
+
"./styles.css": "./dist/index.css",
|
|
19
|
+
"./waterproof-defaults.css": "./dist/styles/waterproof-defaults.css"
|
|
19
20
|
},
|
|
20
21
|
"typesVersions": {
|
|
21
22
|
"*": {
|
|
@@ -26,46 +27,51 @@
|
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
29
|
"watch:esbuild": "node esbuild.mjs --watch",
|
|
30
|
+
"watch:esbuild-debug": "node esbuild.mjs --watch --debug",
|
|
29
31
|
"watch:tsc": "npx tsc -b --watch",
|
|
30
32
|
"test": "npm run unit-tests",
|
|
31
33
|
"unit-tests": "npx jest",
|
|
32
34
|
"unit-tests-cov": "npx jest --coverage --collectCoverageFrom=src/**/*.ts",
|
|
33
35
|
"lezer-generator": "npx lezer-generator ./src/codeview/lang-pack/syntax.grammar -o ./src/codeview/lang-pack/syntax.ts --typeScript",
|
|
36
|
+
"lezer-generator-verbose": "npx lezer-generator ./src/codeview/lang-pack-verbose/syntax.grammar -o ./src/codeview/lang-pack-verbose/syntax.ts --typeScript",
|
|
34
37
|
"typecheck": "npx tsc -b",
|
|
35
38
|
"build": "npm run typecheck && node esbuild.mjs --minify",
|
|
36
39
|
"lint": "npx eslint .",
|
|
37
40
|
"lint-fix": "npx eslint . --fix"
|
|
38
41
|
},
|
|
39
42
|
"devDependencies": {
|
|
43
|
+
"@codemirror/autocomplete": "6.18.1",
|
|
44
|
+
"@codemirror/commands": "6.6.2",
|
|
45
|
+
"@codemirror/language": "6.12.2",
|
|
46
|
+
"@codemirror/lint": "6.9.2",
|
|
47
|
+
"@codemirror/state": "~6.5.3",
|
|
48
|
+
"@codemirror/view": "6.38.8",
|
|
40
49
|
"@eslint/js": "^9.18.0",
|
|
41
50
|
"@lezer/generator": "^1.2.3",
|
|
42
51
|
"@types/glob": "^7.1.1",
|
|
43
52
|
"@types/jest": "^29.5.1",
|
|
44
53
|
"@types/jquery": "^3.5.16",
|
|
54
|
+
"@types/markdown-it": "^14.1.2",
|
|
45
55
|
"@types/mocha": "^10.0.1",
|
|
46
56
|
"@types/node": "^16.11.7",
|
|
47
57
|
"esbuild": "^0.25.9",
|
|
48
58
|
"eslint": "^9.18.0",
|
|
49
59
|
"jest": "^29.5.0",
|
|
50
|
-
"jest-environment-jsdom": "^
|
|
51
|
-
"mocha": "^
|
|
60
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
61
|
+
"mocha": "^11.7.5",
|
|
52
62
|
"prettier": "^2.8.1",
|
|
63
|
+
"prosemirror-dev-tools": "^4.2.0",
|
|
53
64
|
"ts-jest": "^29.1.0",
|
|
54
65
|
"typescript": "^5.1.3",
|
|
55
66
|
"typescript-eslint": "^8.20.0"
|
|
56
67
|
},
|
|
57
68
|
"dependencies": {
|
|
58
69
|
"@benrbray/prosemirror-math": "1.0.0",
|
|
59
|
-
"@codemirror/autocomplete": "6.18.1",
|
|
60
|
-
"@codemirror/commands": "6.6.2",
|
|
61
|
-
"@codemirror/language": "6.10.3",
|
|
62
|
-
"@codemirror/lint": "6.9.2",
|
|
63
|
-
"@codemirror/view": "6.38.8",
|
|
64
70
|
"@lezer/highlight": "1.2.1",
|
|
65
71
|
"@lezer/lr": "1.4.2",
|
|
66
72
|
"jquery": "3.7.1",
|
|
67
73
|
"katex": "^0.16.22",
|
|
68
|
-
"markdown-it": "
|
|
74
|
+
"markdown-it": "^14.1.1",
|
|
69
75
|
"prosemirror-commands": "1.6.0",
|
|
70
76
|
"prosemirror-history": "1.4.1",
|
|
71
77
|
"prosemirror-inputrules": "1.4.0",
|
|
@@ -75,5 +81,22 @@
|
|
|
75
81
|
"prosemirror-state": "1.4.3",
|
|
76
82
|
"prosemirror-transform": "1.10.0",
|
|
77
83
|
"prosemirror-view": "1.34.3"
|
|
84
|
+
},
|
|
85
|
+
"overrides": {
|
|
86
|
+
"mocha": {
|
|
87
|
+
"serialize-javascript": "7.0.5",
|
|
88
|
+
"diff": "8.0.3"
|
|
89
|
+
},
|
|
90
|
+
"eslint": {
|
|
91
|
+
"brace-expansion": "2.1.0"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"peerDependencies": {
|
|
95
|
+
"@codemirror/autocomplete": "6.18.1",
|
|
96
|
+
"@codemirror/commands": "6.6.2",
|
|
97
|
+
"@codemirror/language": "6.12.2",
|
|
98
|
+
"@codemirror/lint": "6.9.2",
|
|
99
|
+
"@codemirror/state": "~6.5.2",
|
|
100
|
+
"@codemirror/view": "6.38.8"
|
|
78
101
|
}
|
|
79
102
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": ".",
|
|
5
|
+
"outDir": "./dist-test",
|
|
6
|
+
"module": "nodenext",
|
|
7
|
+
"moduleResolution": "nodenext",
|
|
8
|
+
"isolatedModules": true,
|
|
9
|
+
"emitDeclarationOnly": false,
|
|
10
|
+
"declaration": false,
|
|
11
|
+
"declarationMap": false
|
|
12
|
+
},
|
|
13
|
+
"include": ["src/**/*.ts", "src/**/*.json", "__tests__/**/*.ts"]
|
|
14
|
+
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { GutterMarker } from "@codemirror/view";
|
|
2
|
-
import { StateField, RangeSet } from "@codemirror/state";
|
|
3
|
-
export declare const addProgressIndicatorEffect: import("@codemirror/state").StateEffectType<number>;
|
|
4
|
-
export declare const removeProgressIndicatorEffect: import("@codemirror/state").StateEffectType<null>;
|
|
5
|
-
export declare const addBusyIndicatorEffect: import("@codemirror/state").StateEffectType<number>;
|
|
6
|
-
export declare const removeBusyIndicatorEffect: import("@codemirror/state").StateEffectType<null>;
|
|
7
|
-
export declare const progressIndicatorState: StateField<RangeSet<GutterMarker>>;
|
|
8
|
-
export declare const busyIndicatorState: StateField<RangeSet<GutterMarker>>;
|
|
9
|
-
/**
|
|
10
|
-
* The busy indicator is used to display an indicator in the editor
|
|
11
|
-
* for lines that take a long time.
|
|
12
|
-
*/
|
|
13
|
-
export declare const busyGutter: import("@codemirror/state").Extension;
|
|
14
|
-
/**
|
|
15
|
-
* The progress gutter is used to add an invisible element into the editor that is used to
|
|
16
|
-
* display the progress line.
|
|
17
|
-
*/
|
|
18
|
-
export declare const progressGutter: import("@codemirror/state").Extension;
|
|
19
|
-
//# sourceMappingURL=progress-indicator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress-indicator.d.ts","sourceRoot":"","sources":["../../src/codeview/progress-indicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,YAAY,EAAiB,MAAM,kBAAkB,CAAA;AAC9F,OAAO,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAErE,eAAO,MAAM,0BAA0B,qDAErC,CAAC;AACH,eAAO,MAAM,6BAA6B,mDAAuB,CAAC;AAElE,eAAO,MAAM,sBAAsB,qDAEjC,CAAC;AACH,eAAO,MAAM,yBAAyB,mDAAuB,CAAC;AAW9D,eAAO,MAAM,sBAAsB,oCAejC,CAAC;AAiBH,eAAO,MAAM,kBAAkB,oCAc7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,UAAU,uCAGrB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,uCAGzB,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Tree } from "./Tree";
|
|
2
|
-
import { Block } from "../document";
|
|
3
|
-
import { DocChange, DocumentSerializer, TagConfiguration, WrappingDocChange } from "../api";
|
|
4
|
-
import { Node } from "prosemirror-model";
|
|
5
|
-
import { Step } from "prosemirror-transform";
|
|
6
|
-
/**
|
|
7
|
-
* This class is responsible for keeping track of the mapping between the prosemirror state and the vscode Text
|
|
8
|
-
* Document model
|
|
9
|
-
*/
|
|
10
|
-
export declare class Mapping {
|
|
11
|
-
/** This stores the String cells of the entire document */
|
|
12
|
-
private tree;
|
|
13
|
-
/** The version of the underlying textDocument */
|
|
14
|
-
private _version;
|
|
15
|
-
private readonly nodeUpdate;
|
|
16
|
-
private readonly textUpdate;
|
|
17
|
-
/**
|
|
18
|
-
* Constructs a prosemirror view vscode mapping for the inputted prosemirror html element
|
|
19
|
-
*
|
|
20
|
-
* @param inputBlocks a string containing the prosemirror content html element
|
|
21
|
-
*/
|
|
22
|
-
constructor(inputBlocks: Block[], versionNum: number, tMap: TagConfiguration, serializer: DocumentSerializer);
|
|
23
|
-
/**
|
|
24
|
-
* Returns the mapping to preserve integrity
|
|
25
|
-
*/
|
|
26
|
-
getMapping(): Tree;
|
|
27
|
-
/**
|
|
28
|
-
* Get the version of the underlying text document
|
|
29
|
-
*/
|
|
30
|
-
get version(): number;
|
|
31
|
-
/** Returns the vscode document model index of prosemirror index */
|
|
32
|
-
findPosition(index: number): number;
|
|
33
|
-
/**
|
|
34
|
-
* Returns the prosemirror index corresponding to the given document offset.
|
|
35
|
-
* @param offset The offset (in characters) in the document.
|
|
36
|
-
* @returns The corresponding prosemirror index.
|
|
37
|
-
*/
|
|
38
|
-
findInvPosition(offset: number): number;
|
|
39
|
-
update(step: Step, doc: Node): DocChange | WrappingDocChange;
|
|
40
|
-
/**
|
|
41
|
-
* This checks if the doc change actually changed the document, since vscode
|
|
42
|
-
* does not register empty changes
|
|
43
|
-
*/
|
|
44
|
-
private checkDocChange;
|
|
45
|
-
/**
|
|
46
|
-
* Initializes the mapping given the input document in the form of a Block array.
|
|
47
|
-
* @param blocks
|
|
48
|
-
*/
|
|
49
|
-
private initTree;
|
|
50
|
-
/**
|
|
51
|
-
* Recursively computes the prosemirrorStart and prosemirrorEnd offsets for each node.
|
|
52
|
-
*
|
|
53
|
-
* @param node The current node to compute the offsets for.
|
|
54
|
-
* @param startTagMap The start tag mapping for each block type.
|
|
55
|
-
* @param endTagMap The end tag mapping for each block type.
|
|
56
|
-
* @param currentOffset The current offset from where the computation should begin.
|
|
57
|
-
* @param level The current depth level in the tree (used for adjusting offsets).
|
|
58
|
-
* @returns The updated offset after computing the current node.
|
|
59
|
-
*/
|
|
60
|
-
private computeProsemirrorOffsets;
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=newmapping.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"newmapping.d.ts","sourceRoot":"","sources":["../../src/mapping/newmapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,MAAM,QAAQ,CAAC;AAIxC,OAAO,EAAE,KAAK,EAAc,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAgB,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE1G,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAkC,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7E;;;GAGG;AACH,qBAAa,OAAO;IAChB,0DAA0D;IAC1D,OAAO,CAAC,IAAI,CAAO;IACnB,iDAAiD;IACjD,OAAO,CAAC,QAAQ,CAAS;IAEzB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IAExC;;;;OAIG;gBACS,WAAW,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,kBAAkB;IAkB5G;;OAEG;IACI,UAAU;IAIjB;;OAEG;IACH,IAAW,OAAO,WAEjB;IAED,mEAAmE;IAC5D,YAAY,CAAC,KAAK,EAAE,MAAM;IAMjC;;;;OAIG;IACI,eAAe,CAAC,MAAM,EAAE,MAAM;IAM9B,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,SAAS,GAAG,iBAAiB;IAsCnE;;;OAGG;IACH,OAAO,CAAC,cAAc;IAQtB;;;OAGG;IACH,OAAO,CAAC,QAAQ;IAiChB;;;;;;;;;OASG;IACH,OAAO,CAAC,yBAAyB;CAyDpC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type of completions.
|
|
3
|
-
*/
|
|
4
|
-
export type WaterproofCompletion = {
|
|
5
|
-
/** The label shown in the completion panel */
|
|
6
|
-
label: string;
|
|
7
|
-
/** The type of the completion */
|
|
8
|
-
type: string;
|
|
9
|
-
detail: string;
|
|
10
|
-
template: string;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Completion that can always be inserted.
|
|
14
|
-
* Does not support templating.
|
|
15
|
-
*/
|
|
16
|
-
export type WaterproofSymbol = {
|
|
17
|
-
label: string;
|
|
18
|
-
type: string;
|
|
19
|
-
apply: string;
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=Completions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Completions.d.ts","sourceRoot":"","sources":["../../../src/api/Completions.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This object specifies a TextDocument change. As in prosemirror:
|
|
3
|
-
* startInFile == endInFile: insert operation
|
|
4
|
-
* else: replace or deletion with finalText
|
|
5
|
-
*/
|
|
6
|
-
export type DocChange = {
|
|
7
|
-
startInFile: number;
|
|
8
|
-
endInFile: number;
|
|
9
|
-
finalText: string;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* This object specifies a wrapping TextDocument change. This happens when nodes
|
|
13
|
-
* are wrapped with input or hint
|
|
14
|
-
*/
|
|
15
|
-
export type WrappingDocChange = {
|
|
16
|
-
firstEdit: DocChange;
|
|
17
|
-
secondEdit: DocChange;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=DocChange.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocChange.d.ts","sourceRoot":"","sources":["../../../src/api/DocChange.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,SAAS,CAAC;CACzB,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The different supported input/output file types
|
|
3
|
-
*/
|
|
4
|
-
export declare enum FileFormat {
|
|
5
|
-
/** Markdown enabled coq file (extension: `.mv`) */
|
|
6
|
-
MarkdownV = "MarkdownV",
|
|
7
|
-
/** Regular coq file, with the possibility for coqdoc comments (extension: `.v`) */
|
|
8
|
-
RegularV = "RegularV"
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=FileFormat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileFormat.d.ts","sourceRoot":"","sources":["../../../src/api/FileFormat.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU;IAClB,mDAAmD;IACnD,SAAS,cAAc;IACvB,mFAAmF;IACnF,QAAQ,aAAa;CACxB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The status of an input area.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum InputAreaStatus {
|
|
5
|
-
/** The proof is correct. */
|
|
6
|
-
Proven = "proven",
|
|
7
|
-
/** The proof is unfinished or contains an error. */
|
|
8
|
-
Incomplete = "incomplete",
|
|
9
|
-
/** The input area does not contain `Qed.` at the end, so the status cannot be determined. */
|
|
10
|
-
Invalid = "invalid",
|
|
11
|
-
/** Not in view, so was not requested */
|
|
12
|
-
NotInView = "not-in-view"
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=InputAreaStatus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputAreaStatus.d.ts","sourceRoot":"","sources":["../../../src/api/InputAreaStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,eAAe;IACvB,4BAA4B;IAC5B,MAAM,WAAW;IACjB,oDAAoD;IACpD,UAAU,eAAe;IACzB,6FAA6F;IAC7F,OAAO,YAAY;IACnB,wCAAwC;IACxC,SAAS,gBAAgB;CAC5B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the versioned linenumber message
|
|
3
|
-
*/
|
|
4
|
-
export type LineNumber = {
|
|
5
|
-
/** The linenumbers */
|
|
6
|
-
linenumbers: Array<number>;
|
|
7
|
-
/** Version of the document the linenumbers correspond to.. */
|
|
8
|
-
version: number;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=LineNumber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LineNumber.d.ts","sourceRoot":"","sources":["../../../src/api/LineNumber.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,sBAAsB;IACtB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC;CACnB,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type that indicates that the server is busy processing a document.
|
|
3
|
-
*/
|
|
4
|
-
export type Busy = {
|
|
5
|
-
/** Status */
|
|
6
|
-
status: "Busy";
|
|
7
|
-
/** Extra metadata, can be used to communicate what the server is currently processing */
|
|
8
|
-
metadata: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Type that indicates that the server is idle. This means that it has
|
|
12
|
-
* either completed checking or is stopped.
|
|
13
|
-
*/
|
|
14
|
-
export type Idle = {
|
|
15
|
-
status: "Idle" | "Stopped";
|
|
16
|
-
};
|
|
17
|
-
export type ServerStatus = Busy | Idle;
|
|
18
|
-
//# sourceMappingURL=ServerStatus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServerStatus.d.ts","sourceRoot":"","sources":["../../../src/api/ServerStatus.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACf,aAAa;IACb,MAAM,EAAE,MAAM,CAAC;IACf,yFAAyF;IACzF,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG;IACf,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Severity of reported diagnostics
|
|
3
|
-
*/
|
|
4
|
-
export declare enum Severity {
|
|
5
|
-
Error = 0,
|
|
6
|
-
Warning = 1,
|
|
7
|
-
Information = 2,
|
|
8
|
-
Hint = 3
|
|
9
|
-
}
|
|
10
|
-
export type SeverityLabel = "hint" | "info" | "warning" | "error";
|
|
11
|
-
export declare const SeverityLabelMap: Record<Severity, SeverityLabel>;
|
|
12
|
-
//# sourceMappingURL=Severity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../src/api/Severity.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,oBAAY,QAAQ;IACnB,KAAK,IAAI;IACT,OAAO,IAAI;IACX,WAAW,IAAI;IACZ,IAAI,IAAI;CACX;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAElE,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,CAK5D,CAAC"}
|
package/dist/src/api/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { DocChange, WrappingDocChange } from "./DocChange";
|
|
2
|
-
export { InputAreaStatus } from "./InputAreaStatus";
|
|
3
|
-
export { LineNumber } from "./LineNumber";
|
|
4
|
-
export { Severity, SeverityLabel, SeverityLabelMap } from "./Severity";
|
|
5
|
-
export { FileFormat } from "./FileFormat";
|
|
6
|
-
export * from "./types";
|
|
7
|
-
export { WaterproofCompletion, WaterproofSymbol } from "./Completions";
|
|
8
|
-
export { Completion } from "@codemirror/autocomplete";
|
|
9
|
-
export { Step, ReplaceStep, ReplaceAroundStep } from "prosemirror-transform";
|
|
10
|
-
export { Fragment } from "prosemirror-model";
|
|
11
|
-
export { ServerStatus, Idle, Busy } from "./ServerStatus";
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/src/api/types.d.ts
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { Step } from "prosemirror-transform";
|
|
2
|
-
import { DocChange, WrappingDocChange, Severity, WaterproofCompletion, WaterproofSymbol } from ".";
|
|
3
|
-
import { Block } from "../document";
|
|
4
|
-
/**
|
|
5
|
-
* Represents an area of text, that is editable in the prosemirror view and its
|
|
6
|
-
* mapping to the vscode document
|
|
7
|
-
*/
|
|
8
|
-
export type StringCell = {
|
|
9
|
-
/** The prosemirror starting index of this cell */
|
|
10
|
-
startProse: number;
|
|
11
|
-
/** The prosemirror ending index of this cell */
|
|
12
|
-
endProse: number;
|
|
13
|
-
/** The starting index of this cell in the text document string vscode side */
|
|
14
|
-
startText: number;
|
|
15
|
-
/** The ending index of this cell in the text document string vscode side */
|
|
16
|
-
endText: number;
|
|
17
|
-
};
|
|
18
|
-
export type Positioned<A> = {
|
|
19
|
-
obj: A;
|
|
20
|
-
pos: number | undefined;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* A `WaterproofDocument` is a collection of `Block`s. Every Block in this WaterproofDocument will get translated into some ProseMirror node.
|
|
24
|
-
*
|
|
25
|
-
* Supported blocks are `HintBlock`, `InputAreaBlock`, `MarkdownBlock`, `CoqBlock` and `MathDisplayBlock`.
|
|
26
|
-
*
|
|
27
|
-
* Also see [documentation/UsingWaterproofEditor.md](../../documentation/UsingWaterproofEditor.md)
|
|
28
|
-
*/
|
|
29
|
-
export type WaterproofDocument = Block[];
|
|
30
|
-
export type WaterproofCallbacks = {
|
|
31
|
-
/** Used by the editor to execute a command in the document. */
|
|
32
|
-
executeCommand: (command: string, time: number) => void;
|
|
33
|
-
/** Executed by the editor when the user asks for help via the keybinding or the context menu entry. */
|
|
34
|
-
executeHelp: () => void;
|
|
35
|
-
/** Used by the editor to communicate that it is ready. */
|
|
36
|
-
editorReady: () => void;
|
|
37
|
-
/** The editor will call this function on every change that is made to the underlying document.
|
|
38
|
-
*
|
|
39
|
-
* The change can either be a regular document change or a wrapping document change.
|
|
40
|
-
*/
|
|
41
|
-
documentChange: (change: DocChange | WrappingDocChange) => void;
|
|
42
|
-
/** Only ever used by the editor once an unrecoverable error has occured when mapping changes */
|
|
43
|
-
applyStepError: (errorMessage: string) => void;
|
|
44
|
-
/** Used by the editor to communicate the current cursor position, `cursorPosition` is an offset based position into the document. */
|
|
45
|
-
cursorChange: (cursorPosition: number) => void;
|
|
46
|
-
/** Used to communicate that the linenumbers need to be recomputed for the current document */
|
|
47
|
-
lineNumbers: (linenumbers: Array<number>, version: number) => void;
|
|
48
|
-
/** Fired by the editor when the viewport (the user visible part of the editor changes) */
|
|
49
|
-
viewportHint: (start: number, end: number) => void;
|
|
50
|
-
};
|
|
51
|
-
export declare abstract class WaterproofMapping {
|
|
52
|
-
abstract getMapping: () => Map<number, StringCell>;
|
|
53
|
-
abstract get version(): number;
|
|
54
|
-
abstract findPosition: (index: number) => number;
|
|
55
|
-
abstract findInvPosition: (index: number) => number;
|
|
56
|
-
abstract update: (step: Step) => DocChange | WrappingDocChange;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Configuration object for the WaterproofEditor.
|
|
60
|
-
*
|
|
61
|
-
* - `api` contains the callbacks that the editor will use to communicate with the host application.
|
|
62
|
-
* - `documentConstructor` is a function that takes a string and returns a WaterproofDocument (block representation of a ProseMirror document).
|
|
63
|
-
* - `mapping` is a constructor for the WaterproofMapping class, which handles the mapping between the ProseMirror document and the text document in the host application.
|
|
64
|
-
*/
|
|
65
|
-
export type WaterproofEditorConfig = {
|
|
66
|
-
/** Set of (static) completions that should be shown to the user. */
|
|
67
|
-
completions: Array<WaterproofCompletion>;
|
|
68
|
-
/** Set of (static) symbol completions that should be shown to the user. */
|
|
69
|
-
symbols: Array<WaterproofSymbol>;
|
|
70
|
-
/** How the editor communicates to the parent process */
|
|
71
|
-
api: WaterproofCallbacks;
|
|
72
|
-
/** Determines how the editor document gets constructed from a string input. */
|
|
73
|
-
documentConstructor: (document: string) => WaterproofDocument;
|
|
74
|
-
/** How to construct a mapping for this editor. The mapping is responsible for mapping changes from the underlying ProseMirror instance into changes that can be applied to the underlying document. */
|
|
75
|
-
mapping: new (inputString: string, versionNum: number) => WaterproofMapping;
|
|
76
|
-
/** THIS IS A TEMPORARY FEATURE THAT WILL GET REMOVED */
|
|
77
|
-
documentPreprocessor?: (inputString: string) => {
|
|
78
|
-
resultingDocument: string;
|
|
79
|
-
documentChange: DocChange | WrappingDocChange | undefined;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
export declare enum HistoryChange {
|
|
83
|
-
Undo = 0,
|
|
84
|
-
Redo = 1
|
|
85
|
-
}
|
|
86
|
-
export type SimpleProgressInfo = {
|
|
87
|
-
/** Range for which the processing info was reported. */
|
|
88
|
-
range: {
|
|
89
|
-
start: {
|
|
90
|
-
line: number;
|
|
91
|
-
character: number;
|
|
92
|
-
};
|
|
93
|
-
end: {
|
|
94
|
-
line: number;
|
|
95
|
-
character: number;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
/** Kind of progress that was reported. */
|
|
99
|
-
kind?: CoqFileProgressKind;
|
|
100
|
-
};
|
|
101
|
-
export type SimpleProgressParams = {
|
|
102
|
-
numberOfLines: number;
|
|
103
|
-
progress: SimpleProgressInfo[];
|
|
104
|
-
};
|
|
105
|
-
export declare enum CoqFileProgressKind {
|
|
106
|
-
Processing = 1,
|
|
107
|
-
FatalError = 2
|
|
108
|
-
}
|
|
109
|
-
export interface OffsetDiagnostic {
|
|
110
|
-
message: string;
|
|
111
|
-
severity: Severity;
|
|
112
|
-
startOffset: number;
|
|
113
|
-
endOffset: number;
|
|
114
|
-
}
|
|
115
|
-
export declare enum ThemeStyle {
|
|
116
|
-
Light = 0,
|
|
117
|
-
Dark = 1
|
|
118
|
-
}
|
|
119
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/api/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coqTerms.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/coqTerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO7G,eAAO,MAAM,mBAAmB,EAAE,gBAcjC,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CompletionSource } from "@codemirror/autocomplete";
|
|
2
|
-
/**
|
|
3
|
-
* Function that creates the `emojiCompletionSource`.
|
|
4
|
-
* This function can be used in the editor as a completion source.
|
|
5
|
-
*
|
|
6
|
-
* Emoji list has been generated by using https://github.com/github/gemoji/blob/master/db/emoji.json
|
|
7
|
-
* from https://github.com/github/gemoji
|
|
8
|
-
*/
|
|
9
|
-
export declare const emojiCompletionSource: CompletionSource;
|
|
10
|
-
//# sourceMappingURL=emojis.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emojis.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/emojis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAK3F;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAE,gBAUnC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Completion } from "@codemirror/autocomplete";
|
|
2
|
-
import { EditorState } from "@codemirror/state";
|
|
3
|
-
export declare const renderIcon: {
|
|
4
|
-
render: (completion: Completion, _state: EditorState) => globalThis.Node | null;
|
|
5
|
-
position: number;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=renderSymbol.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderSymbol.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/renderSymbol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgBhD,eAAO,MAAM,UAAU;yBAdK,UAAU,UAAU,WAAW,KAAG,UAAU,CAAC,IAAI,GAAG,IAAI;;CAiBnF,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CompletionSource } from "@codemirror/autocomplete";
|
|
2
|
-
/**
|
|
3
|
-
* Function that creates the `symbolCompletionSource`.
|
|
4
|
-
* This function can be used in the editor as a completion source.
|
|
5
|
-
*/
|
|
6
|
-
export declare const symbolCompletionSource: CompletionSource;
|
|
7
|
-
//# sourceMappingURL=symbols.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/symbols.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAM7G;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,gBAapC,CAAA"}
|
|
@@ -1,28 +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 { CodeBlockView } from "./nodeview";
|
|
5
|
-
import { LineNumber, ThemeStyle, WaterproofCompletion, WaterproofSymbol } from "../api";
|
|
6
|
-
import { Completion } from "@codemirror/autocomplete";
|
|
7
|
-
import { WaterproofEditor } from "../editor";
|
|
8
|
-
export interface ICodePluginState {
|
|
9
|
-
macros: {
|
|
10
|
-
[cmd: string]: string;
|
|
11
|
-
};
|
|
12
|
-
/** A list of currently active `NodeView`s, in insertion order. */
|
|
13
|
-
activeNodeViews: Set<CodeBlockView>;
|
|
14
|
-
/** The schema of the outer editor */
|
|
15
|
-
schema: Schema;
|
|
16
|
-
/** Should the codemirror cells show line numbers */
|
|
17
|
-
showLines: boolean;
|
|
18
|
-
/** The lastest versioned linenumbers */
|
|
19
|
-
lines: LineNumber;
|
|
20
|
-
}
|
|
21
|
-
export declare const CODE_PLUGIN_KEY: PluginKey<ICodePluginState>;
|
|
22
|
-
/**
|
|
23
|
-
* Returns a function suitable for passing as a field in `EditorProps.nodeViews`.
|
|
24
|
-
* @see https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews
|
|
25
|
-
*/
|
|
26
|
-
export declare function createCoqCodeView(completions: Array<Completion>, symbols: Array<Completion>, editorInstance: WaterproofEditor, initialThemeStyle: ThemeStyle): (node: ProseNode, view: EditorView, getPos: () => number | undefined) => CodeBlockView;
|
|
27
|
-
export declare const codePlugin: (completions: Array<WaterproofCompletion>, symbols: Array<WaterproofSymbol>, editorInstance: WaterproofEditor, initialThemeStyle: ThemeStyle) => ProsePlugin<ICodePluginState>;
|
|
28
|
-
//# sourceMappingURL=code-plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-plugin.d.ts","sourceRoot":"","sources":["../../../src/codeview/code-plugin.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,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACxF,OAAO,EAAE,UAAU,EAAqB,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7C,MAAM,WAAW,gBAAgB;IAChC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAC,MAAM,GAAI,MAAM,CAAA;KAAE,CAAC;IAClC,kEAAkE;IAClE,eAAe,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACjC,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,SAAS,EAAE,OAAO,CAAC;IACtB,wCAAwC;IACxC,KAAK,EAAE,UAAU,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,6BAAmE,CAAC;AAEhG;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,IACpJ,MAAM,SAAS,EAAE,MAAM,UAAU,EAAE,QAAQ,MAAM,MAAM,GAAG,SAAS,KAAG,aAAa,CAe3F;AAiED,eAAO,MAAM,UAAU,GAAI,aAAa,KAAK,CAAC,oBAAoB,CAAC,EAAE,SAAS,KAAK,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,gBAAgB,EAAE,mBAAmB,UAAU,kCAOrK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"color-scheme.d.ts","sourceRoot":"","sources":["../../../src/codeview/color-scheme.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,WAAW,uCAA2C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debouncer.d.ts","sourceRoot":"","sources":["../../../src/codeview/debouncer.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAS;IAClB,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,CAAC,KAAK,CAAqB;gBAEtB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI;IAKpC,IAAI;CAMd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/codeview/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HighlightStyle, LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
2
|
-
import { ThemeStyle } from "../../api";
|
|
3
|
-
export declare const highlight_dark: HighlightStyle;
|
|
4
|
-
export declare const highlight_light: HighlightStyle;
|
|
5
|
-
export declare const coqLanguage: LRLanguage;
|
|
6
|
-
export declare function coq(): LanguageSupport;
|
|
7
|
-
export declare function coqSyntaxHighlighting(themeStyle: ThemeStyle): import("@codemirror/state").Extension;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|