@atlaskit/link-picker 1.36.2 → 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.
Files changed (73) hide show
  1. package/CHANGELOG.md +511 -507
  2. package/CONTRIBUTING.md +3 -0
  3. package/dist/cjs/ui/index.js +1 -1
  4. package/dist/cjs/ui/link-picker/announcer.js +1 -0
  5. package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +3 -1
  6. package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/styles.js +4 -0
  7. package/dist/es2019/ui/index.js +1 -1
  8. package/dist/es2019/ui/link-picker/announcer.js +1 -0
  9. package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +3 -1
  10. package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/styles.js +4 -0
  11. package/dist/esm/ui/index.js +1 -1
  12. package/dist/esm/ui/link-picker/announcer.js +1 -0
  13. package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +3 -1
  14. package/dist/esm/ui/link-picker/search-results/scrolling-tabs/styles.js +4 -0
  15. package/dist/types/common/analytics/context.d.ts +2 -2
  16. package/dist/types/common/analytics/experiences.d.ts +1 -1
  17. package/dist/types/common/analytics/input-field-tracking.d.ts +1 -1
  18. package/dist/types/common/types.d.ts +2 -2
  19. package/dist/types/common/utils/handleNavKeyDown.d.ts +1 -1
  20. package/dist/types/controllers/session-provider/index.d.ts +1 -1
  21. package/dist/types/services/use-plugins/reducer.d.ts +1 -1
  22. package/dist/types/services/use-plugins/utils.d.ts +1 -1
  23. package/dist/types/services/use-search-query/index.d.ts +1 -1
  24. package/dist/types/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
  25. package/dist/types/ui/error-boundary/index.d.ts +1 -1
  26. package/dist/types/ui/index.d.ts +2 -2
  27. package/dist/types/ui/link-picker/announcer.d.ts +1 -1
  28. package/dist/types/ui/link-picker/form-footer/index.d.ts +2 -2
  29. package/dist/types/ui/link-picker/form-footer/utils.d.ts +1 -1
  30. package/dist/types/ui/link-picker/index.d.ts +3 -3
  31. package/dist/types/ui/link-picker/search-results/index.d.ts +2 -2
  32. package/dist/types/ui/link-picker/search-results/link-search-list/index.d.ts +2 -2
  33. package/dist/types/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +2 -2
  34. package/dist/types/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.d.ts +1 -1
  35. package/dist/types/ui/link-picker/search-results/scrolling-tabs/scrolling-tabs.d.ts +1 -1
  36. package/dist/types/ui/link-picker/search-results/scrolling-tabs/styles.d.ts +1 -1
  37. package/dist/types/ui/link-picker/search-results/track-tab-viewed/index.d.ts +1 -1
  38. package/dist/types/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.d.ts +1 -1
  39. package/dist/types/ui/link-picker/text-input/index.d.ts +2 -2
  40. package/dist/types/ui/link-picker/text-input/utils.d.ts +1 -1
  41. package/dist/types/ui/link-picker/transformTimeStamp.d.ts +1 -1
  42. package/dist/types/ui/link-picker/utils.d.ts +2 -2
  43. package/dist/types/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts +1 -1
  44. package/dist/types-ts4.5/common/analytics/context.d.ts +2 -2
  45. package/dist/types-ts4.5/common/analytics/experiences.d.ts +1 -1
  46. package/dist/types-ts4.5/common/analytics/input-field-tracking.d.ts +1 -1
  47. package/dist/types-ts4.5/common/types.d.ts +2 -2
  48. package/dist/types-ts4.5/common/utils/handleNavKeyDown.d.ts +1 -1
  49. package/dist/types-ts4.5/controllers/session-provider/index.d.ts +1 -1
  50. package/dist/types-ts4.5/services/use-plugins/reducer.d.ts +1 -1
  51. package/dist/types-ts4.5/services/use-plugins/utils.d.ts +1 -1
  52. package/dist/types-ts4.5/services/use-search-query/index.d.ts +1 -1
  53. package/dist/types-ts4.5/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
  54. package/dist/types-ts4.5/ui/error-boundary/index.d.ts +1 -1
  55. package/dist/types-ts4.5/ui/index.d.ts +2 -2
  56. package/dist/types-ts4.5/ui/link-picker/announcer.d.ts +1 -1
  57. package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +2 -2
  58. package/dist/types-ts4.5/ui/link-picker/form-footer/utils.d.ts +1 -1
  59. package/dist/types-ts4.5/ui/link-picker/index.d.ts +3 -3
  60. package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +2 -2
  61. package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +2 -2
  62. package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +2 -2
  63. package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.d.ts +1 -1
  64. package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/scrolling-tabs.d.ts +1 -1
  65. package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/styles.d.ts +1 -1
  66. package/dist/types-ts4.5/ui/link-picker/search-results/track-tab-viewed/index.d.ts +1 -1
  67. package/dist/types-ts4.5/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.d.ts +1 -1
  68. package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +2 -2
  69. package/dist/types-ts4.5/ui/link-picker/text-input/utils.d.ts +1 -1
  70. package/dist/types-ts4.5/ui/link-picker/transformTimeStamp.d.ts +1 -1
  71. package/dist/types-ts4.5/ui/link-picker/utils.d.ts +2 -2
  72. package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts +1 -1
  73. package/package.json +9 -11
@@ -0,0 +1,3 @@
1
+ # Contribute to Linking Platform
2
+
3
+ https://go.atlassian.com/lp-contribute
@@ -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.36.2" || '',
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 && (0, _react2.jsx)("div", {
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
  }]);
@@ -16,7 +16,7 @@ export const testIds = {
16
16
  };
