@atlaskit/atlassian-navigation 4.6.0 → 4.7.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 +8 -0
- package/dist/cjs/components/AppSwitcher/index.js +30 -4
- package/dist/cjs/index.js +6 -0
- package/dist/es2019/components/AppSwitcher/index.js +27 -0
- package/dist/es2019/index.js +1 -1
- package/dist/esm/components/AppSwitcher/index.js +27 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/components/AppSwitcher/index.d.ts +10 -0
- package/dist/types/controllers/overflow/index.d.ts +0 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +10 -0
- package/dist/types-ts4.5/controllers/overflow/index.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 4.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#138973](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/138973)
|
|
8
|
+
[`e1150e9523e1f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e1150e9523e1f) -
|
|
9
|
+
Update AppSwitcher to support Nav4
|
|
10
|
+
|
|
3
11
|
## 4.6.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -5,13 +5,15 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = exports.AppSwitcher = void 0;
|
|
8
|
+
exports.default = exports.AppSwitcherNav4 = exports.AppSwitcher = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/
|
|
12
|
+
var _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/core/app-switcher"));
|
|
13
|
+
var _appSwitcher2 = _interopRequireDefault(require("@atlaskit/icon/glyph/app-switcher"));
|
|
13
14
|
var _IconButton = require("../IconButton");
|
|
14
|
-
var _excluded = ["tooltip"]
|
|
15
|
+
var _excluded = ["tooltip"],
|
|
16
|
+
_excluded2 = ["tooltip"];
|
|
15
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
18
|
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 && Object.prototype.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; }
|
|
17
19
|
/**
|
|
@@ -27,7 +29,7 @@ var AppSwitcher = exports.AppSwitcher = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
27
29
|
var tooltip = props.tooltip,
|
|
28
30
|
iconButtonProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
29
31
|
return /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, (0, _extends2.default)({
|
|
30
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
32
|
+
icon: /*#__PURE__*/_react.default.createElement(_appSwitcher2.default, {
|
|
31
33
|
label: typeof tooltip === 'string' ? tooltip : 'Switch apps'
|
|
32
34
|
}),
|
|
33
35
|
tooltip: tooltip,
|
|
@@ -35,6 +37,30 @@ var AppSwitcher = exports.AppSwitcher = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
35
37
|
}, iconButtonProps));
|
|
36
38
|
});
|
|
37
39
|
|
|
40
|
+
// TODO: Fill in the component {description} and ensure links point to the correct {packageName} location.
|
|
41
|
+
// Remove links that the component does not have (such as usage). If there are no links remove them all.
|
|
42
|
+
/**
|
|
43
|
+
* __App switcher nav 4__
|
|
44
|
+
*
|
|
45
|
+
* An app switcher nav 4 {description}.
|
|
46
|
+
*
|
|
47
|
+
* - [Examples](https://atlassian.design/components/{packageName}/examples)
|
|
48
|
+
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
49
|
+
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
50
|
+
*/
|
|
51
|
+
var AppSwitcherNav4 = exports.AppSwitcherNav4 = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
52
|
+
var tooltip = props.tooltip,
|
|
53
|
+
iconButtonProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, (0, _extends2.default)({
|
|
55
|
+
icon: /*#__PURE__*/_react.default.createElement(_appSwitcher.default, {
|
|
56
|
+
label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
|
|
57
|
+
color: "var(--ds-icon, #44546F)"
|
|
58
|
+
}),
|
|
59
|
+
tooltip: tooltip,
|
|
60
|
+
ref: ref
|
|
61
|
+
}, iconButtonProps));
|
|
62
|
+
});
|
|
63
|
+
|
|
38
64
|
// exists only to extract props
|
|
39
65
|
// eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
|
|
40
66
|
var _default = exports.default = function _default(props) {};
|
package/dist/cjs/index.js
CHANGED
|
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "AppSwitcher", {
|
|
|
9
9
|
return _AppSwitcher.AppSwitcher;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "AppSwitcherNav4", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _AppSwitcher.AppSwitcherNav4;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
Object.defineProperty(exports, "AtlassianNavigation", {
|
|
13
19
|
enumerable: true,
|
|
14
20
|
get: function get() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
+
import Nav4AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
3
4
|
import AppSwitcherIcon from '@atlaskit/icon/glyph/app-switcher';
|
|
4
5
|
import { IconButton } from '../IconButton';
|
|
5
6
|
/**
|
|
@@ -25,6 +26,32 @@ export const AppSwitcher = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25
26
|
}, iconButtonProps));
|
|
26
27
|
});
|
|
27
28
|
|
|
29
|
+
// TODO: Fill in the component {description} and ensure links point to the correct {packageName} location.
|
|
30
|
+
// Remove links that the component does not have (such as usage). If there are no links remove them all.
|
|
31
|
+
/**
|
|
32
|
+
* __App switcher nav 4__
|
|
33
|
+
*
|
|
34
|
+
* An app switcher nav 4 {description}.
|
|
35
|
+
*
|
|
36
|
+
* - [Examples](https://atlassian.design/components/{packageName}/examples)
|
|
37
|
+
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
38
|
+
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
39
|
+
*/
|
|
40
|
+
export const AppSwitcherNav4 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
41
|
+
const {
|
|
42
|
+
tooltip,
|
|
43
|
+
...iconButtonProps
|
|
44
|
+
} = props;
|
|
45
|
+
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
46
|
+
icon: /*#__PURE__*/React.createElement(Nav4AppSwitcherIcon, {
|
|
47
|
+
label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
|
|
48
|
+
color: "var(--ds-icon, #44546F)"
|
|
49
|
+
}),
|
|
50
|
+
tooltip: tooltip,
|
|
51
|
+
ref: ref
|
|
52
|
+
}, iconButtonProps));
|
|
53
|
+
});
|
|
54
|
+
|
|
28
55
|
// exists only to extract props
|
|
29
56
|
// eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
|
|
30
57
|
export default (props => {});
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AtlassianNavigation } from './components/AtlassianNavigation';
|
|
2
|
-
export { AppSwitcher } from './components/AppSwitcher';
|
|
2
|
+
export { AppSwitcher, AppSwitcherNav4 } from './components/AppSwitcher';
|
|
3
3
|
export { Create } from './components/Create';
|
|
4
4
|
export { Help } from './components/Help';
|
|
5
5
|
export { Notifications } from './components/Notifications';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["tooltip"]
|
|
3
|
+
var _excluded = ["tooltip"],
|
|
4
|
+
_excluded2 = ["tooltip"];
|
|
4
5
|
import React, { forwardRef } from 'react';
|
|
6
|
+
import Nav4AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
5
7
|
import AppSwitcherIcon from '@atlaskit/icon/glyph/app-switcher';
|
|
6
8
|
import { IconButton } from '../IconButton';
|
|
7
9
|
/**
|
|
@@ -25,6 +27,30 @@ export var AppSwitcher = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
25
27
|
}, iconButtonProps));
|
|
26
28
|
});
|
|
27
29
|
|
|
30
|
+
// TODO: Fill in the component {description} and ensure links point to the correct {packageName} location.
|
|
31
|
+
// Remove links that the component does not have (such as usage). If there are no links remove them all.
|
|
32
|
+
/**
|
|
33
|
+
* __App switcher nav 4__
|
|
34
|
+
*
|
|
35
|
+
* An app switcher nav 4 {description}.
|
|
36
|
+
*
|
|
37
|
+
* - [Examples](https://atlassian.design/components/{packageName}/examples)
|
|
38
|
+
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
39
|
+
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
40
|
+
*/
|
|
41
|
+
export var AppSwitcherNav4 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
42
|
+
var tooltip = props.tooltip,
|
|
43
|
+
iconButtonProps = _objectWithoutProperties(props, _excluded2);
|
|
44
|
+
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
45
|
+
icon: /*#__PURE__*/React.createElement(Nav4AppSwitcherIcon, {
|
|
46
|
+
label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
|
|
47
|
+
color: "var(--ds-icon, #44546F)"
|
|
48
|
+
}),
|
|
49
|
+
tooltip: tooltip,
|
|
50
|
+
ref: ref
|
|
51
|
+
}, iconButtonProps));
|
|
52
|
+
});
|
|
53
|
+
|
|
28
54
|
// exists only to extract props
|
|
29
55
|
// eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
|
|
30
56
|
export default (function (props) {});
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AtlassianNavigation } from './components/AtlassianNavigation';
|
|
2
|
-
export { AppSwitcher } from './components/AppSwitcher';
|
|
2
|
+
export { AppSwitcher, AppSwitcherNav4 } from './components/AppSwitcher';
|
|
3
3
|
export { Create } from './components/Create';
|
|
4
4
|
export { Help } from './components/Help';
|
|
5
5
|
export { Notifications } from './components/Notifications';
|
|
@@ -10,5 +10,15 @@ import { type AppSwitcherProps } from './types';
|
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
12
|
export declare const AppSwitcher: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
13
|
+
/**
|
|
14
|
+
* __App switcher nav 4__
|
|
15
|
+
*
|
|
16
|
+
* An app switcher nav 4 {description}.
|
|
17
|
+
*
|
|
18
|
+
* - [Examples](https://atlassian.design/components/{packageName}/examples)
|
|
19
|
+
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
20
|
+
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
21
|
+
*/
|
|
22
|
+
export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
13
23
|
declare const _default: (props: AppSwitcherProps) => void;
|
|
14
24
|
export default _default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AtlassianNavigation } from './components/AtlassianNavigation';
|
|
2
2
|
export type { AtlassianNavigationProps } from './components/AtlassianNavigation/types';
|
|
3
|
-
export { AppSwitcher } from './components/AppSwitcher';
|
|
3
|
+
export { AppSwitcher, AppSwitcherNav4 } from './components/AppSwitcher';
|
|
4
4
|
export type { AppSwitcherProps } from './components/AppSwitcher/types';
|
|
5
5
|
export { Create } from './components/Create';
|
|
6
6
|
export type { CreateProps } from './components/Create/types';
|
|
@@ -10,5 +10,15 @@ import { type AppSwitcherProps } from './types';
|
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
12
|
export declare const AppSwitcher: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
13
|
+
/**
|
|
14
|
+
* __App switcher nav 4__
|
|
15
|
+
*
|
|
16
|
+
* An app switcher nav 4 {description}.
|
|
17
|
+
*
|
|
18
|
+
* - [Examples](https://atlassian.design/components/{packageName}/examples)
|
|
19
|
+
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
20
|
+
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
21
|
+
*/
|
|
22
|
+
export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
13
23
|
declare const _default: (props: AppSwitcherProps) => void;
|
|
14
24
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AtlassianNavigation } from './components/AtlassianNavigation';
|
|
2
2
|
export type { AtlassianNavigationProps } from './components/AtlassianNavigation/types';
|
|
3
|
-
export { AppSwitcher } from './components/AppSwitcher';
|
|
3
|
+
export { AppSwitcher, AppSwitcherNav4 } from './components/AppSwitcher';
|
|
4
4
|
export type { AppSwitcherProps } from './components/AppSwitcher/types';
|
|
5
5
|
export { Create } from './components/Create';
|
|
6
6
|
export type { CreateProps } from './components/Create/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"runReact18": true
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
42
|
+
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
43
43
|
"@atlaskit/button": "^20.1.0",
|
|
44
44
|
"@atlaskit/ds-lib": "^2.5.0",
|
|
45
|
-
"@atlaskit/icon": "^22.
|
|
45
|
+
"@atlaskit/icon": "^22.16.0",
|
|
46
46
|
"@atlaskit/logo": "*",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
48
|
-
"@atlaskit/popup": "^1.
|
|
48
|
+
"@atlaskit/popup": "^1.25.0",
|
|
49
49
|
"@atlaskit/primitives": "^12.1.0",
|
|
50
50
|
"@atlaskit/theme": "^13.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^1.59.0",
|