@manuscripts/body-editor 2.2.9 → 2.2.10

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.
@@ -20,7 +20,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  const affiliations_1 = __importDefault(require("../views/affiliations"));
22
22
  const author_notes_1 = __importDefault(require("../views/author_notes"));
23
- const bibliography_element_editable_1 = __importDefault(require("../views/bibliography_element_editable"));
23
+ const bibliography_element_1 = __importDefault(require("../views/bibliography_element"));
24
24
  const blockquote_element_editable_1 = __importDefault(require("../views/blockquote_element_editable"));
25
25
  const citation_editable_1 = __importDefault(require("../views/citation_editable"));
26
26
  const contributors_1 = __importDefault(require("../views/contributors"));
@@ -54,7 +54,7 @@ const toc_element_editable_1 = __importDefault(require("../views/toc_element_edi
54
54
  exports.default = (props, dispatch) => {
55
55
  return {
56
56
  title: (0, title_editable_1.default)(props, dispatch),
57
- bibliography_element: (0, bibliography_element_editable_1.default)(props, dispatch),
57
+ bibliography_element: (0, bibliography_element_1.default)(props, dispatch),
58
58
  blockquote_element: (0, blockquote_element_editable_1.default)(props),
59
59
  citation: (0, citation_editable_1.default)(props, dispatch),
60
60
  cross_reference: (0, cross_reference_editable_1.default)(props, dispatch),
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MATHJAX_VERSION = exports.VERSION = void 0;
4
- exports.VERSION = '2.2.9';
4
+ exports.VERSION = '2.2.10';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import affiliations from '../views/affiliations';
17
17
  import authorNotes from '../views/author_notes';
18
- import bibliographyElement from '../views/bibliography_element_editable';
18
+ import bibliographyElement from '../views/bibliography_element';
19
19
  import blockquoteElement from '../views/blockquote_element_editable';
20
20
  import citation from '../views/citation_editable';
21
21
  import contributors from '../views/contributors';
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.2.9';
1
+ export const VERSION = '2.2.10';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -17,41 +17,7 @@ import { Dispatch } from '../commands';
17
17
  import { EditorProps } from './ManuscriptsEditor';
18
18
  declare const _default: (props: EditorProps, dispatch: Dispatch) => {
19
19
  title: import("../types").NodeViewCreator<import("../views/title").TitleView>;
20
- bibliography_element: import("../types").NodeViewCreator<{
21
- gutterButtons: () => HTMLElement[];
22
- actionGutterButtons: () => HTMLElement[];
23
- createAddButton: () => HTMLElement | null;
24
- createEditButton: () => HTMLElement | null;
25
- createMenu: () => import("../lib/context-menu").ContextMenu;
26
- viewAttributes: {
27
- id: string;
28
- placeholder: string;
29
- paragraphStyle: string;
30
- };
31
- initialise: () => void;
32
- updateContents: () => void;
33
- onUpdateContent(): void;
34
- updateClasses: () => void;
35
- updateAttributes: () => void;
36
- createElement: () => void;
37
- createDOM: () => void;
38
- createGutter: (className: string, buttons: HTMLElement[]) => void;
39
- dom: HTMLElement;
40
- contentDOM?: HTMLElement | undefined;
41
- syncErrors: import("../types").SyncError[];
42
- elementType: string;
43
- readonly props: EditorProps;
44
- node: import("prosemirror-model").Node;
45
- readonly view: import("prosemirror-view").EditorView;
46
- readonly getPos: () => number;
47
- decorations: readonly import("prosemirror-view").Decoration[];
48
- update: (newNode: import("prosemirror-model").Node, decorations: readonly import("prosemirror-view").Decoration[]) => boolean;
49
- setDomAttrs(node: import("prosemirror-model").Node, element: HTMLElement, omit?: string[]): void;
50
- selectNode: () => void;
51
- deselectNode: () => void;
52
- destroy: () => void;
53
- handleDecorations: (decorations: readonly import("prosemirror-view").Decoration[]) => void;
54
- } & import("../views/bibliography_element").BibliographyElementBlockView>;
20
+ bibliography_element: import("../types").NodeViewCreator<import("../views/bibliography_element").BibliographyElementBlockView>;
55
21
  blockquote_element: import("../types").NodeViewCreator<{
56
22
  gutterButtons: () => HTMLElement[];
57
23
  actionGutterButtons: () => HTMLElement[];
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.2.9";
1
+ export declare const VERSION = "2.2.10";
2
2
  export declare const MATHJAX_VERSION = "3.2.2";
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.2.9",
4
+ "version": "2.2.10",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -1,21 +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
- const bibliography_element_1 = require("./bibliography_element");
19
- const creators_1 = require("./creators");
20
- const editable_block_1 = require("./editable_block");
21
- exports.default = (0, creators_1.createEditableNodeView)((0, editable_block_1.EditableBlock)(bibliography_element_1.BibliographyElementBlockView));
@@ -1,19 +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
- import { BibliographyElementBlockView } from './bibliography_element';
17
- import { createEditableNodeView } from './creators';
18
- import { EditableBlock } from './editable_block';
19
- export default createEditableNodeView(EditableBlock(BibliographyElementBlockView));
@@ -1,52 +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
- import { BibliographyElementBlockView } from './bibliography_element';
17
- declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<{
18
- gutterButtons: () => HTMLElement[];
19
- actionGutterButtons: () => HTMLElement[];
20
- createAddButton: () => HTMLElement | null;
21
- createEditButton: () => HTMLElement | null;
22
- createMenu: () => import("../lib/context-menu").ContextMenu;
23
- viewAttributes: {
24
- id: string;
25
- placeholder: string;
26
- paragraphStyle: string;
27
- };
28
- initialise: () => void;
29
- updateContents: () => void;
30
- onUpdateContent(): void;
31
- updateClasses: () => void;
32
- updateAttributes: () => void;
33
- createElement: () => void;
34
- createDOM: () => void;
35
- createGutter: (className: string, buttons: HTMLElement[]) => void;
36
- dom: HTMLElement;
37
- contentDOM?: HTMLElement | undefined;
38
- syncErrors: import("../types").SyncError[];
39
- elementType: string;
40
- readonly props: import("../configs/ManuscriptsEditor").EditorProps;
41
- node: import("prosemirror-model").Node;
42
- readonly view: import("prosemirror-view").EditorView;
43
- readonly getPos: () => number;
44
- decorations: readonly import("prosemirror-view").Decoration[];
45
- update: (newNode: import("prosemirror-model").Node, decorations: readonly import("prosemirror-view").Decoration[]) => boolean;
46
- setDomAttrs(node: import("prosemirror-model").Node, element: HTMLElement, omit?: string[]): void;
47
- selectNode: () => void;
48
- deselectNode: () => void;
49
- destroy: () => void;
50
- handleDecorations: (decorations: readonly import("prosemirror-view").Decoration[]) => void;
51
- } & BibliographyElementBlockView>;
52
- export default _default;