pro-editor-schema 0.1.0 → 0.1.1

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/index.d.mts CHANGED
@@ -210,7 +210,7 @@ declare const KEYWORDSET_SCHEMA: Schema<readonly ["store", "ele-id", {
210
210
 
211
211
  declare const KEYWORD_SCHEMA: Schema<readonly ["store", "ele-id"], readonly ["data-pos"]>;
212
212
 
213
- declare const PUNC_SCHEMA: Schema<readonly ["store"], readonly ["ele-id", "data-role"]>;
213
+ declare const PUNC_SCHEMA: Schema<readonly ["store", "ele-id"], readonly ["data-role"]>;
214
214
 
215
215
  declare const LABEL_SCHEMA: Schema<readonly ["store", "ele-id"], readonly ["data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-cell-width", "data-paragraph-style", "data-table-orientation", "data-table-placement", "data-figure-placement", {
216
216
  readonly name: "fm-role";
package/dist/index.d.ts CHANGED
@@ -210,7 +210,7 @@ declare const KEYWORDSET_SCHEMA: Schema<readonly ["store", "ele-id", {
210
210
 
211
211
  declare const KEYWORD_SCHEMA: Schema<readonly ["store", "ele-id"], readonly ["data-pos"]>;
212
212
 
213
- declare const PUNC_SCHEMA: Schema<readonly ["store"], readonly ["ele-id", "data-role"]>;
213
+ declare const PUNC_SCHEMA: Schema<readonly ["store", "ele-id"], readonly ["data-role"]>;
214
214
 
215
215
  declare const LABEL_SCHEMA: Schema<readonly ["store", "ele-id"], readonly ["data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-cell-width", "data-paragraph-style", "data-table-orientation", "data-table-placement", "data-figure-placement", {
216
216
  readonly name: "fm-role";
package/dist/index.js CHANGED
@@ -300,7 +300,10 @@ var ATOM_TAGS_ALLOWED_CHILDREN = [
300
300
  { tagName: STRIKE_TAG, required: false },
301
301
  { tagName: SUB_TAG, required: false },
302
302
  { tagName: SUP_TAG, required: false },
303
- { tagName: HIGHLIGHTMARK_TAG, required: false }
303
+ { tagName: HIGHLIGHTMARK_TAG, required: false },
304
+ { tagName: SPAN_TAG, required: false },
305
+ { tagName: COMMENT_TAG, required: false },
306
+ { tagName: QUERY_TAG, required: false }
304
307
  ];
305
308
 
306
309
  // src/schema/elementSchemas/atoms/b.ts
@@ -738,7 +741,7 @@ var FIRSTNAME_SCHEMA = createSchema({
738
741
  tag: FIRSTNAME_TAG,
739
742
  requiredAttributes: [...ID_ATTRS],
740
743
  optionalAttributes: [],
741
- allowedChildTagNames: []
744
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
742
745
  });
743
746
 
744
747
  // src/schema/elementSchemas/elements/authors/surname.ts
@@ -747,7 +750,7 @@ var SURNAME_SCHEMA = createSchema({
747
750
  tag: SURNAME_TAG,
748
751
  requiredAttributes: [...ID_ATTRS],
749
752
  optionalAttributes: [],
750
- allowedChildTagNames: []
753
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
751
754
  });
752
755
 
753
756
  // src/schema/elementSchemas/elements/authors/honorific.ts
@@ -774,7 +777,7 @@ var EMAIL_SCHEMA = createSchema({
774
777
  tag: EMAIL_TAG,
775
778
  requiredAttributes: [...ID_ATTRS],
776
779
  optionalAttributes: [],
777
- allowedChildTagNames: []
780
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
778
781
  });
779
782
 
780
783
  // src/schema/elementSchemas/elements/authors/org.ts
@@ -816,7 +819,7 @@ var LINE_SCHEMA = createSchema({
816
819
  defaultValue: "add-element"
817
820
  }
818
821
  ],
819
- allowedChildTagNames: []
822
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
820
823
  });
821
824
 
822
825
  // src/schema/elementSchemas/elements/dialogue/speaker.ts
@@ -831,7 +834,7 @@ var SPEAKER_SCHEMA = createSchema({
831
834
  defaultValue: "add-element"
832
835
  }
833
836
  ],
834
- allowedChildTagNames: []
837
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
835
838
  });
836
839
 
837
840
  // src/schema/elementSchemas/elements/dialogue/dialogue.ts
@@ -927,7 +930,7 @@ var FIGSOURCE_SCHEMA = createSchema({
927
930
  tag: FIGSOURCE_TAG,
928
931
  requiredAttributes: [...ID_ATTRS],
929
932
  optionalAttributes: [],
930
- allowedChildTagNames: []
933
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
931
934
  });
932
935
 
933
936
  // src/schema/elementSchemas/elements/figure/fignote.ts
@@ -936,10 +939,10 @@ var FIGNOTE_SCHEMA = createSchema({
936
939
  tag: FIGNOTE_TAG,
937
940
  requiredAttributes: [...ID_ATTRS],
938
941
  optionalAttributes: [],
939
- allowedChildTagNames: []
942
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
940
943
  });
941
944
 
942
- // src/schema/elementSchemas/elements/figure/figure1.ts
945
+ // src/schema/elementSchemas/elements/figure/figure.ts
943
946
  var FIGURE_SCHEMA = createSchema({
944
947
  kind: "group",
945
948
  tag: FIGURE_TAG,
@@ -1027,16 +1030,16 @@ var KEYWORD_SCHEMA = createSchema({
1027
1030
  tag: KEYWORD_TAG,
1028
1031
  requiredAttributes: [...ID_ATTRS],
1029
1032
  optionalAttributes: ["data-pos"],
1030
- allowedChildTagNames: []
1033
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1031
1034
  });
1032
1035
 
1033
1036
  // src/schema/elementSchemas/elements/keywords/punc.ts
1034
1037
  var PUNC_SCHEMA = createSchema({
1035
1038
  kind: "element",
1036
1039
  tag: PUNC_TAG,
1037
- requiredAttributes: [ID_ATTRS[0]],
1038
- optionalAttributes: [ID_ATTRS[1], "data-role"],
1039
- allowedChildTagNames: []
1040
+ requiredAttributes: [...ID_ATTRS],
1041
+ optionalAttributes: ["data-role"],
1042
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1040
1043
  });
1041
1044
 
1042
1045
  // src/schema/elementSchemas/elements/label.ts
@@ -1052,7 +1055,7 @@ var LABEL_SCHEMA = createSchema({
1052
1055
  defaultValue: "false"
1053
1056
  }
1054
1057
  ],
1055
- allowedChildTagNames: []
1058
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1056
1059
  });
1057
1060
 
1058
1061
  // src/schema/elementSchemas/elements/list/token.ts
@@ -1208,7 +1211,7 @@ var LRH_SCHEMA = createSchema({
1208
1211
  tag: LRH_TAG,
1209
1212
  requiredAttributes: [...ID_ATTRS],
1210
1213
  optionalAttributes: [],
1211
- allowedChildTagNames: []
1214
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1212
1215
  });
1213
1216
 
1214
1217
  // src/schema/elementSchemas/elements/runningHeads/rrh.ts
@@ -1217,7 +1220,7 @@ var RRH_SCHEMA = createSchema({
1217
1220
  tag: RRH_TAG,
1218
1221
  requiredAttributes: [...ID_ATTRS],
1219
1222
  optionalAttributes: [],
1220
- allowedChildTagNames: []
1223
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1221
1224
  });
1222
1225
 
1223
1226
  // src/schema/elementSchemas/elements/source.ts
@@ -1233,7 +1236,7 @@ var SOURCE_SCHEMA = createSchema({
1233
1236
  defaultValue: "add-element"
1234
1237
  }
1235
1238
  ],
1236
- allowedChildTagNames: []
1239
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1237
1240
  });
1238
1241
 
1239
1242
  // src/schema/elementSchemas/elements/subtitle.ts
@@ -1248,7 +1251,7 @@ var SUBTITLE_SCHEMA = createSchema({
1248
1251
  defaultValue: "add-element"
1249
1252
  }
1250
1253
  ],
1251
- allowedChildTagNames: []
1254
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1252
1255
  });
