@atlaskit/css 0.10.5 → 0.10.7
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/css
|
|
2
2
|
|
|
3
|
+
## 0.10.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.10.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#137715](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137715)
|
|
14
|
+
[`40696be85b10e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/40696be85b10e) -
|
|
15
|
+
Improvements to `primitives-emotion-to-compiled` codemod: remove unnecessary `tokens` import.
|
|
16
|
+
|
|
3
17
|
## 0.10.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -570,11 +570,26 @@ function updateImports(j: core.JSCodeshift, source: ReturnType<typeof j>) {
|
|
|
570
570
|
|
|
571
571
|
// add token import
|
|
572
572
|
if (!importsNeeded.token) {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
573
|
+
let tokenUsed = false;
|
|
574
|
+
// check if token is used in the transformed code
|
|
575
|
+
source
|
|
576
|
+
.find(j.CallExpression, {
|
|
577
|
+
callee: {
|
|
578
|
+
type: 'Identifier',
|
|
579
|
+
name: 'token',
|
|
580
|
+
},
|
|
581
|
+
})
|
|
582
|
+
.forEach(() => {
|
|
583
|
+
tokenUsed = true;
|
|
584
|
+
});
|
|
585
|
+
|
|
586
|
+
if (tokenUsed) {
|
|
587
|
+
const tokenImport = j.importDeclaration(
|
|
588
|
+
[j.importSpecifier(j.identifier('token'))],
|
|
589
|
+
j.literal('@atlaskit/tokens'),
|
|
590
|
+
);
|
|
591
|
+
newImports.push(tokenImport);
|
|
592
|
+
}
|
|
578
593
|
}
|
|
579
594
|
|
|
580
595
|
// add new imports after any existing comments
|
package/dist/cjs/index.js
CHANGED
|
@@ -15,8 +15,7 @@ Object.defineProperty(exports, "jsx", {
|
|
|
15
15
|
var React = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _runtime = require("@compiled/react/runtime");
|
|
17
17
|
var _react2 = require("@compiled/react");
|
|
18
|
-
function
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
19
|
var _createStrictAPI = (0, _react2.createStrictAPI)(),
|
|
21
20
|
XCSSProp = _createStrictAPI.XCSSProp,
|
|
22
21
|
css = exports.css = _createStrictAPI.css,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/css",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.7",
|
|
4
4
|
"description": "Style components backed by Atlassian Design System design tokens powered by Compiled CSS-in-JS.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": [
|
|
43
|
-
"
|
|
43
|
+
"dist/es2019/test-utils/index.js",
|
|
44
|
+
"dist/esm/test-utils/index.js"
|
|
44
45
|
],
|
|
45
46
|
"atlaskit:src": "src/index.tsx",
|
|
46
47
|
"af:exports": {
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
"./test-utils": "./src/test-utils/index.tsx"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@atlaskit/tokens": "^
|
|
52
|
+
"@atlaskit/tokens": "^5.0.0",
|
|
52
53
|
"@babel/runtime": "^7.0.0",
|
|
53
54
|
"@compiled/react": "^0.18.3"
|
|
54
55
|
},
|
|
@@ -56,10 +57,10 @@
|
|
|
56
57
|
"react": "^18.2.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
|
-
"@af/visual-regression": "
|
|
60
|
-
"@atlaskit/button": "^23.
|
|
60
|
+
"@af/visual-regression": "workspace:^",
|
|
61
|
+
"@atlaskit/button": "^23.2.0",
|
|
61
62
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
62
|
-
"@atlaskit/primitives": "^14.
|
|
63
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
63
64
|
"@emotion/react": "^11.7.1",
|
|
64
65
|
"@testing-library/react": "^13.4.0",
|
|
65
66
|
"@types/jscodeshift": "^0.11.0",
|
package/test-utils/package.json
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"module": "../dist/esm/test-utils/index.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/test-utils/index.js",
|
|
6
6
|
"sideEffects": [
|
|
7
|
-
"
|
|
7
|
+
"dist/es2019/test-utils/index.js",
|
|
8
|
+
"dist/esm/test-utils/index.js"
|
|
8
9
|
],
|
|
9
10
|
"types": "../dist/types/test-utils/index.d.ts",
|
|
10
11
|
"typesVersions": {
|