@atlaskit/link-picker 1.26.0 → 1.27.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 1.27.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3bebfdcc3ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3bebfdcc3ae) - [ux] Fix pt-BR messages
8
+
9
+ ## 1.27.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`fa8b71abb1a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa8b71abb1a) - [ux] Add title to link picker results
14
+
3
15
  ## 1.26.0
4
16
 
5
17
  ### Minor Changes
@@ -84,7 +84,8 @@ var LinkSearchListItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
84
84
  css: _styled.itemNameStyles
85
85
  }, (0, _react2.jsx)("div", {
86
86
  "data-testid": "".concat(testIds.searchResultItem, "-title"),
87
- css: _styled.listItemNameStyles
87
+ css: _styled.listItemNameStyles,
88
+ title: item.name
88
89
  }, item.name), (0, _react2.jsx)("div", {
89
90
  "data-testid": "".concat(testIds.searchResultItem, "-subtitle"),
90
91
  css: _styled.listItemContextStyles
@@ -25,7 +25,7 @@ var fetchMessagesForLocale = /*#__PURE__*/function () {
25
25
  }).then(function (s) {
26
26
  return _interopRequireWildcard(require(s));
27
27
  });
28
- }( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */"../../../../i18n/".concat(locale));
28
+ }( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */"../../../../i18n/".concat(locale.replace('-', '_')));
29
29
  case 3:
30
30
  _messages = _context.sent;
31
31
  return _context.abrupt("return", _messages.default);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.26.0",
3
+ "version": "1.27.1",
4
4
  "sideEffects": false
5
5
  }
