@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 46.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2eee4d8: Make attrs optional for expand, remove type from layoutSectionFull
8
+
3
9
  ## 46.0.0
4
10
 
5
11
  ### Major Changes
@@ -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') || ( // copying from renderer
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(),
@@ -505,7 +505,8 @@ var expand = exports.expand = {
505
505
  type: 'string',
506
506
  optional: true
507
507
  }
508
- }
508
+ },
509
+ optional: true
509
510
  },
510
511
  content: {
511
512
  type: 'array',
@@ -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') || ( // copying from renderer
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(),
@@ -499,7 +499,8 @@ export const expand = {
499
499
  type: 'string',
500
500
  optional: true
501
501
  }
502
- }
502
+ },
503
+ optional: true
503
504
  },
504
505
  content: {
505
506
  type: 'array',
@@ -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') || ( // copying from renderer
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(),
@@ -499,7 +499,8 @@ export var expand = {
499
499
  type: 'string',
500
500
  optional: true
501
501
  }
502
- }
502
+ },
503
+ optional: true
503
504
  },
504
505
  content: {
505
506
  type: 'array',
@@ -860,7 +860,7 @@
860
860
  }
861
861
  },
862
862
  "additionalProperties": false,
863
- "required": ["type", "content", "attrs"]
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": ["type", "content"],
1357
- "additionalProperties": false
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", "attrs"]
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": ["type", "content"],
1479
- "additionalProperties": false
1475
+ "required": ["content"],
1476
+ "additionalProperties": true
1480
1477
  }
1481
1478
  ]
1482
1479
  },
@@ -510,6 +510,7 @@ export declare const expand: {
510
510
  optional: boolean;
511
511
  };
512
512
  };
513
+ optional: boolean;
513
514
  };
514
515
  content: {
515
516
  type: string;
@@ -860,7 +860,7 @@
860
860
  }
861
861
  },
862
862
  "additionalProperties": false,
863
- "required": ["type", "content", "attrs"]
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": ["type", "content"],
1357
- "additionalProperties": false
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", "attrs"]
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": ["type", "content"],
1479
- "additionalProperties": false
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.0.0",
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.0.0",
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",