@atlaskit/help-layout 6.3.21 → 6.3.22

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 (45) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/afm-products/tsconfig.json +54 -0
  3. package/dist/cjs/analytics.js +1 -1
  4. package/dist/cjs/components/Header/BackButton.js +3 -2
  5. package/dist/cjs/components/Header/CloseButton.js +3 -2
  6. package/dist/cjs/components/Header/index.js +2 -1
  7. package/dist/cjs/components/HelpLayout.js +2 -1
  8. package/dist/cjs/components/HelpLayoutContent.js +2 -1
  9. package/dist/cjs/components/MessagesIntlProvider.js +2 -1
  10. package/dist/es2019/analytics.js +1 -1
  11. package/dist/es2019/components/Header/BackButton.js +3 -2
  12. package/dist/es2019/components/Header/CloseButton.js +3 -2
  13. package/dist/es2019/components/Header/index.js +2 -1
  14. package/dist/es2019/components/HelpLayout.js +2 -1
  15. package/dist/es2019/components/HelpLayoutContent.js +2 -1
  16. package/dist/es2019/components/MessagesIntlProvider.js +2 -1
  17. package/dist/esm/analytics.js +1 -1
  18. package/dist/esm/components/Header/BackButton.js +3 -2
  19. package/dist/esm/components/Header/CloseButton.js +3 -2
  20. package/dist/esm/components/Header/index.js +2 -1
  21. package/dist/esm/components/HelpLayout.js +2 -1
  22. package/dist/esm/components/HelpLayoutContent.js +2 -1
  23. package/dist/esm/components/MessagesIntlProvider.js +2 -1
  24. package/dist/types/analytics.d.ts +7 -5
  25. package/dist/types/components/Header/BackButton.d.ts +3 -3
  26. package/dist/types/components/Header/CloseButton.d.ts +3 -3
  27. package/dist/types/components/Header/index.d.ts +3 -3
  28. package/dist/types/components/HelpLayout.d.ts +3 -3
  29. package/dist/types/components/HelpLayoutContent.d.ts +3 -3
  30. package/dist/types/components/MessagesIntlProvider.d.ts +3 -3
  31. package/dist/types/messages.d.ts +8 -8
  32. package/dist/types-ts4.5/analytics.d.ts +7 -5
  33. package/dist/types-ts4.5/components/Header/BackButton.d.ts +3 -3
  34. package/dist/types-ts4.5/components/Header/CloseButton.d.ts +3 -3
  35. package/dist/types-ts4.5/components/Header/index.d.ts +3 -3
  36. package/dist/types-ts4.5/components/HelpLayout.d.ts +3 -3
  37. package/dist/types-ts4.5/components/HelpLayoutContent.d.ts +3 -3
  38. package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +3 -3
  39. package/dist/types-ts4.5/messages.d.ts +8 -8
  40. package/docs/0-intro.tsx +2 -1
  41. package/package.json +5 -5
  42. package/afm-adminhub/tsconfig.json +0 -54
  43. package/afm-post-office/tsconfig.json +0 -54
  44. package/afm-townsquare/tsconfig.json +0 -54
  45. package/afm-volt/tsconfig.json +0 -54
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/help-layout
2
2
 
3
+ ## 6.3.22
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 6.3.21
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,54 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.products.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__help-layout/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
24
+ ],
25
+ "references": [
26
+ {
27
+ "path": "../../../analytics/analytics-next/afm-products/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../../design-system/button/afm-products/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/css/afm-products/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../../design-system/heading/afm-products/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../../design-system/icon/afm-products/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../../design-system/primitives/afm-products/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../../design-system/theme/afm-products/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../../design-system/tokens/afm-products/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../../../design-system/tooltip/afm-products/tsconfig.json"
52
+ }
53
+ ]
54
+ }
@@ -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.20"
16
+ packageVersion: "6.3.21"
17
17
  };
@@ -56,8 +56,9 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
56
56
  data: {
57
57
  componentName: 'backButton',
58
58
  packageName: "@atlaskit/help-layout",
59
- packageVersion: "6.3.20"
59
+ packageVersion: "6.3.21"
60
60
  }
61
61
  }, /*#__PURE__*/_react.default.createElement(BackButton, props));
62
62
  };
