@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.
Files changed (88) hide show
  1. package/.eslintrc.js +22 -22
  2. package/CHANGELOG.md +517 -507
  3. package/CONTRIBUTING.md +3 -0
  4. package/LICENSE.md +6 -8
  5. package/dist/cjs/ui/index.js +1 -1
  6. package/dist/cjs/ui/link-picker/announcer.js +1 -0
  7. package/dist/cjs/ui/link-picker/index.js +1 -1
  8. package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +3 -1
  9. package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/styles.js +4 -0
  10. package/dist/cjs/ui/link-picker/styled.js +1 -1
  11. package/dist/es2019/ui/index.js +1 -1
  12. package/dist/es2019/ui/link-picker/announcer.js +1 -0
  13. package/dist/es2019/ui/link-picker/index.js +1 -1
  14. package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +3 -1
  15. package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/styles.js +4 -0
  16. package/dist/es2019/ui/link-picker/styled.js +8 -8
  17. package/dist/esm/ui/index.js +1 -1
  18. package/dist/esm/ui/link-picker/announcer.js +1 -0
  19. package/dist/esm/ui/link-picker/index.js +1 -1
  20. package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +3 -1
  21. package/dist/esm/ui/link-picker/search-results/scrolling-tabs/styles.js +4 -0
  22. package/dist/esm/ui/link-picker/styled.js +1 -1
  23. package/dist/types/common/analytics/context.d.ts +2 -2
  24. package/dist/types/common/analytics/experiences.d.ts +1 -1
  25. package/dist/types/common/analytics/index.d.ts +1 -1
  26. package/dist/types/common/analytics/input-field-tracking.d.ts +1 -1
  27. package/dist/types/common/types.d.ts +2 -2
  28. package/dist/types/common/ui/empty-state/index.d.ts +1 -1
  29. package/dist/types/common/utils/handleNavKeyDown.d.ts +1 -1
  30. package/dist/types/controllers/session-provider/index.d.ts +2 -2
  31. package/dist/types/services/use-plugins/reducer.d.ts +1 -1
  32. package/dist/types/services/use-plugins/utils.d.ts +1 -1
  33. package/dist/types/services/use-search-query/index.d.ts +1 -1
  34. package/dist/types/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
  35. package/dist/types/ui/error-boundary/index.d.ts +1 -1
  36. package/dist/types/ui/index.d.ts +2 -2
  37. package/dist/types/ui/link-picker/announcer.d.ts +1 -1
  38. package/dist/types/ui/link-picker/form-footer/index.d.ts +2 -2
  39. package/dist/types/ui/link-picker/form-footer/utils.d.ts +1 -1
  40. package/dist/types/ui/link-picker/index.d.ts +3 -3
  41. package/dist/types/ui/link-picker/search-results/index.d.ts +2 -2
  42. package/dist/types/ui/link-picker/search-results/link-search-list/index.d.ts +2 -2
  43. package/dist/types/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +2 -2
  44. package/dist/types/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.d.ts +1 -1
  45. package/dist/types/ui/link-picker/search-results/scrolling-tabs/scrolling-tabs.d.ts +1 -1
  46. package/dist/types/ui/link-picker/search-results/scrolling-tabs/styles.d.ts +1 -1
  47. package/dist/types/ui/link-picker/search-results/track-tab-viewed/index.d.ts +2 -2
  48. package/dist/types/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.d.ts +1 -1
  49. package/dist/types/ui/link-picker/text-input/index.d.ts +2 -2
  50. package/dist/types/ui/link-picker/text-input/utils.d.ts +1 -1
  51. package/dist/types/ui/link-picker/transformTimeStamp.d.ts +1 -1
  52. package/dist/types/ui/link-picker/utils.d.ts +2 -2
  53. package/dist/types/ui/messages-provider/lazy-messages-provider/index.d.ts +1 -1
  54. package/dist/types/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts +1 -1
  55. package/dist/types-ts4.5/common/analytics/context.d.ts +2 -2
  56. package/dist/types-ts4.5/common/analytics/experiences.d.ts +1 -1
  57. package/dist/types-ts4.5/common/analytics/index.d.ts +1 -1
  58. package/dist/types-ts4.5/common/analytics/input-field-tracking.d.ts +1 -1
  59. package/dist/types-ts4.5/common/types.d.ts +2 -2
  60. package/dist/types-ts4.5/common/ui/empty-state/index.d.ts +1 -1
  61. package/dist/types-ts4.5/common/utils/handleNavKeyDown.d.ts +1 -1
  62. package/dist/types-ts4.5/controllers/session-provider/index.d.ts +2 -2
  63. package/dist/types-ts4.5/services/use-plugins/reducer.d.ts +1 -1
  64. package/dist/types-ts4.5/services/use-plugins/utils.d.ts +1 -1
  65. package/dist/types-ts4.5/services/use-search-query/index.d.ts +1 -1
  66. package/dist/types-ts4.5/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
  67. package/dist/types-ts4.5/ui/error-boundary/index.d.ts +1 -1
  68. package/dist/types-ts4.5/ui/index.d.ts +2 -2
  69. package/dist/types-ts4.5/ui/link-picker/announcer.d.ts +1 -1
  70. package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +2 -2
  71. package/dist/types-ts4.5/ui/link-picker/form-footer/utils.d.ts +1 -1
  72. package/dist/types-ts4.5/ui/link-picker/index.d.ts +3 -3
  73. package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +2 -2
  74. package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +2 -2
  75. package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +2 -2
  76. package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.d.ts +1 -1
  77. package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/scrolling-tabs.d.ts +1 -1
  78. package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/styles.d.ts +1 -1
  79. package/dist/types-ts4.5/ui/link-picker/search-results/track-tab-viewed/index.d.ts +2 -2
  80. package/dist/types-ts4.5/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.d.ts +1 -1
  81. package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +2 -2
  82. package/dist/types-ts4.5/ui/link-picker/text-input/utils.d.ts +1 -1
  83. package/dist/types-ts4.5/ui/link-picker/transformTimeStamp.d.ts +1 -1
  84. package/dist/types-ts4.5/ui/link-picker/utils.d.ts +2 -2
  85. package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/index.d.ts +1 -1
  86. package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts +1 -1
  87. package/package.json +13 -15
  88. package/report.api.md +75 -82
