@atlaskit/adf-schema 57.0.3 → 57.0.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 +24 -0
- package/dist/cjs/validator-schema/generated/validatorSpec.js +30 -0
- package/dist/es2019/validator-schema/generated/validatorSpec.js +30 -0
- package/dist/esm/validator-schema/generated/validatorSpec.js +30 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +30 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 57.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`da678c24b2eb7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da678c24b2eb7) -
|
|
8
|
+
`adfToValidatorSpec` now emits `meta: { stage0: true }` on the validator spec of any node that
|
|
9
|
+
exists only in stage 0 (`ADFNode.isStage0Only()`), and the generated validator spec is regenerated
|
|
10
|
+
so 10 specs carry the flag: `bodiedExtension_root_only`, `extension_root_only`, `extensionFrame`,
|
|
11
|
+
`layoutSection_with_single_column`, `multiBodiedExtension`, `multiBodiedExtension_root_only`,
|
|
12
|
+
`panel_c1`, `panel_c1_root_only`, `panel_root_only` and `rule_root_only`.
|
|
13
|
+
|
|
14
|
+
The predicate is `isStage0Only()` rather than `hasStage0()` because consumers read the flag as
|
|
15
|
+
"this whole spec is stage-0 only". `hasStage0()` is also true for a stable node carrying a partial
|
|
16
|
+
stage-0 override, so it flagged `date`, `emoji`, `inlineCard`, `mention` and `status`, whose only
|
|
17
|
+
stage-0 delta is an optional `annotation` mark. A per-spec boolean cannot say "the node is fine,
|
|
18
|
+
one of its marks is not", so flagging those said something false about stable nodes.
|
|
19
|
+
|
|
20
|
+
`meta` is additive metadata that sits beside `props`, so the validated shape of every spec is
|
|
21
|
+
unchanged and consumers that ignore the field see no difference. Emission is not gated. The only
|
|
22
|
+
consumer that reads the flag is `@atlaskit/adf-utils`, behind
|
|
23
|
+
`platform_editor_adf_validator_stage0`.
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 57.0.3
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -232,6 +232,9 @@ var bodiedExtension = exports.bodiedExtension = {
|
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
var bodiedExtension_root_only = exports.bodiedExtension_root_only = ['bodiedExtension', {
|
|
235
|
+
meta: {
|
|
236
|
+
stage0: true
|
|
237
|
+
},
|
|
235
238
|
props: {
|
|
236
239
|
marks: {
|
|
237
240
|
items: [['breakout', 'dataConsumer', 'fragment']],
|
|
@@ -699,6 +702,9 @@ var extension = exports.extension = {
|
|
|
699
702
|
}
|
|
700
703
|
};
|
|
701
704
|
var extension_root_only = exports.extension_root_only = ['extension', {
|
|
705
|
+
meta: {
|
|
706
|
+
stage0: true
|
|
707
|
+
},
|
|
702
708
|
props: {
|
|
703
709
|
marks: {
|
|
704
710
|
items: [['breakout', 'dataConsumer', 'fragment']],
|
|
@@ -717,6 +723,9 @@ var extension_with_marks = exports.extension_with_marks = ['extension', {
|
|
|
717
723
|
}
|
|
718
724
|
}];
|
|
719
725
|
var extensionFrame = exports.extensionFrame = {
|
|
726
|
+
meta: {
|
|
727
|
+
stage0: true
|
|
728
|
+
},
|
|
720
729
|
props: {
|
|
721
730
|
content: {
|
|
722
731
|
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
|
|
@@ -1031,6 +1040,9 @@ var layoutSection_full = exports.layoutSection_full = ['layoutSection', {
|
|
|
1031
1040
|
}
|
|
1032
1041
|
}];
|
|
1033
1042
|
var layoutSection_with_single_column = exports.layoutSection_with_single_column = ['layoutSection', {
|
|
1043
|
+
meta: {
|
|
1044
|
+
stage0: true
|
|
1045
|
+
},
|
|
1034
1046
|
props: {
|
|
1035
1047
|
attrs: {
|
|
1036
1048
|
optional: true,
|
|
@@ -1390,6 +1402,9 @@ var mention = exports.mention = {
|
|
|
1390
1402
|
}
|
|
1391
1403
|
};
|
|
1392
1404
|
var multiBodiedExtension = exports.multiBodiedExtension = {
|
|
1405
|
+
meta: {
|
|
1406
|
+
stage0: true
|
|
1407
|
+
},
|
|
1393
1408
|
props: {
|
|
1394
1409
|
attrs: {
|
|
1395
1410
|
props: {
|
|
@@ -1437,6 +1452,9 @@ var multiBodiedExtension = exports.multiBodiedExtension = {
|
|
|
1437
1452
|
}
|
|
1438
1453
|
};
|
|
1439
1454
|
var multiBodiedExtension_root_only = exports.multiBodiedExtension_root_only = ['multiBodiedExtension', {
|
|
1455
|
+
meta: {
|
|
1456
|
+
stage0: true
|
|
1457
|
+
},
|
|
1440
1458
|
props: {
|
|
1441
1459
|
marks: {
|
|
1442
1460
|
items: ['breakout'],
|
|
@@ -1554,6 +1572,9 @@ var panel = exports.panel = {
|
|
|
1554
1572
|
}
|
|
1555
1573
|
};
|
|
1556
1574
|
var panel_c1 = exports.panel_c1 = ['panel', {
|
|
1575
|
+
meta: {
|
|
1576
|
+
stage0: true
|
|
1577
|
+
},
|
|
1557
1578
|
props: {
|
|
1558
1579
|
content: {
|
|
1559
1580
|
allowUnsupportedBlock: true,
|
|
@@ -1564,6 +1585,9 @@ var panel_c1 = exports.panel_c1 = ['panel', {
|
|
|
1564
1585
|
}
|
|
1565
1586
|
}];
|
|
1566
1587
|
var panel_c1_root_only = exports.panel_c1_root_only = ['panel', {
|
|
1588
|
+
meta: {
|
|
1589
|
+
stage0: true
|
|
1590
|
+
},
|
|
1567
1591
|
props: {
|
|
1568
1592
|
content: {
|
|
1569
1593
|
allowUnsupportedBlock: true,
|
|
@@ -1579,6 +1603,9 @@ var panel_c1_root_only = exports.panel_c1_root_only = ['panel', {
|
|
|
1579
1603
|
}
|
|
1580
1604
|
}];
|
|
1581
1605
|
var panel_root_only = exports.panel_root_only = ['panel', {
|
|
1606
|
+
meta: {
|
|
1607
|
+
stage0: true
|
|
1608
|
+
},
|
|
1582
1609
|
props: {
|
|
1583
1610
|
marks: {
|
|
1584
1611
|
items: ['breakout'],
|
|
@@ -1689,6 +1716,9 @@ var rule = exports.rule = {
|
|
|
1689
1716
|
}
|
|
1690
1717
|
};
|
|
1691
1718
|
var rule_root_only = exports.rule_root_only = ['rule', {
|
|
1719
|
+
meta: {
|
|
1720
|
+
stage0: true
|
|
1721
|
+
},
|
|
1692
1722
|
props: {
|
|
1693
1723
|
marks: {
|
|
1694
1724
|
items: ['breakout'],
|
|
@@ -226,6 +226,9 @@ export const bodiedExtension = {
|
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
export const bodiedExtension_root_only = ['bodiedExtension', {
|
|
229
|
+
meta: {
|
|
230
|
+
stage0: true
|
|
231
|
+
},
|
|
229
232
|
props: {
|
|
230
233
|
marks: {
|
|
231
234
|
items: [['breakout', 'dataConsumer', 'fragment']],
|
|
@@ -693,6 +696,9 @@ export const extension = {
|
|
|
693
696
|
}
|
|
694
697
|
};
|
|
695
698
|
export const extension_root_only = ['extension', {
|
|
699
|
+
meta: {
|
|
700
|
+
stage0: true
|
|
701
|
+
},
|
|
696
702
|
props: {
|
|
697
703
|
marks: {
|
|
698
704
|
items: [['breakout', 'dataConsumer', 'fragment']],
|
|
@@ -711,6 +717,9 @@ export const extension_with_marks = ['extension', {
|
|
|
711
717
|
}
|
|
712
718
|
}];
|
|
713
719
|
export const extensionFrame = {
|
|
720
|
+
meta: {
|
|
721
|
+
stage0: true
|
|
722
|
+
},
|
|
714
723
|
props: {
|
|
715
724
|
content: {
|
|
716
725
|
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
|
|
@@ -1025,6 +1034,9 @@ export const layoutSection_full = ['layoutSection', {
|
|
|
1025
1034
|
}
|
|
1026
1035
|
}];
|
|
1027
1036
|
export const layoutSection_with_single_column = ['layoutSection', {
|
|
1037
|
+
meta: {
|
|
1038
|
+
stage0: true
|
|
1039
|
+
},
|
|
1028
1040
|
props: {
|
|
1029
1041
|
attrs: {
|
|
1030
1042
|
optional: true,
|
|
@@ -1384,6 +1396,9 @@ export const mention = {
|
|
|
1384
1396
|
}
|
|
1385
1397
|
};
|
|
1386
1398
|
export const multiBodiedExtension = {
|
|
1399
|
+
meta: {
|
|
1400
|
+
stage0: true
|
|
1401
|
+
},
|
|
1387
1402
|
props: {
|
|
1388
1403
|
attrs: {
|
|
1389
1404
|
props: {
|
|
@@ -1431,6 +1446,9 @@ export const multiBodiedExtension = {
|
|
|
1431
1446
|
}
|
|
1432
1447
|
};
|
|
1433
1448
|
export const multiBodiedExtension_root_only = ['multiBodiedExtension', {
|
|
1449
|
+
meta: {
|
|
1450
|
+
stage0: true
|
|
1451
|
+
},
|
|
1434
1452
|
props: {
|
|
1435
1453
|
marks: {
|
|
1436
1454
|
items: ['breakout'],
|
|
@@ -1548,6 +1566,9 @@ export const panel = {
|
|
|
1548
1566
|
}
|
|
1549
1567
|
};
|
|
1550
1568
|
export const panel_c1 = ['panel', {
|
|
1569
|
+
meta: {
|
|
1570
|
+
stage0: true
|
|
1571
|
+
},
|
|
1551
1572
|
props: {
|
|
1552
1573
|
content: {
|
|
1553
1574
|
allowUnsupportedBlock: true,
|
|
@@ -1558,6 +1579,9 @@ export const panel_c1 = ['panel', {
|
|
|
1558
1579
|
}
|
|
1559
1580
|
}];
|
|
1560
1581
|
export const panel_c1_root_only = ['panel', {
|
|
1582
|
+
meta: {
|
|
1583
|
+
stage0: true
|
|
1584
|
+
},
|
|
1561
1585
|
props: {
|
|
1562
1586
|
content: {
|
|
1563
1587
|
allowUnsupportedBlock: true,
|
|
@@ -1573,6 +1597,9 @@ export const panel_c1_root_only = ['panel', {
|
|
|
1573
1597
|
}
|
|
1574
1598
|
}];
|
|
1575
1599
|
export const panel_root_only = ['panel', {
|
|
1600
|
+
meta: {
|
|
1601
|
+
stage0: true
|
|
1602
|
+
},
|
|
1576
1603
|
props: {
|
|
1577
1604
|
marks: {
|
|
1578
1605
|
items: ['breakout'],
|
|
@@ -1683,6 +1710,9 @@ export const rule = {
|
|
|
1683
1710
|
}
|
|
1684
1711
|
};
|
|
1685
1712
|
export const rule_root_only = ['rule', {
|
|
1713
|
+
meta: {
|
|
1714
|
+
stage0: true
|
|
1715
|
+
},
|
|
1686
1716
|
props: {
|
|
1687
1717
|
marks: {
|
|
1688
1718
|
items: ['breakout'],
|
|
@@ -226,6 +226,9 @@ export var bodiedExtension = {
|
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
export var bodiedExtension_root_only = ['bodiedExtension', {
|
|
229
|
+
meta: {
|
|
230
|
+
stage0: true
|
|
231
|
+
},
|
|
229
232
|
props: {
|
|
230
233
|
marks: {
|
|
231
234
|
items: [['breakout', 'dataConsumer', 'fragment']],
|
|
@@ -693,6 +696,9 @@ export var extension = {
|
|
|
693
696
|
}
|
|
694
697
|
};
|
|
695
698
|
export var extension_root_only = ['extension', {
|
|
699
|
+
meta: {
|
|
700
|
+
stage0: true
|
|
701
|
+
},
|
|
696
702
|
props: {
|
|
697
703
|
marks: {
|
|
698
704
|
items: [['breakout', 'dataConsumer', 'fragment']],
|
|
@@ -711,6 +717,9 @@ export var extension_with_marks = ['extension', {
|
|
|
711
717
|
}
|
|
712
718
|
}];
|
|
713
719
|
export var extensionFrame = {
|
|
720
|
+
meta: {
|
|
721
|
+
stage0: true
|
|
722
|
+
},
|
|
714
723
|
props: {
|
|
715
724
|
content: {
|
|
716
725
|
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
|
|
@@ -1025,6 +1034,9 @@ export var layoutSection_full = ['layoutSection', {
|
|
|
1025
1034
|
}
|
|
1026
1035
|
}];
|
|
1027
1036
|
export var layoutSection_with_single_column = ['layoutSection', {
|
|
1037
|
+
meta: {
|
|
1038
|
+
stage0: true
|
|
1039
|
+
},
|
|
1028
1040
|
props: {
|
|
1029
1041
|
attrs: {
|
|
1030
1042
|
optional: true,
|
|
@@ -1384,6 +1396,9 @@ export var mention = {
|
|
|
1384
1396
|
}
|
|
1385
1397
|
};
|
|
1386
1398
|
export var multiBodiedExtension = {
|
|
1399
|
+
meta: {
|
|
1400
|
+
stage0: true
|
|
1401
|
+
},
|
|
1387
1402
|
props: {
|
|
1388
1403
|
attrs: {
|
|
1389
1404
|
props: {
|
|
@@ -1431,6 +1446,9 @@ export var multiBodiedExtension = {
|
|
|
1431
1446
|
}
|
|
1432
1447
|
};
|
|
1433
1448
|
export var multiBodiedExtension_root_only = ['multiBodiedExtension', {
|
|
1449
|
+
meta: {
|
|
1450
|
+
stage0: true
|
|
1451
|
+
},
|
|
1434
1452
|
props: {
|
|
1435
1453
|
marks: {
|
|
1436
1454
|
items: ['breakout'],
|
|
@@ -1548,6 +1566,9 @@ export var panel = {
|
|
|
1548
1566
|
}
|
|
1549
1567
|
};
|
|
1550
1568
|
export var panel_c1 = ['panel', {
|
|
1569
|
+
meta: {
|
|
1570
|
+
stage0: true
|
|
1571
|
+
},
|
|
1551
1572
|
props: {
|
|
1552
1573
|
content: {
|
|
1553
1574
|
allowUnsupportedBlock: true,
|
|
@@ -1558,6 +1579,9 @@ export var panel_c1 = ['panel', {
|
|
|
1558
1579
|
}
|
|
1559
1580
|
}];
|
|
1560
1581
|
export var panel_c1_root_only = ['panel', {
|
|
1582
|
+
meta: {
|
|
1583
|
+
stage0: true
|
|
1584
|
+
},
|
|
1561
1585
|
props: {
|
|
1562
1586
|
content: {
|
|
1563
1587
|
allowUnsupportedBlock: true,
|
|
@@ -1573,6 +1597,9 @@ export var panel_c1_root_only = ['panel', {
|
|
|
1573
1597
|
}
|
|
1574
1598
|
}];
|
|
1575
1599
|
export var panel_root_only = ['panel', {
|
|
1600
|
+
meta: {
|
|
1601
|
+
stage0: true
|
|
1602
|
+
},
|
|
1576
1603
|
props: {
|
|
1577
1604
|
marks: {
|
|
1578
1605
|
items: ['breakout'],
|
|
@@ -1683,6 +1710,9 @@ export var rule = {
|
|
|
1683
1710
|
}
|
|
1684
1711
|
};
|
|
1685
1712
|
export var rule_root_only = ['rule', {
|
|
1713
|
+
meta: {
|
|
1714
|
+
stage0: true
|
|
1715
|
+
},
|
|
1686
1716
|
props: {
|
|
1687
1717
|
marks: {
|
|
1688
1718
|
items: ['breakout'],
|
|
@@ -236,6 +236,9 @@ export declare const bodiedExtension: {
|
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
export declare const bodiedExtension_root_only: (string | {
|
|
239
|
+
meta: {
|
|
240
|
+
stage0: boolean;
|
|
241
|
+
};
|
|
239
242
|
props: {
|
|
240
243
|
marks: {
|
|
241
244
|
items: string[][];
|
|
@@ -703,6 +706,9 @@ export declare const extension: {
|
|
|
703
706
|
};
|
|
704
707
|
};
|
|
705
708
|
export declare const extension_root_only: (string | {
|
|
709
|
+
meta: {
|
|
710
|
+
stage0: boolean;
|
|
711
|
+
};
|
|
706
712
|
props: {
|
|
707
713
|
marks: {
|
|
708
714
|
items: string[][];
|
|
@@ -721,6 +727,9 @@ export declare const extension_with_marks: (string | {
|
|
|
721
727
|
};
|
|
722
728
|
})[];
|
|
723
729
|
export declare const extensionFrame: {
|
|
730
|
+
meta: {
|
|
731
|
+
stage0: boolean;
|
|
732
|
+
};
|
|
724
733
|
props: {
|
|
725
734
|
content: {
|
|
726
735
|
items: string[][];
|
|
@@ -1037,6 +1046,9 @@ export declare const layoutSection_full: (string | {
|
|
|
1037
1046
|
};
|
|
1038
1047
|
})[];
|
|
1039
1048
|
export declare const layoutSection_with_single_column: (string | {
|
|
1049
|
+
meta: {
|
|
1050
|
+
stage0: boolean;
|
|
1051
|
+
};
|
|
1040
1052
|
props: {
|
|
1041
1053
|
attrs: {
|
|
1042
1054
|
optional: boolean;
|
|
@@ -1403,6 +1415,9 @@ export declare const mention: {
|
|
|
1403
1415
|
};
|
|
1404
1416
|
};
|
|
1405
1417
|
export declare const multiBodiedExtension: {
|
|
1418
|
+
meta: {
|
|
1419
|
+
stage0: boolean;
|
|
1420
|
+
};
|
|
1406
1421
|
props: {
|
|
1407
1422
|
attrs: {
|
|
1408
1423
|
props: {
|
|
@@ -1450,6 +1465,9 @@ export declare const multiBodiedExtension: {
|
|
|
1450
1465
|
};
|
|
1451
1466
|
};
|
|
1452
1467
|
export declare const multiBodiedExtension_root_only: (string | {
|
|
1468
|
+
meta: {
|
|
1469
|
+
stage0: boolean;
|
|
1470
|
+
};
|
|
1453
1471
|
props: {
|
|
1454
1472
|
marks: {
|
|
1455
1473
|
items: string[];
|
|
@@ -1567,6 +1585,9 @@ export declare const panel: {
|
|
|
1567
1585
|
};
|
|
1568
1586
|
};
|
|
1569
1587
|
export declare const panel_c1: (string | {
|
|
1588
|
+
meta: {
|
|
1589
|
+
stage0: boolean;
|
|
1590
|
+
};
|
|
1570
1591
|
props: {
|
|
1571
1592
|
content: {
|
|
1572
1593
|
allowUnsupportedBlock: boolean;
|
|
@@ -1577,6 +1598,9 @@ export declare const panel_c1: (string | {
|
|
|
1577
1598
|
};
|
|
1578
1599
|
})[];
|
|
1579
1600
|
export declare const panel_c1_root_only: (string | {
|
|
1601
|
+
meta: {
|
|
1602
|
+
stage0: boolean;
|
|
1603
|
+
};
|
|
1580
1604
|
props: {
|
|
1581
1605
|
content: {
|
|
1582
1606
|
allowUnsupportedBlock: boolean;
|
|
@@ -1592,6 +1616,9 @@ export declare const panel_c1_root_only: (string | {
|
|
|
1592
1616
|
};
|
|
1593
1617
|
})[];
|
|
1594
1618
|
export declare const panel_root_only: (string | {
|
|
1619
|
+
meta: {
|
|
1620
|
+
stage0: boolean;
|
|
1621
|
+
};
|
|
1595
1622
|
props: {
|
|
1596
1623
|
marks: {
|
|
1597
1624
|
items: string[];
|
|
@@ -1702,6 +1729,9 @@ export declare const rule: {
|
|
|
1702
1729
|
};
|
|
1703
1730
|
};
|
|
1704
1731
|
export declare const rule_root_only: (string | {
|
|
1732
|
+
meta: {
|
|
1733
|
+
stage0: boolean;
|
|
1734
|
+
};
|
|
1705
1735
|
props: {
|
|
1706
1736
|
marks: {
|
|
1707
1737
|
items: string[];
|
package/package.json
CHANGED