@atlaskit/atlassian-navigation 4.3.2 → 4.4.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 4.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#125278](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/125278)
14
+ [`f80ae8ed91fc9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f80ae8ed91fc9) -
15
+ Adding data-vc attributes for tracking TTVC (go/ttvc).
16
+
3
17
  ## 4.3.2
4
18
 
5
19
  ### Patch Changes
@@ -0,0 +1,57 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.post-office.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__atlassian-navigation/app",
7
+ "composite": true,
8
+ "rootDir": "../"
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../analytics/analytics-namespaced-context/afm-post-office/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../button/afm-post-office/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../ds-lib/afm-post-office/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../icon/afm-post-office/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../logo/afm-post-office/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../popup/afm-post-office/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../primitives/afm-post-office/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../theme/afm-post-office/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../tokens/afm-post-office/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../../tooltip/afm-post-office/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../../width-detector/afm-post-office/tsconfig.json"
55
+ }
56
+ ]
57
+ }
@@ -97,11 +97,12 @@ var AtlassianNavigation = exports.AtlassianNavigation = function AtlassianNaviga
97
97
  style: theme.mode.navigation,
98
98
  css: containerStyles,
99
99
  "data-testid": testId && "".concat(testId, "-header"),
100
- role: "banner"
100
+ role: "banner",
101
+ "data-vc": "atlassian-navigation"
101
102
  }, (0, _react.jsx)("nav", {
102
103
  css: leftStyles,
103
104
  "aria-label": label
104
- }, AppSwitcher && (0, _react.jsx)(AppSwitcher, null), ProductHome && (0, _react.jsx)(ProductHome, null), (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? (0, _react.jsx)(_PrimaryItemsContainerV.PrimaryItemsContainer, {
105
+ }, AppSwitcher && (0, _react.jsx)(AppSwitcher, null), ProductHome && (0, _react.jsx)(ProductHome, null), (0, _platformFeatureFlags.fg)('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? (0, _react.jsx)(_PrimaryItemsContainerV.PrimaryItemsContainer, {
105
106
  testId: testId,
106
107
  moreLabel: moreLabel,
107
108
  items: primaryItems,
@@ -122,7 +123,8 @@ var AtlassianNavigation = exports.AtlassianNavigation = function AtlassianNaviga
122
123
  "data-testid": testId && "".concat(testId, "-secondary-actions")
123
124
  }, Search && (0, _react.jsx)(Search, null), (0, _react.jsx)("div", {
124
125
  role: "list",
125
- css: [rightStyles, noRightMarginStyles]
126
+ css: [rightStyles, noRightMarginStyles],
127
+ "data-vc": "atlassian-navigation-secondary-actions"
126
128
  }, Notifications && (0, _react.jsx)(Notifications, null), Help && (0, _react.jsx)(Help, null), Settings && (0, _react.jsx)(Settings, null), SignIn && (0, _react.jsx)(SignIn, null), Profile && (0, _react.jsx)(Profile, null))))));
127
129
  };
128
130
  var _default = exports.default = AtlassianNavigation;
@@ -71,7 +71,8 @@ var PrimaryButton = exports.PrimaryButton = /*#__PURE__*/(0, _react.forwardRef)(
71
71
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
72
72
  style: (_ref = {}, (0, _defineProperty2.default)(_ref, VAR_BUTTON_SELECTED_COLOR, theme.mode.primaryButton.selected.color), (0, _defineProperty2.default)(_ref, VAR_BUTTON_SELECTED_BORDER_COLOR, theme.mode.primaryButton.selected.borderColor), _ref),
73
73
  css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles],
74
- role: "listitem"
74
+ role: "listitem",
75
+ "data-vc": "primary-button"
75
76
  }, (0, _react2.jsx)(_customThemeButton.default, (0, _extends2.default)({
76
77
  appearance: "primary",
77
78
  testId: testId,
@@ -5,7 +5,7 @@
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
8
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { N30 } from '@atlaskit/theme/colors';
10
10
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
11
11
  import { defaultTheme, ThemeProvider } from '../../theme';
@@ -89,11 +89,12 @@ export const AtlassianNavigation = props => {
89
89
  style: theme.mode.navigation,
90
90
  css: containerStyles,
91
91
  "data-testid": testId && `${testId}-header`,
92
- role: "banner"
92
+ role: "banner",
93
+ "data-vc": "atlassian-navigation"
93
94
  }, jsx("nav", {
94
95
  css: leftStyles,
95
96
  "aria-label": label
96
- }, AppSwitcher && jsx(AppSwitcher, null), ProductHome && jsx(ProductHome, null), getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? jsx(PrimaryItemsContainerV2, {
97
+ }, AppSwitcher && jsx(AppSwitcher, null), ProductHome && jsx(ProductHome, null), fg('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? jsx(PrimaryItemsContainerV2, {
97
98
  testId: testId,
98
99
  moreLabel: moreLabel,
99
100
  items: primaryItems,
@@ -114,7 +115,8 @@ export const AtlassianNavigation = props => {
114
115
  "data-testid": testId && `${testId}-secondary-actions`
115
116
  }, Search && jsx(Search, null), jsx("div", {
116
117
  role: "list",
117
- css: [rightStyles, noRightMarginStyles]
118
+ css: [rightStyles, noRightMarginStyles],
119
+ "data-vc": "atlassian-navigation-secondary-actions"
118
120
  }, Notifications && jsx(Notifications, null), Help && jsx(Help, null), Settings && jsx(Settings, null), SignIn && jsx(SignIn, null), Profile && jsx(Profile, null))))));
119
121
  };
120
122
  export default AtlassianNavigation;
@@ -66,7 +66,8 @@ export const PrimaryButton = /*#__PURE__*/forwardRef((props, ref) => {
66
66
  [VAR_BUTTON_SELECTED_BORDER_COLOR]: theme.mode.primaryButton.selected.borderColor
67
67
  },
68
68
  css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles],
69
- role: "listitem"
69
+ role: "listitem",
70
+ "data-vc": "primary-button"
70
71
  }, jsx(Button, _extends({
71
72
  appearance: "primary",
72
73
  testId: testId,
@@ -5,7 +5,7 @@
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
8
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { N30 } from '@atlaskit/theme/colors';
10
10
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
11
11
  import { defaultTheme, ThemeProvider } from '../../theme';
@@ -90,11 +90,12 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
90
90
  style: theme.mode.navigation,
91
91
  css: containerStyles,
92
92
  "data-testid": testId && "".concat(testId, "-header"),
93
- role: "banner"
93
+ role: "banner",
94
+ "data-vc": "atlassian-navigation"
94
95
  }, jsx("nav", {
95
96
  css: leftStyles,
96
97
  "aria-label": label
97
- }, AppSwitcher && jsx(AppSwitcher, null), ProductHome && jsx(ProductHome, null), getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? jsx(PrimaryItemsContainerV2, {
98
+ }, AppSwitcher && jsx(AppSwitcher, null), ProductHome && jsx(ProductHome, null), fg('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? jsx(PrimaryItemsContainerV2, {
98
99
  testId: testId,
99
100
  moreLabel: moreLabel,
100
101
  items: primaryItems,
@@ -115,7 +116,8 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
115
116
  "data-testid": testId && "".concat(testId, "-secondary-actions")
116
117
  }, Search && jsx(Search, null), jsx("div", {
117
118
  role: "list",
118
- css: [rightStyles, noRightMarginStyles]
119
+ css: [rightStyles, noRightMarginStyles],
120
+ "data-vc": "atlassian-navigation-secondary-actions"
119
121
  }, Notifications && jsx(Notifications, null), Help && jsx(Help, null), Settings && jsx(Settings, null), SignIn && jsx(SignIn, null), Profile && jsx(Profile, null))))));
120
122
  };
121
123
  export default AtlassianNavigation;
@@ -65,7 +65,8 @@ export var PrimaryButton = /*#__PURE__*/forwardRef(function (props, ref) {
65
65
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
66
66
  style: (_ref = {}, _defineProperty(_ref, VAR_BUTTON_SELECTED_COLOR, theme.mode.primaryButton.selected.color), _defineProperty(_ref, VAR_BUTTON_SELECTED_BORDER_COLOR, theme.mode.primaryButton.selected.borderColor), _ref),
67
67
  css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles],
68
- role: "listitem"
68
+ role: "listitem",
69
+ "data-vc": "primary-button"
69
70
  }, jsx(Button, _extends({
70
71
  appearance: "primary",
71
72
  testId: testId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "4.3.2",
3
+ "version": "4.4.1",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,16 +44,16 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@atlaskit/analytics-namespaced-context": "^6.10.0",
47
- "@atlaskit/button": "^19.0.0",
47
+ "@atlaskit/button": "^19.1.0",
48
48
  "@atlaskit/ds-lib": "^2.3.0",
49
- "@atlaskit/icon": "^22.7.0",
49
+ "@atlaskit/icon": "^22.11.0",
50
50
  "@atlaskit/logo": "*",
51
51
  "@atlaskit/platform-feature-flags": "^0.3.0",
52
- "@atlaskit/popup": "^1.20.0",
53
- "@atlaskit/primitives": "^11.0.0",
52
+ "@atlaskit/popup": "^1.21.0",
53
+ "@atlaskit/primitives": "^12.0.0",
54
54
  "@atlaskit/theme": "^12.11.0",
55
- "@atlaskit/tokens": "^1.56.0",
56
- "@atlaskit/tooltip": "^18.5.0",
55
+ "@atlaskit/tokens": "^1.57.0",
56
+ "@atlaskit/tooltip": "^18.6.0",
57
57
  "@atlaskit/width-detector": "^4.2.0",
58
58
  "@babel/runtime": "^7.0.0",
59
59
  "@emotion/react": "^11.7.1",
@@ -66,7 +66,7 @@
66
66
  "devDependencies": {
67
67
  "@af/accessibility-testing": "*",
68
68
  "@af/visual-regression": "*",
69
- "@atlaskit/dropdown-menu": "^12.14.0",
69
+ "@atlaskit/dropdown-menu": "^12.16.0",
70
70
  "@atlaskit/notification-indicator": "*",
71
71
  "@atlaskit/notification-log-client": "*",
72
72
  "@atlaskit/visual-regression": "*",