@manuscripts/body-editor 3.3.0 → 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/footnotes.js +2 -2
- 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/cjs/views/inline_footnote.js +2 -1
- package/dist/es/plugins/footnotes.js +2 -2
- package/dist/es/versions.js +1 -1
- package/dist/es/views/inline_footnote.js +2 -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
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
30
|
}) : function(o, v) {
|
|
31
31
|
o["default"] = v;
|
|
32
32
|
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
+
var ownKeys = function(o) {
|
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
+
var ar = [];
|
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
+
return ar;
|
|
39
|
+
};
|
|
40
|
+
return ownKeys(o);
|
|
41
|
+
};
|
|
42
|
+
return function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
40
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
51
|
const lib = __importStar(require("../helpers"));
|
|
42
52
|
describe('mergeSimilarItems', () => {
|
package/dist/cjs/lib/files.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.groupFiles =
|
|
3
|
+
exports.groupFiles = void 0;
|
|
4
|
+
exports.memoGroupFiles = memoGroupFiles;
|
|
4
5
|
const transform_1 = require("@manuscripts/transform");
|
|
5
6
|
const prosemirror_utils_1 = require("prosemirror-utils");
|
|
6
7
|
const track_changes_utils_1 = require("./track-changes-utils");
|
|
@@ -26,7 +27,6 @@ function memoGroupFiles() {
|
|
|
26
27
|
return (0, exports.groupFiles)(doc, files);
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
|
-
exports.memoGroupFiles = memoGroupFiles;
|
|
30
30
|
const groupFiles = (doc, files) => {
|
|
31
31
|
const fileMap = new Map(files.map((f) => [f.id, f]));
|
|
32
32
|
const figures = [];
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.createPlaceholderContent =
|
|
18
|
+
exports.createPlaceholderContent = createPlaceholderContent;
|
|
19
19
|
function createPlaceholderContent(label = 'a component') {
|
|
20
20
|
const el = document.createElement('div');
|
|
21
21
|
el.innerHTML = `
|
|
@@ -32,4 +32,3 @@ function createPlaceholderContent(label = 'a component') {
|
|
|
32
32
|
`;
|
|
33
33
|
return el;
|
|
34
34
|
}
|
|
35
|
-
exports.createPlaceholderContent = createPlaceholderContent;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.bibliographyItemTypes = exports.importBibliographyItems = exports.authors = exports.issuedYear = exports.metadata = void 0;
|
|
27
37
|
const core_1 = require("@citation-js/core");
|
|
@@ -15,7 +15,17 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.addTrackChangesClassNames = exports.addTrackChangesAttributes = exports.
|
|
18
|
+
exports.addTrackChangesClassNames = exports.addTrackChangesAttributes = exports.getAttrsTrackingButton = void 0;
|
|
19
|
+
exports.isDeleted = isDeleted;
|
|
20
|
+
exports.isPendingInsert = isPendingInsert;
|
|
21
|
+
exports.isPending = isPending;
|
|
22
|
+
exports.isPendingSetAttrs = isPendingSetAttrs;
|
|
23
|
+
exports.getChangeClasses = getChangeClasses;
|
|
24
|
+
exports.isTracked = isTracked;
|
|
25
|
+
exports.isHidden = isHidden;
|
|
26
|
+
exports.isDeletedText = isDeletedText;
|
|
27
|
+
exports.getActualTextContent = getActualTextContent;
|
|
28
|
+
exports.sanitizeAttrsChange = sanitizeAttrsChange;
|
|
19
29
|
const style_guide_1 = require("@manuscripts/style-guide");
|
|
20
30
|
const track_changes_plugin_1 = require("@manuscripts/track-changes-plugin");
|
|
21
31
|
const transform_1 = require("@manuscripts/transform");
|
|
@@ -28,7 +38,6 @@ function isDeleted(node) {
|
|
|
28
38
|
}
|
|
29
39
|
return false;
|
|
30
40
|
}
|
|
31
|
-
exports.isDeleted = isDeleted;
|
|
32
41
|
function isPendingInsert(node) {
|
|
33
42
|
if (node.attrs.dataTracked) {
|
|
34
43
|
const changes = node.attrs.dataTracked;
|
|
@@ -36,7 +45,6 @@ function isPendingInsert(node) {
|
|
|
36
45
|
}
|
|
37
46
|
return false;
|
|
38
47
|
}
|
|
39
|
-
exports.isPendingInsert = isPendingInsert;
|
|
40
48
|
function isPending(node) {
|
|
41
49
|
if (node.attrs.dataTracked) {
|
|
42
50
|
const changes = node.attrs.dataTracked;
|
|
@@ -44,7 +52,6 @@ function isPending(node) {
|
|
|
44
52
|
}
|
|
45
53
|
return false;
|
|
46
54
|
}
|
|
47
|
-
exports.isPending = isPending;
|
|
48
55
|
function isPendingSetAttrs(node) {
|
|
49
56
|
if (node.attrs.dataTracked) {
|
|
50
57
|
const changes = node.attrs.dataTracked;
|
|
@@ -52,7 +59,6 @@ function isPendingSetAttrs(node) {
|
|
|
52
59
|
}
|
|
53
60
|
return false;
|
|
54
61
|
}
|
|
55
|
-
exports.isPendingSetAttrs = isPendingSetAttrs;
|
|
56
62
|
function getChangeClasses(dataTracked) {
|
|
57
63
|
const classes = [];
|
|
58
64
|
if (dataTracked) {
|
|
@@ -66,7 +72,6 @@ function getChangeClasses(dataTracked) {
|
|
|
66
72
|
}
|
|
67
73
|
return classes;
|
|
68
74
|
}
|
|
69
|
-
exports.getChangeClasses = getChangeClasses;
|
|
70
75
|
function isTracked(node) {
|
|
71
76
|
if (node.attrs.dataTracked) {
|
|
72
77
|
const changes = node.attrs.dataTracked;
|
|
@@ -76,7 +81,6 @@ function isTracked(node) {
|
|
|
76
81
|
}
|
|
77
82
|
return false;
|
|
78
83
|
}
|
|
79
|
-
exports.isTracked = isTracked;
|
|
80
84
|
const getAttrsTrackingButton = (changeID) => {
|
|
81
85
|
const el = document.createElement('button');
|
|
82
86
|
el.className = 'attrs-popper-button';
|
|
@@ -88,7 +92,6 @@ exports.getAttrsTrackingButton = getAttrsTrackingButton;
|
|
|
88
92
|
function isHidden(node) {
|
|
89
93
|
return isDeleted(node);
|
|
90
94
|
}
|
|
91
|
-
exports.isHidden = isHidden;
|
|
92
95
|
function isDeletedText(node) {
|
|
93
96
|
if (node.type === transform_1.schema.nodes.text && node.marks.length) {
|
|
94
97
|
const deleteMark = node.marks.find((mark) => mark.type === transform_1.schema.marks.tracked_delete);
|
|
@@ -100,7 +103,6 @@ function isDeletedText(node) {
|
|
|
100
103
|
}
|
|
101
104
|
return false;
|
|
102
105
|
}
|
|
103
|
-
exports.isDeletedText = isDeletedText;
|
|
104
106
|
function getActualTextContent(fragment) {
|
|
105
107
|
let finalContent = '';
|
|
106
108
|
function getContent(fragment) {
|
|
@@ -116,7 +118,6 @@ function getActualTextContent(fragment) {
|
|
|
116
118
|
getContent(fragment);
|
|
117
119
|
return finalContent;
|
|
118
120
|
}
|
|
119
|
-
exports.getActualTextContent = getActualTextContent;
|
|
120
121
|
function sanitizeAttrsChange(newAttr, currentAttrs) {
|
|
121
122
|
return Object.keys(newAttr).reduce((acc, attr) => {
|
|
122
123
|
const key = attr;
|
|
@@ -130,7 +131,6 @@ function sanitizeAttrsChange(newAttr, currentAttrs) {
|
|
|
130
131
|
return acc;
|
|
131
132
|
}, {});
|
|
132
133
|
}
|
|
133
|
-
exports.sanitizeAttrsChange = sanitizeAttrsChange;
|
|
134
134
|
const classNames = new Map([
|
|
135
135
|
[track_changes_plugin_1.CHANGE_OPERATION.insert, 'inserted'],
|
|
136
136
|
[track_changes_plugin_1.CHANGE_OPERATION.delete, 'deleted'],
|
package/dist/cjs/lib/utils.js
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.getLastTitleNode = exports.getInsertPos = exports.createToggleButton = exports.isEditAllowed = exports.isBodyLocked = exports.cleanItemValues = exports.shouldRenderField = exports.hasParent = exports.isNotNull = exports.createHeader = exports.isSelectionInBody = exports.isSelectionInNode = exports.isChildOfNodeTypes = exports.findParentElement = exports.findParentSection = exports.findParentNodeWithIdValue = exports.findParentNodeWithId = exports.getChildOfType = exports.getMatchingDescendant = exports.getMatchingChild =
|
|
18
|
+
exports.getLastTitleNode = exports.getInsertPos = exports.createToggleButton = exports.isEditAllowed = exports.isBodyLocked = exports.cleanItemValues = exports.shouldRenderField = exports.hasParent = exports.isNotNull = exports.createHeader = exports.isSelectionInBody = exports.isSelectionInNode = exports.isChildOfNodeTypes = exports.findParentElement = exports.findParentSection = exports.findParentNodeWithIdValue = exports.findParentNodeWithId = exports.getChildOfType = exports.getMatchingDescendant = exports.getMatchingChild = void 0;
|
|
19
|
+
exports.iterateChildren = iterateChildren;
|
|
19
20
|
const transform_1 = require("@manuscripts/transform");
|
|
20
21
|
const prosemirror_utils_1 = require("prosemirror-utils");
|
|
21
22
|
const config_1 = require("../components/references/ReferenceForm/config");
|
|
@@ -32,7 +33,6 @@ function* iterateChildren(node, recurse = false) {
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
|
-
exports.iterateChildren = iterateChildren;
|
|
36
36
|
const getMatchingChild = (parent, matcher, deep = false) => {
|
|
37
37
|
for (const node of iterateChildren(parent, deep)) {
|
|
38
38
|
if (matcher(node)) {
|
package/dist/cjs/lib/view.js
CHANGED
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
30
|
}) : function(o, v) {
|
|
31
31
|
o["default"] = v;
|
|
32
32
|
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
+
var ownKeys = function(o) {
|
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
+
var ar = [];
|
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
+
return ar;
|
|
39
|
+
};
|
|
40
|
+
return ownKeys(o);
|
|
41
|
+
};
|
|
42
|
+
return function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
40
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
51
|
exports.deleteNode = exports.updateNodeAttrs = exports.findChildrenAttrsByType = exports.findChildrenByType = exports.findChildByType = exports.findChildByID = void 0;
|
|
42
52
|
const transform_1 = require("@manuscripts/transform");
|
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
30
|
}) : function(o, v) {
|
|
31
31
|
o["default"] = v;
|
|
32
32
|
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
+
var ownKeys = function(o) {
|
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
+
var ar = [];
|
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
+
return ar;
|
|
39
|
+
};
|
|
40
|
+
return ownKeys(o);
|
|
41
|
+
};
|
|
42
|
+
return function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
40
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
51
|
exports.getBibliographyPluginState = exports.buildDecorations = exports.bibliographyKey = void 0;
|
|
42
52
|
const transform_1 = require("@manuscripts/transform");
|
|
@@ -65,8 +65,8 @@ const buildFootnotesElementState = (container, element) => {
|
|
|
65
65
|
const orderedFootnoteIDs = [];
|
|
66
66
|
inlineFootnotes.forEach(({ node, pos }) => {
|
|
67
67
|
const inlineFootnote = node;
|
|
68
|
-
const rids = inlineFootnote.attrs.rids;
|
|
69
|
-
if (rids.
|
|
68
|
+
const rids = inlineFootnote.attrs.rids.filter((rid) => footnoteIDs.has(rid));
|
|
69
|
+
if (!rids.length) {
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
if (container[1]) {
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.getNewMatch = getNewMatch;
|
|
19
|
+
exports.getClosestMatch = getClosestMatch;
|
|
20
|
+
exports.getMatches = getMatches;
|
|
19
21
|
const track_changes_utils_1 = require("../../lib/track-changes-utils");
|
|
20
22
|
function getNewMatch(side, current, selection, matches) {
|
|
21
23
|
if (current < 0) {
|
|
@@ -30,7 +32,6 @@ function getNewMatch(side, current, selection, matches) {
|
|
|
30
32
|
}
|
|
31
33
|
return newMatch;
|
|
32
34
|
}
|
|
33
|
-
exports.getNewMatch = getNewMatch;
|
|
34
35
|
function getClosestMatch(side, selection, matches) {
|
|
35
36
|
for (let i = 0; i < matches.length; i++) {
|
|
36
37
|
const match = matches[i];
|
|
@@ -40,7 +41,6 @@ function getClosestMatch(side, selection, matches) {
|
|
|
40
41
|
}
|
|
41
42
|
return 0;
|
|
42
43
|
}
|
|
43
|
-
exports.getClosestMatch = getClosestMatch;
|
|
44
44
|
function removeDiacritics(str) {
|
|
45
45
|
return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
|
46
46
|
}
|
|
@@ -74,4 +74,3 @@ function getMatches(doc, value, caseSensitive, ignoreDiacritics) {
|
|
|
74
74
|
});
|
|
75
75
|
return matches;
|
|
76
76
|
}
|
|
77
|
-
exports.getMatches = getMatches;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildPluginState =
|
|
3
|
+
exports.buildPluginState = buildPluginState;
|
|
4
4
|
const transform_1 = require("@manuscripts/transform");
|
|
5
5
|
const prosemirror_utils_1 = require("prosemirror-utils");
|
|
6
6
|
const prosemirror_view_1 = require("prosemirror-view");
|
|
@@ -95,7 +95,6 @@ function buildPluginState(state, props) {
|
|
|
95
95
|
});
|
|
96
96
|
return { decorations: prosemirror_view_1.DecorationSet.create(state.doc, decorations) };
|
|
97
97
|
}
|
|
98
|
-
exports.buildPluginState = buildPluginState;
|
|
99
98
|
const getUsedSectionCategoryIDs = (state) => {
|
|
100
99
|
const sections = (0, prosemirror_utils_1.findChildrenByType)(state.doc, transform_1.schema.nodes.section);
|
|
101
100
|
const used = new Set();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.hasAutoCompletionSlack = hasAutoCompletionSlack;
|
|
4
|
+
exports.checkForCompletion = checkForCompletion;
|
|
4
5
|
const transform_1 = require("@manuscripts/transform");
|
|
5
6
|
const prosemirror_utils_1 = require("prosemirror-utils");
|
|
6
7
|
const track_changes_utils_1 = require("../../lib/track-changes-utils");
|
|
@@ -28,7 +29,6 @@ function hasAutoCompletionSlack(node, category) {
|
|
|
28
29
|
}
|
|
29
30
|
return null;
|
|
30
31
|
}
|
|
31
|
-
exports.hasAutoCompletionSlack = hasAutoCompletionSlack;
|
|
32
32
|
function checkForCompletion(state) {
|
|
33
33
|
const section = (0, prosemirror_utils_1.findParentNodeOfTypeClosestToPos)(state.selection.$from, transform_1.schema.nodes.section);
|
|
34
34
|
if (!section) {
|
|
@@ -47,4 +47,3 @@ function checkForCompletion(state) {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
exports.checkForCompletion = checkForCompletion;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.polyfillDom =
|
|
18
|
+
exports.polyfillDom = polyfillDom;
|
|
19
19
|
function polyfillDom() {
|
|
20
20
|
window.scrollBy = jest.fn();
|
|
21
21
|
document.getSelection = jest.fn(() => ({
|
|
@@ -32,4 +32,3 @@ function polyfillDom() {
|
|
|
32
32
|
type: 'None',
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
35
|
-
exports.polyfillDom = polyfillDom;
|
|
@@ -18,7 +18,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
21
|
+
exports.parseDoc = parseDoc;
|
|
22
|
+
exports.setupEditor = setupEditor;
|
|
22
23
|
const transform_1 = require("@manuscripts/transform");
|
|
23
24
|
const jest_prosemirror_1 = require("jest-prosemirror");
|
|
24
25
|
const prosemirror_state_1 = require("prosemirror-state");
|
|
@@ -39,7 +40,6 @@ jest.mock('@manuscripts/transform', () => {
|
|
|
39
40
|
function parseDoc(json) {
|
|
40
41
|
return transform_1.schema.nodeFromJSON(json);
|
|
41
42
|
}
|
|
42
|
-
exports.parseDoc = parseDoc;
|
|
43
43
|
function setupEditor() {
|
|
44
44
|
(0, polyfill_dom_1.polyfillDom)();
|
|
45
45
|
const props = { ...default_editor_data_1.defaultEditorProps };
|
|
@@ -63,4 +63,3 @@ function setupEditor() {
|
|
|
63
63
|
});
|
|
64
64
|
return jest_prosemirror_1.ProsemirrorTestChain.of(view);
|
|
65
65
|
}
|
|
66
|
-
exports.setupEditor = setupEditor;
|
package/dist/cjs/versions.js
CHANGED
|
@@ -18,7 +18,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.createSubViewAsync =
|
|
21
|
+
exports.createSubViewAsync = createSubViewAsync;
|
|
22
22
|
const react_1 = __importDefault(require("react"));
|
|
23
23
|
const react_dom_1 = require("react-dom");
|
|
24
24
|
const client_1 = require("react-dom/client");
|
|
@@ -65,5 +65,4 @@ function createSubViewAsync(props, Component, componentProps, node, getPos, view
|
|
|
65
65
|
});
|
|
66
66
|
return res;
|
|
67
67
|
}
|
|
68
|
-
exports.createSubViewAsync = createSubViewAsync;
|
|
69
68
|
exports.default = createSubView;
|
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
30
|
}) : function(o, v) {
|
|
31
31
|
o["default"] = v;
|
|
32
32
|
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
+
var ownKeys = function(o) {
|
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
+
var ar = [];
|
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
+
return ar;
|
|
39
|
+
};
|
|
40
|
+
return ownKeys(o);
|
|
41
|
+
};
|
|
42
|
+
return function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
40
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
51
|
exports.EquationEditableView = void 0;
|
|
42
52
|
const prosemirror_state_1 = require("prosemirror-state");
|
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
30
|
}) : function(o, v) {
|
|
31
31
|
o["default"] = v;
|
|
32
32
|
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
+
var ownKeys = function(o) {
|
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
+
var ar = [];
|
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
+
return ar;
|
|
39
|
+
};
|
|
40
|
+
return ownKeys(o);
|
|
41
|
+
};
|
|
42
|
+
return function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
52
|
};
|
|
@@ -54,7 +64,7 @@ var figurePositions;
|
|
|
54
64
|
figurePositions["left"] = "half-left";
|
|
55
65
|
figurePositions["right"] = "half-right";
|
|
56
66
|
figurePositions["default"] = "";
|
|
57
|
-
})(figurePositions
|
|
67
|
+
})(figurePositions || (exports.figurePositions = figurePositions = {}));
|
|
58
68
|
class ImageElementView extends block_view_1.default {
|
|
59
69
|
constructor() {
|
|
60
70
|
super(...arguments);
|
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
30
|
}) : function(o, v) {
|
|
31
31
|
o["default"] = v;
|
|
32
32
|
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
+
var ownKeys = function(o) {
|
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
+
var ar = [];
|
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
+
return ar;
|
|
39
|
+
};
|
|
40
|
+
return ownKeys(o);
|
|
41
|
+
};
|
|
42
|
+
return function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
40
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
51
|
exports.InlineEquationEditableView = void 0;
|
|
42
52
|
const prosemirror_state_1 = require("prosemirror-state");
|
|
@@ -180,9 +180,10 @@ class InlineFootnoteView extends base_node_view_1.BaseNodeView {
|
|
|
180
180
|
const state = this.view.state;
|
|
181
181
|
const fn = (0, footnotes_1.getFootnotesElementState)(state, this.node.attrs.id);
|
|
182
182
|
if (!fn) {
|
|
183
|
+
this.dom.innerText = '?';
|
|
183
184
|
return;
|
|
184
185
|
}
|
|
185
|
-
this.dom.innerText = fn.labels.get(this.node.attrs.id) || '';
|
|
186
|
+
this.dom.innerText = fn.labels.get(this.node.attrs.id) || '?';
|
|
186
187
|
}
|
|
187
188
|
deselectNode() {
|
|
188
189
|
this.dom.classList.remove('footnote-marker-selected');
|
|
@@ -62,8 +62,8 @@ const buildFootnotesElementState = (container, element) => {
|
|
|
62
62
|
const orderedFootnoteIDs = [];
|
|
63
63
|
inlineFootnotes.forEach(({ node, pos }) => {
|
|
64
64
|
const inlineFootnote = node;
|
|
65
|
-
const rids = inlineFootnote.attrs.rids;
|
|
66
|
-
if (rids.
|
|
65
|
+
const rids = inlineFootnote.attrs.rids.filter((rid) => footnoteIDs.has(rid));
|
|
66
|
+
if (!rids.length) {
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
if (container[1]) {
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.3.
|
|
1
|
+
export const VERSION = '3.3.2';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
|
@@ -174,9 +174,10 @@ export class InlineFootnoteView extends BaseNodeView {
|
|
|
174
174
|
const state = this.view.state;
|
|
175
175
|
const fn = getFootnotesElementState(state, this.node.attrs.id);
|
|
176
176
|
if (!fn) {
|
|
177
|
+
this.dom.innerText = '?';
|
|
177
178
|
return;
|
|
178
179
|
}
|
|
179
|
-
this.dom.innerText = fn.labels.get(this.node.attrs.id) || '';
|
|
180
|
+
this.dom.innerText = fn.labels.get(this.node.attrs.id) || '?';
|
|
180
181
|
}
|
|
181
182
|
deselectNode() {
|
|
182
183
|
this.dom.classList.remove('footnote-marker-selected');
|
package/dist/types/commands.d.ts
CHANGED
|
@@ -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 { FootnotesElementNode, ManuscriptEditorState, ManuscriptEditorView, ManuscriptMarkType, ManuscriptNode, ManuscriptNodeType, ManuscriptResolvedPos, ManuscriptTransaction, SectionCategory } from '@manuscripts/transform';
|
|
16
|
+
import { FootnotesElementNode, ManuscriptEditorState, ManuscriptEditorView, ManuscriptMarkType, ManuscriptNode, ManuscriptNodeSelection, ManuscriptNodeType, ManuscriptResolvedPos, ManuscriptTextSelection, ManuscriptTransaction, SectionCategory } from '@manuscripts/transform';
|
|
17
17
|
import { Attrs, NodeType, ResolvedPos } from 'prosemirror-model';
|
|
18
|
-
import { EditorState,
|
|
18
|
+
import { EditorState, Selection, Transaction } from 'prosemirror-state';
|
|
19
19
|
import { EditorView } from 'prosemirror-view';
|
|
20
20
|
import { FileAttachment } from './lib/files';
|
|
21
21
|
import { EditorAction } from './types';
|
|
22
22
|
export type Dispatch = (tr: ManuscriptTransaction) => void;
|
|
23
23
|
export declare const addToStart: (state: ManuscriptEditorState, dispatch?: Dispatch) => boolean;
|
|
24
24
|
export declare const markActive: (type: ManuscriptMarkType) => (state: ManuscriptEditorState) => boolean;
|
|
25
|
-
export declare const isNodeSelection: (selection: Selection) => selection is
|
|
25
|
+
export declare const isNodeSelection: (selection: Selection) => selection is ManuscriptNodeSelection;
|
|
26
26
|
export declare const blockActive: (type: ManuscriptNodeType) => (state: ManuscriptEditorState) => boolean;
|
|
27
27
|
export declare const canInsert: (type: ManuscriptNodeType) => (state: ManuscriptEditorState) => boolean;
|
|
28
28
|
export declare const createSelection: (nodeType: ManuscriptNodeType, position: number, doc: ManuscriptNode) => Selection;
|
|
@@ -62,7 +62,7 @@ export declare const insertList: (type: ManuscriptNodeType, style?: string) => (
|
|
|
62
62
|
export declare const insertBibliographySection: () => boolean;
|
|
63
63
|
export declare const insertTOCSection: () => boolean;
|
|
64
64
|
export declare const isAtStartOfTextBlock: (state: ManuscriptEditorState, $cursor: ResolvedPos, view?: ManuscriptEditorView) => boolean;
|
|
65
|
-
export declare const isTextSelection: (selection: Selection) => selection is
|
|
65
|
+
export declare const isTextSelection: (selection: Selection) => selection is ManuscriptTextSelection;
|
|
66
66
|
export declare const ignoreAtomBlockNodeBackward: (state: ManuscriptEditorState, dispatch?: Dispatch, view?: ManuscriptEditorView) => boolean;
|
|
67
67
|
export declare const ignoreMetaNodeBackspaceCommand: (state: ManuscriptEditorState) => boolean;
|
|
68
68
|
export declare const isAtEndOfTextBlock: (state: ManuscriptEditorState, $cursor: ResolvedPos, view?: ManuscriptEditorView) => boolean;
|
|
@@ -77,9 +77,9 @@ export declare const createAndFillTableElement: (attrs?: Attrs, config?: TableCo
|
|
|
77
77
|
export declare const isCommentingAllowed: (type: NodeType) => boolean;
|
|
78
78
|
export declare const addNodeComment: (node: ManuscriptNode, state: ManuscriptEditorState, dispatch?: Dispatch) => boolean;
|
|
79
79
|
export declare const addInlineComment: (state: ManuscriptEditorState, dispatch?: Dispatch) => boolean;
|
|
80
|
-
export declare const addRows: (direction:
|
|
81
|
-
export declare const addHeaderRow: (direction:
|
|
82
|
-
export declare const addColumns: (direction:
|
|
80
|
+
export declare const addRows: (direction: "top" | "bottom") => (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
|
|
81
|
+
export declare const addHeaderRow: (direction: "above" | "below") => (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
|
|
82
|
+
export declare const addColumns: (direction: "right" | "left") => (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
|
|
83
83
|
export declare const autoComplete: (state: ManuscriptEditorState, dispatch?: Dispatch) => boolean;
|
|
84
84
|
export declare const activateSearch: (state: ManuscriptEditorState, dispatch?: Dispatch) => boolean;
|
|
85
85
|
export declare const activateSearchReplace: (state: ManuscriptEditorState, dispatch?: Dispatch) => boolean;
|
|
@@ -4,5 +4,5 @@ export interface ChangeHandlingFormProps<Values> {
|
|
|
4
4
|
id?: string;
|
|
5
5
|
formRef?: MutableRefObject<HTMLFormElement | null>;
|
|
6
6
|
}
|
|
7
|
-
export declare const ChangeHandlingForm: <Values>(props:
|
|
7
|
+
export declare const ChangeHandlingForm: <Values>(props: PropsWithChildren<ChangeHandlingFormProps<Values>>) => React.JSX.Element;
|
|
8
8
|
export declare const FlexForm: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & React.RefAttributes<HTMLFormElement>>, any, {}, never>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AffiliationAttrs, ContributorAttrs } from '../../lib/authors';
|
|
3
2
|
export declare const affiliationsReducer: (state: AffiliationAttrs[], action: import("../../lib/array-reducer").Action<AffiliationAttrs>) => AffiliationAttrs[];
|
|
4
3
|
export declare const useManageAffiliations: (selection: ContributorAttrs | undefined, $affiliations: AffiliationAttrs[]) => {
|