@atlaskit/atlassian-navigation 2.10.0 → 3.0.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,11 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#59797](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59797) [`ea972e5bd62f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ea972e5bd62f) - Removing PrimarySplitButton which relies on (about to be removed) UNSAFE exports from @atlaskit/button. See LDR https://hello.atlassian.net/l/cp/xNFyPqkm
8
+
3
9
  ## 2.10.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,58 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.confluence.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "composite": true,
7
+ "outDir": "../dist",
8
+ "rootDir": "../",
9
+ "baseUrl": "../"
10
+ },
11
+ "include": [
12
+ "../src/**/*.ts",
13
+ "../src/**/*.tsx"
14
+ ],
15
+ "exclude": [
16
+ "../src/**/__tests__/*",
17
+ "../src/**/*.test.*",
18
+ "../src/**/test.*"
19
+ ],
20
+ "references": [
21
+ {
22
+ "path": "../../../analytics/analytics-namespaced-context/afm-cc/tsconfig.json"
23
+ },
24
+ {
25
+ "path": "../../button/afm-cc/tsconfig.json"
26
+ },
27
+ {
28
+ "path": "../../ds-lib/afm-cc/tsconfig.json"
29
+ },
30
+ {
31
+ "path": "../../icon/afm-cc/tsconfig.json"
32
+ },
33
+ {
34
+ "path": "../../logo/afm-cc/tsconfig.json"
35
+ },
36
+ {
37
+ "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
38
+ },
39
+ {
40
+ "path": "../../popup/afm-cc/tsconfig.json"
41
+ },
42
+ {
43
+ "path": "../../primitives/afm-cc/tsconfig.json"
44
+ },
45
+ {
46
+ "path": "../../theme/afm-cc/tsconfig.json"
47
+ },
48
+ {
49
+ "path": "../../tokens/afm-cc/tsconfig.json"
50
+ },
51
+ {
52
+ "path": "../../tooltip/afm-cc/tsconfig.json"
53
+ },
54
+ {
55
+ "path": "../../width-detector/afm-cc/tsconfig.json"
56
+ }
57
+ ]
58
+ }
package/dist/cjs/index.js CHANGED
@@ -63,12 +63,6 @@ Object.defineProperty(exports, "PrimaryDropdownButton", {
63
63
  return _PrimaryDropdownButton.PrimaryDropdownButton;
64
64
  }
65
65
  });