63
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(BackButtonWithContext);
63
+ var _default_1 = (0, _reactIntlNext.injectIntl)(BackButtonWithContext);
64
+ var _default = exports.default = _default_1;
@@ -55,8 +55,9 @@ var CloseButtonWithContext = function CloseButtonWithContext(props) {
55
55
  data: {
56
56
  componentName: 'closeButton',
57
57
  packageName: "@atlaskit/help-layout",
58
- packageVersion: "6.3.20"
58
+ packageVersion: "6.3.21"
59
59
  }
60
60
  }, /*#__PURE__*/_react.default.createElement(CloseButton, props));
61
61
  };
62
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(CloseButtonWithContext);
62
+ var _default_1 = (0, _reactIntlNext.injectIntl)(CloseButtonWithContext);
63
+ var _default = exports.default = _default_1;
@@ -31,4 +31,5 @@ var HelpContent = exports.HelpContent = function HelpContent(_ref) {
31
31
  onClick: onCloseButtonClick
32
32
  }), headerContent && /*#__PURE__*/_react.default.createElement(_styled.HeaderContent, null, headerContent));
33
33
  };
34
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(HelpContent);
34
+ var _default_1 = (0, _reactIntlNext.injectIntl)(HelpContent);
35
+ var _default = exports.default = _default_1;
@@ -30,4 +30,5 @@ var HelpLayout = exports.HelpLayout = /*#__PURE__*/function (_React$PureComponen
30
30
  }
31
31
  }]);
32
32
  }(_react.default.PureComponent);
33
- var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)(_analytics.defaultAnalyticsAttributes)((0, _analyticsNext.withAnalyticsEvents)()(HelpLayout));
33
+ var _default_1 = (0, _analyticsNext.withAnalyticsContext)(_analytics.defaultAnalyticsAttributes)((0, _analyticsNext.withAnalyticsEvents)()(HelpLayout));
34
+ var _default = exports.default = _default_1;
@@ -61,4 +61,5 @@ var HelpContent = exports.HelpContent = function HelpContent(props) {
61
61
  dataTestId: "footer"
62
62
  }, footer) : null));
63
63
  };
64
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(HelpContent);
64
+ var _default_1 = (0, _reactIntlNext.injectIntl)(HelpContent);
65
+ var _default = exports.default = _default_1;
@@ -16,4 +16,5 @@ var MessagesIntlProvider = exports.MessagesIntlProvider = function MessagesIntlP
16
16
  locale: locale
17
17
  }, children);
18
18
  };
19
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(MessagesIntlProvider);
19
+ var _default_1 = (0, _reactIntlNext.injectIntl)(MessagesIntlProvider);
20
+ var _default = exports.default = _default_1;
@@ -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.20"
8
+ packageVersion: "6.3.21"
9
9
  };
@@ -50,8 +50,9 @@ const BackButtonWithContext = props => {
50
50
  data: {
51
51
  componentName: 'backButton',
52
52
  packageName: "@atlaskit/help-layout",
53
- packageVersion: "6.3.20"
53
+ packageVersion: "6.3.21"
54
54
  }
55
55
  }, /*#__PURE__*/React.createElement(BackButton, props));
56
56
  };
57
- export default injectIntl(BackButtonWithContext);
57
+ const _default_1 = injectIntl(BackButtonWithContext);
58
+ export default _default_1;
@@ -51,8 +51,9 @@ const CloseButtonWithContext = props => {
51
51
  data: {
52
52
  componentName: 'closeButton',
53
53
  packageName: "@atlaskit/help-layout",
54
- packageVersion: "6.3.20"
54
+ packageVersion: "6.3.21"
55
55
  }
56
56
  }, /*#__PURE__*/React.createElement(CloseButton, props));
57
57
  };
58
- export default injectIntl(CloseButtonWithContext);
58
+ const _default_1 = injectIntl(CloseButtonWithContext);
59
+ export default _default_1;
@@ -26,4 +26,5 @@ export const HelpContent = ({
26
26
  onClick: onCloseButtonClick
27
27
  }), headerContent && /*#__PURE__*/React.createElement(HeaderContent, null, headerContent));
28
28
  };
29
- export default injectIntl(HelpContent);
29
+ const _default_1 = injectIntl(HelpContent);
30
+ export default _default_1;
@@ -8,4 +8,5 @@ export class HelpLayout extends React.PureComponent {
8
8
  return /*#__PURE__*/React.createElement(MessagesIntlProvider, null, /*#__PURE__*/React.createElement(HelpContent, this.props));
9
9
  }
10
10
  }
