@fiduswriter/editor 0.1.1 → 0.1.2
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 +7 -7
- 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 +2 -2
- 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 +3 -3
- package/dist/document_template/index.js.map +1 -1
- 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/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/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 +9 -9
- 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 +1 -1
- 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 +7 -7
- 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 +2 -2
- 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 +3 -3
- 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/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/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 +9 -9
- 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
package/src/citations/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {docClipboardSerializer, fnClipboardSerializer} from "./serializers"
|
|
1
|
+
export {docClipboardSerializer, fnClipboardSerializer} from "./serializers.js"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {BIBLIOGRAPHY_HEADERS} from "@fiduswriter/document/schema/i18n"
|
|
2
2
|
import {DOMSerializer} from "prosemirror-model"
|
|
3
|
-
import {RenderCitations} from "../../citations/render"
|
|
4
|
-
import {createDocCopySchema, fnCopySchema} from "./schema"
|
|
3
|
+
import {RenderCitations} from "../../citations/render.js"
|
|
4
|
+
import {createDocCopySchema, fnCopySchema} from "./schema.js"
|
|
5
5
|
|
|
6
6
|
// Wrap around DOMSerializer, allowing post processing.
|
|
7
7
|
class ClipboardDOMSerializer {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {FidusWriterPasteHandler} from "./fidus_writer"
|
|
2
|
-
import {GeneralPasteHandler} from "./general"
|
|
3
|
-
import {GoogleDocsPasteHandler} from "./google_docs"
|
|
4
|
-
import {LibreOfficeWriterPasteHandler} from "./libreoffice_writer"
|
|
5
|
-
import {MicrosoftWordPasteHandler} from "./microsoft_word"
|
|
1
|
+
import {FidusWriterPasteHandler} from "./fidus_writer.js"
|
|
2
|
+
import {GeneralPasteHandler} from "./general.js"
|
|
3
|
+
import {GoogleDocsPasteHandler} from "./google_docs.js"
|
|
4
|
+
import {LibreOfficeWriterPasteHandler} from "./libreoffice_writer.js"
|
|
5
|
+
import {MicrosoftWordPasteHandler} from "./microsoft_word.js"
|
|
6
6
|
|
|
7
|
-
import {resetPasteRange} from "../../state_plugins/clipboard"
|
|
7
|
+
import {resetPasteRange} from "../../state_plugins/clipboard.js"
|
|
8
8
|
|
|
9
9
|
// Some pasted HTML will need slight conversions to work correctly.
|
|
10
10
|
// We try to sniff whether paste comes from MsWord, LibreOffice or Google Docs
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {HTMLPaste} from "./html"
|
|
2
|
-
export {TextPaste} from "./text"
|
|
1
|
+
export {HTMLPaste} from "./html.js"
|
|
2
|
+
export {TextPaste} from "./text.js"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {TextSelection} from "prosemirror-state"
|
|
2
2
|
import {__parseFromClipboard} from "prosemirror-view"
|
|
3
3
|
|
|
4
|
-
import {getPasteRange, resetPasteRange} from "../../state_plugins/clipboard"
|
|
4
|
+
import {getPasteRange, resetPasteRange} from "../../state_plugins/clipboard.js"
|
|
5
5
|
|
|
6
6
|
export class TextPaste {
|
|
7
7
|
constructor(editor, text, view) {
|
package/src/collab/chat.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {localizeDate, whenReady} from "fwtoolkit"
|
|
2
|
-
import {E2EEEncryptor} from "../e2ee/encryptor"
|
|
3
|
-
import {messageTemplate} from "./templates"
|
|
2
|
+
import {E2EEEncryptor} from "../e2ee/encryptor.js"
|
|
3
|
+
import {messageTemplate} from "./templates.js"
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
* Functions for chat between users who access a document simultaneously.
|
package/src/collab/doc.js
CHANGED
|
@@ -3,17 +3,17 @@ import {Dialog, activateWait, deactivateWait, makeWorker} from "fwtoolkit"
|
|
|
3
3
|
import {receiveTransaction, sendableSteps} from "prosemirror-collab"
|
|
4
4
|
import {EditorState} from "prosemirror-state"
|
|
5
5
|
import {Step} from "prosemirror-transform"
|
|
6
|
-
import {E2EEEncryptor} from "../e2ee/encryptor"
|
|
7
|
-
import {E2EEKeyManager} from "../e2ee/key-manager"
|
|
8
|
-
import {enterPassphraseDialog} from "../e2ee/passphrase-dialog"
|
|
9
|
-
import {PassphraseManager} from "../e2ee/passphrase-manager"
|
|
10
|
-
import {enterPasswordDialog} from "../e2ee/password-dialog"
|
|
6
|
+
import {E2EEEncryptor} from "../e2ee/encryptor.js"
|
|
7
|
+
import {E2EEKeyManager} from "../e2ee/key-manager.js"
|
|
8
|
+
import {enterPassphraseDialog} from "../e2ee/passphrase-dialog.js"
|
|
9
|
+
import {PassphraseManager} from "../e2ee/passphrase-manager.js"
|
|
10
|
+
import {enterPasswordDialog} from "../e2ee/password-dialog.js"
|
|
11
11
|
import {
|
|
12
12
|
getSelectionUpdate,
|
|
13
13
|
removeCollaboratorSelection,
|
|
14
14
|
updateCollaboratorSelection
|
|
15
|
-
} from "../state_plugins"
|
|
16
|
-
import {Merge} from "./merge"
|
|
15
|
+
} from "../state_plugins/index.js"
|
|
16
|
+
import {Merge} from "./merge/index.js"
|
|
17
17
|
|
|
18
18
|
export class ModCollabDoc {
|
|
19
19
|
constructor(mod) {
|
package/src/collab/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {removeCollaboratorSelection} from "../state_plugins"
|
|
2
|
-
import {ModCollabChat} from "./chat"
|
|
3
|
-
import {ModCollabColors} from "./colors"
|
|
4
|
-
import {ModCollabDoc} from "./doc"
|
|
1
|
+
import {removeCollaboratorSelection} from "../state_plugins/index.js"
|
|
2
|
+
import {ModCollabChat} from "./chat.js"
|
|
3
|
+
import {ModCollabColors} from "./colors.js"
|
|
4
|
+
import {ModCollabDoc} from "./doc.js"
|
|
5
5
|
|
|
6
6
|
export class ModCollab {
|
|
7
7
|
constructor(editor) {
|
|
@@ -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) {
|
|
@@ -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,12 @@ 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
15
|
|
|
16
16
|
export class ModDocumentTemplate {
|
|
17
17
|
constructor(editor) {
|
|
@@ -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
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {SaveCopy as GenericSaveCopy} from "@fiduswriter/document/exporter/native"
|
|
2
2
|
import {addProgress, gettext, shortFileTitle} from "fwtoolkit"
|
|
3
|
-
import {E2EEEncryptor} from "../../e2ee/encryptor"
|
|
4
|
-
import {E2EEKeyManager} from "../../e2ee/key-manager"
|
|
3
|
+
import {E2EEEncryptor} from "../../e2ee/encryptor.js"
|
|
4
|
+
import {E2EEKeyManager} from "../../e2ee/key-manager.js"
|
|
5
5
|
import {NativeImporter} from "@fiduswriter/document/importer/native"
|
|
6
6
|
|
|
7
7
|
export class SaveCopy extends GenericSaveCopy {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {ExportFidusFile as GenericExportFidusFile} from "@fiduswriter/document/exporter/native"
|
|
2
2
|
import {addProgress, gettext, shortFileTitle} from "fwtoolkit"
|
|
3
|
-
import {DocumentTemplateExporter} from "../../document_template/exporter"
|
|
3
|
+
import {DocumentTemplateExporter} from "../../document_template/exporter.js"
|
|
4
4
|
|
|
5
5
|
export class ExportFidusFile extends GenericExportFidusFile {
|
|
6
6
|
constructor(doc, bibDB, imageDB, includeTemplate = true, token = false) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {ExportFidusFile} from "./file"
|
|
2
|
-
export {SaveRevision} from "./revision"
|
|
3
|
-
export {SaveCopy} from "./copy"
|
|
1
|
+
export {ExportFidusFile} from "./file.js"
|
|
2
|
+
export {SaveRevision} from "./revision.js"
|
|
3
|
+
export {SaveCopy} from "./copy.js"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {SaveRevision as GenericSaveRevision} from "@fiduswriter/document/exporter/native"
|
|
2
2
|
import {createSlug} from "@fiduswriter/document/exporter/tools/file"
|
|
3
3
|
import {addAlert, addProgress, gettext, post, shortFileTitle} from "fwtoolkit"
|
|
4
|
-
import {DocumentTemplateExporter} from "../../document_template/exporter"
|
|
4
|
+
import {DocumentTemplateExporter} from "../../document_template/exporter.js"
|
|
5
5
|
|
|
6
6
|
export class SaveRevision extends GenericSaveRevision {
|
|
7
7
|
constructor(doc, imageDB, bibDB, note, app) {
|
package/src/footnotes/editor.js
CHANGED
|
@@ -11,7 +11,7 @@ import {EditorView} from "prosemirror-view"
|
|
|
11
11
|
|
|
12
12
|
import {fnSchema} from "@fiduswriter/document/schema/footnotes"
|
|
13
13
|
import {fnNodeToPmNode} from "@fiduswriter/document/schema/footnotes_convert"
|
|
14
|
-
import {E2EEEncryptor} from "../e2ee/encryptor"
|
|
14
|
+
import {E2EEEncryptor} from "../e2ee/encryptor.js"
|
|
15
15
|
import {
|
|
16
16
|
citationRenderPlugin,
|
|
17
17
|
clipboardPlugin,
|
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
toolbarPlugin,
|
|
27
27
|
trackPlugin,
|
|
28
28
|
updateFootnoteMarker
|
|
29
|
-
} from "../state_plugins"
|
|
30
|
-
import {amendTransaction} from "../track"
|
|
31
|
-
import {accessRightsPlugin} from "./state_plugins"
|
|
29
|
+
} from "../state_plugins/index.js"
|
|
30
|
+
import {amendTransaction} from "../track/index.js"
|
|
31
|
+
import {accessRightsPlugin} from "./state_plugins/index.js"
|
|
32
32
|
|
|
33
33
|
/* Functions related to the footnote editor instance */
|
|
34
34
|
export class ModFootnoteEditor {
|
package/src/footnotes/index.js
CHANGED
package/src/footnotes/layout.js
CHANGED