@atlaskit/side-navigation 3.1.2 → 3.2.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 +654 -640
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +43 -0
- package/codemods/0.8.0-change-css-fn-prop.tsx +9 -8
- package/codemods/helpers/generic.tsx +12 -11
- package/constellation/index/props.mdx +17 -12
- package/dist/cjs/common/styles.js +2 -2
- package/dist/cjs/components/Footer/index.js +3 -3
- package/dist/cjs/components/Header/index.js +10 -5
- package/dist/cjs/components/Item/skeleton-item.js +2 -2
- package/dist/cjs/components/NavigationHeader/index.js +1 -1
- package/dist/es2019/common/styles.js +2 -2
- package/dist/es2019/components/Footer/index.js +3 -3
- package/dist/es2019/components/Header/index.js +8 -4
- package/dist/es2019/components/Item/skeleton-item.js +2 -2
- package/dist/es2019/components/NavigationHeader/index.js +1 -1
- package/dist/esm/common/styles.js +2 -2
- package/dist/esm/components/Footer/index.js +3 -3
- package/dist/esm/components/Header/index.js +10 -5
- package/dist/esm/components/Item/skeleton-item.js +2 -2
- package/dist/esm/components/NavigationHeader/index.js +1 -1
- package/dist/types/common/styles.d.ts +1 -1
- package/dist/types/components/Header/index.d.ts +1 -1
- package/dist/types/components/Item/button-item.d.ts +1 -1
- package/dist/types/components/Item/custom-item.d.ts +1 -1
- package/dist/types/components/Item/link-item.d.ts +1 -1
- package/dist/types/components/Item/skeleton-item.d.ts +1 -1
- package/dist/types/components/NavigationContent/index.d.ts +1 -1
- package/dist/types/components/NavigationFooter/index.d.ts +1 -1
- package/dist/types/components/NestableNavigationContent/context.d.ts +1 -1
- package/dist/types/components/NestableNavigationContent/nesting-motion.d.ts +2 -2
- package/dist/types/components/NestingItem/hack-for-ert.d.ts +1 -1
- package/dist/types/components/NestingItem/index.d.ts +1 -1
- package/dist/types/components/NestingItem/styles.d.ts +1 -1
- package/dist/types/components/Section/heading-item.d.ts +1 -1
- package/dist/types/components/Section/skeleton-heading-item.d.ts +1 -1
- package/dist/types/components/utils/hooks.d.ts +1 -1
- package/dist/types-ts4.5/common/styles.d.ts +1 -1
- package/dist/types-ts4.5/components/Header/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Item/button-item.d.ts +1 -1
- package/dist/types-ts4.5/components/Item/custom-item.d.ts +1 -1
- package/dist/types-ts4.5/components/Item/link-item.d.ts +1 -1
- package/dist/types-ts4.5/components/Item/skeleton-item.d.ts +1 -1
- package/dist/types-ts4.5/components/NavigationContent/index.d.ts +1 -1
- package/dist/types-ts4.5/components/NavigationFooter/index.d.ts +1 -1
- package/dist/types-ts4.5/components/NestableNavigationContent/context.d.ts +1 -1
- package/dist/types-ts4.5/components/NestableNavigationContent/nesting-motion.d.ts +2 -2
- package/dist/types-ts4.5/components/NestingItem/hack-for-ert.d.ts +1 -1
- package/dist/types-ts4.5/components/NestingItem/index.d.ts +1 -1
- package/dist/types-ts4.5/components/NestingItem/styles.d.ts +1 -1
- package/dist/types-ts4.5/components/Section/heading-item.d.ts +1 -1
- package/dist/types-ts4.5/components/Section/skeleton-heading-item.d.ts +1 -1
- package/dist/types-ts4.5/components/utils/hooks.d.ts +1 -1
- package/docs/ert/footer.tsx +1 -1
- package/package.json +10 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { Ref } from 'react';
|
|
2
|
+
import { type Ref } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { Direction } from '@atlaskit/motion';
|
|
4
|
+
import { type Direction } from '@atlaskit/motion';
|
|
5
5
|
interface ChildrenAsFunctionProps {
|
|
6
6
|
'data-enter-from': string;
|
|
7
7
|
'data-exit-to': string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NestingItemProps } from './index';
|
|
1
|
+
import { type NestingItemProps } from './index';
|
|
2
2
|
export default function (_: NestingItemProps): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { CSSFn, CustomItemComponentProps, Overrides } from '@atlaskit/menu';
|
|
3
|
+
import { type CSSFn, type CustomItemComponentProps, type Overrides } from '@atlaskit/menu';
|
|
4
4
|
interface NestingItemOverrides extends Overrides {
|
|
5
5
|
/**
|
|
6
6
|
* Use this to override the back button displayed when navigation is nested.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MutableRefObject } from 'react';
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
2
2
|
export declare const useChildIds: (currentStackId: string, committedStack: string[], onUnknownNest?: ((stack: string[]) => void) | undefined) => {
|
|
3
3
|
childIdsRef: MutableRefObject<Set<string>>;
|
|
4
4
|
};
|
package/docs/ert/footer.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @repo/internal/react/boolean-prop-naming-convention */
|
|
3
3
|
/* eslint-disable @repo/internal/react/consistent-props-definitions */
|
|
4
4
|
|
|
5
|
-
import { HeaderProps } from '../../src/components/Header';
|
|
5
|
+
import { type HeaderProps } from '../../src/components/Header';
|
|
6
6
|
|
|
7
7
|
interface FooterProps extends HeaderProps {
|
|
8
8
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,12 +31,13 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
34
|
-
"@atlaskit/icon": "^22.
|
|
34
|
+
"@atlaskit/icon": "^22.3.0",
|
|
35
35
|
"@atlaskit/menu": "^2.3.0",
|
|
36
36
|
"@atlaskit/motion": "^1.6.0",
|
|
37
|
-
"@atlaskit/
|
|
37
|
+
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
38
|
+
"@atlaskit/primitives": "^6.4.0",
|
|
38
39
|
"@atlaskit/theme": "^12.8.0",
|
|
39
|
-
"@atlaskit/tokens": "^1.
|
|
40
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
40
41
|
"@babel/runtime": "^7.0.0",
|
|
41
42
|
"@emotion/react": "^11.7.1"
|
|
42
43
|
},
|
|
@@ -48,7 +49,6 @@
|
|
|
48
49
|
"@af/integration-testing": "*",
|
|
49
50
|
"@af/visual-regression": "*",
|
|
50
51
|
"@atlaskit/visual-regression": "*",
|
|
51
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
52
52
|
"@atlassian/feature-flags-test-utils": "*",
|
|
53
53
|
"@testing-library/react": "^12.1.5",
|
|
54
54
|
"@types/jest-axe": "^3.5.5",
|
|
@@ -90,5 +90,9 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"homepage": "https://atlassian.design/components/side-navigation/",
|
|
93
|
-
"
|
|
93
|
+
"platform-feature-flags": {
|
|
94
|
+
"platform.design-system-team.side-navigation-tokenised-typography-styles": {
|
|
95
|
+
"type": "boolean"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
94
98
|
}
|