1253
1256
 
1254
1257
  // src/schema/elementSchemas/elements/table/tp.ts
@@ -1616,6 +1619,7 @@ var HEADING_SCHEMA = createSchema({
1616
1619
  optionalAttributes: [...TRACK_CHANGES_ATTRS],
1617
1620
  allowedChildTagNames: [
1618
1621
  { tagName: TITLE_TAG, required: false },
1622
+ { tagName: LABEL_TAG, required: false },
1619
1623
  { tagName: PARA_TAG, required: false },
1620
1624
  { tagName: SUBTITLE_TAG, required: false },
1621
1625
  { tagName: SIDEBAR_TAG, required: false },
@@ -1628,7 +1632,8 @@ var HEADING_SCHEMA = createSchema({
1628
1632
  { tagName: APPENDIX_TAG, required: false },
1629
1633
  { tagName: TABLE_TAG, required: false },
1630
1634
  { tagName: FIGURE_TAG, required: false },
1631
- { tagName: SECTION_TAG, required: false }
1635
+ { tagName: SECTION_TAG, required: false },
1636
+ { tagName: INFO_TAG, required: false }
1632
1637
  ]
1633
1638
  });
1634
1639
 
@@ -1748,7 +1753,7 @@ var SCHEMA_MAP = new Map(
1748
1753
  // src/schema/shared/ignoredElements.ts
1749
1754
  var IGNORED_ELEMENT_SELECTORS = [
1750
1755
  "span.rhlabel",
1751
- "span.abstractlabel",
1756
+ "span.printlabel",
1752
1757
  "span.refIcon",
1753
1758
  "span.missLink",
1754
1759
  "span.ref-drag"
package/dist/index.mjs CHANGED
@@ -84,7 +84,10 @@ var ATOM_TAGS_ALLOWED_CHILDREN = [
84
84
  { tagName: STRIKE_TAG, required: false },
85
85
  { tagName: SUB_TAG, required: false },
86
86
  { tagName: SUP_TAG, required: false },
87
- { tagName: HIGHLIGHTMARK_TAG, required: false }
87
+ { tagName: HIGHLIGHTMARK_TAG, required: false },
88
+ { tagName: SPAN_TAG, required: false },
89
+ { tagName: COMMENT_TAG, required: false },
90
+ { tagName: QUERY_TAG, required: false }
88
91
  ];
89
92
 
90
93
  // src/schema/elementSchemas/atoms/b.ts
@@ -522,7 +525,7 @@ var FIRSTNAME_SCHEMA = createSchema({
522
525
  tag: FIRSTNAME_TAG,
523
526
  requiredAttributes: [...ID_ATTRS],
524
527
  optionalAttributes: [],
525
- allowedChildTagNames: []
528
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
526
529
  });
527
530
 
528
531
  // src/schema/elementSchemas/elements/authors/surname.ts
@@ -531,7 +534,7 @@ var SURNAME_SCHEMA = createSchema({
531
534
  tag: SURNAME_TAG,
532
535
  requiredAttributes: [...ID_ATTRS],
533
536
  optionalAttributes: [],
534
- allowedChildTagNames: []
537
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
535
538
  });
536
539
 
537
540
  // src/schema/elementSchemas/elements/authors/honorific.ts
@@ -558,7 +561,7 @@ var EMAIL_SCHEMA = createSchema({
558
561
  tag: EMAIL_TAG,
559
562
  requiredAttributes: [...ID_ATTRS],
560
563
  optionalAttributes: [],
561
- allowedChildTagNames: []
564
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
562
565
  });
563
566
 
564
567
  // src/schema/elementSchemas/elements/authors/org.ts
@@ -600,7 +603,7 @@ var LINE_SCHEMA = createSchema({
600
603
  defaultValue: "add-element"
601
604
  }
602
605
  ],
603
- allowedChildTagNames: []
606
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
604
607
  });
605
608
 
606
609
  // src/schema/elementSchemas/elements/dialogue/speaker.ts
@@ -615,7 +618,7 @@ var SPEAKER_SCHEMA = createSchema({
615
618
  defaultValue: "add-element"
616
619
  }
617
620
  ],
618
- allowedChildTagNames: []
621
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
619
622
  });
