@atlaskit/link-picker 4.2.23 → 5.0.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.
- package/CHANGELOG.md +27 -0
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +3 -3
- package/dist/cjs/ui/link-picker/form-footer/index.js +3 -3
- package/dist/cjs/ui/link-picker/form-footer/link-picker-submit-button/index.js +3 -3
- package/dist/cjs/ui/link-picker/index.js +4 -4
- package/dist/cjs/ui/link-picker/messages.js +6 -6
- package/dist/cjs/ui/link-picker/search-results/link-search-error/index.js +5 -5
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +4 -4
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +3 -3
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +2 -2
- package/dist/cjs/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.js +11 -3
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/index.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/link-picker-submit-button/index.js +1 -1
- package/dist/es2019/ui/link-picker/index.js +1 -1
- package/dist/es2019/ui/link-picker/messages.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-error/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +1 -1
- package/dist/es2019/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.js +11 -3
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/index.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/link-picker-submit-button/index.js +1 -1
- package/dist/esm/ui/link-picker/index.js +1 -1
- package/dist/esm/ui/link-picker/messages.js +1 -1
- package/dist/esm/ui/link-picker/search-results/link-search-error/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +1 -1
- package/dist/esm/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.js +11 -3
- package/dist/esm/ui/main.js +1 -1
- package/dist/types/common/types.d.ts +1 -1
- package/dist/types/ui/link-picker/announcer.d.ts +1 -1
- package/dist/types/ui/link-picker/form-footer/index.d.ts +1 -1
- package/dist/types/ui/link-picker/form-footer/link-picker-submit-button/index.d.ts +1 -1
- package/dist/types/ui/link-picker/index.d.ts +8 -8
- package/dist/types/ui/link-picker/transformTimeStamp.d.ts +1 -1
- package/dist/types/ui/link-picker/utils.d.ts +1 -1
- package/dist/types-ts4.5/common/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/announcer.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/form-footer/link-picker-submit-button/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/index.d.ts +8 -8
- package/dist/types-ts4.5/ui/link-picker/transformTimeStamp.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-picker/utils.d.ts +1 -1
- package/package.json +11 -6
- package/report.api.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`9f6bcd21611f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f6bcd21611f3) -
|
|
8
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
9
|
+
|
|
10
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
11
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
12
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
13
|
+
|
|
14
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
15
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
16
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`94e6e464e09a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/94e6e464e09a2) -
|
|
21
|
+
NAVX-4548: Migrate @atlaskit/onboarding to @atlaskit/spotlight in link-picker behind feature flag
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
24
|
+
## 4.2.24
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 4.2.23
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -9,14 +9,14 @@ exports.ErrorBoundaryFallback = void 0;
|
|
|
9
9
|
require("./index.compiled.css");
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
-
var
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
13
|
var _constants = require("../../../common/constants");
|
|
14
14
|
var _genericErrorSvg = require("../../../common/generic-error-svg");
|
|
15
15
|
var _emptyState = require("../../../common/ui/empty-state");
|
|
16
16
|
var _minHeightContainer = require("../../../common/ui/min-height-container");
|
|
17
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
18
18
|
var errorBoundaryFallbackStyles = null;
|
|
19
|
-
var messages = (0,
|
|
19
|
+
var messages = (0, _reactIntl.defineMessages)({
|
|
20
20
|
heading: {
|
|
21
21
|
defaultMessage: 'Something went wrong!',
|
|
22
22
|
description: 'Heading displayed when an unhandled error occurs.',
|
|
@@ -29,7 +29,7 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
var ErrorBoundaryFallback = exports.ErrorBoundaryFallback = function ErrorBoundaryFallback() {
|
|
32
|
-
var intl = (0,
|
|
32
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
33
33
|
var header = intl.formatMessage(messages.heading);
|
|
34
34
|
var description = intl.formatMessage(messages.description);
|
|
35
35
|
return /*#__PURE__*/React.createElement(_minHeightContainer.MinHeightContainer, {
|
|
@@ -13,7 +13,7 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _button = require("@atlaskit/button");
|
|
18
18
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
19
19
|
var _add = _interopRequireDefault(require("@atlaskit/icon/core/add"));
|
|
@@ -24,7 +24,7 @@ var _excluded = ["isLoading", "isSubmitting", "error", "url", "queryState", "ite
|
|
|
24
24
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
25
25
|
var formFooterStyles = null;
|
|
26
26
|
var formFooterActionStyles = null;
|
|
27
|
-
var messages = exports.messages = (0,
|
|
27
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
28
28
|
cancelButton: {
|
|
29
29
|
id: 'fabric.linkPicker.button.cancel',
|
|
30
30
|
defaultMessage: 'Cancel',
|
|
@@ -58,7 +58,7 @@ var FormFooter = exports.FormFooter = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
58
58
|
hideSubmitButton = _ref.hideSubmitButton,
|
|
59
59
|
className = _ref.className,
|
|
60
60
|
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
61
|
-
var intl = (0,
|
|
61
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
62
62
|
if (error && error instanceof _errors.UnauthenticatedError) {
|
|
63
63
|
return null;
|
|
64
64
|
}
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.messages = exports.LinkPickerSubmitButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
11
11
|
var _utils = require("./utils");
|
|
12
|
-
var messages = exports.messages = (0,
|
|
12
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
13
13
|
saveButton: {
|
|
14
14
|
id: 'fabric.linkPicker.button.save',
|
|
15
15
|
defaultMessage: 'Save',
|
|
@@ -32,7 +32,7 @@ var LinkPickerSubmitButton = exports.LinkPickerSubmitButton = function LinkPicke
|
|
|
32
32
|
submitMessageId = _ref.submitMessageId,
|
|
33
33
|
testId = _ref.testId,
|
|
34
34
|
url = _ref.url;
|
|
35
|
-
var intl = (0,
|
|
35
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
36
36
|
var insertButtonMsg = isEditing ? messages.saveButton : messages.insertButton;
|
|
37
37
|
var isSubmitDisabled = (0, _utils.checkSubmitDisabled)(isLoading, isSubmitting, error, url, queryState, items);
|
|
38
38
|
return /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
@@ -16,7 +16,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
16
16
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
17
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
18
18
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
19
|
-
var
|
|
19
|
+
var _reactIntl = require("react-intl");
|
|
20
20
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
21
21
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
22
22
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
@@ -134,7 +134,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
134
134
|
invalidUrl = state.invalidUrl,
|
|
135
135
|
activeTab = state.activeTab,
|
|
136
136
|
hasPreview = state.hasPreview;
|
|
137
|
-
var intl = (0,
|
|
137
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
138
138
|
var queryState = (0, _useSearchQuery.useSearchQuery)(state);
|
|
139
139
|
var _usePlugins = (0, _usePlugins2.usePlugins)(queryState, activeTab, plugins, recentSearchListSize, alwaysShowTabs),
|
|
140
140
|
items = _usePlugins.items,
|
|
@@ -412,7 +412,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
412
412
|
// for details: https://a11y-internal.atlassian.net/browse/AK-740
|
|
413
413
|
var screenReaderText = (0, _userAgent.browser)().safari && (0, _utils.getScreenReaderText)(items !== null && items !== void 0 ? items : [], selectedIndex, intl);
|
|
414
414
|
var customSubmitButtonLabel = customMessages !== null && customMessages !== void 0 && customMessages.submitButtonLabel ? customMessages.submitButtonLabel : undefined;
|
|
415
|
-
var errorMessage = invalidUrl ? previewableLinksOnly && !hasPreview ? /*#__PURE__*/React.createElement(
|
|
415
|
+
var errorMessage = invalidUrl ? previewableLinksOnly && !hasPreview ? /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _messages.formMessages.noEmbedAvailable, {
|
|
416
416
|
values: {
|
|
417
417
|
a: function a(chunk) {
|
|
418
418
|
return /*#__PURE__*/React.createElement(_linkUrl.default, {
|
|
@@ -440,7 +440,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
440
440
|
delay: 250
|
|
441
441
|
}), /*#__PURE__*/React.createElement(_visuallyHidden.default, {
|
|
442
442
|
id: screenReaderDescriptionId
|
|
443
|
-
}, customMessages !== null && customMessages !== void 0 && customMessages.linkAriaLabel ? /*#__PURE__*/React.createElement(
|
|
443
|
+
}, customMessages !== null && customMessages !== void 0 && customMessages.linkAriaLabel ? /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, customMessages.linkAriaLabel) : /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, messages.linkAriaLabel))), /*#__PURE__*/React.createElement(LinkInputField, (0, _extends2.default)({
|
|
444
444
|
name: "url",
|
|
445
445
|
autoComplete: "off",
|
|
446
446
|
testId: testIds.urlInputField,
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.timeMessages = exports.searchMessages = exports.linkTextMessages = exports.linkMessages = exports.formMessages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var searchMessages = exports.searchMessages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var searchMessages = exports.searchMessages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
linkLabel: {
|
|
10
10
|
id: 'fabric.linkPicker.search.linkLabel',
|
|
11
11
|
defaultMessage: 'Search or paste a link',
|
|
@@ -22,7 +22,7 @@ var searchMessages = exports.searchMessages = (0, _reactIntlNext.defineMessages)
|
|
|
22
22
|
description: 'Placeholder text for the link input'
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
var linkMessages = exports.linkMessages = (0,
|
|
25
|
+
var linkMessages = exports.linkMessages = (0, _reactIntl.defineMessages)({
|
|
26
26
|
linkLabel: {
|
|
27
27
|
id: 'fabric.linkPicker.linkLabel',
|
|
28
28
|
defaultMessage: 'Link',
|
|
@@ -39,7 +39,7 @@ var linkMessages = exports.linkMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
39
39
|
description: 'Placeholder text for the link input'
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
var formMessages = exports.formMessages = (0,
|
|
42
|
+
var formMessages = exports.formMessages = (0, _reactIntl.defineMessages)({
|
|
43
43
|
linkInvalid: {
|
|
44
44
|
id: 'fabric.linkPicker.linkInvalid',
|
|
45
45
|
defaultMessage: 'Enter a valid URL.',
|
|
@@ -56,7 +56,7 @@ var formMessages = exports.formMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
56
56
|
description: 'Error message shown for links without embeds'
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
var linkTextMessages = exports.linkTextMessages = (0,
|
|
59
|
+
var linkTextMessages = exports.linkTextMessages = (0, _reactIntl.defineMessages)({
|
|
60
60
|
linkTextLabel: {
|
|
61
61
|
id: 'fabric.linkPicker.linkTextLabel',
|
|
62
62
|
defaultMessage: 'Display text (optional)',
|
|
@@ -88,7 +88,7 @@ var linkTextMessages = exports.linkTextMessages = (0, _reactIntlNext.defineMessa
|
|
|
88
88
|
description: 'Aria label for the helper text of the link display input'
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
var timeMessages = exports.timeMessages = (0,
|
|
91
|
+
var timeMessages = exports.timeMessages = (0, _reactIntl.defineMessages)({
|
|
92
92
|
updated: {
|
|
93
93
|
id: 'fabric.linkPicker.time.message.updated',
|
|
94
94
|
defaultMessage: 'Updated {time}',
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.testIds = exports.messages = exports.LinkSearchError = exports.CONTACT_SUPPORT_LINK_FEDRAMP = exports.CONTACT_SUPPORT_LINK = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _reactIntl = require("react-intl");
|
|
11
11
|
var _atlassianContext = require("@atlaskit/atlassian-context");
|
|
12
12
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
13
13
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
@@ -15,7 +15,7 @@ var _genericErrorSvg = require("../../../../common/generic-error-svg");
|
|
|
15
15
|
var _emptyState = require("../../../../common/ui/empty-state");
|
|
16
16
|
var CONTACT_SUPPORT_LINK = exports.CONTACT_SUPPORT_LINK = 'https://support.atlassian.com/contact/';
|
|
17
17
|
var CONTACT_SUPPORT_LINK_FEDRAMP = exports.CONTACT_SUPPORT_LINK_FEDRAMP = 'https://gcs.atlassian-us-gov-mod.net/servicedesk/customer/portals';
|
|
18
|
-
var messages = exports.messages = (0,
|
|
18
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
19
19
|
searchErrorHeader: {
|
|
20
20
|
id: 'fabric.linkPicker.search.error.heading',
|
|
21
21
|
defaultMessage: 'We’re having trouble loading data.',
|
|
@@ -37,11 +37,11 @@ var testIds = exports.testIds = {
|
|
|
37
37
|
};
|
|
38
38
|
var LinkSearchError = exports.LinkSearchError = function LinkSearchError(_ref) {
|
|
39
39
|
var onRetry = _ref.onRetry;
|
|
40
|
-
var intl = (0,
|
|
40
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
41
41
|
return /*#__PURE__*/_react.default.createElement(_emptyState.EmptyState, {
|
|
42
42
|
testId: testIds.searchError,
|
|
43
43
|
header: intl.formatMessage(messages.searchErrorHeader),
|
|
44
|
-
description: /*#__PURE__*/_react.default.createElement(
|
|
44
|
+
description: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, messages.searchErrorDescription, {
|
|
45
45
|
values: {
|
|
46
46
|
a: function a(label) {
|
|
47
47
|
return /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
@@ -55,7 +55,7 @@ var LinkSearchError = exports.LinkSearchError = function LinkSearchError(_ref) {
|
|
|
55
55
|
action: onRetry ? /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
56
56
|
appearance: "primary",
|
|
57
57
|
onClick: onRetry
|
|
58
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
58
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, messages.searchErrorAction)) : null,
|
|
59
59
|
renderImage: function renderImage() {
|
|
60
60
|
return /*#__PURE__*/_react.default.createElement(_genericErrorSvg.GenericErrorSVG, null);
|
|
61
61
|
}
|
|
@@ -14,7 +14,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
-
var
|
|
17
|
+
var _reactIntl = require("react-intl");
|
|
18
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
19
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
20
20
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
@@ -39,7 +39,7 @@ var listTitleStyles = {
|
|
|
39
39
|
marginBottom: "var(--ds-space-050, 4px)",
|
|
40
40
|
color: "var(--ds-text-subtle, #505258)"
|
|
41
41
|
};
|
|
42
|
-
var messages = exports.messages = (0,
|
|
42
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
43
43
|
titleRecentlyViewedFormatted: {
|
|
44
44
|
id: 'fabric.linkPicker.listTitle.recentlyViewedFormatted',
|
|
45
45
|
defaultMessage: 'Recently viewed',
|
|
@@ -147,9 +147,9 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
|
|
|
147
147
|
style: listTitleStyles,
|
|
148
148
|
id: testIds.resultListTitle,
|
|
149
149
|
testId: testIds.resultListTitle
|
|
150
|
-
}, /*#__PURE__*/React.createElement(
|
|
150
|
+
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, linkListTitle)), /*#__PURE__*/React.createElement(_visuallyHidden.default, {
|
|
151
151
|
id: "fabric.smartcard.linkpicker.suggested.results"
|
|
152
|
-
}, hasSearchTerm && /*#__PURE__*/React.createElement(
|
|
152
|
+
}, hasSearchTerm && /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, messages.searchLinkResults, {
|
|
153
153
|
values: {
|
|
154
154
|
count: items.length
|
|
155
155
|
},
|
package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js
CHANGED
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.testIds = exports.messages = exports.NoResults = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
11
|
var _emptyState = require("../../../../../common/ui/empty-state");
|
|
12
12
|
var _noResultsSvg = require("./no-results-svg");
|
|
13
|
-
var messages = exports.messages = (0,
|
|
13
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
14
14
|
noResults: {
|
|
15
15
|
id: 'fabric.linkPicker.search.noResults.heading',
|
|
16
16
|
defaultMessage: 'We couldn’t find anything matching your search.',
|
|
@@ -28,7 +28,7 @@ var testIds = exports.testIds = {
|
|
|
28
28
|
var NoResults = exports.NoResults = function NoResults(_ref) {
|
|
29
29
|
var _ref$shouldRenderImag = _ref.shouldRenderImage,
|
|
30
30
|
shouldRenderImage = _ref$shouldRenderImag === void 0 ? true : _ref$shouldRenderImag;
|
|
31
|
-
var intl = (0,
|
|
31
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(_emptyState.EmptyState, {
|
|
33
33
|
testId: testIds.emptyResultPage,
|
|
34
34
|
header: intl.formatMessage(messages.noResults),
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
|
-
var
|
|
15
|
+
var _reactIntl = require("react-intl");
|
|
16
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
17
|
var _transformTimeStamp = require("../../../transformTimeStamp");
|
|
18
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -106,7 +106,7 @@ var LinkSearchListItem = exports.LinkSearchListItem = /*#__PURE__*/(0, _react.fo
|
|
|
106
106
|
onFocus = _ref2.onFocus,
|
|
107
107
|
_ref2$nameMaxLines = _ref2.nameMaxLines,
|
|
108
108
|
nameMaxLines = _ref2$nameMaxLines === void 0 ? 1 : _ref2$nameMaxLines;
|
|
109
|
-
var intl = (0,
|
|
109
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
110
110
|
var handleSelect = function handleSelect() {
|
|
111
111
|
return onSelect(item.objectId);
|
|
112
112
|
};
|
|
@@ -7,12 +7,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ConditionalSpotlightTargetWrapper = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _onboarding = require("@atlaskit/onboarding");
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
+
var _spotlight = require("@atlaskit/spotlight");
|
|
10
12
|
// eslint-disable-next-line @atlaskit/design-system/use-spotlight-package
|
|
11
13
|
|
|
12
14
|
var ConditionalSpotlightTargetWrapper = exports.ConditionalSpotlightTargetWrapper = function ConditionalSpotlightTargetWrapper(_ref) {
|
|
13
15
|
var spotlightTargetName = _ref.spotlightTargetName,
|
|
14
16
|
children = _ref.children;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
if (spotlightTargetName) {
|
|
18
|
+
if ((0, _platformFeatureFlags.fg)('navx-4548-migrate-to-atlaskit-spotlight')) {
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_spotlight.PopoverProvider, null, /*#__PURE__*/_react.default.createElement(_spotlight.PopoverTarget, null, children));
|
|
20
|
+
}
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_onboarding.SpotlightTarget, {
|
|
22
|
+
name: spotlightTargetName
|
|
23
|
+
}, children);
|
|
24
|
+
}
|
|
25
|
+
return children;
|
|
18
26
|
};
|
package/dist/cjs/ui/main.js
CHANGED
|
@@ -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: "
|
|
29
|
+
packageVersion: "5.0.0" || '',
|
|
30
30
|
componentName: _constants.COMPONENT_NAME,
|
|
31
31
|
source: _constants.COMPONENT_NAME
|
|
32
32
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
5
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
6
6
|
import { LINK_PICKER_MIN_HEIGHT_IN_PX_FALLBACK } from '../../../common/constants';
|
|
7
7
|
import { GenericErrorSVG } from '../../../common/generic-error-svg';
|
|
8
8
|
import { EmptyState } from '../../../common/ui/empty-state';
|
|
@@ -4,7 +4,7 @@ import "./index.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { memo } from 'react';
|
|
7
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
7
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
8
8
|
import { ButtonGroup } from '@atlaskit/button';
|
|
9
9
|
import Button from '@atlaskit/button/new';
|
|
10
10
|
import EditorAddIcon from '@atlaskit/icon/core/add';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
2
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import Button from '@atlaskit/button/new';
|
|
4
4
|
import { checkSubmitDisabled } from './utils';
|
|
5
5
|
export const messages = defineMessages({
|
|
@@ -4,7 +4,7 @@ import "./index.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { Fragment, memo, useCallback, useLayoutEffect, useMemo, useReducer } from 'react';
|
|
7
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
7
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
9
9
|
import uuid from 'uuid';
|
|
10
10
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { defineMessages, FormattedMessage, useIntl } from 'react-intl
|
|
3
|
+
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
5
5
|
import Button from '@atlaskit/button/new';
|
|
6
6
|
import Link from '@atlaskit/link';
|
|
@@ -4,7 +4,7 @@ import "./index.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { forwardRef, Fragment, useCallback, useRef } from 'react';
|
|
7
|
-
import { defineMessages, FormattedMessage } from 'react-intl
|
|
7
|
+
import { defineMessages, FormattedMessage } from 'react-intl';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import Spinner from '@atlaskit/spinner';
|
|
10
10
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
2
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import { EmptyState } from '../../../../../common/ui/empty-state';
|
|
5
5
|
import { NoResultsSVG } from './no-results-svg';
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { forwardRef, Fragment } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
8
|
/* eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports */
|
|
9
9
|
import { transformTimeStamp } from '../../../transformTimeStamp';
|
|
@@ -2,11 +2,19 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/design-system/use-spotlight-package
|
|
4
4
|
import { SpotlightTarget } from '@atlaskit/onboarding';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { PopoverProvider, PopoverTarget } from '@atlaskit/spotlight';
|
|
5
7
|
export const ConditionalSpotlightTargetWrapper = ({
|
|
6
8
|
spotlightTargetName,
|
|
7
9
|
children
|
|
8
10
|
}) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
if (spotlightTargetName) {
|
|
12
|
+
if (fg('navx-4548-migrate-to-atlaskit-spotlight')) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(PopoverProvider, null, /*#__PURE__*/React.createElement(PopoverTarget, null, children));
|
|
14
|
+
}
|
|
15
|
+
return /*#__PURE__*/React.createElement(SpotlightTarget, {
|
|
16
|
+
name: spotlightTargetName
|
|
17
|
+
}, children);
|
|
18
|
+
}
|
|
19
|
+
return children;
|
|
12
20
|
};
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
5
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
6
6
|
import { LINK_PICKER_MIN_HEIGHT_IN_PX_FALLBACK } from '../../../common/constants';
|
|
7
7
|
import { GenericErrorSVG } from '../../../common/generic-error-svg';
|
|
8
8
|
import { EmptyState } from '../../../common/ui/empty-state';
|
|
@@ -6,7 +6,7 @@ import "./index.compiled.css";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import { memo } from 'react';
|
|
9
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
9
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
10
10
|
import { ButtonGroup } from '@atlaskit/button';
|
|
11
11
|
import Button from '@atlaskit/button/new';
|
|
12
12
|
import EditorAddIcon from '@atlaskit/icon/core/add';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
2
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import Button from '@atlaskit/button/new';
|
|
4
4
|
import { checkSubmitDisabled } from './utils';
|
|
5
5
|
export var messages = defineMessages({
|
|
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import { Fragment, memo, useCallback, useLayoutEffect, useMemo, useReducer } from 'react';
|
|
13
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
13
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
15
15
|
import uuid from 'uuid';
|
|
16
16
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { defineMessages, FormattedMessage, useIntl } from 'react-intl
|
|
3
|
+
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
5
5
|
import Button from '@atlaskit/button/new';
|
|
6
6
|
import Link from '@atlaskit/link';
|
|
@@ -9,7 +9,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
9
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
11
|
import { forwardRef, Fragment, useCallback, useRef } from 'react';
|
|
12
|
-
import { defineMessages, FormattedMessage } from 'react-intl
|
|
12
|
+
import { defineMessages, FormattedMessage } from 'react-intl';
|
|
13
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import Spinner from '@atlaskit/spinner';
|
|
15
15
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
2
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import { EmptyState } from '../../../../../common/ui/empty-state';
|
|
5
5
|
import { NoResultsSVG } from './no-results-svg';
|
|
@@ -4,7 +4,7 @@ import "./index.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { forwardRef, Fragment } from 'react';
|
|
7
|
-
import { useIntl } from 'react-intl
|
|
7
|
+
import { useIntl } from 'react-intl';
|
|
8
8
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
9
9
|
/* eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports */
|
|
10
10
|
import { transformTimeStamp } from '../../../transformTimeStamp';
|
|
@@ -2,10 +2,18 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/design-system/use-spotlight-package
|
|
4
4
|
import { SpotlightTarget } from '@atlaskit/onboarding';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { PopoverProvider, PopoverTarget } from '@atlaskit/spotlight';
|
|
5
7
|
export var ConditionalSpotlightTargetWrapper = function ConditionalSpotlightTargetWrapper(_ref) {
|
|
6
8
|
var spotlightTargetName = _ref.spotlightTargetName,
|
|
7
9
|
children = _ref.children;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
if (spotlightTargetName) {
|
|
11
|
+
if (fg('navx-4548-migrate-to-atlaskit-spotlight')) {
|
|
12
|
+
return /*#__PURE__*/React.createElement(PopoverProvider, null, /*#__PURE__*/React.createElement(PopoverTarget, null, children));
|
|
13
|
+
}
|
|
14
|
+
return /*#__PURE__*/React.createElement(SpotlightTarget, {
|
|
15
|
+
name: spotlightTargetName
|
|
16
|
+
}, children);
|
|
17
|
+
}
|
|
18
|
+
return children;
|
|
11
19
|
};
|
package/dist/esm/ui/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode, Ref } from 'react';
|
|
2
|
-
import type { MessageDescriptor } from 'react-intl
|
|
2
|
+
import type { MessageDescriptor } from 'react-intl';
|
|
3
3
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
export type LinkInputType = 'manual' | 'typeAhead';
|
|
5
5
|
export interface LinkSearchListItemData {
|
|
@@ -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
|
-
export declare const Announcer: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<AnnouncerProps,
|
|
21
|
+
export declare const Announcer: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<AnnouncerProps, 'ref'> & React.RefAttributes<HTMLDivElement>>>;
|
|
22
22
|
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type MemoExoticComponent } from 'react';
|
|
6
|
-
import { type MessageDescriptor } from 'react-intl
|
|
6
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
7
7
|
import { type LinkPickerPluginAction, type LinkPickerState, type LinkSearchListItemData } from '../../../common/types';
|
|
8
8
|
export declare const messages: {
|
|
9
9
|
cancelButton: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type MessageDescriptor } from 'react-intl
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
3
3
|
import type { LinkPickerState, LinkSearchListItemData } from '../../../../common/types';
|
|
4
4
|
type LinkPickerButtonGroupProps = {
|
|
5
5
|
isEditing?: boolean;
|
|
@@ -8,10 +8,10 @@ export declare const testIds: {
|
|
|
8
8
|
readonly urlError: string;
|
|
9
9
|
readonly clearUrlButton: string;
|
|
10
10
|
readonly linkHelperText: string;
|
|
11
|
-
readonly insertButton:
|
|
12
|
-
readonly cancelButton:
|
|
13
|
-
readonly actionButton:
|
|
14
|
-
readonly submitStatusA11yIndicator:
|
|
11
|
+
readonly insertButton: 'link-picker-insert-button';
|
|
12
|
+
readonly cancelButton: 'link-picker-cancel-button';
|
|
13
|
+
readonly actionButton: 'link-picker-action-button';
|
|
14
|
+
readonly submitStatusA11yIndicator: 'link-picker-submit-status-a11y-indicator';
|
|
15
15
|
readonly tabsLoadingIndicator: string;
|
|
16
16
|
readonly tabList: string;
|
|
17
17
|
readonly tabItem: string;
|
|
@@ -22,9 +22,9 @@ export declare const testIds: {
|
|
|
22
22
|
readonly searchResultIcon: string;
|
|
23
23
|
readonly emptyResultPage: string;
|
|
24
24
|
readonly searchError: string;
|
|
25
|
-
readonly linkPickerRoot:
|
|
26
|
-
readonly linkPicker:
|
|
27
|
-
readonly urlInputField:
|
|
28
|
-
readonly textInputField:
|
|
25
|
+
readonly linkPickerRoot: 'link-picker-root';
|
|
26
|
+
readonly linkPicker: 'link-picker';
|
|
27
|
+
readonly urlInputField: 'link-url';
|
|
28
|
+
readonly textInputField: 'link-text';
|
|
29
29
|
};
|
|
30
30
|
export declare const LinkPicker: ComponentType<LinkPickerProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type IntlShape } from 'react-intl
|
|
1
|
+
import { type IntlShape } from 'react-intl';
|
|
2
2
|
export declare const transformTimeStamp: (intl: IntlShape, lastViewedDate?: Date, lastUpdatedDate?: Date) => string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IntlShape } from 'react-intl
|
|
1
|
+
import { type IntlShape } from 'react-intl';
|
|
2
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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode, Ref } from 'react';
|
|
2
|
-
import type { MessageDescriptor } from 'react-intl
|
|
2
|
+
import type { MessageDescriptor } from 'react-intl';
|
|
3
3
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
export type LinkInputType = 'manual' | 'typeAhead';
|
|
5
5
|
export interface LinkSearchListItemData {
|
|
@@ -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
|
-
export declare const Announcer: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<AnnouncerProps,
|
|
21
|
+
export declare const Announcer: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<AnnouncerProps, 'ref'> & React.RefAttributes<HTMLDivElement>>>;
|
|
22
22
|
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type MemoExoticComponent } from 'react';
|
|
6
|
-
import { type MessageDescriptor } from 'react-intl
|
|
6
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
7
7
|
import { type LinkPickerPluginAction, type LinkPickerState, type LinkSearchListItemData } from '../../../common/types';
|
|
8
8
|
export declare const messages: {
|
|
9
9
|
cancelButton: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type MessageDescriptor } from 'react-intl
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
3
3
|
import type { LinkPickerState, LinkSearchListItemData } from '../../../../common/types';
|
|
4
4
|
type LinkPickerButtonGroupProps = {
|
|
5
5
|
isEditing?: boolean;
|
|
@@ -8,10 +8,10 @@ export declare const testIds: {
|
|
|
8
8
|
readonly urlError: string;
|
|
9
9
|
readonly clearUrlButton: string;
|
|
10
10
|
readonly linkHelperText: string;
|
|
11
|
-
readonly insertButton:
|
|
12
|
-
readonly cancelButton:
|
|
13
|
-
readonly actionButton:
|
|
14
|
-
readonly submitStatusA11yIndicator:
|
|
11
|
+
readonly insertButton: 'link-picker-insert-button';
|
|
12
|
+
readonly cancelButton: 'link-picker-cancel-button';
|
|
13
|
+
readonly actionButton: 'link-picker-action-button';
|
|
14
|
+
readonly submitStatusA11yIndicator: 'link-picker-submit-status-a11y-indicator';
|
|
15
15
|
readonly tabsLoadingIndicator: string;
|
|
16
16
|
readonly tabList: string;
|
|
17
17
|
readonly tabItem: string;
|
|
@@ -22,9 +22,9 @@ export declare const testIds: {
|
|
|
22
22
|
readonly searchResultIcon: string;
|
|
23
23
|
readonly emptyResultPage: string;
|
|
24
24
|
readonly searchError: string;
|
|
25
|
-
readonly linkPickerRoot:
|
|
26
|
-
readonly linkPicker:
|
|
27
|
-
readonly urlInputField:
|
|
28
|
-
readonly textInputField:
|
|
25
|
+
readonly linkPickerRoot: 'link-picker-root';
|
|
26
|
+
readonly linkPicker: 'link-picker';
|
|
27
|
+
readonly urlInputField: 'link-url';
|
|
28
|
+
readonly textInputField: 'link-text';
|
|
29
29
|
};
|
|
30
30
|
export declare const LinkPicker: ComponentType<LinkPickerProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type IntlShape } from 'react-intl
|
|
1
|
+
import { type IntlShape } from 'react-intl';
|
|
2
2
|
export declare const transformTimeStamp: (intl: IntlShape, lastViewedDate?: Date, lastUpdatedDate?: Date) => string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IntlShape } from 'react-intl
|
|
1
|
+
import { type IntlShape } from 'react-intl';
|
|
2
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -44,6 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"aifc_create_enabled": {
|
|
46
46
|
"type": "boolean"
|
|
47
|
+
},
|
|
48
|
+
"navx-4548-migrate-to-atlaskit-spotlight": {
|
|
49
|
+
"type": "boolean"
|
|
47
50
|
}
|
|
48
51
|
},
|
|
49
52
|
"scripts": {
|
|
@@ -65,12 +68,13 @@
|
|
|
65
68
|
"@atlaskit/linking-common": "^9.11.0",
|
|
66
69
|
"@atlaskit/onboarding": "^14.5.0",
|
|
67
70
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
68
|
-
"@atlaskit/primitives": "^
|
|
69
|
-
"@atlaskit/smart-card": "^
|
|
71
|
+
"@atlaskit/primitives": "^19.0.0",
|
|
72
|
+
"@atlaskit/smart-card": "^44.0.0",
|
|
70
73
|
"@atlaskit/spinner": "^19.1.0",
|
|
74
|
+
"@atlaskit/spotlight": "^0.12.0",
|
|
71
75
|
"@atlaskit/tabs": "^19.0.0",
|
|
72
76
|
"@atlaskit/textfield": "^8.3.0",
|
|
73
|
-
"@atlaskit/tokens": "^
|
|
77
|
+
"@atlaskit/tokens": "^13.0.0",
|
|
74
78
|
"@atlaskit/tooltip": "^21.1.0",
|
|
75
79
|
"@atlaskit/ufo": "^0.4.0",
|
|
76
80
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -85,14 +89,14 @@
|
|
|
85
89
|
},
|
|
86
90
|
"peerDependencies": {
|
|
87
91
|
"react": "^18.2.0",
|
|
88
|
-
"react-intl
|
|
92
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
89
93
|
},
|
|
90
94
|
"devDependencies": {
|
|
91
95
|
"@af/analytics-codegen": "workspace:^",
|
|
92
96
|
"@af/integration-testing": "workspace:^",
|
|
93
97
|
"@af/visual-regression": "workspace:^",
|
|
94
98
|
"@atlaskit/dropdown-menu": "^16.8.0",
|
|
95
|
-
"@atlaskit/link-test-helpers": "^
|
|
99
|
+
"@atlaskit/link-test-helpers": "^10.0.0",
|
|
96
100
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
97
101
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
98
102
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
@@ -107,6 +111,7 @@
|
|
|
107
111
|
"node-fetch": "^2.6.7",
|
|
108
112
|
"prettier": "^3.2.5",
|
|
109
113
|
"react-dom": "^18.2.0",
|
|
114
|
+
"react-intl": "^6.6.2",
|
|
110
115
|
"sinon": "^2.2.0"
|
|
111
116
|
},
|
|
112
117
|
"techstack": {
|
package/report.api.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/// <reference types="react" />
|
|
20
20
|
|
|
21
21
|
import { jsx } from '@compiled/react';
|
|
22
|
-
import { MessageDescriptor } from 'react-intl
|
|
22
|
+
import { MessageDescriptor } from 'react-intl';
|
|
23
23
|
import { default as React_2 } from 'react';
|
|
24
24
|
import { ReactNode } from 'react';
|
|
25
25
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
@@ -153,7 +153,7 @@ export class UnauthenticatedError extends Error {
|
|
|
153
153
|
```json
|
|
154
154
|
{
|
|
155
155
|
"react": "^16.8.0",
|
|
156
|
-
"react-intl
|
|
156
|
+
"react-intl": "npm:react-intl@^5.18.1"
|
|
157
157
|
}
|
|
158
158
|
```
|
|
159
159
|
|