@atlaskit/help 7.2.30 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +735 -475
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/styled.js +9 -4
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/cjs/components/Article/styled.js +16 -3
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/cjs/components/ArticlesList/styled.js +16 -5
- package/dist/cjs/components/HelpContentButton/index.js +1 -1
- package/dist/cjs/components/HelpContentButton/styled.js +9 -0
- package/dist/cjs/components/RelatedArticles/index.js +1 -1
- package/dist/cjs/components/RelatedArticles/styled.js +30 -8
- package/dist/cjs/components/Search/SearchInput/index.js +1 -1
- package/dist/cjs/components/Search/SearchInput/styled.js +32 -5
- package/dist/cjs/components/Search/SearchResults/index.js +11 -6
- package/dist/cjs/components/Search/SearchResults/styled.js +38 -8
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +13 -5
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +13 -5
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +23 -6
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +27 -8
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +15 -4
- package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +24 -6
- package/dist/cjs/components/contexts/searchContext.js +4 -2
- package/dist/cjs/components/styled.js +33 -9
- package/dist/cjs/model/Help.js +0 -1
- package/dist/cjs/util/styled.js +57 -18
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/styled.js +8 -8
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
- package/dist/es2019/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/es2019/components/Article/styled.js +15 -15
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/es2019/components/ArticlesList/styled.js +14 -14
- package/dist/es2019/components/HelpContentButton/index.js +1 -1
- package/dist/es2019/components/HelpContentButton/styled.js +9 -0
- package/dist/es2019/components/RelatedArticles/index.js +1 -1
- package/dist/es2019/components/RelatedArticles/styled.js +28 -29
- package/dist/es2019/components/Search/SearchInput/index.js +1 -1
- package/dist/es2019/components/Search/SearchInput/styled.js +29 -33
- package/dist/es2019/components/Search/SearchResults/index.js +11 -6
- package/dist/es2019/components/Search/SearchResults/styled.js +34 -38
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +10 -13
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +10 -13
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +21 -21
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +24 -25
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +14 -14
- package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +23 -23
- package/dist/es2019/components/contexts/searchContext.js +4 -2
- package/dist/es2019/components/styled.js +30 -30
- package/dist/es2019/model/Help.js +0 -1
- package/dist/es2019/util/styled.js +51 -60
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/styled.js +8 -4
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
- package/dist/esm/components/Article/HelpArticle/index.js +1 -1
- package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/esm/components/Article/styled.js +15 -3
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/esm/components/ArticlesList/styled.js +15 -5
- package/dist/esm/components/HelpContentButton/index.js +1 -1
- package/dist/esm/components/HelpContentButton/styled.js +9 -0
- package/dist/esm/components/RelatedArticles/index.js +1 -1
- package/dist/esm/components/RelatedArticles/styled.js +28 -7
- package/dist/esm/components/Search/SearchInput/index.js +1 -1
- package/dist/esm/components/Search/SearchInput/styled.js +31 -5
- package/dist/esm/components/Search/SearchResults/index.js +11 -6
- package/dist/esm/components/Search/SearchResults/styled.js +36 -7
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +11 -4
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +11 -4
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +21 -5
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +25 -7
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +14 -4
- package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +23 -6
- package/dist/esm/components/contexts/searchContext.js +4 -2
- package/dist/esm/components/styled.js +32 -9
- package/dist/esm/model/Help.js +0 -1
- package/dist/esm/util/styled.js +57 -18
- package/dist/types/analytics.d.ts +2 -2
- package/dist/types/components/RelatedArticles/index.d.ts +0 -2
- package/dist/types/components/contexts/searchContext.d.ts +5 -4
- package/dist/types/model/Help.d.ts +6 -5
- package/dist/types-ts4.5/analytics.d.ts +2 -2
- package/dist/types-ts4.5/components/RelatedArticles/index.d.ts +0 -2
- package/dist/types-ts4.5/components/contexts/searchContext.d.ts +5 -4
- package/dist/types-ts4.5/model/Help.d.ts +6 -5
- package/package.json +13 -13
package/dist/esm/util/styled.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject
|
|
2
|
+
var _templateObject;
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
|
|
5
5
|
import { keyframes } from '@emotion/react';
|
|
@@ -7,38 +7,77 @@ import styled from '@emotion/styled';
|
|
|
7
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
import * as colors from '@atlaskit/theme/colors';
|
|
9
9
|
import { WHATS_NEW_ITEM_TYPES } from '../model/WhatsNew';
|
|
10
|
-
export var DividerLine = styled.div(
|
|
10
|
+
export var DividerLine = styled.div({
|
|
11
|
+
backgroundColor: "var(--ds-border, ".concat(colors.N30A, ")"),
|
|
12
|
+
height: '2px',
|
|
13
|
+
width: '100%',
|
|
14
|
+
padding: "0 ".concat("var(--ds-space-200, 16px)"),
|
|
15
|
+
marginTop: "var(--ds-space-200, 16px)",
|
|
16
|
+
boxSizing: 'border-box'
|
|
17
|
+
});
|
|
11
18
|
|
|
12
19
|
/**
|
|
13
20
|
* Loading container
|
|
14
21
|
*/
|
|
15
22
|
|
|
16
|
-
var shimmer = keyframes(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
23
|
+
var shimmer = keyframes({
|
|
24
|
+
'0%': {
|
|
25
|
+
backgroundPosition: '-300px 0'
|
|
26
|
+
},
|
|
27
|
+
'100%': {
|
|
28
|
+
backgroundPosition: '1000px 0'
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export var LoadingRectangle = styled.div(function (props) {
|
|
32
|
+
return {
|
|
33
|
+
display: 'inline-block',
|
|
34
|
+
verticalAlign: 'middle',
|
|
35
|
+
position: 'relative',
|
|
36
|
+
height: props.contentHeight ? props.contentHeight : '1rem',
|
|
37
|
+
marginTop: props.marginTop ? props.marginTop : gridSize() + 'px',
|
|
38
|
+
width: props.contentWidth ? props.contentWidth : '100%',
|
|
39
|
+
borderRadius: '2px',
|
|
40
|
+
animationDuration: '1.2s',
|
|
41
|
+
animationFillMode: 'forwards',
|
|
42
|
+
animationIterationCount: 'infinite',
|
|
43
|
+
animationName: shimmer,
|
|
44
|
+
animationTimingFunction: 'linear',
|
|
45
|
+
backgroundColor: "var(--ds-background-neutral, ".concat(colors.N30, ")"),
|
|
46
|
+
backgroundImage: "linear-gradient( to right, ".concat("var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), " 10%, ", "var(--ds-background-neutral, ".concat(colors.N40, ")"), " 20%, ", "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), " 30% )"),
|
|
47
|
+
backgroundRepeat: 'no-repeat'
|
|
48
|
+
};
|
|
49
|
+
});
|
|
24
50
|
|
|
25
51
|
/**
|
|
26
52
|
* Loading Circle
|
|
27
53
|
*/
|
|
28
54
|
|
|
29
|
-
export var LoadingCircle = styled.div(
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
55
|
+
export var LoadingCircle = styled.div(function (props) {
|
|
56
|
+
return {
|
|
57
|
+
display: 'inline-block',
|
|
58
|
+
verticalAlign: 'middle',
|
|
59
|
+
position: 'relative',
|
|
60
|
+
height: props.radius ? props.radius : "".concat(gridSize() * 4, "px"),
|
|
61
|
+
marginTop: props.marginTop ? props.marginTop : '',
|
|
62
|
+
width: props.radius ? props.radius : "".concat(gridSize() * 4, "px"),
|
|
63
|
+
borderRadius: '50%',
|
|
64
|
+
animationDuration: '1.2s',
|
|
65
|
+
animationFillMode: 'forwards',
|
|
66
|
+
animationIterationCount: 'infinite',
|
|
67
|
+
animationName: shimmer,
|
|
68
|
+
animationTimingFunction: 'linear',
|
|
69
|
+
backgroundColor: "var(--ds-background-neutral, ".concat(colors.N30, ")"),
|
|
70
|
+
backgroundImage: "linear-gradient( to right, ".concat("var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), " 10%, ", "var(--ds-background-neutral, ".concat(colors.N40, ")"), " 20%, ", "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), " 30% )"),
|
|
71
|
+
backgroundRepeat: 'no-repeat'
|
|
72
|
+
};
|
|
73
|
+
});
|
|
36
74
|
|
|
37
75
|
/**
|
|
38
76
|
* What's new icon
|
|
39
77
|
*/
|
|
40
78
|
|
|
41
|
-
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation
|
|
80
|
+
export var WhatsNewTypeIcon = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: middle;\n position: relative;\n height: ", ";\n width: ", ";\n border-radius: 2px;\n background-color: ", ";\n\n & > img {\n width: calc(100% - ", "px);\n height: calc(100% - ", "px);\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n & > svg {\n height: 100%;\n width: 100%;\n }\n }\n"])), "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)", function (_ref) {
|
|
42
81
|
var type = _ref.type;
|
|
43
82
|
switch (type) {
|
|
44
83
|
case WHATS_NEW_ITEM_TYPES.IMPROVEMENT:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as x from '@atlaskit/analytics-next';
|
|
3
|
-
export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap | undefined) => <Props extends x.WithAnalyticsEventsProps, Component>(WrappedComponent: import("react").
|
|
4
|
-
export declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: import("react").
|
|
3
|
+
export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap | undefined) => <Props extends x.WithAnalyticsEventsProps, Component>(WrappedComponent: import("react").ComponentType<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
5
|
export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
|
|
6
6
|
export declare const defaultAnalyticsAttributes: {
|
|
7
7
|
componentName: string;
|
|
@@ -15,7 +15,5 @@ export interface Props {
|
|
|
15
15
|
export declare const RelatedArticles: React.FC<Props & WrappedComponentProps>;
|
|
16
16
|
declare const _default: React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps, "intl"> & {
|
|
17
17
|
forwardedRef?: React.Ref<any> | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
18
|
} & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>;
|
|
21
19
|
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { ArticleItem } from '../../model/Article';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type ArticleItem } from '../../model/Article';
|
|
4
4
|
import { REQUEST_STATE } from '../../model/Requests';
|
|
5
5
|
interface SearchSharedInterface {
|
|
6
6
|
onSearchInputChanged?(event: React.KeyboardEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent, value: string): void;
|
|
7
7
|
onSearchInputCleared?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
8
8
|
onSearchExternalUrlClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
9
9
|
searchExternalUrl?: string;
|
|
10
|
+
openExternalSearchUrlInNewTab?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export interface SearchContextInterface extends SearchSharedInterface {
|
|
12
13
|
onSearch?(value?: string): void;
|
|
@@ -21,5 +22,5 @@ export interface SearchProviderInterface extends SearchSharedInterface {
|
|
|
21
22
|
onSearchResultItemClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem): void;
|
|
22
23
|
}
|
|
23
24
|
export declare const useSearchContext: () => SearchContextInterface, CtxProvider: React.Provider<SearchContextInterface | undefined>;
|
|
24
|
-
export declare const SearchContextProvider: ({ onSearch, onSearchInputChanged, onSearchInputCleared, onSearchResultItemClick, onSearchExternalUrlClick, searchExternalUrl, children, }: PropsWithChildren<SearchProviderInterface>) => JSX.Element;
|
|
25
|
+
export declare const SearchContextProvider: ({ onSearch, onSearchInputChanged, onSearchInputCleared, onSearchResultItemClick, onSearchExternalUrlClick, searchExternalUrl, children, openExternalSearchUrlInNewTab }: PropsWithChildren<SearchProviderInterface>) => JSX.Element;
|
|
25
26
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Article, ArticleItem, ArticleFeedback } from './Article';
|
|
3
|
-
import { WhatsNewArticleItem, WhatsNewArticle, WHATS_NEW_ITEM_TYPES, whatsNewSearchResult } from './WhatsNew';
|
|
4
|
-
import { REQUEST_STATE } from './Requests';
|
|
5
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
-
import { NotificationLogProvider } from '@atlaskit/notification-log-client';
|
|
2
|
+
import { type Article, type ArticleItem, type ArticleFeedback } from './Article';
|
|
3
|
+
import { type WhatsNewArticleItem, type WhatsNewArticle, type WHATS_NEW_ITEM_TYPES, type whatsNewSearchResult } from './WhatsNew';
|
|
4
|
+
import { type REQUEST_STATE } from './Requests';
|
|
5
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
+
import { type NotificationLogProvider } from '@atlaskit/notification-log-client';
|
|
7
7
|
import type { Props as HelpContentButtonProps } from '../components/HelpContentButton';
|
|
8
8
|
export declare enum ARTICLE_TYPE {
|
|
9
9
|
HELP_ARTICLE = "HELP_ARTICLE",
|
|
@@ -36,6 +36,7 @@ export interface Help {
|
|
|
36
36
|
onSearchResultItemClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem): void;
|
|
37
37
|
onSearchExternalUrlClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
|
|
38
38
|
searchExternalUrl?: string;
|
|
39
|
+
openExternalSearchUrlInNewTab?: boolean;
|
|
39
40
|
};
|
|
40
41
|
navigation?: {
|
|
41
42
|
navigationData?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as x from '@atlaskit/analytics-next';
|
|
3
|
-
export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap | undefined) => <Props extends x.WithAnalyticsEventsProps, Component>(WrappedComponent: import("react").
|
|
4
|
-
export declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: import("react").
|
|
3
|
+
export declare const withAnalyticsEvents: (createEventMap?: import("@atlaskit/analytics-next/types").CreateEventMap | undefined) => <Props extends x.WithAnalyticsEventsProps, Component>(WrappedComponent: import("react").ComponentType<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
5
|
export declare const createAndFire: (payload: x.AnalyticsEventPayload) => (createAnalyticsEvent: x.CreateUIAnalyticsEvent) => x.UIAnalyticsEvent;
|
|
6
6
|
export declare const defaultAnalyticsAttributes: {
|
|
7
7
|
componentName: string;
|
|
@@ -15,7 +15,5 @@ export interface Props {
|
|
|
15
15
|
export declare const RelatedArticles: React.FC<Props & WrappedComponentProps>;
|
|
16
16
|
declare const _default: React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps, "intl"> & {
|
|
17
17
|
forwardedRef?: React.Ref<any> | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
18
|
} & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>;
|
|
21
19
|
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { ArticleItem } from '../../model/Article';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type ArticleItem } from '../../model/Article';
|
|
4
4
|
import { REQUEST_STATE } from '../../model/Requests';
|
|
5
5
|
interface SearchSharedInterface {
|
|
6
6
|
onSearchInputChanged?(event: React.KeyboardEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent, value: string): void;
|
|
7
7
|
onSearchInputCleared?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
8
8
|
onSearchExternalUrlClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent): void;
|
|
9
9
|
searchExternalUrl?: string;
|
|
10
|
+
openExternalSearchUrlInNewTab?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export interface SearchContextInterface extends SearchSharedInterface {
|
|
12
13
|
onSearch?(value?: string): void;
|
|
@@ -21,5 +22,5 @@ export interface SearchProviderInterface extends SearchSharedInterface {
|
|
|
21
22
|
onSearchResultItemClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem): void;
|
|
22
23
|
}
|
|
23
24
|
export declare const useSearchContext: () => SearchContextInterface, CtxProvider: React.Provider<SearchContextInterface | undefined>;
|
|
24
|
-
export declare const SearchContextProvider: ({ onSearch, onSearchInputChanged, onSearchInputCleared, onSearchResultItemClick, onSearchExternalUrlClick, searchExternalUrl, children, }: PropsWithChildren<SearchProviderInterface>) => JSX.Element;
|
|
25
|
+
export declare const SearchContextProvider: ({ onSearch, onSearchInputChanged, onSearchInputCleared, onSearchResultItemClick, onSearchExternalUrlClick, searchExternalUrl, children, openExternalSearchUrlInNewTab }: PropsWithChildren<SearchProviderInterface>) => JSX.Element;
|
|
25
26
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Article, ArticleItem, ArticleFeedback } from './Article';
|
|
3
|
-
import { WhatsNewArticleItem, WhatsNewArticle, WHATS_NEW_ITEM_TYPES, whatsNewSearchResult } from './WhatsNew';
|
|
4
|
-
import { REQUEST_STATE } from './Requests';
|
|
5
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
-
import { NotificationLogProvider } from '@atlaskit/notification-log-client';
|
|
2
|
+
import { type Article, type ArticleItem, type ArticleFeedback } from './Article';
|
|
3
|
+
import { type WhatsNewArticleItem, type WhatsNewArticle, type WHATS_NEW_ITEM_TYPES, type whatsNewSearchResult } from './WhatsNew';
|
|
4
|
+
import { type REQUEST_STATE } from './Requests';
|
|
5
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
+
import { type NotificationLogProvider } from '@atlaskit/notification-log-client';
|
|
7
7
|
import type { Props as HelpContentButtonProps } from '../components/HelpContentButton';
|
|
8
8
|
export declare enum ARTICLE_TYPE {
|
|
9
9
|
HELP_ARTICLE = "HELP_ARTICLE",
|
|
@@ -36,6 +36,7 @@ export interface Help {
|
|
|
36
36
|
onSearchResultItemClick?(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent, articleData: ArticleItem): void;
|
|
37
37
|
onSearchExternalUrlClick?(event?: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent): void;
|
|
38
38
|
searchExternalUrl?: string;
|
|
39
|
+
openExternalSearchUrlInNewTab?: boolean;
|
|
39
40
|
};
|
|
40
41
|
navigation?: {
|
|
41
42
|
navigationData?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "A cross-product help component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.svg"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/analytics-next": "^9.
|
|
45
|
-
"@atlaskit/button": "^17.
|
|
46
|
-
"@atlaskit/checkbox": "^13.
|
|
47
|
-
"@atlaskit/form": "^9.
|
|
44
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
45
|
+
"@atlaskit/button": "^17.14.0",
|
|
46
|
+
"@atlaskit/checkbox": "^13.3.0",
|
|
47
|
+
"@atlaskit/form": "^9.3.0",
|
|
48
48
|
"@atlaskit/help-article": "^4.1.10",
|
|
49
49
|
"@atlaskit/help-layout": "^4.2.15",
|
|
50
50
|
"@atlaskit/icon": "^22.1.0",
|
|
51
51
|
"@atlaskit/notification-indicator": "^9.2.0",
|
|
52
52
|
"@atlaskit/notification-log-client": "^6.1.0",
|
|
53
|
-
"@atlaskit/radio": "^6.
|
|
54
|
-
"@atlaskit/section-message": "^6.
|
|
55
|
-
"@atlaskit/select": "^17.
|
|
56
|
-
"@atlaskit/spinner": "^16.
|
|
57
|
-
"@atlaskit/textarea": "^5.
|
|
58
|
-
"@atlaskit/textfield": "^6.
|
|
53
|
+
"@atlaskit/radio": "^6.3.0",
|
|
54
|
+
"@atlaskit/section-message": "^6.5.0",
|
|
55
|
+
"@atlaskit/select": "^17.8.0",
|
|
56
|
+
"@atlaskit/spinner": "^16.1.0",
|
|
57
|
+
"@atlaskit/textarea": "^5.4.0",
|
|
58
|
+
"@atlaskit/textfield": "^6.3.0",
|
|
59
59
|
"@atlaskit/theme": "^12.7.0",
|
|
60
|
-
"@atlaskit/tokens": "^1.
|
|
61
|
-
"@atlaskit/tooltip": "^18.
|
|
60
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
61
|
+
"@atlaskit/tooltip": "^18.3.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
64
64
|
"@emotion/styled": "^11.0.0",
|