@atlaskit/link-picker 1.18.4 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/i18n/da.js +3 -0
  3. package/dist/cjs/i18n/fi.js +3 -0
  4. package/dist/cjs/i18n/it.js +3 -0
  5. package/dist/cjs/i18n/ja.js +3 -0
  6. package/dist/cjs/i18n/ko.js +3 -0
  7. package/dist/cjs/i18n/nl.js +3 -0
  8. package/dist/cjs/i18n/pt_BR.js +3 -0
  9. package/dist/cjs/i18n/ru.js +3 -0
  10. package/dist/cjs/i18n/sv.js +3 -0
  11. package/dist/cjs/i18n/th.js +3 -0
  12. package/dist/cjs/i18n/vi.js +3 -0
  13. package/dist/cjs/services/use-plugins/index.js +43 -46
  14. package/dist/cjs/services/use-plugins/utils.js +16 -19
  15. package/dist/cjs/ui/index.js +2 -1
  16. package/dist/cjs/ui/scrolling-tabs/index.js +1 -1
  17. package/dist/cjs/version.json +1 -1
  18. package/dist/es2019/i18n/da.js +3 -0
  19. package/dist/es2019/i18n/fi.js +3 -0
  20. package/dist/es2019/i18n/it.js +3 -0
  21. package/dist/es2019/i18n/ja.js +3 -0
  22. package/dist/es2019/i18n/ko.js +3 -0
  23. package/dist/es2019/i18n/nl.js +3 -0
  24. package/dist/es2019/i18n/pt_BR.js +3 -0
  25. package/dist/es2019/i18n/ru.js +3 -0
  26. package/dist/es2019/i18n/sv.js +3 -0
  27. package/dist/es2019/i18n/th.js +3 -0
  28. package/dist/es2019/i18n/vi.js +3 -0
  29. package/dist/es2019/version.json +1 -1
  30. package/dist/esm/i18n/da.js +3 -0
  31. package/dist/esm/i18n/fi.js +3 -0
  32. package/dist/esm/i18n/it.js +3 -0
  33. package/dist/esm/i18n/ja.js +3 -0
  34. package/dist/esm/i18n/ko.js +3 -0
  35. package/dist/esm/i18n/nl.js +3 -0
  36. package/dist/esm/i18n/pt_BR.js +3 -0
  37. package/dist/esm/i18n/ru.js +3 -0
  38. package/dist/esm/i18n/sv.js +3 -0
  39. package/dist/esm/i18n/th.js +3 -0
  40. package/dist/esm/i18n/vi.js +3 -0
  41. package/dist/esm/services/use-plugins/index.js +43 -46
  42. package/dist/esm/services/use-plugins/utils.js +16 -19
  43. package/dist/esm/ui/scrolling-tabs/index.js +1 -1
  44. package/dist/esm/version.json +1 -1
  45. package/dist/types/common/analytics/experiences.d.ts +1 -1
  46. package/dist/types/i18n/da.d.ts +3 -0
  47. package/dist/types/i18n/fi.d.ts +3 -0
  48. package/dist/types/i18n/it.d.ts +3 -0
  49. package/dist/types/i18n/ja.d.ts +3 -0
  50. package/dist/types/i18n/ko.d.ts +3 -0
  51. package/dist/types/i18n/nl.d.ts +3 -0
  52. package/dist/types/i18n/pt_BR.d.ts +3 -0
  53. package/dist/types/i18n/ru.d.ts +3 -0
  54. package/dist/types/i18n/sv.d.ts +3 -0
  55. package/dist/types/i18n/th.d.ts +3 -0
  56. package/dist/types/i18n/vi.d.ts +3 -0
  57. package/package.json +29 -29
  58. package/tmp/api-report-tmp.d.ts +0 -117
@@ -29,6 +29,9 @@ export default {
29
29
  'fabric.linkPicker.search.linkPlaceholder': 'Encontre links recentes ou cole um link novo',
30
30
  'fabric.linkPicker.search.noResults.description': 'Tente de novo usando outro termo.',
31
31
  'fabric.linkPicker.search.noResults.heading': 'Não foi possível encontrar nenhum resultado para a pesquisa.',
32
+ 'fabric.linkPicker.time.ago': 'há',
33
+ 'fabric.linkPicker.time.updated': 'Atualizado',
34
+ 'fabric.linkPicker.time.viewed': 'Visualizado',
32
35
  'fabric.linkPicker.unhandledError.description': 'Tente recarregar a página.',
33
36
  'fabric.linkPicker.unhandledError.heading': 'Algo deu errado!'
34
37
  };
