@fiduswriter/editor 0.1.1 → 0.1.3

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 (358) hide show
  1. package/dist/citations/index.js +1 -1
  2. package/dist/citations/index.js.map +1 -1
  3. package/dist/clipboard/copy/index.js +1 -1
  4. package/dist/clipboard/copy/index.js.map +1 -1
  5. package/dist/clipboard/copy/serializers.js +2 -2
  6. package/dist/clipboard/copy/serializers.js.map +1 -1
  7. package/dist/clipboard/paste/fidus_writer.js +1 -1
  8. package/dist/clipboard/paste/fidus_writer.js.map +1 -1
  9. package/dist/clipboard/paste/google_docs.js +1 -1
  10. package/dist/clipboard/paste/google_docs.js.map +1 -1
  11. package/dist/clipboard/paste/html.js +6 -6
  12. package/dist/clipboard/paste/html.js.map +1 -1
  13. package/dist/clipboard/paste/index.js +2 -2
  14. package/dist/clipboard/paste/index.js.map +1 -1
  15. package/dist/clipboard/paste/libreoffice_writer.js +1 -1
  16. package/dist/clipboard/paste/libreoffice_writer.js.map +1 -1
  17. package/dist/clipboard/paste/microsoft_word.js +1 -1
  18. package/dist/clipboard/paste/microsoft_word.js.map +1 -1
  19. package/dist/clipboard/paste/text.js +1 -1
  20. package/dist/clipboard/paste/text.js.map +1 -1
  21. package/dist/collab/chat.js +2 -2
  22. package/dist/collab/chat.js.map +1 -1
  23. package/dist/collab/doc.js +9 -9
  24. package/dist/collab/doc.js.map +1 -1
  25. package/dist/collab/index.js +4 -4
  26. package/dist/collab/index.js.map +1 -1
  27. package/dist/collab/merge/editor.js +10 -10
  28. package/dist/collab/merge/editor.js.map +1 -1
  29. package/dist/collab/merge/footnotes.js +1 -1
  30. package/dist/collab/merge/footnotes.js.map +1 -1
  31. package/dist/collab/merge/index.js +7 -7
  32. package/dist/collab/merge/index.js.map +1 -1
  33. package/dist/collab/merge/state_plugins/action.js +1 -1
  34. package/dist/collab/merge/state_plugins/action.js.map +1 -1
  35. package/dist/collab/merge/state_plugins/clipboard.js +1 -1
  36. package/dist/collab/merge/state_plugins/clipboard.js.map +1 -1
  37. package/dist/collab/merge/state_plugins/diff.js +4 -4
  38. package/dist/collab/merge/state_plugins/diff.js.map +1 -1
  39. package/dist/collab/merge/state_plugins/index.js +2 -2
  40. package/dist/collab/merge/state_plugins/index.js.map +1 -1
  41. package/dist/comments/editors/answer.js +1 -1
  42. package/dist/comments/editors/answer.js.map +1 -1
  43. package/dist/comments/editors/comment.js +2 -2
  44. package/dist/comments/editors/comment.js.map +1 -1
  45. package/dist/comments/editors/index.js +3 -3
  46. package/dist/comments/editors/index.js.map +1 -1
  47. package/dist/comments/editors/notify.js +1 -1
  48. package/dist/comments/editors/notify.js.map +1 -1
  49. package/dist/comments/index.js +2 -2
  50. package/dist/comments/index.js.map +1 -1
  51. package/dist/comments/interactions.js +3 -3
  52. package/dist/comments/interactions.js.map +1 -1
  53. package/dist/comments/store.js +2 -2
  54. package/dist/comments/store.js.map +1 -1
  55. package/dist/contacts/add_dialog.js +1 -1
  56. package/dist/contacts/add_dialog.js.map +1 -1
  57. package/dist/copyright_dialog/index.js +1 -1
  58. package/dist/copyright_dialog/index.js.map +1 -1
  59. package/dist/copyright_dialog/templates.js +1 -1
  60. package/dist/copyright_dialog/templates.js.map +1 -1
  61. package/dist/databases/index.js +2 -2
  62. package/dist/databases/index.js.map +1 -1
  63. package/dist/dialogs/citation.js +3 -3
  64. package/dist/dialogs/citation.js.map +1 -1
  65. package/dist/dialogs/contributor.js +1 -1
  66. package/dist/dialogs/contributor.js.map +1 -1
  67. package/dist/dialogs/figure.js +3 -3
  68. package/dist/dialogs/figure.js.map +1 -1
  69. package/dist/dialogs/index.js +10 -10
  70. package/dist/dialogs/index.js.map +1 -1
  71. package/dist/dialogs/language.js +1 -1
  72. package/dist/dialogs/language.js.map +1 -1
  73. package/dist/dialogs/link.js +2 -2
  74. package/dist/dialogs/link.js.map +1 -1
  75. package/dist/dialogs/math.js +2 -2
  76. package/dist/dialogs/math.js.map +1 -1
  77. package/dist/dialogs/ordered_list.js +1 -1
  78. package/dist/dialogs/ordered_list.js.map +1 -1
  79. package/dist/dialogs/revision.js +1 -1
  80. package/dist/dialogs/revision.js.map +1 -1
  81. package/dist/dialogs/table.js +1 -1
  82. package/dist/dialogs/table.js.map +1 -1
  83. package/dist/document_template/index.js +4 -3
  84. package/dist/document_template/index.js.map +1 -1
  85. package/dist/document_template/schema.js +197 -0
  86. package/dist/document_template/schema.js.map +1 -0
  87. package/dist/documents/access_rights/index.js +2 -2
  88. package/dist/documents/access_rights/index.js.map +1 -1
  89. package/dist/e2ee/passphrase-dialog.js +1 -1
  90. package/dist/e2ee/passphrase-dialog.js.map +1 -1
  91. package/dist/e2ee/passphrase-manager.js +2 -2
  92. package/dist/e2ee/passphrase-manager.js.map +1 -1
  93. package/dist/e2ee/snapshot-manager.js +5 -5
  94. package/dist/e2ee/snapshot-manager.js.map +1 -1
  95. package/dist/exporter/native/copy.js +2 -2
  96. package/dist/exporter/native/copy.js.map +1 -1
  97. package/dist/exporter/native/file.js +1 -1
  98. package/dist/exporter/native/file.js.map +1 -1
  99. package/dist/exporter/native/index.js +3 -3
  100. package/dist/exporter/native/index.js.map +1 -1
  101. package/dist/exporter/native/revision.js +1 -1
  102. package/dist/exporter/native/revision.js.map +1 -1
  103. package/dist/footnotes/editor.js +4 -4
  104. package/dist/footnotes/editor.js.map +1 -1
  105. package/dist/footnotes/index.js +2 -2
  106. package/dist/footnotes/index.js.map +1 -1
  107. package/dist/footnotes/layout.js +1 -1
  108. package/dist/footnotes/layout.js.map +1 -1
  109. package/dist/footnotes/state_plugins/access_rights.js +1 -1
  110. package/dist/footnotes/state_plugins/access_rights.js.map +1 -1
  111. package/dist/footnotes/state_plugins/index.js +1 -1
  112. package/dist/footnotes/state_plugins/index.js.map +1 -1
  113. package/dist/images/edit_dialog/edit_dialog/index.js +3 -3
  114. package/dist/images/edit_dialog/edit_dialog/index.js.map +1 -1
  115. package/dist/images/edit_dialog/edit_dialog/model.js +1 -1
  116. package/dist/images/edit_dialog/edit_dialog/model.js.map +1 -1
  117. package/dist/images/selection_dialog/index.js +1 -1
  118. package/dist/images/selection_dialog/index.js.map +1 -1
  119. package/dist/index.js +22 -22
  120. package/dist/index.js.map +1 -1
  121. package/dist/marginboxes/index.js +3 -3
  122. package/dist/marginboxes/index.js.map +1 -1
  123. package/dist/marginboxes/templates.js +3 -3
  124. package/dist/marginboxes/templates.js.map +1 -1
  125. package/dist/menus/code_block/index.js +1 -1
  126. package/dist/menus/code_block/index.js.map +1 -1
  127. package/dist/menus/code_block/model.js +1 -1
  128. package/dist/menus/code_block/model.js.map +1 -1
  129. package/dist/menus/figure/index.js +2 -2
  130. package/dist/menus/figure/index.js.map +1 -1
  131. package/dist/menus/figure/model.js +2 -2
  132. package/dist/menus/figure/model.js.map +1 -1
  133. package/dist/menus/headerbar/index.js +2 -2
  134. package/dist/menus/headerbar/index.js.map +1 -1
  135. package/dist/menus/headerbar/model.js +10 -10
  136. package/dist/menus/headerbar/model.js.map +1 -1
  137. package/dist/menus/image/index.js +1 -1
  138. package/dist/menus/image/index.js.map +1 -1
  139. package/dist/menus/image/model.js +1 -1
  140. package/dist/menus/image/model.js.map +1 -1
  141. package/dist/menus/index.js +9 -9
  142. package/dist/menus/index.js.map +1 -1
  143. package/dist/menus/navigator/index.js +1 -1
  144. package/dist/menus/navigator/index.js.map +1 -1
  145. package/dist/menus/ordered_list/index.js +1 -1
  146. package/dist/menus/ordered_list/index.js.map +1 -1
  147. package/dist/menus/ordered_list/model.js +1 -1
  148. package/dist/menus/ordered_list/model.js.map +1 -1
  149. package/dist/menus/selection/index.js +2 -2
  150. package/dist/menus/selection/index.js.map +1 -1
  151. package/dist/menus/selection/model.js +3 -3
  152. package/dist/menus/selection/model.js.map +1 -1
  153. package/dist/menus/selection/view.js +1 -1
  154. package/dist/menus/selection/view.js.map +1 -1
  155. package/dist/menus/table/index.js +1 -1
  156. package/dist/menus/table/index.js.map +1 -1
  157. package/dist/menus/table/model.js +1 -1
  158. package/dist/menus/table/model.js.map +1 -1
  159. package/dist/menus/toolbar/index.js +2 -2
  160. package/dist/menus/toolbar/index.js.map +1 -1
  161. package/dist/menus/toolbar/model.js +4 -4
  162. package/dist/menus/toolbar/model.js.map +1 -1
  163. package/dist/no_collab_save/index.js +1 -1
  164. package/dist/no_collab_save/index.js.map +1 -1
  165. package/dist/state_plugins/access_rights.js +1 -1
  166. package/dist/state_plugins/access_rights.js.map +1 -1
  167. package/dist/state_plugins/clipboard.js +3 -3
  168. package/dist/state_plugins/clipboard.js.map +1 -1
  169. package/dist/state_plugins/contributor_input/add_button.js +2 -2
  170. package/dist/state_plugins/contributor_input/add_button.js.map +1 -1
  171. package/dist/state_plugins/contributor_input/dropup.js +1 -1
  172. package/dist/state_plugins/contributor_input/dropup.js.map +1 -1
  173. package/dist/state_plugins/contributor_input/index.js +2 -2
  174. package/dist/state_plugins/contributor_input/index.js.map +1 -1
  175. package/dist/state_plugins/contributor_input/node_view.js +2 -2
  176. package/dist/state_plugins/contributor_input/node_view.js.map +1 -1
  177. package/dist/state_plugins/contributor_input/plugin.js +4 -4
  178. package/dist/state_plugins/contributor_input/plugin.js.map +1 -1
  179. package/dist/state_plugins/headerbar.js +1 -1
  180. package/dist/state_plugins/headerbar.js.map +1 -1
  181. package/dist/state_plugins/index.js +26 -26
  182. package/dist/state_plugins/index.js.map +1 -1
  183. package/dist/state_plugins/inline_math.js +3 -3
  184. package/dist/state_plugins/inline_math.js.map +1 -1
  185. package/dist/state_plugins/inline_reference/dropup.js +1 -1
  186. package/dist/state_plugins/inline_reference/dropup.js.map +1 -1
  187. package/dist/state_plugins/inline_reference/index.js +1 -1
  188. package/dist/state_plugins/inline_reference/index.js.map +1 -1
  189. package/dist/state_plugins/inline_reference/plugin.js +3 -3
  190. package/dist/state_plugins/inline_reference/plugin.js.map +1 -1
  191. package/dist/state_plugins/links.js +1 -1
  192. package/dist/state_plugins/links.js.map +1 -1
  193. package/dist/state_plugins/ordered_list_menu.js +1 -1
  194. package/dist/state_plugins/ordered_list_menu.js.map +1 -1
  195. package/dist/state_plugins/selection_menu.js +1 -1
  196. package/dist/state_plugins/selection_menu.js.map +1 -1
  197. package/dist/state_plugins/table.js +1 -1
  198. package/dist/state_plugins/table.js.map +1 -1
  199. package/dist/state_plugins/tag_input/index.js +2 -2
  200. package/dist/state_plugins/tag_input/index.js.map +1 -1
  201. package/dist/state_plugins/tag_input/node_view.js +3 -3
  202. package/dist/state_plugins/tag_input/node_view.js.map +1 -1
  203. package/dist/state_plugins/tag_input/plugin.js +3 -3
  204. package/dist/state_plugins/tag_input/plugin.js.map +1 -1
  205. package/dist/state_plugins/tag_input/tag_editor.js +2 -2
  206. package/dist/state_plugins/tag_input/tag_editor.js.map +1 -1
  207. package/dist/state_plugins/toolbar.js +1 -1
  208. package/dist/state_plugins/toolbar.js.map +1 -1
  209. package/dist/state_plugins/track/find_selected_changes.js +1 -1
  210. package/dist/state_plugins/track/find_selected_changes.js.map +1 -1
  211. package/dist/state_plugins/track/helpers.js +1 -1
  212. package/dist/state_plugins/track/helpers.js.map +1 -1
  213. package/dist/state_plugins/track/index.js +2 -2
  214. package/dist/state_plugins/track/index.js.map +1 -1
  215. package/dist/state_plugins/track/plugin.js +1 -1
  216. package/dist/state_plugins/track/plugin.js.map +1 -1
  217. package/dist/tools/index.js +3 -3
  218. package/dist/tools/index.js.map +1 -1
  219. package/dist/tools/key_bindings/index.js +1 -1
  220. package/dist/tools/key_bindings/index.js.map +1 -1
  221. package/dist/tools/search_replace/index.js +3 -3
  222. package/dist/tools/search_replace/index.js.map +1 -1
  223. package/dist/tools/word_count/index.js +1 -1
  224. package/dist/tools/word_count/index.js.map +1 -1
  225. package/dist/track/accept.js +2 -2
  226. package/dist/track/accept.js.map +1 -1
  227. package/dist/track/accept_all.js +2 -2
  228. package/dist/track/accept_all.js.map +1 -1
  229. package/dist/track/accept_all_no_insertions.js +1 -1
  230. package/dist/track/accept_all_no_insertions.js.map +1 -1
  231. package/dist/track/index.js +4 -4
  232. package/dist/track/index.js.map +1 -1
  233. package/dist/track/mod.js +5 -5
  234. package/dist/track/mod.js.map +1 -1
  235. package/dist/track/reject.js +2 -2
  236. package/dist/track/reject.js.map +1 -1
  237. package/dist/track/reject_all.js +2 -2
  238. package/dist/track/reject_all.js.map +1 -1
  239. package/package.json +3 -3
  240. package/src/citations/index.js +1 -1
  241. package/src/clipboard/copy/index.js +1 -1
  242. package/src/clipboard/copy/serializers.js +2 -2
  243. package/src/clipboard/paste/fidus_writer.js +1 -1
  244. package/src/clipboard/paste/google_docs.js +1 -1
  245. package/src/clipboard/paste/html.js +6 -6
  246. package/src/clipboard/paste/index.js +2 -2
  247. package/src/clipboard/paste/libreoffice_writer.js +1 -1
  248. package/src/clipboard/paste/microsoft_word.js +1 -1
  249. package/src/clipboard/paste/text.js +1 -1
  250. package/src/collab/chat.js +2 -2
  251. package/src/collab/doc.js +9 -9
  252. package/src/collab/index.js +4 -4
  253. package/src/collab/merge/editor.js +10 -10
  254. package/src/collab/merge/footnotes.js +1 -1
  255. package/src/collab/merge/index.js +7 -7
  256. package/src/collab/merge/state_plugins/action.js +1 -1
  257. package/src/collab/merge/state_plugins/clipboard.js +1 -1
  258. package/src/collab/merge/state_plugins/diff.js +4 -4
  259. package/src/collab/merge/state_plugins/index.js +2 -2
  260. package/src/comments/editors/answer.js +1 -1
  261. package/src/comments/editors/comment.js +2 -2
  262. package/src/comments/editors/index.js +3 -3
  263. package/src/comments/editors/notify.js +1 -1
  264. package/src/comments/index.js +2 -2
  265. package/src/comments/interactions.js +3 -3
  266. package/src/comments/store.js +2 -2
  267. package/src/contacts/add_dialog.js +1 -1
  268. package/src/copyright_dialog/index.js +1 -1
  269. package/src/copyright_dialog/templates.js +1 -1
  270. package/src/databases/index.js +2 -2
  271. package/src/dialogs/citation.js +3 -3
  272. package/src/dialogs/contributor.js +1 -1
  273. package/src/dialogs/figure.js +3 -3
  274. package/src/dialogs/index.js +10 -10
  275. package/src/dialogs/language.js +1 -1
  276. package/src/dialogs/link.js +2 -2
  277. package/src/dialogs/math.js +2 -2
  278. package/src/dialogs/ordered_list.js +1 -1
  279. package/src/dialogs/revision.js +1 -1
  280. package/src/dialogs/table.js +1 -1
  281. package/src/document_template/index.js +5 -3
  282. package/src/document_template/schema.js +239 -0
  283. package/src/documents/access_rights/index.js +2 -2
  284. package/src/e2ee/passphrase-dialog.js +1 -1
  285. package/src/e2ee/passphrase-manager.js +2 -2
  286. package/src/e2ee/snapshot-manager.js +5 -5
  287. package/src/exporter/native/copy.js +2 -2
  288. package/src/exporter/native/file.js +1 -1
  289. package/src/exporter/native/index.js +3 -3
  290. package/src/exporter/native/revision.js +1 -1
  291. package/src/footnotes/editor.js +4 -4
  292. package/src/footnotes/index.js +2 -2
  293. package/src/footnotes/layout.js +1 -1
  294. package/src/footnotes/state_plugins/access_rights.js +1 -1
  295. package/src/footnotes/state_plugins/index.js +1 -1
  296. package/src/images/edit_dialog/edit_dialog/index.js +3 -3
  297. package/src/images/edit_dialog/edit_dialog/model.js +1 -1
  298. package/src/images/selection_dialog/index.js +1 -1
  299. package/src/index.js +22 -22
  300. package/src/marginboxes/index.js +3 -3
  301. package/src/marginboxes/templates.js +3 -3
  302. package/src/menus/code_block/index.js +1 -1
  303. package/src/menus/code_block/model.js +1 -1
  304. package/src/menus/figure/index.js +2 -2
  305. package/src/menus/figure/model.js +2 -2
  306. package/src/menus/headerbar/index.js +2 -2
  307. package/src/menus/headerbar/model.js +10 -10
  308. package/src/menus/image/index.js +1 -1
  309. package/src/menus/image/model.js +1 -1
  310. package/src/menus/index.js +9 -9
  311. package/src/menus/navigator/index.js +1 -1
  312. package/src/menus/ordered_list/index.js +1 -1
  313. package/src/menus/ordered_list/model.js +1 -1
  314. package/src/menus/selection/index.js +2 -2
  315. package/src/menus/selection/model.js +3 -3
  316. package/src/menus/selection/view.js +1 -1
  317. package/src/menus/table/index.js +1 -1
  318. package/src/menus/table/model.js +1 -1
  319. package/src/menus/toolbar/index.js +2 -2
  320. package/src/menus/toolbar/model.js +4 -4
  321. package/src/no_collab_save/index.js +1 -1
  322. package/src/state_plugins/access_rights.js +1 -1
  323. package/src/state_plugins/clipboard.js +3 -3
  324. package/src/state_plugins/contributor_input/add_button.js +2 -2
  325. package/src/state_plugins/contributor_input/dropup.js +1 -1
  326. package/src/state_plugins/contributor_input/index.js +2 -2
  327. package/src/state_plugins/contributor_input/node_view.js +2 -2
  328. package/src/state_plugins/contributor_input/plugin.js +4 -4
  329. package/src/state_plugins/headerbar.js +1 -1
  330. package/src/state_plugins/index.js +26 -26
  331. package/src/state_plugins/inline_math.js +3 -3
  332. package/src/state_plugins/inline_reference/dropup.js +1 -1
  333. package/src/state_plugins/inline_reference/index.js +1 -1
  334. package/src/state_plugins/inline_reference/plugin.js +3 -3
  335. package/src/state_plugins/links.js +1 -1
  336. package/src/state_plugins/ordered_list_menu.js +1 -1
  337. package/src/state_plugins/selection_menu.js +1 -1
  338. package/src/state_plugins/table.js +1 -1
  339. package/src/state_plugins/tag_input/index.js +2 -2
  340. package/src/state_plugins/tag_input/node_view.js +3 -3
  341. package/src/state_plugins/tag_input/plugin.js +3 -3
  342. package/src/state_plugins/tag_input/tag_editor.js +2 -2
  343. package/src/state_plugins/toolbar.js +1 -1
  344. package/src/state_plugins/track/find_selected_changes.js +1 -1
  345. package/src/state_plugins/track/helpers.js +1 -1
  346. package/src/state_plugins/track/index.js +2 -2
  347. package/src/state_plugins/track/plugin.js +1 -1
  348. package/src/tools/index.js +3 -3
  349. package/src/tools/key_bindings/index.js +1 -1
  350. package/src/tools/search_replace/index.js +3 -3
  351. package/src/tools/word_count/index.js +1 -1
  352. package/src/track/accept.js +2 -2
  353. package/src/track/accept_all.js +2 -2
  354. package/src/track/accept_all_no_insertions.js +1 -1
  355. package/src/track/index.js +4 -4
  356. package/src/track/mod.js +5 -5
  357. package/src/track/reject.js +2 -2
  358. package/src/track/reject_all.js +2 -2
