@atlaskit/blanket 14.1.0 → 14.1.2
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 +14 -0
- package/dist/cjs/blanket.js +1 -1
- package/dist/es2019/blanket.js +1 -1
- package/dist/esm/blanket.js +1 -1
- package/package.json +5 -4
- package/codemods/12.0.0-lite-mode.tsx +0 -15
- package/codemods/__tests__/rename-canclickthrough-to-shouldallowclickthrough.tsx +0 -167
- package/codemods/internal/constants.tsx +0 -3
- package/codemods/migrations/rename-canclickthrough-to-shouldallowclickthrough.tsx +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/blanket
|
|
2
2
|
|
|
3
|
+
## 14.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#113039](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113039)
|
|
8
|
+
[`dc89be79601e2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc89be79601e2) -
|
|
9
|
+
Remove old codemods.
|
|
10
|
+
|
|
11
|
+
## 14.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 14.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/cjs/blanket.js
CHANGED
|
@@ -21,7 +21,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
21
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
var packageName = "@atlaskit/blanket";
|
|
24
|
-
var packageVersion = "14.1.
|
|
24
|
+
var packageVersion = "14.1.2";
|
|
25
25
|
var analyticsAttributes = {
|
|
26
26
|
componentName: 'blanket',
|
|
27
27
|
packageName: packageName,
|
package/dist/es2019/blanket.js
CHANGED
|
@@ -8,7 +8,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
8
8
|
import { N100A } from '@atlaskit/theme/colors';
|
|
9
9
|
import { layers } from '@atlaskit/theme/constants';
|
|
10
10
|
const packageName = "@atlaskit/blanket";
|
|
11
|
-
const packageVersion = "14.1.
|
|
11
|
+
const packageVersion = "14.1.2";
|
|
12
12
|
const analyticsAttributes = {
|
|
13
13
|
componentName: 'blanket',
|
|
14
14
|
packageName,
|
package/dist/esm/blanket.js
CHANGED
|
@@ -11,7 +11,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
11
11
|
import { N100A } from '@atlaskit/theme/colors';
|
|
12
12
|
import { layers } from '@atlaskit/theme/constants';
|
|
13
13
|
var packageName = "@atlaskit/blanket";
|
|
14
|
-
var packageVersion = "14.1.
|
|
14
|
+
var packageVersion = "14.1.2";
|
|
15
15
|
var analyticsAttributes = {
|
|
16
16
|
componentName: 'blanket',
|
|
17
17
|
packageName: packageName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/blanket",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.2",
|
|
4
4
|
"description": "A blanket covers the underlying UI for a layered component, such as a modal dialog or a tooltip.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
43
43
|
"@atlaskit/css": "^0.8.0",
|
|
44
44
|
"@atlaskit/ds-lib": "^3.5.0",
|
|
45
|
-
"@atlaskit/theme": "^
|
|
45
|
+
"@atlaskit/theme": "^15.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^3.3.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@compiled/react": "^0.18.1"
|
|
@@ -53,13 +53,14 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@af/accessibility-testing": "*",
|
|
55
55
|
"@af/integration-testing": "*",
|
|
56
|
+
"@af/is-hoisted-product": "*",
|
|
56
57
|
"@atlaskit/badge": "^17.1.0",
|
|
57
|
-
"@atlaskit/button": "^20.
|
|
58
|
+
"@atlaskit/button": "^20.5.0",
|
|
58
59
|
"@atlaskit/docs": "*",
|
|
59
60
|
"@atlaskit/heading": "^4.1.0",
|
|
60
61
|
"@atlaskit/layering": "^1.1.0",
|
|
61
62
|
"@atlaskit/link": "*",
|
|
62
|
-
"@atlaskit/primitives": "^13.
|
|
63
|
+
"@atlaskit/primitives": "^13.5.0",
|
|
63
64
|
"@atlaskit/section-message": "*",
|
|
64
65
|
"@atlaskit/ssr": "*",
|
|
65
66
|
"@atlaskit/toggle": "^14.1.0",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type JSCodeshift } from 'jscodeshift';
|
|
2
|
-
import { type Collection } from 'jscodeshift/src/Collection';
|
|
3
|
-
|
|
4
|
-
import { createTransformer, hasImportDeclaration } from '@atlaskit/codemod-utils';
|
|
5
|
-
|
|
6
|
-
import { BLANKET_PACKAGE_NAME } from './internal/constants';
|
|
7
|
-
import { renameCanClickThrough } from './migrations/rename-canclickthrough-to-shouldallowclickthrough';
|
|
8
|
-
|
|
9
|
-
const transformer = createTransformer(
|
|
10
|
-
[renameCanClickThrough],
|
|
11
|
-
(j: JSCodeshift, source: Collection<Node>) =>
|
|
12
|
-
hasImportDeclaration(j, source, BLANKET_PACKAGE_NAME),
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
export default transformer;
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { createTransformer } from '@atlaskit/codemod-utils';
|
|
2
|
-
|
|
3
|
-
import { renameCanClickThrough } from '../migrations/rename-canclickthrough-to-shouldallowclickthrough';
|
|
4
|
-
|
|
5
|
-
const transformer = createTransformer([renameCanClickThrough]);
|
|
6
|
-
|
|
7
|
-
const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
|
|
8
|
-
|
|
9
|
-
describe('Blanket codemods', () => {
|
|
10
|
-
defineInlineTest(
|
|
11
|
-
{ default: transformer, parser: 'tsx' },
|
|
12
|
-
{},
|
|
13
|
-
`
|
|
14
|
-
import React from 'react';
|
|
15
|
-
import Blanket from '@atlaskit/blanket';
|
|
16
|
-
|
|
17
|
-
const App = () => {
|
|
18
|
-
return (
|
|
19
|
-
<Blanket
|
|
20
|
-
canClickThrough
|
|
21
|
-
/>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
`,
|
|
25
|
-
`
|
|
26
|
-
import React from 'react';
|
|
27
|
-
import Blanket from '@atlaskit/blanket';
|
|
28
|
-
|
|
29
|
-
const App = () => {
|
|
30
|
-
return (
|
|
31
|
-
<Blanket
|
|
32
|
-
shouldAllowClickThrough
|
|
33
|
-
/>
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
`,
|
|
37
|
-
`should rename the "canClickThrough" prop to "shouldAllowClickThrough" prop`,
|
|
38
|
-
);
|
|
39
|
-
defineInlineTest(
|
|
40
|
-
{ default: transformer, parser: 'tsx' },
|
|
41
|
-
{},
|
|
42
|
-
`
|
|
43
|
-
import React from 'react';
|
|
44
|
-
import Blanket from '@atlaskit/blanket';
|
|
45
|
-
|
|
46
|
-
const App = () => {
|
|
47
|
-
return (
|
|
48
|
-
<Blanket
|
|
49
|
-
canClickThrough={true}
|
|
50
|
-
/>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
`,
|
|
54
|
-
`
|
|
55
|
-
import React from 'react';
|
|
56
|
-
import Blanket from '@atlaskit/blanket';
|
|
57
|
-
|
|
58
|
-
const App = () => {
|
|
59
|
-
return (
|
|
60
|
-
<Blanket
|
|
61
|
-
shouldAllowClickThrough={true}
|
|
62
|
-
/>
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
`,
|
|
66
|
-
`should rename the "canClickThrough" prop to "shouldAllowClickThrough" prop`,
|
|
67
|
-
);
|
|
68
|
-
defineInlineTest(
|
|
69
|
-
{ default: transformer, parser: 'tsx' },
|
|
70
|
-
{},
|
|
71
|
-
`
|
|
72
|
-
import React from 'react';
|
|
73
|
-
import Blanket from '@atlaskit/blanket';
|
|
74
|
-
|
|
75
|
-
const App = () => {
|
|
76
|
-
return (
|
|
77
|
-
<Blanket
|
|
78
|
-
isTinted={false}
|
|
79
|
-
canClickThrough={true}
|
|
80
|
-
testId="blanket"
|
|
81
|
-
/>
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
`,
|
|
85
|
-
`
|
|
86
|
-
import React from 'react';
|
|
87
|
-
import Blanket from '@atlaskit/blanket';
|
|
88
|
-
|
|
89
|
-
const App = () => {
|
|
90
|
-
return (
|
|
91
|
-
<Blanket
|
|
92
|
-
isTinted={false}
|
|
93
|
-
shouldAllowClickThrough={true}
|
|
94
|
-
testId="blanket"
|
|
95
|
-
/>
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
`,
|
|
99
|
-
`should rename only "canClickThrough" prop and leave other props unaffected`,
|
|
100
|
-
);
|
|
101
|
-
defineInlineTest(
|
|
102
|
-
{ default: transformer, parser: 'tsx' },
|
|
103
|
-
{},
|
|
104
|
-
`
|
|
105
|
-
import React from 'react';
|
|
106
|
-
import Blanket from '@atlaskit/blanket';
|
|
107
|
-
const shouldAllowClickThrough = false;
|
|
108
|
-
const App = () => {
|
|
109
|
-
return (
|
|
110
|
-
<Blanket
|
|
111
|
-
isTinted={false}
|
|
112
|
-
canClickThrough={shouldAllowClickThrough}
|
|
113
|
-
testId="blanket"
|
|
114
|
-
/>
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
`,
|
|
118
|
-
`
|
|
119
|
-
import React from 'react';
|
|
120
|
-
import Blanket from '@atlaskit/blanket';
|
|
121
|
-
const shouldAllowClickThrough = false;
|
|
122
|
-
const App = () => {
|
|
123
|
-
return (
|
|
124
|
-
<Blanket
|
|
125
|
-
isTinted={false}
|
|
126
|
-
shouldAllowClickThrough={shouldAllowClickThrough}
|
|
127
|
-
testId="blanket"
|
|
128
|
-
/>
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
`,
|
|
132
|
-
`should rename the "canClickThrough" prop when its value is a variable`,
|
|
133
|
-
);
|
|
134
|
-
defineInlineTest(
|
|
135
|
-
{ default: transformer, parser: 'tsx' },
|
|
136
|
-
{},
|
|
137
|
-
`
|
|
138
|
-
import React from 'react';
|
|
139
|
-
import Blanket from '@atlaskit/blanket';
|
|
140
|
-
const shouldAllowClickThrough = false;
|
|
141
|
-
const App = () => {
|
|
142
|
-
return (
|
|
143
|
-
<Blanket
|
|
144
|
-
isTinted={false}
|
|
145
|
-
canClickThrough={true && shouldAllowClickThrough || false}
|
|
146
|
-
testId="blanket"
|
|
147
|
-
/>
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
`,
|
|
151
|
-
`
|
|
152
|
-
import React from 'react';
|
|
153
|
-
import Blanket from '@atlaskit/blanket';
|
|
154
|
-
const shouldAllowClickThrough = false;
|
|
155
|
-
const App = () => {
|
|
156
|
-
return (
|
|
157
|
-
<Blanket
|
|
158
|
-
isTinted={false}
|
|
159
|
-
shouldAllowClickThrough={true && shouldAllowClickThrough || false}
|
|
160
|
-
testId="blanket"
|
|
161
|
-
/>
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
`,
|
|
165
|
-
`should rename the "canClickThrough" prop when its value is a complex expression`,
|
|
166
|
-
);
|
|
167
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createRenameFuncFor } from '@atlaskit/codemod-utils';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
BLANKET_PACKAGE_NAME,
|
|
5
|
-
NEW_CLICK_THROUGH_PROP_NAME,
|
|
6
|
-
OLD_CLICK_THROUGH_PROP_NAME,
|
|
7
|
-
} from '../internal/constants';
|
|
8
|
-
|
|
9
|
-
export const renameCanClickThrough = createRenameFuncFor(
|
|
10
|
-
BLANKET_PACKAGE_NAME,
|
|
11
|
-
OLD_CLICK_THROUGH_PROP_NAME,
|
|
12
|
-
NEW_CLICK_THROUGH_PROP_NAME,
|
|
13
|
-
);
|