@manuscripts/body-editor 3.12.57 → 3.12.59
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/references/ReferenceForm/styled-components.js +0 -1
- package/dist/cjs/lib/navigation-utils.js +15 -1
- package/dist/cjs/versions.js +1 -1
- package/dist/es/components/references/ReferenceForm/styled-components.js +0 -1
- package/dist/es/lib/navigation-utils.js +15 -1
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +1 -1
|
@@ -43,7 +43,6 @@ exports.ReferenceTextArea = (0, styled_components_1.default)(style_guide_1.TextA
|
|
|
43
43
|
`;
|
|
44
44
|
exports.FormFields = styled_components_1.default.div `
|
|
45
45
|
flex: 1;
|
|
46
|
-
overflow-y: auto;
|
|
47
46
|
`;
|
|
48
47
|
exports.DeleteButton = (0, styled_components_1.default)(style_guide_1.IconButton) `
|
|
49
48
|
background-color: ${(props) => props.theme.colors.background.primary} !important;
|
|
@@ -98,7 +98,21 @@ const focusNearestElement = (state, dispatch, view) => {
|
|
|
98
98
|
const { from } = view.state.selection;
|
|
99
99
|
const coords = view.coordsAtPos(from);
|
|
100
100
|
const container = getCursorContainer(view);
|
|
101
|
-
|
|
101
|
+
let target = findNearestTabbable(container, coords.top);
|
|
102
|
+
if (!target) {
|
|
103
|
+
const parent = (0, utils_1.findParentNodeWithIdValue)(view.state.selection);
|
|
104
|
+
const grandparent = parent
|
|
105
|
+
? (0, utils_1.findParentNodeWithIdValue)({
|
|
106
|
+
$from: view.state.doc.resolve(parent.pos),
|
|
107
|
+
})
|
|
108
|
+
: null;
|
|
109
|
+
if (grandparent) {
|
|
110
|
+
const dom = view.nodeDOM(grandparent.pos);
|
|
111
|
+
if (dom instanceof HTMLElement) {
|
|
112
|
+
target = findNearestTabbable(dom, coords.top);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
102
116
|
if (!target) {
|
|
103
117
|
return false;
|
|
104
118
|
}
|
package/dist/cjs/versions.js
CHANGED
|
@@ -37,7 +37,6 @@ export const ReferenceTextArea = styled(TextArea) `
|
|
|
37
37
|
`;
|
|
38
38
|
export const FormFields = styled.div `
|
|
39
39
|
flex: 1;
|
|
40
|
-
overflow-y: auto;
|
|
41
40
|
`;
|
|
42
41
|
export const DeleteButton = styled(IconButton) `
|
|
43
42
|
background-color: ${(props) => props.theme.colors.background.primary} !important;
|
|
@@ -89,7 +89,21 @@ export const focusNearestElement = (state, dispatch, view) => {
|
|
|
89
89
|
const { from } = view.state.selection;
|
|
90
90
|
const coords = view.coordsAtPos(from);
|
|
91
91
|
const container = getCursorContainer(view);
|
|
92
|
-
|
|
92
|
+
let target = findNearestTabbable(container, coords.top);
|
|
93
|
+
if (!target) {
|
|
94
|
+
const parent = findParentNodeWithIdValue(view.state.selection);
|
|
95
|
+
const grandparent = parent
|
|
96
|
+
? findParentNodeWithIdValue({
|
|
97
|
+
$from: view.state.doc.resolve(parent.pos),
|
|
98
|
+
})
|
|
99
|
+
: null;
|
|
100
|
+
if (grandparent) {
|
|
101
|
+
const dom = view.nodeDOM(grandparent.pos);
|
|
102
|
+
if (dom instanceof HTMLElement) {
|
|
103
|
+
target = findNearestTabbable(dom, coords.top);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
93
107
|
if (!target) {
|
|
94
108
|
return false;
|
|
95
109
|
}
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.12.
|
|
1
|
+
export const VERSION = '3.12.59';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.12.
|
|
1
|
+
export declare const VERSION = "3.12.59";
|
|
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": "3.12.
|
|
4
|
+
"version": "3.12.59",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|