11
- export default withAnalyticsContext(defaultAnalyticsAttributes)(withAnalyticsEvents()(HelpLayout));
11
+ const _default_1 = withAnalyticsContext(defaultAnalyticsAttributes)(withAnalyticsEvents()(HelpLayout));
12
+ export default _default_1;
@@ -52,4 +52,5 @@ export const HelpContent = props => {
52
52
  dataTestId: "footer"
53
53
  }, footer) : null));
54
54
  };
55
- export default injectIntl(HelpContent);
55
+ const _default_1 = injectIntl(HelpContent);
56
+ export default _default_1;
@@ -7,4 +7,5 @@ export const MessagesIntlProvider = ({
7
7
  key: locale,
8
8
  locale: locale
9
9
  }, children);
10
- export default injectIntl(MessagesIntlProvider);
10
+ const _default_1 = injectIntl(MessagesIntlProvider);
11
+ export default _default_1;
@@ -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.20"
8
+ packageVersion: "6.3.21"
9
9
  };
@@ -49,8 +49,9 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
49
49
  data: {
50
50
  componentName: 'backButton',
51
51
  packageName: "@atlaskit/help-layout",
52
- packageVersion: "6.3.20"
52
+ packageVersion: "6.3.21"
53
53
  }
54
54
  }, /*#__PURE__*/React.createElement(BackButton, props));
55
55
  };
56
- export default injectIntl(BackButtonWithContext);
56
+ var _default_1 = injectIntl(BackButtonWithContext);
57
+ export default _default_1;
@@ -48,8 +48,9 @@ var CloseButtonWithContext = function CloseButtonWithContext(props) {
48
48
  data: {
49
49
  componentName: 'closeButton',
50
50
  packageName: "@atlaskit/help-layout",
51
- packageVersion: "6.3.20"
51
+ packageVersion: "6.3.21"
52
52
  }
53
53
  }, /*#__PURE__*/React.createElement(CloseButton, props));
54
54
  };
55
- export default injectIntl(CloseButtonWithContext);
55
+ var _default_1 = injectIntl(CloseButtonWithContext);
56
+ export default _default_1;
@@ -24,4 +24,5 @@ export var HelpContent = function HelpContent(_ref) {
24
24
  onClick: onCloseButtonClick
25
25
  }), headerContent && /*#__PURE__*/React.createElement(HeaderContent, null, headerContent));
26
26
  };
27
- export default injectIntl(HelpContent);
27
+ var _default_1 = injectIntl(HelpContent);
28
+ export default _default_1;
@@ -23,4 +23,5 @@ export var HelpLayout = /*#__PURE__*/function (_React$PureComponent) {
23
23
  }
24
24
  }]);
25
25
  }(React.PureComponent);
26
- export default withAnalyticsContext(defaultAnalyticsAttributes)(withAnalyticsEvents()(HelpLayout));
26
+ var _default_1 = withAnalyticsContext(defaultAnalyticsAttributes)(withAnalyticsEvents()(HelpLayout));
27
+ export default _default_1;
@@ -52,4 +52,5 @@ export var HelpContent = function HelpContent(props) {
52
52
  dataTestId: "footer"
53
53
  }, footer) : null));
54
54
  };
55
- export default injectIntl(HelpContent);
55
+ var _default_1 = injectIntl(HelpContent);
56
+ export default _default_1;
@@ -9,4 +9,5 @@ export var MessagesIntlProvider = function MessagesIntlProvider(_ref) {
9
9
  locale: locale
10
10
  }, children);
11
11
  };
12
- export default injectIntl(MessagesIntlProvider);
12
+ var _default_1 = injectIntl(MessagesIntlProvider);
13
+ export default _default_1;
@@ -1,9 +1,11 @@
1
1
  import * as x from '@atlaskit/analytics-next';
