@atlaskit/link-picker 1.44.1 → 1.45.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 +16 -0
- package/dist/cjs/common/analytics/context.js +1 -1
- package/dist/cjs/common/analytics/input-field-tracking.js +1 -1
- package/dist/cjs/common/ui/min-height-container/index.js +1 -1
- package/dist/cjs/common/utils/errors.js +1 -1
- package/dist/cjs/controllers/session-provider/index.js +1 -1
- package/dist/cjs/i18n/cs.js +1 -1
- package/dist/cjs/i18n/da.js +1 -1
- package/dist/cjs/i18n/de.js +1 -1
- package/dist/cjs/i18n/en.js +1 -1
- package/dist/cjs/i18n/en_GB.js +1 -1
- package/dist/cjs/i18n/en_ZZ.js +1 -1
- package/dist/cjs/i18n/es.js +1 -1
- package/dist/cjs/i18n/fi.js +1 -1
- package/dist/cjs/i18n/fr.js +1 -1
- package/dist/cjs/i18n/hu.js +1 -1
- package/dist/cjs/i18n/index.js +1 -1
- package/dist/cjs/i18n/it.js +1 -1
- package/dist/cjs/i18n/ja.js +1 -1
- package/dist/cjs/i18n/ko.js +1 -1
- package/dist/cjs/i18n/nb.js +1 -1
- package/dist/cjs/i18n/nl.js +1 -1
- package/dist/cjs/i18n/pl.js +1 -1
- package/dist/cjs/i18n/pt_BR.js +1 -1
- package/dist/cjs/i18n/ru.js +1 -1
- package/dist/cjs/i18n/sv.js +1 -1
- package/dist/cjs/i18n/th.js +1 -1
- package/dist/cjs/i18n/tr.js +1 -1
- package/dist/cjs/i18n/uk.js +1 -1
- package/dist/cjs/i18n/vi.js +1 -1
- package/dist/cjs/i18n/zh.js +1 -1
- package/dist/cjs/i18n/zh_TW.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/services/use-plugins/utils.js +1 -1
- package/dist/cjs/ui/error-boundary/error-boundary-base/index.js +2 -2
- package/dist/cjs/ui/error-boundary/index.js +1 -1
- package/dist/cjs/ui/lazy.js +1 -1
- package/dist/cjs/ui/link-picker/announcer.js +1 -1
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/index.js +12 -2
- package/dist/cjs/ui/link-picker/form-footer/index.js +1 -1
- package/dist/cjs/ui/link-picker/search-results/index.js +2 -1
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +1 -0
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +4 -4
- package/dist/cjs/ui/loader-fallback/index.js +1 -0
- package/dist/cjs/ui/main.js +2 -2
- package/dist/es2019/i18n/cs.js +1 -1
- package/dist/es2019/i18n/da.js +1 -1
- package/dist/es2019/i18n/de.js +1 -1
- package/dist/es2019/i18n/en.js +1 -1
- package/dist/es2019/i18n/en_GB.js +1 -1
- package/dist/es2019/i18n/en_ZZ.js +1 -1
- package/dist/es2019/i18n/es.js +1 -1
- package/dist/es2019/i18n/fi.js +1 -1
- package/dist/es2019/i18n/fr.js +1 -1
- package/dist/es2019/i18n/hu.js +1 -1
- package/dist/es2019/i18n/it.js +1 -1
- package/dist/es2019/i18n/ja.js +1 -1
- package/dist/es2019/i18n/ko.js +1 -1
- package/dist/es2019/i18n/nb.js +1 -1
- package/dist/es2019/i18n/nl.js +1 -1
- package/dist/es2019/i18n/pl.js +1 -1
- package/dist/es2019/i18n/pt_BR.js +1 -1
- package/dist/es2019/i18n/ru.js +1 -1
- package/dist/es2019/i18n/sv.js +1 -1
- package/dist/es2019/i18n/th.js +1 -1
- package/dist/es2019/i18n/tr.js +1 -1
- package/dist/es2019/i18n/uk.js +1 -1
- package/dist/es2019/i18n/vi.js +1 -1
- package/dist/es2019/i18n/zh.js +1 -1
- package/dist/es2019/i18n/zh_TW.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/index.js +14 -2
- package/dist/es2019/ui/link-picker/search-results/index.js +1 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +1 -0
- package/dist/es2019/ui/loader-fallback/index.js +1 -0
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/common/utils/errors.js +1 -1
- package/dist/esm/i18n/cs.js +1 -1
- package/dist/esm/i18n/da.js +1 -1
- package/dist/esm/i18n/de.js +1 -1
- package/dist/esm/i18n/en.js +1 -1
- package/dist/esm/i18n/en_GB.js +1 -1
- package/dist/esm/i18n/en_ZZ.js +1 -1
- package/dist/esm/i18n/es.js +1 -1
- package/dist/esm/i18n/fi.js +1 -1
- package/dist/esm/i18n/fr.js +1 -1
- package/dist/esm/i18n/hu.js +1 -1
- package/dist/esm/i18n/it.js +1 -1
- package/dist/esm/i18n/ja.js +1 -1
- package/dist/esm/i18n/ko.js +1 -1
- package/dist/esm/i18n/nb.js +1 -1
- package/dist/esm/i18n/nl.js +1 -1
- package/dist/esm/i18n/pl.js +1 -1
- package/dist/esm/i18n/pt_BR.js +1 -1
- package/dist/esm/i18n/ru.js +1 -1
- package/dist/esm/i18n/sv.js +1 -1
- package/dist/esm/i18n/th.js +1 -1
- package/dist/esm/i18n/tr.js +1 -1
- package/dist/esm/i18n/uk.js +1 -1
- package/dist/esm/i18n/vi.js +1 -1
- package/dist/esm/i18n/zh.js +1 -1
- package/dist/esm/i18n/zh_TW.js +1 -1
- package/dist/esm/services/use-plugins/utils.js +1 -1
- package/dist/esm/ui/error-boundary/error-boundary-base/index.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/index.js +12 -2
- package/dist/esm/ui/link-picker/search-results/index.js +1 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +1 -0
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +3 -3
- package/dist/esm/ui/loader-fallback/index.js +1 -0
- package/dist/esm/ui/main.js +1 -1
- package/dist/types/ui/loader-fallback/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/loader-fallback/index.d.ts +1 -0
- package/package.json +7 -12
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
|
|
8
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
export var CancellationError = /*#__PURE__*/function (_Error) {
|
|
12
12
|
_inherits(CancellationError, _Error);
|
|
@@ -3,7 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
function _createSuper(
|
|
6
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React, { Component } from 'react';
|
|
9
9
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -26,15 +26,25 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
26
26
|
var storageClient = useMemo(function () {
|
|
27
27
|
return new StorageClient(LOCAL_STORAGE_CLIENT_KEY);
|
|
28
28
|
}, []);
|
|
29
|
+
|
|
29
30
|
// Set this to `false` if you want to always show the feature discovery pulse.
|
|
30
31
|
// (or open Application tab in your devtools and delete the relevent row)
|
|
31
32
|
var discovered = useMemo(function () {
|
|
32
|
-
|
|
33
|
+
try {
|
|
34
|
+
return storageClient.getItem(LOCAL_STORAGE_DISCOVERY_KEY) === LOCAL_STORAGE_DISCOVERY_VALUE;
|
|
35
|
+
} catch (_unused) {
|
|
36
|
+
// If localStorage is not available, don't show feature discovery component. Treat it as 'discovered'.
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
33
39
|
}, [storageClient]);
|
|
34
40
|
useEffect(function () {
|
|
35
41
|
return function () {
|
|
36
42
|
if (!discovered) {
|
|
37
|
-
|
|
43
|
+
try {
|
|
44
|
+
storageClient.setItemWithExpiry(LOCAL_STORAGE_DISCOVERY_KEY, LOCAL_STORAGE_DISCOVERY_VALUE, LOCAL_STORAGE_DISCOVERY_EXPIRY_IN_MS);
|
|
45
|
+
} catch (_unused2) {
|
|
46
|
+
// silent error
|
|
47
|
+
}
|
|
38
48
|
}
|
|
39
49
|
};
|
|
40
50
|
}, [storageClient, discovered]);
|
|
@@ -71,6 +71,7 @@ export var SearchResults = function SearchResults(_ref) {
|
|
|
71
71
|
css: spinnerContainerStyles
|
|
72
72
|
}, jsx(Spinner, {
|
|
73
73
|
testId: testIds.tabsLoadingIndicator,
|
|
74
|
+
interactionName: "link-picker-tabs-loading",
|
|
74
75
|
size: "medium"
|
|
75
76
|
})), !isLoadingPlugins && isActivePlugin && !!queryState && jsx(Fragment, null, tabs.length > 0 && jsx(Box, {
|
|
76
77
|
xcss: tabsWrapperStyles
|
|
@@ -172,6 +172,7 @@ export var LinkSearchList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
172
172
|
css: spinnerContainerStyles
|
|
173
173
|
}, jsx(Spinner, {
|
|
174
174
|
testId: testIds.searchResultLoadingIndicator,
|
|
175
|
+
interactionName: "link-picker-search-list-loading",
|
|
175
176
|
size: "medium"
|
|
176
177
|
}));
|
|
177
178
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
function _createForOfIteratorHelper(
|
|
4
|
-
function _unsupportedIterableToArray(
|
|
5
|
-
function _arrayLikeToArray(
|
|
3
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
4
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6
6
|
/**
|
|
7
7
|
* @jsxRuntime classic
|
|
8
8
|
* @jsx jsx
|
package/dist/esm/ui/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.1",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -9,12 +9,7 @@
|
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Linking Platform",
|
|
12
|
-
"inPublicMirror": false,
|
|
13
|
-
"releaseModel": "continuous",
|
|
14
12
|
"i18n": true,
|
|
15
|
-
"productPushConsumption": [
|
|
16
|
-
"jira"
|
|
17
|
-
],
|
|
18
13
|
"website": {
|
|
19
14
|
"name": "Link Picker"
|
|
20
15
|
},
|
|
@@ -60,17 +55,17 @@
|
|
|
60
55
|
"@atlaskit/form": "^10.5.0",
|
|
61
56
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
62
57
|
"@atlaskit/heading": "^2.4.0",
|
|
63
|
-
"@atlaskit/icon": "^22.
|
|
58
|
+
"@atlaskit/icon": "^22.18.0",
|
|
64
59
|
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
65
60
|
"@atlaskit/linking-common": "^5.11.0",
|
|
66
|
-
"@atlaskit/onboarding": "^11.
|
|
61
|
+
"@atlaskit/onboarding": "^11.14.0",
|
|
67
62
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
68
|
-
"@atlaskit/primitives": "^12.
|
|
63
|
+
"@atlaskit/primitives": "^12.1.0",
|
|
69
64
|
"@atlaskit/spinner": "^16.3.0",
|
|
70
65
|
"@atlaskit/tabs": "^16.4.0",
|
|
71
66
|
"@atlaskit/textfield": "^6.5.0",
|
|
72
67
|
"@atlaskit/theme": "^13.0.0",
|
|
73
|
-
"@atlaskit/tokens": "^1.
|
|
68
|
+
"@atlaskit/tokens": "^1.60.0",
|
|
74
69
|
"@atlaskit/tooltip": "^18.7.0",
|
|
75
70
|
"@atlaskit/ufo": "^0.3.0",
|
|
76
71
|
"@atlaskit/visually-hidden": "^1.5.0",
|
|
@@ -90,8 +85,8 @@
|
|
|
90
85
|
"@af/analytics-codegen": "^0.1.0",
|
|
91
86
|
"@af/integration-testing": "*",
|
|
92
87
|
"@af/visual-regression": "*",
|
|
93
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
94
|
-
"@atlaskit/link-provider": "^1.
|
|
88
|
+
"@atlaskit/dropdown-menu": "^12.18.0",
|
|
89
|
+
"@atlaskit/link-provider": "^1.16.0",
|
|
95
90
|
"@atlaskit/link-test-helpers": "^7.5.0",
|
|
96
91
|
"@atlaskit/visual-regression": "*",
|
|
97
92
|
"@atlassian/feature-flags-test-utils": "*",
|