@manuscripts/transform 2.3.25 → 2.3.26-LEAN-3923.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.
@@ -520,6 +520,10 @@ class Decoder {
520
520
  [json_schema_1.ObjectTypes.AuthorNotes]: (data) => {
521
521
  const model = data;
522
522
  const content = model.containedObjectIDs.map((id) => this.decode(this.modelMap.get(id)));
523
+ console.log('content', content);
524
+ if (content.length == 0) {
525
+ return null;
526
+ }
523
527
  return schema_1.schema.nodes.author_notes.createAndFill({
524
528
  id: model._id,
525
529
  }, [
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "2.3.25";
4
+ exports.VERSION = "2.3.26-LEAN-3923.0";
@@ -511,6 +511,10 @@ export class Decoder {
511
511
  [ObjectTypes.AuthorNotes]: (data) => {
512
512
  const model = data;
513
513
  const content = model.containedObjectIDs.map((id) => this.decode(this.modelMap.get(id)));
514
+ console.log('content', content);
515
+ if (content.length == 0) {
516
+ return null;
517
+ }
514
518
  return schema.nodes.author_notes.createAndFill({
515
519
  id: model._id,
516
520
  }, [
@@ -1 +1 @@
1
- export const VERSION = "2.3.25";
1
+ export const VERSION = "2.3.26-LEAN-3923.0";
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export declare const TABLE_CELL_STYLES: readonly ["backgroundColor", "border-top", "border-right", "border-bottom", "border-left", "verticalAlign", "textAlign"];
17
- export type TableCellStyleKey = typeof TABLE_CELL_STYLES[number];
17
+ export type TableCellStyleKey = (typeof TABLE_CELL_STYLES)[number];
18
18
  export declare const serializeTableCellStyles: (styles: {
19
19
  backgroundColor?: string | null | undefined;
20
20
  "border-top"?: string | null | undefined;
@@ -1 +1 @@
1
- export declare const VERSION = "2.3.25";
1
+ export declare const VERSION = "2.3.26-LEAN-3923.0";
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.3.25",
4
+ "version": "2.3.26-LEAN-3923.0",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",