@@ -29,6 +29,9 @@ export default {
29
29
  'fabric.linkPicker.search.linkPlaceholder': 'Выполните поиск недавних ссылок или вставьте новую',
30
30
  'fabric.linkPicker.search.noResults.description': 'Попробуйте изменить запрос.',
31
31
  'fabric.linkPicker.search.noResults.heading': 'Ничего не найдено.',
32
+ 'fabric.linkPicker.time.ago': 'назад',
33
+ 'fabric.linkPicker.time.updated': 'Обновлено',
34
+ 'fabric.linkPicker.time.viewed': 'Просмотрено',
32
35
  'fabric.linkPicker.unhandledError.description': 'Попробуйте перезагрузить страницу.',
33
36
  'fabric.linkPicker.unhandledError.heading': 'Произошла ошибка.'
34
37
  };
@@ -29,6 +29,9 @@ export default {
29
29
  'fabric.linkPicker.search.linkPlaceholder': 'Hitta senaste länkar eller klistra in en ny länk',
30
30
  'fabric.linkPicker.search.noResults.description': 'Försök med ett annat sökord.',
31
31
  'fabric.linkPicker.search.noResults.heading': 'Vi kunde inte hitta några träffar för din sökning.',
32
+ 'fabric.linkPicker.time.ago': 'sedan',
33
+ 'fabric.linkPicker.time.updated': 'Uppdaterad',
34
+ 'fabric.linkPicker.time.viewed': 'Visad',
32
35
  'fabric.linkPicker.unhandledError.description': 'Försök uppdatera sidan.',
33
36
  'fabric.linkPicker.unhandledError.heading': 'Något gick fel!'
34
37
  };
@@ -29,6 +29,9 @@ export default {
29
29
  'fabric.linkPicker.search.linkPlaceholder': 'ค้นหาลิงก์ล่าสุดหรือวางลิงก์ใหม่',
30
30
  'fabric.linkPicker.search.noResults.description': 'ลองอีกครั้งด้วยคำอื่น',
31
31
  'fabric.linkPicker.search.noResults.heading': 'เราไม่พบรายการใด ๆ ที่ตรงกับการค้นหาของคุณ',
32
+ 'fabric.linkPicker.time.ago': 'ที่แล้ว',
33
+ 'fabric.linkPicker.time.updated': 'อัปเดตแล้ว',
34
+ 'fabric.linkPicker.time.viewed': 'ดูเมื่อ',
32
35
  'fabric.linkPicker.unhandledError.description': 'ลองโหลดหน้าข้อมูลใหม่อีกครั้ง',
33
36
  'fabric.linkPicker.unhandledError.heading': 'เกิดข้อผิดพลาดบางอย่าง!'
34
37
  };
@@ -29,6 +29,9 @@ export default {
29
29
  'fabric.linkPicker.search.linkPlaceholder': 'Tìm các liên kết gần đây hoặc dán một liên kết mới',
30
30
  'fabric.linkPicker.search.noResults.description': 'Hãy thử lại bằng cụm từ tìm kiếm khác.',
31
31
  'fabric.linkPicker.search.noResults.heading': 'Không tìm thấy bất kỳ nội dung nào phù hợp với yêu cầu tìm kiếm của bạn.',
32
+ 'fabric.linkPicker.time.ago': 'trước',
33
+ 'fabric.linkPicker.time.updated': 'Đã cập nhật',
34
+ 'fabric.linkPicker.time.viewed': 'Đã xem',
32
35
  'fabric.linkPicker.unhandledError.description': 'Hãy thử tải lại trang.',
33
36
  'fabric.linkPicker.unhandledError.heading': 'Đã xảy ra lỗi!'
34
37
  };
@@ -1,7 +1,6 @@
1
- import _typeof from "@babel/runtime/helpers/typeof";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
4
  import { useEffect, useMemo, useState, useCallback } from 'react';
6
5
  import { convertToError } from '@atlaskit/frontend-utilities/convert-to-error';
