@impermeable/waterproof-editor 0.11.0 → 0.13.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.
Files changed (198) hide show
  1. package/dist/api/types.d.ts +0 -4
  2. package/dist/api/types.d.ts.map +1 -1
  3. package/dist/codeview/code-plugin.d.ts +3 -2
  4. package/dist/codeview/code-plugin.d.ts.map +1 -1
  5. package/dist/codeview/nodeview.d.ts +18 -18
  6. package/dist/codeview/nodeview.d.ts.map +1 -1
  7. package/dist/codeview/progress-indicator.d.ts +19 -0
  8. package/dist/codeview/progress-indicator.d.ts.map +1 -0
  9. package/dist/editor.d.ts +45 -9
  10. package/dist/editor.d.ts.map +1 -1
  11. package/dist/embedded-codemirror/embedded-codemirror-keymap.d.ts +1 -1
  12. package/dist/embedded-codemirror/embedded-codemirror-keymap.d.ts.map +1 -1
  13. package/dist/index.js +66 -65
  14. package/dist/mapping/Tree.d.ts +5 -5
  15. package/dist/mapping/Tree.d.ts.map +1 -1
  16. package/dist/mapping/index.d.ts +1 -1
  17. package/dist/mapping/index.d.ts.map +1 -1
  18. package/dist/mapping/mapping.d.ts +65 -0
  19. package/dist/mapping/mapping.d.ts.map +1 -0
  20. package/dist/mapping/nodeUpdate.d.ts +1 -1
  21. package/dist/mapping/nodeUpdate.d.ts.map +1 -1
  22. package/dist/mapping/textUpdate.d.ts +1 -1
  23. package/dist/mapping/textUpdate.d.ts.map +1 -1
  24. package/dist/src/api/Completions.d.ts +21 -0
  25. package/dist/src/api/Completions.d.ts.map +1 -0
  26. package/dist/src/api/DocChange.d.ts +19 -0
  27. package/dist/src/api/DocChange.d.ts.map +1 -0
  28. package/dist/src/api/FileFormat.d.ts +10 -0
  29. package/dist/src/api/FileFormat.d.ts.map +1 -0
  30. package/dist/src/api/InputAreaStatus.d.ts +14 -0
  31. package/dist/src/api/InputAreaStatus.d.ts.map +1 -0
  32. package/dist/src/api/LineNumber.d.ts +10 -0
  33. package/dist/src/api/LineNumber.d.ts.map +1 -0
  34. package/dist/src/api/ServerStatus.d.ts +18 -0
  35. package/dist/src/api/ServerStatus.d.ts.map +1 -0
  36. package/dist/src/api/Severity.d.ts +12 -0
  37. package/dist/src/api/Severity.d.ts.map +1 -0
  38. package/dist/src/api/index.d.ts +12 -0
  39. package/dist/src/api/index.d.ts.map +1 -0
  40. package/dist/src/api/types.d.ts +119 -0
  41. package/dist/src/api/types.d.ts.map +1 -0
  42. package/dist/src/autocomplete/coqTerms.d.ts +3 -0
  43. package/dist/src/autocomplete/coqTerms.d.ts.map +1 -0
  44. package/dist/src/autocomplete/emojis.d.ts +10 -0
  45. package/dist/src/autocomplete/emojis.d.ts.map +1 -0
  46. package/dist/src/autocomplete/index.d.ts +2 -0
  47. package/dist/src/autocomplete/index.d.ts.map +1 -0
  48. package/dist/src/autocomplete/renderSymbol.d.ts +7 -0
  49. package/dist/src/autocomplete/renderSymbol.d.ts.map +1 -0
  50. package/dist/src/autocomplete/symbols.d.ts +7 -0
  51. package/dist/src/autocomplete/symbols.d.ts.map +1 -0
  52. package/dist/src/codeview/code-plugin.d.ts +28 -0
  53. package/dist/src/codeview/code-plugin.d.ts.map +1 -0
  54. package/dist/src/codeview/color-scheme.d.ts +6 -0
  55. package/dist/src/codeview/color-scheme.d.ts.map +1 -0
  56. package/dist/src/codeview/debouncer.d.ts +8 -0
  57. package/dist/src/codeview/debouncer.d.ts.map +1 -0
  58. package/dist/src/codeview/index.d.ts +3 -0
  59. package/dist/src/codeview/index.d.ts.map +1 -0
  60. package/dist/src/codeview/lang-pack/index.d.ts +8 -0
  61. package/dist/src/codeview/lang-pack/index.d.ts.map +1 -0
  62. package/dist/src/codeview/lang-pack/print-grammar.d.ts +2 -0
  63. package/dist/src/codeview/lang-pack/print-grammar.d.ts.map +1 -0
  64. package/dist/src/codeview/lang-pack/syntax.d.ts +3 -0
  65. package/dist/src/codeview/lang-pack/syntax.d.ts.map +1 -0
  66. package/dist/src/codeview/lang-pack/syntax.terms.d.ts +2 -0
  67. package/dist/src/codeview/lang-pack/syntax.terms.d.ts.map +1 -0
  68. package/dist/src/codeview/nodeview.d.ts +63 -0
  69. package/dist/src/codeview/nodeview.d.ts.map +1 -0
  70. package/dist/src/commands/command-helpers.d.ts +48 -0
  71. package/dist/src/commands/command-helpers.d.ts.map +1 -0
  72. package/dist/src/commands/commands.d.ts +30 -0
  73. package/dist/src/commands/commands.d.ts.map +1 -0
  74. package/dist/src/commands/delete-command.d.ts +4 -0
  75. package/dist/src/commands/delete-command.d.ts.map +1 -0
  76. package/dist/src/commands/index.d.ts +4 -0
  77. package/dist/src/commands/index.d.ts.map +1 -0
  78. package/dist/src/commands/insert-command.d.ts +34 -0
  79. package/dist/src/commands/insert-command.d.ts.map +1 -0
  80. package/dist/src/commands/types.d.ts +15 -0
  81. package/dist/src/commands/types.d.ts.map +1 -0
  82. package/dist/src/context-menu/index.d.ts +2 -0
  83. package/dist/src/context-menu/index.d.ts.map +1 -0
  84. package/dist/src/context-menu/menu.d.ts +8 -0
  85. package/dist/src/context-menu/menu.d.ts.map +1 -0
  86. package/dist/src/document/blocks/block.d.ts +24 -0
  87. package/dist/src/document/blocks/block.d.ts.map +1 -0
  88. package/dist/src/document/blocks/blocktypes.d.ts +78 -0
  89. package/dist/src/document/blocks/blocktypes.d.ts.map +1 -0
  90. package/dist/src/document/blocks/index.d.ts +3 -0
  91. package/dist/src/document/blocks/index.d.ts.map +1 -0
  92. package/dist/src/document/blocks/schema.d.ts +21 -0
  93. package/dist/src/document/blocks/schema.d.ts.map +1 -0
  94. package/dist/src/document/blocks/typeguards.d.ts +11 -0
  95. package/dist/src/document/blocks/typeguards.d.ts.map +1 -0
  96. package/dist/src/document/construct-document.d.ts +4 -0
  97. package/dist/src/document/construct-document.d.ts.map +1 -0
  98. package/dist/src/document/index.d.ts +5 -0
  99. package/dist/src/document/index.d.ts.map +1 -0
  100. package/dist/src/document/utils.d.ts +49 -0
  101. package/dist/src/document/utils.d.ts.map +1 -0
  102. package/dist/src/documentProgressDecorator.d.ts +9 -0
  103. package/dist/src/documentProgressDecorator.d.ts.map +1 -0
  104. package/dist/src/editor.d.ts +154 -0
  105. package/dist/src/editor.d.ts.map +1 -0
  106. package/dist/src/embedded-codemirror/embedded-codemirror-keymap.d.ts +9 -0
  107. package/dist/src/embedded-codemirror/embedded-codemirror-keymap.d.ts.map +1 -0
  108. package/dist/src/embedded-codemirror/embeddedCodemirror.d.ts +40 -0
  109. package/dist/src/embedded-codemirror/embeddedCodemirror.d.ts.map +1 -0
  110. package/dist/src/embedded-codemirror/index.d.ts +3 -0
  111. package/dist/src/embedded-codemirror/index.d.ts.map +1 -0
  112. package/dist/src/embedded-codemirror/types.d.ts +9 -0
  113. package/dist/src/embedded-codemirror/types.d.ts.map +1 -0
  114. package/dist/src/hinting/hint-plugin.d.ts +9 -0
  115. package/dist/src/hinting/hint-plugin.d.ts.map +1 -0
  116. package/dist/src/hinting/index.d.ts +2 -0
  117. package/dist/src/hinting/index.d.ts.map +1 -0
  118. package/dist/src/index.d.ts +6 -0
  119. package/dist/src/index.d.ts.map +1 -0
  120. package/dist/src/inputArea.d.ts +14 -0
  121. package/dist/src/inputArea.d.ts.map +1 -0
  122. package/dist/src/markup-views/CoqdocPlugin.d.ts +19 -0
  123. package/dist/src/markup-views/CoqdocPlugin.d.ts.map +1 -0
  124. package/dist/src/markup-views/CoqdocView.d.ts +15 -0
  125. package/dist/src/markup-views/CoqdocView.d.ts.map +1 -0
  126. package/dist/src/markup-views/MarkdownPlugin.d.ts +21 -0
  127. package/dist/src/markup-views/MarkdownPlugin.d.ts.map +1 -0
  128. package/dist/src/markup-views/MarkdownView.d.ts +15 -0
  129. package/dist/src/markup-views/MarkdownView.d.ts.map +1 -0
  130. package/dist/src/markup-views/index.d.ts +5 -0
  131. package/dist/src/markup-views/index.d.ts.map +1 -0
  132. package/dist/src/markup-views/switchable-view/EditableView.d.ts +22 -0
  133. package/dist/src/markup-views/switchable-view/EditableView.d.ts.map +1 -0
  134. package/dist/src/markup-views/switchable-view/EditorTheme.d.ts +8 -0
  135. package/dist/src/markup-views/switchable-view/EditorTheme.d.ts.map +1 -0
  136. package/dist/src/markup-views/switchable-view/MarkdownSchema.d.ts +8 -0
  137. package/dist/src/markup-views/switchable-view/MarkdownSchema.d.ts.map +1 -0
  138. package/dist/src/markup-views/switchable-view/RenderedView.d.ts +13 -0
  139. package/dist/src/markup-views/switchable-view/RenderedView.d.ts.map +1 -0
  140. package/dist/src/markup-views/switchable-view/SwitchableView.d.ts +62 -0
  141. package/dist/src/markup-views/switchable-view/SwitchableView.d.ts.map +1 -0
  142. package/dist/src/markup-views/switchable-view/index.d.ts +2 -0
  143. package/dist/src/markup-views/switchable-view/index.d.ts.map +1 -0
  144. package/dist/src/math-integration/index.d.ts +2 -0
  145. package/dist/src/math-integration/index.d.ts.map +1 -0
  146. package/dist/src/math-integration/nodespecs.d.ts +4 -0
  147. package/dist/src/math-integration/nodespecs.d.ts.map +1 -0
  148. package/dist/src/menubar/index.d.ts +2 -0
  149. package/dist/src/menubar/index.d.ts.map +1 -0
  150. package/dist/src/menubar/menubar.d.ts +25 -0
  151. package/dist/src/menubar/menubar.d.ts.map +1 -0
  152. package/dist/src/osType.d.ts +8 -0
  153. package/dist/src/osType.d.ts.map +1 -0
  154. package/dist/src/progressBar.d.ts +13 -0
  155. package/dist/src/progressBar.d.ts.map +1 -0
  156. package/dist/src/qedStatus.d.ts +9 -0
  157. package/dist/src/qedStatus.d.ts.map +1 -0
  158. package/dist/src/schema/index.d.ts +2 -0
  159. package/dist/src/schema/index.d.ts.map +1 -0
  160. package/dist/src/schema/schema-nodes.d.ts +1 -0
  161. package/dist/src/schema/schema-nodes.d.ts.map +1 -0
  162. package/dist/src/schema/schema.d.ts +23 -0
  163. package/dist/src/schema/schema.d.ts.map +1 -0
  164. package/dist/src/styles/index.d.ts +17 -0
  165. package/dist/src/styles/index.d.ts.map +1 -0
  166. package/dist/src/translation/Translator.d.ts +12 -0
  167. package/dist/src/translation/Translator.d.ts.map +1 -0
  168. package/dist/src/translation/index.d.ts +2 -0
  169. package/dist/src/translation/index.d.ts.map +1 -0
  170. package/dist/src/translation/toProsemirror/index.d.ts +2 -0
  171. package/dist/src/translation/toProsemirror/index.d.ts.map +1 -0
  172. package/dist/src/translation/toProsemirror/mvFileToProsemirror.d.ts +2 -0
  173. package/dist/src/translation/toProsemirror/mvFileToProsemirror.d.ts.map +1 -0
  174. package/dist/src/translation/toProsemirror/parseAsMv.d.ts +7 -0
  175. package/dist/src/translation/toProsemirror/parseAsMv.d.ts.map +1 -0
  176. package/dist/src/translation/toProsemirror/parser.d.ts +3 -0
  177. package/dist/src/translation/toProsemirror/parser.d.ts.map +1 -0
  178. package/dist/src/translation/types.d.ts +12 -0
  179. package/dist/src/translation/types.d.ts.map +1 -0
  180. package/dist/src/utilities/index.d.ts +2 -0
  181. package/dist/src/utilities/index.d.ts.map +1 -0
  182. package/dist/src/utilities/prosemirror.d.ts +13 -0
  183. package/dist/src/utilities/prosemirror.d.ts.map +1 -0
  184. package/dist/tsconfig.tsbuildinfo +1 -0
  185. package/jest-thingie +0 -0
  186. package/package.json +3 -3
  187. package/dist/DEBUG.d.ts +0 -1
  188. package/dist/DEBUG.d.ts.map +0 -1
  189. package/dist/codeview/lang-pack/test.d.ts +0 -2
  190. package/dist/codeview/lang-pack/test.d.ts.map +0 -1
  191. package/dist/markdown-defaults/markdownDefaults.d.ts +0 -9
  192. package/dist/markdown-defaults/markdownDefaults.d.ts.map +0 -1
  193. package/dist/markdownDefaults.d.ts +0 -9
  194. package/dist/markdownDefaults.d.ts.map +0 -1
  195. package/dist/themeStore.d.ts +0 -4
  196. package/dist/themeStore.d.ts.map +0 -1
  197. package/dist/translation/toMathInline.d.ts +0 -2
  198. package/dist/translation/toMathInline.d.ts.map +0 -1
