@atlaskit/link-picker 1.25.1 → 1.25.3
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 +18 -0
- package/CHANGELOG.md +12 -0
- package/compass.yml +43 -0
- package/dist/cjs/common/generic-error-svg/index.js +2 -3
- package/dist/cjs/controllers/use-fix-height/index.js +2 -3
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +2 -2
- package/dist/cjs/ui/error-boundary/index.js +5 -6
- package/dist/cjs/ui/index.js +11 -8
- package/dist/cjs/ui/link-picker/announcer.js +4 -5
- package/dist/cjs/ui/link-picker/form-footer/index.js +4 -5
- package/dist/cjs/ui/link-picker/index.js +21 -22
- package/dist/cjs/ui/link-picker/link-search-error/index.js +4 -5
- package/dist/cjs/ui/link-picker/link-search-list/index.js +8 -13
- package/dist/cjs/ui/link-picker/link-search-list/link-search-no-results/index.js +4 -5
- package/dist/cjs/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.js +2 -3
- package/dist/cjs/ui/link-picker/list-item/index.js +44 -42
- package/dist/cjs/ui/link-picker/text-input/index.js +2 -3
- package/dist/cjs/ui/link-picker/track-mount/index.js +2 -4
- package/dist/cjs/ui/link-picker/track-tab-viewed/index.js +2 -4
- package/dist/cjs/ui/scrolling-tabs/index.js +2 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/generic-error-svg/index.js +2 -3
- package/dist/es2019/controllers/use-fix-height/index.js +2 -3
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +1 -1
- package/dist/es2019/ui/error-boundary/index.js +7 -6
- package/dist/es2019/ui/index.js +7 -4
- package/dist/es2019/ui/link-picker/announcer.js +2 -3
- package/dist/es2019/ui/link-picker/form-footer/index.js +2 -3
- package/dist/es2019/ui/link-picker/index.js +13 -14
- package/dist/es2019/ui/link-picker/link-search-error/index.js +3 -4
- package/dist/es2019/ui/link-picker/link-search-list/index.js +7 -8
- package/dist/es2019/ui/link-picker/link-search-list/link-search-no-results/index.js +3 -4
- package/dist/es2019/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.js +2 -3
- package/dist/es2019/ui/link-picker/list-item/index.js +40 -39
- package/dist/es2019/ui/link-picker/text-input/index.js +2 -3
- package/dist/es2019/ui/link-picker/track-mount/index.js +2 -3
- package/dist/es2019/ui/link-picker/track-tab-viewed/index.js +2 -3
- package/dist/es2019/ui/scrolling-tabs/index.js +1 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/generic-error-svg/index.js +2 -3
- package/dist/esm/controllers/use-fix-height/index.js +2 -3
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +1 -1
- package/dist/esm/ui/error-boundary/index.js +6 -6
- package/dist/esm/ui/index.js +10 -6
- package/dist/esm/ui/link-picker/announcer.js +2 -3
- package/dist/esm/ui/link-picker/form-footer/index.js +2 -3
- package/dist/esm/ui/link-picker/index.js +12 -13
- package/dist/esm/ui/link-picker/link-search-error/index.js +3 -4
- package/dist/esm/ui/link-picker/link-search-list/index.js +7 -9
- package/dist/esm/ui/link-picker/link-search-list/link-search-no-results/index.js +3 -4
- package/dist/esm/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.js +2 -3
- package/dist/esm/ui/link-picker/list-item/index.js +40 -39
- package/dist/esm/ui/link-picker/text-input/index.js +2 -3
- package/dist/esm/ui/link-picker/track-mount/index.js +2 -3
- package/dist/esm/ui/link-picker/track-tab-viewed/index.js +2 -3
- package/dist/esm/ui/scrolling-tabs/index.js +1 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/common/generic-error-svg/index.d.ts +1 -2
- package/dist/types/controllers/use-fix-height/index.d.ts +1 -2
- package/dist/types/ui/error-boundary/index.d.ts +4 -5
- package/dist/types/ui/index.d.ts +0 -1
- package/dist/types/ui/link-picker/announcer.d.ts +2 -2
- package/dist/types/ui/link-picker/form-footer/index.d.ts +2 -2
- package/dist/types/ui/link-picker/index.d.ts +4 -3
- package/dist/types/ui/link-picker/link-search-error/index.d.ts +1 -2
- package/dist/types/ui/link-picker/link-search-list/index.d.ts +4 -3
- package/dist/types/ui/link-picker/link-search-list/link-search-no-results/index.d.ts +1 -2
- package/dist/types/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.d.ts +1 -2
- package/dist/types/ui/link-picker/list-item/index.d.ts +6 -3
- package/dist/types/ui/link-picker/text-input/index.d.ts +1 -2
- package/dist/types/ui/link-picker/track-mount/index.d.ts +1 -2
- package/dist/types/ui/link-picker/track-tab-viewed/index.d.ts +1 -2
- package/dist/types/ui/scrolling-tabs/index.d.ts +1 -1
- package/dist/types-ts4.5/common/generic-error-svg/index.d.ts +1 -2
- package/dist/types-ts4.5/controllers/use-fix-height/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/error-boundary/index.d.ts +4 -5
- package/dist/types-ts4.5/ui/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-picker/announcer.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/index.d.ts +4 -3
- package/dist/types-ts4.5/ui/link-picker/link-search-error/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/link-search-list/index.d.ts +4 -3
- package/dist/types-ts4.5/ui/link-picker/link-search-list/link-search-no-results/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/list-item/index.d.ts +6 -3
- package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/track-mount/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/link-picker/track-tab-viewed/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/scrolling-tabs/index.d.ts +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
declare const GenericErrorSVG: (props: React.SVGProps<SVGSVGElement>) => jsx.JSX.Element;
|
|
4
|
-
export default GenericErrorSVG;
|
|
3
|
+
export declare const GenericErrorSVG: (props: React.SVGProps<SVGSVGElement>) => jsx.JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const useFixHeight: (shouldFixHeight: boolean) => {
|
|
2
|
+
export declare const useFixHeight: (shouldFixHeight: boolean) => {
|
|
3
3
|
ref: import("react").RefObject<HTMLDivElement>;
|
|
4
4
|
style: {
|
|
5
5
|
minHeight: string | number;
|
|
6
6
|
} | undefined;
|
|
7
7
|
};
|
|
8
|
-
export default useFixHeight;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
interface ErrorBoundaryProps extends WithAnalyticsEventsProps {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ErrorBoundaryProps {
|
|
4
3
|
children: ReactNode;
|
|
5
4
|
}
|
|
6
|
-
declare
|
|
7
|
-
export
|
|
5
|
+
export declare function ErrorBoundary({ children }: ErrorBoundaryProps): JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -18,5 +18,5 @@ type AnnouncerProps = {
|
|
|
18
18
|
* It can be useful for cases when the parent component re-renders with the same announcer's text. */
|
|
19
19
|
delay?: number;
|
|
20
20
|
};
|
|
21
|
-
declare const
|
|
22
|
-
export
|
|
21
|
+
export declare const Announcer: React.FC<AnnouncerProps>;
|
|
22
|
+
export {};
|
|
@@ -18,5 +18,5 @@ interface FormFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
18
18
|
onCancel?: () => void;
|
|
19
19
|
action?: LinkPickerPluginAction;
|
|
20
20
|
}
|
|
21
|
-
declare const
|
|
22
|
-
export
|
|
21
|
+
export declare const FormFooter: import("react").MemoExoticComponent<({ isLoading, error, url, queryState, items, isEditing, onCancel, action, ...restProps }: FormFooterProps) => jsx.JSX.Element | null>;
|
|
22
|
+
export {};
|
|
@@ -8,10 +8,11 @@ export declare const testIds: {
|
|
|
8
8
|
readonly urlError: string;
|
|
9
9
|
readonly clearUrlButton: string;
|
|
10
10
|
readonly resultListTitle: string;
|
|
11
|
-
readonly searchResultItem: string;
|
|
12
11
|
readonly searchResultList: string;
|
|
13
12
|
readonly searchResultLoadingIndicator: string;
|
|
14
13
|
readonly tabsLoadingIndicator: string;
|
|
14
|
+
readonly searchResultItem: string;
|
|
15
|
+
readonly searchResultIcon: string;
|
|
15
16
|
readonly emptyResultPage: string;
|
|
16
17
|
readonly searchError: string;
|
|
17
18
|
readonly insertButton: "link-picker-insert-button";
|
|
@@ -79,5 +80,5 @@ export interface PickerState {
|
|
|
79
80
|
/** When true, even if the selected index is -1, don't hide the recents. */
|
|
80
81
|
preventHidingRecents: boolean;
|
|
81
82
|
}
|
|
82
|
-
declare const
|
|
83
|
-
export
|
|
83
|
+
export declare const LinkPicker: import("react").ComponentType<LinkPickerProps>;
|
|
84
|
+
export {};
|
|
@@ -20,10 +20,11 @@ export declare const messages: {
|
|
|
20
20
|
};
|
|
21
21
|
export declare const testIds: {
|
|
22
22
|
resultListTitle: string;
|
|
23
|
-
searchResultItem: string;
|
|
24
23
|
searchResultList: string;
|
|
25
24
|
searchResultLoadingIndicator: string;
|
|
26
25
|
tabsLoadingIndicator: string;
|
|
26
|
+
searchResultItem: string;
|
|
27
|
+
searchResultIcon: string;
|
|
27
28
|
emptyResultPage: string;
|
|
28
29
|
};
|
|
29
30
|
type LinkSearchListElement = HTMLElement;
|
|
@@ -42,5 +43,5 @@ export interface LinkSearchListProps extends Omit<React.HTMLAttributes<LinkSearc
|
|
|
42
43
|
hasSearchTerm?: boolean;
|
|
43
44
|
activePlugin?: LinkPickerPlugin;
|
|
44
45
|
}
|
|
45
|
-
declare const LinkSearchList: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
|
-
export
|
|
46
|
+
export declare const LinkSearchList: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
47
|
+
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { KeyboardEvent } from 'react';
|
|
3
3
|
import { LinkSearchListItemData } from '../../types';
|
|
4
|
-
export
|
|
4
|
+
export declare const testIds: {
|
|
5
|
+
searchResultItem: string;
|
|
6
|
+
searchResultIcon: string;
|
|
7
|
+
};
|
|
8
|
+
export interface LinkSearchListItemProps {
|
|
5
9
|
item: LinkSearchListItemData;
|
|
6
10
|
selected: boolean;
|
|
7
11
|
active: boolean;
|
|
@@ -12,5 +16,4 @@ export interface Props {
|
|
|
12
16
|
id?: string;
|
|
13
17
|
role?: string;
|
|
14
18
|
}
|
|
15
|
-
declare const LinkSearchListItem: import("react").ForwardRefExoticComponent<
|
|
16
|
-
export default LinkSearchListItem;
|
|
19
|
+
export declare const LinkSearchListItem: import("react").ForwardRefExoticComponent<LinkSearchListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -15,5 +15,4 @@ export declare const testIds: {
|
|
|
15
15
|
urlError: string;
|
|
16
16
|
clearUrlButton: string;
|
|
17
17
|
};
|
|
18
|
-
declare const TextInput: ({ name, label, autoFocus, onRedo, onUndo, onKeyDown, onClear, clearLabel, error, spotlightTargetName, ...restProps }: TextInputProps) => jsx.JSX.Element;
|
|
19
|
-
export default TextInput;
|
|
18
|
+
export declare const TextInput: ({ name, label, autoFocus, onRedo, onUndo, onKeyDown, onClear, clearLabel, error, spotlightTargetName, ...restProps }: TextInputProps) => jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.3",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -52,7 +52,7 @@
|
|
|
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": "^
|
|
55
|
+
"@atlaskit/linking-common": "^3.0.0",
|
|
56
56
|
"@atlaskit/onboarding": "^10.8.2",
|
|
57
57
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
58
58
|
"@atlaskit/spinner": "^15.5.0",
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@af/analytics-codegen": "^0.1.0",
|
|
80
80
|
"@atlaskit/docs": "*",
|
|
81
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
81
|
+
"@atlaskit/dropdown-menu": "^11.10.0",
|
|
82
82
|
"@atlaskit/link-analytics": "^8.0.0",
|
|
83
83
|
"@atlaskit/link-provider": "^1.6.0",
|
|
84
|
-
"@atlaskit/link-test-helpers": "^4.
|
|
85
|
-
"@atlaskit/linking-common": "^
|
|
86
|
-
"@atlaskit/popup": "^1.
|
|
84
|
+
"@atlaskit/link-test-helpers": "^4.1.0",
|
|
85
|
+
"@atlaskit/linking-common": "^3.0.0",
|
|
86
|
+
"@atlaskit/popup": "^1.8.0",
|
|
87
87
|
"@atlaskit/toggle": "^12.6.0",
|
|
88
88
|
"@atlaskit/visual-regression": "*",
|
|
89
89
|
"@atlaskit/webdriver-runner": "*",
|