@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.
Files changed (90) hide show
  1. package/.eslintrc.js +18 -0
  2. package/CHANGELOG.md +12 -0
  3. package/compass.yml +43 -0
  4. package/dist/cjs/common/generic-error-svg/index.js +2 -3
  5. package/dist/cjs/controllers/use-fix-height/index.js +2 -3
  6. package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +2 -2
  7. package/dist/cjs/ui/error-boundary/index.js +5 -6
  8. package/dist/cjs/ui/index.js +11 -8
  9. package/dist/cjs/ui/link-picker/announcer.js +4 -5
  10. package/dist/cjs/ui/link-picker/form-footer/index.js +4 -5
  11. package/dist/cjs/ui/link-picker/index.js +21 -22
  12. package/dist/cjs/ui/link-picker/link-search-error/index.js +4 -5
  13. package/dist/cjs/ui/link-picker/link-search-list/index.js +8 -13
  14. package/dist/cjs/ui/link-picker/link-search-list/link-search-no-results/index.js +4 -5
  15. package/dist/cjs/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.js +2 -3
  16. package/dist/cjs/ui/link-picker/list-item/index.js +44 -42
  17. package/dist/cjs/ui/link-picker/text-input/index.js +2 -3
  18. package/dist/cjs/ui/link-picker/track-mount/index.js +2 -4
  19. package/dist/cjs/ui/link-picker/track-tab-viewed/index.js +2 -4
  20. package/dist/cjs/ui/scrolling-tabs/index.js +2 -4
  21. package/dist/cjs/version.json +1 -1
  22. package/dist/es2019/common/generic-error-svg/index.js +2 -3
  23. package/dist/es2019/controllers/use-fix-height/index.js +2 -3
  24. package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +1 -1
  25. package/dist/es2019/ui/error-boundary/index.js +7 -6
  26. package/dist/es2019/ui/index.js +7 -4
  27. package/dist/es2019/ui/link-picker/announcer.js +2 -3
  28. package/dist/es2019/ui/link-picker/form-footer/index.js +2 -3
  29. package/dist/es2019/ui/link-picker/index.js +13 -14
  30. package/dist/es2019/ui/link-picker/link-search-error/index.js +3 -4
  31. package/dist/es2019/ui/link-picker/link-search-list/index.js +7 -8
  32. package/dist/es2019/ui/link-picker/link-search-list/link-search-no-results/index.js +3 -4
  33. package/dist/es2019/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.js +2 -3
  34. package/dist/es2019/ui/link-picker/list-item/index.js +40 -39
  35. package/dist/es2019/ui/link-picker/text-input/index.js +2 -3
  36. package/dist/es2019/ui/link-picker/track-mount/index.js +2 -3
  37. package/dist/es2019/ui/link-picker/track-tab-viewed/index.js +2 -3
  38. package/dist/es2019/ui/scrolling-tabs/index.js +1 -2
  39. package/dist/es2019/version.json +1 -1
  40. package/dist/esm/common/generic-error-svg/index.js +2 -3
  41. package/dist/esm/controllers/use-fix-height/index.js +2 -3
  42. package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +1 -1
  43. package/dist/esm/ui/error-boundary/index.js +6 -6
  44. package/dist/esm/ui/index.js +10 -6
  45. package/dist/esm/ui/link-picker/announcer.js +2 -3
  46. package/dist/esm/ui/link-picker/form-footer/index.js +2 -3
  47. package/dist/esm/ui/link-picker/index.js +12 -13
  48. package/dist/esm/ui/link-picker/link-search-error/index.js +3 -4
  49. package/dist/esm/ui/link-picker/link-search-list/index.js +7 -9
  50. package/dist/esm/ui/link-picker/link-search-list/link-search-no-results/index.js +3 -4
  51. package/dist/esm/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.js +2 -3
  52. package/dist/esm/ui/link-picker/list-item/index.js +40 -39
  53. package/dist/esm/ui/link-picker/text-input/index.js +2 -3
  54. package/dist/esm/ui/link-picker/track-mount/index.js +2 -3
  55. package/dist/esm/ui/link-picker/track-tab-viewed/index.js +2 -3
  56. package/dist/esm/ui/scrolling-tabs/index.js +1 -2
  57. package/dist/esm/version.json +1 -1
  58. package/dist/types/common/generic-error-svg/index.d.ts +1 -2
  59. package/dist/types/controllers/use-fix-height/index.d.ts +1 -2
  60. package/dist/types/ui/error-boundary/index.d.ts +4 -5
  61. package/dist/types/ui/index.d.ts +0 -1
  62. package/dist/types/ui/link-picker/announcer.d.ts +2 -2
  63. package/dist/types/ui/link-picker/form-footer/index.d.ts +2 -2
  64. package/dist/types/ui/link-picker/index.d.ts +4 -3
  65. package/dist/types/ui/link-picker/link-search-error/index.d.ts +1 -2
  66. package/dist/types/ui/link-picker/link-search-list/index.d.ts +4 -3
  67. package/dist/types/ui/link-picker/link-search-list/link-search-no-results/index.d.ts +1 -2
  68. package/dist/types/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.d.ts +1 -2
  69. package/dist/types/ui/link-picker/list-item/index.d.ts +6 -3
  70. package/dist/types/ui/link-picker/text-input/index.d.ts +1 -2
  71. package/dist/types/ui/link-picker/track-mount/index.d.ts +1 -2
  72. package/dist/types/ui/link-picker/track-tab-viewed/index.d.ts +1 -2
  73. package/dist/types/ui/scrolling-tabs/index.d.ts +1 -1
  74. package/dist/types-ts4.5/common/generic-error-svg/index.d.ts +1 -2
  75. package/dist/types-ts4.5/controllers/use-fix-height/index.d.ts +1 -2
  76. package/dist/types-ts4.5/ui/error-boundary/index.d.ts +4 -5
  77. package/dist/types-ts4.5/ui/index.d.ts +0 -1
  78. package/dist/types-ts4.5/ui/link-picker/announcer.d.ts +2 -2
  79. package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +2 -2
  80. package/dist/types-ts4.5/ui/link-picker/index.d.ts +4 -3
  81. package/dist/types-ts4.5/ui/link-picker/link-search-error/index.d.ts +1 -2
  82. package/dist/types-ts4.5/ui/link-picker/link-search-list/index.d.ts +4 -3
  83. package/dist/types-ts4.5/ui/link-picker/link-search-list/link-search-no-results/index.d.ts +1 -2
  84. package/dist/types-ts4.5/ui/link-picker/link-search-list/link-search-no-results/no-results-svg/index.d.ts +1 -2
  85. package/dist/types-ts4.5/ui/link-picker/list-item/index.d.ts +6 -3
  86. package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +1 -2
  87. package/dist/types-ts4.5/ui/link-picker/track-mount/index.d.ts +1 -2
  88. package/dist/types-ts4.5/ui/link-picker/track-tab-viewed/index.d.ts +1 -2
  89. package/dist/types-ts4.5/ui/scrolling-tabs/index.d.ts +1 -1
  90. package/package.json +6 -6