@@ -22,21 +22,21 @@ import {
22
22
  ReplaceStep
23
23
  } from "prosemirror-transform"
24
24
  import {EditorView} from "prosemirror-view"
25
- import {RenderCitations} from "../../citations/render"
26
- import {buildEditorKeymap} from "../../keymap"
27
- import {jumpHiddenNodesPlugin, searchPlugin} from "../../state_plugins"
28
- import {trackedTransaction} from "../../track"
29
- import {changeSet} from "./changeset"
30
- import {FootnoteView} from "./footnotes"
31
- import {recreateTransform} from "./recreate_transform"
32
- import {createDiffSchema} from "./schema"
33
- import {clipboardPlugin, diffPlugin} from "./state_plugins"
25
+ import {RenderCitations} from "../../citations/render.js"
26
+ import {buildEditorKeymap} from "../../keymap.js"
27
+ import {jumpHiddenNodesPlugin, searchPlugin} from "../../state_plugins/index.js"
28
+ import {trackedTransaction} from "../../track/index.js"
29
+ import {changeSet} from "./changeset.js"
30
+ import {FootnoteView} from "./footnotes.js"
31
+ import {recreateTransform} from "./recreate_transform.js"
32
+ import {createDiffSchema} from "./schema.js"
33
+ import {clipboardPlugin, diffPlugin} from "./state_plugins/index.js"
34
34
  import {
35
35
  checkPresenceOfdiffdata,
36
36
  dispatchRemoveDiffdata,
37
37
  removeDiffFromJson,
38
38
  simplifyTransform
39
- } from "./tools"
39
+ } from "./tools.js"
40
40
 
