@atlaskit/adf-schema 46.0.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 +6 -0
- package/dist/cjs/next-schema/nodes/expand.js +1 -9
- package/dist/cjs/schema/nodes/tableNodes.js +1 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +2 -1
- package/dist/es2019/next-schema/nodes/expand.js +1 -9
- package/dist/es2019/schema/nodes/tableNodes.js +1 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +2 -1
- package/dist/esm/next-schema/nodes/expand.js +1 -9
- package/dist/esm/schema/nodes/tableNodes.js +1 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +2 -1
- package/dist/json-schema/v1/full.json +3 -6
- package/dist/json-schema/v1/stage-0.json +3 -6
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +1 -0
- package/json-schema/v1/full.json +3 -6
- package/json-schema/v1/stage-0.json +3 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -26,15 +26,7 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
|
|
26
26
|
optional: true
|
27
27
|
}
|
28
28
|
},
|
29
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks')))]
|
30
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
31
|
-
'validator-spec': {
|
32
|
-
'props.attrs.optional': {
|
33
|
-
reason: '@DSLCompatibilityException - required for expand validator spec',
|
34
|
-
remove: true
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
29
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks')))]
|
38
30
|
}).variant('without_nested_expand', {
|
39
31
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
|
40
32
|
ignore: ['json-schema', 'validator-spec']
|
@@ -224,7 +224,7 @@ var tableNodeSpecOptions = {
|
|
224
224
|
isNumberColumnEnabled: dom.getAttribute('data-number-column') === 'true',
|
225
225
|
layout:
|
226
226
|
// copying from editor
|
227
|
-
dom.getAttribute('data-layout') || (
|
227
|
+
dom.getAttribute('data-layout') || (// copying from renderer
|
228
228
|
breakoutWrapper === null || breakoutWrapper === void 0 ? void 0 : breakoutWrapper.getAttribute('data-layout')) || 'default',
|
229
229
|
__autoSize: dom.getAttribute('data-autosize') === 'true',
|
230
230
|
localId: dom.getAttribute('data-table-local-id') || _uuid.uuid.generate(),
|
@@ -20,15 +20,7 @@ export const expand = adfNode('expand').define({
|
|
20
20
|
optional: true
|
21
21
|
}
|
22
22
|
},
|
23
|
-
content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))]
|
24
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
25
|
-
'validator-spec': {
|
26
|
-
'props.attrs.optional': {
|
27
|
-
reason: '@DSLCompatibilityException - required for expand validator spec',
|
28
|
-
remove: true
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
23
|
+
content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))]
|
32
24
|
}).variant('without_nested_expand', {
|
33
25
|
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
34
26
|
ignore: ['json-schema', 'validator-spec']
|
@@ -211,7 +211,7 @@ const tableNodeSpecOptions = {
|
|
211
211
|
isNumberColumnEnabled: dom.getAttribute('data-number-column') === 'true',
|
212
212
|
layout:
|
213
213
|
// copying from editor
|
214
|
-
dom.getAttribute('data-layout') || (
|
214
|
+
dom.getAttribute('data-layout') || (// copying from renderer
|
215
215
|
breakoutWrapper === null || breakoutWrapper === void 0 ? void 0 : breakoutWrapper.getAttribute('data-layout')) || 'default',
|
216
216
|
__autoSize: dom.getAttribute('data-autosize') === 'true',
|
217
217
|
localId: dom.getAttribute('data-table-local-id') || uuid.generate(),
|
@@ -20,15 +20,7 @@ export var expand = adfNode('expand').define({
|
|
20
20
|
optional: true
|
21
21
|
}
|
22
22
|
},
|
23
|
-
content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))]
|
24
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
25
|
-
'validator-spec': {
|
26
|
-
'props.attrs.optional': {
|
27
|
-
reason: '@DSLCompatibilityException - required for expand validator spec',
|
28
|
-
remove: true
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
23
|
+
content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))]
|
32
24
|
}).variant('without_nested_expand', {
|
33
25
|
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
34
26
|
ignore: ['json-schema', 'validator-spec']
|
@@ -217,7 +217,7 @@ var tableNodeSpecOptions = {
|
|
217
217
|
isNumberColumnEnabled: dom.getAttribute('data-number-column') === 'true',
|
218
218
|
layout:
|
219
219
|
// copying from editor
|
220
|
-
dom.getAttribute('data-layout') || (
|
220
|
+
dom.getAttribute('data-layout') || (// copying from renderer
|
221
221
|
breakoutWrapper === null || breakoutWrapper === void 0 ? void 0 : breakoutWrapper.getAttribute('data-layout')) || 'default',
|
222
222
|
__autoSize: dom.getAttribute('data-autosize') === 'true',
|
223
223
|
localId: dom.getAttribute('data-table-local-id') || uuid.generate(),
|
@@ -860,7 +860,7 @@
|
|
860
860
|
}
|
861
861
|
},
|
862
862
|
"additionalProperties": false,
|
863
|
-
"required": ["type", "content"
|
863
|
+
"required": ["type", "content"]
|
864
864
|
},
|
865
865
|
"expand_root_only_node": {
|
866
866
|
"type": "object",
|
@@ -1348,13 +1348,10 @@
|
|
1348
1348
|
},
|
1349
1349
|
"minItems": 2,
|
1350
1350
|
"maxItems": 3
|
1351
|
-
},
|
1352
|
-
"type": {
|
1353
|
-
"enum": ["layoutSection"]
|
1354
1351
|
}
|
1355
1352
|
},
|
1356
|
-
"required": ["
|
1357
|
-
"additionalProperties":
|
1353
|
+
"required": ["content"],
|
1354
|
+
"additionalProperties": true
|
1358
1355
|
}
|
1359
1356
|
]
|
1360
1357
|
},
|
@@ -891,7 +891,7 @@
|
|
891
891
|
}
|
892
892
|
},
|
893
893
|
"additionalProperties": false,
|
894
|
-
"required": ["type", "content"
|
894
|
+
"required": ["type", "content"]
|
895
895
|
},
|
896
896
|
"expand_root_only_node": {
|
897
897
|
"type": "object",
|
@@ -1470,13 +1470,10 @@
|
|
1470
1470
|
},
|
1471
1471
|
"minItems": 2,
|
1472
1472
|
"maxItems": 3
|
1473
|
-
},
|
1474
|
-
"type": {
|
1475
|
-
"enum": ["layoutSection"]
|
1476
1473
|
}
|
1477
1474
|
},
|
1478
|
-
"required": ["
|
1479
|
-
"additionalProperties":
|
1475
|
+
"required": ["content"],
|
1476
|
+
"additionalProperties": true
|
1480
1477
|
}
|
1481
1478
|
]
|
1482
1479
|
},
|
package/json-schema/v1/full.json
CHANGED
@@ -860,7 +860,7 @@
|
|
860
860
|
}
|
861
861
|
},
|
862
862
|
"additionalProperties": false,
|
863
|
-
"required": ["type", "content"
|
863
|
+
"required": ["type", "content"]
|
864
864
|
},
|
865
865
|
"expand_root_only_node": {
|
866
866
|
"type": "object",
|
@@ -1348,13 +1348,10 @@
|
|
1348
1348
|
},
|
1349
1349
|
"minItems": 2,
|
1350
1350
|
"maxItems": 3
|
1351
|
-
},
|
1352
|
-
"type": {
|
1353
|
-
"enum": ["layoutSection"]
|
1354
1351
|
}
|
1355
1352
|
},
|
1356
|
-
"required": ["
|
1357
|
-
"additionalProperties":
|
1353
|
+
"required": ["content"],
|
1354
|
+
"additionalProperties": true
|
1358
1355
|
}
|
1359
1356
|
]
|
1360
1357
|
},
|
@@ -891,7 +891,7 @@
|
|
891
891
|
}
|
892
892
|
},
|
893
893
|
"additionalProperties": false,
|
894
|
-
"required": ["type", "content"
|
894
|
+
"required": ["type", "content"]
|
895
895
|
},
|
896
896
|
"expand_root_only_node": {
|
897
897
|
"type": "object",
|
@@ -1470,13 +1470,10 @@
|
|
1470
1470
|
},
|
1471
1471
|
"minItems": 2,
|
1472
1472
|
"maxItems": 3
|
1473
|
-
},
|
1474
|
-
"type": {
|
1475
|
-
"enum": ["layoutSection"]
|
1476
1473
|
}
|
1477
1474
|
},
|
1478
|
-
"required": ["
|
1479
|
-
"additionalProperties":
|
1475
|
+
"required": ["content"],
|
1476
|
+
"additionalProperties": true
|
1480
1477
|
}
|
1481
1478
|
]
|
1482
1479
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "46.
|
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": "^2.
|
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",
|