17
17
  export const PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "1.36.2" || '',
19
+ packageVersion: "1.37.0" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
@@ -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 && jsx("div", {
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
  }]);
@@ -17,7 +17,7 @@ export var testIds = {
17
17
  };
18
18
  export var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/link-picker" || '',
20
- packageVersion: "1.36.2" || '',
20
+ packageVersion: "1.37.0" || '',
21
21
  componentName: COMPONENT_NAME,
22
22
  source: COMPONENT_NAME
23
23
  };
@@ -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 && jsx("div", {
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,4 +1,4 @@
1
- import { CustomData } from '@atlaskit/ufo';
1
+ import { type CustomData } from '@atlaskit/ufo';
2
2
  export declare const ufoExperience: {
3
3
  readonly mounted: "component-mounted";
4
4
  };
@@ -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 React, { ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  export type LinkPickerSessionId = string;
3
3
  export declare const INIT_CONTEXT = "SESSION_UNINITIALIZED";
4
4
  export declare const SessionContext: React.Context<string>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LinkSearchListItemData } from '../../common/types';
2
+ import { type LinkSearchListItemData } from '../../common/types';
3
3
  export interface PluginState {
4
4
  items: LinkSearchListItemData[] | null;
5
5
  error: unknown | null;
@@ -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,4 +1,4 @@
1
- import React, { Component, ReactNode } from 'react';
1
+ import React, { Component, type ReactNode } from 'react';
2
2
  export type ErrorBoundaryErrorInfo = {
3
3
  componentStack: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  interface ErrorBoundaryProps {
3
3
  children: ReactNode;
4
4
  }
@@ -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,4 +1,4 @@
1
- import React, { AriaAttributes, Ref } from 'react';
1
+ import React, { type AriaAttributes, type Ref } from 'react';
2
2
  type AnnouncerProps = {
3
3
  ref?: Ref<HTMLDivElement>;
4
4
  /** Set 'false' for announcing only changed text
@@ -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;
@@ -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 { RefObject } from 'react';
1
+ import { type RefObject } from 'react';
2
2
  export interface ConditionalButtons {
3
3
  back: boolean;
4
4
  forward: boolean;
@@ -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';
1
+ import { type LinkPickerPlugin } from '../../../../common/types';
2
2
  export declare function TrackTabViewed({ activePlugin, }: {
3
3
  activePlugin: LinkPickerPlugin | undefined;
4
4
  }): null;
@@ -1,4 +1,4 @@
1
- import React, { FunctionComponent } from 'react';
1
+ import React, { type FunctionComponent } from 'react';
2
2
  export interface ConditionalSpotlightTargetWrapperProps {
3
3
  spotlightTargetName?: string;
4
4
  children: React.ReactElement;
@@ -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,3 +1,3 @@
1
- import { KeyboardEvent } from 'react';
1
+ import { type KeyboardEvent } from 'react';
2
2
  export declare const isUndoEvent: (e: KeyboardEvent<HTMLInputElement>) => boolean;
3
3
  export declare const isRedoEvent: (e: KeyboardEvent<HTMLInputElement>) => boolean;
@@ -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
  */
@@ -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,4 +1,4 @@
1
- import { CustomData } from '@atlaskit/ufo';
1
+ import { type CustomData } from '@atlaskit/ufo';
2
2
  export declare const ufoExperience: {
3
3
  readonly mounted: "component-mounted";
4
4
  };
@@ -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 React, { ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  export type LinkPickerSessionId = string;
3
3
  export declare const INIT_CONTEXT = "SESSION_UNINITIALIZED";
4
4
  export declare const SessionContext: React.Context<string>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LinkSearchListItemData } from '../../common/types';
2
+ import { type LinkSearchListItemData } from '../../common/types';
3
3
  export interface PluginState {
4
4
  items: LinkSearchListItemData[] | null;
5
5
  error: unknown | null;
@@ -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,4 +1,4 @@
1
- import React, { Component, ReactNode } from 'react';
1
+ import React, { Component, type ReactNode } from 'react';
2
2
  export type ErrorBoundaryErrorInfo = {
3
3
  componentStack: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  interface ErrorBoundaryProps {
3
3
  children: ReactNode;
4
4
  }
@@ -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,4 +1,4 @@
1
- import React, { AriaAttributes, Ref } from 'react';
1
+ import React, { type AriaAttributes, type Ref } from 'react';
2
2
  type AnnouncerProps = {
3
3
  ref?: Ref<HTMLDivElement>;
4
4
  /** Set 'false' for announcing only changed text
@@ -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;
@@ -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 { RefObject } from 'react';
1
+ import { type RefObject } from 'react';
2
2
  export interface ConditionalButtons {
3
3
  back: boolean;
4
4
  forward: boolean;
@@ -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';
1
+ import { type LinkPickerPlugin } from '../../../../common/types';
2
2
  export declare function TrackTabViewed({ activePlugin, }: {
3
3
  activePlugin: LinkPickerPlugin | undefined;
4
4
  }): null;
@@ -1,4 +1,4 @@
1
- import React, { FunctionComponent } from 'react';
1
+ import React, { type FunctionComponent } from 'react';
2
2
  export interface ConditionalSpotlightTargetWrapperProps {
3
3
  spotlightTargetName?: string;
4
4
  children: React.ReactElement;
@@ -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,3 +1,3 @@
1
- import { KeyboardEvent } from 'react';
1
+ import { type KeyboardEvent } from 'react';
2
2
  export declare const isUndoEvent: (e: KeyboardEvent<HTMLInputElement>) => boolean;
3
3
  export declare const isRedoEvent: (e: KeyboardEvent<HTMLInputElement>) => boolean;
@@ -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;