@atlaskit/adf-schema 44.5.0 → 44.6.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
+ ## 44.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c8a4a74: Fix ADF Inconsistency for Block Card
8
+
3
9
  ## 44.5.0
4
10
 
5
11
  ### Minor Changes
@@ -28,13 +28,18 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
28
28
  type: 'string'
29
29
  },
30
30
  // Empty parameters object carried over from original JSON Schema.
31
- parameters: {},
31
+ parameters: {
32
+ type: 'object'
33
+ },
32
34
  views: {
33
35
  items: {
34
36
  additionalProperties: false,
35
37
  properties: {
36
38
  // Empty properties object carried over from original JSON Schema
37
- properties: {},
39
+ properties: {
40
+ optional: true,
41
+ type: 'object'
42
+ },
38
43
  type: {
39
44
  type: 'string'
40
45
  }
@@ -70,37 +75,5 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
70
75
  default: null
71
76
  }
72
77
  }]
73
- },
74
- DANGEROUS_MANUAL_OVERRIDE: {
75
- 'validator-spec': {
76
- 'props.attrs[0].props.datasource': {
77
- reason: '@DSLCompatibilityException - mismatch for blockcard',
78
- value: {
79
- props: {
80
- id: {
81
- type: 'string'
82
- },
83
- parameters: {
84
- type: 'object'
85
- },
86
- views: {
87
- items: [{
88
- props: {
89
- properties: {
90
- optional: true,
91
- type: 'object'
92
- },
93
- type: {
94
- type: 'string'
95
- }
96
- }
97
- }],
98
- minItems: 1,
99
- type: 'array'
100
- }
101
- }
102
- }
103
- }
104
- }
105
78
  }
106
79
  });
@@ -22,13 +22,18 @@ export const blockCard = adfNode('blockCard').define({
22
22
  type: 'string'
23
23
  },
24
24
  // Empty parameters object carried over from original JSON Schema.
25
- parameters: {},
25
+ parameters: {
26
+ type: 'object'
27
+ },
26
28
  views: {
27
29
  items: {
28
30
  additionalProperties: false,
29
31
  properties: {
30
32
  // Empty properties object carried over from original JSON Schema
31
- properties: {},
33
+ properties: {
34
+ optional: true,
35
+ type: 'object'
36
+ },
32
37
  type: {
33
38
  type: 'string'
34
39
  }
@@ -64,37 +69,5 @@ export const blockCard = adfNode('blockCard').define({
64
69
  default: null
65
70
  }
66
71
  }]
67
- },
68
- DANGEROUS_MANUAL_OVERRIDE: {
69
- 'validator-spec': {
70
- 'props.attrs[0].props.datasource': {
71
- reason: '@DSLCompatibilityException - mismatch for blockcard',
72
- value: {
73
- props: {
74
- id: {
75
- type: 'string'
76
- },
77
- parameters: {
78
- type: 'object'
79
- },
80
- views: {
81
- items: [{
82
- props: {
83
- properties: {
84
- optional: true,
85
- type: 'object'
86
- },
87
- type: {
88
- type: 'string'
89
- }
90
- }
91
- }],
92
- minItems: 1,
93
- type: 'array'
94
- }
95
- }
96
- }
97
- }
98
- }
99
72
  }
100
73
  });
@@ -22,13 +22,18 @@ export var blockCard = adfNode('blockCard').define({
22
22
  type: 'string'
23
23
  },
24
24
  // Empty parameters object carried over from original JSON Schema.
25
- parameters: {},
25
+ parameters: {
26
+ type: 'object'
27
+ },
26
28
  views: {
27
29
  items: {
28
30
  additionalProperties: false,
29
31
  properties: {
30
32
  // Empty properties object carried over from original JSON Schema
31
- properties: {},
33
+ properties: {
34
+ optional: true,
35
+ type: 'object'
36
+ },
32
37
  type: {
33
38
  type: 'string'
34
39
  }
@@ -64,37 +69,5 @@ export var blockCard = adfNode('blockCard').define({
64
69
  default: null
65
70
  }
66
71
  }]
67
- },
68
- DANGEROUS_MANUAL_OVERRIDE: {
69
- 'validator-spec': {
70
- 'props.attrs[0].props.datasource': {
71
- reason: '@DSLCompatibilityException - mismatch for blockcard',
72
- value: {
73
- props: {
74
- id: {
75
- type: 'string'
76
- },
77
- parameters: {
78
- type: 'object'
79
- },
80
- views: {
81
- items: [{
82
- props: {
83
- properties: {
84
- optional: true,
85
- type: 'object'
86
- },
87
- type: {
88
- type: 'string'
89
- }
90
- }
91
- }],
92
- minItems: 1,
93
- type: 'array'
94
- }
95
- }
96
- }
97
- }
98
- }
99
72
  }
100
73
  });
@@ -27,7 +27,7 @@
27
27
  "parameters": {},
28
28
  "views": {
29
29
  "items": {
30
- "additionalProperties": false,
30
+ "type": "object",
31
31
  "properties": {
32
32
  "properties": {},
33
33
  "type": {
@@ -35,7 +35,7 @@
35
35
  }
36
36
  },
37
37
  "required": ["type"],
38
- "type": "object"
38
+ "additionalProperties": false
39
39
  },
40
40
  "minItems": 1,
41
41
  "type": "array"
@@ -27,7 +27,7 @@
27
27
  "parameters": {},
28
28
  "views": {
29
29
  "items": {
30
- "additionalProperties": false,
30
+ "type": "object",
31
31
  "properties": {
32
32
  "properties": {},
33
33
  "type": {
@@ -35,7 +35,7 @@
35
35
  }
36
36
  },
37
37
  "required": ["type"],
38
- "type": "object"
38
+ "additionalProperties": false
39
39
  },
40
40
  "minItems": 1,
41
41
  "type": "array"
@@ -27,7 +27,7 @@
27
27
  "parameters": {},
28
28
  "views": {
29
29
  "items": {
30
- "additionalProperties": false,
30
+ "type": "object",
31
31
  "properties": {
32
32
  "properties": {},
33
33
  "type": {
@@ -35,7 +35,7 @@
35
35
  }
36
36
  },
37
37
  "required": ["type"],
38
- "type": "object"
38
+ "additionalProperties": false
39
39
  },
40
40
  "minItems": 1,
41
41
  "type": "array"
@@ -27,7 +27,7 @@
27
27
  "parameters": {},
28
28
  "views": {
29
29
  "items": {
30
- "additionalProperties": false,
30
+ "type": "object",
31
31
  "properties": {
32
32
  "properties": {},
33
33
  "type": {
@@ -35,7 +35,7 @@
35
35
  }
36
36
  },
37
37
  "required": ["type"],
38
- "type": "object"
38
+ "additionalProperties": false
39
39
  },
40
40
  "minItems": 1,
41
41
  "type": "array"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "44.5.0",
3
+ "version": "44.6.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.37.0",
49
+ "@atlaskit/adf-schema-generator": "^1.38.0",
50
50
  "@atlaskit/codemod-utils": "^4.2.4",
51
51
  "@babel/cli": "^7.22.9",
52
52
  "@babel/core": "^7.22.9",