@atlaskit/adf-schema 45.2.0 → 46.1.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 +17 -0
- package/dist/cjs/next-schema/full-schema.adf.js +1 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +5 -4
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -3
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/expand.js +5 -19
- package/dist/cjs/schema/nodes/expand.js +1 -1
- package/dist/cjs/schema/nodes/tableNodes.js +1 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +6 -20
- package/dist/es2019/next-schema/full-schema.adf.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +4 -3
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -3
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/expand.js +5 -19
- package/dist/es2019/schema/nodes/expand.js +1 -1
- package/dist/es2019/schema/nodes/tableNodes.js +1 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +5 -19
- package/dist/esm/next-schema/full-schema.adf.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +4 -3
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -3
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/nodes/expand.js +5 -19
- package/dist/esm/schema/nodes/expand.js +1 -1
- package/dist/esm/schema/nodes/tableNodes.js +1 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +5 -19
- package/dist/json-schema/v1/full.json +40 -39
- package/dist/json-schema/v1/stage-0.json +40 -39
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +6 -6
- package/dist/types/next-schema/groups/blockContentGroup.d.ts +0 -2
- package/dist/types/next-schema/nodes/expand.d.ts +3 -8
- package/dist/types/schema/nodes/doc.d.ts +2 -2
- package/dist/types/schema/nodes/expand.d.ts +2 -3
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +2 -16
- package/json-schema/v1/full.json +40 -39
- package/json-schema/v1/stage-0.json +40 -39
- package/package.json +2 -2
@@ -136,7 +136,7 @@
|
|
136
136
|
"$ref": "#/definitions/table_node"
|
137
137
|
},
|
138
138
|
{
|
139
|
-
"$ref": "#/definitions/
|
139
|
+
"$ref": "#/definitions/expand_node"
|
140
140
|
},
|
141
141
|
{
|
142
142
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
@@ -745,10 +745,7 @@
|
|
745
745
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
746
746
|
},
|
747
747
|
{
|
748
|
-
"$ref": "#/definitions/
|
749
|
-
},
|
750
|
-
{
|
751
|
-
"$ref": "#/definitions/expand_with_breakout_mark_node"
|
748
|
+
"$ref": "#/definitions/expand_node"
|
752
749
|
},
|
753
750
|
{
|
754
751
|
"$ref": "#/definitions/codeBlock_root_only_node"
|
@@ -761,6 +758,9 @@
|
|
761
758
|
},
|
762
759
|
{
|
763
760
|
"$ref": "#/definitions/multiBodiedExtension_node"
|
761
|
+
},
|
762
|
+
{
|
763
|
+
"$ref": "#/definitions/expand_root_only_node"
|
764
764
|
}
|
765
765
|
]
|
766
766
|
}
|
@@ -863,7 +863,8 @@
|
|
863
863
|
"enum": ["expand"]
|
864
864
|
},
|
865
865
|
"marks": {
|
866
|
-
"type": "array"
|
866
|
+
"type": "array",
|
867
|
+
"maxItems": 0
|
867
868
|
},
|
868
869
|
"attrs": {
|
869
870
|
"type": "object",
|
@@ -890,43 +891,46 @@
|
|
890
891
|
}
|
891
892
|
},
|
892
893
|
"additionalProperties": false,
|
893
|
-
"required": ["type", "content"
|
894
|
+
"required": ["type", "content"]
|
894
895
|
},
|
895
|
-
"
|
896
|
-
"
|
897
|
-
|
898
|
-
|
896
|
+
"expand_root_only_node": {
|
897
|
+
"type": "object",
|
898
|
+
"properties": {
|
899
|
+
"type": {
|
900
|
+
"enum": ["expand"]
|
899
901
|
},
|
900
|
-
{
|
902
|
+
"marks": {
|
903
|
+
"type": "array",
|
904
|
+
"items": {
|
905
|
+
"$ref": "#/definitions/breakout_mark"
|
906
|
+
}
|
907
|
+
},
|
908
|
+
"attrs": {
|
901
909
|
"type": "object",
|
902
910
|
"properties": {
|
903
|
-
"
|
904
|
-
"type": "
|
905
|
-
"items": {
|
906
|
-
"$ref": "#/definitions/breakout_mark"
|
907
|
-
}
|
911
|
+
"title": {
|
912
|
+
"type": "string"
|
908
913
|
}
|
909
914
|
},
|
910
|
-
"additionalProperties":
|
911
|
-
}
|
912
|
-
]
|
913
|
-
},
|
914
|
-
"expand_with_no_mark_node": {
|
915
|
-
"allOf": [
|
916
|
-
{
|
917
|
-
"$ref": "#/definitions/expand_node"
|
915
|
+
"additionalProperties": false
|
918
916
|
},
|
919
|
-
{
|
920
|
-
"type": "
|
921
|
-
"
|
922
|
-
"
|
923
|
-
|
924
|
-
|
925
|
-
|
917
|
+
"content": {
|
918
|
+
"type": "array",
|
919
|
+
"items": {
|
920
|
+
"anyOf": [
|
921
|
+
{
|
922
|
+
"$ref": "#/definitions/non_nestable_block_content"
|
923
|
+
},
|
924
|
+
{
|
925
|
+
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
926
|
+
}
|
927
|
+
]
|
926
928
|
},
|
927
|
-
"
|
929
|
+
"minItems": 1
|
928
930
|
}
|
929
|
-
|
931
|
+
},
|
932
|
+
"additionalProperties": false,
|
933
|
+
"required": ["type", "content"]
|
930
934
|
},
|
931
935
|
"extension_node": {
|
932
936
|
"type": "object",
|
@@ -1466,13 +1470,10 @@
|
|
1466
1470
|
},
|
1467
1471
|
"minItems": 2,
|
1468
1472
|
"maxItems": 3
|
1469
|
-
},
|
1470
|
-
"type": {
|
1471
|
-
"enum": ["layoutSection"]
|
1472
1473
|
}
|
1473
1474
|
},
|
1474
|
-
"required": ["
|
1475
|
-
"additionalProperties":
|
1475
|
+
"required": ["content"],
|
1476
|
+
"additionalProperties": true
|
1476
1477
|
}
|
1477
1478
|
]
|
1478
1479
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "
|
3
|
+
"version": "46.1.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
|
},
|
47
47
|
"devDependencies": {
|
48
48
|
"@atlassian/adf-schema-json": "^1.24.0",
|
49
|
-
"@atlaskit/adf-schema-generator": "^1.
|
49
|
+
"@atlaskit/adf-schema-generator": "^2.1.0",
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.4",
|
51
51
|
"@babel/cli": "^7.22.9",
|
52
52
|
"@babel/core": "^7.22.9",
|