@atlaskit/adf-schema 36.10.3 → 36.10.4
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "36.10.
|
3
|
+
"version": "36.10.4",
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
5
5
|
"publishConfig": {
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
@@ -45,7 +45,7 @@
|
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@atlassian/adf-schema-json": "^1.15.0",
|
48
|
-
"@atlaskit/adf-schema-generator": "^1.7.
|
48
|
+
"@atlaskit/adf-schema-generator": "^1.7.9",
|
49
49
|
"@babel/cli": "^7.22.9",
|
50
50
|
"@babel/core": "^7.22.9",
|
51
51
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
@@ -88,3 +88,16 @@ A number of nodes have `marks` defined, yet the array is empty. Assuming this is
|
|
88
88
|
.block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
|
89
89
|
.bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)' | pbcopy
|
90
90
|
```
|
91
|
+
|
92
|
+
Delete all subfields except for content, text, marks, attrs, anyOf, items, type and properties. Base level content objects (not nodes) are also deleted. `inline` is also deleted, as it is a content object for paragraph.
|
93
|
+
|
94
|
+
All fields of content except for type have been deleted as well.
|
95
|
+
|
96
|
+
A number of nodes have `marks` defined, yet the array is empty. Assuming this is redundant, I've removed them.
|
97
|
+
|
98
|
+
```sh
|
99
|
+
cat packages/adf-schema/json-schema/v1/full.json | jq 'walk(if type == "object" then del(
|
100
|
+
.version, .required, .additionalProperties, .allOf, .minItems, .content.items, .content."$ref",
|
101
|
+
.block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
|
102
|
+
.bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)' | pbcopy
|
103
|
+
```
|
@@ -46,7 +46,9 @@ const jsonWithTypes = {
|
|
46
46
|
type: {
|
47
47
|
enum: ['codeBlock'],
|
48
48
|
},
|
49
|
-
content: {
|
49
|
+
content: {
|
50
|
+
type: 'array',
|
51
|
+
},
|
50
52
|
attrs: {
|
51
53
|
type: 'object',
|
52
54
|
properties: {
|
@@ -678,7 +680,9 @@ const jsonWithTypes = {
|
|
678
680
|
type: {
|
679
681
|
enum: ['paragraph'],
|
680
682
|
},
|
681
|
-
content: {
|
683
|
+
content: {
|
684
|
+
type: 'array',
|
685
|
+
},
|
682
686
|
},
|
683
687
|
},
|
684
688
|
paragraph_with_no_marks_node: {},
|
@@ -690,7 +694,9 @@ const jsonWithTypes = {
|
|
690
694
|
type: {
|
691
695
|
enum: ['caption'],
|
692
696
|
},
|
693
|
-
content: {
|
697
|
+
content: {
|
698
|
+
type: 'array',
|
699
|
+
},
|
694
700
|
},
|
695
701
|
},
|
696
702
|
mediaSingle_node: {
|
@@ -766,7 +772,9 @@ const jsonWithTypes = {
|
|
766
772
|
type: {
|
767
773
|
enum: ['taskItem'],
|
768
774
|
},
|
769
|
-
content: {
|
775
|
+
content: {
|
776
|
+
type: 'array',
|
777
|
+
},
|
770
778
|
attrs: {
|
771
779
|
type: 'object',
|
772
780
|
properties: {
|
@@ -786,7 +794,9 @@ const jsonWithTypes = {
|
|
786
794
|
type: {
|
787
795
|
enum: ['taskList'],
|
788
796
|
},
|
789
|
-
content: {
|
797
|
+
content: {
|
798
|
+
type: 'array',
|
799
|
+
},
|
790
800
|
attrs: {
|
791
801
|
type: 'object',
|
792
802
|
properties: {
|
@@ -803,7 +813,9 @@ const jsonWithTypes = {
|
|
803
813
|
type: {
|
804
814
|
enum: ['listItem'],
|
805
815
|
},
|
806
|
-
content: {
|
816
|
+
content: {
|
817
|
+
type: 'array',
|
818
|
+
},
|
807
819
|
},
|
808
820
|
},
|
809
821
|
bulletList_node: {
|
@@ -812,7 +824,9 @@ const jsonWithTypes = {
|
|
812
824
|
type: {
|
813
825
|
enum: ['bulletList'],
|
814
826
|
},
|
815
|
-
content: {
|
827
|
+
content: {
|
828
|
+
type: 'array',
|
829
|
+
},
|
816
830
|
},
|
817
831
|
},
|
818
832
|
orderedList_node: {
|
@@ -821,7 +835,9 @@ const jsonWithTypes = {
|
|
821
835
|
type: {
|
822
836
|
enum: ['orderedList'],
|
823
837
|
},
|
824
|
-
content: {
|
838
|
+
content: {
|
839
|
+
type: 'array',
|
840
|
+
},
|
825
841
|
attrs: {
|
826
842
|
type: 'object',
|
827
843
|
properties: {
|
@@ -839,7 +855,9 @@ const jsonWithTypes = {
|
|
839
855
|
type: {
|
840
856
|
enum: ['heading'],
|
841
857
|
},
|
842
|
-
content: {
|
858
|
+
content: {
|
859
|
+
type: 'array',
|
860
|
+
},
|
843
861
|
attrs: {
|
844
862
|
type: 'object',
|
845
863
|
properties: {
|
@@ -861,7 +879,9 @@ const jsonWithTypes = {
|
|
861
879
|
type: {
|
862
880
|
enum: ['mediaGroup'],
|
863
881
|
},
|
864
|
-
content: {
|
882
|
+
content: {
|
883
|
+
type: 'array',
|
884
|
+
},
|
865
885
|
},
|
866
886
|
},
|
867
887
|
decisionItem_node: {
|
@@ -870,7 +890,9 @@ const jsonWithTypes = {
|
|
870
890
|
type: {
|
871
891
|
enum: ['decisionItem'],
|
872
892
|
},
|
873
|
-
content: {
|
893
|
+
content: {
|
894
|
+
type: 'array',
|
895
|
+
},
|
874
896
|
attrs: {
|
875
897
|
type: 'object',
|
876
898
|
properties: {
|
@@ -890,7 +912,9 @@ const jsonWithTypes = {
|
|
890
912
|
type: {
|
891
913
|
enum: ['decisionList'],
|
892
914
|
},
|
893
|
-
content: {
|
915
|
+
content: {
|
916
|
+
type: 'array',
|
917
|
+
},
|
894
918
|
attrs: {
|
895
919
|
type: 'object',
|
896
920
|
properties: {
|
@@ -943,7 +967,9 @@ const jsonWithTypes = {
|
|
943
967
|
},
|
944
968
|
},
|
945
969
|
},
|
946
|
-
content: {
|
970
|
+
content: {
|
971
|
+
type: 'array',
|
972
|
+
},
|
947
973
|
},
|
948
974
|
},
|
949
975
|
blockquote_node: {
|
@@ -952,7 +978,9 @@ const jsonWithTypes = {
|
|
952
978
|
type: {
|
953
979
|
enum: ['blockquote'],
|
954
980
|
},
|
955
|
-
content: {
|
981
|
+
content: {
|
982
|
+
type: 'array',
|
983
|
+
},
|
956
984
|
},
|
957
985
|
},
|
958
986
|
extension_node: {
|
@@ -1078,7 +1106,9 @@ const jsonWithTypes = {
|
|
1078
1106
|
},
|
1079
1107
|
},
|
1080
1108
|
},
|
1081
|
-
content: {
|
1109
|
+
content: {
|
1110
|
+
type: 'array',
|
1111
|
+
},
|
1082
1112
|
marks: {
|
1083
1113
|
type: 'array',
|
1084
1114
|
items: {
|
@@ -1093,7 +1123,9 @@ const jsonWithTypes = {
|
|
1093
1123
|
type: {
|
1094
1124
|
enum: ['tableRow'],
|
1095
1125
|
},
|
1096
|
-
content: {
|
1126
|
+
content: {
|
1127
|
+
type: 'array',
|
1128
|
+
},
|
1097
1129
|
},
|
1098
1130
|
},
|
1099
1131
|
table_cell_node: {
|
@@ -1168,7 +1200,9 @@ const jsonWithTypes = {
|
|
1168
1200
|
},
|
1169
1201
|
},
|
1170
1202
|
},
|
1171
|
-
content: {
|
1203
|
+
content: {
|
1204
|
+
type: 'array',
|
1205
|
+
},
|
1172
1206
|
},
|
1173
1207
|
},
|
1174
1208
|
expand_with_no_mark_node: {},
|
@@ -1203,7 +1237,9 @@ const jsonWithTypes = {
|
|
1203
1237
|
},
|
1204
1238
|
},
|
1205
1239
|
},
|
1206
|
-
content: {
|
1240
|
+
content: {
|
1241
|
+
type: 'array',
|
1242
|
+
},
|
1207
1243
|
},
|
1208
1244
|
},
|
1209
1245
|
bodiedExtension_with_marks_node: {},
|
@@ -1223,7 +1259,9 @@ const jsonWithTypes = {
|
|
1223
1259
|
},
|
1224
1260
|
},
|
1225
1261
|
},
|
1226
|
-
content: {
|
1262
|
+
content: {
|
1263
|
+
type: 'array',
|
1264
|
+
},
|
1227
1265
|
},
|
1228
1266
|
},
|
1229
1267
|
layoutSection_node: {
|
@@ -1238,7 +1276,9 @@ const jsonWithTypes = {
|
|
1238
1276
|
$ref: '#/definitions/breakout_mark',
|
1239
1277
|
},
|
1240
1278
|
},
|
1241
|
-
content: {
|
1279
|
+
content: {
|
1280
|
+
type: 'array',
|
1281
|
+
},
|
1242
1282
|
},
|
1243
1283
|
},
|
1244
1284
|
layoutSection_full_node: {},
|
@@ -1248,8 +1288,22 @@ const jsonWithTypes = {
|
|
1248
1288
|
type: {
|
1249
1289
|
enum: ['doc'],
|
1250
1290
|
},
|
1251
|
-
content: {
|
1291
|
+
content: {
|
1292
|
+
type: 'array',
|
1293
|
+
},
|
1252
1294
|
},
|
1253
1295
|
},
|
1254
1296
|
},
|
1255
1297
|
};
|
1298
|
+
|
1299
|
+
// New JSON, different to the old JSON schema
|
1300
|
+
jsonWithTypes.definitions.heading_node.properties.content = { type: 'array' };
|
1301
|
+
jsonWithTypes.definitions.nestedExpand_node.properties.content = {
|
1302
|
+
type: 'array',
|
1303
|
+
};
|
1304
|
+
jsonWithTypes.definitions.table_cell_node.properties.content = {
|
1305
|
+
type: 'array',
|
1306
|
+
};
|
1307
|
+
jsonWithTypes.definitions.table_header_node.properties.content = {
|
1308
|
+
type: 'array',
|
1309
|
+
};
|