41
41
  export class MergeEditor {
42
42
  constructor(editor, cpDoc, offlineDoc, onlineDoc, offlineTr, onlineTr, db) {
@@ -2,7 +2,7 @@ import {fnSchema} from "@fiduswriter/document/schema/footnotes"
2
2
  import {htmlToFnNode} from "@fiduswriter/document/schema/footnotes_convert"
3
3
  import {EditorState} from "prosemirror-state"
4
4
  import {EditorView} from "prosemirror-view"
5
- import {trackedTransaction} from "../../track"
5
+ import {trackedTransaction} from "../../track/index.js"
6
6
 
7
7
  export class FootnoteView {
8
8
  constructor(node, view, getPos, editor) {
@@ -3,13 +3,13 @@ import {Dialog, addAlert, showSystemMessage} from "fwtoolkit"
3
3
  import {receiveTransaction, sendableSteps} from "prosemirror-collab"
4
4
  import {EditorState} from "prosemirror-state"
5
5
  import {Mapping, Step, Transform} from "prosemirror-transform"
6
- import {WRITE_ROLES} from "../../"
7
- import {ExportFidusFile} from "../../exporter/native"
8
- import {acceptAllNoInsertions, trackedTransaction} from "../../track"
9
- import {changeSet} from "./changeset"
10
- import {MergeEditor} from "./editor"
11
- import {recreateTransform} from "./recreate_transform"
12
- import {simplifyTransform} from "./tools"
6
+ import {WRITE_ROLES} from "../..//index.js"
7
+ import {ExportFidusFile} from "../../exporter/native/index.js"
8
+ import {acceptAllNoInsertions, trackedTransaction} from "../../track/index.js"
9
+ import {changeSet} from "./changeset.js"
10
+ import {MergeEditor} from "./editor.js"
11
+ import {recreateTransform} from "./recreate_transform.js"
12
+ import {simplifyTransform} from "./tools.js"
13
13
 
14
14
  export class Merge {
15
15
  constructor(mod) {
@@ -1,7 +1,7 @@
1
1
  import {showSystemMessage} from "fwtoolkit"
2
2
  import {TextSelection} from "prosemirror-state"
3
3
  import {AddMarkStep, Mapping, RemoveMarkStep, Step} from "prosemirror-transform"
4
- import {dispatchRemoveDiffdata} from "../tools"
4
+ import {dispatchRemoveDiffdata} from "../tools.js"
5
5
 
6
6
  export const copyChange = (view, from, to) => {
7
7
  /* when a certain change cannot be applied automatically,
@@ -1,5 +1,5 @@
1
1
  import {Plugin, PluginKey, TextSelection} from "prosemirror-state"
2
- import {docClipboardSerializer} from "../../../clipboard/copy"
2
+ import {docClipboardSerializer} from "../../../clipboard/copy/index.js"
3
3
 
4
4
  const key = new PluginKey("clipboard")
5
5
  export const clipboardPlugin = options => {
@@ -3,14 +3,14 @@ import {DOMSerializer} from "prosemirror-model"
3
3
  import {NodeSelection, Plugin, PluginKey} from "prosemirror-state"
4
4
  import {Mapping} from "prosemirror-transform"
5
5
  import {Decoration, DecorationSet} from "prosemirror-view"
6
- import {changeSet} from "../changeset"
7
- import {readOnlyFnEditor} from "../footnotes"
6
+ import {changeSet} from "../changeset.js"
7
+ import {readOnlyFnEditor} from "../footnotes.js"
8
8
  import {
9
9
  addDeletionMarks,
10
10
  dispatchRemoveDiffdata,
11
11
  removeDiffFromJson,
12
12
  updateMarkData
13
- } from "../tools"
13
+ } from "../tools.js"
14
14
  import {
15
15
  acceptChanges,
16
16
  addDeletedContentBack,
@@ -18,7 +18,7 @@ import {
18
18
  deleteContent,
19
19
  handleMarks,
20
20
  removeDecoration
21
- } from "./action"
21
+ } from "./action.js"
22
22
 
23
23
  function createHiglightDecoration(from, to, state) {
24
24
  /* Creates a yellow coloured highlight decoration when the user
@@ -1,2 +1,2 @@
1
- export {clipboardPlugin} from "./clipboard"
2
- export {diffPlugin} from "./diff"
1
+ export {clipboardPlugin} from "./clipboard.js"
2
+ export {diffPlugin} from "./diff.js"
@@ -1,5 +1,5 @@
1
1
  import {TextSelection} from "prosemirror-state"
2
- import {CommentEditor} from "./comment"
2
+ import {CommentEditor} from "./comment.js"
3
3
 
4
4
  export class CommentAnswerEditor extends CommentEditor {
5
5
  constructor(mod, id, dom, text, options = {}) {
@@ -8,8 +8,8 @@ import {EditorView} from "prosemirror-view"
8
8
 
9
9
  import {avatarTemplate, escapeText, findTarget} from "fwtoolkit"
10
10
 
11
- import {notifyMentionedUser} from "./notify"
12
- import {commentSchema} from "./schema"
11
+ import {notifyMentionedUser} from "./notify.js"
12
+ import {commentSchema} from "./schema.js"
13
13
 
14
14
  export class CommentEditor {
15
15
  constructor(mod, id, dom, text, options = {}) {
@@ -1,4 +1,4 @@
1
- export {CommentEditor} from "./comment"
2
- export {CommentAnswerEditor} from "./answer"
1
+ export {CommentEditor} from "./comment.js"
2
+ export {CommentAnswerEditor} from "./answer.js"
3
3
 
4
- export {serializeComment} from "./schema"
4
+ export {serializeComment} from "./schema.js"
@@ -1,5 +1,5 @@
1
1
  import {post} from "fwtoolkit"
2
- import {serializeCommentNode} from "./schema"
2
+ import {serializeCommentNode} from "./schema.js"
3
3
 
4
4
  export const notifyMentionedUser = (docId, userId, comment) => {
5
5
  const {html, text} = serializeCommentNode(comment)
@@ -1,5 +1,5 @@
1
- import {ModCommentInteractions} from "./interactions"
2
- import {ModCommentStore} from "./store"
1
+ import {ModCommentInteractions} from "./interactions.js"
2
+ import {ModCommentStore} from "./store.js"
3
3
 
4
4
  export class ModComments {
5
5
  constructor(editor) {
@@ -2,12 +2,12 @@ import {GapCursor} from "prosemirror-gapcursor"
2
2
  import {TextSelection} from "prosemirror-state"
3
3
 
4
4
  import {findTarget, post} from "fwtoolkit"
5
- import {READ_ONLY_ROLES} from ".."
5
+ import {READ_ONLY_ROLES} from "../index.js"
6
6
  import {
7
7
  deactivateAllSelectedChanges,
8
8
  getCommentDuringCreationDecoration
9
- } from "../state_plugins"
10
- import {CommentAnswerEditor, CommentEditor, serializeComment} from "./editors"
9
+ } from "../state_plugins/index.js"
10
+ import {CommentAnswerEditor, CommentEditor, serializeComment} from "./editors/index.js"
11
11
 
12
12
  /* Functions related to user interactions with comments */
13
13
  export class ModCommentInteractions {
@@ -2,8 +2,8 @@ import {randomCommentId} from "@fiduswriter/document/schema/common/index"
2
2
  import {
3
3
  addCommentDuringCreationDecoration,
4
4
  removeCommentDuringCreationDecoration
5
- } from "../state_plugins"
6
- import {Comment} from "./comment"
5
+ } from "../state_plugins/index.js"
6
+ import {Comment} from "./comment.js"
7
7
 
8
8
  export class ModCommentStore {
9
9
  constructor(mod) {
@@ -1,5 +1,5 @@
1
1
  import {Dialog, cancelPromise, escapeText, postJson} from "fwtoolkit"
2
- import {addContactTemplate} from "./templates"
2
+ import {addContactTemplate} from "./templates.js"
3
3
 
4
4
  //dialog for adding a user to contacts
5
5
  export class AddContactDialog {
@@ -5,7 +5,7 @@ import {
5
5
  copyrightTemplate,
6
6
  licenseInputTemplate,
7
7
  licenseSelectTemplate
8
- } from "./templates"
8
+ } from "./templates.js"
9
9
 
10
10
  export const LICENSE_URLS = [
11
11
  ["CC BY 4.0", "https://creativecommons.org/licenses/by/4.0/"],
@@ -1,5 +1,5 @@
1
1
  import {escapeText} from "fwtoolkit"
2
- import {LICENSE_URLS} from "./index"
2
+ import {LICENSE_URLS} from "./index.js"
3
3
 
4
4
  export const licenseSelectTemplate = ({url}) =>
5
5
  `<select class="license">
@@ -1,5 +1,5 @@
1
- import {ModBibliographyDB} from "./bibliography"
2
- import {ModImageDB} from "./images"
1
+ import {ModBibliographyDB} from "./bibliography.js"
2
+ import {ModImageDB} from "./images.js"
3
3
 
4
4
  export class ModDB {
5
5
  constructor(editor) {
@@ -7,11 +7,11 @@ import {
7
7
  findTarget,
8
8
  setCheckableLabel
9
9
  } from "fwtoolkit"
10
- import {plugins} from "../plugins/citation_dialog"
10
+ import {plugins} from "../plugins/citation_dialog/index.js"
11
11
  import {dateToYear, litToText, nameToText} from "@fiduswriter/bibliography-manager/tools"
12
12
 
13
13
  ensureCSS(staticUrl("css/checkable_list.css"))
14
- import {configureCitationTemplate, selectedCitationTemplate} from "./templates"
14
+ import {configureCitationTemplate, selectedCitationTemplate} from "./templates.js"
15
15
 
16
16
  export class CitationDialog {
17
17
  constructor(editor) {
@@ -171,7 +171,7 @@ export class CitationDialog {
171
171
  }
172
172
 
173
173
  registerNewSource() {
174
- import("../../bibliography/form").then(({BibEntryForm}) => {
174
+ import("@fiduswriter/bibliography-manager/form/index.js").then(({BibEntryForm}) => {
175
175
  const form = new BibEntryForm(this.editor.mod.db.bibDB)
176
176
  form.init().then(idTranslations => {
177
177
  const ids = idTranslations.map(idTrans => idTrans[1])
@@ -1,6 +1,6 @@
1
1
  import {Dialog, addAlert} from "fwtoolkit"
2
2
  import {NodeSelection} from "prosemirror-state"
3
- import {contributorTemplate} from "./templates"
3
+ import {contributorTemplate} from "./templates.js"
4
4
  /*
5
5
  Source for email regexp:
6
6
  https://html.spec.whatwg.org/multipage/input.html#e-mail-state-(type%3Demail)
@@ -2,9 +2,9 @@ import deepEqual from "fast-deep-equal"
2
2
 
3
3
  import {randomFigureId} from "@fiduswriter/document/schema/common/index"
4
4
  import {ContentMenu, Dialog, addAlert, dropdownSelect} from "fwtoolkit"
5
- import {ImageSelectionDialog} from "../images/selection_dialog"
6
- import {E2EEEncryptor} from "../e2ee/encryptor"
7
- import {configureFigureTemplate} from "./templates"
5
+ import {ImageSelectionDialog} from "../images/selection_dialog/index.js"
6
+ import {E2EEEncryptor} from "../e2ee/encryptor.js"
7
+ import {configureFigureTemplate} from "./templates.js"
8
8
 
9
9
  export class FigureDialog {
10
10
  constructor(editor) {
@@ -1,10 +1,10 @@
1
- export {ContributorDialog} from "./contributor"
2
- export {CitationDialog} from "./citation"
3
- export {FigureDialog} from "./figure"
4
- export {MathDialog} from "./math"
5
- export {LanguageDialog} from "./language"
6
- export {LinkDialog} from "./link"
7
- export {TableDialog, TableConfigurationDialog} from "./table"
8
- export {RevisionDialog} from "./revision"
9
- export {OrderedListStartDialog} from "./ordered_list"
10
- export {CodeBlockDialog} from "./code_block"
1
+ export {ContributorDialog} from "./contributor.js"
2
+ export {CitationDialog} from "./citation.js"
3
+ export {FigureDialog} from "./figure.js"
4
+ export {MathDialog} from "./math.js"
5
+ export {LanguageDialog} from "./language.js"
6
+ export {LinkDialog} from "./link.js"
7
+ export {TableDialog, TableConfigurationDialog} from "./table.js"
8
+ export {RevisionDialog} from "./revision.js"
9
+ export {OrderedListStartDialog} from "./ordered_list.js"
10
+ export {CodeBlockDialog} from "./code_block.js"
@@ -1,7 +1,7 @@
1
1
  import {Dialog} from "fwtoolkit"
2
2
 
3
3
  import {LANGUAGES} from "@fiduswriter/document/schema/const"
4
- import {languageTemplate} from "./templates"
4
+ import {languageTemplate} from "./templates.js"
5
5
 
6
6
  export class LanguageDialog {
7
7
  constructor(editor, language) {
@@ -1,9 +1,9 @@
1
1
  import {TextSelection} from "prosemirror-state"
2
2
 
3
- import {linkDialogTemplate} from "./templates"
3
+ import {linkDialogTemplate} from "./templates.js"
4
4
 
5
5
  import {Dialog} from "fwtoolkit"
6
- import {getInternalTargets} from "../state_plugins"
6
+ import {getInternalTargets} from "../state_plugins/index.js"
7
7
 
8
8
  export class LinkDialog {
9
9
  constructor(editor) {
@@ -1,6 +1,6 @@
1
1
  import {Dialog} from "fwtoolkit"
2
- import {sub, subChars, sup, supChars} from "./subsup"
3
- import {mathDialogTemplate} from "./templates"
2
+ import {sub, subChars, sup, supChars} from "./subsup.js"
3
+ import {mathDialogTemplate} from "./templates.js"
4
4
 
5
5
  /**
6
6
  * Class to work with formula dialog
@@ -1,5 +1,5 @@
1
1
  import {Dialog} from "fwtoolkit"
2
- import {orderedListStartTemplate} from "./templates"
2
+ import {orderedListStartTemplate} from "./templates.js"
3
3
 
4
4
  export class OrderedListStartDialog {
5
5
  constructor(editor) {
@@ -1,5 +1,5 @@
1
1
  import {Dialog} from "fwtoolkit"
2
- import {revisionDialogTemplate} from "./templates"
2
+ import {revisionDialogTemplate} from "./templates.js"
3
3
 
4
4
  export class RevisionDialog {
5
5
  constructor(dir) {
@@ -1,5 +1,5 @@
1
1
  import {Dialog, dropdownSelect} from "fwtoolkit"
2
- import {tableConfigurationTemplate, tableInsertTemplate} from "./templates"
2
+ import {tableConfigurationTemplate, tableInsertTemplate} from "./templates.js"
3
3
 
4
4
  export class TableDialog {
5
5
  constructor(editor) {
@@ -6,12 +6,14 @@ import {
6
6
  get,
7
7
  shortFileTitle
8
8
  } from "fwtoolkit"
9
- import {SaveCopy} from "../exporter/native"
10
- import {E2EEKeyManager} from "../e2ee/key-manager"
9
+ import {SaveCopy} from "../exporter/native/index.js"
10
+ import {E2EEKeyManager} from "../e2ee/key-manager.js"
11
11
  import {
12
12
  createPasswordDialog,
13
13
  enterPasswordDialog
14
- } from "../e2ee/password-dialog"
14
+ } from "../e2ee/password-dialog.js"
15
+
16
+ export {serializeHelp} from "./schema.js"
15
17
 
16
18
  export class ModDocumentTemplate {
17
19
  constructor(editor) {
@@ -0,0 +1,239 @@
1
+ import {buildMenuItems} from "prosemirror-example-setup"
2
+ import {Dropdown, MenuItem, blockTypeItem} from "prosemirror-menu"
3
+ import {DOMSerializer, Schema} from "prosemirror-model"
4
+ import {schema} from "prosemirror-schema-basic"
5
+ import {
6
+ addColumnAfter,
7
+ addColumnBefore,
8
+ addRowAfter,
9
+ addRowBefore,
10
+ deleteColumn,
11
+ deleteRow,
12
+ mergeCells,
13
+ splitCell,
14
+ toggleHeaderCell,
15
+ toggleHeaderColumn,
16
+ toggleHeaderRow
17
+ } from "prosemirror-tables"
18
+
19
+ import {docSchema} from "@fiduswriter/document/schema/document/index"
20
+ const doc = {
21
+ content: "block+",
22
+ toDOM(_node) {
23
+ return ["div", 0]
24
+ }
25
+ }
26
+
27
+ // from https://github.com/ProseMirror/prosemirror-tables/blob/master/src/util.js
28
+ const findTable = state => {
29
+ const $head = state.selection.$head
30
+ for (let d = $head.depth; d > 0; d--) {
31
+ if ($head.node(d).type.spec.tableRole == "table") {
32
+ return $head.node(d)
33
+ }
34
+ }
35
+ return false
36
+ }
37
+
38
+ export const helpSchema = new Schema({
39
+ nodes: schema.spec.nodes
40
+ .remove("code_block")
41
+ .remove("image")
42
+ .remove("heading")
43
+ .remove("horizontal_rule")
44
+ .update("doc", doc),
45
+ marks: schema.spec.marks.remove("code").update("link", {
46
+ attrs: {
47
+ href: {},
48
+ title: {default: null}
49
+ },
50
+ inclusive: false,
51
+ parseDOM: [
52
+ {
53
+ tag: "a[href]",
54
+ getAttrs(dom) {
55
+ return {
56
+ href: dom.getAttribute("href"),
57
+ title: dom.getAttribute("title")
58
+ }
59
+ }
60
+ }
61
+ ],
62
+ toDOM(node) {
63
+ return ["a", Object.assign({target: "_blank"}, node.attrs), 0]
64
+ }
65
+ })
66
+ })
67
+
68
+ export const helpMenuContent = buildMenuItems(helpSchema).fullMenu
69
+ helpMenuContent.splice(1, 1) // full menu minus drop downs
70
+
71
+ const helpSerializer = DOMSerializer.fromSchema(helpSchema)
72
+
73
+ export const serializeHelp = content => {
74
+ const doc = {type: "doc", content},
75
+ pmNode = helpSchema.nodeFromJSON(doc),
76
+ dom = helpSerializer.serializeNode(pmNode)
77
+ return dom.innerHTML
78
+ }
79
+
80
+ export const richtextPartSchema = new Schema({
81
+ nodes: docSchema.spec.nodes.update("doc", {content: "richtext_part"}),
82
+ marks: docSchema.spec.marks
83
+ })
84
+
85
+ export const richtextMenuContent = buildMenuItems(richtextPartSchema).fullMenu
86
+ for (let i = 1; i <= 6; i++) {
87
+ const type = richtextPartSchema.nodes[`heading${i}`]
88
+ richtextMenuContent[1][1].content.push(
89
+ blockTypeItem(type, {
90
+ title: gettext("Change to heading ") + i,
91
+ label: gettext("Heading level ") + i
92
+ })
93
+ )
94
+ }
95
+
96
+ const type = richtextPartSchema.nodes["table"]
97
+ richtextMenuContent[1][0].content.push(
98
+ blockTypeItem(type, {
99
+ title: gettext("Insert Table"),
100
+ label: gettext("Table"),
101
+ enable(state) {
102
+ return !findTable(state)
103
+ },
104
+ run(state, dispatch) {
105
+ const table = {
106
+ type: "table",
107
+ content: [
108
+ {type: "table_caption"},
109
+ {
110
+ type: "table_body",
111
+ content: [
112
+ {
113
+ type: "table_row",
114
+ content: [
115
+ {
116
+ type: "table_cell",
117
+ content: [{type: "paragraph"}]
118
+ }
119
+ ]
120
+ }
121
+ ]
122
+ }
123
+ ]
124
+ }
125
+ const schema = state.schema
126
+ dispatch(
127
+ state.tr.replaceSelectionWith(schema.nodeFromJSON(table)),
128
+ false
129
+ )
130
+ }
131
+ })
132
+ )
133
+
134
+ export const tablePartSchema = new Schema({
135
+ nodes: docSchema.spec.nodes
136
+ .update("doc", {content: "table_part"})
137
+ .update("table_row", {
138
+ content: "(table_cell | table_header)+",
139
+ tableRole: "row",
140
+ parseDOM: [{tag: "tr"}],
141
+ toDOM() {
142
+ return ["tr", 0]
143
+ }
144
+ }),
145
+ marks: docSchema.spec.marks
146
+ })
147
+
148
+ export const tableMenuContent = buildMenuItems(tablePartSchema).fullMenu
149
+ for (let i = 1; i <= 6; i++) {
150
+ const type = tablePartSchema.nodes[`heading${i}`]
151
+ tableMenuContent[1][1].content.push(
152
+ blockTypeItem(type, {
153
+ title: gettext("Change to heading ") + i,
154
+ label: gettext("Heading level ") + i
155
+ })
156
+ )
157
+ }
158
+ function tableMenuItem(label, cmd) {
159
+ return new MenuItem({label, select: cmd, run: cmd})
160
+ }
161
+ const tableMenu = [
162
+ tableMenuItem(gettext("Insert column after"), addColumnAfter),
163
+ tableMenuItem(gettext("Insert column before"), addColumnBefore),
164
+ tableMenuItem(gettext("Insert column after"), addColumnAfter),
165
+ tableMenuItem(gettext("Delete column"), deleteColumn),
166
+ tableMenuItem(gettext("Insert row before"), addRowBefore),
167
+ tableMenuItem(gettext("Insert row after"), addRowAfter),
168
+ tableMenuItem(gettext("Delete row"), deleteRow),
169
+ tableMenuItem(gettext("Split cell"), splitCell),
170
+ tableMenuItem(gettext("Merge cells"), mergeCells),
171
+ tableMenuItem(gettext("Toggle header column"), toggleHeaderColumn),
172
+ tableMenuItem(gettext("Toggle header row"), toggleHeaderRow),
173
+ tableMenuItem(gettext("Toggle header cells"), toggleHeaderCell),
174
+ tableMenuItem(gettext("Delete table"), (state, dispatch) => {
175
+ // Adjusted from https://github.com/ProseMirror/prosemirror-tables/blob/master/src/commands.js
176
+ const $pos = state.selection.$anchor
177
+ for (let d = $pos.depth; d > 0; d--) {
178
+ const node = $pos.node(d)
179
+ if (node.type.name == "table") {
180
+ if (dispatch) {
181
+ dispatch(
182
+ state.tr
183
+ .delete($pos.before(d), $pos.after(d))
184
+ .scrollIntoView()
185
+ )
186
+ }
187
+ return true
188
+ }
189
+ }
190
+ return false
191
+ })
192
+ ]
193
+ tableMenuContent.splice(2, 0, [
194
+ new Dropdown(tableMenu, {label: gettext("Table")})
195
+ ])
196
+
197
+ richtextMenuContent.splice(2, 0, [
198
+ new Dropdown(tableMenu, {label: gettext("Table")})
199
+ ])
200
+
201
+ export const headingPartSchema = new Schema({
202
+ nodes: docSchema.spec.nodes
203
+ .update("doc", {content: "heading_part"})
204
+ .remove("horizontal_rule")
205
+ .remove("paragraph")
206
+ .remove("code_block"),
207
+ marks: docSchema.spec.marks
208
+ })
209
+
210
+ export const headingMenuContent = buildMenuItems(headingPartSchema).fullMenu
211
+ for (let i = 1; i <= 6; i++) {
212
+ const type = headingPartSchema.nodes[`heading${i}`]
213
+ headingMenuContent[1][1].content.push(
214
+ blockTypeItem(type, {
215
+ title: gettext("Change to heading ") + i,
216
+ label: gettext("Heading level ") + i
217
+ })
218
+ )
219
+ }
220
+
221
+ export const tagsPartSchema = new Schema({
222
+ nodes: {
223
+ doc: {content: "tags_part"},
224
+ tags_part: docSchema.spec.nodes.get("tags_part"),
225
+ tag: docSchema.spec.nodes.get("tag"),
226
+ text: docSchema.spec.nodes.get("text")
227
+ },
228
+ marks: docSchema.spec.marks
229
+ })
230
+
231
+ export const contributorsPartSchema = new Schema({
232
+ nodes: {
233
+ doc: {content: "contributors_part"},
234
+ contributors_part: docSchema.spec.nodes.get("contributors_part"),
235
+ contributor: docSchema.spec.nodes.get("contributor"),
236
+ text: docSchema.spec.nodes.get("text")
237
+ },
238
+ marks: docSchema.spec.marks
239
+ })
@@ -12,7 +12,7 @@ import {
12
12
  } from "fwtoolkit"
13
13
 
14
14
  ensureCSS(staticUrl("css/checkable_list.css"))
15
- import {AddContactDialog} from "../../contacts/add_dialog"
15
+ import {AddContactDialog} from "../../contacts/add_dialog.js"
16
16
  import {
17
17
  collaboratorsTemplate,
18
18
  contactsTemplate,
@@ -21,7 +21,7 @@ import {
21
21
  shareLinkTabTemplate,
22
22
  shareTokenListTemplate,
23
23
  shareTokenRowTemplate
24
- } from "./templates"
24
+ } from "./templates.js"
25
25
 
26
26
  /**
27
27
  * Build the collaborators list from raw access rights and document IDs.
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
  import {Dialog, escapeText} from "fwtoolkit"
12
- import {passwordStrength, strengthInfo} from "./password-dialog"
12
+ import {passwordStrength, strengthInfo} from "./password-dialog.js"
13
13
 
14
14
  /**
15
15
  * Show a dialog to set up the personal passphrase for the first time.
@@ -11,8 +11,8 @@
11
11
  */
12
12
 
13
13
  import {getJson, post, postJson} from "fwtoolkit"
14
- import {E2EEKeyManager} from "./key-manager"
15
- import {PassphraseCrypto} from "./passphrase-crypto"
14
+ import {E2EEKeyManager} from "./key-manager.js"
15
+ import {PassphraseCrypto} from "./passphrase-crypto.js"
16
16
 
17
17
  export class PassphraseManager {
18
18
  /**