620
623
 
621
624
  // src/schema/elementSchemas/elements/dialogue/dialogue.ts
@@ -711,7 +714,7 @@ var FIGSOURCE_SCHEMA = createSchema({
711
714
  tag: FIGSOURCE_TAG,
712
715
  requiredAttributes: [...ID_ATTRS],
713
716
  optionalAttributes: [],
714
- allowedChildTagNames: []
717
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
715
718
  });
716
719
 
717
720
  // src/schema/elementSchemas/elements/figure/fignote.ts
@@ -720,10 +723,10 @@ var FIGNOTE_SCHEMA = createSchema({
720
723
  tag: FIGNOTE_TAG,
721
724
  requiredAttributes: [...ID_ATTRS],
722
725
  optionalAttributes: [],
723
- allowedChildTagNames: []
726
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
724
727
  });
725
728
 
726
- // src/schema/elementSchemas/elements/figure/figure1.ts
729
+ // src/schema/elementSchemas/elements/figure/figure.ts
727
730
  var FIGURE_SCHEMA = createSchema({
728
731
  kind: "group",
729
732
  tag: FIGURE_TAG,
@@ -811,16 +814,16 @@ var KEYWORD_SCHEMA = createSchema({
811
814
  tag: KEYWORD_TAG,
812
815
  requiredAttributes: [...ID_ATTRS],
813
816
  optionalAttributes: ["data-pos"],
814
- allowedChildTagNames: []
817
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
815
818
  });
816
819
 
817
820
  // src/schema/elementSchemas/elements/keywords/punc.ts
818
821
  var PUNC_SCHEMA = createSchema({
819
822
  kind: "element",
820
823
  tag: PUNC_TAG,
821
- requiredAttributes: [ID_ATTRS[0]],
822
- optionalAttributes: [ID_ATTRS[1], "data-role"],
823
- allowedChildTagNames: []
824
+ requiredAttributes: [...ID_ATTRS],
825
+ optionalAttributes: ["data-role"],
826
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
824
827
  });
825
828
 
826
829
  // src/schema/elementSchemas/elements/label.ts
@@ -836,7 +839,7 @@ var LABEL_SCHEMA = createSchema({
836
839
  defaultValue: "false"
837
840
  }
838
841
  ],
839
- allowedChildTagNames: []
842
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
840
843
  });
