@manuscripts/body-editor 3.3.1 → 3.3.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/cjs/components/ChangeHandlingForm.js +17 -7
- package/dist/cjs/components/DragAndDropUploader.js +17 -7
- package/dist/cjs/components/affiliations/AffiliationForm.js +17 -7
- package/dist/cjs/components/affiliations/AffiliationItem.js +17 -7
- package/dist/cjs/components/affiliations/AffiliationsModal.js +17 -7
- package/dist/cjs/components/authors/AuthorDetailsForm.js +17 -7
- package/dist/cjs/components/authors/AuthorsModal.js +17 -7
- package/dist/cjs/components/authors/DraggableAuthor.js +17 -7
- package/dist/cjs/components/awards/AwardForm.js +17 -7
- package/dist/cjs/components/awards/AwardModal.js +17 -7
- package/dist/cjs/components/awards/DeleteAwardDiaolog.js +17 -7
- package/dist/cjs/components/dialog/ConfirmationDialog.js +1 -1
- package/dist/cjs/components/keywords/AddKeywordInline.js +17 -7
- package/dist/cjs/components/keywords/DeleteKeywordDialog.js +17 -7
- package/dist/cjs/components/modal-drawer/GenericDrawerGroup.js +2 -2
- package/dist/cjs/components/outline/DraggableTree.js +17 -7
- package/dist/cjs/components/outline/ManuscriptOutline.js +17 -7
- package/dist/cjs/components/references/BibliographyItemSource.js +17 -7
- package/dist/cjs/components/references/CitationEditor.js +17 -7
- package/dist/cjs/components/references/CitationViewer.js +17 -7
- package/dist/cjs/components/references/ImportBibliographyForm.js +17 -7
- package/dist/cjs/components/references/ImportBibliographyModal.js +17 -7
- package/dist/cjs/components/references/ReferenceForm/PersonDropDown.js +17 -7
- package/dist/cjs/components/references/ReferenceForm/ReferenceForm.js +17 -7
- package/dist/cjs/components/references/ReferenceSearch.js +17 -7
- package/dist/cjs/components/references/ReferenceSearchSection.js +17 -7
- package/dist/cjs/components/references/ReferencesEditor.js +17 -7
- package/dist/cjs/components/references/ReferencesModal.js +17 -7
- package/dist/cjs/components/references/SearchInput.js +17 -7
- package/dist/cjs/components/toolbar/InsertEmbedDialog.js +17 -7
- package/dist/cjs/components/toolbar/InsertTableDialog.js +17 -7
- package/dist/cjs/components/views/CrossReferenceItems.js +17 -7
- package/dist/cjs/components/views/DeleteEmbedDialog.js +17 -7
- package/dist/cjs/components/views/DeleteFootnoteDialog.js +17 -7
- package/dist/cjs/components/views/ExtLinkEditor.js +17 -7
- package/dist/cjs/components/views/FigureDropdown.js +17 -7
- package/dist/cjs/components/views/FootnotesSelector.js +17 -7
- package/dist/cjs/components/views/InsertSpecialCharacter.js +17 -7
- package/dist/cjs/components/views/LinkForm.js +17 -7
- package/dist/cjs/components/views/TableCellContextMenu.js +17 -7
- package/dist/cjs/keys/list.js +2 -2
- package/dist/cjs/lib/__tests__/helpers.test.js +17 -7
- package/dist/cjs/lib/files.js +2 -2
- package/dist/cjs/lib/placeholder.js +1 -2
- package/dist/cjs/lib/references.js +17 -7
- package/dist/cjs/lib/track-changes-utils.js +11 -11
- package/dist/cjs/lib/utils.js +2 -2
- package/dist/cjs/lib/view.js +17 -7
- package/dist/cjs/plugins/bibliography.js +17 -7
- package/dist/cjs/plugins/search-replace/lib.js +3 -4
- package/dist/cjs/plugins/section-category/section-category-utils.js +1 -2
- package/dist/cjs/plugins/section_title/autocompletion.js +2 -3
- package/dist/cjs/testing/polyfill-dom.js +1 -2
- package/dist/cjs/testing/setup-editor.js +2 -3
- package/dist/cjs/versions.js +1 -1
- package/dist/cjs/views/ReactSubView.js +1 -2
- package/dist/cjs/views/equation_editable.js +17 -7
- package/dist/cjs/views/image_element.js +18 -8
- package/dist/cjs/views/inline_equation_editable.js +17 -7
- package/dist/es/versions.js +1 -1
- package/dist/types/commands.d.ts +7 -7
- package/dist/types/components/ChangeHandlingForm.d.ts +1 -1
- package/dist/types/components/authors/useManageAffiliations.d.ts +0 -1
- package/dist/types/components/authors/useManageCredit.d.ts +0 -1
- package/dist/types/components/outline/Outline.d.ts +0 -1
- package/dist/types/components/references/ReferenceForm/PersonDropDown.d.ts +0 -1
- package/dist/types/components/references/ReferenceForm/styled-components.d.ts +17 -18
- package/dist/types/components/toolbar/ListMenuItem.d.ts +1 -1
- package/dist/types/components/toolbar/helpers.d.ts +1 -1
- package/dist/types/components/toolbar/type-selector/styles.d.ts +1 -94
- package/dist/types/lib/doc.d.ts +7 -1
- package/dist/types/lib/media.d.ts +4 -4
- package/dist/types/lib/position-menu.d.ts +4 -4
- package/dist/types/lib/utils.d.ts +3 -3
- package/dist/types/selection.d.ts +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/dist/types/views/accessibility_element.d.ts +1 -1
- package/dist/types/views/affiliations.d.ts +1 -1
- package/dist/types/views/alt_title.d.ts +1 -1
- package/dist/types/views/alt_titles_section.d.ts +1 -1
- package/dist/types/views/author_notes.d.ts +1 -1
- package/dist/types/views/award.d.ts +1 -1
- package/dist/types/views/awards.d.ts +1 -1
- package/dist/types/views/bibliography_element.d.ts +1 -1
- package/dist/types/views/blockquote_element_editable.d.ts +3 -3
- package/dist/types/views/box_element.d.ts +1 -1
- package/dist/types/views/citation.d.ts +1 -1
- package/dist/types/views/citation_editable.d.ts +1 -1
- package/dist/types/views/contributors.d.ts +1 -1
- package/dist/types/views/creators.d.ts +3 -3
- package/dist/types/views/cross_reference.d.ts +1 -1
- package/dist/types/views/cross_reference_editable.d.ts +1 -1
- package/dist/types/views/editable_block.d.ts +5 -4
- package/dist/types/views/embed.d.ts +4 -4
- package/dist/types/views/equation.d.ts +1 -1
- package/dist/types/views/equation_editable.d.ts +1 -1
- package/dist/types/views/equation_element.d.ts +1 -1
- package/dist/types/views/equation_element_editable.d.ts +4 -4
- package/dist/types/views/figure.d.ts +1 -1
- package/dist/types/views/figure_editable.d.ts +1 -1
- package/dist/types/views/figure_element.d.ts +1 -1
- package/dist/types/views/figure_element_editable.d.ts +4 -4
- package/dist/types/views/footnote.d.ts +1 -1
- package/dist/types/views/general_table_footnote.d.ts +1 -1
- package/dist/types/views/hero_image.d.ts +1 -1
- package/dist/types/views/hero_image_editable.d.ts +4 -4
- package/dist/types/views/image_element.d.ts +1 -1
- package/dist/types/views/image_element_editable.d.ts +4 -4
- package/dist/types/views/inline_equation.d.ts +1 -1
- package/dist/types/views/inline_equation_editable.d.ts +1 -1
- package/dist/types/views/inline_footnote.d.ts +1 -1
- package/dist/types/views/inline_footnote_editable.d.ts +1 -1
- package/dist/types/views/keyword.d.ts +1 -1
- package/dist/types/views/keyword_group.d.ts +1 -1
- package/dist/types/views/link.d.ts +1 -1
- package/dist/types/views/link_editable.d.ts +1 -1
- package/dist/types/views/list.d.ts +3 -3
- package/dist/types/views/paragraph_editable.d.ts +3 -3
- package/dist/types/views/placeholder.d.ts +1 -1
- package/dist/types/views/placeholder_element.d.ts +1 -1
- package/dist/types/views/placeholder_element_editable.d.ts +4 -4
- package/dist/types/views/pullquote_element_editable.d.ts +3 -3
- package/dist/types/views/quote_image_editable.d.ts +1 -1
- package/dist/types/views/section.d.ts +1 -1
- package/dist/types/views/section_label.d.ts +1 -1
- package/dist/types/views/section_title.d.ts +1 -1
- package/dist/types/views/section_title_editable.d.ts +4 -4
- package/dist/types/views/table_cell.d.ts +1 -1
- package/dist/types/views/table_element.d.ts +1 -1
- package/dist/types/views/table_element_editable.d.ts +4 -4
- package/dist/types/views/table_element_footer.d.ts +1 -1
- package/dist/types/views/title.d.ts +1 -1
- package/dist/types/views/title_editable.d.ts +1 -1
- package/package.json +16 -16
- package/dist/cjs/__mocks__/styleMock.js +0 -18
- package/dist/es/__mocks__/styleMock.js +0 -16
- package/dist/types/__mocks__/styleMock.d.ts +0 -17
|
@@ -34,5 +34,5 @@ export declare class FootnoteView extends BaseNodeView<Trackable<FootnoteNode>>
|
|
|
34
34
|
deleteInlineFootnotes: (tr: Transaction) => void;
|
|
35
35
|
deleteFootnote: (tr: Transaction) => void;
|
|
36
36
|
}
|
|
37
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
37
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<FootnoteView>;
|
|
38
38
|
export default _default;
|
|
@@ -26,5 +26,5 @@ export declare class GeneralTableFootnoteView extends BaseNodeView<Trackable<Gen
|
|
|
26
26
|
handleDeleteClick: () => void;
|
|
27
27
|
handleDelete: () => void;
|
|
28
28
|
}
|
|
29
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
29
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<GeneralTableFootnoteView>;
|
|
30
30
|
export default _default;
|
|
@@ -23,5 +23,5 @@ export declare class HeroImageView extends BlockView<Trackable<FigureElementNode
|
|
|
23
23
|
createElement: () => void;
|
|
24
24
|
createPanel(): HTMLDivElement;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
26
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<HeroImageView>;
|
|
27
27
|
export default _default;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { HeroImageView } from './hero_image';
|
|
17
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
17
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<{
|
|
18
18
|
gutterButtons(): HTMLElement[];
|
|
19
19
|
actionGutterButtons(): never[];
|
|
20
20
|
createAddButton(): HTMLAnchorElement | null;
|
|
@@ -30,13 +30,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
30
30
|
gutter: Record<string, HTMLElement>;
|
|
31
31
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
32
32
|
dom: HTMLElement;
|
|
33
|
-
contentDOM?: HTMLElement
|
|
33
|
+
contentDOM?: HTMLElement;
|
|
34
34
|
elementType: string;
|
|
35
35
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
36
36
|
node: import("prosemirror-model").Node;
|
|
37
|
-
readonly view: import("
|
|
37
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
38
38
|
readonly getPos: () => number;
|
|
39
|
-
update(newNode: import("
|
|
39
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
40
40
|
selectNode(): void;
|
|
41
41
|
deselectNode(): void;
|
|
42
42
|
destroy(): void;
|
|
@@ -40,5 +40,5 @@ export declare class ImageElementView extends BlockView<Trackable<ImageElementNo
|
|
|
40
40
|
private updateAllFiguresPosition;
|
|
41
41
|
private addExternalLinkedFileEditor;
|
|
42
42
|
}
|
|
43
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
43
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<ImageElementView>;
|
|
44
44
|
export default _default;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ImageElementView } from './image_element';
|
|
17
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
17
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<{
|
|
18
18
|
gutterButtons(): HTMLElement[];
|
|
19
19
|
actionGutterButtons(): never[];
|
|
20
20
|
createAddButton(): HTMLAnchorElement | null;
|
|
@@ -30,13 +30,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
30
30
|
gutter: Record<string, HTMLElement>;
|
|
31
31
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
32
32
|
dom: HTMLElement;
|
|
33
|
-
contentDOM?: HTMLElement
|
|
33
|
+
contentDOM?: HTMLElement;
|
|
34
34
|
elementType: string;
|
|
35
35
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
36
36
|
node: import("prosemirror-model").Node;
|
|
37
|
-
readonly view: import("
|
|
37
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
38
38
|
readonly getPos: () => number;
|
|
39
|
-
update(newNode: import("
|
|
39
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
40
40
|
selectNode(): void;
|
|
41
41
|
deselectNode(): void;
|
|
42
42
|
destroy(): void;
|
|
@@ -22,5 +22,5 @@ export declare class InlineEquationView extends BaseNodeView<Trackable<InlineEqu
|
|
|
22
22
|
ignoreMutation: () => boolean;
|
|
23
23
|
protected createDOM(): void;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
25
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<InlineEquationView>;
|
|
26
26
|
export default _default;
|
|
@@ -17,5 +17,5 @@ import { InlineEquationView } from './inline_equation';
|
|
|
17
17
|
export declare class InlineEquationEditableView extends InlineEquationView {
|
|
18
18
|
selectNode: () => Promise<void>;
|
|
19
19
|
}
|
|
20
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
20
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<InlineEquationEditableView>;
|
|
21
21
|
export default _default;
|
|
@@ -33,5 +33,5 @@ export declare class InlineFootnoteView extends BaseNodeView<Trackable<InlineFoo
|
|
|
33
33
|
handleAdd: () => void;
|
|
34
34
|
handleInsert: (footnotes: FootnoteNode[]) => void;
|
|
35
35
|
}
|
|
36
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
36
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<InlineFootnoteView>;
|
|
37
37
|
export default _default;
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { InlineFootnoteView } from './inline_footnote';
|
|
17
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
17
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<InlineFootnoteView>;
|
|
18
18
|
export default _default;
|
|
@@ -23,5 +23,5 @@ export declare class KeywordView extends BaseNodeView<Trackable<KeywordNode>> im
|
|
|
23
23
|
updateContents(): void;
|
|
24
24
|
private showConfirmationDialog;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
26
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<KeywordView>;
|
|
27
27
|
export default _default;
|
|
@@ -21,5 +21,5 @@ export declare class KeywordGroupView extends BlockView<KeywordGroupNode> {
|
|
|
21
21
|
ignoreMutation: () => boolean;
|
|
22
22
|
createElement: () => void;
|
|
23
23
|
}
|
|
24
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
24
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<KeywordGroupView>;
|
|
25
25
|
export default _default;
|
|
@@ -18,5 +18,5 @@ import { Trackable } from '../types';
|
|
|
18
18
|
import { BaseNodeView } from './base_node_view';
|
|
19
19
|
export declare class LinkView extends BaseNodeView<Trackable<LinkNode>> implements ManuscriptNodeView {
|
|
20
20
|
}
|
|
21
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
21
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<LinkView>;
|
|
22
22
|
export default _default;
|
|
@@ -31,5 +31,5 @@ export declare class LinkEditableView extends LinkView {
|
|
|
31
31
|
private removeLink;
|
|
32
32
|
private closeForm;
|
|
33
33
|
}
|
|
34
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
34
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<LinkEditableView>;
|
|
35
35
|
export default _default;
|
|
@@ -37,13 +37,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
37
37
|
gutter: Record<string, HTMLElement>;
|
|
38
38
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
39
39
|
dom: HTMLElement;
|
|
40
|
-
contentDOM?: HTMLElement
|
|
40
|
+
contentDOM?: HTMLElement;
|
|
41
41
|
elementType: string;
|
|
42
42
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
43
43
|
node: import("prosemirror-model").Node;
|
|
44
|
-
readonly view: import("
|
|
44
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
45
45
|
readonly getPos: () => number;
|
|
46
|
-
update(newNode:
|
|
46
|
+
update(newNode: ManuscriptNode): boolean;
|
|
47
47
|
selectNode(): void;
|
|
48
48
|
deselectNode(): void;
|
|
49
49
|
destroy(): void;
|
|
@@ -30,13 +30,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
30
30
|
gutter: Record<string, HTMLElement>;
|
|
31
31
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
32
32
|
dom: HTMLElement;
|
|
33
|
-
contentDOM?: HTMLElement
|
|
33
|
+
contentDOM?: HTMLElement;
|
|
34
34
|
elementType: string;
|
|
35
35
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
36
36
|
node: import("prosemirror-model").Node;
|
|
37
|
-
readonly view: import("
|
|
37
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
38
38
|
readonly getPos: () => number;
|
|
39
|
-
update(newNode: import("
|
|
39
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
40
40
|
selectNode(): void;
|
|
41
41
|
deselectNode(): void;
|
|
42
42
|
destroy(): void;
|
|
@@ -19,5 +19,5 @@ export declare class PlaceholderView extends BaseNodeView<PlaceholderNode> imple
|
|
|
19
19
|
ignoreMutation: () => boolean;
|
|
20
20
|
initialise: () => void;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
22
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<PlaceholderView>;
|
|
23
23
|
export default _default;
|
|
@@ -19,5 +19,5 @@ export declare class PlaceholderElementView extends BlockView<PlaceholderNode> {
|
|
|
19
19
|
private element;
|
|
20
20
|
createElement: () => void;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
22
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<PlaceholderElementView>;
|
|
23
23
|
export default _default;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { PlaceholderElementView } from './placeholder_element';
|
|
17
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
17
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<{
|
|
18
18
|
gutterButtons(): HTMLElement[];
|
|
19
19
|
actionGutterButtons(): never[];
|
|
20
20
|
createAddButton(): HTMLAnchorElement | null;
|
|
@@ -30,13 +30,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
30
30
|
gutter: Record<string, HTMLElement>;
|
|
31
31
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
32
32
|
dom: HTMLElement;
|
|
33
|
-
contentDOM?: HTMLElement
|
|
33
|
+
contentDOM?: HTMLElement;
|
|
34
34
|
elementType: string;
|
|
35
35
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
36
36
|
node: import("prosemirror-model").Node;
|
|
37
|
-
readonly view: import("
|
|
37
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
38
38
|
readonly getPos: () => number;
|
|
39
|
-
update(newNode: import("
|
|
39
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
40
40
|
selectNode(): void;
|
|
41
41
|
deselectNode(): void;
|
|
42
42
|
destroy(): void;
|
|
@@ -30,13 +30,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
30
30
|
gutter: Record<string, HTMLElement>;
|
|
31
31
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
32
32
|
dom: HTMLElement;
|
|
33
|
-
contentDOM?: HTMLElement
|
|
33
|
+
contentDOM?: HTMLElement;
|
|
34
34
|
elementType: string;
|
|
35
35
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
36
36
|
node: import("prosemirror-model").Node;
|
|
37
|
-
readonly view: import("
|
|
37
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
38
38
|
readonly getPos: () => number;
|
|
39
|
-
update(newNode: import("
|
|
39
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
40
40
|
selectNode(): void;
|
|
41
41
|
deselectNode(): void;
|
|
42
42
|
destroy(): void;
|
|
@@ -22,5 +22,5 @@ export declare class QuoteImageEditableView extends FigureEditableView {
|
|
|
22
22
|
updateContents(): void;
|
|
23
23
|
protected createPlaceholder: () => HTMLDivElement;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
25
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<QuoteImageEditableView>;
|
|
26
26
|
export default _default;
|
|
@@ -23,5 +23,5 @@ export declare class SectionView extends BlockView<SectionNode> {
|
|
|
23
23
|
updateContents(): void;
|
|
24
24
|
handleSectionNumbering(): void;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
26
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<SectionView>;
|
|
27
27
|
export default _default;
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import BlockView from './block_view';
|
|
17
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
17
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<BlockView<any>>;
|
|
18
18
|
export default _default;
|
|
@@ -22,5 +22,5 @@ export declare class SectionTitleView extends BlockView<SectionTitleNode> {
|
|
|
22
22
|
createElement: () => void;
|
|
23
23
|
updateContents(): void;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
25
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<SectionTitleView>;
|
|
26
26
|
export default _default;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { SectionTitleView } from './section_title';
|
|
17
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
17
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<{
|
|
18
18
|
gutterButtons(): HTMLElement[];
|
|
19
19
|
actionGutterButtons(): never[];
|
|
20
20
|
createAddButton(): HTMLAnchorElement | null;
|
|
@@ -30,13 +30,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
30
30
|
gutter: Record<string, HTMLElement>;
|
|
31
31
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
32
32
|
dom: HTMLElement;
|
|
33
|
-
contentDOM?: HTMLElement
|
|
33
|
+
contentDOM?: HTMLElement;
|
|
34
34
|
elementType: string;
|
|
35
35
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
36
36
|
node: import("prosemirror-model").Node;
|
|
37
|
-
readonly view: import("
|
|
37
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
38
38
|
readonly getPos: () => number;
|
|
39
|
-
update(newNode: import("
|
|
39
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
40
40
|
selectNode(): void;
|
|
41
41
|
deselectNode(): void;
|
|
42
42
|
destroy(): void;
|
|
@@ -25,5 +25,5 @@ export declare class TableCellView extends BlockView<ManuscriptNode> {
|
|
|
25
25
|
private toDom;
|
|
26
26
|
private addOutClickListener;
|
|
27
27
|
}
|
|
28
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
28
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<TableCellView>;
|
|
29
29
|
export default _default;
|
|
@@ -19,5 +19,5 @@ export declare class TableElementView extends BlockView<TableElementNode> {
|
|
|
19
19
|
elementType: string;
|
|
20
20
|
createElement: () => void;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
22
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<TableElementView>;
|
|
23
23
|
export default _default;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { TableElementView } from './table_element';
|
|
17
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
17
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<{
|
|
18
18
|
gutterButtons(): HTMLElement[];
|
|
19
19
|
actionGutterButtons(): never[];
|
|
20
20
|
createAddButton(): HTMLAnchorElement | null;
|
|
@@ -30,13 +30,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
30
30
|
gutter: Record<string, HTMLElement>;
|
|
31
31
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
32
32
|
dom: HTMLElement;
|
|
33
|
-
contentDOM?: HTMLElement
|
|
33
|
+
contentDOM?: HTMLElement;
|
|
34
34
|
elementType: string;
|
|
35
35
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
36
36
|
node: import("prosemirror-model").Node;
|
|
37
|
-
readonly view: import("
|
|
37
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
38
38
|
readonly getPos: () => number;
|
|
39
|
-
update(newNode: import("
|
|
39
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
40
40
|
selectNode(): void;
|
|
41
41
|
deselectNode(): void;
|
|
42
42
|
destroy(): void;
|
|
@@ -19,5 +19,5 @@ declare class TableElementFooterView extends BaseNodeView<TableElementFooterNode
|
|
|
19
19
|
initialise: () => void;
|
|
20
20
|
createDOM: () => void;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
22
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<TableElementFooterView>;
|
|
23
23
|
export default _default;
|
|
@@ -20,5 +20,5 @@ export declare class TitleView extends BaseNodeView<TitleNode> implements Manusc
|
|
|
20
20
|
initialise: () => void;
|
|
21
21
|
protected createDOM: () => void;
|
|
22
22
|
}
|
|
23
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
23
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<TitleView>;
|
|
24
24
|
export default _default;
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { TitleView } from './title';
|
|
17
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
17
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<TitleView>;
|
|
18
18
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/body-editor",
|
|
3
3
|
"description": "Prosemirror components for editing and viewing manuscripts",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.2",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"unlink-all": "rm pnpm-workspace.yaml && pnpm install"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@iarna/word-count": "1.1.2",
|
|
33
32
|
"@citation-js/core": "0.7.18",
|
|
34
33
|
"@citation-js/plugin-bibtex": "0.7.18",
|
|
35
34
|
"@citation-js/plugin-csl": "0.7.18",
|
|
@@ -37,10 +36,11 @@
|
|
|
37
36
|
"@citation-js/plugin-enw": "0.3.0",
|
|
38
37
|
"@citation-js/plugin-pubmed": "0.3.0",
|
|
39
38
|
"@citation-js/plugin-ris": "0.7.18",
|
|
39
|
+
"@iarna/word-count": "1.1.2",
|
|
40
40
|
"@manuscripts/json-schema": "2.2.12",
|
|
41
|
-
"@manuscripts/style-guide": "3.2.
|
|
42
|
-
"@manuscripts/track-changes-plugin": "2.0.
|
|
43
|
-
"@manuscripts/transform": "4.2.
|
|
41
|
+
"@manuscripts/style-guide": "3.2.1",
|
|
42
|
+
"@manuscripts/track-changes-plugin": "2.0.10",
|
|
43
|
+
"@manuscripts/transform": "4.2.12",
|
|
44
44
|
"@popperjs/core": "2.11.8",
|
|
45
45
|
"citeproc": "2.4.63",
|
|
46
46
|
"codemirror": "5.65.19",
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
"lodash": "4.17.21",
|
|
54
54
|
"mathjax": "3.2.2",
|
|
55
55
|
"oembed-providers": "1.0.20250430",
|
|
56
|
-
"prosemirror-commands": "1.7.1",
|
|
57
|
-
"prosemirror-history": "1.4.1",
|
|
58
|
-
"prosemirror-keymap": "1.2.3",
|
|
59
|
-
"prosemirror-model": "1.25.0",
|
|
60
|
-
"prosemirror-state": "1.4.3",
|
|
61
|
-
"prosemirror-view": "1.40.0",
|
|
62
56
|
"prosemirror-collab": "1.3.1",
|
|
57
|
+
"prosemirror-commands": "1.7.1",
|
|
63
58
|
"prosemirror-dropcursor": "1.8.2",
|
|
64
59
|
"prosemirror-gapcursor": "1.3.2",
|
|
60
|
+
"prosemirror-history": "1.4.1",
|
|
65
61
|
"prosemirror-inputrules": "1.5.0",
|
|
62
|
+
"prosemirror-keymap": "1.2.3",
|
|
63
|
+
"prosemirror-model": "1.25.0",
|
|
66
64
|
"prosemirror-schema-list": "1.5.1",
|
|
65
|
+
"prosemirror-state": "1.4.3",
|
|
67
66
|
"prosemirror-tables": "1.7.1",
|
|
68
67
|
"prosemirror-transform": "1.10.4",
|
|
69
68
|
"prosemirror-utils": "1.2.2",
|
|
69
|
+
"prosemirror-view": "1.40.0",
|
|
70
70
|
"react": "18.3.1",
|
|
71
71
|
"react-dnd": "16.0.1",
|
|
72
72
|
"react-dnd-html5-backend": "16.0.1",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@manuscripts/eslint-config": "0.5.1",
|
|
85
85
|
"@types/codemirror": "5.60.15",
|
|
86
86
|
"@types/csl": "npm:csl-json@0.1.0",
|
|
87
|
-
"@types/jest": "
|
|
87
|
+
"@types/jest": "30.0.0",
|
|
88
88
|
"@types/lodash": "4.17.16",
|
|
89
89
|
"@types/node": "20.17.46",
|
|
90
90
|
"@types/react": "18.3.21",
|
|
@@ -108,14 +108,14 @@
|
|
|
108
108
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
109
109
|
"eslint-plugin-simple-import-sort": "8.0.0",
|
|
110
110
|
"husky": "8.0.3",
|
|
111
|
-
"jest": "
|
|
112
|
-
"jest-environment-jsdom": "
|
|
113
|
-
"jest-prosemirror": "
|
|
111
|
+
"jest": "30.0.5",
|
|
112
|
+
"jest-environment-jsdom": "30.0.5",
|
|
113
|
+
"jest-prosemirror": "3.0.1",
|
|
114
114
|
"npm-run-all": "4.1.5",
|
|
115
115
|
"prettier": "2.8.8",
|
|
116
116
|
"regenerator-runtime": "0.14.1",
|
|
117
117
|
"rimraf": "6.0.1",
|
|
118
|
-
"typescript": "
|
|
118
|
+
"typescript": "5.9.2",
|
|
119
119
|
"uuid": "9.0.1"
|
|
120
120
|
},
|
|
121
121
|
"engines": {
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* © 2019 Atypon Systems LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.default = {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export default {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © 2019 Atypon Systems LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
declare const _default: {};
|
|
17
|
-
export default _default;
|