@atlaskit/adf-utils 18.2.3 → 18.3.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,15 @@
1
1
  # @atlaskit/adf-utils
2
2
 
3
+ ## 18.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f3d2c08d61b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f3d2c08d61b) - Adds new datasource attribute to existing blockCard node
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 18.2.3
4
14
 
5
15
  ### Patch Changes
@@ -23,6 +23,49 @@ var _default = {
23
23
  type: 'object'
24
24
  }
25
25
  }
26
+ }, {
27
+ props: {
28
+ url: {
29
+ type: 'string',
30
+ validatorFn: 'safeUrl',
31
+ optional: true
32
+ },
33
+ datasource: {
34
+ props: {
35
+ id: {
36
+ type: 'string'
37
+ },
38
+ parameters: {
39
+ type: 'object'
40
+ },
41
+ views: {
42
+ type: 'array',
43
+ items: [{
44
+ props: {
45
+ type: {
46
+ type: 'string'
47
+ },
48
+ properties: {
49
+ type: 'object',
50
+ optional: true
51
+ }
52
+ }
53
+ }],
54
+ isTupleLike: true
55
+ },
56
+ width: {
57
+ type: 'number',
58
+ minimum: 0,
59
+ maximum: 100,
60
+ optional: true
61
+ },
62
+ layout: {
63
+ type: 'enum',
64
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
65
+ }
66
+ }
67
+ }
68
+ }
26
69
  }]
27
70
  },
28
71
  required: ['attrs']
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "18.2.3",
3
+ "version": "18.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -17,6 +17,49 @@ export default {
17
17
  type: 'object'
18
18
  }
19
19
  }
20
+ }, {
21
+ props: {
22
+ url: {
23
+ type: 'string',
24
+ validatorFn: 'safeUrl',
25
+ optional: true
26
+ },
27
+ datasource: {
28
+ props: {
29
+ id: {
30
+ type: 'string'
31
+ },
32
+ parameters: {
33
+ type: 'object'
34
+ },
35
+ views: {
36
+ type: 'array',
37
+ items: [{
38
+ props: {
39
+ type: {
40
+ type: 'string'
41
+ },
42
+ properties: {
43
+ type: 'object',
44
+ optional: true
45
+ }
46
+ }
47
+ }],
48
+ isTupleLike: true
49
+ },
50
+ width: {
51
+ type: 'number',
52
+ minimum: 0,
53
+ maximum: 100,
54
+ optional: true
55
+ },
56
+ layout: {
57
+ type: 'enum',
58
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
59
+ }
60
+ }
61
+ }
62
+ }
20
63
  }]
21
64
  },
22
65
  required: ['attrs']
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "18.2.3",
3
+ "version": "18.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -17,6 +17,49 @@ export default {
17
17
  type: 'object'
18
18
  }
19
19
  }
20
+ }, {
21
+ props: {
22
+ url: {
23
+ type: 'string',
24
+ validatorFn: 'safeUrl',
25
+ optional: true
26
+ },
27
+ datasource: {
28
+ props: {
29
+ id: {
30
+ type: 'string'
31
+ },
32
+ parameters: {
33
+ type: 'object'
34
+ },
35
+ views: {
36
+ type: 'array',
37
+ items: [{
38
+ props: {
39
+ type: {
40
+ type: 'string'
41
+ },
42
+ properties: {
43
+ type: 'object',
44
+ optional: true
45
+ }
46
+ }
47
+ }],
48
+ isTupleLike: true
49
+ },
50
+ width: {
51
+ type: 'number',
52
+ minimum: 0,
53
+ maximum: 100,
54
+ optional: true
55
+ },
56
+ layout: {
57
+ type: 'enum',
58
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
59
+ }
60
+ }
61
+ }
62
+ }
20
63
  }]
21
64
  },
22
65
  required: ['attrs']
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "18.2.3",
3
+ "version": "18.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -9,8 +9,10 @@ declare const _default: {
9
9
  url: {
10
10
  type: string;
11
11
  validatorFn: string;
12
+ optional?: undefined;
12
13
  };
13
14
  data?: undefined;
15
+ datasource?: undefined;
14
16
  };
15
17
  } | {
16
18
  props: {
@@ -18,6 +20,51 @@ declare const _default: {
18
20
  type: string;
19
21
  };
20
22
  url?: undefined;
23
+ datasource?: undefined;
24
+ };
25
+ } | {
26
+ props: {
27
+ url: {
28
+ type: string;
29
+ validatorFn: string;
30
+ optional: boolean;
31
+ };
32
+ datasource: {
33
+ props: {
34
+ id: {
35
+ type: string;
36
+ };
37
+ parameters: {
38
+ type: string;
39
+ };
40
+ views: {
41
+ type: string;
42
+ items: {
43
+ props: {
44
+ type: {
45
+ type: string;
46
+ };
47
+ properties: {
48
+ type: string;
49
+ optional: boolean;
50
+ };
51
+ };
52
+ }[];
53
+ isTupleLike: boolean;
54
+ };
55
+ width: {
56
+ type: string;
57
+ minimum: number;
58
+ maximum: number;
59
+ optional: boolean;
60
+ };
61
+ layout: {
62
+ type: string;
63
+ values: string[];
64
+ };
65
+ };
66
+ };
67
+ data?: undefined;
21
68
  };
22
69
  })[];
23
70
  };
@@ -9,8 +9,10 @@ declare const _default: {
9
9
  url: {
10
10
  type: string;
11
11
  validatorFn: string;
12
+ optional?: undefined;
12
13
  };
13
14
  data?: undefined;
15
+ datasource?: undefined;
14
16
  };
15
17
  } | {
16
18
  props: {
@@ -18,6 +20,51 @@ declare const _default: {
18
20
  type: string;
19
21
  };
20
22
  url?: undefined;
23
+ datasource?: undefined;
24
+ };
25
+ } | {
26
+ props: {
27
+ url: {
28
+ type: string;
29
+ validatorFn: string;
30
+ optional: boolean;
31
+ };
32
+ datasource: {
33
+ props: {
34
+ id: {
35
+ type: string;
36
+ };
37
+ parameters: {
38
+ type: string;
39
+ };
40
+ views: {
41
+ type: string;
42
+ items: {
43
+ props: {
44
+ type: {
45
+ type: string;
46
+ };
47
+ properties: {
48
+ type: string;
49
+ optional: boolean;
50
+ };
51
+ };
52
+ }[];
53
+ isTupleLike: boolean;
54
+ };
55
+ width: {
56
+ type: string;
57
+ minimum: number;
58
+ maximum: number;
59
+ optional: boolean;
60
+ };
61
+ layout: {
62
+ type: string;
63
+ values: string[];
64
+ };
65
+ };
66
+ };
67
+ data?: undefined;
21
68
  };
22
69
  })[];
23
70
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "18.2.3",
3
+ "version": "18.3.0",
4
4
  "description": "Set of utilities to traverse, modify and create ADF documents.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  "generate:spec": "rm -rf ./src/validator/specs/ && ../json-schema-generator/bin.js --outDir=./src/validator/specs/ --mode=Spec --stage=0 ./src/validator/entry.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@atlaskit/adf-schema": "^25.7.0",
44
+ "@atlaskit/adf-schema": "^25.8.0",
45
45
  "@atlaskit/codemod-utils": "^4.2.0",
46
46
  "@babel/runtime": "^7.0.0"
47
47
  },