@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.
Files changed (55) hide show
  1. package/CHANGELOG.md +654 -640
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-jira/tsconfig.json +43 -0
  4. package/codemods/0.8.0-change-css-fn-prop.tsx +9 -8
  5. package/codemods/helpers/generic.tsx +12 -11
  6. package/constellation/index/props.mdx +17 -12
  7. package/dist/cjs/common/styles.js +2 -2
  8. package/dist/cjs/components/Footer/index.js +3 -3
  9. package/dist/cjs/components/Header/index.js +10 -5
  10. package/dist/cjs/components/Item/skeleton-item.js +2 -2
  11. package/dist/cjs/components/NavigationHeader/index.js +1 -1
  12. package/dist/es2019/common/styles.js +2 -2
  13. package/dist/es2019/components/Footer/index.js +3 -3
  14. package/dist/es2019/components/Header/index.js +8 -4
  15. package/dist/es2019/components/Item/skeleton-item.js +2 -2
  16. package/dist/es2019/components/NavigationHeader/index.js +1 -1
  17. package/dist/esm/common/styles.js +2 -2
  18. package/dist/esm/components/Footer/index.js +3 -3
  19. package/dist/esm/components/Header/index.js +10 -5
  20. package/dist/esm/components/Item/skeleton-item.js +2 -2
  21. package/dist/esm/components/NavigationHeader/index.js +1 -1
  22. package/dist/types/common/styles.d.ts +1 -1
  23. package/dist/types/components/Header/index.d.ts +1 -1
  24. package/dist/types/components/Item/button-item.d.ts +1 -1
  25. package/dist/types/components/Item/custom-item.d.ts +1 -1
  26. package/dist/types/components/Item/link-item.d.ts +1 -1
  27. package/dist/types/components/Item/skeleton-item.d.ts +1 -1
  28. package/dist/types/components/NavigationContent/index.d.ts +1 -1
  29. package/dist/types/components/NavigationFooter/index.d.ts +1 -1
  30. package/dist/types/components/NestableNavigationContent/context.d.ts +1 -1
  31. package/dist/types/components/NestableNavigationContent/nesting-motion.d.ts +2 -2
  32. package/dist/types/components/NestingItem/hack-for-ert.d.ts +1 -1
  33. package/dist/types/components/NestingItem/index.d.ts +1 -1
  34. package/dist/types/components/NestingItem/styles.d.ts +1 -1
  35. package/dist/types/components/Section/heading-item.d.ts +1 -1
  36. package/dist/types/components/Section/skeleton-heading-item.d.ts +1 -1
  37. package/dist/types/components/utils/hooks.d.ts +1 -1
  38. package/dist/types-ts4.5/common/styles.d.ts +1 -1
  39. package/dist/types-ts4.5/components/Header/index.d.ts +1 -1
  40. package/dist/types-ts4.5/components/Item/button-item.d.ts +1 -1
  41. package/dist/types-ts4.5/components/Item/custom-item.d.ts +1 -1
  42. package/dist/types-ts4.5/components/Item/link-item.d.ts +1 -1
  43. package/dist/types-ts4.5/components/Item/skeleton-item.d.ts +1 -1
  44. package/dist/types-ts4.5/components/NavigationContent/index.d.ts +1 -1
  45. package/dist/types-ts4.5/components/NavigationFooter/index.d.ts +1 -1
  46. package/dist/types-ts4.5/components/NestableNavigationContent/context.d.ts +1 -1
  47. package/dist/types-ts4.5/components/NestableNavigationContent/nesting-motion.d.ts +2 -2
  48. package/dist/types-ts4.5/components/NestingItem/hack-for-ert.d.ts +1 -1
  49. package/dist/types-ts4.5/components/NestingItem/index.d.ts +1 -1
  50. package/dist/types-ts4.5/components/NestingItem/styles.d.ts +1 -1
  51. package/dist/types-ts4.5/components/Section/heading-item.d.ts +1 -1
  52. package/dist/types-ts4.5/components/Section/skeleton-heading-item.d.ts +1 -1
  53. package/dist/types-ts4.5/components/utils/hooks.d.ts +1 -1
  54. package/docs/ert/footer.tsx +1 -1
  55. 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 { CSSFn } from '@atlaskit/menu';
1
+ import { type CSSFn } from '@atlaskit/menu';
2
2
  export declare const enabledCSS: {
3
3
  "&:hover [data-custom-icon]": {
4
4
  display: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { HeadingItemProps } from '@atlaskit/menu';
2
+ import { type HeadingItemProps } from '@atlaskit/menu';
3
3
  export type { HeadingItemProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Heading item__
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SkeletonHeadingItemProps } from '@atlaskit/menu';
2
+ import { type SkeletonHeadingItemProps } from '@atlaskit/menu';
3
3
  export type { SkeletonHeadingItemProps } from '@atlaskit/menu';
4
4
  /**
5
5
  * __Skeleton heading item__
@@ -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
  };
@@ -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.1.2",
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.2.0",
34
+ "@atlaskit/icon": "^22.3.0",
35
35
  "@atlaskit/menu": "^2.3.0",
36
36
  "@atlaskit/motion": "^1.6.0",
37
- "@atlaskit/primitives": "^6.2.0",
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.48.0",
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
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
93
+ "platform-feature-flags": {
94
+ "platform.design-system-team.side-navigation-tokenised-typography-styles": {
95
+ "type": "boolean"
96
+ }
97
+ }
94
98
  }