@atlaskit/help-layout 6.3.9 → 6.3.11

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 (34) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/afm-volt/tsconfig.json +7 -1
  3. package/analytics/package.json +1 -1
  4. package/dist/cjs/analytics.js +1 -1
  5. package/dist/cjs/components/Header/BackButton.js +1 -1
  6. package/dist/cjs/components/Header/CloseButton.js +1 -1
  7. package/dist/es2019/analytics.js +1 -1
  8. package/dist/es2019/components/Header/BackButton.js +1 -1
  9. package/dist/es2019/components/Header/CloseButton.js +1 -1
  10. package/dist/esm/analytics.js +1 -1
  11. package/dist/esm/components/Header/BackButton.js +1 -1
  12. package/dist/esm/components/Header/CloseButton.js +1 -1
  13. package/dist/types/analytics.d.ts +3 -4
  14. package/dist/types/components/DynamicHeader/NewChatButton.d.ts +1 -2
  15. package/dist/types/components/DynamicHeader/index.d.ts +0 -1
  16. package/dist/types/components/Header/BackButton.d.ts +1 -1
  17. package/dist/types/components/Header/CloseButton.d.ts +1 -1
  18. package/dist/types/components/Header/styled.d.ts +2 -2
  19. package/dist/types/components/MessagesIntlProvider.d.ts +1 -1
  20. package/dist/types/components/SideNav/index.d.ts +0 -1
  21. package/dist/types/components/styled.d.ts +2 -2
  22. package/dist/types/model/HelpLayout.d.ts +13 -14
  23. package/dist/types-ts4.5/analytics.d.ts +3 -4
  24. package/dist/types-ts4.5/components/DynamicHeader/NewChatButton.d.ts +1 -2
  25. package/dist/types-ts4.5/components/DynamicHeader/index.d.ts +0 -1
  26. package/dist/types-ts4.5/components/Header/BackButton.d.ts +1 -1
  27. package/dist/types-ts4.5/components/Header/CloseButton.d.ts +1 -1
  28. package/dist/types-ts4.5/components/Header/styled.d.ts +2 -2
  29. package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +1 -1
  30. package/dist/types-ts4.5/components/SideNav/index.d.ts +0 -1
  31. package/dist/types-ts4.5/components/styled.d.ts +2 -2
  32. package/dist/types-ts4.5/model/HelpLayout.d.ts +13 -14
  33. package/messages/package.json +1 -1
  34. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/help-layout
2
2
 
3
+ ## 6.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bc7821de4d118`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc7821de4d118) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+
10
+ ## 6.3.10
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 6.3.9
4
17
 
5
18
  ### Patch Changes
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/analytics.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/analytics.d.ts"
14
14
  ]
@@ -13,5 +13,5 @@ var createAndFire = exports.createAndFire = x.createAndFireEvent('atlaskit');
13
13
  var defaultAnalyticsAttributes = exports.defaultAnalyticsAttributes = {
14
14
  componentName: 'helpPanel',
15
15
  packageName: "@atlaskit/help-layout",
16
- packageVersion: "6.3.8"
16
+ packageVersion: "6.3.10"
17
17
  };
@@ -56,7 +56,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
56
56
  data: {
57
57
  componentName: 'backButton',
58
58
  packageName: "@atlaskit/help-layout",
59
- packageVersion: "6.3.8"
59
+ packageVersion: "6.3.10"
60
60
  }
61
61
  }, /*#__PURE__*/_react.default.createElement(BackButton, props));
62
62
  };
@@ -55,7 +55,7 @@ var CloseButtonWithContext = function CloseButtonWithContext(props) {
55
55
  data: {
56
56
  componentName: 'closeButton',
57
57
  packageName: "@atlaskit/help-layout",
58
- packageVersion: "6.3.8"
58
+ packageVersion: "6.3.10"
59
59
  }
60
60
  }, /*#__PURE__*/_react.default.createElement(CloseButton, props));
61
61
  };
@@ -5,5 +5,5 @@ export const createAndFire = x.createAndFireEvent('atlaskit');
5
5
  export const defaultAnalyticsAttributes = {
6
6
  componentName: 'helpPanel',
7
7
  packageName: "@atlaskit/help-layout",
8
- packageVersion: "6.3.8"
8
+ packageVersion: "6.3.10"
9
9
  };
