@atlaskit/blanket 14.1.1 → 14.1.3

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,19 @@
1
1
  # @atlaskit/blanket
2
2
 
3
+ ## 14.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 14.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#113039](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113039)
14
+ [`dc89be79601e2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc89be79601e2) -
15
+ Remove old codemods.
16
+
3
17
  ## 14.1.1
4
18
 
5
19
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
 
2
2
  ._1r04idpf{inset:0}._18m91wug{overflow-y:auto}
3
3
  ._1pbybfng{z-index:500}
4
- ._bfhk18uv{background-color:initial}
4
+ ._bfhk1j28{background-color:transparent}
5
5
  ._bfhk705f{background-color:var(--_10avjlk)}
6
6
  ._kqsw1n9t{position:fixed}
7
7
  ._lcxv1wug{pointer-events:auto}
@@ -1,4 +1,4 @@
1
- /* blanket.tsx generated by @compiled/babel-plugin v0.36.0 */
1
+ /* blanket.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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.1";
24
+ var packageVersion = "14.1.3";
25
25
  var analyticsAttributes = {
26
26
  componentName: 'blanket',
27
27
  packageName: packageName,
@@ -67,7 +67,7 @@ var Blanket = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)
67
67
  onMouseDown: onMouseDown,
68
68
  "data-testid": testId,
69
69
  ref: ref,
70
- className: (0, _runtime.ax)(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk705f _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk18uv"]),
70
+ className: (0, _runtime.ax)(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk705f _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk1j28"]),
71
71
  style: {
72
72
  "--_10avjlk": (0, _runtime.ix)("var(--ds-blanket, ".concat(_colors.N100A, ")"))
73
73
  }
@@ -2,7 +2,7 @@
2
2
  ._1r04idpf{inset:0}._18m91wug{overflow-y:auto}
3
3
  ._1pbybfng{z-index:500}
4
4
  ._bfhk10ak{background-color:var(--ds-blanket,rgba(9,30,66,.54))}
5
- ._bfhk18uv{background-color:initial}
5
+ ._bfhk1j28{background-color:transparent}
6
6
  ._kqsw1n9t{position:fixed}
7
7
  ._lcxv1wug{pointer-events:auto}
8
8
  ._lcxvglyw{pointer-events:none}
@@ -1,4 +1,4 @@
1
- /* blanket.tsx generated by @compiled/babel-plugin v0.36.0 */
1
+ /* blanket.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./blanket.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -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.1";
11
+ const packageVersion = "14.1.3";
12
12
  const analyticsAttributes = {
13
13
  componentName: 'blanket',
14
14
  packageName,
@@ -51,7 +51,7 @@ const Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket({
51
51
  onMouseDown: onMouseDown,
52
52
  "data-testid": testId,
53
53
  ref: ref,
54
- className: ax(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk10ak _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk18uv"])
54
+ className: ax(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk10ak _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk1j28"])
55
55
  }, children);
56
56
  }));
57
57
  Blanket.displayName = 'Blanket';
@@ -1,7 +1,7 @@
1
1
 
2
2
  ._1r04idpf{inset:0}._18m91wug{overflow-y:auto}
3
3
  ._1pbybfng{z-index:500}
4
- ._bfhk18uv{background-color:initial}
4
+ ._bfhk1j28{background-color:transparent}
5
5
  ._bfhk705f{background-color:var(--_10avjlk)}
6
6
  ._kqsw1n9t{position:fixed}
7
7
  ._lcxv1wug{pointer-events:auto}
@@ -1,4 +1,4 @@
1
- /* blanket.tsx generated by @compiled/babel-plugin v0.36.0 */
1
+ /* blanket.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import "./blanket.compiled.css";
4
4
  import * as React from 'react';
@@ -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.1";
14
+ var packageVersion = "14.1.3";
15
15
  var analyticsAttributes = {
16
16
  componentName: 'blanket',
17
17
  packageName: packageName,
@@ -57,7 +57,7 @@ var Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket(_ref,
57
57
  onMouseDown: onMouseDown,
58
58
  "data-testid": testId,
59
59
  ref: ref,
60
- className: ax(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk705f _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk18uv"]),
60
+ className: ax(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk705f _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk1j28"]),
61
61
  style: {
62
62
  "--_10avjlk": ix("var(--ds-blanket, ".concat(N100A, ")"))
63
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "14.1.1",
3
+ "version": "14.1.3",
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": "^15.0.0",
45
+ "@atlaskit/theme": "^16.0.0",
46
46
  "@atlaskit/tokens": "^3.3.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@compiled/react": "^0.18.1"
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/heading": "^4.1.0",
61
61
  "@atlaskit/layering": "^1.1.0",
62
62
  "@atlaskit/link": "*",
63
- "@atlaskit/primitives": "^13.4.0",
63
+ "@atlaskit/primitives": "^13.5.0",
64
64
  "@atlaskit/section-message": "*",
65
65
  "@atlaskit/ssr": "*",
66
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,3 +0,0 @@
1
- export const BLANKET_PACKAGE_NAME = '@atlaskit/blanket';
2
- export const OLD_CLICK_THROUGH_PROP_NAME = 'canClickThrough';
3
- export const NEW_CLICK_THROUGH_PROP_NAME = 'shouldAllowClickThrough';
@@ -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
- );