2
- export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap) => <Props, Component>(WrappedComponent: (React.ComponentType<x.WithAnalyticsEventsProps & Props> | React.ForwardRefExoticComponent<Omit<x.WithAnalyticsEventsProps, "ref"> & 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;
2
+ import type { CreateEventMap } from '@atlaskit/analytics-next/types';
3
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
4
+ export declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props, Component>(WrappedComponent: (React.ComponentType<x.WithAnalyticsEventsProps & Props> | React.ForwardRefExoticComponent<Omit<x.WithAnalyticsEventsProps, 'ref'> & Props>) & Component) => ForwardRefExoticComponent<PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof x.WithAnalyticsEventsProps>>> & RefAttributes<any>>;
5
+ export declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.ComponentType<Props> & Component) => ForwardRefExoticComponent<PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & x.WithContextProps>> & RefAttributes<any>>;
6
+ export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
5
7
  export declare const defaultAnalyticsAttributes: {
6
8
  componentName: string;
7
- packageName: string;
8
- packageVersion: string;
9
+ packageName: string | undefined;
10
+ packageVersion: string | undefined;
9
11
  };
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
5
  isVisible?: boolean;
6
6
  onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const BackButton: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
10
10
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
- export default _default;
12
+ export default _default_1;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
5
  inDynamicHeader?: boolean;
@@ -12,7 +12,7 @@ interface Props {
12
12
  * @param onClick - Function executed when the close btn is clicked
13
13
  */
14
14
  export declare const CloseButton: React.FC<Props & WrappedComponentProps>;
15
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
15
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
16
16
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
17
17
  };
18
- export default _default;
18
+ export default _default_1;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type HelpPanelHeader } from '../../model/HelpLayout';
4
4
  export declare const HelpContent: React.FC<HelpPanelHeader & WrappedComponentProps>;
5
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<HelpPanelHeader & WrappedComponentProps>> & {
5
+ declare const _default_1: React.FC<WithIntlProps<HelpPanelHeader & WrappedComponentProps>> & {
6
6
  WrappedComponent: React.ComponentType<HelpPanelHeader & WrappedComponentProps>;
7
7
  };
8
- export default _default;
8
+ export default _default_1;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
2
+ import { type WithAnalyticsEventsProps, type WithContextProps } from '@atlaskit/analytics-next';
3
3
  import { type HelpLayout as HelpLayoutProps } from '../model/HelpLayout';
4
4
  export type Props = HelpLayoutProps & WithAnalyticsEventsProps;
5
5
  export declare class HelpLayout extends React.PureComponent<Props> {
6
6
  render(): React.JSX.Element;
7
7
  }
8
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<HelpLayoutProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
9
- export default _default;
8
+ declare const _default_1: React.ForwardRefExoticComponent<Omit<Omit<HelpLayoutProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps, 'ref'> & React.RefAttributes<any>>;
9
+ export default _default_1;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type HelpLayout } from '../model/HelpLayout';
4
4
  export declare const HelpContent: React.FC<HelpLayout & WrappedComponentProps>;
5
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<HelpLayout & WrappedComponentProps>> & {
5
+ declare const _default_1: React.FC<WithIntlProps<HelpLayout & WrappedComponentProps>> & {
6
6
  WrappedComponent: React.ComponentType<HelpLayout & WrappedComponentProps>;
7
7
  };
8
- export default _default;
8
+ export default _default_1;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
4
  children: React.ReactNode;
5
5
  locale?: string;
6
6
  }
7
7
  export declare const MessagesIntlProvider: React.FC<Props & WrappedComponentProps>;
8
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
- export default _default;
11
+ export default _default_1;
@@ -1,32 +1,32 @@
1
1
  export declare const messages: {
2
2
  help_loading: {
3
- id: string;
4
3
  defaultMessage: string;
5
4
  description: string;
6
- };
7
- help_panel_header_title: {
8
5
  id: string;
9
- defaultMessage: string;
10
- description: string;
11
6
  };
12
7
  help_panel_header_back: {
13
- id: string;
14
8
  defaultMessage: string;
15
9
  description: string;
10
+ id: string;
16
11
  };
17
12
  help_panel_header_close: {
18
- id: string;
19
13
  defaultMessage: string;
20
14
  description: string;
15
+ id: string;
21
16
  };
22
17
  help_panel_header_close_button: {
18
+ defaultMessage: string;
19
+ description: string;
23
20
  id: string;
21
+ };
22
+ help_panel_header_title: {
24
23
  defaultMessage: string;
25
24
  description: string;
25
+ id: string;
26
26
  };
27
27
  help_panel_new_chat_button: {
28
- id: string;
29
28
  defaultMessage: string;
30
29
  description: string;
30
+ id: string;
31
31
  };
32
32
  };
@@ -1,9 +1,11 @@
1
1
  import * as x from '@atlaskit/analytics-next';