66
- Object.defineProperty(exports, "PrimarySplitButton", {
67
- enumerable: true,
68
- get: function get() {
69
- return _PrimarySplitButton.PrimarySplitButton;
70
- }
71
- });
72
66
  Object.defineProperty(exports, "ProductHome", {
73
67
  enumerable: true,
74
68
  get: function get() {
@@ -130,7 +124,6 @@ var _Help = require("./components/Help");
130
124
  var _Notifications = require("./components/Notifications");
131
125
  var _PrimaryButton = require("./components/PrimaryButton");
132
126
  var _PrimaryDropdownButton = require("./components/PrimaryDropdownButton");
133
- var _PrimarySplitButton = require("./components/PrimarySplitButton");
134
127
  var _IconButton = require("./components/IconButton");
135
128
  var _ProductHome = require("./components/ProductHome");
136
129
  var _Profile = require("./components/Profile");
@@ -5,7 +5,6 @@ export { Help } from './components/Help';
5
5
  export { Notifications } from './components/Notifications';
6
6
  export { PrimaryButton } from './components/PrimaryButton';
7
7
  export { PrimaryDropdownButton } from './components/PrimaryDropdownButton';
8
- export { PrimarySplitButton } from './components/PrimarySplitButton';
9
8
  export { IconButton } from './components/IconButton';
10
9
  export { CustomProductHome, ProductHome } from './components/ProductHome';
11
10
  export { Profile } from './components/Profile';
package/dist/esm/index.js CHANGED
@@ -5,7 +5,6 @@ export { Help } from './components/Help';
5
5
  export { Notifications } from './components/Notifications';
6
6
  export { PrimaryButton } from './components/PrimaryButton';
7
7
  export { PrimaryDropdownButton } from './components/PrimaryDropdownButton';
8
- export { PrimarySplitButton } from './components/PrimarySplitButton';
9
8
  export { IconButton } from './components/IconButton';
10
9
  export { CustomProductHome, ProductHome } from './components/ProductHome';
11
10
  export { Profile } from './components/Profile';
@@ -12,7 +12,6 @@ export { PrimaryButton } from './components/PrimaryButton';
12
12
  export type { PrimaryButtonProps } from './components/PrimaryButton/types';
13
13
  export { PrimaryDropdownButton } from './components/PrimaryDropdownButton';
14
14
  export type { PrimaryDropdownButtonProps } from './components/PrimaryDropdownButton/types';
15
- export { PrimarySplitButton } from './components/PrimarySplitButton';
16
15
  export { IconButton } from './components/IconButton';
17
16
  export type { IconButtonProps } from './components/IconButton/types';
18
17
  export { CustomProductHome, ProductHome } from './components/ProductHome';
@@ -12,7 +12,6 @@ export { PrimaryButton } from './components/PrimaryButton';
12
12
  export type { PrimaryButtonProps } from './components/PrimaryButton/types';
13
13
  export { PrimaryDropdownButton } from './components/PrimaryDropdownButton';
14
14
  export type { PrimaryDropdownButtonProps } from './components/PrimaryDropdownButton/types';
15
- export { PrimarySplitButton } from './components/PrimarySplitButton';
16
15
  export { IconButton } from './components/IconButton';
17
16
  export type { IconButtonProps } from './components/IconButton/types';
18
17
  export { CustomProductHome, ProductHome } from './components/ProductHome';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.10.0",
3
+ "version": "3.0.0",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,13 +33,13 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-namespaced-context": "^6.7.0",
36
- "@atlaskit/button": "^16.17.0",
36
+ "@atlaskit/button": "^16.18.0",
37
37
  "@atlaskit/ds-lib": "^2.2.0",
38
38
  "@atlaskit/icon": "^22.0.0",
39
39
  "@atlaskit/logo": "*",
40
40
  "@atlaskit/platform-feature-flags": "^0.2.0",
41
41
  "@atlaskit/popup": "^1.11.0",
42
- "@atlaskit/primitives": "^1.12.0",
42
+ "@atlaskit/primitives": "^1.13.0",
43
43
  "@atlaskit/theme": "^12.6.0",
44
44
  "@atlaskit/tokens": "^1.29.0",
45
45
  "@atlaskit/tooltip": "^18.0.0",
@@ -1,57 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PrimarySplitButton = void 0;
7
- var _react = require("@emotion/react");
8
- var _unsafe = require("@atlaskit/button/unsafe");
9
- /** @jsx jsx */
10
-
11
- // Copied from packages/design-system/atlassian-navigation/src/components/PrimaryButton/index.tsx
12
- var buttonBaseStyles = (0, _react.css)({
13
- display: 'flex',
14
- height: '100%',
15
- position: 'relative',
16
- alignItems: 'center',
17
- justifyContent: 'center',
18
- flexDirection: 'column'
19
- });
20
-
21
- // Mostly copied from packages/design-system/atlassian-navigation/src/components/PrimaryButton/index.tsx
22
- var buttonHighlightedStyles = (0, _react.css)({
23
- '&:after': {
24
- height: 3,
25
- position: 'absolute',
26
- backgroundColor: "var(--ds-border-selected, #0052cc)",
27
- borderStartEndRadius: "var(--ds-border-radius-050, 1px)",
28
- borderStartStartRadius: "var(--ds-border-radius-050, 1px)",
29
- content: '""',
30
- insetBlockEnd: 0,
31
- insetInlineEnd: "var(--ds-space-050, 4px)",
32
- insetInlineStart: "var(--ds-space-050, 4px)"
33
- }
34
- });
35
- /**
36
- * TODO: Add JSDoc
37
- */
38
- var PrimarySplitButton = exports.PrimarySplitButton = function PrimarySplitButton(_ref) {
39
- var children = _ref.children,
40
- _ref$isHighlighted = _ref.isHighlighted,
41
- isHighlighted = _ref$isHighlighted === void 0 ? false : _ref$isHighlighted;
42
- var _getActions = (0, _unsafe.UNSAFE_GET_ACTIONS)(children),
43
- PrimaryAction = _getActions.PrimaryAction,
44
- SecondaryAction = _getActions.SecondaryAction;
45
- return (0, _react.jsx)("div", {
46
- css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles]
47
- }, (0, _react.jsx)(_unsafe.UNSAFE_SPLIT_BUTTON_CONTAINER, null, (0, _react.jsx)(_unsafe.UNSAFE_SPLIT_BUTTON_CONTEXT.Provider, {
48
- value: {
49
- appearance: 'navigation',
50
- isHighlighted: isHighlighted
51
- }
52
- }, PrimaryAction, (0, _react.jsx)(_unsafe.UNSAFE_DIVIDER, {
53
- appearance: "navigation",
54
- spacing: "default",
55
- isDisabled: false
56
- }), SecondaryAction)));
57
- };
@@ -1,52 +0,0 @@
1
- /** @jsx jsx */
2
-
3
- import { css, jsx } from '@emotion/react';
4
- import { UNSAFE_DIVIDER as Divider, UNSAFE_GET_ACTIONS as getActions, UNSAFE_SPLIT_BUTTON_CONTAINER as SplitButtonContainer, UNSAFE_SPLIT_BUTTON_CONTEXT as SplitButtonContext } from '@atlaskit/button/unsafe';
5
- // Copied from packages/design-system/atlassian-navigation/src/components/PrimaryButton/index.tsx
6
- const buttonBaseStyles = css({
7
- display: 'flex',
8
- height: '100%',
9
- position: 'relative',
10
- alignItems: 'center',
11
- justifyContent: 'center',
12
- flexDirection: 'column'
13
- });
14
-
15
- // Mostly copied from packages/design-system/atlassian-navigation/src/components/PrimaryButton/index.tsx
16
- const buttonHighlightedStyles = css({
17
- '&:after': {
18
- height: 3,
19
- position: 'absolute',
20
- backgroundColor: "var(--ds-border-selected, #0052cc)",
21
- borderStartEndRadius: "var(--ds-border-radius-050, 1px)",
22
- borderStartStartRadius: "var(--ds-border-radius-050, 1px)",
23
- content: '""',
24
- insetBlockEnd: 0,
25
- insetInlineEnd: "var(--ds-space-050, 4px)",
26
- insetInlineStart: "var(--ds-space-050, 4px)"
27
- }
28
- });
29
- /**
30
- * TODO: Add JSDoc
31
- */
32
- export const PrimarySplitButton = ({
33
- children,
34
- isHighlighted = false
35
- }) => {
36
- const {
37
- PrimaryAction,
38
- SecondaryAction
39
- } = getActions(children);
40
- return jsx("div", {
41
- css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles]
42
- }, jsx(SplitButtonContainer, null, jsx(SplitButtonContext.Provider, {
43
- value: {
44
- appearance: 'navigation',
45
- isHighlighted
46
- }
47
- }, PrimaryAction, jsx(Divider, {
48
- appearance: "navigation",
49
- spacing: "default",
50
- isDisabled: false
51
- }), SecondaryAction)));
52
- };
@@ -1,51 +0,0 @@
1
- /** @jsx jsx */
2
-
3
- import { css, jsx } from '@emotion/react';
4
- import { UNSAFE_DIVIDER as Divider, UNSAFE_GET_ACTIONS as getActions, UNSAFE_SPLIT_BUTTON_CONTAINER as SplitButtonContainer, UNSAFE_SPLIT_BUTTON_CONTEXT as SplitButtonContext } from '@atlaskit/button/unsafe';
5
- // Copied from packages/design-system/atlassian-navigation/src/components/PrimaryButton/index.tsx
6
- var buttonBaseStyles = css({
7
- display: 'flex',
8
- height: '100%',
9
- position: 'relative',
10
- alignItems: 'center',
11
- justifyContent: 'center',
12
- flexDirection: 'column'
13
- });
14
-
15
- // Mostly copied from packages/design-system/atlassian-navigation/src/components/PrimaryButton/index.tsx
16
- var buttonHighlightedStyles = css({
17
- '&:after': {
18
- height: 3,
19
- position: 'absolute',
20
- backgroundColor: "var(--ds-border-selected, #0052cc)",
21
- borderStartEndRadius: "var(--ds-border-radius-050, 1px)",
22
- borderStartStartRadius: "var(--ds-border-radius-050, 1px)",
23
- content: '""',
24
- insetBlockEnd: 0,
25
- insetInlineEnd: "var(--ds-space-050, 4px)",
26
- insetInlineStart: "var(--ds-space-050, 4px)"
27
- }
28
- });
29
- /**
30
- * TODO: Add JSDoc
31
- */
32
- export var PrimarySplitButton = function PrimarySplitButton(_ref) {
33
- var children = _ref.children,
34
- _ref$isHighlighted = _ref.isHighlighted,
35
- isHighlighted = _ref$isHighlighted === void 0 ? false : _ref$isHighlighted;
36
- var _getActions = getActions(children),
37
- PrimaryAction = _getActions.PrimaryAction,
38
- SecondaryAction = _getActions.SecondaryAction;
39
- return jsx("div", {
40
- css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles]
41
- }, jsx(SplitButtonContainer, null, jsx(SplitButtonContext.Provider, {
42
- value: {
43
- appearance: 'navigation',
44
- isHighlighted: isHighlighted
45
- }
46
- }, PrimaryAction, jsx(Divider, {
47
- appearance: "navigation",
48
- spacing: "default",
49
- isDisabled: false
50
- }), SecondaryAction)));
51
- };
@@ -1,12 +0,0 @@
1
- /** @jsx jsx */
2
- import { type ReactNode } from 'react';
3
- import { jsx } from '@emotion/react';
4
- type PrimarySplitButtonProps = {
5
- children: ReactNode;
6
- isHighlighted?: boolean;
7
- };
8
- /**
9
- * TODO: Add JSDoc
10
- */
11
- export declare const PrimarySplitButton: ({ children, isHighlighted, }: PrimarySplitButtonProps) => jsx.JSX.Element;
12
- export {};
@@ -1,12 +0,0 @@
1
- /** @jsx jsx */
2
- import { type ReactNode } from 'react';
3
- import { jsx } from '@emotion/react';
4
- type PrimarySplitButtonProps = {
5
- children: ReactNode;
6
- isHighlighted?: boolean;
7
- };
8
- /**
9
- * TODO: Add JSDoc
10
- */
11
- export declare const PrimarySplitButton: ({ children, isHighlighted, }: PrimarySplitButtonProps) => jsx.JSX.Element;
12
- export {};