@@ -2,12 +2,12 @@ export declare class TreeNode {
2
2
  /** The type of this node, should be in the WaterproofSchema schema */
3
3
  type: string;
4
4
  /** The inner range of the node, that is, the range of the content */
5
- innerRange: {
5
+ contentRange: {
6
6
  to: number;
7
7
  from: number;
8
8
  };
9
9
  /** The outer range of the node, that is, the range of the content including possible tags */
10
- range: {
10
+ tagRange: {
11
11
  to: number;
12
12
  from: number;
13
13
  };
@@ -26,10 +26,10 @@ export declare class TreeNode {
26
26
  };
27
27
  /** Potential children of this tree node */
28
28
  children: TreeNode[];
29
- constructor(type: string, innerRange: {
29
+ constructor(type: string, contentRange: {
30
30
  to: number;
31
31
  from: number;
32
- }, range: {
32
+ }, tagRange: {
33
33
  to: number;
34
34
  from: number;
35
35
  }, title: string, prosemirrorStart: number, prosemirrorEnd: number, pmRange: {
@@ -44,7 +44,7 @@ export declare class TreeNode {
44
44
  }
45
45
  export declare class Tree {
46
46
  root: TreeNode;
47
- constructor(type: string, innerRange: {
47
+ constructor(type: string, contentRange: {
48
48
  from: number;
49
49
  to: number;
50
50
  }, range: {
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../src/mapping/Tree.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAQ;IACjB,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,UAAU,EAAE;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC;IACvC,6FAA6F;IAC7F,KAAK,EAAE;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC;IAClC,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC,CAAC;IACpC,2CAA2C;IAC3C,QAAQ,EAAE,QAAQ,EAAE,CAAC;gBAGjB,IAAI,EAAE,MAAM,EACZ,UAAU,EAA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AAE,EAAE,MAAM,CAAA;KAAC;IAMvC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,EAAE,IAAI,GAAE,QAAoB,GAAG,IAAI;IAOxF,oBAAoB,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;IAY9D,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,QAAoB,GAAG,QAAQ;IAa5E,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,GAAE,QAAQ,GAAG,IAAgB,EAAE,MAAM,GAAE,QAAQ,GAAG,IAAW,GAAG,QAAQ,GAAG,IAAI;IAUhH,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,QAAQ,GAAG,IAAgB,GAAG,QAAQ,GAAG,IAAI;IAY3F,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,QAAQ,GAAG,IAAgB,GAAG,QAAQ,GAAG,IAAI;IAY9F;;;;;;;OAOG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,QAAoB,GAAG,QAAQ,GAAG,IAAI;IAwB5E,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,GAAE,QAAQ,GAAG,IAAgB,GAAG,QAAQ,EAAE;IAW1F,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO;CAY/C"}
@@ -1,4 +1,4 @@
1
- export { Mapping } from "./newmapping";
1
+ export { Mapping } from "./mapping";
2
2
  export { Tree } from "./Tree";
3
3
  export { TreeNode } from "./Tree";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mapping/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mapping/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,65 @@
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 the mapping instance given the source document in the form of a block array.
19
+ * @param inputBlocks Array containing the blocks that make up this document.
20
+ */
21
+ constructor(inputBlocks: Block[], versionNum: number, tMap: TagConfiguration, serializer: DocumentSerializer);
22
+ /**
23
+ * Returns the mapping to preserve integrity
24
+ */
25
+ getMapping(): Tree;
26
+ /**
27
+ * Get the version of the underlying text document
28
+ */
29
+ get version(): number;
30
+ /**
31
+ * Map a ProseMirror index into the corresponding text offset.
32
+ * @param index A valid ProseMirror offset.
33
+ * @returns The corresponding text offset into the document.
34
+ */
35
+ pmIndexToTextOffset(index: number): number;
36
+ /**
37
+ * Map a text offset into the corresponding ProseMirror index.
38
+ * @param offset The offset (in characters) in the document.
39
+ * @returns The corresponding ProseMirror index into the ProseMirror view.
40
+ */
41
+ textOffsetToPmIndex(offset: number): number;
42
+ update(step: Step, doc: Node): DocChange | WrappingDocChange;
43
+ /**
44
+ * This checks if the doc change actually changed the document, since vscode
45
+ * does not register empty changes
46
+ */
47
+ private checkDocChange;
48
+ /**
49
+ * Initializes the mapping given the input document in the form of a Block array.
50
+ * @param blocks
51
+ */
52
+ private initTree;
53
+ /**
54
+ * Recursively computes the prosemirrorStart and prosemirrorEnd offsets for each node.
55
+ *
56
+ * @param node The current node to compute the offsets for.
57
+ * @param startTagMap The start tag mapping for each block type.
58
+ * @param endTagMap The end tag mapping for each block type.
59
+ * @param currentOffset The current offset from where the computation should begin.
60
+ * @param level The current depth level in the tree (used for adjusting offsets).
61
+ * @returns The updated offset after computing the current node.
62
+ */
63
+ private computeProsemirrorOffsets;
64
+ }
65
+ //# sourceMappingURL=mapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../src/mapping/mapping.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;;;OAGG;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;;;;OAIG;IACI,mBAAmB,CAAC,KAAK,EAAE,MAAM;IAMxC;;;;OAIG;IACI,mBAAmB,CAAC,MAAM,EAAE,MAAM;IAMlC,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,6 +1,6 @@
1
1
  import { Tree, TreeNode } from "./Tree";
2
2
  import { ParsedStep } from "./types";
3
- import { Mapping } from "./newmapping";
3
+ import { Mapping } from "./mapping";
4
4
  import { DocumentSerializer, TagConfiguration } from "../api";
5
5
  import { Node } from "prosemirror-model";
6
6
  import { ReplaceAroundStep, ReplaceStep } from "prosemirror-transform";
@@ -1 +1 @@
1
- {"version":3,"file":"nodeUpdate.d.ts","sourceRoot":"","sources":["../../src/mapping/nodeUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAiB,UAAU,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAa,kBAAkB,EAAmB,gBAAgB,EAAqB,MAAM,QAAQ,CAAC;AAE7G,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEvE,qBAAa,UAAU;IAEN,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAoB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAtD,OAAO,EAAE,gBAAgB,EAAmB,UAAU,EAAE,kBAAkB;IAGxG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,GAAG,CAAC,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BAAtD,OAAO,EAAE,gBAAgB,EAAmB,UAAU,EAAE,kBAAkB;IAGxG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IAkBlE,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAI,UAAU;IAgBvF,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU;IAc9D,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU;IAkB1E,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,GAAG,UAAU;IAiFxD,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,QAAQ;IAiE9E;;;;;OAKG;IACH,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,GAAG,UAAU;IAiDxD,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,UAAU;IA4DpE,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,UAAU;CAmGxE"}
@@ -1,4 +1,4 @@
1
- import { Mapping } from "./newmapping";
1
+ import { Mapping } from "./mapping";
2
2
  import { ParsedStep } from "./types";
3
3
  import { ReplaceStep } from "prosemirror-transform";
4
4
  export declare class TextUpdate {
@@ -1 +1 @@
1
- {"version":3,"file":"textUpdate.d.ts","sourceRoot":"","sources":["../../src/mapping/textUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,qBAAa,UAAU;IAEnB,qJAAqJ;IACrJ,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,UAAU;CAoD/D"}
1
+ {"version":3,"file":"textUpdate.d.ts","sourceRoot":"","sources":["../../src/mapping/textUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,qBAAa,UAAU;IAEnB,qJAAqJ;IACrJ,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,UAAU;CAoD/D"}
@@ -0,0 +1,21 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,19 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,119 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":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xD,KAAK,EAAE;QACH,KAAK,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3C,GAAG,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAA;SAAE,CAAC;KAC5C,CAAC;IACF,0CAA0C;IAC1C,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC9B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,kBAAkB,EAAE,CAAC;CAClC,CAAA;AAED,oBAAY,mBAAmB;IAC3B,UAAU,IAAI;IACd,UAAU,IAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,oBAAY,UAAU;IAClB,KAAK,IAAA;IAAE,IAAI,IAAA;CACd"}
@@ -0,0 +1,3 @@
1
+ import { CompletionSource } from "@codemirror/autocomplete";
2
+ export declare const coqCompletionSource: CompletionSource;
3
+ //# sourceMappingURL=coqTerms.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export { renderIcon } from "./renderSymbol";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,28 @@
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
@@ -0,0 +1 @@
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,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main/src/one-dark.ts
4
+ */
5
+ export declare const customTheme: import("@codemirror/state").Extension;
6
+ //# sourceMappingURL=color-scheme.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
1
+ export declare class Debouncer {
2
+ private _func;
3
+ private _delay;
4
+ private timer;
5
+ constructor(delay: number, func: () => void);
6
+ call(): void;
7
+ }
8
+ //# sourceMappingURL=debouncer.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export { CodeBlockView } from "./nodeview";
2
+ export { CODE_PLUGIN_KEY, codePlugin } from "./code-plugin";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/codeview/lang-pack/index.ts"],"names":[],"mappings":"AACA,OAAO,EACH,cAAc,EAAE,UAAU,EAAE,eAAe,EAC9C,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAqBtC,eAAO,MAAM,cAAc,gBAUzB,CAAA;AAGF,eAAO,MAAM,eAAe,gBAU1B,CAAC;AAGH,eAAO,MAAM,WAAW,YAqFtB,CAAA;AAEF,wBAAgB,GAAG,oBAElB;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,UAAU,yCAG3D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=print-grammar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"print-grammar.d.ts","sourceRoot":"","sources":["../../../../src/codeview/lang-pack/print-grammar.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { LRParser } from "@lezer/lr";
2
+ export declare const parser: LRParser;
3
+ //# sourceMappingURL=syntax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syntax.d.ts","sourceRoot":"","sources":["../../../../src/codeview/lang-pack/syntax.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAkB,MAAM,WAAW,CAAA;AACnD,eAAO,MAAM,MAAM,UAajB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const Program = 1, Sentence = 2, Comment = 3, FocusOperation = 4, Bullet = 5, FocusBrace = 6, UnfocusBrace = 7, WaterproofTactic = 8, Argument = 16, And = 17, That = 19, As = 23, DefineSymbol = 30, In = 31, All = 35, AccordingTo = 37, SuchAn = 38, Magic = 40, It = 41, We = 44, Both = 48, Or = 50, Vernac = 52, Lemmas = 69, LemmaKeyword = 70, Definitions = 74, DefinitionKeyword = 75, ArgumentEnd = 79;
2
+ //# sourceMappingURL=syntax.terms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syntax.terms.d.ts","sourceRoot":"","sources":["../../../../src/codeview/lang-pack/syntax.terms.ts"],"names":[],"mappings":"AACA,eAAO,MACL,OAAO,IAAI,EACX,QAAQ,IAAI,EACZ,OAAO,IAAI,EACX,cAAc,IAAI,EAClB,MAAM,IAAI,EACV,UAAU,IAAI,EACd,YAAY,IAAI,EAChB,gBAAgB,IAAI,EACpB,QAAQ,KAAK,EACb,GAAG,KAAK,EACR,IAAI,KAAK,EACT,EAAE,KAAK,EACP,YAAY,KAAK,EACjB,EAAE,KAAK,EACP,GAAG,KAAK,EACR,WAAW,KAAK,EAChB,MAAM,KAAK,EACX,KAAK,KAAK,EACV,EAAE,KAAK,EACP,EAAE,KAAK,EACP,IAAI,KAAK,EACT,EAAE,KAAK,EACP,MAAM,KAAK,EACX,MAAM,KAAK,EACX,YAAY,KAAK,EACjB,WAAW,KAAK,EAChB,iBAAiB,KAAK,EACtB,WAAW,KAAK,CAAA"}