@atlaskit/atlassian-navigation 5.0.3 → 5.1.1
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 +14 -0
- package/dist/cjs/components/ProductHome/product-home.js +3 -1
- package/dist/es2019/components/ProductHome/product-home.js +3 -1
- package/dist/esm/components/ProductHome/product-home.js +3 -1
- package/dist/types/components/ProductHome/types.d.ts +6 -2
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +6 -2
- package/package.json +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 5.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 5.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#130720](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130720)
|
|
14
|
+
[`2b4555de9adf4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2b4555de9adf4) -
|
|
15
|
+
Minor type adjustment to support different logo types
|
|
16
|
+
|
|
3
17
|
## 5.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -10,6 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _constants = require("../../common/constants");
|
|
14
15
|
var _theme = require("../../theme");
|
|
15
16
|
var _utils = require("../../utils");
|
|
@@ -167,7 +168,8 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
167
168
|
css: [customMaxHeightStyles, productIconStyles],
|
|
168
169
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
169
170
|
}, (0, _react2.jsx)(Icon, {
|
|
170
|
-
iconColor: iconColor
|
|
171
|
+
iconColor: iconColor,
|
|
172
|
+
size: (0, _platformFeatureFlags.fg)('platform-team25-app-icon-tiles') ? 'small' : undefined
|
|
171
173
|
}))), siteTitle && (0, _react2.jsx)("div", {
|
|
172
174
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
173
175
|
style: {
|
|
@@ -7,6 +7,7 @@ import { Fragment } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
11
12
|
import { useTheme } from '../../theme';
|
|
12
13
|
import { stripEmptyProperties } from '../../utils';
|
|
@@ -176,7 +177,8 @@ const ProductHome = ({
|
|
|
176
177
|
css: [customMaxHeightStyles, productIconStyles],
|
|
177
178
|
"data-testid": testId && `${testId}-icon`
|
|
178
179
|
}, jsx(Icon, {
|
|
179
|
-
iconColor: iconColor
|
|
180
|
+
iconColor: iconColor,
|
|
181
|
+
size: fg('platform-team25-app-icon-tiles') ? 'small' : undefined
|
|
180
182
|
}))), siteTitle && jsx("div", {
|
|
181
183
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
182
184
|
style: {
|
|
@@ -10,6 +10,7 @@ import { Fragment } from 'react';
|
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
14
15
|
import { useTheme } from '../../theme';
|
|
15
16
|
import { stripEmptyProperties } from '../../utils';
|
|
@@ -161,7 +162,8 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
161
162
|
css: [customMaxHeightStyles, productIconStyles],
|
|
162
163
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
163
164
|
}, jsx(Icon, {
|
|
164
|
-
iconColor: iconColor
|
|
165
|
+
iconColor: iconColor,
|
|
166
|
+
size: fg('platform-team25-app-icon-tiles') ? 'small' : undefined
|
|
165
167
|
}))), siteTitle && jsx("div", {
|
|
166
168
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
167
169
|
style: {
|
|
@@ -5,12 +5,16 @@ export interface ProductHomeProps {
|
|
|
5
5
|
* The product icon.
|
|
6
6
|
* Expected to be an Icon from the Atlaskit Logo package. Visible on smaller screen sizes.
|
|
7
7
|
*/
|
|
8
|
-
icon: ComponentType<Partial<LogoProps
|
|
8
|
+
icon: ComponentType<Partial<Omit<LogoProps, 'appearance'> & {
|
|
9
|
+
size?: 'small';
|
|
10
|
+
}>>;
|
|
9
11
|
/**
|
|
10
12
|
* The product logo,
|
|
11
13
|
* visible on larger screen sizes.
|
|
12
14
|
*/
|
|
13
|
-
logo: ComponentType<Partial<LogoProps
|
|
15
|
+
logo: ComponentType<Partial<Omit<LogoProps, 'appearance'> & {
|
|
16
|
+
size?: 'small';
|
|
17
|
+
}>>;
|
|
14
18
|
/**
|
|
15
19
|
* Maximum width in pixel, that logo can acquire. Defaults to 260px.
|
|
16
20
|
*/
|
|
@@ -5,12 +5,16 @@ export interface ProductHomeProps {
|
|
|
5
5
|
* The product icon.
|
|
6
6
|
* Expected to be an Icon from the Atlaskit Logo package. Visible on smaller screen sizes.
|
|
7
7
|
*/
|
|
8
|
-
icon: ComponentType<Partial<LogoProps
|
|
8
|
+
icon: ComponentType<Partial<Omit<LogoProps, 'appearance'> & {
|
|
9
|
+
size?: 'small';
|
|
10
|
+
}>>;
|
|
9
11
|
/**
|
|
10
12
|
* The product logo,
|
|
11
13
|
* visible on larger screen sizes.
|
|
12
14
|
*/
|
|
13
|
-
logo: ComponentType<Partial<LogoProps
|
|
15
|
+
logo: ComponentType<Partial<Omit<LogoProps, 'appearance'> & {
|
|
16
|
+
size?: 'small';
|
|
17
|
+
}>>;
|
|
14
18
|
/**
|
|
15
19
|
* Maximum width in pixel, that logo can acquire. Defaults to 260px.
|
|
16
20
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
49
49
|
"@atlaskit/button": "^21.1.0",
|
|
50
50
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
51
|
-
"@atlaskit/icon": "^25.
|
|
51
|
+
"@atlaskit/icon": "^25.2.0",
|
|
52
52
|
"@atlaskit/logo": "^16.0.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
|
-
"@atlaskit/popup": "^
|
|
54
|
+
"@atlaskit/popup": "^3.0.0",
|
|
55
55
|
"@atlaskit/primitives": "^14.2.0",
|
|
56
56
|
"@atlaskit/theme": "^18.0.0",
|
|
57
57
|
"@atlaskit/tokens": "^4.5.0",
|
|
@@ -82,9 +82,10 @@
|
|
|
82
82
|
"@atlaskit/notification-log-client": "^6.2.0",
|
|
83
83
|
"@atlaskit/section-message": "^8.2.0",
|
|
84
84
|
"@atlaskit/spinner": "^18.0.0",
|
|
85
|
+
"@atlaskit/temp-nav-app-icons": "^0.6.0",
|
|
85
86
|
"@atlaskit/textfield": "^8.0.0",
|
|
86
87
|
"@atlaskit/visual-regression": "^0.10.0",
|
|
87
|
-
"@atlassian/switcher": "^35.
|
|
88
|
+
"@atlassian/switcher": "^35.15.0",
|
|
88
89
|
"@atlassian/switcher-test-utils": "^4.1.0",
|
|
89
90
|
"@testing-library/react": "^13.4.0",
|
|
90
91
|
"@testing-library/react-hooks": "^8.0.1",
|
|
@@ -119,6 +120,9 @@
|
|
|
119
120
|
"platform-feature-flags": {
|
|
120
121
|
"platform-component-visual-refresh": {
|
|
121
122
|
"type": "boolean"
|
|
123
|
+
},
|
|
124
|
+
"platform-team25-app-icon-tiles": {
|
|
125
|
+
"type": "boolean"
|
|
122
126
|
}
|
|
123
127
|
}
|
|
124
128
|
}
|