@manuscripts/body-editor 2.0.13 → 2.0.14-LEAN-3821.0
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/commands.js +1 -1
- package/dist/cjs/versions.js +1 -1
- package/dist/es/commands.js +1 -1
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +3 -3
- package/styles/Editor.css +12 -0
package/dist/cjs/commands.js
CHANGED
|
@@ -807,8 +807,8 @@ const createAndFillTableElement = (state, tableConfig) => {
|
|
|
807
807
|
tableRows.push(createRow('table_cell'));
|
|
808
808
|
}
|
|
809
809
|
return nodes.table_element.createChecked({}, [
|
|
810
|
-
nodes.table.create({}, tableRows),
|
|
811
810
|
createAndFillFigcaptionElement(state),
|
|
811
|
+
nodes.table.create({}, tableRows),
|
|
812
812
|
nodes.listing.create(),
|
|
813
813
|
]);
|
|
814
814
|
};
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/commands.js
CHANGED
|
@@ -768,8 +768,8 @@ export const createAndFillTableElement = (state, tableConfig) => {
|
|
|
768
768
|
tableRows.push(createRow('table_cell'));
|
|
769
769
|
}
|
|
770
770
|
return nodes.table_element.createChecked({}, [
|
|
771
|
-
nodes.table.create({}, tableRows),
|
|
772
771
|
createAndFillFigcaptionElement(state),
|
|
772
|
+
nodes.table.create({}, tableRows),
|
|
773
773
|
nodes.listing.create(),
|
|
774
774
|
]);
|
|
775
775
|
};
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.0.
|
|
1
|
+
export const VERSION = '2.0.14-LEAN-3821.0';
|
|
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 = "2.0.
|
|
1
|
+
export declare const VERSION = "2.0.14-LEAN-3821.0";
|
|
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.0.
|
|
4
|
+
"version": "2.0.14-LEAN-3821.0",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@iarna/word-count": "^1.1.2",
|
|
33
33
|
"@manuscripts/json-schema": "2.2.10",
|
|
34
34
|
"@manuscripts/library": "1.3.10",
|
|
35
|
-
"@manuscripts/style-guide": "2.0.
|
|
35
|
+
"@manuscripts/style-guide": "2.0.3-LEAN-3821.1",
|
|
36
36
|
"@manuscripts/track-changes-plugin": "1.7.17",
|
|
37
|
-
"@manuscripts/transform": "2.3.
|
|
37
|
+
"@manuscripts/transform": "2.3.22-LEAN-3821.1",
|
|
38
38
|
"@popperjs/core": "^2.11.8",
|
|
39
39
|
"astrocite-eutils": "^0.16.4",
|
|
40
40
|
"codemirror": "^5.58.1",
|
package/styles/Editor.css
CHANGED
|
@@ -296,6 +296,10 @@
|
|
|
296
296
|
word-wrap: break-word;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
+
.ProseMirror .block-table_element figcaption {
|
|
300
|
+
text-align: left;
|
|
301
|
+
}
|
|
302
|
+
|
|
299
303
|
.ProseMirror .caption-title:not(.empty-node) {
|
|
300
304
|
font-weight: bold;
|
|
301
305
|
}
|
|
@@ -316,6 +320,14 @@
|
|
|
316
320
|
content: 'Caption...';
|
|
317
321
|
}
|
|
318
322
|
|
|
323
|
+
.ProseMirror .block-table_element .caption-description.empty-node::before {
|
|
324
|
+
content: 'Table caption';
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.ProseMirror .block-table_element .caption-title.empty-node::before {
|
|
328
|
+
content: 'Table title';
|
|
329
|
+
}
|
|
330
|
+
|
|
319
331
|
.ProseMirror .suppress-caption .caption-description {
|
|
320
332
|
display: none;
|
|
321
333
|
}
|