@atlaskit/badge
Advanced tools
Comparing version 16.1.2 to 16.2.0
# @atlaskit/badge | ||
## 16.2.0 | ||
### Minor Changes | ||
- [#111696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111696) | ||
[`20c2d58f6f8a9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/20c2d58f6f8a9) - | ||
Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime | ||
is implicitly set to automatic. | ||
- [#111623](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111623) | ||
[`0392b6e4d865a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0392b6e4d865a) - | ||
Sets `flex-shrink: 0` on Badge to avoid it spanning multiple lines when in flex containers that | ||
aren't wide enough. | ||
### Patch Changes | ||
- Updated dependencies | ||
## 16.1.2 | ||
@@ -44,3 +61,3 @@ | ||
[`eef585934a84`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eef585934a84) - | ||
Add react 18 support | ||
Add support for React 18 in non-strict mode. | ||
@@ -47,0 +64,0 @@ ### Patch Changes |
@@ -16,3 +16,4 @@ "use strict"; | ||
display: 'inline-flex', | ||
blockSize: 'min-content' | ||
blockSize: 'min-content', | ||
flexShrink: 0 // Text component can wrap text, this ensures it doesn't wrap in flex containers. | ||
}); | ||
@@ -19,0 +20,0 @@ |
@@ -7,3 +7,4 @@ import React, { memo } from 'react'; | ||
display: 'inline-flex', | ||
blockSize: 'min-content' | ||
blockSize: 'min-content', | ||
flexShrink: 0 // Text component can wrap text, this ensures it doesn't wrap in flex containers. | ||
}); | ||
@@ -10,0 +11,0 @@ |
@@ -7,3 +7,4 @@ import React, { memo } from 'react'; | ||
display: 'inline-flex', | ||
blockSize: 'min-content' | ||
blockSize: 'min-content', | ||
flexShrink: 0 // Text component can wrap text, this ensures it doesn't wrap in flex containers. | ||
}); | ||
@@ -10,0 +11,0 @@ |
174
package.json
{ | ||
"name": "@atlaskit/badge", | ||
"version": "16.1.2", | ||
"description": "A badge is a visual indicator for numeric values such as tallies and scores.", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror", | ||
"author": "Atlassian Pty Ltd", | ||
"license": "Apache-2.0", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"module:es2019": "dist/es2019/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"typesVersions": { | ||
">=4.5 <4.9": { | ||
"*": [ | ||
"dist/types-ts4.5/*", | ||
"dist/types-ts4.5/index.d.ts" | ||
] | ||
} | ||
}, | ||
"sideEffects": false, | ||
"atlaskit:src": "src/index.tsx", | ||
"atlassian": { | ||
"team": "Design System Team", | ||
"releaseModel": "continuous", | ||
"productPushConsumption": [ | ||
"jira" | ||
], | ||
"website": { | ||
"name": "Badge", | ||
"category": "Components" | ||
}, | ||
"runReact18": true | ||
}, | ||
"af:exports": { | ||
"./types": "./src/entry-points/types.tsx", | ||
".": "./src/index.tsx" | ||
}, | ||
"dependencies": { | ||
"@atlaskit/codemod-utils": "^4.2.0", | ||
"@atlaskit/primitives": "^7.0.0", | ||
"@babel/runtime": "^7.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0 || ~18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@af/accessibility-testing": "*", | ||
"@af/integration-testing": "*", | ||
"@af/visual-regression": "*", | ||
"@atlaskit/ds-lib": "^2.3.0", | ||
"@atlaskit/ssr": "*", | ||
"@emotion/react": "^11.7.1", | ||
"@testing-library/react": "^12.1.5", | ||
"jscodeshift": "^0.13.0", | ||
"react-dom": "^16.8.0", | ||
"react-test-renderer": "^16.8.0", | ||
"storybook-addon-performance": "^0.16.0", | ||
"typescript": "~5.4.2" | ||
}, | ||
"techstack": { | ||
"@atlassian/frontend": { | ||
"import-structure": "atlassian-conventions", | ||
"circular-dependencies": "file-and-folder-level" | ||
}, | ||
"@repo/internal": { | ||
"dom-events": "use-bind-event-listener", | ||
"design-system": "v1", | ||
"styling": [ | ||
"static", | ||
"emotion" | ||
], | ||
"ui-components": [ | ||
"primitives", | ||
"lite-mode" | ||
], | ||
"analytics": "analytics-next", | ||
"design-tokens": [ | ||
"color", | ||
"spacing" | ||
], | ||
"deprecation": "no-deprecated-imports" | ||
} | ||
}, | ||
"homepage": "https://atlassian.design/components/badge/" | ||
} | ||
"name": "@atlaskit/badge", | ||
"version": "16.2.0", | ||
"description": "A badge is a visual indicator for numeric values such as tallies and scores.", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror", | ||
"author": "Atlassian Pty Ltd", | ||
"license": "Apache-2.0", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"module:es2019": "dist/es2019/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"typesVersions": { | ||
">=4.5 <4.9": { | ||
"*": [ | ||
"dist/types-ts4.5/*", | ||
"dist/types-ts4.5/index.d.ts" | ||
] | ||
} | ||
}, | ||
"sideEffects": false, | ||
"atlaskit:src": "src/index.tsx", | ||
"atlassian": { | ||
"team": "Design System Team", | ||
"releaseModel": "continuous", | ||
"productPushConsumption": [ | ||
"jira" | ||
], | ||
"website": { | ||
"name": "Badge", | ||
"category": "Components" | ||
}, | ||
"runReact18": true | ||
}, | ||
"af:exports": { | ||
"./types": "./src/entry-points/types.tsx", | ||
".": "./src/index.tsx" | ||
}, | ||
"dependencies": { | ||
"@atlaskit/codemod-utils": "^4.2.0", | ||
"@atlaskit/primitives": "^7.3.0", | ||
"@babel/runtime": "^7.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0 || ~18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@af/accessibility-testing": "*", | ||
"@af/integration-testing": "*", | ||
"@af/visual-regression": "*", | ||
"@atlaskit/ds-lib": "^2.3.0", | ||
"@atlaskit/ssr": "*", | ||
"@emotion/react": "^11.7.1", | ||
"@testing-library/react": "^12.1.5", | ||
"jscodeshift": "^0.13.0", | ||
"react-dom": "^16.8.0", | ||
"react-test-renderer": "^16.8.0", | ||
"storybook-addon-performance": "^0.16.0", | ||
"typescript": "~5.4.2" | ||
}, | ||
"techstack": { | ||
"@atlassian/frontend": { | ||
"import-structure": "atlassian-conventions", | ||
"circular-dependencies": "file-and-folder-level" | ||
}, | ||
"@repo/internal": { | ||
"dom-events": "use-bind-event-listener", | ||
"design-system": "v1", | ||
"styling": [ | ||
"static", | ||
"emotion" | ||
], | ||
"ui-components": [ | ||
"primitives", | ||
"lite-mode" | ||
], | ||
"analytics": "analytics-next", | ||
"design-tokens": [ | ||
"color", | ||
"spacing" | ||
], | ||
"deprecation": "no-deprecated-imports" | ||
} | ||
}, | ||
"homepage": "https://atlassian.design/components/badge/" | ||
} |
@@ -5,3 +5,4 @@ <!-- API Report Version: 2.3 --> | ||
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/). | ||
> Do not edit this file. This report is auto-generated using | ||
> [API Extractor](https://api-extractor.com/). | ||
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports) | ||
@@ -29,7 +30,7 @@ | ||
export interface BadgeProps { | ||
appearance?: ThemeAppearance; | ||
children?: ReactNode | number; | ||
max?: false | number; | ||
style?: Pick<CSSProperties, 'backgroundColor' | 'color'>; | ||
testId?: string; | ||
appearance?: ThemeAppearance; | ||
children?: ReactNode | number; | ||
max?: false | number; | ||
style?: Pick<CSSProperties, 'backgroundColor' | 'color'>; | ||
testId?: string; | ||
} | ||
@@ -39,8 +40,8 @@ | ||
type ThemeAppearance = | ||
| 'added' | ||
| 'default' | ||
| 'important' | ||
| 'primary' | ||
| 'primaryInverted' | ||
| 'removed'; | ||
| 'added' | ||
| 'default' | ||
| 'important' | ||
| 'primary' | ||
| 'primaryInverted' | ||
| 'removed'; | ||
@@ -58,3 +59,3 @@ // (No @packageDocumentation comment for this package) | ||
{ | ||
"react": "^16.8.0" | ||
"react": "^16.8.0" | ||
} | ||
@@ -61,0 +62,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69634
690
Updated@atlaskit/primitives@^7.3.0