@atlaskit/adf-utils 18.2.2 → 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 +17 -0
- package/dist/cjs/scrub/scrub-content.js +1 -1
- package/dist/cjs/validator/specs/blockCard.js +43 -0
- package/dist/cjs/validator/specs/table.js +4 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/scrub/scrub-content.js +1 -1
- package/dist/es2019/validator/specs/blockCard.js +43 -0
- package/dist/es2019/validator/specs/table.js +4 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/scrub/scrub-content.js +1 -1
- package/dist/esm/validator/specs/blockCard.js +43 -0
- package/dist/esm/validator/specs/table.js +4 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/validator/specs/blockCard.d.ts +47 -0
- package/dist/types/validator/specs/table.d.ts +4 -0
- package/dist/types-ts4.5/validator/specs/blockCard.d.ts +47 -0
- package/dist/types-ts4.5/validator/specs/table.d.ts +4 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
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
|
+
|
|
13
|
+
## 18.2.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`94561f309f3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/94561f309f3) - New stage-0 change: custom "width" attribute on Tables nodes
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 18.2.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -27,7 +27,7 @@ var BYPASS_ATTR_LIST = {
|
|
|
27
27
|
orderedList: ['order'],
|
|
28
28
|
panel: ['panelType'],
|
|
29
29
|
status: ['color', 'style'],
|
|
30
|
-
table: ['isNumberColumnEnabled', 'layout'],
|
|
30
|
+
table: ['isNumberColumnEnabled', 'layout', 'width'],
|
|
31
31
|
tableCell: ['background', 'colspan', 'colwidth', 'defaultMarks', 'rowspan'],
|
|
32
32
|
tableHeader: ['background', 'colspan', 'colwidth', 'defaultMarks', 'rowspan'],
|
|
33
33
|
tableRow: ['defaultMarks'],
|
|
@@ -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']
|
package/dist/cjs/version.json
CHANGED
|
@@ -14,7 +14,7 @@ const BYPASS_ATTR_LIST = {
|
|
|
14
14
|
orderedList: ['order'],
|
|
15
15
|
panel: ['panelType'],
|
|
16
16
|
status: ['color', 'style'],
|
|
17
|
-
table: ['isNumberColumnEnabled', 'layout'],
|
|
17
|
+
table: ['isNumberColumnEnabled', 'layout', 'width'],
|
|
18
18
|
tableCell: ['background', 'colspan', 'colwidth', 'defaultMarks', 'rowspan'],
|
|
19
19
|
tableHeader: ['background', 'colspan', 'colwidth', 'defaultMarks', 'rowspan'],
|
|
20
20
|
tableRow: ['defaultMarks'],
|
|
@@ -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']
|
package/dist/es2019/version.json
CHANGED
|
@@ -20,7 +20,7 @@ var BYPASS_ATTR_LIST = {
|
|
|
20
20
|
orderedList: ['order'],
|
|
21
21
|
panel: ['panelType'],
|
|
22
22
|
status: ['color', 'style'],
|
|
23
|
-
table: ['isNumberColumnEnabled', 'layout'],
|
|
23
|
+
table: ['isNumberColumnEnabled', 'layout', 'width'],
|
|
24
24
|
tableCell: ['background', 'colspan', 'colwidth', 'defaultMarks', 'rowspan'],
|
|
25
25
|
tableHeader: ['background', 'colspan', 'colwidth', 'defaultMarks', 'rowspan'],
|
|
26
26
|
tableRow: ['defaultMarks'],
|
|
@@ -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']
|
package/dist/esm/version.json
CHANGED
|
@@ -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.
|
|
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.
|
|
44
|
+
"@atlaskit/adf-schema": "^25.8.0",
|
|
45
45
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|