@manuscripts/transform 2.1.8 → 2.1.9-LEAN-3321
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/jats/jats-exporter.js +1 -1
- package/dist/cjs/schema/nodes/table_col.js +0 -2
- package/dist/cjs/schema/nodes/table_element_footer.js +2 -1
- package/dist/es/jats/jats-exporter.js +1 -1
- package/dist/es/schema/nodes/table_col.js +0 -2
- package/dist/es/schema/nodes/table_element_footer.js +2 -1
- package/dist/types/schema/nodes/table_col.d.ts +4 -4
- package/package.json +1 -1
|
@@ -620,7 +620,7 @@ class JATSExporter {
|
|
|
620
620
|
title: () => '',
|
|
621
621
|
affiliations: () => '',
|
|
622
622
|
contributors: () => '',
|
|
623
|
-
table_element_footer: () => ['table-wrap-foot', 0],
|
|
623
|
+
table_element_footer: (node) => node.textContent ? ['table-wrap-foot', 0] : '',
|
|
624
624
|
contributor: () => '',
|
|
625
625
|
affiliation: () => '',
|
|
626
626
|
attribution: () => ['attrib', 0],
|
|
@@ -19,7 +19,6 @@ exports.tableCol = exports.tableColGroup = void 0;
|
|
|
19
19
|
exports.tableColGroup = {
|
|
20
20
|
content: 'table_col+',
|
|
21
21
|
group: 'block',
|
|
22
|
-
tableRole: 'colgroup',
|
|
23
22
|
parseDOM: [
|
|
24
23
|
{
|
|
25
24
|
tag: 'colgroup',
|
|
@@ -34,7 +33,6 @@ exports.tableCol = {
|
|
|
34
33
|
width: { default: '' },
|
|
35
34
|
},
|
|
36
35
|
group: 'block',
|
|
37
|
-
tableRole: 'col',
|
|
38
36
|
parseDOM: [
|
|
39
37
|
{
|
|
40
38
|
tag: 'col',
|
|
@@ -19,8 +19,9 @@ exports.tableElementFooter = void 0;
|
|
|
19
19
|
exports.tableElementFooter = {
|
|
20
20
|
attrs: {
|
|
21
21
|
id: { default: '' },
|
|
22
|
+
dataTracked: { default: null }
|
|
22
23
|
},
|
|
23
|
-
content: '(paragraph | footnotes_element)
|
|
24
|
+
content: '(paragraph | footnotes_element)*',
|
|
24
25
|
group: 'block element',
|
|
25
26
|
toDOM: () => ['table-wrap-foot', 0],
|
|
26
27
|
};
|
|
@@ -612,7 +612,7 @@ export class JATSExporter {
|
|
|
612
612
|
title: () => '',
|
|
613
613
|
affiliations: () => '',
|
|
614
614
|
contributors: () => '',
|
|
615
|
-
table_element_footer: () => ['table-wrap-foot', 0],
|
|
615
|
+
table_element_footer: (node) => node.textContent ? ['table-wrap-foot', 0] : '',
|
|
616
616
|
contributor: () => '',
|
|
617
617
|
affiliation: () => '',
|
|
618
618
|
attribution: () => ['attrib', 0],
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
export const tableColGroup = {
|
|
17
17
|
content: 'table_col+',
|
|
18
18
|
group: 'block',
|
|
19
|
-
tableRole: 'colgroup',
|
|
20
19
|
parseDOM: [
|
|
21
20
|
{
|
|
22
21
|
tag: 'colgroup',
|
|
@@ -31,7 +30,6 @@ export const tableCol = {
|
|
|
31
30
|
width: { default: '' },
|
|
32
31
|
},
|
|
33
32
|
group: 'block',
|
|
34
|
-
tableRole: 'col',
|
|
35
33
|
parseDOM: [
|
|
36
34
|
{
|
|
37
35
|
tag: 'col',
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
export const tableElementFooter = {
|
|
17
17
|
attrs: {
|
|
18
18
|
id: { default: '' },
|
|
19
|
+
dataTracked: { default: null }
|
|
19
20
|
},
|
|
20
|
-
content: '(paragraph | footnotes_element)
|
|
21
|
+
content: '(paragraph | footnotes_element)*',
|
|
21
22
|
group: 'block element',
|
|
22
23
|
toDOM: () => ['table-wrap-foot', 0],
|
|
23
24
|
};
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import { NodeSpec } from 'prosemirror-model';
|
|
17
|
+
import { ManuscriptNode } from '../types';
|
|
18
18
|
export interface TableColNode extends ManuscriptNode {
|
|
19
19
|
attrs: {
|
|
20
20
|
width: string;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
export declare const tableColGroup:
|
|
24
|
-
export declare const tableCol:
|
|
23
|
+
export declare const tableColGroup: NodeSpec;
|
|
24
|
+
export declare const tableCol: NodeSpec;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/transform",
|
|
3
3
|
"description": "ProseMirror transformer for Manuscripts applications",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.9-LEAN-3321",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|