@manuscripts/body-editor 2.2.18-LEAN-4011.0 → 2.2.19

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 (41) hide show
  1. package/dist/cjs/plugins/toc.js +0 -1
  2. package/dist/cjs/versions.js +1 -1
  3. package/dist/cjs/views/block_view.js +0 -1
  4. package/dist/cjs/views/cross_reference.js +8 -3
  5. package/dist/cjs/views/cross_reference_editable.js +3 -3
  6. package/dist/cjs/views/equation_element.js +0 -6
  7. package/dist/cjs/views/figure_element.js +0 -12
  8. package/dist/cjs/views/section.js +9 -23
  9. package/dist/cjs/views/table_element.js +0 -9
  10. package/dist/cjs/views/toc_element.js +0 -1
  11. package/dist/es/plugins/toc.js +0 -1
  12. package/dist/es/versions.js +1 -1
  13. package/dist/es/views/block_view.js +0 -1
  14. package/dist/es/views/cross_reference.js +9 -4
  15. package/dist/es/views/cross_reference_editable.js +3 -3
  16. package/dist/es/views/equation_element.js +0 -6
  17. package/dist/es/views/figure_element.js +0 -12
  18. package/dist/es/views/section.js +9 -23
  19. package/dist/es/views/table_element.js +0 -9
  20. package/dist/es/views/toc_element.js +0 -1
  21. package/dist/types/configs/editor-views.d.ts +0 -11
  22. package/dist/types/versions.d.ts +1 -1
  23. package/dist/types/views/block_view.d.ts +0 -1
  24. package/dist/types/views/blockquote_element_editable.d.ts +0 -1
  25. package/dist/types/views/bullet_list_editable.d.ts +0 -1
  26. package/dist/types/views/cross_reference_editable.d.ts +1 -1
  27. package/dist/types/views/editable_block.d.ts +0 -1
  28. package/dist/types/views/equation_element_editable.d.ts +0 -1
  29. package/dist/types/views/figure_element_editable.d.ts +0 -1
  30. package/dist/types/views/footnote_editable.d.ts +0 -1
  31. package/dist/types/views/footnotes_element_editable.d.ts +0 -1
  32. package/dist/types/views/list.d.ts +0 -1
  33. package/dist/types/views/ordered_list_editable.d.ts +0 -1
  34. package/dist/types/views/paragraph_editable.d.ts +0 -1
  35. package/dist/types/views/placeholder_element_editable.d.ts +0 -1
  36. package/dist/types/views/pullquote_element_editable.d.ts +0 -1
  37. package/dist/types/views/section_title_editable.d.ts +0 -1
  38. package/dist/types/views/table_element.d.ts +0 -1
  39. package/dist/types/views/table_element_editable.d.ts +0 -1
  40. package/dist/types/views/toc_element_editable.d.ts +0 -1
  41. package/package.json +2 -2