@@ -50,7 +50,7 @@ const BackButtonWithContext = props => {
50
50
  data: {
51
51
  componentName: 'backButton',
52
52
  packageName: "@atlaskit/help-layout",
53
- packageVersion: "6.3.8"
53
+ packageVersion: "6.3.10"
54
54
  }
55
55
  }, /*#__PURE__*/React.createElement(BackButton, props));
56
56
  };
@@ -51,7 +51,7 @@ const CloseButtonWithContext = props => {
51
51
  data: {
52
52
  componentName: 'closeButton',
53
53
  packageName: "@atlaskit/help-layout",
54
- packageVersion: "6.3.8"
54
+ packageVersion: "6.3.10"
55
55
  }
56
56
  }, /*#__PURE__*/React.createElement(CloseButton, props));
57
57
  };
@@ -5,5 +5,5 @@ export var createAndFire = x.createAndFireEvent('atlaskit');
5
5
  export var defaultAnalyticsAttributes = {
6
6
  componentName: 'helpPanel',
7
7
  packageName: "@atlaskit/help-layout",
8
- packageVersion: "6.3.8"
8
+ packageVersion: "6.3.10"
9
9
  };
@@ -49,7 +49,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
49
49
  data: {
50
50
  componentName: 'backButton',
51
51
  packageName: "@atlaskit/help-layout",
52
- packageVersion: "6.3.8"
52
+ packageVersion: "6.3.10"
53
53
  }
54
54
  }, /*#__PURE__*/React.createElement(BackButton, props));
55
55
  };
@@ -48,7 +48,7 @@ var CloseButtonWithContext = function CloseButtonWithContext(props) {
48
48
  data: {
49
49
  componentName: 'closeButton',
50
50
  packageName: "@atlaskit/help-layout",
51
- packageVersion: "6.3.8"
51
+ packageVersion: "6.3.10"
52
52
  }
53
53
  }, /*#__PURE__*/React.createElement(CloseButton, props));