7
6
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
@@ -46,54 +45,52 @@ export function usePlugins(state, activeTab, plugins) {
46
45
  next = _resolvePluginUpdates.next,
47
46
  cancel = _resolvePluginUpdates.cancel;
48
47
  var updateResults = /*#__PURE__*/function () {
49
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
48
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
50
49
  var _isLoading, _yield$next, value, done;
51
- return _regeneratorRuntime().wrap(function _callee$(_context) {
52
- while (1) {
53
- switch (_context.prev = _context.next) {
54
- case 0:
55
- _context.prev = 0;
56
- _isLoading = true;
57
- case 2:
58
- if (!_isLoading) {
59
- _context.next = 12;
60
- break;
50
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
51
+ while (1) switch (_context.prev = _context.next) {
52
+ case 0:
53
+ _context.prev = 0;
54
+ _isLoading = true;
55
+ case 2:
56
+ if (!_isLoading) {
57
+ _context.next = 12;
58
+ break;
59
+ }
60
+ _context.next = 5;
61
+ return next();
62
+ case 5:
63
+ _yield$next = _context.sent;
64
+ value = _yield$next.value;
65
+ done = _yield$next.done;
66
+ _isLoading = !done;
67
+ dispatch({
68
+ type: 'SUCCESS',
69
+ payload: {
70
+ items: limit(value.data),
71
+ isLoading: !done
61
72
  }
62
- _context.next = 5;
63
- return next();
64
- case 5:
65
- _yield$next = _context.sent;
66
- value = _yield$next.value;
67
- done = _yield$next.done;
68
- _isLoading = !done;
73
+ });
74
+ _context.next = 2;
75
+ break;
76
+ case 12:
77
+ _context.next = 17;
78
+ break;
79
+ case 14:
80
+ _context.prev = 14;
81
+ _context.t0 = _context["catch"](0);
82
+ if (!(_context.t0 instanceof CancellationError)) {
69
83
  dispatch({
70
- type: 'SUCCESS',
71
- payload: {
72
- items: limit(value.data),
73
- isLoading: !done
74
- }
84
+ type: 'ERROR',
85
+ payload: _context.t0
75
86
  });
76
- _context.next = 2;
77
- break;
78
- case 12:
79
- _context.next = 17;
80
- break;
81
- case 14:
82
- _context.prev = 14;
83
- _context.t0 = _context["catch"](0);
84
- if (!(_context.t0 instanceof CancellationError)) {
85
- dispatch({
86
- type: 'ERROR',
87
- payload: _context.t0
88
- });
89
- createAnalyticsEvent(createEventPayload('operational.resultsResolve.failed', {
90
- error: convertToError(_context.t0).toString()
91
- })).fire(ANALYTICS_CHANNEL);
92
- }
93
- case 17:
94
- case "end":
95
- return _context.stop();
96
- }
87
+ createAnalyticsEvent(createEventPayload('operational.resultsResolve.failed', {
88
+ error: convertToError(_context.t0).toString()
89
+ })).fire(ANALYTICS_CHANNEL);
90
+ }
91
+ case 17:
92
+ case "end":
93
+ return _context.stop();
97
94
  }
98
95
  }, _callee, null, [[0, 14]]);
99
96
  }));
@@ -1,4 +1,3 @@
1
- import _typeof from "@babel/runtime/helpers/typeof";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _createClass from "@babel/runtime/helpers/createClass";
4
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -6,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
6
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
7
  import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
9
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
8
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
10
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
11
  export var CancellationError = /*#__PURE__*/function (_Error) {
@@ -46,23 +45,21 @@ export var resolvePluginUpdates = function resolvePluginUpdates(plugin, state) {
46
45
  return {
47
46
  cancel: cancel,
48
47
  next: function () {
49
- var _next = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
50
- return _regeneratorRuntime().wrap(function _callee$(_context) {
51
- while (1) {
52
- switch (_context.prev = _context.next) {
53
- case 0:
54
- _context.next = 2;
55
- return promise;
56
- case 2:
57
- _context.t0 = _context.sent;
58
- return _context.abrupt("return", {
59
- value: _context.t0,
60
- done: true
61
- });
62
- case 4:
63
- case "end":
64
- return _context.stop();
65
- }
48
+ var _next = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
49
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
50
+ while (1) switch (_context.prev = _context.next) {
51
+ case 0:
52
+ _context.next = 2;
53
+ return promise;
54
+ case 2:
55
+ _context.t0 = _context.sent;
56
+ return _context.abrupt("return", {
57
+ value: _context.t0,
58
+ done: true
59
+ });
60
+ case 4:
61
+ case "end":
62
+ return _context.stop();
66
63
  }
67
64
  }, _callee);
68
65
  }));
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
4
4
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
6
6
  /** @jsx jsx */
7
7
  import React, { useRef, useMemo, useState, useCallback } from 'react';
8
8
  import { jsx } from '@emotion/react';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.18.4",
3
+ "version": "1.19.0",
4
4
  "sideEffects": false
5
5
  }
@@ -3,7 +3,7 @@ export declare const ufoExperience: {
3
3
  readonly mounted: "component-mounted";
4
4
  };
5
5
  declare type ExperienceType = keyof typeof ufoExperience;
6
- declare type ExperienceName = typeof ufoExperience[ExperienceType];
6
+ declare type ExperienceName = (typeof ufoExperience)[ExperienceType];
7
7
  export declare const startUfoExperience: (experienceName: ExperienceName, id: string, metadata?: CustomData | undefined) => void;
8
8
  export declare const succeedUfoExperience: (experienceName: ExperienceName, id: string, metadata?: CustomData | undefined) => void;
9
9
  export declare const failUfoExperience: (experienceName: ExperienceName, id: string, metadata?: CustomData | undefined) => void;
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  'fabric.linkPicker.search.linkPlaceholder': string;
22
22
  'fabric.linkPicker.search.noResults.description': string;
23
23
  'fabric.linkPicker.search.noResults.heading': string;
24
+ 'fabric.linkPicker.time.ago': string;
25
+ 'fabric.linkPicker.time.updated': string;
26
+ 'fabric.linkPicker.time.viewed': string;
24
27
  'fabric.linkPicker.unhandledError.description': string;
25
28
  'fabric.linkPicker.unhandledError.heading': string;
26
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.18.4",
3
+ "version": "1.19.0",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -30,21 +30,21 @@
30
30
  "codegen-analytics": "yarn run ts-analytics-codegen --command='yarn workspace @atlaskit/link-picker run codegen-analytics'"
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/analytics-next": "^9.0.0",
34
- "@atlaskit/button": "^16.6.0",
35
- "@atlaskit/empty-state": "^7.4.0",
36
- "@atlaskit/form": "^8.9.0",
37
- "@atlaskit/frontend-utilities": "^2.4.0",
38
- "@atlaskit/icon": "^21.11.0",
39
- "@atlaskit/linking-common": "^2.4.0",
40
- "@atlaskit/spinner": "^15.4.0",
41
- "@atlaskit/tabs": "^13.3.0",
42
- "@atlaskit/textfield": "^5.3.0",
43
- "@atlaskit/theme": "^12.4.0",
44
- "@atlaskit/tokens": "^1.2.0",
45
- "@atlaskit/tooltip": "^17.7.0",
46
- "@atlaskit/ufo": "^0.1.0",
47
- "@atlaskit/visually-hidden": "^1.1.0",
33
+ "@atlaskit/analytics-next": "^9.1.0",
34
+ "@atlaskit/button": "^16.7.0",
35
+ "@atlaskit/empty-state": "^7.5.0",
36
+ "@atlaskit/form": "^8.11.0",
37
+ "@atlaskit/frontend-utilities": "^2.6.0",
38
+ "@atlaskit/icon": "^21.12.0",
39
+ "@atlaskit/linking-common": "^2.8.0",
40
+ "@atlaskit/spinner": "^15.5.0",
41
+ "@atlaskit/tabs": "^13.4.0",
42
+ "@atlaskit/textfield": "^5.4.0",
43
+ "@atlaskit/theme": "^12.5.0",
44
+ "@atlaskit/tokens": "^1.3.0",
45
+ "@atlaskit/tooltip": "^17.8.0",
46
+ "@atlaskit/ufo": "^0.2.0",
47
+ "@atlaskit/visually-hidden": "^1.2.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
50
50
  "@react-loosely-lazy/manifest": "^1.0.0",
@@ -58,23 +58,23 @@
58
58
  "react-intl-next": "npm:react-intl@^5.18.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@af/analytics-codegen": "^0.0.3",
62
- "@atlaskit/activity-provider": "^2.3.2",
61
+ "@af/analytics-codegen": "^0.0.5",
62
+ "@atlaskit/activity-provider": "^2.4.0",
63
63
  "@atlaskit/docs": "*",
64
- "@atlaskit/link-analytics": "^7.0.0",
65
- "@atlaskit/link-provider": "^1.5.0",
66
- "@atlaskit/link-test-helpers": "^2.2.0",
67
- "@atlaskit/popup": "^1.5.0",
64
+ "@atlaskit/link-analytics": "^8.0.0",
65
+ "@atlaskit/link-provider": "^1.6.0",
66
+ "@atlaskit/link-test-helpers": "^2.3.0",
67
+ "@atlaskit/popup": "^1.6.0",
68
68
  "@atlaskit/ssr": "*",
69
- "@atlaskit/toggle": "^12.5.0",
69
+ "@atlaskit/toggle": "^12.6.0",
70
70
  "@atlaskit/visual-regression": "*",
71
71
  "@atlaskit/webdriver-runner": "*",
72
72
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
73
- "@atlassian/codegen": "^0.0.1",
74
- "@atlassian/link-picker-atlassian-plugin": "^28.0.0",
75
- "@atlassian/link-picker-plugins": "^18.1.0",
76
- "@atlassian/recent-work-client": "^1.7.0",
77
- "@atlassian/search-provider": "^2.3.0",
73
+ "@atlassian/codegen": "^0.1.0",
74
+ "@atlassian/link-picker-atlassian-plugin": "^29.0.0",
75
+ "@atlassian/link-picker-plugins": "^19.0.0",
76
+ "@atlassian/recent-work-client": "^1.8.0",
77
+ "@atlassian/search-provider": "^2.4.0",
78
78
  "@testing-library/dom": "^8.17.1",
79
79
  "@testing-library/jest-dom": "^5.16.5",
80
80
  "@testing-library/react": "^12.1.5",
@@ -85,7 +85,7 @@
85
85
  "lodash": "^4.17.21",
86
86
  "mockdate": "^3.0.5",
87
87
  "node-fetch": "^2.6.7",
88
- "prettier": "^2.7.0",
88
+ "prettier": "^2.8.0",
89
89
  "react-dom": "^16.8.0",
90
90
  "sinon": "^2.2.0",
91
91
  "typescript": "4.5.5"
@@ -1,117 +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 { MessageDescriptor } from 'react-intl-next';
10
- import { default as React_2 } from 'react';
11
- import { ReactNode } from 'react';
12
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
13
-
14
- // @public (undocumented)
15
- export type LinkInputType = 'manual' | 'typeAhead';
16
-
17
- // @public (undocumented)
18
- export const LinkPicker: React_2.MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
19
-
20
- // @public (undocumented)
21
- export interface LinkPickerPlugin {
22
- action?: LinkPickerPluginAction;
23
- errorFallback?: LinkPickerPluginErrorFallback;
24
- meta?: {
25
- source?: string;
26
- };
27
- // (undocumented)
28
- resolve: (state: LinkPickerState) => AsyncGenerator<ResolveResult, ResolveResult> | Promise<ResolveResult>;
29
- tabKey?: string;
30
- tabTitle?: string;
31
- UNSAFE_onActivation?: () => void;
32
- }
33
-
34
- // @public (undocumented)
35
- export interface LinkPickerPluginAction {
36
- // (undocumented)
37
- callback: () => void;
38
- // (undocumented)
39
- label: MessageDescriptor;
40
- }
41
-
42
- // @public (undocumented)
43
- export type LinkPickerPluginErrorFallback = (error: unknown, retry: () => void) => ReactNode;
44
-
45
- // @public (undocumented)
46
- export interface LinkPickerProps {
47
- component?: React.ComponentType<Partial<LinkPickerProps> & {
48
- children: React.ReactElement;
49
- }>;
50
- displayText?: null | string;
51
- // (undocumented)
52
- featureFlags?: Record<string, unknown>;
53
- hideDisplayText?: boolean;
54
- onCancel: () => void;
55
- onContentResize?: () => void;
56
- onSubmit: (arg: OnSubmitParameter, analytic?: UIAnalyticsEvent | null) => void;
57
- plugins?: LinkPickerPlugin[];
58
- url?: string;
59
- }
60
-
61
- // @public (undocumented)
62
- export interface LinkPickerState {
63
- query: string;
64
- }
65
-
66
- // @public (undocumented)
67
- export interface LinkSearchListItemData {
68
- container?: string;
69
- icon: React.ComponentType<{
70
- alt: string;
71
- }> | string;
72
- iconAlt: MessageDescriptor | string;
73
- lastUpdatedDate?: Date;
74
- lastViewedDate?: Date;
75
- meta?: {
76
- source?: string;
77
- };
78
- name: string;
79
- objectId: string;
80
- prefetch?: boolean;
81
- url: string;
82
- }
83
-
84
- // @public (undocumented)
85
- interface Meta {
86
- inputMethod: LinkInputType;
87
- }
88
-
89
- // @public (undocumented)
90
- interface OnSubmitParameter {
91
- displayText: null | string;
92
- meta: Meta;
93
- rawUrl?: string;
94
- title: null | string;
95
- url: string;
96
- }
97
-
98
- // @public (undocumented)
99
- interface ResolveResult {
100
- // (undocumented)
101
- data: LinkSearchListItemData[];
102
- }
103
-
104
- // @public (undocumented)
105
- export class UnauthenticatedError extends Error {
106
- constructor(iconUrl: string, authUrl: string, description: string);
107
- // (undocumented)
108
- authUrl: string;
109
- // (undocumented)
110
- description: string;
111
- // (undocumented)
112
- iconUrl: string;
113
- }
114
-
115
- // (No @packageDocumentation comment for this package)
116
-
117
- ```