2
- export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap) => <Props, Component>(WrappedComponent: (React.ComponentType<x.WithAnalyticsEventsProps & Props> | React.ForwardRefExoticComponent<Omit<x.WithAnalyticsEventsProps, "ref"> & 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;
2
+ import type { CreateEventMap } from '@atlaskit/analytics-next/types';
3
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
4
+ export declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props, Component>(WrappedComponent: (React.ComponentType<x.WithAnalyticsEventsProps & Props> | React.ForwardRefExoticComponent<Omit<x.WithAnalyticsEventsProps, 'ref'> & Props>) & Component) => ForwardRefExoticComponent<PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof x.WithAnalyticsEventsProps>>> & RefAttributes<any>>;
5
+ export declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.ComponentType<Props> & Component) => ForwardRefExoticComponent<PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & x.WithContextProps>> & RefAttributes<any>>;
6
+ export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
5
7
  export declare const defaultAnalyticsAttributes: {
6
8
  componentName: string;
7
- packageName: string;
8
- packageVersion: string;
9
+ packageName: string | undefined;
10
+ packageVersion: string | undefined;
9
11
  };
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
5
  isVisible?: boolean;
6
6
  onClick(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
7
7
  }
8
8
  export declare const BackButton: React.FC<Props & WrappedComponentProps>;
9
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
10
10
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
11
11
  };
12
- export default _default;
12
+ export default _default_1;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  interface Props {
5
5
  inDynamicHeader?: boolean;
@@ -12,7 +12,7 @@ interface Props {
12
12
  * @param onClick - Function executed when the close btn is clicked
13
13
  */
14
14
  export declare const CloseButton: React.FC<Props & WrappedComponentProps>;
15
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
15
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
16
16
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
17
17
  };
18
- export default _default;
18
+ export default _default_1;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type HelpPanelHeader } from '../../model/HelpLayout';
4
4
  export declare const HelpContent: React.FC<HelpPanelHeader & WrappedComponentProps>;
5
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<HelpPanelHeader & WrappedComponentProps>> & {
5
+ declare const _default_1: React.FC<WithIntlProps<HelpPanelHeader & WrappedComponentProps>> & {
6
6
  WrappedComponent: React.ComponentType<HelpPanelHeader & WrappedComponentProps>;
7
7
  };
8
- export default _default;
8
+ export default _default_1;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
2
+ import { type WithAnalyticsEventsProps, type WithContextProps } from '@atlaskit/analytics-next';
3
3
  import { type HelpLayout as HelpLayoutProps } from '../model/HelpLayout';
4
4
  export type Props = HelpLayoutProps & WithAnalyticsEventsProps;
5
5
  export declare class HelpLayout extends React.PureComponent<Props> {
6
6
  render(): React.JSX.Element;
7
7
  }
8
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<HelpLayoutProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
9
- export default _default;
8
+ declare const _default_1: React.ForwardRefExoticComponent<Omit<Omit<HelpLayoutProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps, 'ref'> & React.RefAttributes<any>>;
9
+ export default _default_1;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type HelpLayout } from '../model/HelpLayout';
4
4
  export declare const HelpContent: React.FC<HelpLayout & WrappedComponentProps>;
5
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<HelpLayout & WrappedComponentProps>> & {
5
+ declare const _default_1: React.FC<WithIntlProps<HelpLayout & WrappedComponentProps>> & {
6
6
  WrappedComponent: React.ComponentType<HelpLayout & WrappedComponentProps>;
7
7
  };
8
- export default _default;
8
+ export default _default_1;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
4
  children: React.ReactNode;
5
5
  locale?: string;
6
6
  }
7
7
  export declare const MessagesIntlProvider: React.FC<Props & WrappedComponentProps>;
8
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
- export default _default;
11
+ export default _default_1;
@@ -1,32 +1,32 @@
1
1
  export declare const messages: {
2
2
  help_loading: {
3
- id: string;
4
3
  defaultMessage: string;
5
4
  description: string;
6
- };
7
- help_panel_header_title: {
8
5
  id: string;
9
- defaultMessage: string;
10
- description: string;
11
6
  };
12
7
  help_panel_header_back: {
13
- id: string;
14
8
  defaultMessage: string;
15
9
  description: string;
10
+ id: string;
16
11
  };
17
12
  help_panel_header_close: {
18
- id: string;
19
13
  defaultMessage: string;
20
14
  description: string;
15
+ id: string;
21
16
  };
22
17
  help_panel_header_close_button: {
18
+ defaultMessage: string;
19
+ description: string;
23
20
  id: string;
21
+ };
22
+ help_panel_header_title: {
24
23
  defaultMessage: string;
25
24
  description: string;
25
+ id: string;
26
26
  };
27
27
  help_panel_new_chat_button: {
28
- id: string;
29
28
  defaultMessage: string;
30
29
  description: string;
30
+ id: string;
31
31
  };
32
32
  };
