@atlaskit/link-picker 1.36.2 → 1.37.1
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/.eslintrc.js +22 -22
- package/CHANGELOG.md +517 -507
- package/CONTRIBUTING.md +3 -0
- package/LICENSE.md +6 -8
- package/dist/cjs/ui/index.js +1 -1
- package/dist/cjs/ui/link-picker/announcer.js +1 -0
- package/dist/cjs/ui/link-picker/index.js +1 -1
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +3 -1
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/styles.js +4 -0
- package/dist/cjs/ui/link-picker/styled.js +1 -1
- package/dist/es2019/ui/index.js +1 -1
- package/dist/es2019/ui/link-picker/announcer.js +1 -0
- package/dist/es2019/ui/link-picker/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +3 -1
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/styles.js +4 -0
- package/dist/es2019/ui/link-picker/styled.js +8 -8
- package/dist/esm/ui/index.js +1 -1
- package/dist/esm/ui/link-picker/announcer.js +1 -0
- package/dist/esm/ui/link-picker/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +3 -1
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/styles.js +4 -0
- package/dist/esm/ui/link-picker/styled.js +1 -1
- package/dist/types/common/analytics/context.d.ts +2 -2
- package/dist/types/common/analytics/experiences.d.ts +1 -1
- package/dist/types/common/analytics/index.d.ts +1 -1
- package/dist/types/common/analytics/input-field-tracking.d.ts +1 -1
- package/dist/types/common/types.d.ts +2 -2
- package/dist/types/common/ui/empty-state/index.d.ts +1 -1
- package/dist/types/common/utils/handleNavKeyDown.d.ts +1 -1
- package/dist/types/controllers/session-provider/index.d.ts +2 -2
- 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 -1
- package/dist/types/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types/ui/error-boundary/index.d.ts +1 -1
- package/dist/types/ui/index.d.ts +2 -2
- package/dist/types/ui/link-picker/announcer.d.ts +1 -1
- package/dist/types/ui/link-picker/form-footer/index.d.ts +2 -2
- package/dist/types/ui/link-picker/form-footer/utils.d.ts +1 -1
- package/dist/types/ui/link-picker/index.d.ts +3 -3
- package/dist/types/ui/link-picker/search-results/index.d.ts +2 -2
- package/dist/types/ui/link-picker/search-results/link-search-list/index.d.ts +2 -2
- package/dist/types/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +2 -2
- package/dist/types/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.d.ts +1 -1
- package/dist/types/ui/link-picker/search-results/scrolling-tabs/scrolling-tabs.d.ts +1 -1
- package/dist/types/ui/link-picker/search-results/scrolling-tabs/styles.d.ts +1 -1
- package/dist/types/ui/link-picker/search-results/track-tab-viewed/index.d.ts +2 -2
- package/dist/types/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.d.ts +1 -1
- package/dist/types/ui/link-picker/text-input/index.d.ts +2 -2
- package/dist/types/ui/link-picker/text-input/utils.d.ts +1 -1
- package/dist/types/ui/link-picker/transformTimeStamp.d.ts +1 -1
- package/dist/types/ui/link-picker/utils.d.ts +2 -2
- package/dist/types/ui/messages-provider/lazy-messages-provider/index.d.ts +1 -1
- package/dist/types/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/context.d.ts +2 -2
- package/dist/types-ts4.5/common/analytics/experiences.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/input-field-tracking.d.ts +1 -1
- package/dist/types-ts4.5/common/types.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/empty-state/index.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/handleNavKeyDown.d.ts +1 -1
- package/dist/types-ts4.5/controllers/session-provider/index.d.ts +2 -2
- 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 -1
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/error-boundary/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/announcer.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +2 -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 +3 -3
- package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/scrolling-tabs.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/styles.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/track-tab-viewed/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/text-input/utils.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/transformTimeStamp.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/utils.d.ts +2 -2
- package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts +1 -1
- package/package.json +13 -15
- package/report.api.md +75 -82
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { PackageMetaDataType } from '../common/utils/analytics/analytics.codegen';
|
|
5
|
-
import { LinkPickerProps } from './link-picker';
|
|
4
|
+
import { type PackageMetaDataType } from '../common/utils/analytics/analytics.codegen';
|
|
5
|
+
import { type LinkPickerProps } from './link-picker';
|
|
6
6
|
export declare const testIds: {
|
|
7
7
|
linkPickerRoot: string;
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
4
|
-
import { LinkPickerPluginAction, LinkPickerState, LinkSearchListItemData } from '../../../common/types';
|
|
3
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
4
|
+
import { type LinkPickerPluginAction, type LinkPickerState, type LinkSearchListItemData } from '../../../common/types';
|
|
5
5
|
export declare const messages: {
|
|
6
6
|
cancelButton: {
|
|
7
7
|
id: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LinkPickerState, LinkSearchListItemData } from '../../../common/types';
|
|
1
|
+
import { type LinkPickerState, type LinkSearchListItemData } from '../../../common/types';
|
|
2
2
|
export declare const checkSubmitDisabled: (isLoading: boolean, isSubmitting: boolean, error: unknown | null, url: string, queryState: LinkPickerState | null, items: LinkSearchListItemData[] | null) => boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
3
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
-
import { LinkInputType, LinkPickerPlugin } from '../../common/types';
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
import { type LinkInputType, type LinkPickerPlugin } from '../../common/types';
|
|
5
5
|
export declare const testIds: {
|
|
6
6
|
readonly urlError: string;
|
|
7
7
|
readonly clearUrlButton: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { KeyboardEvent } from 'react';
|
|
2
|
+
import { type KeyboardEvent } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { LinkPickerPlugin, LinkSearchListItemData } from '../../../common/types';
|
|
4
|
+
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../common/types';
|
|
5
5
|
export declare const testIds: {
|
|
6
6
|
tabsLoadingIndicator: string;
|
|
7
7
|
tabList: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { KeyboardEvent } from 'react';
|
|
3
|
-
import { LinkPickerPlugin, LinkSearchListItemData } from '../../../../common/types';
|
|
2
|
+
import { type KeyboardEvent } from 'react';
|
|
3
|
+
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../../common/types';
|
|
4
4
|
export declare const messages: {
|
|
5
5
|
titleRecentlyViewed: {
|
|
6
6
|
id: string;
|
package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { KeyboardEvent } from 'react';
|
|
3
|
-
import { LinkSearchListItemData } from '../../../../../common/types';
|
|
2
|
+
import { type KeyboardEvent } from 'react';
|
|
3
|
+
import { type 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 '../../../../../common/types';
|
|
1
|
+
import { type LinkSearchListItemData } from '../../../../../common/types';
|
|
2
2
|
export declare const useTrackResultsShown: (isLoading: boolean, items?: LinkSearchListItemData[] | null | undefined, hasSearchTerm?: boolean) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SerializedStyles } from '@emotion/react';
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
2
|
export declare const scrollingContainerStyles: SerializedStyles;
|
|
3
3
|
export declare const containerStyles: SerializedStyles;
|
|
4
4
|
export declare const buttonContainerStyles: SerializedStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkPickerPlugin } from '../../../../common/types';
|
|
2
|
-
export declare function TrackTabViewed({ activePlugin
|
|
1
|
+
import { type LinkPickerPlugin } from '../../../../common/types';
|
|
2
|
+
export declare function TrackTabViewed({ activePlugin }: {
|
|
3
3
|
activePlugin: LinkPickerPlugin | undefined;
|
|
4
4
|
}): null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { TextFieldProps } from '@atlaskit/textfield';
|
|
3
|
-
import { ConditionalSpotlightTargetWrapperProps } from './conditional-spotlight-target-wrapper';
|
|
2
|
+
import { type TextFieldProps } from '@atlaskit/textfield';
|
|
3
|
+
import { type 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,2 +1,2 @@
|
|
|
1
|
-
import { IntlShape } from 'react-intl-next';
|
|
1
|
+
import { type IntlShape } from 'react-intl-next';
|
|
2
2
|
export declare const transformTimeStamp: (intl: IntlShape, lastViewedDate?: Date, lastUpdatedDate?: Date) => string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IntlShape } from 'react-intl-next';
|
|
2
|
-
import { LinkPickerPlugin, LinkSearchListItemData } from '../../common/types';
|
|
1
|
+
import { type IntlShape } from 'react-intl-next';
|
|
2
|
+
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../common/types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieve the data source for a link given the item and the plugin that resolved it
|
|
5
5
|
*/
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
type LazyMessagesProviderProps = {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
};
|
|
5
|
-
export declare const LazyMessagesProvider: ({ children
|
|
5
|
+
export declare const LazyMessagesProvider: ({ children }: LazyMessagesProviderProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { I18NMessages } from '@atlaskit/intl-messages-provider';
|
|
1
|
+
import { type I18NMessages } from '@atlaskit/intl-messages-provider';
|
|
2
2
|
export declare const fetchMessagesForLocale: (locale: string) => Promise<I18NMessages | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.1",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -59,23 +59,23 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
62
|
-
"@atlaskit/button": "^17.
|
|
62
|
+
"@atlaskit/button": "^17.17.0",
|
|
63
63
|
"@atlaskit/empty-state": "^7.8.0",
|
|
64
|
-
"@atlaskit/form": "^10.
|
|
64
|
+
"@atlaskit/form": "^10.3.0",
|
|
65
65
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
66
66
|
"@atlaskit/heading": "^2.3.0",
|
|
67
|
-
"@atlaskit/icon": "^22.
|
|
67
|
+
"@atlaskit/icon": "^22.3.0",
|
|
68
68
|
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
69
|
-
"@atlaskit/linking-common": "^5.
|
|
69
|
+
"@atlaskit/linking-common": "^5.7.0",
|
|
70
70
|
"@atlaskit/onboarding": "^11.5.0",
|
|
71
71
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
72
|
-
"@atlaskit/primitives": "^
|
|
72
|
+
"@atlaskit/primitives": "^7.0.0",
|
|
73
73
|
"@atlaskit/spinner": "^16.1.0",
|
|
74
74
|
"@atlaskit/tabs": "^16.1.0",
|
|
75
75
|
"@atlaskit/textfield": "^6.3.0",
|
|
76
|
-
"@atlaskit/theme": "^12.
|
|
77
|
-
"@atlaskit/tokens": "^1.
|
|
78
|
-
"@atlaskit/tooltip": "^18.
|
|
76
|
+
"@atlaskit/theme": "^12.9.0",
|
|
77
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
78
|
+
"@atlaskit/tooltip": "^18.4.0",
|
|
79
79
|
"@atlaskit/ufo": "^0.2.0",
|
|
80
80
|
"@atlaskit/visually-hidden": "^1.3.0",
|
|
81
81
|
"@babel/runtime": "^7.0.0",
|
|
@@ -94,14 +94,13 @@
|
|
|
94
94
|
"@af/analytics-codegen": "^0.1.0",
|
|
95
95
|
"@af/integration-testing": "*",
|
|
96
96
|
"@af/visual-regression": "*",
|
|
97
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
98
|
-
"@atlaskit/link-provider": "^1.
|
|
97
|
+
"@atlaskit/dropdown-menu": "^12.11.0",
|
|
98
|
+
"@atlaskit/link-provider": "^1.10.0",
|
|
99
99
|
"@atlaskit/link-test-helpers": "^7.0.0",
|
|
100
100
|
"@atlaskit/visual-regression": "*",
|
|
101
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
102
101
|
"@atlassian/feature-flags-test-utils": "*",
|
|
103
102
|
"@testing-library/dom": "^8.17.1",
|
|
104
|
-
"@testing-library/jest-dom": "^
|
|
103
|
+
"@testing-library/jest-dom": "^6.4.5",
|
|
105
104
|
"@testing-library/react": "^12.1.5",
|
|
106
105
|
"@testing-library/react-hooks": "^8.0.1",
|
|
107
106
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -145,6 +144,5 @@
|
|
|
145
144
|
"stricter": [
|
|
146
145
|
"@atlassian/tangerine/project-structure"
|
|
147
146
|
]
|
|
148
|
-
}
|
|
149
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
147
|
+
}
|
|
150
148
|
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/link-picker"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -27,125 +28,117 @@ import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
27
28
|
export type LinkInputType = 'manual' | 'typeAhead';
|
|
28
29
|
|
|
29
30
|
// @public (undocumented)
|
|
30
|
-
export const LinkPicker: React_2.MemoExoticComponent<
|
|
31
|
-
(props: LinkPickerProps) => jsx.JSX.Element
|
|
32
|
-
>;
|
|
31
|
+
export const LinkPicker: React_2.MemoExoticComponent<(props: LinkPickerProps) => jsx.JSX.Element>;
|
|
33
32
|
|
|
34
33
|
// @public (undocumented)
|
|
35
34
|
export interface LinkPickerPlugin {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
action?: LinkPickerPluginAction;
|
|
36
|
+
emptyStateNoResults?: LinkPickerPluginEmptyStateNoResults;
|
|
37
|
+
errorFallback?: LinkPickerPluginErrorFallback;
|
|
38
|
+
meta?: {
|
|
39
|
+
source?: string;
|
|
40
|
+
};
|
|
41
|
+
// (undocumented)
|
|
42
|
+
resolve: (
|
|
43
|
+
state: LinkPickerState,
|
|
44
|
+
) => AsyncGenerator<ResolveResult, ResolveResult> | Promise<ResolveResult>;
|
|
45
|
+
tabKey?: string;
|
|
46
|
+
tabTitle?: string;
|
|
47
|
+
UNSAFE_onActivation?: () => void;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
// @public (undocumented)
|
|
52
51
|
export interface LinkPickerPluginAction {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
// (undocumented)
|
|
53
|
+
callback: () => void;
|
|
54
|
+
// (undocumented)
|
|
55
|
+
label: MessageDescriptor | string;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
// @public (undocumented)
|
|
60
59
|
export type LinkPickerPluginEmptyStateNoResults = () => ReactNode;
|
|
61
60
|
|
|
62
61
|
// @public (undocumented)
|
|
63
|
-
export type LinkPickerPluginErrorFallback = (
|
|
64
|
-
error: unknown,
|
|
65
|
-
retry: () => void,
|
|
66
|
-
) => ReactNode;
|
|
62
|
+
export type LinkPickerPluginErrorFallback = (error: unknown, retry: () => void) => ReactNode;
|
|
67
63
|
|
|
68
64
|
// @public (undocumented)
|
|
69
65
|
export interface LinkPickerProps {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
paddingTop?: string;
|
|
91
|
-
plugins?: LinkPickerPlugin[];
|
|
92
|
-
url?: string;
|
|
66
|
+
component?: React.ComponentType<
|
|
67
|
+
Partial<LinkPickerProps> & {
|
|
68
|
+
children: React.ReactElement;
|
|
69
|
+
}
|
|
70
|
+
>;
|
|
71
|
+
disableWidth?: boolean;
|
|
72
|
+
displayText?: null | string;
|
|
73
|
+
// (undocumented)
|
|
74
|
+
featureFlags?: Record<string, unknown>;
|
|
75
|
+
hideDisplayText?: boolean;
|
|
76
|
+
isLoadingPlugins?: boolean;
|
|
77
|
+
onCancel: () => void;
|
|
78
|
+
onContentResize?: () => void;
|
|
79
|
+
onSubmit: (arg: OnSubmitParameter, analytic?: UIAnalyticsEvent | null) => void;
|
|
80
|
+
paddingBottom?: string;
|
|
81
|
+
paddingLeft?: string;
|
|
82
|
+
paddingRight?: string;
|
|
83
|
+
paddingTop?: string;
|
|
84
|
+
plugins?: LinkPickerPlugin[];
|
|
85
|
+
url?: string;
|
|
93
86
|
}
|
|
94
87
|
|
|
95
88
|
// @public (undocumented)
|
|
96
89
|
export interface LinkPickerState {
|
|
97
|
-
|
|
90
|
+
query: string;
|
|
98
91
|
}
|
|
99
92
|
|
|
100
93
|
// @public (undocumented)
|
|
101
94
|
export interface LinkSearchListItemData {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
95
|
+
container?: string;
|
|
96
|
+
icon:
|
|
97
|
+
| React.ComponentType<{
|
|
98
|
+
alt: string;
|
|
99
|
+
}>
|
|
100
|
+
| string;
|
|
101
|
+
iconAlt: MessageDescriptor | string;
|
|
102
|
+
lastUpdatedDate?: Date;
|
|
103
|
+
lastViewedDate?: Date;
|
|
104
|
+
meta?: {
|
|
105
|
+
source?: string;
|
|
106
|
+
};
|
|
107
|
+
name: string;
|
|
108
|
+
objectId: string;
|
|
109
|
+
prefetch?: boolean;
|
|
110
|
+
url: string;
|
|
118
111
|
}
|
|
119
112
|
|
|
120
113
|
// @public (undocumented)
|
|
121
114
|
interface Meta {
|
|
122
|
-
|
|
115
|
+
inputMethod: LinkInputType;
|
|
123
116
|
}
|
|
124
117
|
|
|
125
118
|
// @public (undocumented)
|
|
126
119
|
interface OnSubmitParameter {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
120
|
+
displayText: null | string;
|
|
121
|
+
meta: Meta;
|
|
122
|
+
rawUrl?: string;
|
|
123
|
+
title: null | string;
|
|
124
|
+
url: string;
|
|
132
125
|
}
|
|
133
126
|
|
|
134
127
|
// @public (undocumented)
|
|
135
128
|
interface ResolveResult {
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
// (undocumented)
|
|
130
|
+
data: LinkSearchListItemData[];
|
|
138
131
|
}
|
|
139
132
|
|
|
140
133
|
// @public (undocumented)
|
|
141
134
|
export class UnauthenticatedError extends Error {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
135
|
+
constructor(iconUrl: string, authUrl: string, description: string);
|
|
136
|
+
// (undocumented)
|
|
137
|
+
authUrl: string;
|
|
138
|
+
// (undocumented)
|
|
139
|
+
description: string;
|
|
140
|
+
// (undocumented)
|
|
141
|
+
iconUrl: string;
|
|
149
142
|
}
|
|
150
143
|
|
|
151
144
|
// (No @packageDocumentation comment for this package)
|
|
@@ -159,8 +152,8 @@ export class UnauthenticatedError extends Error {
|
|
|
159
152
|
|
|
160
153
|
```json
|
|
161
154
|
{
|
|
162
|
-
|
|
163
|
-
|
|
155
|
+
"react": "^16.8.0",
|
|
156
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
164
157
|
}
|
|
165
158
|
```
|
|
166
159
|
|