@@ -0,0 +1,3 @@
1
+ # Contribute to Linking Platform
2
+
3
+ https://go.atlassian.com/lp-contribute
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2022 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -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.1" || '',
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,
@@ -385,7 +385,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
385
385
  action: pluginAction,
386
386
  css: !queryState || !(plugins !== null && plugins !== void 0 && plugins.length) ? _styled.formFooterMargin : undefined
387
387
  /* Show the feature discovery pulse when we're on the Jira tab, we haven't started typing a url and
388
- the feature flag is enabled */,
388
+ the feature flag is enabled */,
389
389
  createFeatureDiscovery: (activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.tabKey) === 'jira' && allowCreateFeatureDiscovery && (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.enable-jira-create'),
390
390
  customSubmitButtonLabel: customMessages !== null && customMessages !== void 0 && customMessages.submitButtonLabel ? customMessages.submitButtonLabel : undefined
391
391
  }));
@@ -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
  }]);
@@ -10,7 +10,7 @@ var _react = require("@emotion/react");
10
10
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
11
  var _templateObject;
12
12
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
13
- var rootContainerStyles = exports.rootContainerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: ", ";\n padding-left: var(--link-picker-padding-left);\n padding-right: var(--link-picker-padding-right);\n padding-top: var(--link-picker-padding-top);\n padding-bottom: var(--link-picker-padding-bottom);\n box-sizing: border-box;\n line-height: initial;\n display: block !important;\n"])), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
13
+ var rootContainerStyles = exports.rootContainerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\twidth: ", ";\n\tpadding-left: var(--link-picker-padding-left);\n\tpadding-right: var(--link-picker-padding-right);\n\tpadding-top: var(--link-picker-padding-top);\n\tpadding-bottom: var(--link-picker-padding-bottom);\n\tbox-sizing: border-box;\n\tline-height: initial;\n\tdisplay: block !important;\n"])), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
14
14
  var formFooterMargin = exports.formFooterMargin = (0, _react.css)({
15
15
  marginTop: "var(--ds-space-200, 16px)"
16
16
  });
@@ -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.1" || '',
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,
@@ -387,7 +387,7 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
387
387
  action: pluginAction,
388
388
  css: !queryState || !(plugins !== null && plugins !== void 0 && plugins.length) ? formFooterMargin : undefined
389
389
  /* Show the feature discovery pulse when we're on the Jira tab, we haven't started typing a url and
390
- the feature flag is enabled */,
390
+ the feature flag is enabled */,
391
391
  createFeatureDiscovery: (activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.tabKey) === 'jira' && allowCreateFeatureDiscovery && getBooleanFF('platform.linking-platform.link-picker.enable-jira-create'),
392
392
  customSubmitButtonLabel: customMessages !== null && customMessages !== void 0 && customMessages.submitButtonLabel ? customMessages.submitButtonLabel : undefined
393
393
  }));
@@ -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
  }]);
@@ -2,14 +2,14 @@ import { css } from '@emotion/react';
2
2
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
3
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
4
4
  export const rootContainerStyles = css`
5
- width: ${getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)'};
6
- padding-left: var(--link-picker-padding-left);
7
- padding-right: var(--link-picker-padding-right);
8
- padding-top: var(--link-picker-padding-top);
9
- padding-bottom: var(--link-picker-padding-bottom);
10
- box-sizing: border-box;
11
- line-height: initial;
12
- display: block !important;
5
+ width: ${getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)'};
6
+ padding-left: var(--link-picker-padding-left);
7
+ padding-right: var(--link-picker-padding-right);
8
+ padding-top: var(--link-picker-padding-top);
9
+ padding-bottom: var(--link-picker-padding-bottom);
10
+ box-sizing: border-box;
11
+ line-height: initial;
12
+ display: block !important;
13
13
  `;
