@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.
- package/dist/citations/index.js +1 -1
- package/dist/citations/index.js.map +1 -1
- package/dist/clipboard/copy/index.js +1 -1
- package/dist/clipboard/copy/index.js.map +1 -1
- package/dist/clipboard/copy/serializers.js +2 -2
- package/dist/clipboard/copy/serializers.js.map +1 -1
- package/dist/clipboard/paste/fidus_writer.js +1 -1
- package/dist/clipboard/paste/fidus_writer.js.map +1 -1
- package/dist/clipboard/paste/google_docs.js +1 -1
- package/dist/clipboard/paste/google_docs.js.map +1 -1
- package/dist/clipboard/paste/html.js +6 -6
- package/dist/clipboard/paste/html.js.map +1 -1
- package/dist/clipboard/paste/index.js +2 -2
- package/dist/clipboard/paste/index.js.map +1 -1
- package/dist/clipboard/paste/libreoffice_writer.js +1 -1
- package/dist/clipboard/paste/libreoffice_writer.js.map +1 -1
- package/dist/clipboard/paste/microsoft_word.js +1 -1
- package/dist/clipboard/paste/microsoft_word.js.map +1 -1
- package/dist/clipboard/paste/text.js +1 -1
- package/dist/clipboard/paste/text.js.map +1 -1
- package/dist/collab/chat.js +2 -2
- package/dist/collab/chat.js.map +1 -1
- package/dist/collab/doc.js +9 -9
- package/dist/collab/doc.js.map +1 -1
- package/dist/collab/index.js +4 -4
- package/dist/collab/index.js.map +1 -1
- package/dist/collab/merge/editor.js +10 -10
- package/dist/collab/merge/editor.js.map +1 -1
- package/dist/collab/merge/footnotes.js +1 -1
- package/dist/collab/merge/footnotes.js.map +1 -1
- package/dist/collab/merge/index.js +7 -7
- package/dist/collab/merge/index.js.map +1 -1
- package/dist/collab/merge/state_plugins/action.js +1 -1
- package/dist/collab/merge/state_plugins/action.js.map +1 -1
- package/dist/collab/merge/state_plugins/clipboard.js +1 -1
- package/dist/collab/merge/state_plugins/clipboard.js.map +1 -1
- package/dist/collab/merge/state_plugins/diff.js +4 -4
- package/dist/collab/merge/state_plugins/diff.js.map +1 -1
- package/dist/collab/merge/state_plugins/index.js +2 -2
- package/dist/collab/merge/state_plugins/index.js.map +1 -1
- package/dist/comments/editors/answer.js +1 -1
- package/dist/comments/editors/answer.js.map +1 -1
- package/dist/comments/editors/comment.js +2 -2
- package/dist/comments/editors/comment.js.map +1 -1
- package/dist/comments/editors/index.js +3 -3
- package/dist/comments/editors/index.js.map +1 -1
- package/dist/comments/editors/notify.js +1 -1
- package/dist/comments/editors/notify.js.map +1 -1
- package/dist/comments/index.js +2 -2
- package/dist/comments/index.js.map +1 -1
- package/dist/comments/interactions.js +3 -3
- package/dist/comments/interactions.js.map +1 -1
- package/dist/comments/store.js +2 -2
- package/dist/comments/store.js.map +1 -1
- package/dist/contacts/add_dialog.js +1 -1
- package/dist/contacts/add_dialog.js.map +1 -1
- package/dist/copyright_dialog/index.js +1 -1
- package/dist/copyright_dialog/index.js.map +1 -1
- package/dist/copyright_dialog/templates.js +1 -1
- package/dist/copyright_dialog/templates.js.map +1 -1
- package/dist/databases/index.js +2 -2
- package/dist/databases/index.js.map +1 -1
- package/dist/dialogs/citation.js +3 -3
- package/dist/dialogs/citation.js.map +1 -1
- package/dist/dialogs/contributor.js +1 -1
- package/dist/dialogs/contributor.js.map +1 -1
- package/dist/dialogs/figure.js +3 -3
- package/dist/dialogs/figure.js.map +1 -1
- package/dist/dialogs/index.js +10 -10
- package/dist/dialogs/index.js.map +1 -1
- package/dist/dialogs/language.js +1 -1
- package/dist/dialogs/language.js.map +1 -1
- package/dist/dialogs/link.js +2 -2
- package/dist/dialogs/link.js.map +1 -1
- package/dist/dialogs/math.js +2 -2
- package/dist/dialogs/math.js.map +1 -1
- package/dist/dialogs/ordered_list.js +1 -1
- package/dist/dialogs/ordered_list.js.map +1 -1
- package/dist/dialogs/revision.js +1 -1
- package/dist/dialogs/revision.js.map +1 -1
- package/dist/dialogs/table.js +1 -1
- package/dist/dialogs/table.js.map +1 -1
- package/dist/document_template/index.js +4 -3
- package/dist/document_template/index.js.map +1 -1
- package/dist/document_template/schema.js +197 -0
- package/dist/document_template/schema.js.map +1 -0
- package/dist/documents/access_rights/index.js +2 -2
- package/dist/documents/access_rights/index.js.map +1 -1
- package/dist/e2ee/passphrase-dialog.js +1 -1
- package/dist/e2ee/passphrase-dialog.js.map +1 -1
- package/dist/e2ee/passphrase-manager.js +2 -2
- package/dist/e2ee/passphrase-manager.js.map +1 -1
- package/dist/e2ee/snapshot-manager.js +5 -5
- package/dist/e2ee/snapshot-manager.js.map +1 -1
- package/dist/exporter/native/copy.js +2 -2
- package/dist/exporter/native/copy.js.map +1 -1
- package/dist/exporter/native/file.js +1 -1
- package/dist/exporter/native/file.js.map +1 -1
- package/dist/exporter/native/index.js +3 -3
- package/dist/exporter/native/index.js.map +1 -1
- package/dist/exporter/native/revision.js +1 -1
- package/dist/exporter/native/revision.js.map +1 -1
- package/dist/footnotes/editor.js +4 -4
- package/dist/footnotes/editor.js.map +1 -1
- package/dist/footnotes/index.js +2 -2
- package/dist/footnotes/index.js.map +1 -1
- package/dist/footnotes/layout.js +1 -1
- package/dist/footnotes/layout.js.map +1 -1
- package/dist/footnotes/state_plugins/access_rights.js +1 -1
- package/dist/footnotes/state_plugins/access_rights.js.map +1 -1
- package/dist/footnotes/state_plugins/index.js +1 -1
- package/dist/footnotes/state_plugins/index.js.map +1 -1
- package/dist/images/edit_dialog/edit_dialog/index.js +3 -3
- package/dist/images/edit_dialog/edit_dialog/index.js.map +1 -1
- package/dist/images/edit_dialog/edit_dialog/model.js +1 -1
- package/dist/images/edit_dialog/edit_dialog/model.js.map +1 -1
- package/dist/images/selection_dialog/index.js +1 -1
- package/dist/images/selection_dialog/index.js.map +1 -1
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/dist/marginboxes/index.js +3 -3
- package/dist/marginboxes/index.js.map +1 -1
- package/dist/marginboxes/templates.js +3 -3
- package/dist/marginboxes/templates.js.map +1 -1
- package/dist/menus/code_block/index.js +1 -1
- package/dist/menus/code_block/index.js.map +1 -1
- package/dist/menus/code_block/model.js +1 -1
- package/dist/menus/code_block/model.js.map +1 -1
- package/dist/menus/figure/index.js +2 -2
- package/dist/menus/figure/index.js.map +1 -1
- package/dist/menus/figure/model.js +2 -2
- package/dist/menus/figure/model.js.map +1 -1
- package/dist/menus/headerbar/index.js +2 -2
- package/dist/menus/headerbar/index.js.map +1 -1
- package/dist/menus/headerbar/model.js +10 -10
- package/dist/menus/headerbar/model.js.map +1 -1
- package/dist/menus/image/index.js +1 -1
- package/dist/menus/image/index.js.map +1 -1
- package/dist/menus/image/model.js +1 -1
- package/dist/menus/image/model.js.map +1 -1
- package/dist/menus/index.js +9 -9
- package/dist/menus/index.js.map +1 -1
- package/dist/menus/navigator/index.js +1 -1
- package/dist/menus/navigator/index.js.map +1 -1
- package/dist/menus/ordered_list/index.js +1 -1
- package/dist/menus/ordered_list/index.js.map +1 -1
- package/dist/menus/ordered_list/model.js +1 -1
- package/dist/menus/ordered_list/model.js.map +1 -1
- package/dist/menus/selection/index.js +2 -2
- package/dist/menus/selection/index.js.map +1 -1
- package/dist/menus/selection/model.js +3 -3
- package/dist/menus/selection/model.js.map +1 -1
- package/dist/menus/selection/view.js +1 -1
- package/dist/menus/selection/view.js.map +1 -1
- package/dist/menus/table/index.js +1 -1
- package/dist/menus/table/index.js.map +1 -1
- package/dist/menus/table/model.js +1 -1
- package/dist/menus/table/model.js.map +1 -1
- package/dist/menus/toolbar/index.js +2 -2
- package/dist/menus/toolbar/index.js.map +1 -1
- package/dist/menus/toolbar/model.js +4 -4
- package/dist/menus/toolbar/model.js.map +1 -1
- package/dist/no_collab_save/index.js +1 -1
- package/dist/no_collab_save/index.js.map +1 -1
- package/dist/state_plugins/access_rights.js +1 -1
- package/dist/state_plugins/access_rights.js.map +1 -1
- package/dist/state_plugins/clipboard.js +3 -3
- package/dist/state_plugins/clipboard.js.map +1 -1
- package/dist/state_plugins/contributor_input/add_button.js +2 -2
- package/dist/state_plugins/contributor_input/add_button.js.map +1 -1
- package/dist/state_plugins/contributor_input/dropup.js +1 -1
- package/dist/state_plugins/contributor_input/dropup.js.map +1 -1
- package/dist/state_plugins/contributor_input/index.js +2 -2
- package/dist/state_plugins/contributor_input/index.js.map +1 -1
- package/dist/state_plugins/contributor_input/node_view.js +2 -2
- package/dist/state_plugins/contributor_input/node_view.js.map +1 -1
- package/dist/state_plugins/contributor_input/plugin.js +4 -4
- package/dist/state_plugins/contributor_input/plugin.js.map +1 -1
- package/dist/state_plugins/headerbar.js +1 -1
- package/dist/state_plugins/headerbar.js.map +1 -1
- package/dist/state_plugins/index.js +26 -26
- package/dist/state_plugins/index.js.map +1 -1
- package/dist/state_plugins/inline_math.js +3 -3
- package/dist/state_plugins/inline_math.js.map +1 -1
- package/dist/state_plugins/inline_reference/dropup.js +1 -1
- package/dist/state_plugins/inline_reference/dropup.js.map +1 -1
- package/dist/state_plugins/inline_reference/index.js +1 -1
- package/dist/state_plugins/inline_reference/index.js.map +1 -1
- package/dist/state_plugins/inline_reference/plugin.js +3 -3
- package/dist/state_plugins/inline_reference/plugin.js.map +1 -1
- package/dist/state_plugins/links.js +1 -1
- package/dist/state_plugins/links.js.map +1 -1
- package/dist/state_plugins/ordered_list_menu.js +1 -1
- package/dist/state_plugins/ordered_list_menu.js.map +1 -1
- package/dist/state_plugins/selection_menu.js +1 -1
- package/dist/state_plugins/selection_menu.js.map +1 -1
- package/dist/state_plugins/table.js +1 -1
- package/dist/state_plugins/table.js.map +1 -1
- package/dist/state_plugins/tag_input/index.js +2 -2
- package/dist/state_plugins/tag_input/index.js.map +1 -1
- package/dist/state_plugins/tag_input/node_view.js +3 -3
- package/dist/state_plugins/tag_input/node_view.js.map +1 -1
- package/dist/state_plugins/tag_input/plugin.js +3 -3
- package/dist/state_plugins/tag_input/plugin.js.map +1 -1
- package/dist/state_plugins/tag_input/tag_editor.js +2 -2
- package/dist/state_plugins/tag_input/tag_editor.js.map +1 -1
- package/dist/state_plugins/toolbar.js +1 -1
- package/dist/state_plugins/toolbar.js.map +1 -1
- package/dist/state_plugins/track/find_selected_changes.js +1 -1
- package/dist/state_plugins/track/find_selected_changes.js.map +1 -1
- package/dist/state_plugins/track/helpers.js +1 -1
- package/dist/state_plugins/track/helpers.js.map +1 -1
- package/dist/state_plugins/track/index.js +2 -2
- package/dist/state_plugins/track/index.js.map +1 -1
- package/dist/state_plugins/track/plugin.js +1 -1
- package/dist/state_plugins/track/plugin.js.map +1 -1
- package/dist/tools/index.js +3 -3
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/key_bindings/index.js +1 -1
- package/dist/tools/key_bindings/index.js.map +1 -1
- package/dist/tools/search_replace/index.js +3 -3
- package/dist/tools/search_replace/index.js.map +1 -1
- package/dist/tools/word_count/index.js +1 -1
- package/dist/tools/word_count/index.js.map +1 -1
- package/dist/track/accept.js +2 -2
- package/dist/track/accept.js.map +1 -1
- package/dist/track/accept_all.js +2 -2
- package/dist/track/accept_all.js.map +1 -1
- package/dist/track/accept_all_no_insertions.js +1 -1
- package/dist/track/accept_all_no_insertions.js.map +1 -1
- package/dist/track/index.js +4 -4
- package/dist/track/index.js.map +1 -1
- package/dist/track/mod.js +5 -5
- package/dist/track/mod.js.map +1 -1
- package/dist/track/reject.js +2 -2
- package/dist/track/reject.js.map +1 -1
- package/dist/track/reject_all.js +2 -2
- package/dist/track/reject_all.js.map +1 -1
- package/package.json +3 -3
- package/src/citations/index.js +1 -1
- package/src/clipboard/copy/index.js +1 -1
- package/src/clipboard/copy/serializers.js +2 -2
- package/src/clipboard/paste/fidus_writer.js +1 -1
- package/src/clipboard/paste/google_docs.js +1 -1
- package/src/clipboard/paste/html.js +6 -6
- package/src/clipboard/paste/index.js +2 -2
- package/src/clipboard/paste/libreoffice_writer.js +1 -1
- package/src/clipboard/paste/microsoft_word.js +1 -1
- package/src/clipboard/paste/text.js +1 -1
- package/src/collab/chat.js +2 -2
- package/src/collab/doc.js +9 -9
- package/src/collab/index.js +4 -4
- package/src/collab/merge/editor.js +10 -10
- package/src/collab/merge/footnotes.js +1 -1
- package/src/collab/merge/index.js +7 -7
- package/src/collab/merge/state_plugins/action.js +1 -1
- package/src/collab/merge/state_plugins/clipboard.js +1 -1
- package/src/collab/merge/state_plugins/diff.js +4 -4
- package/src/collab/merge/state_plugins/index.js +2 -2
- package/src/comments/editors/answer.js +1 -1
- package/src/comments/editors/comment.js +2 -2
- package/src/comments/editors/index.js +3 -3
- package/src/comments/editors/notify.js +1 -1
- package/src/comments/index.js +2 -2
- package/src/comments/interactions.js +3 -3
- package/src/comments/store.js +2 -2
- package/src/contacts/add_dialog.js +1 -1
- package/src/copyright_dialog/index.js +1 -1
- package/src/copyright_dialog/templates.js +1 -1
- package/src/databases/index.js +2 -2
- package/src/dialogs/citation.js +3 -3
- package/src/dialogs/contributor.js +1 -1
- package/src/dialogs/figure.js +3 -3
- package/src/dialogs/index.js +10 -10
- package/src/dialogs/language.js +1 -1
- package/src/dialogs/link.js +2 -2
- package/src/dialogs/math.js +2 -2
- package/src/dialogs/ordered_list.js +1 -1
- package/src/dialogs/revision.js +1 -1
- package/src/dialogs/table.js +1 -1
- package/src/document_template/index.js +5 -3
- package/src/document_template/schema.js +239 -0
- package/src/documents/access_rights/index.js +2 -2
- package/src/e2ee/passphrase-dialog.js +1 -1
- package/src/e2ee/passphrase-manager.js +2 -2
- package/src/e2ee/snapshot-manager.js +5 -5
- package/src/exporter/native/copy.js +2 -2
- package/src/exporter/native/file.js +1 -1
- package/src/exporter/native/index.js +3 -3
- package/src/exporter/native/revision.js +1 -1
- package/src/footnotes/editor.js +4 -4
- package/src/footnotes/index.js +2 -2
- package/src/footnotes/layout.js +1 -1
- package/src/footnotes/state_plugins/access_rights.js +1 -1
- package/src/footnotes/state_plugins/index.js +1 -1
- package/src/images/edit_dialog/edit_dialog/index.js +3 -3
- package/src/images/edit_dialog/edit_dialog/model.js +1 -1
- package/src/images/selection_dialog/index.js +1 -1
- package/src/index.js +22 -22
- package/src/marginboxes/index.js +3 -3
- package/src/marginboxes/templates.js +3 -3
- package/src/menus/code_block/index.js +1 -1
- package/src/menus/code_block/model.js +1 -1
- package/src/menus/figure/index.js +2 -2
- package/src/menus/figure/model.js +2 -2
- package/src/menus/headerbar/index.js +2 -2
- package/src/menus/headerbar/model.js +10 -10
- package/src/menus/image/index.js +1 -1
- package/src/menus/image/model.js +1 -1
- package/src/menus/index.js +9 -9
- package/src/menus/navigator/index.js +1 -1
- package/src/menus/ordered_list/index.js +1 -1
- package/src/menus/ordered_list/model.js +1 -1
- package/src/menus/selection/index.js +2 -2
- package/src/menus/selection/model.js +3 -3
- package/src/menus/selection/view.js +1 -1
- package/src/menus/table/index.js +1 -1
- package/src/menus/table/model.js +1 -1
- package/src/menus/toolbar/index.js +2 -2
- package/src/menus/toolbar/model.js +4 -4
- package/src/no_collab_save/index.js +1 -1
- package/src/state_plugins/access_rights.js +1 -1
- package/src/state_plugins/clipboard.js +3 -3
- package/src/state_plugins/contributor_input/add_button.js +2 -2
- package/src/state_plugins/contributor_input/dropup.js +1 -1
- package/src/state_plugins/contributor_input/index.js +2 -2
- package/src/state_plugins/contributor_input/node_view.js +2 -2
- package/src/state_plugins/contributor_input/plugin.js +4 -4
- package/src/state_plugins/headerbar.js +1 -1
- package/src/state_plugins/index.js +26 -26
- package/src/state_plugins/inline_math.js +3 -3
- package/src/state_plugins/inline_reference/dropup.js +1 -1
- package/src/state_plugins/inline_reference/index.js +1 -1
- package/src/state_plugins/inline_reference/plugin.js +3 -3
- package/src/state_plugins/links.js +1 -1
- package/src/state_plugins/ordered_list_menu.js +1 -1
- package/src/state_plugins/selection_menu.js +1 -1
- package/src/state_plugins/table.js +1 -1
- package/src/state_plugins/tag_input/index.js +2 -2
- package/src/state_plugins/tag_input/node_view.js +3 -3
- package/src/state_plugins/tag_input/plugin.js +3 -3
- package/src/state_plugins/tag_input/tag_editor.js +2 -2
- package/src/state_plugins/toolbar.js +1 -1
- package/src/state_plugins/track/find_selected_changes.js +1 -1
- package/src/state_plugins/track/helpers.js +1 -1
- package/src/state_plugins/track/index.js +2 -2
- package/src/state_plugins/track/plugin.js +1 -1
- package/src/tools/index.js +3 -3
- package/src/tools/key_bindings/index.js +1 -1
- package/src/tools/search_replace/index.js +3 -3
- package/src/tools/word_count/index.js +1 -1
- package/src/track/accept.js +2 -2
- package/src/track/accept_all.js +2 -2
- package/src/track/accept_all_no_insertions.js +1 -1
- package/src/track/index.js +4 -4
- package/src/track/mod.js +5 -5
- package/src/track/reject.js +2 -2
- 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"
|
|
@@ -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"
|
package/src/comments/index.js
CHANGED
|
@@ -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 {
|
package/src/comments/store.js
CHANGED
|
@@ -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) {
|
package/src/databases/index.js
CHANGED
package/src/dialogs/citation.js
CHANGED
|
@@ -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("
|
|
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)
|
package/src/dialogs/figure.js
CHANGED
|
@@ -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) {
|
package/src/dialogs/index.js
CHANGED
|
@@ -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"
|
package/src/dialogs/language.js
CHANGED
package/src/dialogs/link.js
CHANGED
|
@@ -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) {
|
package/src/dialogs/math.js
CHANGED
|
@@ -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
|
package/src/dialogs/revision.js
CHANGED
package/src/dialogs/table.js
CHANGED
|
@@ -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
|
/**
|