@kerebron/extension-yjs 0.4.4 → 0.4.6

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 (270) hide show
  1. package/README.md +50 -128
  2. package/esm/{extension-yjs/src/ExtensionYjs.d.ts → ExtensionYjs.d.ts} +2 -3
  3. package/esm/ExtensionYjs.d.ts.map +1 -0
  4. package/esm/{extension-yjs/src/ExtensionYjs.js → ExtensionYjs.js} +1 -2
  5. package/esm/convertUtils.d.ts.map +1 -0
  6. package/esm/keys.d.ts.map +1 -0
  7. package/esm/lib.d.ts.map +1 -0
  8. package/esm/{extension-yjs/src/userColors.d.ts → userColors.d.ts} +0 -1
  9. package/esm/userColors.d.ts.map +1 -0
  10. package/esm/{extension-yjs/src/userColors.js → userColors.js} +0 -1
  11. package/esm/utils.d.ts.map +1 -0
  12. package/esm/{extension-yjs/src/yPositionPlugin.d.ts → yPositionPlugin.d.ts} +1 -1
  13. package/esm/yPositionPlugin.d.ts.map +1 -0
  14. package/esm/{extension-yjs/src/yPositionPlugin.js → yPositionPlugin.js} +1 -1
  15. package/esm/ySyncPlugin.d.ts.map +1 -0
  16. package/esm/{extension-yjs/src/ySyncPlugin.js → ySyncPlugin.js} +1 -1
  17. package/esm/yUndoPlugin.d.ts.map +1 -0
  18. package/package.json +8 -10
  19. package/assets/collaboration-status.css +0 -172
  20. package/esm/_dnt.polyfills.d.ts +0 -101
  21. package/esm/_dnt.polyfills.d.ts.map +0 -1
  22. package/esm/_dnt.polyfills.js +0 -127
  23. package/esm/_dnt.shims.d.ts +0 -2
  24. package/esm/_dnt.shims.d.ts.map +0 -1
  25. package/esm/_dnt.shims.js +0 -57
  26. package/esm/editor/src/CoreEditor.d.ts +0 -40
  27. package/esm/editor/src/CoreEditor.d.ts.map +0 -1
  28. package/esm/editor/src/CoreEditor.js +0 -252
  29. package/esm/editor/src/DummyEditorView.d.ts +0 -60
  30. package/esm/editor/src/DummyEditorView.d.ts.map +0 -1
  31. package/esm/editor/src/DummyEditorView.js +0 -277
  32. package/esm/editor/src/Extension.d.ts +0 -31
  33. package/esm/editor/src/Extension.d.ts.map +0 -1
  34. package/esm/editor/src/Extension.js +0 -53
  35. package/esm/editor/src/ExtensionManager.d.ts +0 -32
  36. package/esm/editor/src/ExtensionManager.d.ts.map +0 -1
  37. package/esm/editor/src/ExtensionManager.js +0 -260
  38. package/esm/editor/src/Mark.d.ts +0 -23
  39. package/esm/editor/src/Mark.d.ts.map +0 -1
  40. package/esm/editor/src/Mark.js +0 -51
  41. package/esm/editor/src/Node.d.ts +0 -32
  42. package/esm/editor/src/Node.d.ts.map +0 -1
  43. package/esm/editor/src/Node.js +0 -60
  44. package/esm/editor/src/commands/CommandManager.d.ts +0 -23
  45. package/esm/editor/src/commands/CommandManager.d.ts.map +0 -1
  46. package/esm/editor/src/commands/CommandManager.js +0 -118
  47. package/esm/editor/src/commands/baseCommandFactories.d.ts +0 -3
  48. package/esm/editor/src/commands/baseCommandFactories.d.ts.map +0 -1
  49. package/esm/editor/src/commands/baseCommandFactories.js +0 -836
  50. package/esm/editor/src/commands/createChainableState.d.ts +0 -3
  51. package/esm/editor/src/commands/createChainableState.d.ts.map +0 -1
  52. package/esm/editor/src/commands/createChainableState.js +0 -29
  53. package/esm/editor/src/commands/keyCommandFactories.d.ts +0 -3
  54. package/esm/editor/src/commands/keyCommandFactories.d.ts.map +0 -1
  55. package/esm/editor/src/commands/keyCommandFactories.js +0 -10
  56. package/esm/editor/src/commands/mod.d.ts +0 -7
  57. package/esm/editor/src/commands/mod.d.ts.map +0 -1
  58. package/esm/editor/src/commands/mod.js +0 -76
  59. package/esm/editor/src/commands/replaceCommandFactories.d.ts +0 -3
  60. package/esm/editor/src/commands/replaceCommandFactories.d.ts.map +0 -1
  61. package/esm/editor/src/commands/replaceCommandFactories.js +0 -94
  62. package/esm/editor/src/commands/types.d.ts +0 -18
  63. package/esm/editor/src/commands/types.d.ts.map +0 -1
  64. package/esm/editor/src/commands/types.js +0 -1
  65. package/esm/editor/src/mod.d.ts +0 -9
  66. package/esm/editor/src/mod.d.ts.map +0 -1
  67. package/esm/editor/src/mod.js +0 -8
  68. package/esm/editor/src/nodeToTreeString.d.ts +0 -10
  69. package/esm/editor/src/nodeToTreeString.d.ts.map +0 -1
  70. package/esm/editor/src/nodeToTreeString.js +0 -74
  71. package/esm/editor/src/plugins/TrackSelecionPlugin.d.ts +0 -6
  72. package/esm/editor/src/plugins/TrackSelecionPlugin.d.ts.map +0 -1
  73. package/esm/editor/src/plugins/TrackSelecionPlugin.js +0 -24
  74. package/esm/editor/src/plugins/input-rules/InputRulesPlugin.d.ts +0 -23
  75. package/esm/editor/src/plugins/input-rules/InputRulesPlugin.d.ts.map +0 -1
  76. package/esm/editor/src/plugins/input-rules/InputRulesPlugin.js +0 -163
  77. package/esm/editor/src/plugins/keymap/keymap.d.ts +0 -11
  78. package/esm/editor/src/plugins/keymap/keymap.d.ts.map +0 -1
  79. package/esm/editor/src/plugins/keymap/keymap.js +0 -125
  80. package/esm/editor/src/plugins/keymap/w3c-keyname.d.ts +0 -4
  81. package/esm/editor/src/plugins/keymap/w3c-keyname.d.ts.map +0 -1
  82. package/esm/editor/src/plugins/keymap/w3c-keyname.js +0 -124
  83. package/esm/editor/src/types.d.ts +0 -52
  84. package/esm/editor/src/types.d.ts.map +0 -1
  85. package/esm/editor/src/types.js +0 -1
  86. package/esm/editor/src/ui.d.ts +0 -15
  87. package/esm/editor/src/ui.d.ts.map +0 -1
  88. package/esm/editor/src/ui.js +0 -16
  89. package/esm/editor/src/utilities/SmartOutput.d.ts +0 -41
  90. package/esm/editor/src/utilities/SmartOutput.d.ts.map +0 -1
  91. package/esm/editor/src/utilities/SmartOutput.js +0 -228
  92. package/esm/editor/src/utilities/createNodeFromContent.d.ts +0 -9
  93. package/esm/editor/src/utilities/createNodeFromContent.d.ts.map +0 -1
  94. package/esm/editor/src/utilities/createNodeFromContent.js +0 -32
  95. package/esm/editor/src/utilities/getHtmlAttributes.d.ts +0 -9
  96. package/esm/editor/src/utilities/getHtmlAttributes.d.ts.map +0 -1
  97. package/esm/editor/src/utilities/getHtmlAttributes.js +0 -47
  98. package/esm/editor/src/utilities/getShadowRoot.d.ts +0 -2
  99. package/esm/editor/src/utilities/getShadowRoot.d.ts.map +0 -1
  100. package/esm/editor/src/utilities/getShadowRoot.js +0 -16
  101. package/esm/editor/src/utilities/mod.d.ts +0 -6
  102. package/esm/editor/src/utilities/mod.d.ts.map +0 -1
  103. package/esm/editor/src/utilities/mod.js +0 -5
  104. package/esm/editor/src/utilities/toRawTextResult.d.ts +0 -3
  105. package/esm/editor/src/utilities/toRawTextResult.d.ts.map +0 -1
  106. package/esm/editor/src/utilities/toRawTextResult.js +0 -21
  107. package/esm/extension-autocomplete/src/AutocompletePlugin.d.ts +0 -8
  108. package/esm/extension-autocomplete/src/AutocompletePlugin.d.ts.map +0 -1
  109. package/esm/extension-autocomplete/src/AutocompletePlugin.js +0 -232
  110. package/esm/extension-autocomplete/src/DefaultRenderer.d.ts +0 -17
  111. package/esm/extension-autocomplete/src/DefaultRenderer.d.ts.map +0 -1
  112. package/esm/extension-autocomplete/src/DefaultRenderer.js +0 -137
  113. package/esm/extension-autocomplete/src/ExtensionAutocomplete.d.ts +0 -26
  114. package/esm/extension-autocomplete/src/ExtensionAutocomplete.d.ts.map +0 -1
  115. package/esm/extension-autocomplete/src/ExtensionAutocomplete.js +0 -30
  116. package/esm/extension-autocomplete/src/createDefaultMatcher.d.ts +0 -11
  117. package/esm/extension-autocomplete/src/createDefaultMatcher.d.ts.map +0 -1
  118. package/esm/extension-autocomplete/src/createDefaultMatcher.js +0 -58
  119. package/esm/extension-autocomplete/src/createRegexMatcher.d.ts +0 -4
  120. package/esm/extension-autocomplete/src/createRegexMatcher.d.ts.map +0 -1
  121. package/esm/extension-autocomplete/src/createRegexMatcher.js +0 -50
  122. package/esm/extension-autocomplete/src/mod.d.ts +0 -3
  123. package/esm/extension-autocomplete/src/mod.d.ts.map +0 -1
  124. package/esm/extension-autocomplete/src/mod.js +0 -2
  125. package/esm/extension-autocomplete/src/types.d.ts +0 -60
  126. package/esm/extension-autocomplete/src/types.d.ts.map +0 -1
  127. package/esm/extension-autocomplete/src/types.js +0 -1
  128. package/esm/extension-basic-editor/src/ExtensionHtml.d.ts +0 -15
  129. package/esm/extension-basic-editor/src/ExtensionHtml.d.ts.map +0 -1
  130. package/esm/extension-basic-editor/src/ExtensionHtml.js +0 -108
  131. package/esm/extension-basic-editor/src/remote-selection/ExtensionRemoteSelection.d.ts +0 -24
  132. package/esm/extension-basic-editor/src/remote-selection/ExtensionRemoteSelection.d.ts.map +0 -1
  133. package/esm/extension-basic-editor/src/remote-selection/ExtensionRemoteSelection.js +0 -35
  134. package/esm/extension-basic-editor/src/remote-selection/remoteSelectionPlugin.d.ts +0 -25
  135. package/esm/extension-basic-editor/src/remote-selection/remoteSelectionPlugin.d.ts.map +0 -1
  136. package/esm/extension-basic-editor/src/remote-selection/remoteSelectionPlugin.js +0 -96
  137. package/esm/extension-lsp/src/DiagnosticPlugin.d.ts +0 -32
  138. package/esm/extension-lsp/src/DiagnosticPlugin.d.ts.map +0 -1
  139. package/esm/extension-lsp/src/DiagnosticPlugin.js +0 -131
  140. package/esm/extension-lsp/src/ExtensionLsp.d.ts +0 -25
  141. package/esm/extension-lsp/src/ExtensionLsp.d.ts.map +0 -1
  142. package/esm/extension-lsp/src/ExtensionLsp.js +0 -126
  143. package/esm/extension-lsp/src/LSPClient.d.ts +0 -56
  144. package/esm/extension-lsp/src/LSPClient.d.ts.map +0 -1
  145. package/esm/extension-lsp/src/LSPClient.js +0 -449
  146. package/esm/extension-lsp/src/LspStatus.d.ts +0 -34
  147. package/esm/extension-lsp/src/LspStatus.d.ts.map +0 -1
  148. package/esm/extension-lsp/src/LspStatus.js +0 -127
  149. package/esm/extension-lsp/src/computeIncrementalChanges.d.ts +0 -8
  150. package/esm/extension-lsp/src/computeIncrementalChanges.d.ts.map +0 -1
  151. package/esm/extension-lsp/src/computeIncrementalChanges.js +0 -82
  152. package/esm/extension-lsp/src/createLspAutocomplete.d.ts +0 -23
  153. package/esm/extension-lsp/src/createLspAutocomplete.d.ts.map +0 -1
  154. package/esm/extension-lsp/src/createLspAutocomplete.js +0 -68
  155. package/esm/extension-lsp/src/workspace.d.ts +0 -62
  156. package/esm/extension-lsp/src/workspace.d.ts.map +0 -1
  157. package/esm/extension-lsp/src/workspace.js +0 -168
  158. package/esm/extension-markdown/src/DocumentMarkdownInlineTokenizer.d.ts +0 -36
  159. package/esm/extension-markdown/src/DocumentMarkdownInlineTokenizer.d.ts.map +0 -1
  160. package/esm/extension-markdown/src/DocumentMarkdownInlineTokenizer.js +0 -240
  161. package/esm/extension-markdown/src/DocumentMarkdownTokenizer.d.ts +0 -26
  162. package/esm/extension-markdown/src/DocumentMarkdownTokenizer.d.ts.map +0 -1
  163. package/esm/extension-markdown/src/DocumentMarkdownTokenizer.js +0 -115
  164. package/esm/extension-markdown/src/ExtensionMarkdown.d.ts +0 -22
  165. package/esm/extension-markdown/src/ExtensionMarkdown.d.ts.map +0 -1
  166. package/esm/extension-markdown/src/ExtensionMarkdown.js +0 -48
  167. package/esm/extension-markdown/src/MarkdownParser.d.ts +0 -61
  168. package/esm/extension-markdown/src/MarkdownParser.d.ts.map +0 -1
  169. package/esm/extension-markdown/src/MarkdownParser.js +0 -249
  170. package/esm/extension-markdown/src/MarkdownSerializer.d.ts +0 -42
  171. package/esm/extension-markdown/src/MarkdownSerializer.d.ts.map +0 -1
  172. package/esm/extension-markdown/src/MarkdownSerializer.js +0 -325
  173. package/esm/extension-markdown/src/PositionMapper.d.ts +0 -15
  174. package/esm/extension-markdown/src/PositionMapper.d.ts.map +0 -1
  175. package/esm/extension-markdown/src/PositionMapper.js +0 -100
  176. package/esm/extension-markdown/src/TokenSource.d.ts +0 -11
  177. package/esm/extension-markdown/src/TokenSource.d.ts.map +0 -1
  178. package/esm/extension-markdown/src/TokenSource.js +0 -39
  179. package/esm/extension-markdown/src/mdToPmConverter.d.ts +0 -5
  180. package/esm/extension-markdown/src/mdToPmConverter.d.ts.map +0 -1
  181. package/esm/extension-markdown/src/mdToPmConverter.js +0 -111
  182. package/esm/extension-markdown/src/pmToMdConverter.d.ts +0 -16
  183. package/esm/extension-markdown/src/pmToMdConverter.d.ts.map +0 -1
  184. package/esm/extension-markdown/src/pmToMdConverter.js +0 -433
  185. package/esm/extension-markdown/src/token_handlers/basic_token_handlers.d.ts +0 -4
  186. package/esm/extension-markdown/src/token_handlers/basic_token_handlers.d.ts.map +0 -1
  187. package/esm/extension-markdown/src/token_handlers/basic_token_handlers.js +0 -151
  188. package/esm/extension-markdown/src/token_handlers/footnote_token_handlers.d.ts +0 -3
  189. package/esm/extension-markdown/src/token_handlers/footnote_token_handlers.d.ts.map +0 -1
  190. package/esm/extension-markdown/src/token_handlers/footnote_token_handlers.js +0 -34
  191. package/esm/extension-markdown/src/token_handlers/inline_token_handlers.d.ts +0 -6
  192. package/esm/extension-markdown/src/token_handlers/inline_token_handlers.d.ts.map +0 -1
  193. package/esm/extension-markdown/src/token_handlers/inline_token_handlers.js +0 -380
  194. package/esm/extension-markdown/src/token_handlers/lists_token_handlers.d.ts +0 -3
  195. package/esm/extension-markdown/src/token_handlers/lists_token_handlers.d.ts.map +0 -1
  196. package/esm/extension-markdown/src/token_handlers/lists_token_handlers.js +0 -323
  197. package/esm/extension-markdown/src/token_handlers/table_token_handlers.d.ts +0 -9
  198. package/esm/extension-markdown/src/token_handlers/table_token_handlers.d.ts.map +0 -1
  199. package/esm/extension-markdown/src/token_handlers/table_token_handlers.js +0 -308
  200. package/esm/extension-markdown/src/treeSitterTokenizer.d.ts +0 -5
  201. package/esm/extension-markdown/src/treeSitterTokenizer.d.ts.map +0 -1
  202. package/esm/extension-markdown/src/treeSitterTokenizer.js +0 -769
  203. package/esm/extension-markdown/src/types.d.ts +0 -28
  204. package/esm/extension-markdown/src/types.d.ts.map +0 -1
  205. package/esm/extension-markdown/src/types.js +0 -131
  206. package/esm/extension-markdown/src/utils.d.ts +0 -8
  207. package/esm/extension-markdown/src/utils.d.ts.map +0 -1
  208. package/esm/extension-markdown/src/utils.js +0 -86
  209. package/esm/extension-menu/src/CustomMenuPlugin.d.ts +0 -65
  210. package/esm/extension-menu/src/CustomMenuPlugin.d.ts.map +0 -1
  211. package/esm/extension-menu/src/CustomMenuPlugin.js +0 -1186
  212. package/esm/extension-menu/src/ExtensionCustomMenu.d.ts +0 -14
  213. package/esm/extension-menu/src/ExtensionCustomMenu.d.ts.map +0 -1
  214. package/esm/extension-menu/src/ExtensionCustomMenu.js +0 -57
  215. package/esm/extension-menu/src/buildMenu.d.ts +0 -5
  216. package/esm/extension-menu/src/buildMenu.d.ts.map +0 -1
  217. package/esm/extension-menu/src/buildMenu.js +0 -331
  218. package/esm/extension-menu/src/icons.d.ts +0 -15
  219. package/esm/extension-menu/src/icons.d.ts.map +0 -1
  220. package/esm/extension-menu/src/icons.js +0 -123
  221. package/esm/extension-menu/src/menu.d.ts +0 -81
  222. package/esm/extension-menu/src/menu.d.ts.map +0 -1
  223. package/esm/extension-menu/src/menu.js +0 -350
  224. package/esm/extension-menu/src/mod.d.ts +0 -3
  225. package/esm/extension-menu/src/mod.d.ts.map +0 -1
  226. package/esm/extension-menu/src/mod.js +0 -2
  227. package/esm/extension-menu/src/prompt.d.ts +0 -36
  228. package/esm/extension-menu/src/prompt.d.ts.map +0 -1
  229. package/esm/extension-menu/src/prompt.js +0 -158
  230. package/esm/extension-yjs/src/CollaborationStatus.d.ts +0 -60
  231. package/esm/extension-yjs/src/CollaborationStatus.d.ts.map +0 -1
  232. package/esm/extension-yjs/src/CollaborationStatus.js +0 -287
  233. package/esm/extension-yjs/src/ExtensionYjs.d.ts.map +0 -1
  234. package/esm/extension-yjs/src/convertUtils.d.ts.map +0 -1
  235. package/esm/extension-yjs/src/keys.d.ts.map +0 -1
  236. package/esm/extension-yjs/src/lib.d.ts.map +0 -1
  237. package/esm/extension-yjs/src/userColors.d.ts.map +0 -1
  238. package/esm/extension-yjs/src/utils.d.ts.map +0 -1
  239. package/esm/extension-yjs/src/yPositionPlugin.d.ts.map +0 -1
  240. package/esm/extension-yjs/src/ySyncPlugin.d.ts.map +0 -1
  241. package/esm/extension-yjs/src/yUndoPlugin.d.ts.map +0 -1
  242. package/esm/tree-sitter-shim/src/main.d.ts +0 -15
  243. package/esm/tree-sitter-shim/src/main.d.ts.map +0 -1
  244. package/esm/tree-sitter-shim/src/main.js +0 -25
  245. package/esm/tree-sitter-shim/src/tree_sitter/node.d.ts +0 -6
  246. package/esm/tree-sitter-shim/src/tree_sitter/node.d.ts.map +0 -1
  247. package/esm/tree-sitter-shim/src/tree_sitter/node.js +0 -1
  248. package/esm/tree-sitter-shim/src/tree_sitter/parser.d.ts +0 -7
  249. package/esm/tree-sitter-shim/src/tree_sitter/parser.d.ts.map +0 -1
  250. package/esm/tree-sitter-shim/src/tree_sitter/parser.js +0 -5
  251. package/esm/tree-sitter-shim/src/tree_sitter/tree.d.ts +0 -6
  252. package/esm/tree-sitter-shim/src/tree_sitter/tree.d.ts.map +0 -1
  253. package/esm/tree-sitter-shim/src/tree_sitter/tree.js +0 -1
  254. package/esm/wasm/src/mod.d.ts +0 -12
  255. package/esm/wasm/src/mod.d.ts.map +0 -1
  256. package/esm/wasm/src/mod.js +0 -48
  257. package/esm/wasm/wasm.d.ts +0 -138
  258. package/esm/wasm/wasm.d.ts.map +0 -1
  259. package/esm/wasm/wasm.js +0 -120
  260. /package/esm/{extension-yjs/src/convertUtils.d.ts → convertUtils.d.ts} +0 -0
  261. /package/esm/{extension-yjs/src/convertUtils.js → convertUtils.js} +0 -0
  262. /package/esm/{extension-yjs/src/keys.d.ts → keys.d.ts} +0 -0
  263. /package/esm/{extension-yjs/src/keys.js → keys.js} +0 -0
  264. /package/esm/{extension-yjs/src/lib.d.ts → lib.d.ts} +0 -0
  265. /package/esm/{extension-yjs/src/lib.js → lib.js} +0 -0
  266. /package/esm/{extension-yjs/src/utils.d.ts → utils.d.ts} +0 -0
  267. /package/esm/{extension-yjs/src/utils.js → utils.js} +0 -0
  268. /package/esm/{extension-yjs/src/ySyncPlugin.d.ts → ySyncPlugin.d.ts} +0 -0
  269. /package/esm/{extension-yjs/src/yUndoPlugin.d.ts → yUndoPlugin.d.ts} +0 -0
  270. /package/esm/{extension-yjs/src/yUndoPlugin.js → yUndoPlugin.js} +0 -0
