@atlaskit/badge 18.1.1 → 18.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 +15 -0
- package/dist/cjs/badge.js +1 -3
- package/dist/es2019/badge.js +0 -1
- package/dist/esm/badge.js +0 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/badge
|
|
2
2
|
|
|
3
|
+
## 18.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 18.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#155802](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/155802)
|
|
14
|
+
[`08019848e3eab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/08019848e3eab) -
|
|
15
|
+
Refreshed "issue" terminology.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 18.1.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/badge.js
CHANGED
|
@@ -13,8 +13,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
14
|
var _primitives = require("@atlaskit/primitives");
|
|
15
15
|
var _utils = require("./internal/utils");
|
|
16
|
-
function
|
|
17
|
-
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; }
|
|
16
|
+
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); }
|
|
18
17
|
var boxStyles = {
|
|
19
18
|
root: "_2rkopd34 _18zr12x7 _1e0c116y _1o9zidpf _1kz6184x",
|
|
20
19
|
added: "_bfhk1bay",
|
|
@@ -47,7 +46,6 @@ var styles = {
|
|
|
47
46
|
};
|
|
48
47
|
var badgeValueWithNegativeNumberSupported = function badgeValueWithNegativeNumberSupported(children, max) {
|
|
49
48
|
// Use this flag for allowing negative values(numbers) in badge component when custom number field is used
|
|
50
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
51
49
|
if ((0, _platformFeatureFlags.fg)('platform_ken_2029_negative_numbers_badge')) {
|
|
52
50
|
return typeof children === 'number' && typeof max === 'number' ? (0, _utils.formatValueWithNegativeSupport)(children, max) : children;
|
|
53
51
|
}
|
package/dist/es2019/badge.js
CHANGED
|
@@ -38,7 +38,6 @@ const styles = {
|
|
|
38
38
|
};
|
|
39
39
|
const badgeValueWithNegativeNumberSupported = (children, max) => {
|
|
40
40
|
// Use this flag for allowing negative values(numbers) in badge component when custom number field is used
|
|
41
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
42
41
|
if (fg('platform_ken_2029_negative_numbers_badge')) {
|
|
43
42
|
return typeof children === 'number' && typeof max === 'number' ? formatValueWithNegativeSupport(children, max) : children;
|
|
44
43
|
}
|
package/dist/esm/badge.js
CHANGED
|
@@ -38,7 +38,6 @@ var styles = {
|
|
|
38
38
|
};
|
|
39
39
|
var badgeValueWithNegativeNumberSupported = function badgeValueWithNegativeNumberSupported(children, max) {
|
|
40
40
|
// Use this flag for allowing negative values(numbers) in badge component when custom number field is used
|
|
41
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
42
41
|
if (fg('platform_ken_2029_negative_numbers_badge')) {
|
|
43
42
|
return typeof children === 'number' && typeof max === 'number' ? formatValueWithNegativeSupport(children, max) : children;
|
|
44
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/badge",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.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/"
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
|
-
"@atlaskit/primitives": "^14.
|
|
43
|
-
"@atlaskit/tokens": "^
|
|
42
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
43
|
+
"@atlaskit/tokens": "^5.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@compiled/react": "^0.18.3"
|
|
46
46
|
},
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"react": "^18.2.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@af/accessibility-testing": "
|
|
52
|
-
"@af/integration-testing": "
|
|
53
|
-
"@af/visual-regression": "
|
|
51
|
+
"@af/accessibility-testing": "workspace:^",
|
|
52
|
+
"@af/integration-testing": "workspace:^",
|
|
53
|
+
"@af/visual-regression": "workspace:^",
|
|
54
54
|
"@atlaskit/docs": "^10.0.0",
|
|
55
55
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
56
|
-
"@atlaskit/link": "^3.
|
|
56
|
+
"@atlaskit/link": "^3.2.0",
|
|
57
57
|
"@atlaskit/section-message": "^8.2.0",
|
|
58
|
-
"@atlaskit/ssr": "^0.4.0",
|
|
59
58
|
"@atlaskit/theme": "^18.0.0",
|
|
60
59
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
60
|
+
"@atlassian/ssr-tests": "0.2.0",
|
|
61
61
|
"@testing-library/react": "^13.4.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
63
|
"typescript": "~5.4.2"
|