@impermeable/waterproof-editor 0.12.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 (202) 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 +14 -14
  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/commands/utils.d.ts +14 -0
  10. package/dist/commands/utils.d.ts.map +1 -0
  11. package/dist/editor.d.ts +45 -9
  12. package/dist/editor.d.ts.map +1 -1
  13. package/dist/index.js +66 -65
  14. package/dist/mapping/Tree.d.ts +75 -0
  15. package/dist/mapping/Tree.d.ts.map +1 -0
  16. package/dist/mapping/helper-functions.d.ts +4 -0
  17. package/dist/mapping/helper-functions.d.ts.map +1 -0
  18. package/dist/mapping/index.d.ts +4 -0
  19. package/dist/mapping/index.d.ts.map +1 -0
  20. package/dist/mapping/mapping.d.ts +65 -0
  21. package/dist/mapping/mapping.d.ts.map +1 -0
  22. package/dist/mapping/newmapping.d.ts +62 -0
  23. package/dist/mapping/newmapping.d.ts.map +1 -0
  24. package/dist/mapping/nodeUpdate.d.ts +27 -0
  25. package/dist/mapping/nodeUpdate.d.ts.map +1 -0
  26. package/dist/mapping/textUpdate.d.ts +8 -0
  27. package/dist/mapping/textUpdate.d.ts.map +1 -0
  28. package/dist/mapping/types.d.ts +22 -0
  29. package/dist/mapping/types.d.ts.map +1 -0
  30. package/dist/markdown-defaults/index.d.ts +4 -0
  31. package/dist/markdown-defaults/index.d.ts.map +1 -0
  32. package/dist/markdown-defaults/statemachine.d.ts +14 -0
  33. package/dist/markdown-defaults/statemachine.d.ts.map +1 -0
  34. package/dist/markup-views/SwitchableViewPlugin.d.ts +22 -0
  35. package/dist/markup-views/SwitchableViewPlugin.d.ts.map +1 -0
  36. package/dist/serialization/DocumentSerializer.d.ts +89 -0
  37. package/dist/serialization/DocumentSerializer.d.ts.map +1 -0
  38. package/dist/src/api/Completions.d.ts +21 -0
  39. package/dist/src/api/Completions.d.ts.map +1 -0
  40. package/dist/src/api/DocChange.d.ts +19 -0
  41. package/dist/src/api/DocChange.d.ts.map +1 -0
  42. package/dist/src/api/FileFormat.d.ts +10 -0
  43. package/dist/src/api/FileFormat.d.ts.map +1 -0
  44. package/dist/src/api/InputAreaStatus.d.ts +14 -0
  45. package/dist/src/api/InputAreaStatus.d.ts.map +1 -0
  46. package/dist/src/api/LineNumber.d.ts +10 -0
  47. package/dist/src/api/LineNumber.d.ts.map +1 -0
  48. package/dist/src/api/ServerStatus.d.ts +18 -0
  49. package/dist/src/api/ServerStatus.d.ts.map +1 -0
  50. package/dist/src/api/Severity.d.ts +12 -0
  51. package/dist/src/api/Severity.d.ts.map +1 -0
  52. package/dist/src/api/index.d.ts +12 -0
  53. package/dist/src/api/index.d.ts.map +1 -0
  54. package/dist/src/api/types.d.ts +119 -0
  55. package/dist/src/api/types.d.ts.map +1 -0
  56. package/dist/src/autocomplete/coqTerms.d.ts +3 -0
  57. package/dist/src/autocomplete/coqTerms.d.ts.map +1 -0
  58. package/dist/src/autocomplete/emojis.d.ts +10 -0
  59. package/dist/src/autocomplete/emojis.d.ts.map +1 -0
  60. package/dist/src/autocomplete/index.d.ts +2 -0
  61. package/dist/src/autocomplete/index.d.ts.map +1 -0
  62. package/dist/src/autocomplete/renderSymbol.d.ts +7 -0
  63. package/dist/src/autocomplete/renderSymbol.d.ts.map +1 -0
  64. package/dist/src/autocomplete/symbols.d.ts +7 -0
  65. package/dist/src/autocomplete/symbols.d.ts.map +1 -0
  66. package/dist/src/codeview/code-plugin.d.ts +28 -0
  67. package/dist/src/codeview/code-plugin.d.ts.map +1 -0
  68. package/dist/src/codeview/color-scheme.d.ts +6 -0
  69. package/dist/src/codeview/color-scheme.d.ts.map +1 -0
  70. package/dist/src/codeview/debouncer.d.ts +8 -0
  71. package/dist/src/codeview/debouncer.d.ts.map +1 -0
  72. package/dist/src/codeview/index.d.ts +3 -0
  73. package/dist/src/codeview/index.d.ts.map +1 -0
  74. package/dist/src/codeview/lang-pack/index.d.ts +8 -0
  75. package/dist/src/codeview/lang-pack/index.d.ts.map +1 -0
  76. package/dist/src/codeview/lang-pack/print-grammar.d.ts +2 -0
  77. package/dist/src/codeview/lang-pack/print-grammar.d.ts.map +1 -0
  78. package/dist/src/codeview/lang-pack/syntax.d.ts +3 -0
  79. package/dist/src/codeview/lang-pack/syntax.d.ts.map +1 -0
  80. package/dist/src/codeview/lang-pack/syntax.terms.d.ts +2 -0
  81. package/dist/src/codeview/lang-pack/syntax.terms.d.ts.map +1 -0
  82. package/dist/src/codeview/nodeview.d.ts +63 -0
  83. package/dist/src/codeview/nodeview.d.ts.map +1 -0
  84. package/dist/src/commands/command-helpers.d.ts +48 -0
  85. package/dist/src/commands/command-helpers.d.ts.map +1 -0
  86. package/dist/src/commands/commands.d.ts +30 -0
  87. package/dist/src/commands/commands.d.ts.map +1 -0
  88. package/dist/src/commands/delete-command.d.ts +4 -0
  89. package/dist/src/commands/delete-command.d.ts.map +1 -0
  90. package/dist/src/commands/index.d.ts +4 -0
  91. package/dist/src/commands/index.d.ts.map +1 -0
  92. package/dist/src/commands/insert-command.d.ts +34 -0
  93. package/dist/src/commands/insert-command.d.ts.map +1 -0
  94. package/dist/src/commands/types.d.ts +15 -0
  95. package/dist/src/commands/types.d.ts.map +1 -0
  96. package/dist/src/context-menu/index.d.ts +2 -0
  97. package/dist/src/context-menu/index.d.ts.map +1 -0
  98. package/dist/src/context-menu/menu.d.ts +8 -0
  99. package/dist/src/context-menu/menu.d.ts.map +1 -0
  100. package/dist/src/document/blocks/block.d.ts +24 -0
  101. package/dist/src/document/blocks/block.d.ts.map +1 -0
  102. package/dist/src/document/blocks/blocktypes.d.ts +78 -0
  103. package/dist/src/document/blocks/blocktypes.d.ts.map +1 -0
  104. package/dist/src/document/blocks/index.d.ts +3 -0
  105. package/dist/src/document/blocks/index.d.ts.map +1 -0
  106. package/dist/src/document/blocks/schema.d.ts +21 -0
  107. package/dist/src/document/blocks/schema.d.ts.map +1 -0
  108. package/dist/src/document/blocks/typeguards.d.ts +11 -0
  109. package/dist/src/document/blocks/typeguards.d.ts.map +1 -0
  110. package/dist/src/document/construct-document.d.ts +4 -0
  111. package/dist/src/document/construct-document.d.ts.map +1 -0
  112. package/dist/src/document/index.d.ts +5 -0
  113. package/dist/src/document/index.d.ts.map +1 -0
  114. package/dist/src/document/utils.d.ts +49 -0
  115. package/dist/src/document/utils.d.ts.map +1 -0
  116. package/dist/src/documentProgressDecorator.d.ts +9 -0
  117. package/dist/src/documentProgressDecorator.d.ts.map +1 -0
  118. package/dist/src/editor.d.ts +154 -0
  119. package/dist/src/editor.d.ts.map +1 -0
  120. package/dist/src/embedded-codemirror/embedded-codemirror-keymap.d.ts +9 -0
  121. package/dist/src/embedded-codemirror/embedded-codemirror-keymap.d.ts.map +1 -0
  122. package/dist/src/embedded-codemirror/embeddedCodemirror.d.ts +40 -0
  123. package/dist/src/embedded-codemirror/embeddedCodemirror.d.ts.map +1 -0
  124. package/dist/src/embedded-codemirror/index.d.ts +3 -0
  125. package/dist/src/embedded-codemirror/index.d.ts.map +1 -0
  126. package/dist/src/embedded-codemirror/types.d.ts +9 -0
  127. package/dist/src/embedded-codemirror/types.d.ts.map +1 -0
  128. package/dist/src/hinting/hint-plugin.d.ts +9 -0
  129. package/dist/src/hinting/hint-plugin.d.ts.map +1 -0
  130. package/dist/src/hinting/index.d.ts +2 -0
  131. package/dist/src/hinting/index.d.ts.map +1 -0
  132. package/dist/src/index.d.ts +6 -0
  133. package/dist/src/index.d.ts.map +1 -0
  134. package/dist/src/inputArea.d.ts +14 -0
  135. package/dist/src/inputArea.d.ts.map +1 -0
  136. package/dist/src/markup-views/CoqdocPlugin.d.ts +19 -0
  137. package/dist/src/markup-views/CoqdocPlugin.d.ts.map +1 -0
  138. package/dist/src/markup-views/CoqdocView.d.ts +15 -0
  139. package/dist/src/markup-views/CoqdocView.d.ts.map +1 -0
  140. package/dist/src/markup-views/MarkdownPlugin.d.ts +21 -0
  141. package/dist/src/markup-views/MarkdownPlugin.d.ts.map +1 -0
  142. package/dist/src/markup-views/MarkdownView.d.ts +15 -0
  143. package/dist/src/markup-views/MarkdownView.d.ts.map +1 -0
  144. package/dist/src/markup-views/index.d.ts +5 -0
  145. package/dist/src/markup-views/index.d.ts.map +1 -0
  146. package/dist/src/markup-views/switchable-view/EditableView.d.ts +22 -0
  147. package/dist/src/markup-views/switchable-view/EditableView.d.ts.map +1 -0
  148. package/dist/src/markup-views/switchable-view/EditorTheme.d.ts +8 -0
  149. package/dist/src/markup-views/switchable-view/EditorTheme.d.ts.map +1 -0
  150. package/dist/src/markup-views/switchable-view/MarkdownSchema.d.ts +8 -0
  151. package/dist/src/markup-views/switchable-view/MarkdownSchema.d.ts.map +1 -0
  152. package/dist/src/markup-views/switchable-view/RenderedView.d.ts +13 -0
  153. package/dist/src/markup-views/switchable-view/RenderedView.d.ts.map +1 -0
  154. package/dist/src/markup-views/switchable-view/SwitchableView.d.ts +62 -0
  155. package/dist/src/markup-views/switchable-view/SwitchableView.d.ts.map +1 -0
  156. package/dist/src/markup-views/switchable-view/index.d.ts +2 -0
  157. package/dist/src/markup-views/switchable-view/index.d.ts.map +1 -0
  158. package/dist/src/math-integration/index.d.ts +2 -0
  159. package/dist/src/math-integration/index.d.ts.map +1 -0
  160. package/dist/src/math-integration/nodespecs.d.ts +4 -0
  161. package/dist/src/math-integration/nodespecs.d.ts.map +1 -0
  162. package/dist/src/menubar/index.d.ts +2 -0
  163. package/dist/src/menubar/index.d.ts.map +1 -0
  164. package/dist/src/menubar/menubar.d.ts +25 -0
  165. package/dist/src/menubar/menubar.d.ts.map +1 -0
  166. package/dist/src/osType.d.ts +8 -0
  167. package/dist/src/osType.d.ts.map +1 -0
  168. package/dist/src/progressBar.d.ts +13 -0
  169. package/dist/src/progressBar.d.ts.map +1 -0
  170. package/dist/src/qedStatus.d.ts +9 -0
  171. package/dist/src/qedStatus.d.ts.map +1 -0
  172. package/dist/src/schema/index.d.ts +2 -0
  173. package/dist/src/schema/index.d.ts.map +1 -0
  174. package/dist/src/schema/schema-nodes.d.ts +1 -0
  175. package/dist/src/schema/schema-nodes.d.ts.map +1 -0
  176. package/dist/src/schema/schema.d.ts +23 -0
  177. package/dist/src/schema/schema.d.ts.map +1 -0
  178. package/dist/src/styles/index.d.ts +17 -0
  179. package/dist/src/styles/index.d.ts.map +1 -0
  180. package/dist/src/translation/Translator.d.ts +12 -0
  181. package/dist/src/translation/Translator.d.ts.map +1 -0
  182. package/dist/src/translation/index.d.ts +2 -0
  183. package/dist/src/translation/index.d.ts.map +1 -0
  184. package/dist/src/translation/toProsemirror/index.d.ts +2 -0
  185. package/dist/src/translation/toProsemirror/index.d.ts.map +1 -0
  186. package/dist/src/translation/toProsemirror/mvFileToProsemirror.d.ts +2 -0
  187. package/dist/src/translation/toProsemirror/mvFileToProsemirror.d.ts.map +1 -0
  188. package/dist/src/translation/toProsemirror/parseAsMv.d.ts +7 -0
  189. package/dist/src/translation/toProsemirror/parseAsMv.d.ts.map +1 -0
  190. package/dist/src/translation/toProsemirror/parser.d.ts +3 -0
  191. package/dist/src/translation/toProsemirror/parser.d.ts.map +1 -0
  192. package/dist/src/translation/types.d.ts +12 -0
  193. package/dist/src/translation/types.d.ts.map +1 -0
  194. package/dist/src/utilities/index.d.ts +2 -0
  195. package/dist/src/utilities/index.d.ts.map +1 -0
  196. package/dist/src/utilities/prosemirror.d.ts +13 -0
  197. package/dist/src/utilities/prosemirror.d.ts.map +1 -0
  198. package/dist/translation/toMarkdownTranslation.d.ts +3 -0
  199. package/dist/translation/toMarkdownTranslation.d.ts.map +1 -0
  200. package/dist/tsconfig.tsbuildinfo +1 -0
  201. package/jest-thingie +0 -0
  202. package/package.json +3 -3