841
844
 
842
845
  // src/schema/elementSchemas/elements/list/token.ts
@@ -992,7 +995,7 @@ var LRH_SCHEMA = createSchema({
992
995
  tag: LRH_TAG,
993
996
  requiredAttributes: [...ID_ATTRS],
994
997
  optionalAttributes: [],
995
- allowedChildTagNames: []
998
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
996
999
  });
997
1000
 
998
1001
  // src/schema/elementSchemas/elements/runningHeads/rrh.ts
@@ -1001,7 +1004,7 @@ var RRH_SCHEMA = createSchema({
1001
1004
  tag: RRH_TAG,
1002
1005
  requiredAttributes: [...ID_ATTRS],
1003
1006
  optionalAttributes: [],
1004
- allowedChildTagNames: []
1007
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1005
1008
  });
1006
1009
 
1007
1010
  // src/schema/elementSchemas/elements/source.ts
@@ -1017,7 +1020,7 @@ var SOURCE_SCHEMA = createSchema({
1017
1020
  defaultValue: "add-element"
1018
1021
  }
1019
1022
  ],
1020
- allowedChildTagNames: []
1023
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1021
1024
  });
1022
1025
 
1023
1026
  // src/schema/elementSchemas/elements/subtitle.ts
@@ -1032,7 +1035,7 @@ var SUBTITLE_SCHEMA = createSchema({
1032
1035
  defaultValue: "add-element"
1033
1036
  }
1034
1037
  ],
1035
- allowedChildTagNames: []
1038
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1036
1039
  });
1037
1040
 
1038
1041
  // src/schema/elementSchemas/elements/table/tp.ts
@@ -1400,6 +1403,7 @@ var HEADING_SCHEMA = createSchema({
1400
1403
  optionalAttributes: [...TRACK_CHANGES_ATTRS],
1401
1404
  allowedChildTagNames: [
1402
1405
  { tagName: TITLE_TAG, required: false },
1406
+ { tagName: LABEL_TAG, required: false },
1403
1407
  { tagName: PARA_TAG, required: false },
1404
1408
  { tagName: SUBTITLE_TAG, required: false },
1405
1409
  { tagName: SIDEBAR_TAG, required: false },
@@ -1412,7 +1416,8 @@ var HEADING_SCHEMA = createSchema({
1412
1416
  { tagName: APPENDIX_TAG, required: false },
1413
1417
  { tagName: TABLE_TAG, required: false },
1414
1418
  { tagName: FIGURE_TAG, required: false },
1415
- { tagName: SECTION_TAG, required: false }
1419
+ { tagName: SECTION_TAG, required: false },
1420
+ { tagName: INFO_TAG, required: false }
1416
1421
  ]
1417
1422
  });
1418
1423
 
@@ -1532,7 +1537,7 @@ var SCHEMA_MAP = new Map(
1532
1537
  // src/schema/shared/ignoredElements.ts
1533
1538
  var IGNORED_ELEMENT_SELECTORS = [
1534
1539
  "span.rhlabel",
1535
- "span.abstractlabel",
1540
+ "span.printlabel",
1536
1541
  "span.refIcon",
1537
1542
  "span.missLink",
1538
1543
  "span.ref-drag"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pro-editor-schema",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Pro Editor XML schemas",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",