14
14
  export const formFooterMargin = css({
15
15
  marginTop: "var(--ds-space-200, 16px)"
@@ -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.1" || '',
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,
@@ -379,7 +379,7 @@ export var LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(functi
379
379
  action: pluginAction,
380
380
  css: !queryState || !(plugins !== null && plugins !== void 0 && plugins.length) ? formFooterMargin : undefined
381
381
  /* Show the feature discovery pulse when we're on the Jira tab, we haven't started typing a url and
382
- the feature flag is enabled */,
382
+ the feature flag is enabled */,
383
383
  createFeatureDiscovery: (activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.tabKey) === 'jira' && allowCreateFeatureDiscovery && getBooleanFF('platform.linking-platform.link-picker.enable-jira-create'),
384
384
  customSubmitButtonLabel: customMessages !== null && customMessages !== void 0 && customMessages.submitButtonLabel ? customMessages.submitButtonLabel : undefined
385
385
  }));
@@ -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
  }]);
@@ -3,7 +3,7 @@ var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
5
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
6
- export var rootContainerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", ";\n padding-left: var(--link-picker-padding-left);\n padding-right: var(--link-picker-padding-right);\n padding-top: var(--link-picker-padding-top);\n padding-bottom: var(--link-picker-padding-bottom);\n box-sizing: border-box;\n line-height: initial;\n display: block !important;\n"])), getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
6
+ export var rootContainerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\twidth: ", ";\n\tpadding-left: var(--link-picker-padding-left);\n\tpadding-right: var(--link-picker-padding-right);\n\tpadding-top: var(--link-picker-padding-top);\n\tpadding-bottom: var(--link-picker-padding-bottom);\n\tbox-sizing: border-box;\n\tline-height: initial;\n\tdisplay: block !important;\n"])), getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
7
7
  export var formFooterMargin = css({
8
8
  marginTop: "var(--ds-space-200, 16px)"
9
9
  });
@@ -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,2 +1,2 @@
1
- export { useLinkPickerAnalytics, withLinkPickerAnalyticsContext, } from './context';
1
+ export { useLinkPickerAnalytics, withLinkPickerAnalyticsContext } from './context';
2
2
  export { withInputFieldTracking } from './input-field-tracking';
@@ -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 */
@@ -5,5 +5,5 @@ type EmptyStateProps = {
5
5
  description?: React.ReactNode;
6
6
  renderImage?: () => React.ReactNode;
7
7
  };
8
- export declare const EmptyState: ({ testId, header, description, renderImage, }: EmptyStateProps) => JSX.Element;
8
+ export declare const EmptyState: ({ testId, header, description, renderImage }: EmptyStateProps) => JSX.Element;
9
9
  export {};
@@ -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,10 +1,10 @@
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>;
5
5
  interface SessionProviderProps {
6
6
  children: ReactNode;
7
7
  }
8
- export declare const LinkPickerSessionProvider: ({ children, }: SessionProviderProps) => JSX.Element;
8
+ export declare const LinkPickerSessionProvider: ({ children }: SessionProviderProps) => JSX.Element;
9
9
  export declare const useLinkPickerSessionId: () => string;
10
10
  export {};
@@ -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';
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,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
  */
@@ -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, }: LazyMessagesProviderProps) => JSX.Element;
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>;
@@ -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,2 +1,2 @@
1
- export { useLinkPickerAnalytics, withLinkPickerAnalyticsContext, } from './context';
1
+ export { useLinkPickerAnalytics, withLinkPickerAnalyticsContext } from './context';
2
2
  export { withInputFieldTracking } from './input-field-tracking';
@@ -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 */
@@ -5,5 +5,5 @@ type EmptyStateProps = {
5
5
  description?: React.ReactNode;
6
6
  renderImage?: () => React.ReactNode;
7
7
  };
8
- export declare const EmptyState: ({ testId, header, description, renderImage, }: EmptyStateProps) => JSX.Element;
8
+ export declare const EmptyState: ({ testId, header, description, renderImage }: EmptyStateProps) => JSX.Element;
9
9
  export {};
@@ -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,10 +1,10 @@
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>;
5
5
  interface SessionProviderProps {
6
6
  children: ReactNode;
7
7
  }
8
- export declare const LinkPickerSessionProvider: ({ children, }: SessionProviderProps) => JSX.Element;
8
+ export declare const LinkPickerSessionProvider: ({ children }: SessionProviderProps) => JSX.Element;
9
9
  export declare const useLinkPickerSessionId: () => string;
10
10
  export {};
@@ -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;