@@ -59,7 +59,6 @@ exports.default = () => {
59
59
  tr.doc.descendants((node, pos) => {
60
60
  if (node.type === node.type.schema.nodes.toc_element) {
61
61
  const list = document.createElement('ul');
62
- list.setAttribute('data-paragraph-style', node.attrs.paragraphStyle);
63
62
  buildTOCList(list, newState.doc);
64
63
  const contents = list.outerHTML;
65
64
  if (contents !== node.attrs.contents) {
@@ -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.18-LEAN-4011.0';
4
+ exports.VERSION = '2.2.19';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -28,7 +28,6 @@ class BlockView extends base_node_view_1.BaseNodeView {
28
28
  this.viewAttributes = {
29
29
  id: 'id',
30
30
  placeholder: 'placeholder',
31
- paragraphStyle: 'data-paragraph-style',
32
31
  };
33
32
  this.initialise = () => {
34
33
  this.createDOM();
@@ -17,6 +17,7 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.CrossReferenceView = void 0;
19
19
  const track_changes_utils_1 = require("../lib/track-changes-utils");
20
+ const objects_1 = require("../plugins/objects");
20
21
  const base_node_view_1 = require("./base_node_view");
21
22
  const creators_1 = require("./creators");
22
23
  class CrossReferenceView extends base_node_view_1.BaseNodeView {
@@ -35,12 +36,16 @@ class CrossReferenceView extends base_node_view_1.BaseNodeView {
35
36
  });
36
37
  };
37
38
  this.updateContents = () => {
38
- const nodeClasses = [
39
+ var _a;
40
+ const targets = objects_1.objectsKey.getState(this.view.state);
41
+ const attrs = (0, track_changes_utils_1.getActualAttrs)(this.node);
42
+ const classes = [
39
43
  'cross-reference',
40
44
  ...(0, track_changes_utils_1.getChangeClasses)(this.node.attrs.dataTracked),
41
45
  ];
42
- this.dom.className = nodeClasses.join(' ');
43
- this.dom.textContent = this.node.attrs.customLabel || this.node.attrs.label;
46
+ this.dom.className = classes.join(' ');
47
+ const label = attrs.rids.length && ((_a = targets.get(attrs.rids[0])) === null || _a === void 0 ? void 0 : _a.label);
48
+ this.dom.textContent = attrs.label || label || '';
44
49
  this.dom.addEventListener('click', this.handleClick);
45
50
  };
46
51
  this.initialise = () => {
@@ -50,7 +50,7 @@ class CrossReferenceEditableView extends cross_reference_1.CrossReferenceView {
50
50
  targets: this.getTargets(),
51
51
  handleCancel: this.handleCancel,
52
52
  currentTargetId: rids[0],
53
- currentCustomLabel: this.node.attrs.customLabel,
53
+ currentCustomLabel: this.node.attrs.label,
54
54
  };
55
55
  this.popperContainer = (0, ReactSubView_1.default)(this.props, CrossReferenceItems_1.CrossReferenceItems, componentProps, this.node, this.getPos, this.view, 'cross-reference-editor');
56
56
  this.props.popper.show(this.dom, this.popperContainer, 'auto');
@@ -80,10 +80,10 @@ class CrossReferenceEditableView extends cross_reference_1.CrossReferenceView {
80
80
  this.destroy();
81
81
  }
82
82
  };
83
- this.handleSelect = (rid, customLabel) => __awaiter(this, void 0, void 0, function* () {
83
+ this.handleSelect = (rid, label) => __awaiter(this, void 0, void 0, function* () {
84
84
  const { state } = this.view;
85
85
  const pos = this.getPos();
86
- const tr = state.tr.setNodeMarkup(pos, undefined, Object.assign(Object.assign({}, this.node.attrs), { customLabel: customLabel || '', rids: [rid] }));
86
+ const tr = state.tr.setNodeMarkup(pos, undefined, Object.assign(Object.assign({}, this.node.attrs), { label, rids: [rid] }));
87
87
  const selection = prosemirror_state_1.TextSelection.create(tr.doc, pos);
88
88
  this.view.dispatch(tr.setSelection(selection));
89
89
  this.destroy();
@@ -27,12 +27,6 @@ class EquationElementView extends block_view_1.default {
27
27
  this.elementType = 'figure';
28
28
  this.updateContents = () => {
29
29
  var _a;
30
- const { label } = this.node.attrs;
31
- if (label) {
32
- const labelEl = document.createElement('label');
33
- labelEl.textContent = label;
34
- this.dom.appendChild(labelEl);
35
- }
36
30
  if ((_a = this.node.attrs.dataTracked) === null || _a === void 0 ? void 0 : _a.length) {
37
31
  const lastChange = this.node.attrs.dataTracked[this.node.attrs.dataTracked.length - 1];
38
32
  this.dom.setAttribute('data-track-status', lastChange.status);
@@ -51,7 +51,6 @@ class FigureElementView extends block_view_1.default {
51
51
  };
52
52
  this.updateContents = () => {
53
53
  var _a, _b;
54
- const { figureStyle, figureLayout, alignment, sizeFraction } = this.node.attrs;
55
54
  if (!this.contentDOM) {
56
55
  throw new Error('No contentDOM');
57
56
  }
@@ -64,17 +63,6 @@ class FigureElementView extends block_view_1.default {
64
63
  this.dom.removeAttribute('data-track-status');
65
64
  this.dom.removeAttribute('data-track-op');
66
65
  }
67
- this.contentDOM.setAttribute('data-figure-style', figureStyle);
68
- this.contentDOM.setAttribute('data-figure-layout', figureLayout);
69
- this.contentDOM.setAttribute('data-alignment', alignment || '');
70
- if (sizeFraction > 1) {
71
- this.contentDOM.style.width = '100%';
72
- this.contentDOM.style.padding = '0 !important';
73
- }
74
- else {
75
- this.contentDOM.style.width = `${(sizeFraction || 1) * 100}%`;
76
- }
77
- this.container.classList.toggle('fit-to-page', sizeFraction === 2);
78
66
  const can = this.props.getCapabilities();
79
67
  let handleUpload = () => {
80
68
  };
@@ -19,7 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.SectionView = exports.handleSectionNumbering = void 0;
22
- const transform_1 = require("@manuscripts/transform");
22
+ const track_changes_utils_1 = require("../lib/track-changes-utils");
23
23
  const section_title_1 = require("../plugins/section_title");
24
24
  const block_view_1 = __importDefault(require("./block_view"));
25
25
  const creators_1 = require("./creators");
@@ -47,30 +47,16 @@ class SectionView extends block_view_1.default {
47
47
  this.dom.appendChild(this.contentDOM);
48
48
  };
49
49
  this.onUpdateContent = () => {
50
- const sectionTitleState = section_title_1.sectionTitleKey.getState(this.view.state);
51
- const { titleSuppressed, generatedLabel, pageBreakStyle, id, category } = this.node.attrs;
52
- const classNames = [];
53
- if (titleSuppressed) {
54
- classNames.push('title-suppressed');
55
- }
56
- if (typeof generatedLabel === 'undefined' || generatedLabel) {
57
- classNames.push('generated-label');
58
- }
59
- if (pageBreakStyle === transform_1.PAGE_BREAK_BEFORE ||
60
- pageBreakStyle === transform_1.PAGE_BREAK_BEFORE_AND_AFTER) {
61
- classNames.push('page-break-before');
62
- }
63
- if (pageBreakStyle === transform_1.PAGE_BREAK_AFTER ||
64
- pageBreakStyle === transform_1.PAGE_BREAK_BEFORE_AND_AFTER) {
65
- classNames.push('page-break-after');
66
- }
50
+ const sectionTitles = section_title_1.sectionTitleKey.getState(this.view.state);
51
+ const attrs = (0, track_changes_utils_1.getActualAttrs)(this.node);
67
52
  if (this.contentDOM) {
68
- this.contentDOM.id = id;
69
- this.contentDOM.classList.add(...classNames);
70
- category && this.contentDOM.setAttribute('data-category', category);
53
+ this.contentDOM.id = attrs.id;
54
+ if (attrs.category) {
55
+ this.contentDOM.setAttribute('data-category', attrs.category);
56
+ }
71
57
  }
72
- if (sectionTitleState) {
73
- (0, exports.handleSectionNumbering)(sectionTitleState);
58
+ if (sectionTitles) {
59
+ (0, exports.handleSectionNumbering)(sectionTitles);
74
60
  }
75
61
  };
76
62
  }
@@ -31,15 +31,6 @@ class TableElementView extends block_view_1.default {
31
31
  this.contentDOM.setAttribute('id', this.node.attrs.id);
32
32
  this.dom.appendChild(this.contentDOM);
33
33
  };
34
- this.updateContents = () => {
35
- const { suppressHeader, suppressFooter } = this.node.attrs;
36
- this.dom.classList.toggle('suppress-header', suppressHeader);
37
- this.dom.classList.toggle('suppress-footer', suppressFooter);
38
- if (this.contentDOM) {
39
- this.contentDOM.setAttribute('data-paragraph-style', this.node.attrs.paragraphStyle);
40
- this.contentDOM.setAttribute('data-table-style', this.node.attrs.tableStyle);
41
- }
42
- };
43
34
  }
44
35
  }
45
36
  exports.TableElementView = TableElementView;
@@ -37,7 +37,6 @@ class TOCElementView extends block_view_1.default {
37
37
  console.error(e);
38
38
  window.alert('There was an error loading the HTML purifier, please reload to try again');
39
39
  }
40
- this.element.setAttribute('data-paragraph-style', this.node.attrs.paragraphStyle);
41
40
  };
42
41
  this.createElement = () => {
43
42
  this.element = document.createElement('div');
@@ -56,7 +56,6 @@ export default () => {
56
56
  tr.doc.descendants((node, pos) => {
57
57
  if (node.type === node.type.schema.nodes.toc_element) {
58
58
  const list = document.createElement('ul');
59
- list.setAttribute('data-paragraph-style', node.attrs.paragraphStyle);
60
59
  buildTOCList(list, newState.doc);
61
60
  const contents = list.outerHTML;
62
61
  if (contents !== node.attrs.contents) {
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.2.18-LEAN-4011.0';
1
+ export const VERSION = '2.2.19';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -26,7 +26,6 @@ export default class BlockView extends BaseNodeView {
26
26
  this.viewAttributes = {
27
27
  id: 'id',
28
28
  placeholder: 'placeholder',
29
- paragraphStyle: 'data-paragraph-style',
30
29
  };
31
30
  this.initialise = () => {
32
31
  this.createDOM();
@@ -13,7 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { getChangeClasses } from '../lib/track-changes-utils';
16
+ import { getActualAttrs, getChangeClasses } from '../lib/track-changes-utils';
17
+ import { objectsKey } from '../plugins/objects';
17
18
  import { BaseNodeView } from './base_node_view';
18
19
  import { createNodeView } from './creators';
19
20
  export class CrossReferenceView extends BaseNodeView {
@@ -32,12 +33,16 @@ export class CrossReferenceView extends BaseNodeView {
32
33
  });
33
34
  };
34
35
  this.updateContents = () => {
35
- const nodeClasses = [
36
+ var _a;
37
+ const targets = objectsKey.getState(this.view.state);
38
+ const attrs = getActualAttrs(this.node);
39
+ const classes = [
36
40
  'cross-reference',
37
41
  ...getChangeClasses(this.node.attrs.dataTracked),
38
42
  ];
39
- this.dom.className = nodeClasses.join(' ');
40
- this.dom.textContent = this.node.attrs.customLabel || this.node.attrs.label;
43
+ this.dom.className = classes.join(' ');
44
+ const label = attrs.rids.length && ((_a = targets.get(attrs.rids[0])) === null || _a === void 0 ? void 0 : _a.label);
45
+ this.dom.textContent = attrs.label || label || '';
41
46
  this.dom.addEventListener('click', this.handleClick);
42
47
  };
43
48
  this.initialise = () => {
@@ -44,7 +44,7 @@ export class CrossReferenceEditableView extends CrossReferenceView {
44
44
  targets: this.getTargets(),
45
45
  handleCancel: this.handleCancel,
46
46
  currentTargetId: rids[0],
47
- currentCustomLabel: this.node.attrs.customLabel,
47
+ currentCustomLabel: this.node.attrs.label,
48
48
  };
49
49
  this.popperContainer = ReactSubView(this.props, CrossReferenceItems, componentProps, this.node, this.getPos, this.view, 'cross-reference-editor');
50
50
  this.props.popper.show(this.dom, this.popperContainer, 'auto');
@@ -74,10 +74,10 @@ export class CrossReferenceEditableView extends CrossReferenceView {
74
74
  this.destroy();
75
75
  }
76
76
  };
77
- this.handleSelect = (rid, customLabel) => __awaiter(this, void 0, void 0, function* () {
77
+ this.handleSelect = (rid, label) => __awaiter(this, void 0, void 0, function* () {
78
78
  const { state } = this.view;
79
79
  const pos = this.getPos();
80
- const tr = state.tr.setNodeMarkup(pos, undefined, Object.assign(Object.assign({}, this.node.attrs), { customLabel: customLabel || '', rids: [rid] }));
80
+ const tr = state.tr.setNodeMarkup(pos, undefined, Object.assign(Object.assign({}, this.node.attrs), { label, rids: [rid] }));
81
81
  const selection = TextSelection.create(tr.doc, pos);
82
82
  this.view.dispatch(tr.setSelection(selection));
83
83
  this.destroy();
@@ -21,12 +21,6 @@ export class EquationElementView extends BlockView {
21
21
  this.elementType = 'figure';
22
22
  this.updateContents = () => {
23
23
  var _a;
24
- const { label } = this.node.attrs;
25
- if (label) {
26
- const labelEl = document.createElement('label');
27
- labelEl.textContent = label;
28
- this.dom.appendChild(labelEl);
29
- }
30
24
  if ((_a = this.node.attrs.dataTracked) === null || _a === void 0 ? void 0 : _a.length) {
31
25
  const lastChange = this.node.attrs.dataTracked[this.node.attrs.dataTracked.length - 1];
32
26
  this.dom.setAttribute('data-track-status', lastChange.status);
@@ -45,7 +45,6 @@ export class FigureElementView extends BlockView {
45
45
  };
46
46
  this.updateContents = () => {
47
47
  var _a, _b;
48
- const { figureStyle, figureLayout, alignment, sizeFraction } = this.node.attrs;
49
48
  if (!this.contentDOM) {
50
49
  throw new Error('No contentDOM');
51
50
  }
@@ -58,17 +57,6 @@ export class FigureElementView extends BlockView {
58
57
  this.dom.removeAttribute('data-track-status');
59
58
  this.dom.removeAttribute('data-track-op');
60
59
  }
61
- this.contentDOM.setAttribute('data-figure-style', figureStyle);
62
- this.contentDOM.setAttribute('data-figure-layout', figureLayout);
63
- this.contentDOM.setAttribute('data-alignment', alignment || '');
64
- if (sizeFraction > 1) {
65
- this.contentDOM.style.width = '100%';
66
- this.contentDOM.style.padding = '0 !important';
67
- }
68
- else {
69
- this.contentDOM.style.width = `${(sizeFraction || 1) * 100}%`;
70
- }
71
- this.container.classList.toggle('fit-to-page', sizeFraction === 2);
72
60
  const can = this.props.getCapabilities();
73
61
  let handleUpload = () => {
74
62
  };
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { PAGE_BREAK_AFTER, PAGE_BREAK_BEFORE, PAGE_BREAK_BEFORE_AND_AFTER, } from '@manuscripts/transform';
16
+ import { getActualAttrs } from '../lib/track-changes-utils';
17
17
  import { sectionTitleKey } from '../plugins/section_title';
18
18
  import BlockView from './block_view';
19
19
  import { createNodeView } from './creators';
@@ -40,30 +40,16 @@ export class SectionView extends BlockView {
40
40
  this.dom.appendChild(this.contentDOM);
41
41
  };
42
42
  this.onUpdateContent = () => {
43
- const sectionTitleState = sectionTitleKey.getState(this.view.state);
44
- const { titleSuppressed, generatedLabel, pageBreakStyle, id, category } = this.node.attrs;
45
- const classNames = [];
46
- if (titleSuppressed) {
47
- classNames.push('title-suppressed');
48
- }
49
- if (typeof generatedLabel === 'undefined' || generatedLabel) {
50
- classNames.push('generated-label');
51
- }
52
- if (pageBreakStyle === PAGE_BREAK_BEFORE ||
53
- pageBreakStyle === PAGE_BREAK_BEFORE_AND_AFTER) {
54
- classNames.push('page-break-before');
55
- }
56
- if (pageBreakStyle === PAGE_BREAK_AFTER ||
57
- pageBreakStyle === PAGE_BREAK_BEFORE_AND_AFTER) {
58
- classNames.push('page-break-after');
59
- }
43
+ const sectionTitles = sectionTitleKey.getState(this.view.state);
44
+ const attrs = getActualAttrs(this.node);
60
45
  if (this.contentDOM) {
61
- this.contentDOM.id = id;
62
- this.contentDOM.classList.add(...classNames);
63
- category && this.contentDOM.setAttribute('data-category', category);
46
+ this.contentDOM.id = attrs.id;
47
+ if (attrs.category) {
48
+ this.contentDOM.setAttribute('data-category', attrs.category);
49
+ }
64
50
  }
65
- if (sectionTitleState) {
66
- handleSectionNumbering(sectionTitleState);
51
+ if (sectionTitles) {
52
+ handleSectionNumbering(sectionTitles);
67
53
  }
68
54
  };
69
55
  }
@@ -25,15 +25,6 @@ export class TableElementView extends BlockView {
25
25
  this.contentDOM.setAttribute('id', this.node.attrs.id);
26
26
  this.dom.appendChild(this.contentDOM);
27
27
  };
28
- this.updateContents = () => {
29
- const { suppressHeader, suppressFooter } = this.node.attrs;
30
- this.dom.classList.toggle('suppress-header', suppressHeader);
31
- this.dom.classList.toggle('suppress-footer', suppressFooter);
32
- if (this.contentDOM) {
33
- this.contentDOM.setAttribute('data-paragraph-style', this.node.attrs.paragraphStyle);
34
- this.contentDOM.setAttribute('data-table-style', this.node.attrs.tableStyle);
35
- }
36
- };
37
28
  }
38
29
  }
39
30
  export default createNodeView(TableElementView);
@@ -31,7 +31,6 @@ export class TOCElementView extends BlockView {
31
31
  console.error(e);
32
32
  window.alert('There was an error loading the HTML purifier, please reload to try again');
33
33
  }
34
- this.element.setAttribute('data-paragraph-style', this.node.attrs.paragraphStyle);
35
34
  };
36
35
  this.createElement = () => {
37
36
  this.element = document.createElement('div');
@@ -27,7 +27,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
27
27
  viewAttributes: {
28
28
  id: string;
29
29
  placeholder: string;
30
- paragraphStyle: string;
31
30
  };
32
31
  initialise: () => void;
33
32
  updateContents: () => void;
@@ -68,7 +67,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
68
67
  viewAttributes: {
69
68
  id: string;
70
69
  placeholder: string;
71
- paragraphStyle: string;
72
70
  };
73
71
  initialise: () => void;
74
72
  updateContents: () => void;
@@ -104,7 +102,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
104
102
  viewAttributes: {
105
103
  id: string;
106
104
  placeholder: string;
107
- paragraphStyle: string;
108
105
  };
109
106
  initialise: () => void;
110
107
  updateContents: () => void;
@@ -139,7 +136,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
139
136
  viewAttributes: {
140
137
  id: string;
141
138
  placeholder: string;
142
- paragraphStyle: string;
143
139
  };
144
140
  initialise: () => void;
145
141
  updateContents: () => void;
@@ -180,7 +176,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
180
176
  viewAttributes: {
181
177
  id: string;
182
178
  placeholder: string;
183
- paragraphStyle: string;
184
179
  };
185
180
  initialise: () => void;
186
181
  updateContents: () => void;
@@ -216,7 +211,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
216
211
  viewAttributes: {
217
212
  id: string;
218
213
  placeholder: string;
219
- paragraphStyle: string;
220
214
  };
221
215
  initialise: () => void;
222
216
  updateContents: () => void;
@@ -252,7 +246,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
252
246
  viewAttributes: {
253
247
  id: string;
254
248
  placeholder: string;
255
- paragraphStyle: string;
256
249
  };
257
250
  initialise: () => void;
258
251
  updateContents: () => void;
@@ -288,7 +281,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
288
281
  viewAttributes: {
289
282
  id: string;
290
283
  placeholder: string;
291
- paragraphStyle: string;
292
284
  };
293
285
  initialise: () => void;
294
286
  updateContents: () => void;
@@ -323,7 +315,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
323
315
  viewAttributes: {
324
316
  id: string;
325
317
  placeholder: string;
326
- paragraphStyle: string;
327
318
  };
328
319
  initialise: () => void;
329
320
  updateContents: () => void;
@@ -359,7 +350,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
359
350
  viewAttributes: {
360
351
  id: string;
361
352
  placeholder: string;
362
- paragraphStyle: string;
363
353
  };
364
354
  initialise: () => void;
365
355
  updateContents: () => void;
@@ -397,7 +387,6 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
397
387
  viewAttributes: {
398
388
  id: string;
399
389
  placeholder: string;
400
- paragraphStyle: string;
401
390
  };
402
391
  initialise: () => void;
403
392
  updateContents: () => void;
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.2.18-LEAN-4011.0";
1
+ export declare const VERSION = "2.2.19";
2
2
  export declare const MATHJAX_VERSION = "3.2.2";
@@ -19,7 +19,6 @@ export default class BlockView<BlockNode extends ManuscriptNode> extends BaseNod
19
19
  viewAttributes: {
20
20
  id: string;
21
21
  placeholder: string;
22
- paragraphStyle: string;
23
22
  };
24
23
  initialise: () => void;
25
24
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -22,7 +22,7 @@ export declare class CrossReferenceEditableView extends CrossReferenceView {
22
22
  deselectNode: () => void;
23
23
  getTargets: () => Target[];
24
24
  handleCancel: () => void;
25
- handleSelect: (rid: string, customLabel?: string) => Promise<void>;
25
+ handleSelect: (rid: string, label?: string) => Promise<void>;
26
26
  }
27
27
  declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<CrossReferenceEditableView>;
28
28
  export default _default;
@@ -26,7 +26,6 @@ export declare const EditableBlock: <T extends Constructor<BlockView<import("pro
26
26
  viewAttributes: {
27
27
  id: string;
28
28
  placeholder: string;
29
- paragraphStyle: string;
30
29
  };
31
30
  initialise: () => void;
32
31
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -30,7 +30,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
30
30
  viewAttributes: {
31
31
  id: string;
32
32
  placeholder: string;
33
- paragraphStyle: string;
34
33
  };
35
34
  initialise: () => void;
36
35
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -18,7 +18,6 @@ import BlockView from './block_view';
18
18
  export declare class TableElementView extends BlockView<TableElementNode> {
19
19
  elementType: string;
20
20
  createElement: () => void;
21
- updateContents: () => void;
22
21
  }
23
22
  declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TableElementView>;
24
23
  export default _default;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
@@ -23,7 +23,6 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
23
23
  viewAttributes: {
24
24
  id: string;
25
25
  placeholder: string;
26
- paragraphStyle: string;
27
26
  };
28
27
  initialise: () => void;
29
28
  updateContents: () => void;
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.18-LEAN-4011.0",
4
+ "version": "2.2.19",
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.21",
36
36
  "@manuscripts/track-changes-plugin": "1.7.23",
37
- "@manuscripts/transform": "3.0.4-LEAN-4011.0",
37
+ "@manuscripts/transform": "3.0.4",
38
38
  "@popperjs/core": "^2.11.8",
39
39
  "astrocite-eutils": "^0.16.4",
40
40
  "codemirror": "^5.58.1",