54
54
  };
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import * as x from '@atlaskit/analytics-next';
3
- export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap | undefined) => <Props, Component>(WrappedComponent: import("react").ComponentType<x.WithAnalyticsEventsProps & Props> & Component) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof x.WithAnalyticsEventsProps>>> & import("react").RefAttributes<any>>;
4
- export declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: import("react").ComponentType<Props> & Component) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & x.WithContextProps>> & import("react").RefAttributes<any>>;
5
- export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
2
+ export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap) => <Props, Component>(WrappedComponent: React.ComponentType<x.WithAnalyticsEventsProps & Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof x.WithAnalyticsEventsProps>>> & React.RefAttributes<any>>;
3
+ export declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.ComponentType<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & x.WithContextProps>> & React.RefAttributes<any>>;
4
+ export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
6
5
  export declare const defaultAnalyticsAttributes: {
7
6
  componentName: string;
8
7
  packageName: string;
@@ -2,11 +2,10 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /// <reference types="react" />
6
5
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
7
6
  interface Props {
8
- onClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
9
7
  isDisabled?: boolean;
8
+ onClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
10
9
  }
11
10
  export declare const NewChatButton: ({ onClick, isDisabled }: Props) => JSX.Element;
12
11
  export {};
@@ -2,6 +2,5 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /// <reference types="react" />
6
5
  import { type HeaderContent } from '../../model/HelpLayout';
7
6
  export declare const DynamicHeader: ({ title, onCloseButtonClick, onNewChatButtonClick, newChatButtonDisabled, onGoBackToHistoryList, isBackButtonVisible, }: HeaderContent) => JSX.Element;
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
- onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
6
5
  isVisible?: boolean;
6
+ onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const BackButton: React.FC<Props & WrappedComponentProps>;
9
9
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
- onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
6
5
  inDynamicHeader?: boolean;
6
+ onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  /**
9
9
  * This function will return a CloseButton component only if the function
@@ -8,13 +8,13 @@ export declare const HeaderContainer: ({ children }: {
8
8
  children: React.ReactNode;
9
9
  }) => JSX.Element;
10
10
  export declare const CloseButtonContainer: ({ inDynamicHeader, children, }: {
11
- inDynamicHeader: boolean;
12
11
  children: React.ReactNode;
12
+ inDynamicHeader: boolean;
13
13
  }) => JSX.Element;
14
14
  export declare const TRANSITION_DURATION_MS = 220;
15
15
  export declare const BackButtonContainer: ({ transitionState, children, }: {
16
- transitionState: TransitionStatus;
17
16
  children: React.ReactNode;
17
+ transitionState: TransitionStatus;
18
18
  }) => JSX.Element;
19
19
  export declare const HeaderTitle: ({ children }: {
20
20
  children: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
- locale?: string;
5
4
  children: React.ReactNode;
5
+ locale?: string;
6
6
  }
7
7
  export declare const MessagesIntlProvider: React.FC<Props & WrappedComponentProps>;
8
8
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
@@ -2,7 +2,6 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /// <reference types="react" />
6
5
  import { type SideNavTab } from '../../model/HelpLayout';
7
6
  interface SideNavProps {
8
7
  sideNavTabs: SideNavTab[];
@@ -10,15 +10,15 @@ export declare const Section: ({ children }: {
10
10
  children: React.ReactNode;
11
11
  }) => JSX.Element;
12
12
  export declare const HelpFooter: ({ dataTestId, children, }: {
13
- dataTestId: string;
14
13
  children: React.ReactNode;
14
+ dataTestId: string;
15
15
  }) => JSX.Element;
16
16
  export declare const LoadingContainer: ({ children, ...rest }: {
17
17
  children: React.ReactNode;
18
18
  } & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
19
19
  type LoadingRectangleProps = {
20
- contentWidth?: string;
21
20
  contentHeight?: string;
21
+ contentWidth?: string;
22
22
  marginTop?: string;
23
23
  };
24
24
  export declare const LoadingRectangle: ({ contentWidth, contentHeight, marginTop, }: LoadingRectangleProps) => JSX.Element;
@@ -1,32 +1,31 @@
1
- /// <reference types="react" />
2
1
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
2
  export interface HelpPanelHeader {
4
- headerTitle?: string;
5
3
  headerContent?: React.ReactNode;
6
- onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
7
- onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
8
- isBackbuttonVisible?: boolean;
4
+ headerTitle?: string;
9
5
  isAiEnabled?: boolean;
6
+ isBackbuttonVisible?: boolean;
7
+ onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
8
+ onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
10
9
  }
11
10
  export interface HeaderContent {
12
- title: string;
13
- onNewChatButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
14
- onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
11
+ isBackButtonVisible?: boolean;
15
12
  newChatButtonDisabled?: boolean;
13
+ onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
16
14
  onGoBackToHistoryList?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
17
- isBackButtonVisible?: boolean;
15
+ onNewChatButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
16
+ title: string;
18
17
  }
19
18
  export interface SideNavTab {
19
+ contentRender: () => React.ReactNode;
20
+ header: HeaderContent;
20
21
  icon: React.ReactNode;
21
22
  label: string;
22
- contentRender: () => React.ReactNode;
23
23
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
24
- header: HeaderContent;
25
24
  }
26
25
  export interface HelpLayout extends HelpPanelHeader {
27
- isLoading?: boolean;
28
- footer?: React.ReactNode;
29
26
  children?: React.ReactNode;
30
- sideNavTabs?: SideNavTab[];
27
+ footer?: React.ReactNode;
28
+ isLoading?: boolean;
31
29
  onLoad?: () => void;
30
+ sideNavTabs?: SideNavTab[];
32
31
  }
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import * as x from '@atlaskit/analytics-next';
3
- export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap | undefined) => <Props, Component>(WrappedComponent: import("react").ComponentType<x.WithAnalyticsEventsProps & Props> & Component) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof x.WithAnalyticsEventsProps>>> & import("react").RefAttributes<any>>;
4
- export declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: import("react").ComponentType<Props> & Component) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & x.WithContextProps>> & import("react").RefAttributes<any>>;
5
- export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
2
+ export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap) => <Props, Component>(WrappedComponent: React.ComponentType<x.WithAnalyticsEventsProps & Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof x.WithAnalyticsEventsProps>>> & React.RefAttributes<any>>;
3
+ export declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.ComponentType<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & x.WithContextProps>> & React.RefAttributes<any>>;
4
+ export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
6
5
  export declare const defaultAnalyticsAttributes: {
7
6
  componentName: string;
8
7
  packageName: string;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
5
4
  */
6
5
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
7
6
  interface Props {
8
- onClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
9
7
  isDisabled?: boolean;
8
+ onClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
10
9
  }
11
10
  export declare const NewChatButton: ({ onClick, isDisabled }: Props) => JSX.Element;
12
11
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
- onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
6
5
  isVisible?: boolean;
6
+ onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const BackButton: React.FC<Props & WrappedComponentProps>;
9
9
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
- onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
6
5
  inDynamicHeader?: boolean;
6
+ onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  /**
9
9
  * This function will return a CloseButton component only if the function
@@ -8,13 +8,13 @@ export declare const HeaderContainer: ({ children }: {
8
8
  children: React.ReactNode;
9
9
  }) => JSX.Element;
10
10
  export declare const CloseButtonContainer: ({ inDynamicHeader, children, }: {
11
- inDynamicHeader: boolean;
12
11
  children: React.ReactNode;
12
+ inDynamicHeader: boolean;
13
13
  }) => JSX.Element;
14
14
  export declare const TRANSITION_DURATION_MS = 220;
15
15
  export declare const BackButtonContainer: ({ transitionState, children, }: {
16
- transitionState: TransitionStatus;
17
16
  children: React.ReactNode;
17
+ transitionState: TransitionStatus;
18
18
  }) => JSX.Element;
19
19
  export declare const HeaderTitle: ({ children }: {
20
20
  children: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
- locale?: string;
5
4
  children: React.ReactNode;
5
+ locale?: string;
6
6
  }
7
7
  export declare const MessagesIntlProvider: React.FC<Props & WrappedComponentProps>;
8
8
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -10,15 +10,15 @@ export declare const Section: ({ children }: {
10
10
  children: React.ReactNode;
11
11
  }) => JSX.Element;
12
12
  export declare const HelpFooter: ({ dataTestId, children, }: {
13
- dataTestId: string;
14
13
  children: React.ReactNode;
14
+ dataTestId: string;
15
15
  }) => JSX.Element;
16
16
  export declare const LoadingContainer: ({ children, ...rest }: {
17
17
  children: React.ReactNode;
18
18
  } & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
19
19
  type LoadingRectangleProps = {
20
- contentWidth?: string;
21
20
  contentHeight?: string;
21
+ contentWidth?: string;
22
22
  marginTop?: string;
23
23
  };
24
24
  export declare const LoadingRectangle: ({ contentWidth, contentHeight, marginTop, }: LoadingRectangleProps) => JSX.Element;
@@ -1,32 +1,31 @@
1
- /// <reference types="react" />
2
1
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
2
  export interface HelpPanelHeader {
4
- headerTitle?: string;
5
3
  headerContent?: React.ReactNode;
6
- onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
7
- onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
8
- isBackbuttonVisible?: boolean;
4
+ headerTitle?: string;
9
5
  isAiEnabled?: boolean;
6
+ isBackbuttonVisible?: boolean;
7
+ onBackButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
8
+ onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
10
9
  }
11
10
  export interface HeaderContent {
12
- title: string;
13
- onNewChatButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
14
- onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
11
+ isBackButtonVisible?: boolean;
15
12
  newChatButtonDisabled?: boolean;
13
+ onCloseButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
16
14
  onGoBackToHistoryList?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
17
- isBackButtonVisible?: boolean;
15
+ onNewChatButtonClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
16
+ title: string;
18
17
  }
19
18
  export interface SideNavTab {
19
+ contentRender: () => React.ReactNode;
20
+ header: HeaderContent;
20
21
  icon: React.ReactNode;
21
22
  label: string;
22
- contentRender: () => React.ReactNode;
23
23
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
24
- header: HeaderContent;
25
24
  }
26
25
  export interface HelpLayout extends HelpPanelHeader {
27
- isLoading?: boolean;
28
- footer?: React.ReactNode;
29
26
  children?: React.ReactNode;
30
- sideNavTabs?: SideNavTab[];
27
+ footer?: React.ReactNode;
28
+ isLoading?: boolean;
31
29
  onLoad?: () => void;
30
+ sideNavTabs?: SideNavTab[];
32
31
  }
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/messages.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/messages.d.ts"
14
14
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help-layout",
3
- "version": "6.3.9",
3
+ "version": "6.3.11",
4
4
  "description": "Layout for the atlaskit/help component.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/analytics-next": "^11.1.0",
35
- "@atlaskit/button": "^23.3.0",
35
+ "@atlaskit/button": "^23.4.0",
36
36
  "@atlaskit/css": "^0.12.0",
37
37
  "@atlaskit/heading": "^5.2.0",
38
- "@atlaskit/icon": "^27.10.0",
38
+ "@atlaskit/icon": "^28.0.0",
39
39
  "@atlaskit/primitives": "^14.11.0",
40
40
  "@atlaskit/theme": "^19.0.0",
41
41
  "@atlaskit/tokens": "^6.0.0",