@atlaskit/help-layout 6.3.20 → 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.
- package/CHANGELOG.md +12 -0
- package/afm-products/tsconfig.json +54 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Header/BackButton.js +3 -2
- package/dist/cjs/components/Header/CloseButton.js +3 -2
- package/dist/cjs/components/Header/index.js +2 -1
- package/dist/cjs/components/HelpLayout.js +2 -1
- package/dist/cjs/components/HelpLayoutContent.js +2 -1
- package/dist/cjs/components/MessagesIntlProvider.js +2 -1
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Header/BackButton.js +3 -2
- package/dist/es2019/components/Header/CloseButton.js +3 -2
- package/dist/es2019/components/Header/index.js +2 -1
- package/dist/es2019/components/HelpLayout.js +2 -1
- package/dist/es2019/components/HelpLayoutContent.js +2 -1
- package/dist/es2019/components/MessagesIntlProvider.js +2 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/Header/BackButton.js +3 -2
- package/dist/esm/components/Header/CloseButton.js +3 -2
- package/dist/esm/components/Header/index.js +2 -1
- package/dist/esm/components/HelpLayout.js +2 -1
- package/dist/esm/components/HelpLayoutContent.js +2 -1
- package/dist/esm/components/MessagesIntlProvider.js +2 -1
- package/dist/types/analytics.d.ts +7 -5
- package/dist/types/components/Header/BackButton.d.ts +3 -3
- package/dist/types/components/Header/CloseButton.d.ts +3 -3
- package/dist/types/components/Header/index.d.ts +3 -3
- package/dist/types/components/HelpLayout.d.ts +3 -3
- package/dist/types/components/HelpLayoutContent.d.ts +3 -3
- package/dist/types/components/MessagesIntlProvider.d.ts +3 -3
- package/dist/types/messages.d.ts +8 -8
- package/dist/types-ts4.5/analytics.d.ts +7 -5
- package/dist/types-ts4.5/components/Header/BackButton.d.ts +3 -3
- package/dist/types-ts4.5/components/Header/CloseButton.d.ts +3 -3
- package/dist/types-ts4.5/components/Header/index.d.ts +3 -3
- package/dist/types-ts4.5/components/HelpLayout.d.ts +3 -3
- package/dist/types-ts4.5/components/HelpLayoutContent.d.ts +3 -3
- package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +3 -3
- package/dist/types-ts4.5/messages.d.ts +8 -8
- package/docs/0-intro.tsx +2 -1
- package/package.json +5 -5
- package/afm-adminhub/tsconfig.json +0 -54
- package/afm-post-office/tsconfig.json +0 -54
- package/afm-townsquare/tsconfig.json +0 -54
- package/afm-volt/tsconfig.json +0 -54
package/CHANGELOG.md
CHANGED
|
@@ -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
|
+
}
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -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.
|
|
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.
|
|
59
|
+
packageVersion: "6.3.21"
|
|
60
60
|
}
|
|
61
61
|
}, /*#__PURE__*/_react.default.createElement(BackButton, props));
|
|
62
62
|
};
|
|
63
|
-
var
|
|
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.
|
|
58
|
+
packageVersion: "6.3.21"
|
|
59
59
|
}
|
|
60
60
|
}, /*#__PURE__*/_react.default.createElement(CloseButton, props));
|
|
61
61
|
};
|
|
62
|
-
var
|
|
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
|
|
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
|
|
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
|
|
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
|
|
19
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(MessagesIntlProvider);
|
|
20
|
+
var _default = exports.default = _default_1;
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -50,8 +50,9 @@ const BackButtonWithContext = props => {
|
|
|
50
50
|
data: {
|
|
51
51
|
componentName: 'backButton',
|
|
52
52
|
packageName: "@atlaskit/help-layout",
|
|
53
|
-
packageVersion: "6.3.
|
|
53
|
+
packageVersion: "6.3.21"
|
|
54
54
|
}
|
|
55
55
|
}, /*#__PURE__*/React.createElement(BackButton, props));
|
|
56
56
|
};
|
|
57
|
-
|
|
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.
|
|
54
|
+
packageVersion: "6.3.21"
|
|
55
55
|
}
|
|
56
56
|
}, /*#__PURE__*/React.createElement(CloseButton, props));
|
|
57
57
|
};
|
|
58
|
-
|
|
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
|
-
|
|
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
|
-
|
|
11
|
+
const _default_1 = withAnalyticsContext(defaultAnalyticsAttributes)(withAnalyticsEvents()(HelpLayout));
|
|
12
|
+
export default _default_1;
|
package/dist/esm/analytics.js
CHANGED
|
@@ -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.
|
|
52
|
+
packageVersion: "6.3.21"
|
|
53
53
|
}
|
|
54
54
|
}, /*#__PURE__*/React.createElement(BackButton, props));
|
|
55
55
|
};
|
|
56
|
-
|
|
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.
|
|
51
|
+
packageVersion: "6.3.21"
|
|
52
52
|
}
|
|
53
53
|
}, /*#__PURE__*/React.createElement(CloseButton, props));
|
|
54
54
|
};
|
|
55
|
-
|
|
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
|
-
|
|
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
|
-
|
|
26
|
+
var _default_1 = withAnalyticsContext(defaultAnalyticsAttributes)(withAnalyticsEvents()(HelpLayout));
|
|
27
|
+
export default _default_1;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as x from '@atlaskit/analytics-next';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
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
|
|
9
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
|
-
export 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
|
|
15
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
16
16
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
17
17
|
};
|
|
18
|
-
export 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
|
|
5
|
+
declare const _default_1: React.FC<WithIntlProps<HelpPanelHeader & WrappedComponentProps>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<HelpPanelHeader & WrappedComponentProps>;
|
|
7
7
|
};
|
|
8
|
-
export 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
|
|
9
|
-
export 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
|
|
5
|
+
declare const _default_1: React.FC<WithIntlProps<HelpLayout & WrappedComponentProps>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<HelpLayout & WrappedComponentProps>;
|
|
7
7
|
};
|
|
8
|
-
export 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
|
|
8
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
9
9
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
10
10
|
};
|
|
11
|
-
export default
|
|
11
|
+
export default _default_1;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -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
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
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
|
|
9
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
|
-
export 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
|
|
15
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
16
16
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
17
17
|
};
|
|
18
|
-
export 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
|
|
5
|
+
declare const _default_1: React.FC<WithIntlProps<HelpPanelHeader & WrappedComponentProps>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<HelpPanelHeader & WrappedComponentProps>;
|
|
7
7
|
};
|
|
8
|
-
export 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
|
|
9
|
-
export 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
|
|
5
|
+
declare const _default_1: React.FC<WithIntlProps<HelpLayout & WrappedComponentProps>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<HelpLayout & WrappedComponentProps>;
|
|
7
7
|
};
|
|
8
|
-
export 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
|
|
8
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
9
9
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
10
10
|
};
|
|
11
|
-
export 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
|
-
|
|
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.
|
|
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.
|
|
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": "^
|
|
39
|
+
"@atlaskit/primitives": "^16.1.0",
|
|
40
40
|
"@atlaskit/theme": "^21.0.0",
|
|
41
|
-
"@atlaskit/tokens": "^
|
|
42
|
-
"@atlaskit/tooltip": "^20.
|
|
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
|
-
}
|
package/afm-volt/tsconfig.json
DELETED
|
@@ -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
|
-
}
|