package/docs/0-intro.tsx CHANGED
@@ -3,7 +3,7 @@ import { md, code, Props, AtlassianInternalWarning } from '@atlaskit/docs';
3
3
 
4
4
  const helpPanelProps = require('!!extract-react-types-loader!../src/components/HelpLayout');
5
5
 
6
- export default md`
6
+ const _default_1: any = md`
7
7
  ${(<AtlassianInternalWarning />)}
8
8
 
9
9
  ## Usage
@@ -60,3 +60,4 @@ export default Example;
60
60
 
61
61
  ${(<Props props={helpPanelProps} />)}
62
62
  `;
63
+ export default _default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help-layout",
3
- "version": "6.3.21",
3
+ "version": "6.3.22",
4
4
  "description": "Layout for the atlaskit/help component.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/analytics-next": "^11.1.0",
35
- "@atlaskit/button": "^23.5.0",
35
+ "@atlaskit/button": "^23.6.0",
36
36
  "@atlaskit/css": "^0.15.0",
37
37
  "@atlaskit/heading": "^5.2.0",
38
38
  "@atlaskit/icon": "^28.5.0",
39
- "@atlaskit/primitives": "^16.0.0",
39
+ "@atlaskit/primitives": "^16.1.0",
40
40
  "@atlaskit/theme": "^21.0.0",
41
- "@atlaskit/tokens": "^7.0.0",
42
- "@atlaskit/tooltip": "^20.5.0",
41
+ "@atlaskit/tokens": "^8.0.0",
42
+ "@atlaskit/tooltip": "^20.8.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@compiled/react": "^0.18.6",
45
45
  "react-transition-group": "^4.4.1"
@@ -1,54 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.adminhub.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../adminhub/tsDist/@atlaskit__help-layout/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-next/afm-adminhub/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../design-system/button/afm-adminhub/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/css/afm-adminhub/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../design-system/heading/afm-adminhub/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../design-system/icon/afm-adminhub/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../design-system/primitives/afm-adminhub/tsconfig.json"
43
- },
44
- {
45
- "path": "../../../design-system/theme/afm-adminhub/tsconfig.json"
46
- },
47
- {
48
- "path": "../../../design-system/tokens/afm-adminhub/tsconfig.json"
49
- },
50
- {
51
- "path": "../../../design-system/tooltip/afm-adminhub/tsconfig.json"
52
- }
53
- ]
54
- }
@@ -1,54 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.post-office.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../post-office/tsDist/@atlaskit__help-layout/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-next/afm-post-office/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../design-system/button/afm-post-office/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/css/afm-post-office/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../design-system/heading/afm-post-office/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../design-system/icon/afm-post-office/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../design-system/primitives/afm-post-office/tsconfig.json"
43
- },
44
- {
45
- "path": "../../../design-system/theme/afm-post-office/tsconfig.json"
46
- },
47
- {
48
- "path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
49
- },
50
- {
51
- "path": "../../../design-system/tooltip/afm-post-office/tsconfig.json"
52
- }
53
- ]
54
- }
@@ -1,54 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.townsquare.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../townsquare/tsDist/@atlaskit__help-layout/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-next/afm-townsquare/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../design-system/button/afm-townsquare/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/css/afm-townsquare/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../design-system/heading/afm-townsquare/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../design-system/icon/afm-townsquare/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../design-system/primitives/afm-townsquare/tsconfig.json"
43
- },
44
- {
45
- "path": "../../../design-system/theme/afm-townsquare/tsconfig.json"
46
- },
47
- {
48
- "path": "../../../design-system/tokens/afm-townsquare/tsconfig.json"
49
- },
50
- {
51
- "path": "../../../design-system/tooltip/afm-townsquare/tsconfig.json"
52
- }
53
- ]
54
- }
@@ -1,54 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.volt.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../volt/tsDist/@atlaskit__help-layout/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-next/afm-volt/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../design-system/button/afm-volt/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/css/afm-volt/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../design-system/heading/afm-volt/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../design-system/icon/afm-volt/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../design-system/primitives/afm-volt/tsconfig.json"
43
- },
44
- {
45
- "path": "../../../design-system/theme/afm-volt/tsconfig.json"
46
- },
47
- {
48
- "path": "../../../design-system/tokens/afm-volt/tsconfig.json"
49
- },
50
- {
51
- "path": "../../../design-system/tooltip/afm-volt/tsconfig.json"
52
- }
53
- ]
54
- }