@atlaskit/link-picker 1.36.1 → 1.37.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 +516 -506
- package/CONTRIBUTING.md +3 -0
- package/dist/cjs/ui/index.js +1 -1
- package/dist/cjs/ui/link-picker/announcer.js +1 -0
- 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/es2019/ui/index.js +1 -1
- package/dist/es2019/ui/link-picker/announcer.js +1 -0
- 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/esm/ui/index.js +1 -1
- package/dist/esm/ui/link-picker/announcer.js +1 -0
- 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/types/common/analytics/context.d.ts +2 -2
- package/dist/types/common/analytics/experiences.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/utils/handleNavKeyDown.d.ts +1 -1
- package/dist/types/controllers/session-provider/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 -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 +1 -1
- 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/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/input-field-tracking.d.ts +1 -1
- package/dist/types-ts4.5/common/types.d.ts +2 -2
- package/dist/types-ts4.5/common/utils/handleNavKeyDown.d.ts +1 -1
- package/dist/types-ts4.5/controllers/session-provider/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 -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 +1 -1
- 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/utils/fetch-messages-for-locale.d.ts +1 -1
- package/package.json +11 -13
package/CONTRIBUTING.md
ADDED
package/dist/cjs/ui/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var testIds = exports.testIds = {
|
|
|
26
26
|
};
|
|
27
27
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
28
28
|
packageName: "@atlaskit/link-picker" || '',
|
|
29
|
-
packageVersion: "1.
|
|
29
|
+
packageVersion: "1.37.0" || '',
|
|
30
30
|
componentName: _constants.COMPONENT_NAME,
|
|
31
31
|
source: _constants.COMPONENT_NAME
|
|
32
32
|
};
|
|
@@ -52,6 +52,7 @@ var Announcer = exports.Announcer = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/
|
|
|
52
52
|
};
|
|
53
53
|
}, [text, delay]);
|
|
54
54
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
55
56
|
className: "assistive",
|
|
56
57
|
ref: ref,
|
|
57
58
|
role: role,
|
|
@@ -127,7 +127,9 @@ var ScrollingTabList = exports.ScrollingTabList = function ScrollingTabList(prop
|
|
|
127
127
|
css: _styles.containerStyles,
|
|
128
128
|
ref: ref,
|
|
129
129
|
"data-testid": "scrolling-tabs"
|
|
130
|
-
}, conditionalButtons.back &&
|
|
130
|
+
}, conditionalButtons.back &&
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
132
|
+
(0, _react2.jsx)("div", {
|
|
131
133
|
className: "back",
|
|
132
134
|
css: _styles.backButtonStyles
|
|
133
135
|
}, (0, _react2.jsx)(_button.default, (0, _extends2.default)({
|
|
@@ -46,9 +46,13 @@ var buttonContainerStyles = exports.buttonContainerStyles = (0, _react.css)({
|
|
|
46
46
|
zIndex: 999,
|
|
47
47
|
backgroundColor: "var(--ds-surface, ".concat(_colors.N0, ")")
|
|
48
48
|
});
|
|
49
|
+
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
49
51
|
var backButtonStyles = exports.backButtonStyles = (0, _react.css)([buttonContainerStyles, {
|
|
50
52
|
left: 0
|
|
51
53
|
}]);
|
|
54
|
+
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
52
56
|
var nextButtonStyles = exports.nextButtonStyles = (0, _react.css)([buttonContainerStyles, {
|
|
53
57
|
right: 0
|
|
54
58
|
}]);
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -32,6 +32,7 @@ export const Announcer = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
32
32
|
return () => clearTimeout(timer);
|
|
33
33
|
}, [text, delay]);
|
|
34
34
|
return /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
35
36
|
className: "assistive",
|
|
36
37
|
ref: ref,
|
|
37
38
|
role: role,
|
|
@@ -94,7 +94,9 @@ export const ScrollingTabList = props => {
|
|
|
94
94
|
css: containerStyles,
|
|
95
95
|
ref: ref,
|
|
96
96
|
"data-testid": "scrolling-tabs"
|
|
97
|
-
}, conditionalButtons.back &&
|
|
97
|
+
}, conditionalButtons.back &&
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
99
|
+
jsx("div", {
|
|
98
100
|
className: "back",
|
|
99
101
|
css: backButtonStyles
|
|
100
102
|
}, jsx(Button, _extends({
|
|
@@ -40,9 +40,13 @@ export const buttonContainerStyles = css({
|
|
|
40
40
|
zIndex: 999,
|
|
41
41
|
backgroundColor: `var(--ds-surface, ${N0})`
|
|
42
42
|
});
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
43
45
|
export const backButtonStyles = css([buttonContainerStyles, {
|
|
44
46
|
left: 0
|
|
45
47
|
}]);
|
|
48
|
+
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
46
50
|
export const nextButtonStyles = css([buttonContainerStyles, {
|
|
47
51
|
right: 0
|
|
48
52
|
}]);
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -43,6 +43,7 @@ export var Announcer = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref
|
|
|
43
43
|
};
|
|
44
44
|
}, [text, delay]);
|
|
45
45
|
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
46
47
|
className: "assistive",
|
|
47
48
|
ref: ref,
|
|
48
49
|
role: role,
|
|
@@ -118,7 +118,9 @@ export var ScrollingTabList = function ScrollingTabList(props) {
|
|
|
118
118
|
css: containerStyles,
|
|
119
119
|
ref: ref,
|
|
120
120
|
"data-testid": "scrolling-tabs"
|
|
121
|
-
}, conditionalButtons.back &&
|
|
121
|
+
}, conditionalButtons.back &&
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
123
|
+
jsx("div", {
|
|
122
124
|
className: "back",
|
|
123
125
|
css: backButtonStyles
|
|
124
126
|
}, jsx(Button, _extends({
|
|
@@ -40,9 +40,13 @@ export var buttonContainerStyles = css({
|
|
|
40
40
|
zIndex: 999,
|
|
41
41
|
backgroundColor: "var(--ds-surface, ".concat(N0, ")")
|
|
42
42
|
});
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
43
45
|
export var backButtonStyles = css([buttonContainerStyles, {
|
|
44
46
|
left: 0
|
|
45
47
|
}]);
|
|
48
|
+
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
46
50
|
export var nextButtonStyles = css([buttonContainerStyles, {
|
|
47
51
|
right: 0
|
|
48
52
|
}]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LinkPickerProps } from '../../index';
|
|
3
|
-
import { LinkPickerAnalyticsContextType } from '../utils/analytics/analytics.codegen';
|
|
2
|
+
import { type LinkPickerProps } from '../../index';
|
|
3
|
+
import { type LinkPickerAnalyticsContextType } from '../utils/analytics/analytics.codegen';
|
|
4
4
|
type AnalyticsContextAttributesType = LinkPickerAnalyticsContextType;
|
|
5
5
|
export type TrackAttribute = <K extends keyof LinkPickerAnalyticsContextType>(attribute: K, value: AnalyticsContextAttributesType[K]) => void;
|
|
6
6
|
interface AnalyticsContextType {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LinkPickerAnalyticsContextType } from '../../common/utils/analytics/analytics.codegen';
|
|
2
|
+
import { type LinkPickerAnalyticsContextType } from '../../common/utils/analytics/analytics.codegen';
|
|
3
3
|
type InputFields = 'link' | 'displayText';
|
|
4
4
|
/**
|
|
5
5
|
* Wraps an input field and connects it to the link picker analytics context to provide a baseline of analytics tracking
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
export type LinkInputType = 'manual' | 'typeAhead';
|
|
4
4
|
export interface LinkSearchListItemData {
|
|
5
5
|
/** Unique identifiable attribute for the item */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { KeyboardEvent } from 'react';
|
|
1
|
+
import { type KeyboardEvent } from 'react';
|
|
2
2
|
export declare const handleNavKeyDown: (event: KeyboardEvent<HTMLElement>, itemsLength: number, activeIndex: number) => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkPickerPlugin, LinkPickerState, ResolveResult } from '../../common/types';
|
|
1
|
+
import { type LinkPickerPlugin, type LinkPickerState, type ResolveResult } from '../../common/types';
|
|
2
2
|
export declare class CancellationError extends Error {
|
|
3
3
|
}
|
|
4
4
|
export declare const cancellable: <T extends unknown>(promise: Promise<T>) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LinkPickerState, PickerState } from '../../common/types';
|
|
1
|
+
import { type LinkPickerState, type PickerState } from '../../common/types';
|
|
2
2
|
export declare function useSearchQuery(state: PickerState): LinkPickerState | null;
|
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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;
|
package/dist/types/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.d.ts
CHANGED
|
@@ -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,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
|
*/
|
package/dist/types/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LinkPickerProps } from '../../index';
|
|
3
|
-
import { LinkPickerAnalyticsContextType } from '../utils/analytics/analytics.codegen';
|
|
2
|
+
import { type LinkPickerProps } from '../../index';
|
|
3
|
+
import { type LinkPickerAnalyticsContextType } from '../utils/analytics/analytics.codegen';
|
|
4
4
|
type AnalyticsContextAttributesType = LinkPickerAnalyticsContextType;
|
|
5
5
|
export type TrackAttribute = <K extends keyof LinkPickerAnalyticsContextType>(attribute: K, value: AnalyticsContextAttributesType[K]) => void;
|
|
6
6
|
interface AnalyticsContextType {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LinkPickerAnalyticsContextType } from '../../common/utils/analytics/analytics.codegen';
|
|
2
|
+
import { type LinkPickerAnalyticsContextType } from '../../common/utils/analytics/analytics.codegen';
|
|
3
3
|
type InputFields = 'link' | 'displayText';
|
|
4
4
|
/**
|
|
5
5
|
* Wraps an input field and connects it to the link picker analytics context to provide a baseline of analytics tracking
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
export type LinkInputType = 'manual' | 'typeAhead';
|
|
4
4
|
export interface LinkSearchListItemData {
|
|
5
5
|
/** Unique identifiable attribute for the item */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { KeyboardEvent } from 'react';
|
|
1
|
+
import { type KeyboardEvent } from 'react';
|
|
2
2
|
export declare const handleNavKeyDown: (event: KeyboardEvent<HTMLElement>, itemsLength: number, activeIndex: number) => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkPickerPlugin, LinkPickerState, ResolveResult } from '../../common/types';
|
|
1
|
+
import { type LinkPickerPlugin, type LinkPickerState, type ResolveResult } from '../../common/types';
|
|
2
2
|
export declare class CancellationError extends Error {
|
|
3
3
|
}
|
|
4
4
|
export declare const cancellable: <T extends unknown>(promise: Promise<T>) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LinkPickerState, PickerState } from '../../common/types';
|
|
1
|
+
import { type LinkPickerState, type PickerState } from '../../common/types';
|
|
2
2
|
export declare function useSearchQuery(state: PickerState): LinkPickerState | null;
|
|
@@ -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,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;
|