@atlaskit/badge 16.3.1 → 16.4.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,27 @@
1
1
  # @atlaskit/badge
2
2
 
3
+ ## 16.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#127511](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127511)
8
+ [`db30e29344013`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db30e29344013) -
9
+ Widening range of `react` and `react-dom` peer dependencies from `^16.8.0 || ^17.0.0 || ~18.2.0`
10
+ to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).
11
+
12
+ This change has been done to enable usage of `react@18.3` as well as to have a consistent peer
13
+ dependency range for `react` and `react-dom` for `/platform` packages.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
19
+ ## 16.3.2
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 16.3.1
4
26
 
5
27
  ### Patch Changes
package/dist/cjs/badge.js CHANGED
@@ -9,7 +9,10 @@ var _react2 = require("@emotion/react");
9
9
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
10
  var _primitives = require("@atlaskit/primitives");
11
11
  var _utils = require("./internal/utils");
12
- /** @jsx jsx */
12
+ /**
13
+ * @jsxRuntime classic
14
+ * @jsx jsx
15
+ */
13
16
 
14
17
  // Compiled isn't ready to be used in components used by Ecosystem
15
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
@@ -87,7 +90,7 @@ var Badge = /*#__PURE__*/(0, _react.memo)(function Badge(_ref) {
87
90
  max = _ref$max === void 0 ? 99 : _ref$max,
88
91
  style = _ref.style,
89
92
  testId = _ref.testId;
90
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.component-visual-refresh_t8zbo')) {
93
+ if ((0, _platformFeatureFlags.fg)('platform-component-visual-refresh')) {
91
94
  return (0, _react2.jsx)("span", {
92
95
  "data-testid": testId,
93
96
  css: [styles.root, styles[appearance]],
@@ -1,10 +1,13 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { memo } from 'react';
3
6
 
4
7
  // Compiled isn't ready to be used in components used by Ecosystem
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
6
9
  import { css, jsx } from '@emotion/react';
7
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
8
11
  import { Box, Text, xcss } from '@atlaskit/primitives';
9
12
  import { formatValue } from './internal/utils';
10
13
  const boxStyles = xcss({
@@ -78,7 +81,7 @@ const Badge = /*#__PURE__*/memo(function Badge({
78
81
  style,
79
82
  testId
80
83
  }) {
81
- if (getBooleanFF('platform.design-system-team.component-visual-refresh_t8zbo')) {
84
+ if (fg('platform-component-visual-refresh')) {
82
85
  return jsx("span", {
83
86
  "data-testid": testId,
84
87
  css: [styles.root, styles[appearance]],
package/dist/esm/badge.js CHANGED
@@ -1,10 +1,13 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { memo } from 'react';
3
6
 
4
7
  // Compiled isn't ready to be used in components used by Ecosystem
5
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
6
9
  import { css, jsx } from '@emotion/react';
7
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
8
11
  import { Box, Text, xcss } from '@atlaskit/primitives';
9
12
  import { formatValue } from './internal/utils';
10
13
  var boxStyles = xcss({
@@ -80,7 +83,7 @@ var Badge = /*#__PURE__*/memo(function Badge(_ref) {
80
83
  max = _ref$max === void 0 ? 99 : _ref$max,
81
84
  style = _ref.style,
82
85
  testId = _ref.testId;
83
- if (getBooleanFF('platform.design-system-team.component-visual-refresh_t8zbo')) {
86
+ if (fg('platform-component-visual-refresh')) {
84
87
  return jsx("span", {
85
88
  "data-testid": testId,
86
89
  css: [styles.root, styles[appearance]],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/badge",
3
- "version": "16.3.1",
3
+ "version": "16.4.0",
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/"
@@ -41,19 +41,19 @@
41
41
  "dependencies": {
42
42
  "@atlaskit/codemod-utils": "^4.2.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
- "@atlaskit/primitives": "^11.0.0",
45
- "@atlaskit/tokens": "^1.53.0",
44
+ "@atlaskit/primitives": "^12.0.0",
45
+ "@atlaskit/tokens": "^1.58.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1"
48
48
  },
49
49
  "peerDependencies": {
50
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
50
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@af/accessibility-testing": "*",
54
54
  "@af/integration-testing": "*",
55
55
  "@af/visual-regression": "*",
56
- "@atlaskit/ds-lib": "^2.3.0",
56
+ "@atlaskit/ds-lib": "^2.4.0",
57
57
  "@atlaskit/ssr": "*",
58
58
  "@atlassian/feature-flags-test-utils": "*",
59
59
  "@testing-library/react": "^12.1.5",
@@ -89,7 +89,7 @@
89
89
  },
90
90
  "homepage": "https://atlassian.design/components/badge/",
91
91
  "platform-feature-flags": {
92
- "platform.design-system-team.component-visual-refresh_t8zbo": {
92
+ "platform-component-visual-refresh": {
93
93
  "type": "boolean"
94
94
  }
95
95
  }