@atlaskit/adf-schema 40.3.0 → 40.4.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +7 -1
- package/dist/cjs/next-schema/nodes/list.js +7 -2
- package/dist/cjs/schema/default-schema.js +2 -1
- package/dist/cjs/schema/index.js +12 -0
- package/dist/cjs/schema/nodes/index.js +6 -0
- package/dist/cjs/schema/nodes/list-item.js +14 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +59 -48
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +6 -0
- package/dist/es2019/next-schema/nodes/list.js +7 -2
- package/dist/es2019/schema/default-schema.js +3 -2
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/list-item.js +14 -0
- package/dist/es2019/validator-schema/generated/validatorSpec.js +58 -47
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +6 -0
- package/dist/esm/next-schema/nodes/list.js +7 -2
- package/dist/esm/schema/default-schema.js +3 -2
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/list-item.js +14 -0
- package/dist/esm/validator-schema/generated/validatorSpec.js +58 -47
- package/dist/json-schema/v1/full.json +56 -56
- package/dist/json-schema/v1/stage-0.json +135 -58
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +9 -2
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/schema/nodes/list-item.d.ts +5 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +58 -47
- package/json-schema/v1/full.json +56 -56
- package/json-schema/v1/stage-0.json +135 -58
- package/package.json +2 -2
@@ -1012,16 +1012,72 @@ export declare const listItem_legacy: (string | {
|
|
1012
1012
|
};
|
1013
1013
|
};
|
1014
1014
|
})[];
|
1015
|
-
export declare const
|
1015
|
+
export declare const decisionItem: {
|
1016
|
+
props: {
|
1017
|
+
type: {
|
1018
|
+
type: string;
|
1019
|
+
values: string[];
|
1020
|
+
};
|
1021
|
+
attrs: {
|
1022
|
+
props: {
|
1023
|
+
localId: {
|
1024
|
+
type: string;
|
1025
|
+
};
|
1026
|
+
state: {
|
1027
|
+
type: string;
|
1028
|
+
};
|
1029
|
+
};
|
1030
|
+
};
|
1031
|
+
content: {
|
1032
|
+
type: string;
|
1033
|
+
items: string[];
|
1034
|
+
optional: boolean;
|
1035
|
+
allowUnsupportedInline: boolean;
|
1036
|
+
};
|
1037
|
+
};
|
1038
|
+
};
|
1039
|
+
export declare const decisionList: {
|
1016
1040
|
props: {
|
1017
1041
|
type: {
|
1018
1042
|
type: string;
|
1019
1043
|
values: string[];
|
1020
1044
|
};
|
1045
|
+
attrs: {
|
1046
|
+
props: {
|
1047
|
+
localId: {
|
1048
|
+
type: string;
|
1049
|
+
};
|
1050
|
+
};
|
1051
|
+
};
|
1021
1052
|
content: {
|
1022
1053
|
type: string;
|
1023
1054
|
items: string[];
|
1024
1055
|
minItems: number;
|
1056
|
+
allowUnsupportedBlock: boolean;
|
1057
|
+
};
|
1058
|
+
};
|
1059
|
+
};
|
1060
|
+
export declare const listItem_with_nested_decision: (string | {
|
1061
|
+
props: {
|
1062
|
+
content: {
|
1063
|
+
type: string;
|
1064
|
+
isTupleLike: boolean;
|
1065
|
+
items: string[][];
|
1066
|
+
minItems: number;
|
1067
|
+
allowUnsupportedBlock: boolean;
|
1068
|
+
};
|
1069
|
+
};
|
1070
|
+
})[];
|
1071
|
+
export declare const bulletList: {
|
1072
|
+
props: {
|
1073
|
+
type: {
|
1074
|
+
type: string;
|
1075
|
+
values: string[];
|
1076
|
+
};
|
1077
|
+
content: {
|
1078
|
+
type: string;
|
1079
|
+
items: string[][];
|
1080
|
+
minItems: number;
|
1025
1081
|
};
|
1026
1082
|
};
|
1027
1083
|
};
|
@@ -1058,7 +1114,7 @@ export declare const orderedList: {
|
|
1058
1114
|
};
|
1059
1115
|
content: {
|
1060
1116
|
type: string;
|
1061
|
-
items: string[];
|
1117
|
+
items: string[][];
|
1062
1118
|
minItems: number;
|
1063
1119
|
};
|
1064
1120
|
};
|
@@ -1111,51 +1167,6 @@ export declare const blockquote_with_nested_codeblock_or_media: (string | {
|
|
1111
1167
|
};
|
1112
1168
|
};
|
1113
1169
|
})[];
|
1114
|
-
export declare const decisionItem: {
|
1115
|
-
props: {
|
1116
|
-
type: {
|
1117
|
-
type: string;
|
1118
|
-
values: string[];
|
1119
|
-
};
|
1120
|
-
attrs: {
|
1121
|
-
props: {
|
1122
|
-
localId: {
|
1123
|
-
type: string;
|
1124
|
-
};
|
1125
|
-
state: {
|
1126
|
-
type: string;
|
1127
|
-
};
|
1128
|
-
};
|
1129
|
-
};
|
1130
|
-
content: {
|
1131
|
-
type: string;
|
1132
|
-
items: string[];
|
1133
|
-
optional: boolean;
|
1134
|
-
allowUnsupportedInline: boolean;
|
1135
|
-
};
|
1136
|
-
};
|
1137
|
-
};
|
1138
|
-
export declare const decisionList: {
|
1139
|
-
props: {
|
1140
|
-
type: {
|
1141
|
-
type: string;
|
1142
|
-
values: string[];
|
1143
|
-
};
|
1144
|
-
attrs: {
|
1145
|
-
props: {
|
1146
|
-
localId: {
|
1147
|
-
type: string;
|
1148
|
-
};
|
1149
|
-
};
|
1150
|
-
};
|
1151
|
-
content: {
|
1152
|
-
type: string;
|
1153
|
-
items: string[];
|
1154
|
-
minItems: number;
|
1155
|
-
allowUnsupportedBlock: boolean;
|
1156
|
-
};
|
1157
|
-
};
|
1158
|
-
};
|
1159
1170
|
export declare const embedCard: {
|
1160
1171
|
props: {
|
1161
1172
|
type: {
|
package/json-schema/v1/full.json
CHANGED
@@ -1293,6 +1293,62 @@
|
|
1293
1293
|
"additionalProperties": false,
|
1294
1294
|
"required": ["type", "attrs", "content"]
|
1295
1295
|
},
|
1296
|
+
"decisionItem_node": {
|
1297
|
+
"type": "object",
|
1298
|
+
"properties": {
|
1299
|
+
"type": {
|
1300
|
+
"enum": ["decisionItem"]
|
1301
|
+
},
|
1302
|
+
"attrs": {
|
1303
|
+
"type": "object",
|
1304
|
+
"properties": {
|
1305
|
+
"localId": {
|
1306
|
+
"type": "string"
|
1307
|
+
},
|
1308
|
+
"state": {
|
1309
|
+
"type": "string"
|
1310
|
+
}
|
1311
|
+
},
|
1312
|
+
"required": ["localId", "state"],
|
1313
|
+
"additionalProperties": false
|
1314
|
+
},
|
1315
|
+
"content": {
|
1316
|
+
"type": "array",
|
1317
|
+
"items": {
|
1318
|
+
"$ref": "#/definitions/inline_node"
|
1319
|
+
}
|
1320
|
+
}
|
1321
|
+
},
|
1322
|
+
"additionalProperties": false,
|
1323
|
+
"required": ["type", "attrs"]
|
1324
|
+
},
|
1325
|
+
"decisionList_node": {
|
1326
|
+
"type": "object",
|
1327
|
+
"properties": {
|
1328
|
+
"type": {
|
1329
|
+
"enum": ["decisionList"]
|
1330
|
+
},
|
1331
|
+
"attrs": {
|
1332
|
+
"type": "object",
|
1333
|
+
"properties": {
|
1334
|
+
"localId": {
|
1335
|
+
"type": "string"
|
1336
|
+
}
|
1337
|
+
},
|
1338
|
+
"required": ["localId"],
|
1339
|
+
"additionalProperties": false
|
1340
|
+
},
|
1341
|
+
"content": {
|
1342
|
+
"type": "array",
|
1343
|
+
"items": {
|
1344
|
+
"$ref": "#/definitions/decisionItem_node"
|
1345
|
+
},
|
1346
|
+
"minItems": 1
|
1347
|
+
}
|
1348
|
+
},
|
1349
|
+
"additionalProperties": false,
|
1350
|
+
"required": ["type", "attrs", "content"]
|
1351
|
+
},
|
1296
1352
|
"bulletList_node": {
|
1297
1353
|
"type": "object",
|
1298
1354
|
"properties": {
|
@@ -1438,62 +1494,6 @@
|
|
1438
1494
|
"additionalProperties": false,
|
1439
1495
|
"required": ["type", "content"]
|
1440
1496
|
},
|
1441
|
-
"decisionItem_node": {
|
1442
|
-
"type": "object",
|
1443
|
-
"properties": {
|
1444
|
-
"type": {
|
1445
|
-
"enum": ["decisionItem"]
|
1446
|
-
},
|
1447
|
-
"attrs": {
|
1448
|
-
"type": "object",
|
1449
|
-
"properties": {
|
1450
|
-
"localId": {
|
1451
|
-
"type": "string"
|
1452
|
-
},
|
1453
|
-
"state": {
|
1454
|
-
"type": "string"
|
1455
|
-
}
|
1456
|
-
},
|
1457
|
-
"required": ["localId", "state"],
|
1458
|
-
"additionalProperties": false
|
1459
|
-
},
|
1460
|
-
"content": {
|
1461
|
-
"type": "array",
|
1462
|
-
"items": {
|
1463
|
-
"$ref": "#/definitions/inline_node"
|
1464
|
-
}
|
1465
|
-
}
|
1466
|
-
},
|
1467
|
-
"additionalProperties": false,
|
1468
|
-
"required": ["type", "attrs"]
|
1469
|
-
},
|
1470
|
-
"decisionList_node": {
|
1471
|
-
"type": "object",
|
1472
|
-
"properties": {
|
1473
|
-
"type": {
|
1474
|
-
"enum": ["decisionList"]
|
1475
|
-
},
|
1476
|
-
"attrs": {
|
1477
|
-
"type": "object",
|
1478
|
-
"properties": {
|
1479
|
-
"localId": {
|
1480
|
-
"type": "string"
|
1481
|
-
}
|
1482
|
-
},
|
1483
|
-
"required": ["localId"],
|
1484
|
-
"additionalProperties": false
|
1485
|
-
},
|
1486
|
-
"content": {
|
1487
|
-
"type": "array",
|
1488
|
-
"items": {
|
1489
|
-
"$ref": "#/definitions/decisionItem_node"
|
1490
|
-
},
|
1491
|
-
"minItems": 1
|
1492
|
-
}
|
1493
|
-
},
|
1494
|
-
"additionalProperties": false,
|
1495
|
-
"required": ["type", "attrs", "content"]
|
1496
|
-
},
|
1497
1497
|
"embedCard_node": {
|
1498
1498
|
"type": "object",
|
1499
1499
|
"properties": {
|
@@ -1323,6 +1323,125 @@
|
|
1323
1323
|
"additionalProperties": false,
|
1324
1324
|
"required": ["type", "attrs", "content"]
|
1325
1325
|
},
|
1326
|
+
"decisionItem_node": {
|
1327
|
+
"type": "object",
|
1328
|
+
"properties": {
|
1329
|
+
"type": {
|
1330
|
+
"enum": ["decisionItem"]
|
1331
|
+
},
|
1332
|
+
"attrs": {
|
1333
|
+
"type": "object",
|
1334
|
+
"properties": {
|
1335
|
+
"localId": {
|
1336
|
+
"type": "string"
|
1337
|
+
},
|
1338
|
+
"state": {
|
1339
|
+
"type": "string"
|
1340
|
+
}
|
1341
|
+
},
|
1342
|
+
"required": ["localId", "state"],
|
1343
|
+
"additionalProperties": false
|
1344
|
+
},
|
1345
|
+
"content": {
|
1346
|
+
"type": "array",
|
1347
|
+
"items": {
|
1348
|
+
"$ref": "#/definitions/inline_node"
|
1349
|
+
}
|
1350
|
+
}
|
1351
|
+
},
|
1352
|
+
"additionalProperties": false,
|
1353
|
+
"required": ["type", "attrs"]
|
1354
|
+
},
|
1355
|
+
"decisionList_node": {
|
1356
|
+
"type": "object",
|
1357
|
+
"properties": {
|
1358
|
+
"type": {
|
1359
|
+
"enum": ["decisionList"]
|
1360
|
+
},
|
1361
|
+
"attrs": {
|
1362
|
+
"type": "object",
|
1363
|
+
"properties": {
|
1364
|
+
"localId": {
|
1365
|
+
"type": "string"
|
1366
|
+
}
|
1367
|
+
},
|
1368
|
+
"required": ["localId"],
|
1369
|
+
"additionalProperties": false
|
1370
|
+
},
|
1371
|
+
"content": {
|
1372
|
+
"type": "array",
|
1373
|
+
"items": {
|
1374
|
+
"$ref": "#/definitions/decisionItem_node"
|
1375
|
+
},
|
1376
|
+
"minItems": 1
|
1377
|
+
}
|
1378
|
+
},
|
1379
|
+
"additionalProperties": false,
|
1380
|
+
"required": ["type", "attrs", "content"]
|
1381
|
+
},
|
1382
|
+
"listItem_with_nested_decision_node": {
|
1383
|
+
"type": "object",
|
1384
|
+
"properties": {
|
1385
|
+
"type": {
|
1386
|
+
"enum": ["listItem"]
|
1387
|
+
},
|
1388
|
+
"content": {
|
1389
|
+
"type": "array",
|
1390
|
+
"items": [
|
1391
|
+
{
|
1392
|
+
"anyOf": [
|
1393
|
+
{
|
1394
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1395
|
+
},
|
1396
|
+
{
|
1397
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
1398
|
+
},
|
1399
|
+
{
|
1400
|
+
"$ref": "#/definitions/mediaSingle_full_node"
|
1401
|
+
},
|
1402
|
+
{
|
1403
|
+
"$ref": "#/definitions/codeBlock_with_no_marks_node"
|
1404
|
+
},
|
1405
|
+
{
|
1406
|
+
"$ref": "#/definitions/decisionList_node"
|
1407
|
+
}
|
1408
|
+
]
|
1409
|
+
},
|
1410
|
+
{
|
1411
|
+
"anyOf": [
|
1412
|
+
{
|
1413
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1414
|
+
},
|
1415
|
+
{
|
1416
|
+
"$ref": "#/definitions/bulletList_node"
|
1417
|
+
},
|
1418
|
+
{
|
1419
|
+
"$ref": "#/definitions/orderedList_node"
|
1420
|
+
},
|
1421
|
+
{
|
1422
|
+
"$ref": "#/definitions/taskList_node"
|
1423
|
+
},
|
1424
|
+
{
|
1425
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
1426
|
+
},
|
1427
|
+
{
|
1428
|
+
"$ref": "#/definitions/mediaSingle_full_node"
|
1429
|
+
},
|
1430
|
+
{
|
1431
|
+
"$ref": "#/definitions/codeBlock_with_no_marks_node"
|
1432
|
+
},
|
1433
|
+
{
|
1434
|
+
"$ref": "#/definitions/decisionList_node"
|
1435
|
+
}
|
1436
|
+
]
|
1437
|
+
}
|
1438
|
+
],
|
1439
|
+
"minItems": 1
|
1440
|
+
}
|
1441
|
+
},
|
1442
|
+
"additionalProperties": false,
|
1443
|
+
"required": ["type", "content"]
|
1444
|
+
},
|
1326
1445
|
"bulletList_node": {
|
1327
1446
|
"type": "object",
|
1328
1447
|
"properties": {
|
@@ -1332,7 +1451,14 @@
|
|
1332
1451
|
"content": {
|
1333
1452
|
"type": "array",
|
1334
1453
|
"items": {
|
1335
|
-
"
|
1454
|
+
"anyOf": [
|
1455
|
+
{
|
1456
|
+
"$ref": "#/definitions/listItem_node"
|
1457
|
+
},
|
1458
|
+
{
|
1459
|
+
"$ref": "#/definitions/listItem_with_nested_decision_node"
|
1460
|
+
}
|
1461
|
+
]
|
1336
1462
|
},
|
1337
1463
|
"minItems": 1
|
1338
1464
|
}
|
@@ -1416,7 +1542,14 @@
|
|
1416
1542
|
"content": {
|
1417
1543
|
"type": "array",
|
1418
1544
|
"items": {
|
1419
|
-
"
|
1545
|
+
"anyOf": [
|
1546
|
+
{
|
1547
|
+
"$ref": "#/definitions/listItem_node"
|
1548
|
+
},
|
1549
|
+
{
|
1550
|
+
"$ref": "#/definitions/listItem_with_nested_decision_node"
|
1551
|
+
}
|
1552
|
+
]
|
1420
1553
|
},
|
1421
1554
|
"minItems": 1
|
1422
1555
|
}
|
@@ -1507,62 +1640,6 @@
|
|
1507
1640
|
"additionalProperties": false,
|
1508
1641
|
"required": ["type", "content"]
|
1509
1642
|
},
|
1510
|
-
"decisionItem_node": {
|
1511
|
-
"type": "object",
|
1512
|
-
"properties": {
|
1513
|
-
"type": {
|
1514
|
-
"enum": ["decisionItem"]
|
1515
|
-
},
|
1516
|
-
"attrs": {
|
1517
|
-
"type": "object",
|
1518
|
-
"properties": {
|
1519
|
-
"localId": {
|
1520
|
-
"type": "string"
|
1521
|
-
},
|
1522
|
-
"state": {
|
1523
|
-
"type": "string"
|
1524
|
-
}
|
1525
|
-
},
|
1526
|
-
"required": ["localId", "state"],
|
1527
|
-
"additionalProperties": false
|
1528
|
-
},
|
1529
|
-
"content": {
|
1530
|
-
"type": "array",
|
1531
|
-
"items": {
|
1532
|
-
"$ref": "#/definitions/inline_node"
|
1533
|
-
}
|
1534
|
-
}
|
1535
|
-
},
|
1536
|
-
"additionalProperties": false,
|
1537
|
-
"required": ["type", "attrs"]
|
1538
|
-
},
|
1539
|
-
"decisionList_node": {
|
1540
|
-
"type": "object",
|
1541
|
-
"properties": {
|
1542
|
-
"type": {
|
1543
|
-
"enum": ["decisionList"]
|
1544
|
-
},
|
1545
|
-
"attrs": {
|
1546
|
-
"type": "object",
|
1547
|
-
"properties": {
|
1548
|
-
"localId": {
|
1549
|
-
"type": "string"
|
1550
|
-
}
|
1551
|
-
},
|
1552
|
-
"required": ["localId"],
|
1553
|
-
"additionalProperties": false
|
1554
|
-
},
|
1555
|
-
"content": {
|
1556
|
-
"type": "array",
|
1557
|
-
"items": {
|
1558
|
-
"$ref": "#/definitions/decisionItem_node"
|
1559
|
-
},
|
1560
|
-
"minItems": 1
|
1561
|
-
}
|
1562
|
-
},
|
1563
|
-
"additionalProperties": false,
|
1564
|
-
"required": ["type", "attrs", "content"]
|
1565
|
-
},
|
1566
1643
|
"embedCard_node": {
|
1567
1644
|
"type": "object",
|
1568
1645
|
"properties": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "40.
|
3
|
+
"version": "40.4.0",
|
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/"
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"memoize-one": "^6.0.0"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
|
-
"@atlassian/adf-schema-json": "^1.
|
49
|
+
"@atlassian/adf-schema-json": "^1.19.0",
|
50
50
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
51
51
|
"@atlaskit/adf-schema-generator": "^1.30.0",
|
52
52
|
"@atlaskit/codemod-utils": "^4.2.4",
|