@@ -1,127 +0,0 @@
1
- /**
2
- * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
- * but instead of using npm to install additional dependencies,
4
- * this approach manually consolidates cjs/mjs/d.ts into a single file.
5
- *
6
- * Note that this code might be imported multiple times
7
- * (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
8
- * or Node.js might dynamically clear the cache and then force a require).
9
- * Therefore, it's important to avoid redundant writes to global objects.
10
- * Additionally, consider that commonjs is used alongside esm,
11
- * so the two ponyfill functions are stored independently in two separate global objects.
12
- */
13
- //@ts-ignore
14
- import { createRequire } from "node:module";
15
- //@ts-ignore
16
- import { fileURLToPath, pathToFileURL } from "node:url";
17
- //@ts-ignore
18
- import { dirname } from "node:path";
19
- const defineGlobalPonyfill = (symbolFor, fn) => {
20
- if (!Reflect.has(globalThis, Symbol.for(symbolFor))) {
21
- Object.defineProperty(globalThis, Symbol.for(symbolFor), {
22
- configurable: true,
23
- get() {
24
- return fn;
25
- },
26
- });
27
- }
28
- };
29
- export let import_meta_ponyfill_commonjs = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-commonjs")) ??
30
- (() => {
31
- const moduleImportMetaWM = new WeakMap();
32
- return (require, module) => {
33
- let importMetaCache = moduleImportMetaWM.get(module);
34
- if (importMetaCache == null) {
35
- const importMeta = Object.assign(Object.create(null), {
36
- url: pathToFileURL(module.filename).href,
37
- main: require.main == module,
38
- resolve: (specifier, parentURL = importMeta.url) => {
39
- return pathToFileURL((importMeta.url === parentURL
40
- ? require
41
- : createRequire(parentURL))
42
- .resolve(specifier)).href;
43
- },
44
- filename: module.filename,
45
- dirname: module.path,
46
- });
47
- moduleImportMetaWM.set(module, importMeta);
48
- importMetaCache = importMeta;
49
- }
50
- return importMetaCache;
51
- };
52
- })());
53
- defineGlobalPonyfill("import-meta-ponyfill-commonjs", import_meta_ponyfill_commonjs);
54
- export let import_meta_ponyfill_esmodule = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-esmodule")) ??
55
- ((importMeta) => {
56
- const resolveFunStr = String(importMeta.resolve);
57
- const shimWs = new WeakSet();
58
- //@ts-ignore
59
- const mainUrl = ("file:///" + process.argv[1].replace(/\\/g, "/"))
60
- .replace(/\/{3,}/, "///");
61
- const commonShim = (importMeta) => {
62
- if (typeof importMeta.main !== "boolean") {
63
- importMeta.main = importMeta.url === mainUrl;
64
- }
65
- if (typeof importMeta.filename !== "string") {
66
- importMeta.filename = fileURLToPath(importMeta.url);
67
- importMeta.dirname = dirname(importMeta.filename);
68
- }
69
- };
70
- if (
71
- // v16.2.0+, v14.18.0+: Add support for WHATWG URL object to parentURL parameter.
72
- resolveFunStr === "undefined" ||
73
- // v20.0.0+, v18.19.0+"" This API now returns a string synchronously instead of a Promise.
74
- resolveFunStr.startsWith("async")
75
- // enable by --experimental-import-meta-resolve flag
76
- ) {
77
- import_meta_ponyfill_esmodule = (importMeta) => {
78
- if (!shimWs.has(importMeta)) {
79
- shimWs.add(importMeta);
80
- const importMetaUrlRequire = {
81
- url: importMeta.url,
82
- require: createRequire(importMeta.url),
83
- };
84
- importMeta.resolve = function resolve(specifier, parentURL = importMeta.url) {
85
- return pathToFileURL((importMetaUrlRequire.url === parentURL
86
- ? importMetaUrlRequire.require
87
- : createRequire(parentURL)).resolve(specifier)).href;
88
- };
89
- commonShim(importMeta);
90
- }
91
- return importMeta;
92
- };
93
- }
94
- else {
95
- /// native support
96
- import_meta_ponyfill_esmodule = (importMeta) => {
97
- if (!shimWs.has(importMeta)) {
98
- shimWs.add(importMeta);
99
- commonShim(importMeta);
100
- }
101
- return importMeta;
102
- };
103
- }
104
- return import_meta_ponyfill_esmodule(importMeta);
105
- }));
106
- defineGlobalPonyfill("import-meta-ponyfill-esmodule", import_meta_ponyfill_esmodule);
107
- export let import_meta_ponyfill = ((...args) => {
108
- const _MODULE = (() => {
109
- if (typeof require === "function" && typeof module === "object") {
110
- return "commonjs";
111
- }
112
- else {
113
- // eval("typeof import.meta");
114
- return "esmodule";
115
- }
116
- })();
117
- if (_MODULE === "commonjs") {
118
- //@ts-ignore
119
- import_meta_ponyfill = (r, m) => import_meta_ponyfill_commonjs(r, m);
120
- }
121
- else {
122
- //@ts-ignore
123
- import_meta_ponyfill = (im) => import_meta_ponyfill_esmodule(im);
124
- }
125
- //@ts-ignore
126
- return import_meta_ponyfill(...args);
127
- });
@@ -1,2 +0,0 @@
1
- export declare const dntGlobalThis: Omit<typeof globalThis, never>;
2
- //# sourceMappingURL=_dnt.shims.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gCAA2C,CAAC"}
package/esm/_dnt.shims.js DELETED
@@ -1,57 +0,0 @@
1
- const dntGlobals = {};
2
- export const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
3
- function createMergeProxy(baseObj, extObj) {
4
- return new Proxy(baseObj, {
5
- get(_target, prop, _receiver) {
6
- if (prop in extObj) {
7
- return extObj[prop];
8
- }
9
- else {
10
- return baseObj[prop];
11
- }
12
- },
13
- set(_target, prop, value) {
14
- if (prop in extObj) {
15
- delete extObj[prop];
16
- }
17
- baseObj[prop] = value;
18
- return true;
19
- },
20
- deleteProperty(_target, prop) {
21
- let success = false;
22
- if (prop in extObj) {
23
- delete extObj[prop];
24
- success = true;
25
- }
26
- if (prop in baseObj) {
27
- delete baseObj[prop];
28
- success = true;
29
- }
30
- return success;
31
- },
32
- ownKeys(_target) {
33
- const baseKeys = Reflect.ownKeys(baseObj);
34
- const extKeys = Reflect.ownKeys(extObj);
35
- const extKeysSet = new Set(extKeys);
36
- return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
37
- },
38
- defineProperty(_target, prop, desc) {
39
- if (prop in extObj) {
40
- delete extObj[prop];
41
- }
42
- Reflect.defineProperty(baseObj, prop, desc);
43
- return true;
44
- },
45
- getOwnPropertyDescriptor(_target, prop) {
46
- if (prop in extObj) {
47
- return Reflect.getOwnPropertyDescriptor(extObj, prop);
48
- }
49
- else {
50
- return Reflect.getOwnPropertyDescriptor(baseObj, prop);
51
- }
52
- },
53
- has(_target, prop) {
54
- return prop in extObj || prop in baseObj;
55
- },
56
- });
57
- }
@@ -1,40 +0,0 @@
1
- import { EditorView } from 'prosemirror-view';
2
- import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
3
- import type { EditorConfig, JSONContent } from './types.js';
4
- import { EditorState, Transaction } from 'prosemirror-state';
5
- import { DummyEditorView } from './DummyEditorView.js';
6
- import { ChainedCommands } from './commands/mod.js';
7
- import { Extension } from './Extension.js';
8
- import { EditorUi } from './ui.js';
9
- export declare class CoreEditor extends EventTarget {
10
- readonly config: Partial<EditorConfig>;
11
- private extensionManager;
12
- private commandManager;
13
- view: EditorView | DummyEditorView;
14
- state: EditorState;
15
- ui: EditorUi;
16
- constructor(config?: Partial<EditorConfig>);
17
- getExtension<T extends Extension>(name: string): T | undefined;
18
- get schema(): Schema<any, any>;
19
- get run(): {
20
- [key: string]: (...args: any[]) => boolean;
21
- };
22
- get commandFactories(): {
23
- [key: string]: import("./commands/types.js").CommandFactory;
24
- };
25
- chain(): ChainedCommands;
26
- can(): ChainedCommands;
27
- private createView;
28
- dispatchTransaction(transaction: Transaction): void;
29
- private setupPlugins;
30
- clearDocument(): void;
31
- setDocument(content: any): void;
32
- getDocument(): ProseMirrorNode;
33
- loadDocument(mediaType: string, content: Uint8Array): Promise<void>;
34
- saveDocument(mediaType: string): Promise<Uint8Array>;
35
- getJSON(): JSONContent;
36
- clone(options?: Partial<EditorConfig>): CoreEditor;
37
- debug(doc?: ProseMirrorNode): void;
38
- destroy(): void;
39
- }
40
- //# sourceMappingURL=CoreEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoreEditor.d.ts","sourceRoot":"","sources":["../../../src/editor/src/CoreEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGpE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAG7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAa,QAAQ,EAAE,MAAM,SAAS,CAAC;AAc9C,qBAAa,UAAW,SAAQ,WAAW;IACzC,SAAgB,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,CAG3C;IACF,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,cAAc,CAAiB;IAChC,IAAI,EAAG,UAAU,GAAG,eAAe,CAAC;IACpC,KAAK,EAAG,WAAW,CAAC;IACpB,EAAE,EAAE,QAAQ,CAAmB;gBAE1B,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM;IA+B9C,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAI9D,IAAW,MAAM,qBAEhB;IAED,IAAW,GAAG;;MAEb;IAED,IAAW,gBAAgB;;MAE1B;IAEM,KAAK,IAAI,eAAe;IAIxB,GAAG,IAAI,eAAe;IAI7B,OAAO,CAAC,UAAU;IA8CX,mBAAmB,CAAC,WAAW,EAAE,WAAW;IAsBnD,OAAO,CAAC,YAAY;IAcb,aAAa;IASb,WAAW,CAAC,OAAO,EAAE,GAAG;IAyBxB,WAAW;IAIL,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU;IA0BnD,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAY1D,OAAO,IAAI,WAAW;IAItB,KAAK,CAAC,OAAO,GAAE,OAAO,CAAC,YAAY,CAAM,GAAG,UAAU;IAOtD,KAAK,CAAC,GAAG,CAAC,EAAE,eAAe;IAO3B,OAAO;CAOf"}
@@ -1,252 +0,0 @@
1
- import { EditorView } from 'prosemirror-view';
2
- import { Node as ProseMirrorNode } from 'prosemirror-model';
3
- import { ExtensionManager } from './ExtensionManager.js';
4
- import { EditorState } from 'prosemirror-state';
5
- import { CommandManager } from './commands/CommandManager.js';
6
- import { nodeToTreeString } from './nodeToTreeString.js';
7
- import { DummyEditorView } from './DummyEditorView.js';
8
- import { createNodeFromObject } from './utilities/createNodeFromContent.js';
9
- import { defaultUi } from './ui.js';
10
- function ensureDocSchema(doc, schema) {
11
- if (doc.type.schema === schema) {
12
- return doc;
13
- }
14
- const json = doc.toJSON();
15
- return ProseMirrorNode.fromJSON(schema, json);
16
- }
17
- export class CoreEditor extends EventTarget {
18
- constructor(config = {}) {
19
- super();
20
- Object.defineProperty(this, "config", {
21
- enumerable: true,
22
- configurable: true,
23
- writable: true,
24
- value: {
25
- element: undefined,
26
- extensions: [],
27
- }
28
- });
29
- Object.defineProperty(this, "extensionManager", {
30
- enumerable: true,
31
- configurable: true,
32
- writable: true,
33
- value: void 0
34
- });
35
- Object.defineProperty(this, "commandManager", {
36
- enumerable: true,
37
- configurable: true,
38
- writable: true,
39
- value: void 0
40
- });
41
- Object.defineProperty(this, "view", {
42
- enumerable: true,
43
- configurable: true,
44
- writable: true,
45
- value: void 0
46
- });
47
- Object.defineProperty(this, "state", {
48
- enumerable: true,
49
- configurable: true,
50
- writable: true,
51
- value: void 0
52
- });
53
- Object.defineProperty(this, "ui", {
54
- enumerable: true,
55
- configurable: true,
56
- writable: true,
57
- value: defaultUi(this)
58
- });
59
- this.config = {
60
- ...this.config,
61
- ...config,
62
- };
63
- this.commandManager = new CommandManager(this);
64
- this.extensionManager = new ExtensionManager(this.config.extensions || [], this, this.commandManager);
65
- this.extensionManager.created();
66
- // const content = this.options.content ? this.options.content : {
67
- // type: this.extensionManager.schema.topNodeType.name,
68
- // content: this.extensionManager.schema.topNodeType.spec.EMPTY_DOC,
69
- // };
70
- const content = this.config.content
71
- ? this.config.content
72
- : this.extensionManager.schema.topNodeType.spec.EMPTY_DOC;
73
- this.createView(content);
74
- this.setupPlugins();
75
- }
76
- getExtension(name) {
77
- return this.extensionManager.getExtension(name);
78
- }
79
- get schema() {
80
- return this.extensionManager.schema;
81
- }
82
- get run() {
83
- return this.commandManager.run;
84
- }
85
- get commandFactories() {
86
- return this.commandManager.commandFactories;
87
- }
88
- chain() {
89
- return this.commandManager.createChain();
90
- }
91
- can() {
92
- return this.commandManager.createCan();
93
- }
94
- createView(content) {
95
- const doc = createNodeFromObject(content, this.schema);
96
- this.state = EditorState.create({ doc });
97
- if (this.config.element) {
98
- const view = new EditorView(this.config.element, {
99
- state: this.state,
100
- attributes: {
101
- class: 'kb-editor',
102
- },
103
- dispatchTransaction: (tx) => this.dispatchTransaction(tx),
104
- });
105
- this.view = view;
106
- const parent = this.config.element.parentNode;
107
- if (parent) {
108
- const observer = new MutationObserver((mutations) => {
109
- for (const mutation of mutations) {
110
- for (const removedNode of mutation.removedNodes) {
111
- if (removedNode.contains(view.dom)) {
112
- // Editor DOM was removed
113
- observer.disconnect(); // Prevent multiple calls
114
- view.destroy();
115
- return;
116
- }
117
- }
118
- }
119
- });
120
- }
121
- }
122
- else {
123
- this.view = new DummyEditorView({
124
- state: this.state,
125
- dispatchTransaction: (tx) => this.dispatchTransaction(tx),
126
- });
127
- }
128
- const event = new CustomEvent('doc:loaded', {
129
- detail: {
130
- editor: this,
131
- doc,
132
- },
133
- });
134
- this.dispatchEvent(event);
135
- }
136
- dispatchTransaction(transaction) {
137
- this.state = this.state.apply(transaction);
138
- if (this.view) {
139
- this.view.updateState(this.state);
140
- const event = new CustomEvent('transaction', {
141
- detail: {
142
- editor: this,
143
- transaction,
144
- },
145
- });
146
- this.dispatchEvent(event);
147
- }
148
- if (transaction.docChanged) {
149
- const event = new CustomEvent('changed', {
150
- detail: {
151
- editor: this,
152
- },
153
- });
154
- this.dispatchEvent(event);
155
- }
156
- }
157
- setupPlugins() {
158
- this.state = this.state.reconfigure({
159
- plugins: this.extensionManager.plugins,
160
- });
161
- if (this.view) {
162
- this.view.updateState(this.state);
163
- this.view.setProps({
164
- nodeViews: this.extensionManager.nodeViews,
165
- });
166
- }
167
- }
168
- clearDocument() {
169
- const content = {
170
- type: this.extensionManager.schema.topNodeType.name,
171
- content: this.extensionManager.schema.topNodeType.spec.EMPTY_DOC.content,
172
- };
173
- this.setDocument(content);
174
- }
175
- setDocument(content) {
176
- let doc = createNodeFromObject(content, this.schema, {
177
- errorOnInvalidContent: true,
178
- });
179
- doc = ensureDocSchema(doc, this.schema);
180
- this.state = EditorState.create({
181
- doc,
182
- plugins: this.state.plugins,
183
- storedMarks: this.state.storedMarks,
184
- });
185
- if (this.view) {
186
- this.view.updateState(this.state);
187
- }
188
- const event = new CustomEvent('doc:loaded', {
189
- detail: {
190
- editor: this,
191
- doc,
192
- },
193
- });
194
- this.dispatchEvent(event);
195
- }
196
- getDocument() {
197
- return this.state.doc;
198
- }
199
- async loadDocument(mediaType, content) {
200
- const converter = this.extensionManager.converters[mediaType];
201
- if (!converter) {
202
- throw new Error('Converter not found for: ' + mediaType);
203
- }
204
- const doc = await converter.toDoc(content);
205
- this.state = EditorState.create({
206
- doc,
207
- plugins: this.state.plugins,
208
- storedMarks: this.state.storedMarks,
209
- });
210
- if (this.view) {
211
- this.view.updateState(this.state);
212
- }
213
- const event = new CustomEvent('doc:loaded', {
214
- detail: {
215
- editor: this,
216
- doc,
217
- },
218
- });
219
- this.dispatchEvent(event);
220
- }
221
- async saveDocument(mediaType) {
222
- const converter = this.extensionManager.converters[mediaType];
223
- if (!converter) {
224
- throw new Error('Converter not found for: ' + mediaType);
225
- }
226
- const json = this.state.doc.toJSON();
227
- const clonedDoc = ProseMirrorNode.fromJSON(this.state.schema, json);
228
- return await converter.fromDoc(clonedDoc);
229
- }
230
- getJSON() {
231
- return this.state.doc.toJSON();
232
- }
233
- clone(options = {}) {
234
- return new CoreEditor({
235
- ...options,
236
- extensions: [...(this.config.extensions || [])],
237
- });
238
- }
239
- debug(doc) {
240
- if (!doc) {
241
- doc = this.state.doc;
242
- }
243
- console.debug(nodeToTreeString(doc));
244
- }
245
- destroy() {
246
- const event = new CustomEvent('beforeDestroy', {
247
- detail: {},
248
- });
249
- this.dispatchEvent(event);
250
- this.view.destroy();
251
- }
252
- }
@@ -1,60 +0,0 @@
1
- import { EditorState, Plugin, Transaction } from 'prosemirror-state';
2
- import { Mark, Node } from 'prosemirror-model';
3
- import { EditorView, MarkView, NodeView } from 'prosemirror-view';
4
- import { Decoration, DecorationSource } from 'prosemirror-view';
5
- export declare class DummyEditorView {
6
- private _props;
7
- private directPlugins;
8
- private nodeViews;
9
- private prevDirectPlugins;
10
- private pluginViews;
11
- state: EditorState;
12
- constructor(props: DirectEditorProps);
13
- editable: boolean;
14
- get composing(): boolean;
15
- get dom(): {
16
- addEventListener(): void;
17
- removeEventListener(): void;
18
- };
19
- get props(): DirectEditorProps;
20
- update(props: DirectEditorProps): void;
21
- setProps(props: Partial<DirectEditorProps>): void;
22
- updateState(state: EditorState): void;
23
- private updateStateInner;
24
- scrollToSelection(): void;
25
- private destroyPluginViews;
26
- private updatePluginViews;
27
- someProp<PropName extends keyof EditorProps, Result>(propName: PropName, f: (value: NonNullable<EditorProps[PropName]>) => Result): Result | undefined;
28
- someProp<PropName extends keyof EditorProps>(propName: PropName): NonNullable<EditorProps[PropName]> | undefined;
29
- hasFocus(): boolean;
30
- focus(): void;
31
- destroy(): void;
32
- get isDestroyed(): boolean;
33
- dispatchEvent(event: Event): void;
34
- dispatch: (tr: Transaction) => void;
35
- }
36
- export type NodeViewConstructor = (node: Node, view: EditorView, getPos: () => number | undefined, decorations: readonly Decoration[], innerDecorations: DecorationSource) => NodeView;
37
- export type MarkViewConstructor = (mark: Mark, view: EditorView, inline: boolean) => MarkView;
38
- export interface DOMEventMap extends HTMLElementEventMap {
39
- [event: string]: any;
40
- }
41
- export interface EditorProps<P = any> {
42
- nodeViews?: {
43
- [node: string]: NodeViewConstructor;
44
- };
45
- markViews?: {
46
- [mark: string]: MarkViewConstructor;
47
- };
48
- editable?: (this: P, state: EditorState) => boolean;
49
- attributes?: {
50
- [name: string]: string;
51
- } | ((state: EditorState) => {
52
- [name: string]: string;
53
- });
54
- }
55
- export interface DirectEditorProps extends EditorProps {
56
- state: EditorState;
57
- plugins?: readonly Plugin[];
58
- dispatchTransaction?: (tr: Transaction) => void;
59
- }
60
- //# sourceMappingURL=DummyEditorView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DummyEditorView.d.ts","sourceRoot":"","sources":["../../../src/editor/src/DummyEditorView.ts"],"names":[],"mappings":"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"}