@manuscripts/transform 2.1.10-LEAN-3321-1 → 2.1.10-LEAN-3150

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.
@@ -743,9 +743,6 @@ class JATSExporter {
743
743
  return ['fn', attrs, 0];
744
744
  },
745
745
  footnotes_element: (node) => {
746
- if (!node.textContent) {
747
- return '';
748
- }
749
746
  const kind = node.attrs.kind;
750
747
  let tag = 'fn-group';
751
748
  if (kind && kind.includes('table')) {
@@ -15,12 +15,7 @@ exports.affiliation = {
15
15
  county: { default: '' },
16
16
  city: { default: '' },
17
17
  priority: { default: undefined },
18
- email: {
19
- default: {
20
- href: undefined,
21
- text: undefined,
22
- },
23
- },
18
+ email: { default: undefined },
24
19
  dataTracked: { default: null },
25
20
  },
26
21
  group: 'block',
@@ -19,6 +19,7 @@ exports.tableCol = exports.tableColGroup = void 0;
19
19
  exports.tableColGroup = {
20
20
  content: 'table_col+',
21
21
  group: 'block',
22
+ tableRole: 'colgroup',
22
23
  parseDOM: [
23
24
  {
24
25
  tag: 'colgroup',
@@ -33,6 +34,7 @@ exports.tableCol = {
33
34
  width: { default: '' },
34
35
  },
35
36
  group: 'block',
37
+ tableRole: 'col',
36
38
  parseDOM: [
37
39
  {
38
40
  tag: 'col',
@@ -19,9 +19,8 @@ exports.tableElementFooter = void 0;
19
19
  exports.tableElementFooter = {
20
20
  attrs: {
21
21
  id: { default: '' },
22
- dataTracked: { default: null }
23
22
  },
24
- content: '(paragraph | footnotes_element)*',
23
+ content: '(paragraph | footnotes_element)+',
25
24
  group: 'block element',
26
25
  toDOM: () => ['table-wrap-foot', 0],
27
26
  };
@@ -735,9 +735,6 @@ export class JATSExporter {
735
735
  return ['fn', attrs, 0];
736
736
  },
737
737
  footnotes_element: (node) => {
738
- if (!node.textContent) {
739
- return '';
740
- }
741
738
  const kind = node.attrs.kind;
742
739
  let tag = 'fn-group';
743
740
  if (kind && kind.includes('table')) {
@@ -12,12 +12,7 @@ export const affiliation = {
12
12
  county: { default: '' },
13
13
  city: { default: '' },
14
14
  priority: { default: undefined },
15
- email: {
16
- default: {
17
- href: undefined,
18
- text: undefined,
19
- },
20
- },
15
+ email: { default: undefined },
21
16
  dataTracked: { default: null },
22
17
  },
23
18
  group: 'block',
@@ -16,6 +16,7 @@
16
16
  export const tableColGroup = {
17
17
  content: 'table_col+',
18
18
  group: 'block',
19
+ tableRole: 'colgroup',
19
20
  parseDOM: [
20
21
  {
21
22
  tag: 'colgroup',
@@ -30,6 +31,7 @@ export const tableCol = {
30
31
  width: { default: '' },
31
32
  },
32
33
  group: 'block',
34
+ tableRole: 'col',
33
35
  parseDOM: [
34
36
  {
35
37
  tag: 'col',
@@ -16,9 +16,8 @@
16
16
  export const tableElementFooter = {
17
17
  attrs: {
18
18
  id: { default: '' },
19
- dataTracked: { default: null }
20
19
  },
21
- content: '(paragraph | footnotes_element)*',
20
+ content: '(paragraph | footnotes_element)+',
22
21
  group: 'block element',
23
22
  toDOM: () => ['table-wrap-foot', 0],
24
23
  };
@@ -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 { NodeSpec } from 'prosemirror-model';
17
- import { ManuscriptNode } from '../types';
16
+ import { ManuscriptNode, TableNodeSpec } from '../types';
17
+ export type TableColGroupNode = ManuscriptNode;
18
18
  export interface TableColNode extends ManuscriptNode {
19
19
  attrs: {
20
20
  width: string;
21
21
  };
22
22
  }
23
- export declare const tableColGroup: NodeSpec;
24
- export declare const tableCol: NodeSpec;
23
+ export declare const tableColGroup: TableNodeSpec;
24
+ export declare const tableCol: TableNodeSpec;
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.10-LEAN-3321-1",
4
+ "version": "2.1.10-LEAN-3150",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",