@manuscripts/transform 1.5.8-LEAN-3030-3 → 2.0.0-LEAN-3074-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.
@@ -17,7 +17,7 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.tableElement = void 0;
19
19
  exports.tableElement = {
20
- content: '(table | placeholder) figcaption? table_element_footer? (listing | placeholder)',
20
+ content: '(table | placeholder) table_element_footer? figcaption? (listing | placeholder)',
21
21
  attrs: {
22
22
  id: { default: '' },
23
23
  paragraphStyle: { default: '' },
@@ -564,7 +564,7 @@ class Decoder {
564
564
  const comments = this.createCommentNodes(model);
565
565
  comments.forEach((c) => this.comments.set(c.attrs.id, c));
566
566
  const content = tableElementFooter
567
- ? [table, figcaption, tableElementFooter]
567
+ ? [table, tableElementFooter, figcaption]
568
568
  : [table, figcaption];
569
569
  if (model.listingID) {
570
570
  const listing = this.createListing(model.listingID);
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export const tableElement = {
17
- content: '(table | placeholder) figcaption? table_element_footer? (listing | placeholder)',
17
+ content: '(table | placeholder) table_element_footer? figcaption? (listing | placeholder)',
18
18
  attrs: {
19
19
  id: { default: '' },
20
20
  paragraphStyle: { default: '' },
@@ -555,7 +555,7 @@ export class Decoder {
555
555
  const comments = this.createCommentNodes(model);
556
556
  comments.forEach((c) => this.comments.set(c.attrs.id, c));
557
557
  const content = tableElementFooter
558
- ? [table, figcaption, tableElementFooter]
558
+ ? [table, tableElementFooter, figcaption]
559
559
  : [table, figcaption];
560
560
  if (model.listingID) {
561
561
  const listing = this.createListing(model.listingID);
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": "1.5.8-LEAN-3030-3",
4
+ "version": "2.0.0-LEAN-3074-2",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -76,10 +76,5 @@
76
76
  "prosemirror-view": "^1.29.1",
77
77
  "rimraf": "^3.0.2",
78
78
  "typescript": "^4.0.5"
79
- },
80
- "peerDependencies": {
81
- "prosemirror-model": "^1.18.3",
82
- "prosemirror-state": "^1.4.2",
83
- "prosemirror-view": "^1.29.1"
84
79
  }
85
- }
80
+ }