@@ -4,4 +4,4 @@ interface ScrollingTabListProps {
4
4
  children: JSX.Element;
5
5
  }
6
6
  export declare const ScrollingTabList: (props: ScrollingTabListProps) => jsx.JSX.Element;
7
- export default ScrollingTabList;
7
+ export {};
@@ -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 React, { ReactNode } from 'react';
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- interface ErrorBoundaryProps extends WithAnalyticsEventsProps {
1
+ import { ReactNode } from 'react';
2
+ interface ErrorBoundaryProps {
4
3
  children: ReactNode;
5
4
  }
6
- declare const _default: React.ForwardRefExoticComponent<Omit<ErrorBoundaryProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
7
- export default _default;
5
+ export declare function ErrorBoundary({ children }: ErrorBoundaryProps): JSX.Element;
6
+ export {};
@@ -6,4 +6,3 @@ export declare const testIds: {
6
6
  };
7
7
  export declare const PACKAGE_DATA: PackageMetaDataType;
8
8
  export declare const ComposedLinkPicker: React.MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
9
- export default ComposedLinkPicker;
@@ -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 _default: React.NamedExoticComponent<AnnouncerProps>;
22
- export default _default;
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 _default: import("react").MemoExoticComponent<({ isLoading, error, url, queryState, items, isEditing, onCancel, action, ...restProps }: FormFooterProps) => jsx.JSX.Element | null>;
22
- export default _default;
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 _default: import("react").ComponentType<LinkPickerProps>;
83
- export default _default;
83
+ export declare const LinkPicker: import("react").ComponentType<LinkPickerProps>;
84
+ export {};
@@ -16,5 +16,4 @@ export declare const messages: {
16
16
  export declare const testIds: {
17
17
  searchError: string;
18
18
  };
19
- declare const LinkSearchError: () => jsx.JSX.Element;
20
- export default LinkSearchError;
19
+ export declare const LinkSearchError: () => jsx.JSX.Element;
@@ -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 default LinkSearchList;
46
+ export declare const LinkSearchList: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
47
+ export {};
@@ -15,5 +15,4 @@ export declare const messages: {
15
15
  export declare const testIds: {
16
16
  emptyResultPage: string;
17
17
  };
18
- declare const NoResults: () => jsx.JSX.Element;
19
- export default NoResults;
18
+ export declare const NoResults: () => jsx.JSX.Element;
@@ -1,4 +1,3 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- declare const NoResultsSVG: () => jsx.JSX.Element;
4
- export default NoResultsSVG;
3
+ export declare const NoResultsSVG: () => jsx.JSX.Element;
@@ -1,7 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import { KeyboardEvent } from 'react';
3
3
  import { LinkSearchListItemData } from '../../types';
4
- export interface Props {
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<Props & import("react").RefAttributes<HTMLDivElement>>;
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;
@@ -1,5 +1,4 @@
1
1
  /**
2
2
  * UFO + Analytics tracking for component mount (and unmount)
3
3
  */
4
- declare function TrackMount(): null;
5
- export default TrackMount;
4
+ export declare function TrackMount(): null;
@@ -1,5 +1,4 @@
1
1
  import { LinkPickerPlugin } from '../../../index';
2
- declare function TrackTabViewed({ activePlugin, }: {
2
+ export declare function TrackTabViewed({ activePlugin, }: {
3
3
  activePlugin: LinkPickerPlugin | undefined;
4
4
  }): null;
5
- export default TrackTabViewed;
@@ -4,4 +4,4 @@ interface ScrollingTabListProps {
4
4
  children: JSX.Element;
5
5
  }
6
6
  export declare const ScrollingTabList: (props: ScrollingTabListProps) => jsx.JSX.Element;
7
- export default ScrollingTabList;
7
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.25.1",
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": "^2.15.0",
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.9.0",
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.0.0",
85
- "@atlaskit/linking-common": "^2.15.0",
86
- "@atlaskit/popup": "^1.7.0",
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": "*",