@@ -74,7 +74,8 @@ export const LinkSearchListItem = /*#__PURE__*/forwardRef(({
74
74
  css: itemNameStyles
75
75
  }, jsx("div", {
76
76
  "data-testid": `${testIds.searchResultItem}-title`,
77
- css: listItemNameStyles
77
+ css: listItemNameStyles,
78
+ title: item.name
78
79
  }, item.name), jsx("div", {
79
80
  "data-testid": `${testIds.searchResultItem}-subtitle`,
80
81
  css: listItemContextStyles
@@ -1,7 +1,7 @@
1
1
  import messages from '../../../../i18n/en';
2
2
  export const fetchMessagesForLocale = async locale => {
3
3
  try {
4
- const messages = await import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */`../../../../i18n/${locale}`);
4
+ const messages = await import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */`../../../../i18n/${locale.replace('-', '_')}`);
5
5
  return messages.default;
6
6
  } catch (e) {
7
7
  // ignore
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.26.0",
3
+ "version": "1.27.1",
4
4
  "sideEffects": false
5
5
  }
@@ -75,7 +75,8 @@ export var LinkSearchListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
75
75
  css: itemNameStyles
76
76
  }, jsx("div", {
77
77
  "data-testid": "".concat(testIds.searchResultItem, "-title"),
78
- css: listItemNameStyles
78
+ css: listItemNameStyles,
79
+ title: item.name
79
80
  }, item.name), jsx("div", {
80
81
  "data-testid": "".concat(testIds.searchResultItem, "-subtitle"),
81
82
  css: listItemContextStyles
@@ -9,7 +9,7 @@ export var fetchMessagesForLocale = /*#__PURE__*/function () {
9
9
  case 0:
10
10
  _context.prev = 0;
11
11
  _context.next = 3;
12
- return import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */"../../../../i18n/".concat(locale));
12
+ return import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */"../../../../i18n/".concat(locale.replace('-', '_')));
13
13
  case 3:
14
14
  _messages = _context.sent;
15
15
  return _context.abrupt("return", _messages.default);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.26.0",
3
+ "version": "1.27.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.26.0",
3
+ "version": "1.27.1",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/form": "^8.11.0",
56
56
  "@atlaskit/frontend-utilities": "^2.7.0",
57
57
  "@atlaskit/icon": "^21.12.0",
58
- "@atlaskit/linking-common": "^3.2.0",
58
+ "@atlaskit/linking-common": "^3.4.0",
59
59
  "@atlaskit/onboarding": "^10.8.2",
60
60
  "@atlaskit/platform-feature-flags": "^0.2.1",
61
61
  "@atlaskit/spinner": "^15.5.0",
@@ -84,7 +84,7 @@
84
84
  "@atlaskit/dropdown-menu": "^11.10.0",
85
85
  "@atlaskit/link-provider": "^1.6.0",
86
86
  "@atlaskit/link-test-helpers": "^4.1.0",
87
- "@atlaskit/linking-common": "^3.2.0",
87
+ "@atlaskit/linking-common": "^3.4.0",
88
88
  "@atlaskit/visual-regression": "*",
89
89
  "@atlaskit/webdriver-runner": "*",
90
90
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
@@ -1,123 +0,0 @@
1
- ## API Report File for "@atlaskit/link-picker"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- /// <reference types="react" />
8
-
9
- import { jsx } from '@emotion/react';
10
- import { MessageDescriptor } from 'react-intl-next';
11
- import { default as React_2 } from 'react';
12
- import { ReactNode } from 'react';
13
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
14
-
15
- // @public (undocumented)
16
- export type LinkInputType = 'manual' | 'typeAhead';
17
-
18
- // @public (undocumented)
19
- export const LinkPicker: React_2.MemoExoticComponent<(props: LinkPickerProps) => jsx.JSX.Element>;
20
-
21
- // @public (undocumented)
22
- export interface LinkPickerPlugin {
23
- action?: LinkPickerPluginAction;
24
- emptyStateNoResults?: LinkPickerPluginEmptyStateNoResults;
25
- errorFallback?: LinkPickerPluginErrorFallback;
26
- meta?: {
27
- source?: string;
28
- };
29
- // (undocumented)
30
- resolve: (state: LinkPickerState) => AsyncGenerator<ResolveResult, ResolveResult> | Promise<ResolveResult>;
31
- tabKey?: string;
32
- tabTitle?: string;
33
- UNSAFE_onActivation?: () => void;
34
- }
35
-
36
- // @public (undocumented)
37
- export interface LinkPickerPluginAction {
38
- // (undocumented)
39
- callback: () => void;
40
- // (undocumented)
41
- label: MessageDescriptor | string;
42
- }
43
-
44
- // @public (undocumented)
45
- export type LinkPickerPluginEmptyStateNoResults = () => ReactNode;
46
-
47
- // @public (undocumented)
48
- export type LinkPickerPluginErrorFallback = (error: unknown, retry: () => void) => ReactNode;
49
-
50
- // @public (undocumented)
51
- export interface LinkPickerProps {
52
- component?: React.ComponentType<Partial<LinkPickerProps> & {
53
- children: React.ReactElement;
54
- }>;
55
- displayText?: null | string;
56
- // (undocumented)
57
- featureFlags?: Record<string, unknown>;
58
- hideDisplayText?: boolean;
59
- isLoadingPlugins?: boolean;
60
- onCancel: () => void;
61
- onContentResize?: () => void;
62
- onSubmit: (arg: OnSubmitParameter, analytic?: UIAnalyticsEvent | null) => void;
63
- plugins?: LinkPickerPlugin[];
64
- url?: string;
65
- }
66
-
67
- // @public (undocumented)
68
- export interface LinkPickerState {
69
- query: string;
70
- }
71
-
72
- // @public (undocumented)
73
- export interface LinkSearchListItemData {
74
- container?: string;
75
- icon: React.ComponentType<{
76
- alt: string;
77
- }> | string;
78
- iconAlt: MessageDescriptor | string;
79
- lastUpdatedDate?: Date;
80
- lastViewedDate?: Date;
81
- meta?: {
82
- source?: string;
83
- };
84
- name: string;
85
- objectId: string;
86
- prefetch?: boolean;
87
- url: string;
88
- }
89
-
90
- // @public (undocumented)
91
- interface Meta {
92
- inputMethod: LinkInputType;
93
- }
94
-
95
- // @public (undocumented)
96
- interface OnSubmitParameter {
97
- displayText: null | string;
98
- meta: Meta;
99
- rawUrl?: string;
100
- title: null | string;
101
- url: string;
102
- }
103
-
104
- // @public (undocumented)
105
- interface ResolveResult {
106
- // (undocumented)
107
- data: LinkSearchListItemData[];
108
- }
109
-
110
- // @public (undocumented)
111
- export class UnauthenticatedError extends Error {
112
- constructor(iconUrl: string, authUrl: string, description: string);
113
- // (undocumented)
114
- authUrl: string;
115
- // (undocumented)
116
- description: string;
117
- // (undocumented)
118
- iconUrl: string;
119
- }
120
-
121
- // (No @packageDocumentation comment for this package)
122
-
123
- ```