@atlaskit/navigation-system 2.21.1 → 2.22.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,17 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 2.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3c732646f3e19`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c732646f3e19) -
|
|
8
|
+
The tooltip for truncated side nav menu item has been updated behind the feature gate
|
|
9
|
+
`platform_dst_side_nav_remove_custom_tooltip`:
|
|
10
|
+
|
|
11
|
+
- The tooltip now uses the standard tooltip styling and behavior, instead of using a custom
|
|
12
|
+
component.
|
|
13
|
+
- The tooltip position has been updated to `right-start` (previously it was `right`).
|
|
14
|
+
|
|
3
15
|
## 2.21.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -338,10 +338,10 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref3, forwardedRef) {
|
|
|
338
338
|
content: function content() {
|
|
339
339
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, children), description ? /*#__PURE__*/_react.default.createElement("div", null, description) : null);
|
|
340
340
|
},
|
|
341
|
-
position:
|
|
341
|
+
position: (0, _platformFeatureFlags.fg)('platform_dst_side_nav_remove_custom_tooltip') ? 'right-start' : 'right'
|
|
342
342
|
// NOTE: Types in React 18 have changed and `forwardRef(() => <TooltipPrimitive>)` no longer appears to match 100%
|
|
343
343
|
,
|
|
344
|
-
component: MenuItemTooltip,
|
|
344
|
+
component: (0, _platformFeatureFlags.fg)('platform_dst_side_nav_remove_custom_tooltip') ? undefined : MenuItemTooltip,
|
|
345
345
|
ignoreTooltipPointerEvents: true,
|
|
346
346
|
hideTooltipOnMouseDown: true
|
|
347
347
|
// We don't need a duplicate hidden element containing tooltip content
|
|
@@ -321,10 +321,10 @@ const MenuItemBaseNoRef = ({
|
|
|
321
321
|
className: ax([containerStyles.root, fg('platform_dst_nav4_actionsonhover_focus_fix') ? containerStyles.actionsOnHoverFocusFixEnabled : containerStyles.actionsOnHoverFocusFixDisabled, isSelected && containerStyles.selected, isDragging && containerStyles.dragging, description && containerStyles.hasDescription, showHoverActionsWhenNotHovered && !fg('platform_dst_nav4_actionsonhover_focus_fix') && containerStyles.showHoverActionsWithFocusFixDisabled, showHoverActionsWhenNotHovered && fg('platform_dst_nav4_actionsonhover_focus_fix') && containerStyles.showHoverActionsWithFocusFixEnabled, showHoverActionsWhenNotHovered && elemAfter && containerStyles.removeElemAfter, actionsOnHover && elemAfter && containerStyles.removeElemAfterOnHoverOrOpenNestedPopup, isDisabled && containerStyles.disabled])
|
|
322
322
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
323
323
|
content: () => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, children), description ? /*#__PURE__*/React.createElement("div", null, description) : null),
|
|
324
|
-
position:
|
|
324
|
+
position: fg('platform_dst_side_nav_remove_custom_tooltip') ? 'right-start' : 'right'
|
|
325
325
|
// NOTE: Types in React 18 have changed and `forwardRef(() => <TooltipPrimitive>)` no longer appears to match 100%
|
|
326
326
|
,
|
|
327
|
-
component: MenuItemTooltip,
|
|
327
|
+
component: fg('platform_dst_side_nav_remove_custom_tooltip') ? undefined : MenuItemTooltip,
|
|
328
328
|
ignoreTooltipPointerEvents: true,
|
|
329
329
|
hideTooltipOnMouseDown: true
|
|
330
330
|
// We don't need a duplicate hidden element containing tooltip content
|
|
@@ -327,10 +327,10 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref3, forwardedRef) {
|
|
|
327
327
|
content: function content() {
|
|
328
328
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, children), description ? /*#__PURE__*/React.createElement("div", null, description) : null);
|
|
329
329
|
},
|
|
330
|
-
position:
|
|
330
|
+
position: fg('platform_dst_side_nav_remove_custom_tooltip') ? 'right-start' : 'right'
|
|
331
331
|
// NOTE: Types in React 18 have changed and `forwardRef(() => <TooltipPrimitive>)` no longer appears to match 100%
|
|
332
332
|
,
|
|
333
|
-
component: MenuItemTooltip,
|
|
333
|
+
component: fg('platform_dst_side_nav_remove_custom_tooltip') ? undefined : MenuItemTooltip,
|
|
334
334
|
ignoreTooltipPointerEvents: true,
|
|
335
335
|
hideTooltipOnMouseDown: true
|
|
336
336
|
// We don't need a duplicate hidden element containing tooltip content
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.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",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/tooltip": "^20.5.0",
|
|
85
85
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
86
86
|
"@babel/runtime": "^7.0.0",
|
|
87
|
-
"@compiled/react": "^0.18.
|
|
87
|
+
"@compiled/react": "^0.18.6",
|
|
88
88
|
"bind-event-listener": "^3.0.0",
|
|
89
89
|
"raf-schd": "^4.0.3",
|
|
90
90
|
"tiny-invariant": "^1.2.0"
|
|
@@ -191,6 +191,9 @@
|
|
|
191
191
|
},
|
|
192
192
|
"platform_dst_flyout_menu_item_chevron_color": {
|
|
193
193
|
"type": "boolean"
|
|
194
|
+
},
|
|
195
|
+
"platform_dst_side_nav_remove_custom_tooltip": {
|
|
196
|
+
"type": "boolean"
|
|
194
197
|
}
|
|
195
198
|
},
|
|
196
199
|
"homepage": "https://atlassian.design/components/navigation-system"
|