@@ -0,0 +1,78 @@
1
+ import { BLOCK_NAME, Block, BlockRange } from "./block";
2
+ export declare class InputAreaBlock implements Block {
3
+ stringContent: string;
4
+ range: BlockRange;
5
+ type: BLOCK_NAME;
6
+ innerBlocks: Block[];
7
+ constructor(stringContent: string, range: BlockRange, innerBlockConstructor: (content: string) => Block[]);
8
+ toProseMirror(): import("prosemirror-model").Node;
9
+ debugPrint(level: number): void;
10
+ }
11
+ export declare class HintBlock implements Block {
12
+ stringContent: string;
13
+ title: string;
14
+ range: BlockRange;
15
+ type: BLOCK_NAME;
16
+ innerBlocks: Block[];
17
+ constructor(stringContent: string, title: string, range: BlockRange, innerBlockConstructor: (content: string) => Block[]);
18
+ toProseMirror(): import("prosemirror-model").Node;
19
+ debugPrint(level: number): void;
20
+ }
21
+ export declare class MathDisplayBlock implements Block {
22
+ stringContent: string;
23
+ range: BlockRange;
24
+ type: BLOCK_NAME;
25
+ constructor(stringContent: string, range: BlockRange);
26
+ toProseMirror(): import("prosemirror-model").Node;
27
+ debugPrint(level: number): void;
28
+ }
29
+ export declare class CoqBlock implements Block {
30
+ stringContent: string;
31
+ prePreWhite: string;
32
+ prePostWhite: string;
33
+ postPreWhite: string;
34
+ postPostWhite: string;
35
+ range: BlockRange;
36
+ type: BLOCK_NAME;
37
+ innerBlocks: Block[];
38
+ constructor(stringContent: string, prePreWhite: string, prePostWhite: string, postPreWhite: string, postPostWhite: string, range: BlockRange, innerBlockConstructor: (content: string) => Block[]);
39
+ toProseMirror(): import("prosemirror-model").Node;
40
+ debugPrint(level: number): void;
41
+ }
42
+ export declare class MarkdownBlock implements Block {
43
+ stringContent: string;
44
+ range: BlockRange;
45
+ type: BLOCK_NAME;
46
+ isNewLineOnly: boolean;
47
+ constructor(stringContent: string, range: BlockRange);
48
+ toProseMirror(): import("prosemirror-model").Node;
49
+ debugPrint(level: number): void;
50
+ }
51
+ export declare class CoqDocBlock implements Block {
52
+ stringContent: string;
53
+ preWhite: string;
54
+ postWhite: string;
55
+ range: BlockRange;
56
+ type: BLOCK_NAME;
57
+ innerBlocks: Block[];
58
+ constructor(stringContent: string, preWhite: string, postWhite: string, range: BlockRange, innerBlockConstructor: (content: string) => Block[]);
59
+ toProseMirror(): import("prosemirror-model").Node;
60
+ debugPrint(level?: number): void;
61
+ }
62
+ export declare class CoqMarkdownBlock implements Block {
63
+ stringContent: string;
64
+ range: BlockRange;
65
+ type: BLOCK_NAME;
66
+ constructor(stringContent: string, range: BlockRange);
67
+ toProseMirror(): import("prosemirror-model").Node;
68
+ debugPrint(level: number): void;
69
+ }
70
+ export declare class CoqCodeBlock implements Block {
71
+ stringContent: string;
72
+ range: BlockRange;
73
+ type: BLOCK_NAME;
74
+ constructor(stringContent: string, range: BlockRange);
75
+ toProseMirror(): import("prosemirror-model").Node;
76
+ debugPrint(level: number): void;
77
+ }
78
+ //# sourceMappingURL=blocktypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blocktypes.d.ts","sourceRoot":"","sources":["../../../../src/document/blocks/blocktypes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAOxD,qBAAa,cAAe,YAAW,KAAK;IAIpB,aAAa,EAAE,MAAM;IAAS,KAAK,EAAE,UAAU;IAH5D,IAAI,aAAyB;IAC7B,WAAW,EAAE,KAAK,EAAE,CAAC;gBAER,aAAa,EAAE,MAAM,EAAS,KAAK,EAAE,UAAU,EAAE,qBAAqB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,KAAK,EAAE;IAIxH,aAAa;IAMb,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAKlC;AAED,qBAAa,SAAU,YAAW,KAAK;IAKf,aAAa,EAAE,MAAM;IAAS,KAAK,EAAE,MAAM;IAAS,KAAK,EAAE,UAAU;IAJlF,IAAI,aAAmB;IACvB,WAAW,EAAE,KAAK,EAAE,CAAC;gBAGR,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AAM;IAAS,SAAS,EAAE,MAAM;IAAS,KAAK,EAAE,UAAU;IAH/G,IAAI,aAAsB;IAC1B,WAAW,EAAE,KAAK,EAAE,CAAC;gBAER,aAAa,EAAE,MAAM,EAAS,QAAQ,EAAE,MAAM,EAAS,SAAS,EAAE,MAAM,EAAS,KAAK,EAAE,UAAU,EAAE,qBAAqB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,KAAK,EAAE;IAI3K,aAAa;IAMb,UAAU,CAAC,KAAK,GAAE,MAAU;CAK/B;AAED,qBAAa,gBAAiB,YAAW,KAAK;IAGtB,aAAa,EAAE,MAAM;IAAS,KAAK,EAAE,UAAU;IAF5D,IAAI,aAA2B;gBAElB,aAAa,EAAE,MAAM,EAAS,KAAK,EAAE,UAAU;IAEnE,aAAa;IAMb,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAGlC;AAED,qBAAa,YAAa,YAAW,KAAK;IAGlB,aAAa,EAAE,MAAM;IAAS,KAAK,EAAE,UAAU;IAF5D,IAAI,aAAuB;gBAEd,aAAa,EAAE,MAAM,EAAS,KAAK,EAAE,UAAU;IAEnE,aAAa;IASb,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAGlC"}
@@ -0,0 +1,3 @@
1
+ export { BlockRange, Block } from "./block";
2
+ export { InputAreaBlock, HintBlock, CoqBlock, MathDisplayBlock, MarkdownBlock, CoqDocBlock, CoqCodeBlock, CoqMarkdownBlock } from "./blocktypes";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/document/blocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { Node as ProseNode } from "prosemirror-model";
2
+ /** Construct basic prosemirror text node. */
3
+ export declare const text: (content: string) => ProseNode;
4
+ /** Construct coq markdown prosemirror node. */
5
+ export declare const coqMarkdown: (content: string) => ProseNode;
6
+ /** Construct math display prosemirror node. */
7
+ export declare const mathDisplay: (content: string) => ProseNode;
8
+ /** Construct markdown prosemirror node. */
9
+ export declare const markdown: (content: string) => ProseNode;
10
+ /** Construct coqcode prosemirror node. */
11
+ export declare const coqCode: (content: string) => ProseNode;
12
+ /** Construct input area prosemirror node. */
13
+ export declare const inputArea: (childNodes: ProseNode[]) => ProseNode;
14
+ /** Construct hint prosemirror node. */
15
+ export declare const hint: (title: string, childNodes: ProseNode[]) => ProseNode;
16
+ /** Construct coq prosemirror node. */
17
+ export declare const coqblock: (childNodes: ProseNode[], prePreWhite: string, prePostWhite: string, postPreWhite: string, postPostWhite: string) => ProseNode;
18
+ /** Construct coqdoc prosemirror node. */
19
+ export declare const coqDoc: (childNodes: ProseNode[], preWhite: string, postWhite: string) => ProseNode;
20
+ export declare const root: (childNodes: ProseNode[]) => ProseNode;
21
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/document/blocks/schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAItD,6CAA6C;AAC7C,eAAO,MAAM,IAAI,GAAI,SAAS,MAAM,KAAG,SAEtC,CAAA;AAED,+CAA+C;AAC/C,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,KAAG,SAE7C,CAAA;AAED,+CAA+C;AAC/C,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,KAAG,SAE7C,CAAA;AAED,2CAA2C;AAC3C,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM,KAAG,SAE1C,CAAA;AAED,0CAA0C;AAC1C,eAAO,MAAM,OAAO,GAAI,SAAS,MAAM,KAAG,SAEzC,CAAA;AAID,6CAA6C;AAC7C,eAAO,MAAM,SAAS,GAAI,YAAY,SAAS,EAAE,KAAG,SAEnD,CAAA;AAED,uCAAuC;AACvC,eAAO,MAAM,IAAI,GAAI,OAAO,MAAM,EAAE,YAAY,SAAS,EAAE,KAAG,SAE7D,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,QAAQ,GAAI,YAAY,SAAS,EAAE,EAAE,aAAa,MAAM,EAAE,cAAc,MAAM,EAAE,cAAc,MAAM,EAAE,eAAe,MAAM,KAAG,SAE1I,CAAA;AAED,yCAAyC;AACzC,eAAO,MAAM,MAAM,GAAI,YAAY,SAAS,EAAE,EAAE,UAAU,MAAM,EAAE,WAAW,MAAM,KAAG,SAErF,CAAA;AAGD,eAAO,MAAM,IAAI,GAAI,YAAY,SAAS,EAAE,KAAG,SAE9C,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { Block } from "./block";
2
+ import { CoqBlock, CoqCodeBlock, CoqDocBlock, CoqMarkdownBlock, HintBlock, InputAreaBlock, MarkdownBlock, MathDisplayBlock } from "./blocktypes";
3
+ export declare const isInputAreaBlock: (block: Block) => block is InputAreaBlock;
4
+ export declare const isHintBlock: (block: Block) => block is HintBlock;
5
+ export declare const isMathDisplayBlock: (block: Block) => block is MathDisplayBlock;
6
+ export declare const isCoqBlock: (block: Block) => block is CoqBlock;
7
+ export declare const isMarkdownBlock: (block: Block) => block is MarkdownBlock;
8
+ export declare const isCoqMarkdownBlock: (block: Block) => block is CoqMarkdownBlock;
9
+ export declare const isCoqDocBlock: (block: Block) => block is CoqDocBlock;
10
+ export declare const isCoqCodeBlock: (block: Block) => block is CoqCodeBlock;
11
+ //# sourceMappingURL=typeguards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeguards.d.ts","sourceRoot":"","sources":["../../../../src/document/blocks/typeguards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEjJ,eAAO,MAAM,gBAAgB,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,cAAsD,CAAC;AAChH,eAAO,MAAM,WAAW,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,SAA2C,CAAC;AAChG,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,gBAA0D,CAAC;AACtH,eAAO,MAAM,UAAU,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,QAAyC,CAAC;AAC7F,eAAO,MAAM,eAAe,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,aAAmD,CAAC;AAC5G,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,gBAA0D,CAAC;AACtH,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,WAAgD,CAAC;AACvG,eAAO,MAAM,cAAc,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,YAAkD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Block } from "./blocks";
2
+ import { Node as ProseNode } from "prosemirror-model";
3
+ export declare function constructDocument(blocks: Block[]): ProseNode;
4
+ //# sourceMappingURL=construct-document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"construct-document.d.ts","sourceRoot":"","sources":["../../../src/document/construct-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGtD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,SAAS,CAG5D"}
@@ -0,0 +1,5 @@
1
+ export { constructDocument } from "./construct-document";
2
+ export * from "./blocks";
3
+ export * as "typeguards" from "./blocks/typeguards";
4
+ export * as "utils" from "./utils";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/document/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,cAAc,UAAU,CAAC;AACzB,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { Block, BlockRange } from "./blocks";
2
+ /**
3
+ * Convert a list of blocks to a prosemirror compatible node list.
4
+ * @param blocks Input array of blocks.
5
+ * @returns ProseMirror nodes.
6
+ */
7
+ export declare function blocksToProseMirrorNodes(blocks: Block[]): import("prosemirror-model").Node[];
8
+ /**
9
+ * Helper function to sort block type objects. Will sort based on the range object of the block.
10
+ * Sorts in ascending (`range.from`) order.
11
+ * @param blocks Blocks to sort.
12
+ * @returns Sorted array of blocks.
13
+ */
14
+ export declare function sortBlocks(blocks: Block[]): Block[];
15
+ /**
16
+ * Map `f` over every consecutive pair from the `input` array.
17
+ * @param input Input array.
18
+ * @param f Function to map over the pairs.
19
+ * @returns The result of mapping `f` over every consecutive pair. Will return an empty array if the input array has length < 2.
20
+ */
21
+ export declare function iteratePairs<ArrayType, FunctionReturnType>(input: Array<ArrayType>, f: (a: ArrayType, b: ArrayType) => FunctionReturnType): FunctionReturnType[];
22
+ /**
23
+ * Utility function to extract the ranges between blocks (ie. the ranges that are not covered by the blocks).
24
+ * @param blocks The input array of block.
25
+ * @param inputDocument The document the blocks are part of.
26
+ * @returns The ranges between the blocks.
27
+ */
28
+ export declare function extractInterBlockRanges(blocks: Array<Block>, inputDocument: string): BlockRange[];
29
+ /**
30
+ * Utility function to mask regions of a document covered by blocks.
31
+ * @param inputDocument The input document on which to apply the masking.
32
+ * @param blocks The blocks that will mask content from the input document.
33
+ * @param mask The mask to use (defaults to `" "`).
34
+ * @returns The document (`string`) with the ranges covered by the blocks in `blocks` masked using `mask`.
35
+ */
36
+ export declare function maskInputAndHints(inputDocument: string, blocks: Block[], mask?: string): string;
37
+ /**
38
+ * Create blocks based on ranges.
39
+ *
40
+ * Extracts the text content of the ranges and creates blocks from them.
41
+ */
42
+ export declare function extractBlocksUsingRanges<BlockType extends Block>(inputDocument: string, ranges: {
43
+ from: number;
44
+ to: number;
45
+ }[], BlockConstructor: new (content: string, range: {
46
+ from: number;
47
+ to: number;
48
+ }) => BlockType): BlockType[];
49
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/document/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,KAAK,EAAE,sCAEvD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,WAEzC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,kBAAkB,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,KAAK,kBAAkB,wBAEzI;AAGD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,UAAU,EAAE,CAcjG;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,IAAI,GAAE,MAAY,GAAG,MAAM,CAMpG;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,SAAS,KAAK,EAC5D,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAC,EAAE,EACpC,gBAAgB,EAAE,KAAK,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,KAAK,SAAS,GAAI,SAAS,EAAE,CAS3G"}
@@ -0,0 +1,9 @@
1
+ import { Plugin, PluginKey } from 'prosemirror-state';
2
+ export interface IDocumentProgressDecoratorState {
3
+ total: number;
4
+ progressHeightLow: number;
5
+ progressHeightHigh: number;
6
+ }
7
+ export declare const DOCUMENT_PROGRESS_DECORATOR_KEY: PluginKey<IDocumentProgressDecoratorState>;
8
+ export declare const documentProgressDecoratorPlugin: Plugin<IDocumentProgressDecoratorState>;
9
+ //# sourceMappingURL=documentProgressDecorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentProgressDecorator.d.ts","sourceRoot":"","sources":["../../src/documentProgressDecorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAc,MAAM,mBAAmB,CAAC;AAGlE,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAGD,eAAO,MAAM,+BAA+B,4CAA4F,CAAC;AA+DzI,eAAO,MAAM,+BAA+B,yCAAkD,CAAC"}
@@ -0,0 +1,154 @@
1
+ import { Node as ProseNode } from "prosemirror-model";
2
+ import { EditorState, Plugin, Selection } from "prosemirror-state";
3
+ import { LineNumber, InputAreaStatus, SimpleProgressParams, HistoryChange, Severity, OffsetDiagnostic } from "./api";
4
+ import "katex/dist/katex.min.css";
5
+ import "prosemirror-view/style/prosemirror.css";
6
+ import "./styles";
7
+ import { WaterproofEditorConfig, ThemeStyle } from "./api";
8
+ import { Completion } from "@codemirror/autocomplete";
9
+ import { ServerStatus } from "./api";
10
+ /** Type that contains a coq diagnostics object fit for use in the ProseMirror editor context. */
11
+ export type DiagnosticObjectProse = {
12
+ message: string;
13
+ start: number;
14
+ end: number;
15
+ severity: Severity;
16
+ };
17
+ /**
18
+ * WaterproofEditor class. Configured via the WaterproofEditorConfig object.
19
+ */
20
+ export declare class WaterproofEditor {
21
+ private readonly initialThemeStyle;
22
+ private _editorConfig;
23
+ private _schema;
24
+ private _editorElem;
25
+ private _view;
26
+ private _translator;
27
+ private _mapping;
28
+ private readonly _userOS;
29
+ private currentProseDiagnostics;
30
+ get diagnosticsVersion(): number;
31
+ private diagnosticsUpdateCounter;
32
+ private _lineNumbersShown;
33
+ /**
34
+ * Create a new WaterproofEditor instance.
35
+ * @param editorElement The HTML element where the editor will be inserted in the document
36
+ * @param config The configuration of the editor to use.
37
+ */
38
+ constructor(editorElement: HTMLElement, config: WaterproofEditorConfig, initialThemeStyle: ThemeStyle);
39
+ init(content: string, version?: number): void;
40
+ get state(): EditorState | undefined;
41
+ createProseMirrorEditor(proseDoc: ProseNode): void;
42
+ /** Create initial prosemirror state */
43
+ createState(proseDoc: ProseNode): EditorState;
44
+ /** Create the array of plugins used by the prosemirror editor */
45
+ createPluginsArray(): Plugin[];
46
+ updateNodeViewThemes(theme: ThemeStyle): void;
47
+ /**
48
+ * Handle a snippet that should be inserted into the editor.
49
+ * @param template The template string of the snippet that should be inserted.
50
+ */
51
+ handleSnippet(template: string): void;
52
+ /** Called on every selection update. */
53
+ updateCursor(pos: Selection): void;
54
+ /** Called on every transaction update in which the textdocument was modified */
55
+ sendLineNumbers(): void;
56
+ private updateDocumentProgress;
57
+ /**
58
+ * Updates the dynamic autocomplete suggestions shown in the editor.
59
+ * @param completions Array of completions.
60
+ */
61
+ handleCompletions(completions: Array<Completion>): void;
62
+ /** Called whenever a line number message is received from vscode to update line numbers of codemirror cells */
63
+ setLineNumbers(msg: LineNumber): void;
64
+ /**
65
+ * Execute a history change (undo/redo) in the editor.
66
+ * @param type Type of the change
67
+ */
68
+ handleHistoryChange(type: HistoryChange): void;
69
+ handleScroll(innerHeight: number): void;
70
+ /**
71
+ * Insert a symbol at the cursor position (replaces the current selection if there is one).
72
+ *
73
+ * @param symbolUnicode The unicode character to insert.
74
+ * @returns Whether the operation was a success.
75
+ */
76
+ insertSymbol(symbolUnicode: string): boolean;
77
+ /**
78
+ * Toggles line numbers for all codeblocks.
79
+ * @param show The editor will show line numbers in the code cells when set to `true`.
80
+ */
81
+ setShowLineNumbers(show: boolean): void;
82
+ /**
83
+ * Toggles showing menu items in the editor for students.
84
+ * @param show The editor will show menu items to students when set to `true`.
85
+ */
86
+ setShowMenuItems(show: boolean): void;
87
+ private createAndDispatchInsertionTransaction;
88
+ /**
89
+ * Called whenever a message describing the configuration of user is sent
90
+ *
91
+ * @param isTeacher Whether teacher mode is enabled
92
+ */
93
+ updateLockingState(isTeacher: boolean): void;
94
+ /**
95
+ * Updates the state of the progress bar in the editor.
96
+ *
97
+ * @param progressParams The type used to store information on the status of the checking of the current file
98
+ */
99
+ updateProgressBar(progressParams: SimpleProgressParams): void;
100
+ updateServerStatus(status: ServerStatus): void;
101
+ /**
102
+ * Updates the status of the input areas in the editor.
103
+ *
104
+ * @param status Array containing the status of the input areas within the current document, where `status[i]` corresponds to the i-th input area (starting at zero for the first input area).
105
+ */
106
+ updateQedStatus(status: InputAreaStatus[]): void;
107
+ /**
108
+ * Pushes the diagnostics to the array of diagnostics stored in the editor.
109
+ *
110
+ * In comparison to {@linkcode setActiveDiagnostics} this will keep the old
111
+ * diagnostics around.
112
+ *
113
+ * @param diagnostics The diagnostics to add.
114
+ */
115
+ pushDiagnostics(...diagnostics: Array<OffsetDiagnostic>): void;
116
+ /**
117
+ * Removes the diagnostic `toRemove` from the set of stored diagnostics.
118
+ *
119
+ * Note that if `toRemove` occurs more than once, all instances will be removed!
120
+ * @param toRemove The diagnostic object to remove
121
+ * @returns Whether any instance of `toRemove` was removed from the set of diagnostics.
122
+ */
123
+ removeDiagnostic(toRemove: DiagnosticObjectProse): boolean;
124
+ /**
125
+ * Sets the current set of diagnostics in the document.
126
+ * This function takes the set of all diagnostics in the current document,
127
+ * translates the position to ProseMirror offsets and stores them.
128
+ *
129
+ * Note: Calling this function overwrites the set of diagnostics.
130
+ * If you want to add a diagnostic use {@linkcode pushDiagnostics}
131
+ *
132
+ * @param msg The set of diagnostics for the current document.
133
+ */
134
+ setActiveDiagnostics(diagnostics: Array<OffsetDiagnostic>): void;
135
+ private diagnosticsChanged;
136
+ /**
137
+ * Returns the set of stored diagnostics in the range low to high.
138
+ * @param low Lower bound for the diagnostic range.
139
+ * @param high Upper bound for the diagnostic range.
140
+ * @param truncationLevel If desired, only include diagnostics with a severity level below the `truncationLevel`.
141
+ * @returns The set of diagnostics in the range low to high.
142
+ */
143
+ getDiagnosticsInRange(low: number, high: number, truncationLevel?: number): Array<DiagnosticObjectProse>;
144
+ /**
145
+ * Returns the set of diagnostics for which the intersection of the diagnostic range and the range [low, high]
146
+ * is non-empty. The ranges of these diagnostics will be trimmed such that they are fully contained in [low, high].
147
+ * @param truncationLevel If desired, only include diagnostics with a severity level below the `truncationLevel`.
148
+ * @returns The set of diagnostics which are (at least partially) contained in the range low to high.
149
+ */
150
+ getPartialDiagnosticsInRange(low: number, high: number, truncationLevel?: number): Array<DiagnosticObjectProse>;
151
+ executeCommand(command: string): void;
152
+ executeHelp(): void;
153
+ }
154
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/editor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,IAAI,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAgB,WAAW,EAAiB,MAAM,EAAE,SAAS,EAA8B,MAAM,mBAAmB,CAAC;AAM5H,OAAO,EAAa,UAAU,EAAE,eAAe,EAAE,oBAAoB,EAAqB,aAAa,EAAE,QAAQ,EAAE,gBAAg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AM,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,GAAE,MAAU,GAAG,KAAK,CAAC,qBAAqB,CAAC;IAMlH;;;;;OAKG;IACI,4BAA4B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,GAAE,MAAU,GAAG,KAAK,CAAC,qBAAqB,CAAC;IAelH,cAAc,CAAC,OAAO,EAAE,MAAM;IAI9B,WAAW;CAGlB"}
@@ -0,0 +1,9 @@
1
+ import { KeyBinding } from "@codemirror/view";
2
+ import { StateCommand } from "@codemirror/state";
3
+ export declare const indentMoreCustom: StateCommand;
4
+ /**
5
+ * Filtered set of keybindings taken from
6
+ * https://github.com/codemirror/commands/blob/e27916c9b09d2cedd7e0c9770bff04eeb3696e69/src/commands.ts#L878
7
+ */
8
+ export declare const keybindings: KeyBinding[];
9
+ //# sourceMappingURL=embedded-codemirror-keymap.d.ts.map
@@ -0,0 +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,EA2CnC,CAAA"}
@@ -0,0 +1,40 @@
1
+ import { EditorView as CodeMirror, Command, KeyBinding, ViewUpdate } from "@codemirror/view";
2
+ import { Node as PNode, Schema } from "prosemirror-model";
3
+ import { Decoration, DecorationSource, EditorView, NodeView } from "prosemirror-view";
4
+ import { MovementDirection, MovementUnit } from "./types";
5
+ /**
6
+ * A class implementing everything required to create an embedded codemirror editor for prosemirror.
7
+ * Implements the `NodeView` prosemirror class. Can be extended to create custom codemirror editors like
8
+ * the one used to edit markdown or coq.
9
+ */
10
+ export declare class EmbeddedCodeMirrorEditor implements NodeView {
11
+ _getPos: (() => number | undefined);
12
+ protected updating: boolean;
13
+ protected _codemirror: CodeMirror | undefined;
14
+ protected _outerView: EditorView;
15
+ protected _schema: Schema;
16
+ protected _node: PNode;
17
+ constructor(node: PNode, view: EditorView, getPos: (() => number | undefined), schema: Schema);
18
+ dom: Node;
19
+ contentDOM?: HTMLElement | null | undefined;
20
+ update(node: PNode, _decorations: readonly Decoration[], _innerDecorations: DecorationSource): boolean;
21
+ selectNode?: (() => void) | undefined;
22
+ deselectNode?: (() => void) | undefined;
23
+ setSelection(anchor: number, head: number, _root: Document | ShadowRoot): void;
24
+ stopEvent?: ((event: Event) => boolean) | undefined;
25
+ ignoreMutation?: ((mutation: MutationRecord) => boolean) | undefined;
26
+ destroy?(): void;
27
+ forwardUpdate(update: ViewUpdate): void;
28
+ /**
29
+ * Do a movement, but first check if we escape the current view.
30
+ *
31
+ * The command returns false when we **will not** escape the current view.
32
+ *
33
+ * @param unit The movement unit (could be a line (up and down) or a character (left to right))
34
+ * @param dir The direction either forward or backward.
35
+ * @returns A command handling the escaping.
36
+ */
37
+ maybeEscape(unit: MovementUnit, dir: MovementDirection): Command;
38
+ embeddedCodeMirrorKeymap(): KeyBinding[];
39
+ }
40
+ //# sourceMappingURL=embeddedCodemirror.d.ts.map
@@ -0,0 +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,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAA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AY,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO;IAkEhE,wBAAwB,IAAI,UAAU,EAAE;CAmBxC"}
@@ -0,0 +1,3 @@
1
+ export { MovementDirection, MovementUnit } from "./types";
2
+ export { EmbeddedCodeMirrorEditor } from "./embeddedCodemirror";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/embedded-codemirror/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare enum MovementUnit {
2
+ line = "line",
3
+ character = "character"
4
+ }
5
+ export declare enum MovementDirection {
6
+ forward = 1,
7
+ backward = -1
8
+ }
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/embedded-codemirror/types.ts"],"names":[],"mappings":"AAEA,oBAAY,YAAY;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;CACvB;AAGD,oBAAY,iBAAiB;IAC5B,OAAO,IAAK;IACZ,QAAQ,KAAK;CACb"}
@@ -0,0 +1,9 @@
1
+ import { Schema } from "prosemirror-model";
2
+ import { Plugin } from "prosemirror-state";
3
+ /**
4
+ * Function that returns the hint plugin.
5
+ * @param schema The schema in use for the editor.
6
+ * @returns A `Plugin` that enables the hint functionality.
7
+ */
8
+ export declare const createHintPlugin: (schema: Schema) => Plugin;
9
+ //# sourceMappingURL=hint-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hint-plugin.d.ts","sourceRoot":"","sources":["../../../src/hinting/hint-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAkC,MAAM,EAAe,MAAM,mBAAmB,CAAC;AAIxF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,MA6BjD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { createHintPlugin } from "./hint-plugin";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hinting/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { WaterproofEditor } from "./editor";
2
+ export { WaterproofSchema } from "./schema";
3
+ export * from "./document";
4
+ export * from "./api";
5
+ export { FileTranslator } from "./translation";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Plugin, PluginKey } from "prosemirror-state";
2
+ /**
3
+ * Interface describing the state of the input are plugin.
4
+ * Contains fields `locked: boolean` indicating wether non-input areas should be locked (ie. non-teacher mode) and
5
+ * `globalLock: boolean` indicating that we are in a global lockdown state (caused by an unrecoverable error).
6
+ */
7
+ export interface IInputAreaPluginState {
8
+ teacher: boolean;
9
+ globalLock: boolean;
10
+ }
11
+ /** The plugin key for the input area plugin */
12
+ export declare const INPUT_AREA_PLUGIN_KEY: PluginKey<IInputAreaPluginState>;
13
+ export declare const inputAreaPlugin: Plugin<IInputAreaPluginState>;
14
+ //# sourceMappingURL=inputArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputArea.d.ts","sourceRoot":"","sources":["../../src/inputArea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,EAAE,SAAS,EAA2B,MAClE,mBAAmB,CAAC;AAEpB;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACrC,OAAO,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,+CAA+C;AAC/C,eAAO,MAAM,qBAAqB,kCAA8D,CAAC;AAiFjG,eAAO,MAAM,eAAe,+BAAkC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Schema, Node as ProseNode } from "prosemirror-model";
2
+ import { Plugin as ProsePlugin, PluginKey } from "prosemirror-state";
3
+ import { EditorView } from "prosemirror-view";
4
+ import { CoqdocView } from "./CoqdocView";
5
+ export interface ICoqdocPluginState {
6
+ macros: {
7
+ [cmd: string]: string;
8
+ };
9
+ /** A list of currently active `NodeView`s, in insertion order. */
10
+ activeNodeViews: CoqdocView[];
11
+ }
12
+ export declare const COQDOC_PLUGIN_KEY: PluginKey<ICoqdocPluginState>;
13
+ /**
14
+ * Returns a function suitable for passing as a field in `EditorProps.nodeViews`.
15
+ * @see https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews
16
+ */
17
+ export declare function createCoqdocView(schema: Schema): (node: ProseNode, view: EditorView, getPos: () => number | undefined) => CoqdocView;
18
+ export declare const coqdocPlugin: (schema: Schema) => ProsePlugin<ICoqdocPluginState>;
19
+ //# sourceMappingURL=CoqdocPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoqdocPlugin.d.ts","sourceRoot":"","sources":["../../../src/markup-views/CoqdocPlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,SAAS,EAAc,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAC,MAAM,GAAI,MAAM,CAAA;KAAE,CAAC;IAClC,kEAAkE;IAClE,eAAe,EAAE,UAAU,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,+BAAoE,CAAC;AAEnG;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,IACtC,MAAM,SAAS,EAAE,MAAM,UAAU,EAAE,QAAQ,MAAM,MAAM,GAAG,SAAS,KAAG,UAAU,CAcxF;AA6BD,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,oCAA8C,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { PluginKey } from "prosemirror-state";
2
+ import { SwitchableView } from "./switchable-view";
3
+ import { EditorView } from "prosemirror-view";
4
+ import { Node as PNode, Schema } from "prosemirror-model";
5
+ /**
6
+ * CoqdocView class extends the SwitchableView class.
7
+ *
8
+ * Used to edit and render coqdoc syntax within the prosemirror editor.
9
+ */
10
+ export declare class CoqdocView extends SwitchableView {
11
+ constructor(getPos: (() => number | undefined), outerView: EditorView, content: string, node: PNode, schema: Schema, pluginKey: PluginKey, viewName: string);
12
+ preprocessContentForEditing(input: string): string;
13
+ preprocessContentForRendering(input: string): string;
14
+ }
15
+ //# sourceMappingURL=CoqdocView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoqdocView.d.ts","sourceRoot":"","sources":["../../../src/markup-views/CoqdocView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG1D;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,cAAc;gBAGtC,MAAM,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,EACzD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAC5C,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM;IAM1C,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlD,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAKvD"}
@@ -0,0 +1,21 @@
1
+ import { Schema, Node as ProseNode } from "prosemirror-model";
2
+ import { Plugin as ProsePlugin, PluginKey, TextSelection } from "prosemirror-state";
3
+ import { EditorView } from "prosemirror-view";
4
+ import { MarkdownView } from "./MarkdownView";
5
+ export interface IRealMarkdownPluginState {
6
+ macros: {
7
+ [cmd: string]: string;
8
+ };
9
+ /** A list of currently active `NodeView`s, in insertion order. */
10
+ activeNodeViews: MarkdownView[];
11
+ /** The selection of the current cursor position */
12
+ cursor: TextSelection | undefined;
13
+ }
14
+ export declare const REAL_MARKDOWN_PLUGIN_KEY: PluginKey<IRealMarkdownPluginState>;
15
+ /**
16
+ * Returns a function suitable for passing as a field in `EditorProps.nodeViews`.
17
+ * @see https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews
18
+ */
19
+ export declare function createRealMarkdownView(schema: Schema): (node: ProseNode, view: EditorView, getPos: (() => number | undefined)) => MarkdownView;
20
+ export declare const realMarkdownPlugin: (schema: Schema) => ProsePlugin<IRealMarkdownPluginState>;
21
+ //# sourceMappingURL=MarkdownPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownPlugin.d.ts","sourceRoot":"","sources":["../../../src/markup-views/MarkdownPlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,SAAS,EAAc,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,MAAM,WAAW,wBAAwB;IACxC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAC,MAAM,GAAI,MAAM,CAAA;KAAE,CAAC;IAClC,kEAAkE;IAClE,eAAe,EAAE,YAAY,EAAE,CAAC;IAChC,mDAAmD;IACnD,MAAM,EAAE,aAAa,GAAG,SAAS,CAAC;CAElC;AAED,eAAO,MAAM,wBAAwB,qCAA2E,CAAC;AAEjH;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,IAC5C,MAAM,SAAS,EAAE,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,KAAG,YAAY,CAe5F;AAmCD,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,0CAAoD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { EditorView } from "prosemirror-view";
2
+ import { SwitchableView } from "./switchable-view";
3
+ import { Node as PNode, Schema } from "prosemirror-model";
4
+ import { PluginKey } from "prosemirror-state";
5
+ /**
6
+ * MarkdownView class extends the SwitchableView class.
7
+ *
8
+ * Used to edit and render markdown within the prosemirror editor.
9
+ */
10
+ export declare class MarkdownView extends SwitchableView {
11
+ constructor(getPos: (() => number | undefined), outerView: EditorView, content: string, node: PNode, schema: Schema, pluginKey: PluginKey, viewName: string);
12
+ preprocessContentForEditing(input: string): string;
13
+ preprocessContentForRendering(input: string): string;
14
+ }
15
+ //# sourceMappingURL=MarkdownView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownView.d.ts","sourceRoot":"","sources":["../../../src/markup-views/MarkdownView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,cAAc;gBAGxC,MAAM,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,EACzD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAC5C,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM;IAM1C,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAKlD,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAKvD"}