@atlaskit/link-picker 1.25.3 → 1.25.5
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/dist/cjs/common/analytics/context.js +1 -1
- package/dist/cjs/common/analytics/input-field-tracking.js +3 -3
- package/dist/cjs/common/constants.js +6 -2
- package/dist/cjs/common/utils/handleNavKeyDown.js +29 -0
- package/dist/cjs/i18n/en.js +2 -1
- package/dist/cjs/i18n/en_GB.js +2 -1
- package/dist/cjs/i18n/en_ZZ.js +2 -1
- package/dist/cjs/services/use-plugins/index.js +7 -8
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +3 -1
- package/dist/cjs/ui/error-boundary/index.js +3 -3
- package/dist/cjs/ui/index.js +2 -2
- package/dist/cjs/ui/link-picker/form-footer/index.js +10 -10
- package/dist/cjs/ui/link-picker/index.js +38 -81
- package/dist/cjs/ui/link-picker/search-results/index.js +90 -0
- package/dist/cjs/ui/link-picker/{link-search-error → search-results/link-search-error}/index.js +1 -1
- package/dist/cjs/ui/link-picker/{link-search-list → search-results/link-search-list}/index.js +11 -11
- package/dist/cjs/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/index.js +1 -1
- package/dist/cjs/ui/link-picker/{list-item → search-results/link-search-list/list-item}/index.js +3 -2
- package/dist/cjs/ui/link-picker/{list-item → search-results/link-search-list/list-item}/styled.js +7 -5
- package/dist/cjs/ui/link-picker/{link-search-list → search-results/link-search-list}/styled.js +1 -1
- package/dist/cjs/ui/link-picker/{link-search-list → search-results/link-search-list}/use-track-results-shown/index.js +2 -2
- package/dist/cjs/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/index.js +3 -0
- package/dist/cjs/ui/link-picker/search-results/styled.js +16 -0
- package/dist/cjs/ui/link-picker/{track-tab-viewed → search-results/track-tab-viewed}/index.js +2 -2
- package/dist/cjs/ui/link-picker/styled.js +5 -23
- package/dist/cjs/ui/link-picker/text-input/index.js +4 -4
- package/dist/cjs/ui/link-picker/text-input/utils.js +28 -0
- package/dist/cjs/ui/link-picker/track-mount/index.js +1 -1
- package/dist/cjs/ui/link-picker/transformTimeStamp.js +2 -2
- package/dist/cjs/ui/link-picker/utils.js +1 -48
- package/dist/cjs/ui/loader-fallback/index.js +1 -1
- package/dist/cjs/ui/loader-fallback/styled.js +21 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/analytics/context.js +1 -1
- package/dist/es2019/common/analytics/input-field-tracking.js +2 -2
- package/dist/es2019/common/constants.js +3 -1
- package/dist/es2019/common/utils/handleNavKeyDown.js +22 -0
- package/dist/es2019/i18n/en.js +2 -1
- package/dist/es2019/i18n/en_GB.js +2 -1
- package/dist/es2019/i18n/en_ZZ.js +2 -1
- package/dist/es2019/services/use-plugins/index.js +5 -6
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +2 -1
- package/dist/es2019/ui/error-boundary/index.js +3 -3
- package/dist/es2019/ui/index.js +3 -3
- package/dist/es2019/ui/link-picker/announcer.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/index.js +4 -4
- package/dist/es2019/ui/link-picker/index.js +32 -69
- package/dist/es2019/ui/link-picker/search-results/index.js +77 -0
- package/dist/es2019/ui/link-picker/{link-search-error → search-results/link-search-error}/index.js +2 -2
- package/dist/es2019/ui/link-picker/{link-search-list → search-results/link-search-list}/index.js +5 -5
- package/dist/es2019/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/index.js +1 -1
- package/dist/es2019/ui/link-picker/{list-item → search-results/link-search-list/list-item}/index.js +3 -3
- package/dist/es2019/ui/link-picker/{list-item → search-results/link-search-list/list-item}/styled.js +4 -4
- package/dist/es2019/ui/link-picker/{link-search-list → search-results/link-search-list}/styled.js +2 -1
- package/dist/es2019/ui/link-picker/{link-search-list → search-results/link-search-list}/use-track-results-shown/index.js +2 -2
- package/dist/es2019/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/index.js +6 -3
- package/dist/es2019/ui/link-picker/search-results/styled.js +17 -0
- package/dist/es2019/ui/link-picker/{track-tab-viewed → search-results/track-tab-viewed}/index.js +2 -2
- package/dist/es2019/ui/link-picker/styled.js +0 -30
- package/dist/es2019/ui/link-picker/text-input/index.js +5 -5
- package/dist/es2019/ui/link-picker/text-input/utils.js +22 -0
- package/dist/es2019/ui/link-picker/track-mount/index.js +1 -1
- package/dist/es2019/ui/link-picker/transformTimeStamp.js +2 -2
- package/dist/es2019/ui/link-picker/utils.js +1 -45
- package/dist/es2019/ui/loader-fallback/index.js +1 -1
- package/dist/es2019/ui/loader-fallback/styled.js +25 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/analytics/context.js +1 -1
- package/dist/esm/common/analytics/input-field-tracking.js +2 -2
- package/dist/esm/common/constants.js +3 -1
- package/dist/esm/common/utils/handleNavKeyDown.js +22 -0
- package/dist/esm/i18n/en.js +2 -1
- package/dist/esm/i18n/en_GB.js +2 -1
- package/dist/esm/i18n/en_ZZ.js +2 -1
- package/dist/esm/services/use-plugins/index.js +5 -6
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +2 -1
- package/dist/esm/ui/error-boundary/index.js +3 -3
- package/dist/esm/ui/index.js +3 -3
- package/dist/esm/ui/link-picker/announcer.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/index.js +4 -4
- package/dist/esm/ui/link-picker/index.js +33 -72
- package/dist/esm/ui/link-picker/search-results/index.js +79 -0
- package/dist/esm/ui/link-picker/{link-search-error → search-results/link-search-error}/index.js +2 -2
- package/dist/esm/ui/link-picker/{link-search-list → search-results/link-search-list}/index.js +5 -5
- package/dist/esm/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/index.js +1 -1
- package/dist/esm/ui/link-picker/{list-item → search-results/link-search-list/list-item}/index.js +3 -3
- package/dist/esm/ui/link-picker/{list-item → search-results/link-search-list/list-item}/styled.js +4 -4
- package/dist/esm/ui/link-picker/{link-search-list → search-results/link-search-list}/styled.js +2 -1
- package/dist/esm/ui/link-picker/{link-search-list → search-results/link-search-list}/use-track-results-shown/index.js +2 -2
- package/dist/esm/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/index.js +6 -3
- package/dist/esm/ui/link-picker/search-results/styled.js +6 -0
- package/dist/esm/ui/link-picker/{track-tab-viewed → search-results/track-tab-viewed}/index.js +2 -2
- package/dist/esm/ui/link-picker/styled.js +4 -19
- package/dist/esm/ui/link-picker/text-input/index.js +5 -5
- package/dist/esm/ui/link-picker/text-input/utils.js +20 -0
- package/dist/esm/ui/link-picker/track-mount/index.js +1 -1
- package/dist/esm/ui/link-picker/transformTimeStamp.js +2 -2
- package/dist/esm/ui/link-picker/utils.js +1 -43
- package/dist/esm/ui/loader-fallback/index.js +1 -1
- package/dist/esm/ui/loader-fallback/styled.js +16 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/common/analytics/context.d.ts +1 -1
- package/dist/types/common/constants.d.ts +2 -0
- package/dist/{types-ts4.5/ui → types/common}/types.d.ts +10 -0
- package/dist/types/common/utils/handleNavKeyDown.d.ts +2 -0
- package/dist/types/i18n/en.d.ts +1 -0
- package/dist/types/i18n/en_GB.d.ts +1 -0
- package/dist/types/i18n/en_ZZ.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/use-plugins/index.d.ts +1 -1
- package/dist/types/services/use-plugins/reducer.d.ts +1 -1
- package/dist/types/services/use-plugins/utils.d.ts +1 -1
- package/dist/types/services/use-search-query/index.d.ts +1 -2
- package/dist/types/ui/link-picker/form-footer/index.d.ts +1 -2
- package/dist/types/ui/link-picker/form-footer/utils.d.ts +1 -1
- package/dist/types/ui/link-picker/index.d.ts +7 -19
- package/dist/types/ui/link-picker/search-results/index.d.ts +40 -0
- package/dist/types/ui/link-picker/{link-search-list → search-results/link-search-list}/index.d.ts +1 -1
- package/dist/types/ui/link-picker/{list-item → search-results/link-search-list/list-item}/index.d.ts +1 -1
- package/dist/types/ui/link-picker/{link-search-list → search-results/link-search-list}/use-track-results-shown/index.d.ts +1 -1
- package/dist/types/ui/link-picker/search-results/styled.d.ts +3 -0
- package/dist/types/ui/link-picker/{track-tab-viewed → search-results/track-tab-viewed}/index.d.ts +1 -1
- package/dist/types/ui/link-picker/styled.d.ts +0 -5
- package/dist/types/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.d.ts +1 -2
- package/dist/types/ui/link-picker/text-input/index.d.ts +1 -1
- package/dist/types/ui/link-picker/text-input/utils.d.ts +3 -0
- package/dist/types/ui/link-picker/utils.d.ts +1 -5
- package/dist/types/ui/loader-fallback/styled.d.ts +3 -0
- package/dist/types-ts4.5/common/analytics/context.d.ts +1 -1
- package/dist/types-ts4.5/common/constants.d.ts +2 -0
- package/dist/{types/ui → types-ts4.5/common}/types.d.ts +10 -0
- package/dist/types-ts4.5/common/utils/handleNavKeyDown.d.ts +2 -0
- package/dist/types-ts4.5/i18n/en.d.ts +1 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +1 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/services/use-plugins/index.d.ts +1 -1
- package/dist/types-ts4.5/services/use-plugins/reducer.d.ts +1 -1
- package/dist/types-ts4.5/services/use-plugins/utils.d.ts +1 -1
- package/dist/types-ts4.5/services/use-search-query/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/form-footer/utils.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/index.d.ts +7 -19
- package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +40 -0
- package/dist/types-ts4.5/ui/link-picker/{link-search-list → search-results/link-search-list}/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/{list-item → search-results/link-search-list/list-item}/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/{link-search-list → search-results/link-search-list}/use-track-results-shown/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/styled.d.ts +3 -0
- package/dist/types-ts4.5/ui/link-picker/{track-tab-viewed → search-results/track-tab-viewed}/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/styled.d.ts +0 -5
- package/dist/types-ts4.5/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/text-input/utils.d.ts +3 -0
- package/dist/types-ts4.5/ui/link-picker/utils.d.ts +1 -5
- package/dist/types-ts4.5/ui/loader-fallback/styled.d.ts +3 -0
- package/package.json +27 -6
- /package/dist/cjs/{ui → common}/types.js +0 -0
- /package/dist/cjs/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/index.js +0 -0
- /package/dist/cjs/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/styled.js +0 -0
- /package/dist/cjs/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/styled.js +0 -0
- /package/dist/cjs/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/scrolling-tabs.js +0 -0
- /package/dist/cjs/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/styles.js +0 -0
- /package/dist/cjs/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.js +0 -0
- /package/dist/es2019/{ui → common}/types.js +0 -0
- /package/dist/es2019/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/index.js +0 -0
- /package/dist/es2019/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/styled.js +0 -0
- /package/dist/es2019/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/styled.js +0 -0
- /package/dist/es2019/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/scrolling-tabs.js +0 -0
- /package/dist/es2019/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/styles.js +0 -0
- /package/dist/es2019/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.js +0 -0
- /package/dist/esm/{ui → common}/types.js +0 -0
- /package/dist/esm/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/index.js +0 -0
- /package/dist/esm/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/styled.js +0 -0
- /package/dist/esm/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/styled.js +0 -0
- /package/dist/esm/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/scrolling-tabs.js +0 -0
- /package/dist/esm/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/styles.js +0 -0
- /package/dist/esm/ui/link-picker/{conditional-spotlight-target-wrapper → text-input/conditional-spotlight-target-wrapper}/index.js +0 -0
- /package/dist/types/ui/link-picker/{link-search-error → search-results/link-search-error}/index.d.ts +0 -0
- /package/dist/types/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/index.d.ts +0 -0
- /package/dist/types/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/index.d.ts +0 -0
- /package/dist/types/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/styled.d.ts +0 -0
- /package/dist/types/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/styled.d.ts +0 -0
- /package/dist/types/ui/link-picker/{list-item → search-results/link-search-list/list-item}/styled.d.ts +0 -0
- /package/dist/types/ui/link-picker/{link-search-list → search-results/link-search-list}/styled.d.ts +0 -0
- /package/dist/types/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/index.d.ts +0 -0
- /package/dist/types/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/scrolling-tabs.d.ts +0 -0
- /package/dist/types/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/styles.d.ts +0 -0
- /package/dist/types-ts4.5/ui/link-picker/{link-search-error → search-results/link-search-error}/index.d.ts +0 -0
- /package/dist/types-ts4.5/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/index.d.ts +0 -0
- /package/dist/types-ts4.5/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/index.d.ts +0 -0
- /package/dist/types-ts4.5/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/no-results-svg/styled.d.ts +0 -0
- /package/dist/types-ts4.5/ui/link-picker/{link-search-list → search-results/link-search-list}/link-search-no-results/styled.d.ts +0 -0
- /package/dist/types-ts4.5/ui/link-picker/{list-item → search-results/link-search-list/list-item}/styled.d.ts +0 -0
- /package/dist/types-ts4.5/ui/link-picker/{link-search-list → search-results/link-search-list}/styled.d.ts +0 -0
- /package/dist/types-ts4.5/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/index.d.ts +0 -0
- /package/dist/types-ts4.5/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/scrolling-tabs.d.ts +0 -0
- /package/dist/types-ts4.5/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/styles.d.ts +0 -0
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { LinkInputType, LinkPickerPlugin } from '
|
|
4
|
-
export declare const RECENT_SEARCH_LIST_SIZE = 5;
|
|
3
|
+
import { LinkInputType, LinkPickerPlugin } from '../../common/types';
|
|
5
4
|
export declare const testIds: {
|
|
6
|
-
readonly tabList: "link-picker-tabs";
|
|
7
|
-
readonly tabItem: "link-picker-tab";
|
|
8
5
|
readonly urlError: string;
|
|
9
6
|
readonly clearUrlButton: string;
|
|
7
|
+
readonly insertButton: "link-picker-insert-button";
|
|
8
|
+
readonly cancelButton: "link-picker-cancel-button";
|
|
9
|
+
readonly actionButton: "link-picker-action-button";
|
|
10
|
+
readonly tabsLoadingIndicator: string;
|
|
11
|
+
readonly tabList: string;
|
|
12
|
+
readonly tabItem: string;
|
|
10
13
|
readonly resultListTitle: string;
|
|
11
14
|
readonly searchResultList: string;
|
|
12
15
|
readonly searchResultLoadingIndicator: string;
|
|
13
|
-
readonly tabsLoadingIndicator: string;
|
|
14
16
|
readonly searchResultItem: string;
|
|
15
17
|
readonly searchResultIcon: string;
|
|
16
18
|
readonly emptyResultPage: string;
|
|
17
19
|
readonly searchError: string;
|
|
18
|
-
readonly insertButton: "link-picker-insert-button";
|
|
19
|
-
readonly cancelButton: "link-picker-cancel-button";
|
|
20
|
-
readonly actionButton: "link-picker-action-button";
|
|
21
20
|
readonly linkPickerRoot: "link-picker-root";
|
|
22
21
|
readonly linkPicker: "link-picker";
|
|
23
22
|
readonly urlInputField: "link-url";
|
|
24
23
|
readonly textInputField: "link-text";
|
|
25
|
-
readonly searchIcon: "link-picker-search-icon";
|
|
26
24
|
};
|
|
27
25
|
interface Meta {
|
|
28
26
|
/** Indicates how the link was picked. */
|
|
@@ -70,15 +68,5 @@ export interface LinkPickerProps {
|
|
|
70
68
|
hideDisplayText?: boolean;
|
|
71
69
|
featureFlags?: Record<string, unknown>;
|
|
72
70
|
}
|
|
73
|
-
export interface PickerState {
|
|
74
|
-
selectedIndex: number;
|
|
75
|
-
activeIndex: number;
|
|
76
|
-
url: string;
|
|
77
|
-
displayText: string;
|
|
78
|
-
invalidUrl: boolean;
|
|
79
|
-
activeTab: number;
|
|
80
|
-
/** When true, even if the selected index is -1, don't hide the recents. */
|
|
81
|
-
preventHidingRecents: boolean;
|
|
82
|
-
}
|
|
83
71
|
export declare const LinkPicker: import("react").ComponentType<LinkPickerProps>;
|
|
84
72
|
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { KeyboardEvent } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { LinkPickerPlugin, LinkSearchListItemData } from '../../../common/types';
|
|
5
|
+
export declare const testIds: {
|
|
6
|
+
tabsLoadingIndicator: string;
|
|
7
|
+
tabList: string;
|
|
8
|
+
tabItem: string;
|
|
9
|
+
resultListTitle: string;
|
|
10
|
+
searchResultList: string;
|
|
11
|
+
searchResultLoadingIndicator: string;
|
|
12
|
+
searchResultItem: string;
|
|
13
|
+
searchResultIcon: string;
|
|
14
|
+
emptyResultPage: string;
|
|
15
|
+
searchError: string;
|
|
16
|
+
};
|
|
17
|
+
export type SearchResultsProps = {
|
|
18
|
+
activePlugin?: LinkPickerPlugin;
|
|
19
|
+
tabs: {
|
|
20
|
+
tabTitle: string;
|
|
21
|
+
}[];
|
|
22
|
+
isLoadingPlugins?: boolean;
|
|
23
|
+
isLoadingResults: boolean;
|
|
24
|
+
activeTab: number;
|
|
25
|
+
handleTabChange: (activeTab: number) => void;
|
|
26
|
+
handleSearchListOnChange: (id: string) => void;
|
|
27
|
+
featureFlags?: Record<string, unknown>;
|
|
28
|
+
linkSearchListId: string;
|
|
29
|
+
queryState?: {
|
|
30
|
+
query: string;
|
|
31
|
+
};
|
|
32
|
+
items?: LinkSearchListItemData[] | null;
|
|
33
|
+
activeIndex: number;
|
|
34
|
+
selectedIndex: number;
|
|
35
|
+
handleSelected: (objectId: string) => void;
|
|
36
|
+
handleKeyDown: (e: KeyboardEvent<HTMLElement>) => void;
|
|
37
|
+
error?: unknown;
|
|
38
|
+
retry: () => void;
|
|
39
|
+
};
|
|
40
|
+
export declare const SearchResults: ({ tabs, activeTab, activePlugin, isLoadingPlugins, isLoadingResults, handleTabChange, handleSearchListOnChange, featureFlags, linkSearchListId, error, queryState, items, activeIndex, selectedIndex, handleSelected, handleKeyDown, retry, }: SearchResultsProps) => jsx.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { KeyboardEvent } from 'react';
|
|
3
|
-
import { LinkPickerPlugin, LinkSearchListItemData } from '
|
|
3
|
+
import { LinkPickerPlugin, LinkSearchListItemData } from '../../../../common/types';
|
|
4
4
|
export declare const messages: {
|
|
5
5
|
titleRecentlyViewed: {
|
|
6
6
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { KeyboardEvent } from 'react';
|
|
3
|
-
import { LinkSearchListItemData } from '
|
|
3
|
+
import { LinkSearchListItemData } from '../../../../../common/types';
|
|
4
4
|
export declare const testIds: {
|
|
5
5
|
searchResultItem: string;
|
|
6
6
|
searchResultIcon: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LinkSearchListItemData } from '
|
|
1
|
+
import { LinkSearchListItemData } from '../../../../../common/types';
|
|
2
2
|
export declare const useTrackResultsShown: (isLoading: boolean, items?: LinkSearchListItemData[] | null | undefined, hasSearchTerm?: boolean) => void;
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
* Half padding on the top as the form field has a `gridSize()` margin top that cannot be overridden
|
|
3
3
|
*/
|
|
4
4
|
export declare const rootContainerStyles: import("@emotion/react").SerializedStyles;
|
|
5
|
-
/** Link Picker loader / skeleton will be taller in height when displayText field is shown */
|
|
6
|
-
export declare const rootContainerStylesForLoaderWithDisplaytext: import("@emotion/react").SerializedStyles;
|
|
7
|
-
/** Link Picker loader / skeleton will be shorter in height when displayText field isn't shown */
|
|
8
|
-
export declare const rootContainerStylesForLoaderWithoutDisplaytext: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const searchIconStyles: import("@emotion/react").SerializedStyles;
|
|
10
5
|
export declare const tabsWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
11
6
|
export declare const flexColumnStyles: import("@emotion/react").SerializedStyles;
|
|
12
7
|
export declare const formFooterMargin: import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import { TextFieldProps } from '@atlaskit/textfield';
|
|
3
|
-
import { ConditionalSpotlightTargetWrapperProps } from '
|
|
3
|
+
import { ConditionalSpotlightTargetWrapperProps } from './conditional-spotlight-target-wrapper';
|
|
4
4
|
export type TextInputProps = Omit<TextFieldProps, 'name' | 'value'> & Pick<ConditionalSpotlightTargetWrapperProps, 'spotlightTargetName'> & {
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { KeyboardEvent } from 'react';
|
|
2
1
|
import { IntlShape } from 'react-intl-next';
|
|
3
|
-
import { LinkPickerPlugin, LinkSearchListItemData } from '
|
|
4
|
-
export declare const isUndoEvent: (e: KeyboardEvent<HTMLInputElement>) => boolean;
|
|
5
|
-
export declare const isRedoEvent: (e: KeyboardEvent<HTMLInputElement>) => boolean;
|
|
2
|
+
import { LinkPickerPlugin, LinkSearchListItemData } from '../../common/types';
|
|
6
3
|
/**
|
|
7
4
|
* Retrieve the data source for a link given the item and the plugin that resolved it
|
|
8
5
|
*/
|
|
9
6
|
export declare const getDataSource: (item: LinkSearchListItemData, plugin?: LinkPickerPlugin) => string;
|
|
10
7
|
export declare function getScreenReaderText(items: LinkSearchListItemData[], selectedIndex: number, intl: IntlShape): string | undefined;
|
|
11
|
-
export declare const handleNavKeyDown: (event: KeyboardEvent<HTMLElement>, itemsLength: number, activeIndex: number) => number;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const rootContainerStylesForLoaderWithDisplaytext: import("@emotion/react").SerializedStyles;
|
|
2
|
+
/** Link Picker loader / skeleton will be shorter in height when displayText field isn't shown */
|
|
3
|
+
export declare const rootContainerStylesForLoaderWithoutDisplaytext: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.5",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@atlaskit/form": "^8.11.0",
|
|
53
53
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
54
54
|
"@atlaskit/icon": "^21.12.0",
|
|
55
|
-
"@atlaskit/linking-common": "^3.
|
|
55
|
+
"@atlaskit/linking-common": "^3.1.0",
|
|
56
56
|
"@atlaskit/onboarding": "^10.8.2",
|
|
57
57
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
58
58
|
"@atlaskit/spinner": "^15.5.0",
|
|
59
59
|
"@atlaskit/tabs": "^13.4.0",
|
|
60
60
|
"@atlaskit/textfield": "^5.5.0",
|
|
61
61
|
"@atlaskit/theme": "^12.5.0",
|
|
62
|
-
"@atlaskit/tokens": "^1.
|
|
62
|
+
"@atlaskit/tokens": "^1.11.0",
|
|
63
63
|
"@atlaskit/tooltip": "^17.8.0",
|
|
64
64
|
"@atlaskit/ufo": "^0.2.0",
|
|
65
65
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
@@ -79,17 +79,18 @@
|
|
|
79
79
|
"@af/analytics-codegen": "^0.1.0",
|
|
80
80
|
"@atlaskit/docs": "*",
|
|
81
81
|
"@atlaskit/dropdown-menu": "^11.10.0",
|
|
82
|
-
"@atlaskit/link-analytics": "^8.
|
|
82
|
+
"@atlaskit/link-analytics": "^8.1.0",
|
|
83
83
|
"@atlaskit/link-provider": "^1.6.0",
|
|
84
84
|
"@atlaskit/link-test-helpers": "^4.1.0",
|
|
85
|
-
"@atlaskit/linking-common": "^3.
|
|
85
|
+
"@atlaskit/linking-common": "^3.1.0",
|
|
86
86
|
"@atlaskit/popup": "^1.8.0",
|
|
87
87
|
"@atlaskit/toggle": "^12.6.0",
|
|
88
88
|
"@atlaskit/visual-regression": "*",
|
|
89
89
|
"@atlaskit/webdriver-runner": "*",
|
|
90
90
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
91
91
|
"@atlassian/feature-flags-test-utils": "*",
|
|
92
|
-
"@atlassian/
|
|
92
|
+
"@atlassian/gemini-visual-regression": "*",
|
|
93
|
+
"@atlassian/link-picker-atlassian-plugin": "^34.1.0",
|
|
93
94
|
"@atlassian/link-picker-plugins": "^23.0.0",
|
|
94
95
|
"@atlassian/recent-work-client": "^1.8.0",
|
|
95
96
|
"@testing-library/dom": "^8.17.1",
|
|
@@ -108,12 +109,32 @@
|
|
|
108
109
|
"typescript": "~4.9.5"
|
|
109
110
|
},
|
|
110
111
|
"techstack": {
|
|
112
|
+
"@atlassian/frontend": {
|
|
113
|
+
"code-structure": [
|
|
114
|
+
"tangerine-next"
|
|
115
|
+
],
|
|
116
|
+
"import-structure": [
|
|
117
|
+
"atlassian-conventions"
|
|
118
|
+
],
|
|
119
|
+
"circular-dependencies": [
|
|
120
|
+
"file-and-folder-level"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
111
123
|
"@repo/internal": {
|
|
124
|
+
"dom-events": "use-bind-event-listener",
|
|
125
|
+
"analytics": [
|
|
126
|
+
"analytics-next"
|
|
127
|
+
],
|
|
112
128
|
"design-tokens": [
|
|
113
129
|
"color",
|
|
114
130
|
"spacing"
|
|
115
131
|
]
|
|
116
132
|
}
|
|
117
133
|
},
|
|
134
|
+
"techstackIgnore": {
|
|
135
|
+
"stricter": [
|
|
136
|
+
"@atlassian/tangerine/project-structure"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
118
139
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
119
140
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/cjs/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/scrolling-tabs.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/es2019/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/styles.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/esm/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/scrolling-tabs.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/ui/link-picker/{link-search-error → search-results/link-search-error}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/ui/link-picker/{link-search-list → search-results/link-search-list}/styled.d.ts
RENAMED
|
File without changes
|
/package/dist/types/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/types/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/styles.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types-ts4.5/ui/{scrolling-tabs → link-picker/search-results/scrolling-tabs}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|