@manuscripts/body-editor 2.0.45-LEAN-3931.0 → 2.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/cjs/configs/editor-views.js +1 -1
  2. package/dist/cjs/lib/math.js +2 -29
  3. package/dist/cjs/versions.js +1 -1
  4. package/dist/cjs/views/ReactSubView.js +3 -2
  5. package/dist/cjs/views/bibliography_element.js +1 -0
  6. package/dist/cjs/views/cross_reference.js +1 -2
  7. package/dist/cjs/views/cross_reference_editable.js +1 -2
  8. package/dist/cjs/views/figure_element.js +1 -1
  9. package/dist/cjs/views/inline_footnote.js +3 -1
  10. package/dist/es/configs/editor-views.js +1 -1
  11. package/dist/es/lib/math.js +2 -29
  12. package/dist/es/versions.js +1 -1
  13. package/dist/es/views/ReactSubView.js +3 -2
  14. package/dist/es/views/bibliography_element.js +2 -1
  15. package/dist/es/views/cross_reference.js +1 -2
  16. package/dist/es/views/cross_reference_editable.js +1 -2
  17. package/dist/es/views/editable_block.js +1 -1
  18. package/dist/es/views/figure_element.js +1 -1
  19. package/dist/es/views/inline_footnote.js +3 -1
  20. package/dist/types/configs/ManuscriptsEditor.d.ts +2 -1
  21. package/dist/types/configs/editor-views.d.ts +45 -50
  22. package/dist/types/lib/context-menu.d.ts +2 -2
  23. package/dist/types/types.d.ts +3 -0
  24. package/dist/types/versions.d.ts +1 -1
  25. package/dist/types/views/ReactSubView.d.ts +5 -4
  26. package/dist/types/views/affiliations.d.ts +3 -2
  27. package/dist/types/views/author_notes.d.ts +3 -3
  28. package/dist/types/views/base_node_view.d.ts +5 -5
  29. package/dist/types/views/bibliography_element.d.ts +4 -3
  30. package/dist/types/views/bibliography_element_editable.d.ts +3 -3
  31. package/dist/types/views/block_view.d.ts +3 -3
  32. package/dist/types/views/blockquote_element.d.ts +3 -3
  33. package/dist/types/views/blockquote_element_editable.d.ts +3 -3
  34. package/dist/types/views/bullet_list.d.ts +4 -4
  35. package/dist/types/views/bullet_list_editable.d.ts +3 -3
  36. package/dist/types/views/citation.d.ts +5 -4
  37. package/dist/types/views/citation_editable.d.ts +2 -3
  38. package/dist/types/views/contributors.d.ts +3 -2
  39. package/dist/types/views/creators.d.ts +4 -4
  40. package/dist/types/views/cross_reference.d.ts +4 -3
  41. package/dist/types/views/cross_reference_editable.d.ts +3 -4
  42. package/dist/types/views/editable_block.d.ts +2 -11
  43. package/dist/types/views/equation.d.ts +4 -4
  44. package/dist/types/views/equation_editable.d.ts +2 -3
  45. package/dist/types/views/equation_element.d.ts +4 -3
  46. package/dist/types/views/equation_element_editable.d.ts +3 -3
  47. package/dist/types/views/figure.d.ts +5 -4
  48. package/dist/types/views/figure_editable.d.ts +2 -11
  49. package/dist/types/views/figure_element.d.ts +3 -7
  50. package/dist/types/views/figure_element_editable.d.ts +2 -2
  51. package/dist/types/views/footnote.d.ts +3 -4
  52. package/dist/types/views/footnote_editable.d.ts +3 -3
  53. package/dist/types/views/footnotes_element.d.ts +3 -3
  54. package/dist/types/views/footnotes_element_editable.d.ts +3 -3
  55. package/dist/types/views/inline_equation.d.ts +4 -4
  56. package/dist/types/views/inline_equation_editable.d.ts +2 -3
  57. package/dist/types/views/inline_footnote.d.ts +4 -4
  58. package/dist/types/views/inline_footnote_editable.d.ts +1 -1
  59. package/dist/types/views/keyword.d.ts +3 -3
  60. package/dist/types/views/keyword_group.d.ts +2 -2
  61. package/dist/types/views/link.d.ts +5 -4
  62. package/dist/types/views/link_editable.d.ts +2 -3
  63. package/dist/types/views/list.d.ts +6 -6
  64. package/dist/types/views/list_item.d.ts +3 -4
  65. package/dist/types/views/ordered_list.d.ts +4 -4
  66. package/dist/types/views/ordered_list_editable.d.ts +3 -3
  67. package/dist/types/views/paragraph.d.ts +3 -3
  68. package/dist/types/views/paragraph_editable.d.ts +3 -3
  69. package/dist/types/views/placeholder.d.ts +4 -4
  70. package/dist/types/views/placeholder_element.d.ts +3 -3
  71. package/dist/types/views/placeholder_element_editable.d.ts +3 -3
  72. package/dist/types/views/pullquote_element.d.ts +3 -3
  73. package/dist/types/views/pullquote_element_editable.d.ts +3 -3
  74. package/dist/types/views/section.d.ts +3 -3
  75. package/dist/types/views/section_title.d.ts +3 -3
  76. package/dist/types/views/section_title_editable.d.ts +3 -3
  77. package/dist/types/views/table_cell.d.ts +2 -2
  78. package/dist/types/views/table_element.d.ts +2 -3
  79. package/dist/types/views/table_element_editable.d.ts +2 -2
  80. package/dist/types/views/table_element_footer.d.ts +4 -4
  81. package/dist/types/views/table_element_footer_editable.d.ts +1 -1
  82. package/dist/types/views/title.d.ts +4 -4
  83. package/dist/types/views/title_editable.d.ts +1 -1
  84. package/dist/types/views/toc_element.d.ts +3 -3
  85. package/dist/types/views/toc_element_editable.d.ts +3 -3
  86. package/package.json +3 -3
