@atlaskit/navigation-system 2.11.1 → 2.12.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,12 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 2.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d19446c7cb076`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d19446c7cb076) -
|
|
8
|
+
FG cleanup jfp-magma-hydration-harmonise-applogo-classname
|
|
9
|
+
|
|
3
10
|
## 2.11.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -12,16 +12,11 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _react2 = require("@compiled/react");
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
-
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
16
|
-
var _primitives = require("@atlaskit/primitives");
|
|
17
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
16
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
19
17
|
var _hasCustomThemeContext = require("../themed/has-custom-theme-context");
|
|
20
18
|
var _logoRenderer = require("./logo-renderer");
|
|
21
19
|
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); }
|
|
22
|
-
var Anchor = (0, _platformFeatureFlagsReact.componentWithFG)('jfp-magma-hydration-harmonise-applogo-classname', _compiled.Anchor, _primitives.Anchor);
|
|
23
|
-
var Inline = (0, _platformFeatureFlagsReact.componentWithFG)('jfp-magma-hydration-harmonise-applogo-classname', _compiled.Inline, _primitives.Inline);
|
|
24
|
-
var Text = (0, _platformFeatureFlagsReact.componentWithFG)('jfp-magma-hydration-harmonise-applogo-classname', _compiled.Text, _primitives.Text);
|
|
25
20
|
var anchorStyles = {
|
|
26
21
|
root: "_2rko19bv _1e0c1txw _4cvr1h6o _4t3izwfg _1o9zidpf _ahbq1b66 _1toh1r31 _5jyqglyw _mrqmnqa1 _1w901kw7",
|
|
27
22
|
interactionStates: "_irr3166n _1di61wwy",
|
|
@@ -69,7 +64,7 @@ var AppLogo = exports.AppLogo = function AppLogo(_ref) {
|
|
|
69
64
|
var text = nameRef.current;
|
|
70
65
|
return Boolean(text && isTextClamped(text));
|
|
71
66
|
}, []);
|
|
72
|
-
return /*#__PURE__*/_react.default.createElement(Anchor, {
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Anchor, {
|
|
73
68
|
ref: ref,
|
|
74
69
|
"aria-label": label,
|
|
75
70
|
href: href
|
|
@@ -78,7 +73,7 @@ var AppLogo = exports.AppLogo = function AppLogo(_ref) {
|
|
|
78
73
|
,
|
|
79
74
|
xcss: (0, _react2.cx)(anchorStyles.root, hasCustomTheme ? anchorStyles.interactionStatesCustomTheming : anchorStyles.interactionStates, (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && anchorStyles.fullHeightSidebar),
|
|
80
75
|
onClick: onClick
|
|
81
|
-
}, /*#__PURE__*/_react.default.createElement(Inline, {
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
82
77
|
space: "space.075",
|
|
83
78
|
alignBlock: "center",
|
|
84
79
|
xcss: (0, _react2.cx)(logoWrapperStyles.root, (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && logoWrapperStyles.fullHeightSidebar)
|
|
@@ -102,7 +97,7 @@ var AppLogo = exports.AppLogo = function AppLogo(_ref) {
|
|
|
102
97
|
isScreenReaderAnnouncementDisabled: true,
|
|
103
98
|
canAppear: canTooltipAppear
|
|
104
99
|
}, function (tooltipProps) {
|
|
105
|
-
return /*#__PURE__*/_react.default.createElement("span", tooltipProps, /*#__PURE__*/_react.default.createElement(Text, {
|
|
100
|
+
return /*#__PURE__*/_react.default.createElement("span", tooltipProps, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
106
101
|
"aria-hidden": true,
|
|
107
102
|
color: "inherit",
|
|
108
103
|
weight: "semibold",
|
|
@@ -4,17 +4,10 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { useCallback, useRef } from 'react';
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import {
|
|
8
|
-
import { Anchor as AnchorLegacy, Inline as InlineLegacy, Text as TextLegacy
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
10
|
-
} from '@atlaskit/primitives';
|
|
11
|
-
import { Anchor as AnchorCompiled, Inline as InlineCompiled, Text as TextCompiled } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import { Anchor, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
12
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
9
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
14
10
|
import { LogoRenderer } from './logo-renderer';
|
|
15
|
-
const Anchor = componentWithFG('jfp-magma-hydration-harmonise-applogo-classname', AnchorCompiled, AnchorLegacy);
|
|
16
|
-
const Inline = componentWithFG('jfp-magma-hydration-harmonise-applogo-classname', InlineCompiled, InlineLegacy);
|
|
17
|
-
const Text = componentWithFG('jfp-magma-hydration-harmonise-applogo-classname', TextCompiled, TextLegacy);
|
|
18
11
|
const anchorStyles = {
|
|
19
12
|
root: "_2rko19bv _1e0c1txw _4cvr1h6o _4t3izwfg _1o9zidpf _ahbq1b66 _1toh1r31 _5jyqglyw _mrqmnqa1 _1w901kw7",
|
|
20
13
|
interactionStates: "_irr3166n _1di61wwy",
|
|
@@ -4,17 +4,10 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { useCallback, useRef } from 'react';
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import {
|
|
8
|
-
import { Anchor as AnchorLegacy, Inline as InlineLegacy, Text as TextLegacy
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
10
|
-
} from '@atlaskit/primitives';
|
|
11
|
-
import { Anchor as AnchorCompiled, Inline as InlineCompiled, Text as TextCompiled } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import { Anchor, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
12
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
9
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
14
10
|
import { LogoRenderer } from './logo-renderer';
|
|
15
|
-
var Anchor = componentWithFG('jfp-magma-hydration-harmonise-applogo-classname', AnchorCompiled, AnchorLegacy);
|
|
16
|
-
var Inline = componentWithFG('jfp-magma-hydration-harmonise-applogo-classname', InlineCompiled, InlineLegacy);
|
|
17
|
-
var Text = componentWithFG('jfp-magma-hydration-harmonise-applogo-classname', TextCompiled, TextLegacy);
|
|
18
11
|
var anchorStyles = {
|
|
19
12
|
root: "_2rko19bv _1e0c1txw _4cvr1h6o _4t3izwfg _1o9zidpf _ahbq1b66 _1toh1r31 _5jyqglyw _mrqmnqa1 _1w901kw7",
|
|
20
13
|
interactionStates: "_irr3166n _1di61wwy",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "The latest navigation system for Atlassian apps.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
"@atlaskit/layering": "^3.0.0",
|
|
76
76
|
"@atlaskit/logo": "^19.7.0",
|
|
77
77
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
78
|
-
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
79
78
|
"@atlaskit/popup": "^4.4.0",
|
|
80
79
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
81
80
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
@@ -118,7 +117,7 @@
|
|
|
118
117
|
"@atlaskit/textfield": "^8.0.0",
|
|
119
118
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
120
119
|
"@atlassian/gemini": "^1.20.0",
|
|
121
|
-
"@atlassian/search-dialog": "^9.
|
|
120
|
+
"@atlassian/search-dialog": "^9.7.0",
|
|
122
121
|
"@atlassian/ssr-tests": "^0.3.0",
|
|
123
122
|
"@axe-core/playwright": "^4.8.0",
|
|
124
123
|
"@testing-library/react": "^13.4.0",
|
|
@@ -147,9 +146,6 @@
|
|
|
147
146
|
}
|
|
148
147
|
},
|
|
149
148
|
"platform-feature-flags": {
|
|
150
|
-
"jfp-magma-hydration-harmonise-applogo-classname": {
|
|
151
|
-
"type": "boolean"
|
|
152
|
-
},
|
|
153
149
|
"platform-component-visual-refresh": {
|
|
154
150
|
"type": "boolean",
|
|
155
151
|
"referenceOnly": true
|