@atlaskit/badge 16.4.2 → 16.4.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,13 @@
1
1
  # @atlaskit/badge
2
2
 
3
+ ## 16.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#165531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165531)
8
+ [`57f451bda8919`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57f451bda8919) -
9
+ Adds side-effect config to support Compiled css extraction in third-party apps
10
+
3
11
  ## 16.4.2
4
12
 
5
13
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
 
3
- import Badge from '../src';
3
+ import Badge from '@atlaskit/badge';
4
4
 
5
5
  export default () => <Badge>{8}</Badge>;
@@ -1,7 +1,6 @@
1
- // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
2
1
  import React from 'react';
3
2
 
4
- import Badge from '../src';
3
+ import Badge from '@atlaskit/badge';
5
4
 
6
5
  export default () => {
7
6
  return (
@@ -1,7 +1,6 @@
1
- // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
2
1
  import React from 'react';
3
2
 
4
- import Badge from '../src';
3
+ import Badge from '@atlaskit/badge';
5
4
 
6
5
  export default () => {
7
6
  return <Badge appearance="important">{25}</Badge>;
package/dist/cjs/badge.js CHANGED
@@ -15,7 +15,6 @@ var _utils = require("./internal/utils");
15
15
  */
16
16
 
17
17
  // Compiled isn't ready to be used in components used by Ecosystem
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
19
18
 
20
19
  var boxStyles = (0, _primitives.xcss)({
21
20
  borderRadius: 'border.radius.200',
@@ -90,6 +89,7 @@ var Badge = /*#__PURE__*/(0, _react.memo)(function Badge(_ref) {
90
89
  max = _ref$max === void 0 ? 99 : _ref$max,
91
90
  style = _ref.style,
92
91
  testId = _ref.testId;
92
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
93
93
  if ((0, _platformFeatureFlags.fg)('platform-component-visual-refresh')) {
94
94
  return (0, _react2.jsx)("span", {
95
95
  "data-testid": testId,
@@ -5,7 +5,6 @@
5
5
  import { memo } from 'react';
6
6
 
7
7
  // Compiled isn't ready to be used in components used by Ecosystem
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
8
  import { css, jsx } from '@emotion/react';
10
9
  import { fg } from '@atlaskit/platform-feature-flags';
11
10
  import { Box, Text, xcss } from '@atlaskit/primitives';
@@ -81,6 +80,7 @@ const Badge = /*#__PURE__*/memo(function Badge({
81
80
  style,
82
81
  testId
83
82
  }) {
83
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
84
84
  if (fg('platform-component-visual-refresh')) {
85
85
  return jsx("span", {
86
86
  "data-testid": testId,
package/dist/esm/badge.js CHANGED
@@ -5,7 +5,6 @@
5
5
  import { memo } from 'react';
6
6
 
7
7
  // Compiled isn't ready to be used in components used by Ecosystem
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
8
  import { css, jsx } from '@emotion/react';
10
9
  import { fg } from '@atlaskit/platform-feature-flags';
11
10
  import { Box, Text, xcss } from '@atlaskit/primitives';
@@ -83,6 +82,7 @@ var Badge = /*#__PURE__*/memo(function Badge(_ref) {
83
82
  max = _ref$max === void 0 ? 99 : _ref$max,
84
83
  style = _ref.style,
85
84
  testId = _ref.testId;
85
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
86
86
  if (fg('platform-component-visual-refresh')) {
87
87
  return jsx("span", {
88
88
  "data-testid": testId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "16.4.2",
3
+ "version": "16.4.3",
4
4
  "description": "A badge is a visual indicator for numeric values such as tallies and scores.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,7 +20,9 @@
20
20
  ]
21
21
  }
22
22
  },
23
- "sideEffects": false,
23
+ "sideEffects": [
24
+ "**/*.compiled.css"
25
+ ],
24
26
  "atlaskit:src": "src/index.tsx",
25
27
  "atlassian": {
26
28
  "team": "Design System Team",
@@ -37,8 +39,8 @@
37
39
  "dependencies": {
38
40
  "@atlaskit/codemod-utils": "^4.2.0",
39
41
  "@atlaskit/platform-feature-flags": "^0.3.0",
40
- "@atlaskit/primitives": "^13.0.0",
41
- "@atlaskit/tokens": "^2.0.0",
42
+ "@atlaskit/primitives": "^13.2.0",
43
+ "@atlaskit/tokens": "^2.2.0",
42
44
  "@babel/runtime": "^7.0.0",
43
45
  "@emotion/react": "^11.7.1"
44
46
  },
@@ -49,13 +51,13 @@
49
51
  "@af/accessibility-testing": "*",
50
52
  "@af/integration-testing": "*",
51
53
  "@af/visual-regression": "*",
52
- "@atlaskit/ds-lib": "^3.1.0",
54
+ "@atlaskit/ds-lib": "^3.2.0",
53
55
  "@atlaskit/ssr": "*",
54
56
  "@atlassian/feature-flags-test-utils": "*",
55
57
  "@testing-library/react": "^12.1.5",
56
58
  "jscodeshift": "^0.13.0",
57
59
  "react-dom": "^16.8.0",
58
- "storybook-addon-performance": "^0.16.0",
60
+ "storybook-addon-performance": "^0.17.3",
59
61
  "typescript": "~5.4.2"
60
62
  },
61
63
  "techstack": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/types.js",
4
4
  "module": "../dist/esm/entry-points/types.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/types.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/types.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {