@atlaskit/css 0.7.4 → 0.8.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,25 @@
1
1
  # @atlaskit/css
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
8
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
9
+ Update `React` from v16 to v18
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 0.7.5
16
+
17
+ ### Patch Changes
18
+
19
+ - [#105661](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105661)
20
+ [`f944cf37082f6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f944cf37082f6) -
21
+ Update dependencies and remove unused internal export.
22
+
3
23
  ## 0.7.4
4
24
 
5
25
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.isExtendedElement = isExtendedElement;
8
8
  exports.isStyleElement = isStyleElement;
9
- exports.removeCssContent = removeCssContent;
10
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  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; }
12
11
  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; }
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { createStrictAPI } from '@compiled/react';
@@ -72,7 +72,7 @@ function getInnerCssContent(node) {
72
72
  * @param node
73
73
  * @returns string
74
74
  */
75
- export function removeCssContent(text, node) {
75
+ function removeCssContent(text, node) {
76
76
  if (text === 0) {
77
77
  return test.toString();
78
78
  }
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { createStrictAPI } from '@compiled/react';
@@ -74,7 +74,7 @@ function getInnerCssContent(node) {
74
74
  * @param node
75
75
  * @returns string
76
76
  */
77
- export function removeCssContent(text, node) {
77
+ function removeCssContent(text, node) {
78
78
  if (text === 0) {
79
79
  return test.toString();
80
80
  }
@@ -6,11 +6,3 @@ import { type HTMLElementExtended, type HTMLStyleElementExtended } from './types
6
6
  */
7
7
  export declare function isStyleElement(node: Node): node is HTMLStyleElementExtended;
8
8
  export declare function isExtendedElement(node?: Node): node is HTMLElementExtended;
9
- /**
10
- * Return text with the inline CSS style definitions removed
11
- *
12
- * @param text string
13
- * @param node
14
- * @returns string
15
- */
16
- export declare function removeCssContent(text: string | number | null | undefined, node: Node): string;
@@ -6,11 +6,3 @@ import { type HTMLElementExtended, type HTMLStyleElementExtended } from './types
6
6
  */
7
7
  export declare function isStyleElement(node: Node): node is HTMLStyleElementExtended;
8
8
  export declare function isExtendedElement(node?: Node): node is HTMLElementExtended;
9
- /**
10
- * Return text with the inline CSS style definitions removed
11
- *
12
- * @param text string
13
- * @param node
14
- * @returns string
15
- */
16
- export declare function removeCssContent(text: string | number | null | undefined, node: Node): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/css",
3
- "version": "0.7.4",
3
+ "version": "0.8.0",
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",
@@ -48,25 +48,23 @@
48
48
  "./test-utils": "./src/test-utils/index.tsx"
49
49
  },
50
50
  "dependencies": {
51
- "@atlaskit/tokens": "^3.1.0",
51
+ "@atlaskit/tokens": "^3.3.0",
52
52
  "@babel/runtime": "^7.0.0",
53
- "@compiled/jest": "^0.10.5",
54
53
  "@compiled/react": "^0.18.1"
55
54
  },
56
55
  "peerDependencies": {
57
56
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
58
57
  },
59
58
  "devDependencies": {
60
- "@af/integration-testing": "*",
61
59
  "@af/visual-regression": "*",
62
- "@atlaskit/ds-lib": "^3.3.0",
63
- "@atlaskit/ssr": "*",
64
- "@atlaskit/visual-regression": "*",
60
+ "@atlaskit/button": "^20.4.0",
61
+ "@atlaskit/ds-lib": "^3.5.0",
62
+ "@atlaskit/primitives": "^13.4.0",
65
63
  "@emotion/react": "^11.7.1",
66
- "@testing-library/react": "^12.1.5",
64
+ "@testing-library/react": "^13.4.0",
67
65
  "@types/jscodeshift": "^0.11.0",
68
66
  "jscodeshift": "^0.13.0",
69
- "react-dom": "^16.8.0",
67
+ "react-dom": "^18.2.0",
70
68
  "typescript": "~5.4.2"
71
69
  },
72
70
  "techstack": {