@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.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/i18n/da.js +3 -0
- package/dist/cjs/i18n/fi.js +3 -0
- package/dist/cjs/i18n/it.js +3 -0
- package/dist/cjs/i18n/ja.js +3 -0
- package/dist/cjs/i18n/ko.js +3 -0
- package/dist/cjs/i18n/nl.js +3 -0
- package/dist/cjs/i18n/pt_BR.js +3 -0
- package/dist/cjs/i18n/ru.js +3 -0
- package/dist/cjs/i18n/sv.js +3 -0
- package/dist/cjs/i18n/th.js +3 -0
- package/dist/cjs/i18n/vi.js +3 -0
- package/dist/cjs/services/use-plugins/index.js +43 -46
- package/dist/cjs/services/use-plugins/utils.js +16 -19
- package/dist/cjs/ui/index.js +2 -1
- package/dist/cjs/ui/scrolling-tabs/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/da.js +3 -0
- package/dist/es2019/i18n/fi.js +3 -0
- package/dist/es2019/i18n/it.js +3 -0
- package/dist/es2019/i18n/ja.js +3 -0
- package/dist/es2019/i18n/ko.js +3 -0
- package/dist/es2019/i18n/nl.js +3 -0
- package/dist/es2019/i18n/pt_BR.js +3 -0
- package/dist/es2019/i18n/ru.js +3 -0
- package/dist/es2019/i18n/sv.js +3 -0
- package/dist/es2019/i18n/th.js +3 -0
- package/dist/es2019/i18n/vi.js +3 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/da.js +3 -0
- package/dist/esm/i18n/fi.js +3 -0
- package/dist/esm/i18n/it.js +3 -0
- package/dist/esm/i18n/ja.js +3 -0
- package/dist/esm/i18n/ko.js +3 -0
- package/dist/esm/i18n/nl.js +3 -0
- package/dist/esm/i18n/pt_BR.js +3 -0
- package/dist/esm/i18n/ru.js +3 -0
- package/dist/esm/i18n/sv.js +3 -0
- package/dist/esm/i18n/th.js +3 -0
- package/dist/esm/i18n/vi.js +3 -0
- package/dist/esm/services/use-plugins/index.js +43 -46
- package/dist/esm/services/use-plugins/utils.js +16 -19
- package/dist/esm/ui/scrolling-tabs/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/common/analytics/experiences.d.ts +1 -1
- package/dist/types/i18n/da.d.ts +3 -0
- package/dist/types/i18n/fi.d.ts +3 -0
- package/dist/types/i18n/it.d.ts +3 -0
- package/dist/types/i18n/ja.d.ts +3 -0
- package/dist/types/i18n/ko.d.ts +3 -0
- package/dist/types/i18n/nl.d.ts +3 -0
- package/dist/types/i18n/pt_BR.d.ts +3 -0
- package/dist/types/i18n/ru.d.ts +3 -0
- package/dist/types/i18n/sv.d.ts +3 -0
- package/dist/types/i18n/th.d.ts +3 -0
- package/dist/types/i18n/vi.d.ts +3 -0
- package/package.json +29 -29
- package/tmp/api-report-tmp.d.ts +0 -117
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 1.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 1.18.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/cjs/i18n/da.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': 'Find de seneste links, eller indsæt et nyt link',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': 'Prøv igen med et andet ord.',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': 'Vi kunne ikke finde noget, der opfylder dine søgekriterier.',
|
|
38
|
+
'fabric.linkPicker.time.ago': 'siden',
|
|
39
|
+
'fabric.linkPicker.time.updated': 'Opdateret for',
|
|
40
|
+
'fabric.linkPicker.time.viewed': 'Set for',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'Prøv at genindlæse siden.',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'Noget gik galt!'
|
|
40
43
|
};
|
package/dist/cjs/i18n/fi.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': 'Etsi viimeaikaisia linkkejä tai liitä uusi linkki',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': 'Yritä uudelleen eri hakutermillä.',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': 'Hakuasi vastaavia tuloksia ei löytynyt.',
|
|
38
|
+
'fabric.linkPicker.time.ago': 'sitten',
|
|
39
|
+
'fabric.linkPicker.time.updated': 'Päivitetty',
|
|
40
|
+
'fabric.linkPicker.time.viewed': 'Katseltu',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'Yritä ladata sivu uudelleen.',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'Jotain meni vikaan'
|
|
40
43
|
};
|
package/dist/cjs/i18n/it.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': 'Trova i link recenti o incolla un nuovo link',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': 'Riprova con un termine diverso.',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': 'Non è stato possibile trovare risultati corrispondenti alla ricerca.',
|
|
38
|
+
'fabric.linkPicker.time.ago': 'fa',
|
|
39
|
+
'fabric.linkPicker.time.updated': 'Aggiornato',
|
|
40
|
+
'fabric.linkPicker.time.viewed': 'Visualizzato',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'Prova a ricaricare la pagina.',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'Si è verificato un problema.'
|
|
40
43
|
};
|
package/dist/cjs/i18n/ja.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': '最近のリンクを検索または新しいリンクを貼り付け',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': '別の検索語句でもう一度お試しください。',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': '検索条件に一致する結果が見つかりませんでした。',
|
|
38
|
+
'fabric.linkPicker.time.ago': '前',
|
|
39
|
+
'fabric.linkPicker.time.updated': '最終更新: ',
|
|
40
|
+
'fabric.linkPicker.time.viewed': '最終閲覧: ',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'ページを再読み込みしてください。',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'エラーが発生しました。'
|
|
40
43
|
};
|
package/dist/cjs/i18n/ko.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': '최근 링크를 찾거나 새 링크를 붙여넣으세요',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': '다른 검색어로 다시 시도하세요.',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': '검색 조건과 일치하는 항목을 찾을 수 없습니다.',
|
|
38
|
+
'fabric.linkPicker.time.ago': '전',
|
|
39
|
+
'fabric.linkPicker.time.updated': '업데이트',
|
|
40
|
+
'fabric.linkPicker.time.viewed': '조회',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': '페이지를 다시 로드해 보세요.',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': '문제가 발생했습니다.'
|
|
40
43
|
};
|
package/dist/cjs/i18n/nl.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': 'Zoek recente links of plak een nieuwe link',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': 'Probeer het opnieuw met een andere term.',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': 'We hebben geen overeenkomsten gevonden voor je zoekopdracht.',
|
|
38
|
+
'fabric.linkPicker.time.ago': 'geleden',
|
|
39
|
+
'fabric.linkPicker.time.updated': 'Bijgewerkt',
|
|
40
|
+
'fabric.linkPicker.time.viewed': 'Bekeken',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'Probeer de pagina opnieuw te laden.',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'Er is iets misgegaan.'
|
|
40
43
|
};
|
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': 'Encontre links recentes ou cole um link novo',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': 'Tente de novo usando outro termo.',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': 'Não foi possível encontrar nenhum resultado para a pesquisa.',
|
|
38
|
+
'fabric.linkPicker.time.ago': 'há',
|
|
39
|
+
'fabric.linkPicker.time.updated': 'Atualizado',
|
|
40
|
+
'fabric.linkPicker.time.viewed': 'Visualizado',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'Tente recarregar a página.',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'Algo deu errado!'
|
|
40
43
|
};
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': 'Выполните поиск недавних ссылок или вставьте новую',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': 'Попробуйте изменить запрос.',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': 'Ничего не найдено.',
|
|
38
|
+
'fabric.linkPicker.time.ago': 'назад',
|
|
39
|
+
'fabric.linkPicker.time.updated': 'Обновлено',
|
|
40
|
+
'fabric.linkPicker.time.viewed': 'Просмотрено',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'Попробуйте перезагрузить страницу.',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'Произошла ошибка.'
|
|
40
43
|
};
|
package/dist/cjs/i18n/sv.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': 'Hitta senaste länkar eller klistra in en ny länk',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': 'Försök med ett annat sökord.',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': 'Vi kunde inte hitta några träffar för din sökning.',
|
|
38
|
+
'fabric.linkPicker.time.ago': 'sedan',
|
|
39
|
+
'fabric.linkPicker.time.updated': 'Uppdaterad',
|
|
40
|
+
'fabric.linkPicker.time.viewed': 'Visad',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'Försök uppdatera sidan.',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'Något gick fel!'
|
|
40
43
|
};
|
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'fabric.linkPicker.search.linkPlaceholder': 'ค้นหาลิงก์ล่าสุดหรือวางลิงก์ใหม่',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': 'ลองอีกครั้งด้วยคำอื่น',
|
|
37
37
|
'fabric.linkPicker.search.noResults.heading': 'เราไม่พบรายการใด ๆ ที่ตรงกับการค้นหาของคุณ',
|
|
38
|
+
'fabric.linkPicker.time.ago': 'ที่แล้ว',
|
|
39
|
+
'fabric.linkPicker.time.updated': 'อัปเดตแล้ว',
|
|
40
|
+
'fabric.linkPicker.time.viewed': 'ดูเมื่อ',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'ลองโหลดหน้าข้อมูลใหม่อีกครั้ง',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'เกิดข้อผิดพลาดบางอย่าง!'
|
|
40
43
|
};
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -35,6 +35,9 @@ var _default = {
|
|
|
35
35
|
'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',
|
|
36
36
|
'fabric.linkPicker.search.noResults.description': 'Hãy thử lại bằng cụm từ tìm kiếm khác.',
|
|
37
37
|
'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.',
|
|
38
|
+
'fabric.linkPicker.time.ago': 'trước',
|
|
39
|
+
'fabric.linkPicker.time.updated': 'Đã cập nhật',
|
|
40
|
+
'fabric.linkPicker.time.viewed': 'Đã xem',
|
|
38
41
|
'fabric.linkPicker.unhandledError.description': 'Hãy thử tải lại trang.',
|
|
39
42
|
'fabric.linkPicker.unhandledError.heading': 'Đã xảy ra lỗi!'
|
|
40
43
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.usePlugins = usePlugins;
|
|
8
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = require("react");
|
|
@@ -16,7 +16,6 @@ var _analytics = _interopRequireDefault(require("../../analytics.codegen"));
|
|
|
16
16
|
var _constants = require("../../common/constants");
|
|
17
17
|
var _utils = require("./utils");
|
|
18
18
|
var _reducer = require("./reducer");
|
|
19
|
-
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; }
|
|
20
19
|
function usePlugins(state, activeTab, plugins) {
|
|
21
20
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
22
21
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
@@ -53,54 +52,52 @@ function usePlugins(state, activeTab, plugins) {
|
|
|
53
52
|
next = _resolvePluginUpdates.next,
|
|
54
53
|
cancel = _resolvePluginUpdates.cancel;
|
|
55
54
|
var updateResults = /*#__PURE__*/function () {
|
|
56
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
55
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
57
56
|
var _isLoading, _yield$next, value, done;
|
|
58
|
-
return
|
|
59
|
-
while (1) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
58
|
+
while (1) switch (_context.prev = _context.next) {
|
|
59
|
+
case 0:
|
|
60
|
+
_context.prev = 0;
|
|
61
|
+
_isLoading = true;
|
|
62
|
+
case 2:
|
|
63
|
+
if (!_isLoading) {
|
|
64
|
+
_context.next = 12;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
_context.next = 5;
|
|
68
|
+
return next();
|
|
69
|
+
case 5:
|
|
70
|
+
_yield$next = _context.sent;
|
|
71
|
+
value = _yield$next.value;
|
|
72
|
+
done = _yield$next.done;
|
|
73
|
+
_isLoading = !done;
|
|
74
|
+
dispatch({
|
|
75
|
+
type: 'SUCCESS',
|
|
76
|
+
payload: {
|
|
77
|
+
items: limit(value.data),
|
|
78
|
+
isLoading: !done
|
|
68
79
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
80
|
+
});
|
|
81
|
+
_context.next = 2;
|
|
82
|
+
break;
|
|
83
|
+
case 12:
|
|
84
|
+
_context.next = 17;
|
|
85
|
+
break;
|
|
86
|
+
case 14:
|
|
87
|
+
_context.prev = 14;
|
|
88
|
+
_context.t0 = _context["catch"](0);
|
|
89
|
+
if (!(_context.t0 instanceof _utils.CancellationError)) {
|
|
76
90
|
dispatch({
|
|
77
|
-
type: '
|
|
78
|
-
payload:
|
|
79
|
-
items: limit(value.data),
|
|
80
|
-
isLoading: !done
|
|
81
|
-
}
|
|
91
|
+
type: 'ERROR',
|
|
92
|
+
payload: _context.t0
|
|
82
93
|
});
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
_context.t0 = _context["catch"](0);
|
|
91
|
-
if (!(_context.t0 instanceof _utils.CancellationError)) {
|
|
92
|
-
dispatch({
|
|
93
|
-
type: 'ERROR',
|
|
94
|
-
payload: _context.t0
|
|
95
|
-
});
|
|
96
|
-
createAnalyticsEvent((0, _analytics.default)('operational.resultsResolve.failed', {
|
|
97
|
-
error: (0, _convertToError.convertToError)(_context.t0).toString()
|
|
98
|
-
})).fire(_constants.ANALYTICS_CHANNEL);
|
|
99
|
-
}
|
|
100
|
-
case 17:
|
|
101
|
-
case "end":
|
|
102
|
-
return _context.stop();
|
|
103
|
-
}
|
|
94
|
+
createAnalyticsEvent((0, _analytics.default)('operational.resultsResolve.failed', {
|
|
95
|
+
error: (0, _convertToError.convertToError)(_context.t0).toString()
|
|
96
|
+
})).fire(_constants.ANALYTICS_CHANNEL);
|
|
97
|
+
}
|
|
98
|
+
case 17:
|
|
99
|
+
case "end":
|
|
100
|
+
return _context.stop();
|
|
104
101
|
}
|
|
105
102
|
}, _callee, null, [[0, 14]]);
|
|
106
103
|
}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.resolvePluginUpdates = exports.cancellable = exports.CancellationError = void 0;
|
|
8
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -13,7 +13,6 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
14
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
15
15
|
var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
|
|
16
|
-
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; }
|
|
17
16
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
18
17
|
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; } }
|
|
19
18
|
var CancellationError = /*#__PURE__*/function (_Error) {
|
|
@@ -55,23 +54,21 @@ var resolvePluginUpdates = function resolvePluginUpdates(plugin, state) {
|
|
|
55
54
|
return {
|
|
56
55
|
cancel: cancel,
|
|
57
56
|
next: function () {
|
|
58
|
-
var _next = (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
59
|
-
return
|
|
60
|
-
while (1) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return _context.stop();
|
|
74
|
-
}
|
|
57
|
+
var _next = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
58
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
59
|
+
while (1) switch (_context.prev = _context.next) {
|
|
60
|
+
case 0:
|
|
61
|
+
_context.next = 2;
|
|
62
|
+
return promise;
|
|
63
|
+
case 2:
|
|
64
|
+
_context.t0 = _context.sent;
|
|
65
|
+
return _context.abrupt("return", {
|
|
66
|
+
value: _context.t0,
|
|
67
|
+
done: true
|
|
68
|
+
});
|
|
69
|
+
case 4:
|
|
70
|
+
case "end":
|
|
71
|
+
return _context.stop();
|
|
75
72
|
}
|
|
76
73
|
}, _callee);
|
|
77
74
|
}));
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -25,7 +25,8 @@ var PACKAGE_DATA = {
|
|
|
25
25
|
exports.PACKAGE_DATA = PACKAGE_DATA;
|
|
26
26
|
var LazyLinkPicker = (0, _reactLooselyLazy.lazyForPaint)(function () {
|
|
27
27
|
return Promise.resolve().then(function () {
|
|
28
|
-
return _interopRequireWildcard(require(
|
|
28
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_link-picker" */
|
|
29
|
+
'./link-picker'));
|
|
29
30
|
});
|
|
30
31
|
});
|
|
31
32
|
var ComposedLinkPicker = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
@@ -19,7 +19,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
20
20
|
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; } } }; }
|
|
21
21
|
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); }
|
|
22
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
22
|
+
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; } /** @jsx jsx */
|
|
23
23
|
function isTouchDevice() {
|
|
24
24
|
return 'ontouchstart' in window ||
|
|
25
25
|
// eslint-disable-next-line compat/compat
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -29,6 +29,9 @@ export default {
|
|
|
29
29
|
'fabric.linkPicker.search.linkPlaceholder': 'Find de seneste links, eller indsæt et nyt link',
|
|
30
30
|
'fabric.linkPicker.search.noResults.description': 'Prøv igen med et andet ord.',
|
|
31
31
|
'fabric.linkPicker.search.noResults.heading': 'Vi kunne ikke finde noget, der opfylder dine søgekriterier.',
|
|
32
|
+
'fabric.linkPicker.time.ago': 'siden',
|
|
33
|
+
'fabric.linkPicker.time.updated': 'Opdateret for',
|
|
34
|
+
'fabric.linkPicker.time.viewed': 'Set for',
|
|
32
35
|
'fabric.linkPicker.unhandledError.description': 'Prøv at genindlæse siden.',
|
|
33
36
|
'fabric.linkPicker.unhandledError.heading': 'Noget gik galt!'
|
|
34
37
|
};
|
package/dist/es2019/i18n/fi.js
CHANGED
|
@@ -29,6 +29,9 @@ export default {
|
|
|
29
29
|
'fabric.linkPicker.search.linkPlaceholder': 'Etsi viimeaikaisia linkkejä tai liitä uusi linkki',
|
|
30
30
|
'fabric.linkPicker.search.noResults.description': 'Yritä uudelleen eri hakutermillä.',
|
|
31
31
|
'fabric.linkPicker.search.noResults.heading': 'Hakuasi vastaavia tuloksia ei löytynyt.',
|
|
32
|
+
'fabric.linkPicker.time.ago': 'sitten',
|
|
33
|
+
'fabric.linkPicker.time.updated': 'Päivitetty',
|
|
34
|
+
'fabric.linkPicker.time.viewed': 'Katseltu',
|
|
32
35
|
'fabric.linkPicker.unhandledError.description': 'Yritä ladata sivu uudelleen.',
|
|
33
36
|
'fabric.linkPicker.unhandledError.heading': 'Jotain meni vikaan'
|
|
34
37
|
};
|
package/dist/es2019/i18n/it.js
CHANGED
|
@@ -29,6 +29,9 @@ export default {
|
|
|
29
29
|
'fabric.linkPicker.search.linkPlaceholder': 'Trova i link recenti o incolla un nuovo link',
|
|
30
30
|
'fabric.linkPicker.search.noResults.description': 'Riprova con un termine diverso.',
|
|
31
31
|
'fabric.linkPicker.search.noResults.heading': 'Non è stato possibile trovare risultati corrispondenti alla ricerca.',
|
|
32
|
+
'fabric.linkPicker.time.ago': 'fa',
|
|
33
|
+
'fabric.linkPicker.time.updated': 'Aggiornato',
|
|
34
|
+
'fabric.linkPicker.time.viewed': 'Visualizzato',
|
|
32
35
|
'fabric.linkPicker.unhandledError.description': 'Prova a ricaricare la pagina.',
|
|
33
36
|
'fabric.linkPicker.unhandledError.heading': 'Si è verificato un problema.'
|
|
34
37
|
};
|
package/dist/es2019/i18n/ja.js
CHANGED
|
@@ -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
|
};
|
package/dist/es2019/i18n/ko.js
CHANGED
|
@@ -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
|
};
|
package/dist/es2019/i18n/nl.js
CHANGED
|
@@ -29,6 +29,9 @@ export default {
|
|
|
29
29
|
'fabric.linkPicker.search.linkPlaceholder': 'Zoek recente links of plak een nieuwe link',
|
|
30
30
|
'fabric.linkPicker.search.noResults.description': 'Probeer het opnieuw met een andere term.',
|
|
31
31
|
'fabric.linkPicker.search.noResults.heading': 'We hebben geen overeenkomsten gevonden voor je zoekopdracht.',
|
|
32
|
+
'fabric.linkPicker.time.ago': 'geleden',
|
|
33
|
+
'fabric.linkPicker.time.updated': 'Bijgewerkt',
|
|
34
|
+
'fabric.linkPicker.time.viewed': 'Bekeken',
|
|
32
35
|
'fabric.linkPicker.unhandledError.description': 'Probeer de pagina opnieuw te laden.',
|
|
33
36
|
'fabric.linkPicker.unhandledError.heading': 'Er is iets misgegaan.'
|
|
34
37
|
};
|
|
@@ -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
|
};
|
package/dist/es2019/i18n/ru.js
CHANGED
|
@@ -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
|
};
|
package/dist/es2019/i18n/sv.js
CHANGED
|
@@ -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
|
};
|
package/dist/es2019/i18n/th.js
CHANGED
|
@@ -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
|
};
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -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
|
};
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/i18n/da.js
CHANGED
|
@@ -29,6 +29,9 @@ export default {
|
|
|
29
29
|
'fabric.linkPicker.search.linkPlaceholder': 'Find de seneste links, eller indsæt et nyt link',
|
|
30
30
|
'fabric.linkPicker.search.noResults.description': 'Prøv igen med et andet ord.',
|
|
31
31
|
'fabric.linkPicker.search.noResults.heading': 'Vi kunne ikke finde noget, der opfylder dine søgekriterier.',
|
|
32
|
+
'fabric.linkPicker.time.ago': 'siden',
|
|
33
|
+
'fabric.linkPicker.time.updated': 'Opdateret for',
|
|
34
|
+
'fabric.linkPicker.time.viewed': 'Set for',
|
|
32
35
|
'fabric.linkPicker.unhandledError.description': 'Prøv at genindlæse siden.',
|
|
33
36
|
'fabric.linkPicker.unhandledError.heading': 'Noget gik galt!'
|
|
34
37
|
};
|
package/dist/esm/i18n/fi.js
CHANGED
|
@@ -29,6 +29,9 @@ export default {
|
|
|
29
29
|
'fabric.linkPicker.search.linkPlaceholder': 'Etsi viimeaikaisia linkkejä tai liitä uusi linkki',
|
|
30
30
|
'fabric.linkPicker.search.noResults.description': 'Yritä uudelleen eri hakutermillä.',
|
|
31
31
|
'fabric.linkPicker.search.noResults.heading': 'Hakuasi vastaavia tuloksia ei löytynyt.',
|
|
32
|
+
'fabric.linkPicker.time.ago': 'sitten',
|
|
33
|
+
'fabric.linkPicker.time.updated': 'Päivitetty',
|
|
34
|
+
'fabric.linkPicker.time.viewed': 'Katseltu',
|
|
32
35
|
'fabric.linkPicker.unhandledError.description': 'Yritä ladata sivu uudelleen.',
|
|
33
36
|
'fabric.linkPicker.unhandledError.heading': 'Jotain meni vikaan'
|
|
34
37
|
};
|
package/dist/esm/i18n/it.js
CHANGED
|
@@ -29,6 +29,9 @@ export default {
|
|
|
29
29
|
'fabric.linkPicker.search.linkPlaceholder': 'Trova i link recenti o incolla un nuovo link',
|
|
30
30
|
'fabric.linkPicker.search.noResults.description': 'Riprova con un termine diverso.',
|
|
31
31
|
'fabric.linkPicker.search.noResults.heading': 'Non è stato possibile trovare risultati corrispondenti alla ricerca.',
|
|
32
|
+
'fabric.linkPicker.time.ago': 'fa',
|
|
33
|
+
'fabric.linkPicker.time.updated': 'Aggiornato',
|
|
34
|
+
'fabric.linkPicker.time.viewed': 'Visualizzato',
|
|
32
35
|
'fabric.linkPicker.unhandledError.description': 'Prova a ricaricare la pagina.',
|
|
33
36
|
'fabric.linkPicker.unhandledError.heading': 'Si è verificato un problema.'
|
|
34
37
|
};
|
package/dist/esm/i18n/ja.js
CHANGED
|
@@ -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
|
};
|
package/dist/esm/i18n/ko.js
CHANGED
|
@@ -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
|
};
|
package/dist/esm/i18n/nl.js
CHANGED
|
@@ -29,6 +29,9 @@ export default {
|
|
|
29
29
|
'fabric.linkPicker.search.linkPlaceholder': 'Zoek recente links of plak een nieuwe link',
|
|
30
30
|
'fabric.linkPicker.search.noResults.description': 'Probeer het opnieuw met een andere term.',
|
|
31
31
|
'fabric.linkPicker.search.noResults.heading': 'We hebben geen overeenkomsten gevonden voor je zoekopdracht.',
|
|
32
|
+
'fabric.linkPicker.time.ago': 'geleden',
|
|
33
|
+
'fabric.linkPicker.time.updated': 'Bijgewerkt',
|
|
34
|
+
'fabric.linkPicker.time.viewed': 'Bekeken',
|
|
32
35
|
'fabric.linkPicker.unhandledError.description': 'Probeer de pagina opnieuw te laden.',
|
|
33
36
|
'fabric.linkPicker.unhandledError.heading': 'Er is iets misgegaan.'
|
|
34
37
|
};
|