@@ -13,10 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { EditableBlockProps } from './editable_block';
17
16
  import { InlineEquationView } from './inline_equation';
18
- export declare class InlineEquationEditableView extends InlineEquationView<EditableBlockProps> {
17
+ export declare class InlineEquationEditableView extends InlineEquationView {
19
18
  selectNode: () => Promise<void>;
20
19
  }
21
- declare const _default: (props: EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<InlineEquationEditableView>;
20
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<InlineEquationEditableView>;
22
21
  export default _default;
@@ -13,18 +13,18 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ManuscriptNodeView } from '@manuscripts/transform';
16
+ import { InlineFootnoteNode, ManuscriptNodeView } from '@manuscripts/transform';
17
17
  import { History } from 'history';
18
18
  import { ContentNodeWithPos } from 'prosemirror-utils';
19
19
  import { FootnotesSelector } from '../components/views/FootnotesSelector';
20
20
  import { FootnoteWithIndex } from '../lib/footnotes';
21
+ import { Trackable } from '../types';
21
22
  import { BaseNodeProps, BaseNodeView } from './base_node_view';
22
- import { EditableBlockProps } from './editable_block';
23
23
  export interface InlineFootnoteProps extends BaseNodeProps {
24
24
  history: History;
25
25
  }
26
26
  type ModalProps = Exclude<(typeof FootnotesSelector)['defaultProps'], undefined>;
27
- export declare class InlineFootnoteView<PropsType extends InlineFootnoteProps & EditableBlockProps> extends BaseNodeView<PropsType> implements ManuscriptNodeView {
27
+ export declare class InlineFootnoteView extends BaseNodeView<Trackable<InlineFootnoteNode>> implements ManuscriptNodeView {
28
28
  protected popperContainer: HTMLDivElement;
29
29
  isSelected(): boolean;
30
30
  findParentTableElement: () => ContentNodeWithPos | undefined;
@@ -42,5 +42,5 @@ export declare class InlineFootnoteView<PropsType extends InlineFootnoteProps &
42
42
  onAdd: () => void;
43
43
  onInsert: (notes: FootnoteWithIndex[]) => void;
44
44
  }
45
- declare const _default: (props: BaseNodeProps, dispatch?: import("../commands").Dispatch | undefined) => import("../types").NodeViewCreator<InlineFootnoteView<any>>;
45
+ declare const _default: (props: BaseNodeProps, dispatch?: import("../commands").Dispatch | undefined) => import("../types").NodeViewCreator<InlineFootnoteView>;
46
46
  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("./editable_block").EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<InlineFootnoteView<any>>;
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<InlineFootnoteView>;
18
18
  export default _default;
@@ -13,10 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ManuscriptNodeView } from '@manuscripts/transform';
16
+ import { KeywordNode, ManuscriptNodeView } from '@manuscripts/transform';
17
17
  import { BaseNodeView } from './base_node_view';
18
- import { EditableBlockProps } from './editable_block';
19
- export declare class KeywordView extends BaseNodeView<EditableBlockProps> implements ManuscriptNodeView {
18
+ import { Trackable } from '../types';
19
+ export declare class KeywordView extends BaseNodeView<Trackable<KeywordNode>> implements ManuscriptNodeView {
20
20
  private dialog;
21
21
  initialise: () => void;
22
22
  createDOM: () => void;
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { KeywordGroupNode } from '@manuscripts/transform';
16
17
  import BlockView from './block_view';
17
- import { EditableBlockProps } from './editable_block';
18
- export declare class KeywordGroupView extends BlockView<EditableBlockProps> {
18
+ export declare class KeywordGroupView extends BlockView<KeywordGroupNode> {
19
19
  private element;
20
20
  private addingTools;
21
21
  ignoreMutation: () => boolean;
@@ -13,9 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ManuscriptNodeView } from '@manuscripts/transform';
17
- import { BaseNodeProps, BaseNodeView } from './base_node_view';
18
- export declare class LinkView<PropsType extends BaseNodeProps> extends BaseNodeView<PropsType> implements ManuscriptNodeView {
16
+ import { LinkNode, ManuscriptNodeView } from '@manuscripts/transform';
17
+ import { BaseNodeView } from './base_node_view';
18
+ import { Trackable } from '../types';
19
+ export declare class LinkView extends BaseNodeView<Trackable<LinkNode>> implements ManuscriptNodeView {
19
20
  }
20
- declare const _default: (props: BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<LinkView<any>>;
21
+ declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<LinkView>;
21
22
  export default _default;
@@ -13,9 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { EditableBlockProps } from './editable_block';
17
16
  import { LinkView } from './link';
18
- export declare class LinkEditableView extends LinkView<EditableBlockProps> {
17
+ export declare class LinkEditableView extends LinkView {
19
18
  protected popperContainer: HTMLDivElement;
20
19
  ignoreMutation: () => boolean;
21
20
  initialise: () => void;
@@ -32,5 +31,5 @@ export declare class LinkEditableView extends LinkView<EditableBlockProps> {
32
31
  private removeLink;
33
32
  private closeForm;
34
33
  }
35
- declare const _default: (props: EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<LinkEditableView>;
34
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<LinkEditableView>;
36
35
  export default _default;
@@ -13,15 +13,15 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ManuscriptNode } from '@manuscripts/transform';
17
- import { BaseNodeProps } from './base_node_view';
16
+ import { ListNode, ManuscriptNode } from '@manuscripts/transform';
18
17
  import BlockView from './block_view';
19
- export declare class ListView<PropsType extends BaseNodeProps> extends BlockView<PropsType> {
18
+ import { Trackable } from '../types';
19
+ export declare class ListView extends BlockView<Trackable<ListNode>> {
20
20
  elementType: string;
21
21
  updateContents: () => void;
22
22
  }
23
23
  export declare const listCallback: (node: ManuscriptNode, dom: HTMLElement) => void;
24
- declare const _default: (props: BaseNodeProps) => import("../types").NodeViewCreator<{
24
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps) => import("../types").NodeViewCreator<{
25
25
  gutterButtons: () => HTMLElement[];
26
26
  actionGutterButtons: () => HTMLElement[];
27
27
  createAddButton: () => HTMLElement | null;
@@ -44,7 +44,7 @@ declare const _default: (props: BaseNodeProps) => import("../types").NodeViewCre
44
44
  contentDOM?: HTMLElement | undefined;
45
45
  syncErrors: import("../types").SyncError[];
46
46
  elementType: string;
47
- readonly props: import("./editable_block").EditableBlockProps;
47
+ readonly props: import("../configs/ManuscriptsEditor").EditorProps;
48
48
  node: import("prosemirror-model").Node;
49
49
  readonly view: import("prosemirror-view").EditorView;
50
50
  readonly getPos: () => number;
@@ -55,5 +55,5 @@ declare const _default: (props: BaseNodeProps) => import("../types").NodeViewCre
55
55
  deselectNode: () => void;
56
56
  destroy: () => void;
57
57
  handleDecorations: (decorations: readonly import("prosemirror-view").Decoration[]) => void;
58
- } & ListView<any>>;
58
+ } & ListView>;
59
59
  export default _default;
@@ -13,12 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ManuscriptNode } from '@manuscripts/transform';
17
- import { BaseNodeProps } from './base_node_view';
16
+ import { ListItemNode, ManuscriptNode } from '@manuscripts/transform';
18
17
  import BlockView from './block_view';
19
- export declare class ListItemView<PropsType extends BaseNodeProps> extends BlockView<PropsType> {
18
+ export declare class ListItemView extends BlockView<ListItemNode> {
20
19
  elementType: string;
21
20
  }
22
21
  export declare const listItemCallback: (node: ManuscriptNode, dom: HTMLElement) => void;
23
- declare const _default: (props: BaseNodeProps) => import("../types").NodeViewCreator<ListItemView<any>>;
22
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps) => import("../types").NodeViewCreator<ListItemView>;
24
23
  export default _default;
@@ -14,17 +14,17 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ListElement } from '@manuscripts/json-schema';
17
- import { ManuscriptNode } from '@manuscripts/transform';
18
- import { BaseNodeProps } from './base_node_view';
17
+ import { ListNode, ManuscriptNode } from '@manuscripts/transform';
19
18
  import BlockView from './block_view';
19
+ import { Trackable } from '../types';
20
20
  export type JatsStyleType = NonNullable<ListElement['listStyleType']>;
21
21
  export declare const JATS_HTML_LIST_STYLE_MAPPING: {
22
22
  [key in JatsStyleType]: string;
23
23
  };
24
- export declare class OrderedListView<PropsType extends BaseNodeProps> extends BlockView<PropsType> {
24
+ export declare class OrderedListView extends BlockView<Trackable<ListNode>> {
25
25
  elementType: string;
26
26
  updateContents: () => void;
27
27
  }
28
28
  export declare const orderedListCallback: (node: ManuscriptNode, dom: HTMLElement) => void;
29
- declare const _default: (props: BaseNodeProps) => import("../types").NodeViewCreator<OrderedListView<any>>;
29
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps) => import("../types").NodeViewCreator<OrderedListView>;
30
30
  export default _default;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { OrderedListView } from './ordered_list';
17
- declare const _default: (props: import("./base_node_view").BaseNodeProps) => import("../types").NodeViewCreator<{
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps) => import("../types").NodeViewCreator<{
18
18
  gutterButtons: () => HTMLElement[];
19
19
  actionGutterButtons: () => HTMLElement[];
20
20
  createAddButton: () => HTMLElement | null;
@@ -37,7 +37,7 @@ declare const _default: (props: import("./base_node_view").BaseNodeProps) => imp
37
37
  contentDOM?: HTMLElement | undefined;
38
38
  syncErrors: import("../types").SyncError[];
39
39
  elementType: string;
40
- readonly props: import("./editable_block").EditableBlockProps;
40
+ readonly props: import("../configs/ManuscriptsEditor").EditorProps;
41
41
  node: import("prosemirror-model").Node;
42
42
  readonly view: import("prosemirror-view").EditorView;
43
43
  readonly getPos: () => number;
@@ -48,5 +48,5 @@ declare const _default: (props: import("./base_node_view").BaseNodeProps) => imp
48
48
  deselectNode: () => void;
49
49
  destroy: () => void;
50
50
  handleDecorations: (decorations: readonly import("prosemirror-view").Decoration[]) => void;
51
- } & OrderedListView<any>>;
51
+ } & OrderedListView>;
52
52
  export default _default;
@@ -13,10 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { BaseNodeProps } from './base_node_view';
16
+ import { ParagraphNode } from '@manuscripts/transform';
17
17
  import BlockView from './block_view';
18
- export declare class ParagraphView<PropsType extends BaseNodeProps> extends BlockView<PropsType> {
18
+ export declare class ParagraphView extends BlockView<ParagraphNode> {
19
19
  elementType: string;
20
20
  }
21
- declare const _default: (props: BaseNodeProps) => import("../types").NodeViewCreator<ParagraphView<any>>;
21
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps) => import("../types").NodeViewCreator<ParagraphView>;
22
22
  export default _default;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ParagraphView } from './paragraph';
17
- declare const _default: (props: import("./base_node_view").BaseNodeProps) => import("../types").NodeViewCreator<{
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps) => import("../types").NodeViewCreator<{
18
18
  gutterButtons: () => HTMLElement[];
19
19
  actionGutterButtons: () => HTMLElement[];
20
20
  createAddButton: () => HTMLElement | null;
@@ -37,7 +37,7 @@ declare const _default: (props: import("./base_node_view").BaseNodeProps) => imp
37
37
  contentDOM?: HTMLElement | undefined;
38
38
  syncErrors: import("../types").SyncError[];
39
39
  elementType: string;
40
- readonly props: import("./editable_block").EditableBlockProps;
40
+ readonly props: import("../configs/ManuscriptsEditor").EditorProps;
41
41
  node: import("prosemirror-model").Node;
42
42
  readonly view: import("prosemirror-view").EditorView;
43
43
  readonly getPos: () => number;
@@ -48,5 +48,5 @@ declare const _default: (props: import("./base_node_view").BaseNodeProps) => imp
48
48
  deselectNode: () => void;
49
49
  destroy: () => void;
50
50
  handleDecorations: (decorations: readonly import("prosemirror-view").Decoration[]) => void;
51
- } & ParagraphView<any>>;
51
+ } & ParagraphView>;
52
52
  export default _default;
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ManuscriptNodeView } from '@manuscripts/transform';
17
- import { BaseNodeProps, BaseNodeView } from './base_node_view';
18
- export declare class PlaceholderView<PropsType extends BaseNodeProps> extends BaseNodeView<PropsType> implements ManuscriptNodeView {
16
+ import { ManuscriptNodeView, PlaceholderNode } from '@manuscripts/transform';
17
+ import { BaseNodeView } from './base_node_view';
18
+ export declare class PlaceholderView extends BaseNodeView<PlaceholderNode> implements ManuscriptNodeView {
19
19
  ignoreMutation: () => boolean;
20
20
  initialise: () => void;
21
21
  }
22
- declare const _default: (props: BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<PlaceholderView<any>>;
22
+ declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<PlaceholderView>;
23
23
  export default _default;
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { BaseNodeProps } from './base_node_view';
16
+ import { PlaceholderNode } from '@manuscripts/transform';
17
17
  import BlockView from './block_view';
18
- export declare class PlaceholderElementView<PropsType extends BaseNodeProps> extends BlockView<PropsType> {
18
+ export declare class PlaceholderElementView extends BlockView<PlaceholderNode> {
19
19
  private element;
20
20
  createElement: () => void;
21
21
  }
22
- declare const _default: (props: BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<PlaceholderElementView<any>>;
22
+ declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => 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("./editable_block").EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<{
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<{
18
18
  gutterButtons: () => HTMLElement[];
19
19
  actionGutterButtons: () => HTMLElement[];
20
20
  createAddButton: () => HTMLElement | null;
@@ -37,7 +37,7 @@ declare const _default: (props: import("./editable_block").EditableBlockProps, d
37
37
  contentDOM?: HTMLElement | undefined;
38
38
  syncErrors: import("../types").SyncError[];
39
39
  elementType: string;
40
- readonly props: import("./editable_block").EditableBlockProps;
40
+ readonly props: import("../configs/ManuscriptsEditor").EditorProps;
41
41
  node: import("prosemirror-model").Node;
42
42
  readonly view: import("prosemirror-view").EditorView;
43
43
  readonly getPos: () => number;
@@ -48,5 +48,5 @@ declare const _default: (props: import("./editable_block").EditableBlockProps, d
48
48
  deselectNode: () => void;
49
49
  destroy: () => void;
50
50
  handleDecorations: (decorations: readonly import("prosemirror-view").Decoration[]) => void;
51
- } & PlaceholderElementView<any>>;
51
+ } & PlaceholderElementView>;
52
52
  export default _default;
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { BaseNodeProps } from './base_node_view';
16
+ import { PullquoteElementNode } from '@manuscripts/transform';
17
17
  import BlockView from './block_view';
18
- export declare class PullquoteElementView<PropsType extends BaseNodeProps> extends BlockView<PropsType> {
18
+ export declare class PullquoteElementView extends BlockView<PullquoteElementNode> {
19
19
  elementType: string;
20
20
  createElement: () => void;
21
21
  }
22
- declare const _default: (props: BaseNodeProps) => import("../types").NodeViewCreator<PullquoteElementView<any>>;
22
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps) => import("../types").NodeViewCreator<PullquoteElementView>;
23
23
  export default _default;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { PullquoteElementView } from './pullquote_element';
17
- declare const _default: (props: import("./base_node_view").BaseNodeProps) => import("../types").NodeViewCreator<{
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps) => import("../types").NodeViewCreator<{
18
18
  gutterButtons: () => HTMLElement[];
19
19
  actionGutterButtons: () => HTMLElement[];
20
20
  createAddButton: () => HTMLElement | null;
@@ -37,7 +37,7 @@ declare const _default: (props: import("./base_node_view").BaseNodeProps) => imp
37
37
  contentDOM?: HTMLElement | undefined;
38
38
  syncErrors: import("../types").SyncError[];
39
39
  elementType: string;
40
- readonly props: import("./editable_block").EditableBlockProps;
40
+ readonly props: import("../configs/ManuscriptsEditor").EditorProps;
41
41
  node: import("prosemirror-model").Node;
42
42
  readonly view: import("prosemirror-view").EditorView;
43
43
  readonly getPos: () => number;
@@ -48,5 +48,5 @@ declare const _default: (props: import("./base_node_view").BaseNodeProps) => imp
48
48
  deselectNode: () => void;
49
49
  destroy: () => void;
50
50
  handleDecorations: (decorations: readonly import("prosemirror-view").Decoration[]) => void;
51
- } & PullquoteElementView<any>>;
51
+ } & PullquoteElementView>;
52
52
  export default _default;
@@ -13,16 +13,16 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { SectionNode } from '@manuscripts/transform';
16
17
  import { PluginState } from '../plugins/section_title';
17
- import { BaseNodeProps } from './base_node_view';
18
18
  import BlockView from './block_view';
19
19
  export declare const handleSectionNumbering: (sections: PluginState) => void;
20
- export declare class SectionView<PropsType extends BaseNodeProps> extends BlockView<PropsType> {
20
+ export declare class SectionView extends BlockView<SectionNode> {
21
21
  elementType: string;
22
22
  element: HTMLElement;
23
23
  initialise: () => void;
24
24
  createElement: () => void;
25
25
  onUpdateContent: () => void;
26
26
  }
27
- declare const _default: (props: BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<SectionView<any>>;
27
+ declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<SectionView>;
28
28
  export default _default;
@@ -13,12 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { BaseNodeProps } from './base_node_view';
16
+ import { SectionTitleNode } from '@manuscripts/transform';
17
17
  import BlockView from './block_view';
18
- export declare class SectionTitleView<PropsType extends BaseNodeProps> extends BlockView<PropsType> {
18
+ export declare class SectionTitleView extends BlockView<SectionTitleNode> {
19
19
  contentDOM: HTMLElement;
20
20
  elementType: string;
21
21
  onUpdateContent: () => void;
22
22
  }
23
- declare const _default: (props: BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<SectionTitleView<any>>;
23
+ declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<SectionTitleView>;
24
24
  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("./editable_block").EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<{
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<{
18
18
  gutterButtons: () => HTMLElement[];
19
19
  actionGutterButtons: () => HTMLElement[];
20
20
  createAddButton: () => HTMLElement | null;
@@ -37,7 +37,7 @@ declare const _default: (props: import("./editable_block").EditableBlockProps, d
37
37
  contentDOM?: HTMLElement | undefined;
38
38
  syncErrors: import("../types").SyncError[];
39
39
  elementType: string;
40
- readonly props: import("./editable_block").EditableBlockProps;
40
+ readonly props: import("../configs/ManuscriptsEditor").EditorProps;
41
41
  node: import("prosemirror-model").Node;
42
42
  readonly view: import("prosemirror-view").EditorView;
43
43
  readonly getPos: () => number;
@@ -48,5 +48,5 @@ declare const _default: (props: import("./editable_block").EditableBlockProps, d
48
48
  deselectNode: () => void;
49
49
  destroy: () => void;
50
50
  handleDecorations: (decorations: readonly import("prosemirror-view").Decoration[]) => void;
51
- } & SectionTitleView<any>>;
51
+ } & SectionTitleView>;
52
52
  export default _default;
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { ManuscriptNode } from '@manuscripts/transform';
16
17
  import BlockView from './block_view';
17
- import { EditableBlockProps } from './editable_block';
18
- export declare class TableCellView extends BlockView<EditableBlockProps> {
18
+ export declare class TableCellView extends BlockView<ManuscriptNode> {
19
19
  contentDOM: HTMLElement;
20
20
  ignoreMutation(mutation: MutationRecord): boolean;
21
21
  initialise: () => void;
@@ -13,10 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { TableElementNode } from '@manuscripts/transform';
16
17
  import BlockView from './block_view';
17
- import { EditableBlockProps } from './editable_block';
18
- import { FigureProps } from './figure_editable';
19
- export declare class TableElementView extends BlockView<EditableBlockProps & FigureProps> {
18
+ export declare class TableElementView extends BlockView<TableElementNode> {
20
19
  elementType: string;
21
20
  createElement: () => void;
22
21
  updateContents: () => void;
@@ -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("./editable_block").EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<{
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<{
18
18
  gutterButtons: () => HTMLElement[];
19
19
  actionGutterButtons: () => HTMLElement[];
20
20
  createAddButton: () => HTMLElement | null;
@@ -37,7 +37,7 @@ declare const _default: (props: import("./editable_block").EditableBlockProps, d
37
37
  contentDOM?: HTMLElement | undefined;
38
38
  syncErrors: import("../types").SyncError[];
39
39
  elementType: string;
40
- readonly props: import("./editable_block").EditableBlockProps;
40
+ readonly props: import("../configs/ManuscriptsEditor").EditorProps;
41
41
  node: import("prosemirror-model").Node;
42
42
  readonly view: import("prosemirror-view").EditorView;
43
43
  readonly getPos: () => number;
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ManuscriptNodeView } from '@manuscripts/transform';
17
- import { BaseNodeProps, BaseNodeView } from './base_node_view';
18
- export declare class TableElementFooterView<PropsType extends BaseNodeProps> extends BaseNodeView<PropsType> implements ManuscriptNodeView {
16
+ import { ManuscriptNodeView, TableElementFooterNode } from '@manuscripts/transform';
17
+ import { BaseNodeView } from './base_node_view';
18
+ export declare class TableElementFooterView extends BaseNodeView<TableElementFooterNode> implements ManuscriptNodeView {
19
19
  initialise: () => void;
20
20
  createDOM: () => void;
21
21
  }
22
- declare const _default: (props: BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TableElementFooterView<any>>;
22
+ declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TableElementFooterView>;
23
23
  export default _default;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { TableElementFooterView } from './table_element_footer';
17
- declare const _default: (props: import("./editable_block").EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TableElementFooterView<any>>;
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TableElementFooterView>;
18
18
  export default _default;
@@ -13,12 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ManuscriptNodeView } from '@manuscripts/transform';
17
- import { BaseNodeProps, BaseNodeView } from './base_node_view';
18
- export declare class TitleView<PropsType extends BaseNodeProps> extends BaseNodeView<PropsType> implements ManuscriptNodeView {
16
+ import { ManuscriptNodeView, TitleNode } from '@manuscripts/transform';
17
+ import { BaseNodeView } from './base_node_view';
18
+ export declare class TitleView extends BaseNodeView<TitleNode> implements ManuscriptNodeView {
19
19
  contentDOM: HTMLElement;
20
20
  initialise: () => void;
21
21
  protected createDOM: () => void;
22
22
  }
23
- declare const _default: (props: BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TitleView<any>>;
23
+ declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => 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("./editable_block").EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TitleView<any>>;
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TitleView>;
18
18
  export default _default;
@@ -13,14 +13,14 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { BaseNodeProps } from './base_node_view';
16
+ import { TOCElementNode } from '@manuscripts/transform';
17
17
  import BlockView from './block_view';
18
- export declare class TOCElementView<PropsType extends BaseNodeProps> extends BlockView<PropsType> {
18
+ export declare class TOCElementView extends BlockView<TOCElementNode> {
19
19
  private element;
20
20
  ignoreMutation: () => boolean;
21
21
  stopEvent: () => boolean;
22
22
  updateContents: () => void;
23
23
  createElement: () => void;
24
24
  }
25
- declare const _default: (props: BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TOCElementView<any>>;
25
+ declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TOCElementView>;
26
26
  export default _default;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { TOCElementView } from './toc_element';
17
- declare const _default: (props: import("./editable_block").EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<{
17
+ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<{
18
18
  gutterButtons: () => HTMLElement[];
19
19
  actionGutterButtons: () => HTMLElement[];
20
20
  createAddButton: () => HTMLElement | null;
@@ -37,7 +37,7 @@ declare const _default: (props: import("./editable_block").EditableBlockProps, d
37
37
  contentDOM?: HTMLElement | undefined;
38
38
  syncErrors: import("../types").SyncError[];
39
39
  elementType: string;
40
- readonly props: import("./editable_block").EditableBlockProps;
40
+ readonly props: import("../configs/ManuscriptsEditor").EditorProps;
41
41
  node: import("prosemirror-model").Node;
42
42
  readonly view: import("prosemirror-view").EditorView;
43
43
  readonly getPos: () => number;
@@ -48,5 +48,5 @@ declare const _default: (props: import("./editable_block").EditableBlockProps, d
48
48
  deselectNode: () => void;
49
49
  destroy: () => void;
50
50
  handleDecorations: (decorations: readonly import("prosemirror-view").Decoration[]) => void;
51
- } & TOCElementView<any>>;
51
+ } & TOCElementView>;
52
52
  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": "2.0.45-LEAN-3931.0",
4
+ "version": "2.0.45",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -34,7 +34,7 @@
34
34
  "@manuscripts/library": "1.3.11",
35
35
  "@manuscripts/style-guide": "2.0.19",
36
36
  "@manuscripts/track-changes-plugin": "1.7.17",
37
- "@manuscripts/transform": "2.3.31",
37
+ "@manuscripts/transform": "2.3.32",
38
38
  "@popperjs/core": "^2.11.8",
39
39
  "astrocite-eutils": "^0.16.4",
40
40
  "codemirror": "^5.58.1",
@@ -116,4 +116,4 @@
116
116
  "engines": {
117
117
  "node": ">=20.16.0"
118
118
  }
119
- }
119
+ }