@atlaskit/mention 22.0.1 → 22.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/_constants/package.json +2 -2
- package/dist/cjs/api/MentionNameResolver.js +0 -2
- package/dist/cjs/api/MentionResource.js +113 -122
- package/dist/cjs/api/PresenceResource.js +1 -1
- package/dist/cjs/api/TeamMentionResource.js +102 -109
- package/dist/cjs/api/analytics.js +4 -4
- package/dist/cjs/components/LockCircleIcon/index.js +1 -1
- package/dist/cjs/components/MentionItem/index.js +2 -1
- package/dist/cjs/components/MentionList/index.js +1 -2
- package/dist/cjs/components/MentionPicker/index.js +8 -10
- package/dist/cjs/components/NoAccessTooltip/index.js +1 -1
- package/dist/cjs/components/ResourcedMentionList/index.js +2 -4
- package/dist/cjs/components/Scrollable/index.js +2 -1
- package/dist/cjs/i18n/cs.js +11 -15
- package/dist/cjs/i18n/da.js +11 -15
- package/dist/cjs/i18n/de.js +11 -15
- package/dist/cjs/i18n/en.js +11 -15
- package/dist/cjs/i18n/en_GB.js +11 -15
- package/dist/cjs/i18n/es.js +11 -15
- package/dist/cjs/i18n/fi.js +11 -15
- package/dist/cjs/i18n/fr.js +11 -15
- package/dist/cjs/i18n/hu.js +11 -15
- package/dist/cjs/i18n/it.js +11 -15
- package/dist/cjs/i18n/ja.js +11 -15
- package/dist/cjs/i18n/ko.js +11 -15
- package/dist/cjs/i18n/nb.js +11 -15
- package/dist/cjs/i18n/nl.js +11 -15
- package/dist/cjs/i18n/pl.js +11 -15
- package/dist/cjs/i18n/pt_BR.js +11 -15
- package/dist/cjs/i18n/ru.js +11 -15
- package/dist/cjs/i18n/sv.js +11 -15
- package/dist/cjs/i18n/th.js +11 -15
- package/dist/cjs/i18n/tr.js +11 -15
- package/dist/cjs/i18n/uk.js +11 -15
- package/dist/cjs/i18n/vi.js +11 -15
- package/dist/cjs/i18n/zh.js +11 -15
- package/dist/cjs/i18n/zh_TW.js +11 -15
- package/dist/cjs/types.js +16 -16
- package/dist/cjs/util/analytics.js +12 -12
- package/dist/cjs/util/i18n.js +197 -199
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/api/MentionNameResolver.js +0 -2
- package/dist/es2019/api/analytics.js +3 -3
- package/dist/es2019/components/MentionItem/index.js +2 -1
- package/dist/es2019/components/MentionList/index.js +1 -2
- package/dist/es2019/components/MentionPicker/index.js +8 -11
- package/dist/es2019/components/ResourcedMentionList/index.js +2 -6
- package/dist/es2019/components/Scrollable/index.js +2 -1
- package/dist/es2019/i18n/cs.js +11 -15
- package/dist/es2019/i18n/da.js +11 -15
- package/dist/es2019/i18n/de.js +11 -15
- package/dist/es2019/i18n/en.js +11 -15
- package/dist/es2019/i18n/en_GB.js +11 -15
- package/dist/es2019/i18n/es.js +11 -15
- package/dist/es2019/i18n/fi.js +11 -15
- package/dist/es2019/i18n/fr.js +11 -15
- package/dist/es2019/i18n/hu.js +11 -15
- package/dist/es2019/i18n/it.js +11 -15
- package/dist/es2019/i18n/ja.js +11 -15
- package/dist/es2019/i18n/ko.js +11 -15
- package/dist/es2019/i18n/nb.js +11 -15
- package/dist/es2019/i18n/nl.js +11 -15
- package/dist/es2019/i18n/pl.js +11 -15
- package/dist/es2019/i18n/pt_BR.js +11 -15
- package/dist/es2019/i18n/ru.js +11 -15
- package/dist/es2019/i18n/sv.js +11 -15
- package/dist/es2019/i18n/th.js +11 -15
- package/dist/es2019/i18n/tr.js +11 -15
- package/dist/es2019/i18n/uk.js +11 -15
- package/dist/es2019/i18n/vi.js +11 -15
- package/dist/es2019/i18n/zh.js +11 -15
- package/dist/es2019/i18n/zh_TW.js +11 -15
- package/dist/es2019/types.js +12 -12
- package/dist/es2019/util/analytics.js +9 -9
- package/dist/es2019/version.json +1 -1
- package/dist/esm/api/MentionNameResolver.js +0 -2
- package/dist/esm/api/MentionResource.js +113 -122
- package/dist/esm/api/PresenceResource.js +1 -1
- package/dist/esm/api/TeamMentionResource.js +102 -109
- package/dist/esm/api/analytics.js +3 -3
- package/dist/esm/components/MentionItem/index.js +2 -1
- package/dist/esm/components/MentionList/index.js +1 -2
- package/dist/esm/components/MentionPicker/index.js +8 -10
- package/dist/esm/components/ResourcedMentionList/index.js +2 -4
- package/dist/esm/components/Scrollable/index.js +2 -1
- package/dist/esm/i18n/cs.js +11 -15
- package/dist/esm/i18n/da.js +11 -15
- package/dist/esm/i18n/de.js +11 -15
- package/dist/esm/i18n/en.js +11 -15
- package/dist/esm/i18n/en_GB.js +11 -15
- package/dist/esm/i18n/es.js +11 -15
- package/dist/esm/i18n/fi.js +11 -15
- package/dist/esm/i18n/fr.js +11 -15
- package/dist/esm/i18n/hu.js +11 -15
- package/dist/esm/i18n/it.js +11 -15
- package/dist/esm/i18n/ja.js +11 -15
- package/dist/esm/i18n/ko.js +11 -15
- package/dist/esm/i18n/nb.js +11 -15
- package/dist/esm/i18n/nl.js +11 -15
- package/dist/esm/i18n/pl.js +11 -15
- package/dist/esm/i18n/pt_BR.js +11 -15
- package/dist/esm/i18n/ru.js +11 -15
- package/dist/esm/i18n/sv.js +11 -15
- package/dist/esm/i18n/th.js +11 -15
- package/dist/esm/i18n/tr.js +11 -15
- package/dist/esm/i18n/uk.js +11 -15
- package/dist/esm/i18n/vi.js +11 -15
- package/dist/esm/i18n/zh.js +11 -15
- package/dist/esm/i18n/zh_TW.js +11 -15
- package/dist/esm/types.js +12 -12
- package/dist/esm/util/analytics.js +9 -9
- package/dist/esm/util/i18n.js +137 -140
- package/dist/esm/version.json +1 -1
- package/dist/types/api/ContextMentionResource.d.ts +1 -1
- package/dist/types/api/analytics.d.ts +2 -2
- package/dist/types/components/Mention/index.d.ts +3 -3
- package/dist/types/components/MentionList/index.d.ts +2 -2
- package/dist/types/components/MentionPicker/index.d.ts +4 -4
- package/dist/types/components/NoAccessTooltip/main.d.ts +1 -1
- package/dist/types/components/ResourcedMentionList/index.d.ts +3 -3
- package/dist/types/config/index.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +13 -17
- package/dist/types/i18n/da.d.ts +13 -17
- package/dist/types/i18n/de.d.ts +13 -17
- package/dist/types/i18n/en.d.ts +13 -17
- package/dist/types/i18n/en_GB.d.ts +13 -17
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +13 -17
- package/dist/types/i18n/et.d.ts +6 -6
- package/dist/types/i18n/fi.d.ts +13 -17
- package/dist/types/i18n/fr.d.ts +13 -17
- package/dist/types/i18n/hu.d.ts +13 -17
- package/dist/types/i18n/is.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +13 -17
- package/dist/types/i18n/ja.d.ts +13 -17
- package/dist/types/i18n/ko.d.ts +13 -17
- package/dist/types/i18n/languages.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +13 -17
- package/dist/types/i18n/nl.d.ts +13 -17
- package/dist/types/i18n/pl.d.ts +13 -17
- package/dist/types/i18n/pt_BR.d.ts +13 -17
- package/dist/types/i18n/pt_PT.d.ts +6 -6
- package/dist/types/i18n/ro.d.ts +6 -6
- package/dist/types/i18n/ru.d.ts +13 -17
- package/dist/types/i18n/sk.d.ts +6 -6
- package/dist/types/i18n/sv.d.ts +13 -17
- package/dist/types/i18n/th.d.ts +13 -17
- package/dist/types/i18n/tr.d.ts +13 -17
- package/dist/types/i18n/uk.d.ts +13 -17
- package/dist/types/i18n/vi.d.ts +13 -17
- package/dist/types/i18n/zh.d.ts +13 -17
- package/dist/types/i18n/zh_TW.d.ts +13 -17
- package/dist/types/types.d.ts +7 -7
- package/dist/types/util/analytics.d.ts +3 -3
- package/dist/types/util/i18n.d.ts +2 -2
- package/element/package.json +2 -2
- package/i18n/package.json +2 -2
- package/item/package.json +2 -2
- package/package.json +28 -20
- package/resource/package.json +2 -2
- package/shared-styles/package.json +2 -2
- package/team-resource/package.json +2 -2
- package/typeahead/package.json +2 -2
- package/types/package.json +2 -2
package/dist/esm/util/i18n.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
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 React from 'react';
|
|
6
5
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
7
6
|
import { messages } from '../components/i18n';
|
|
@@ -39,146 +38,144 @@ export var DifferentText = propFormatter(messages.differentText);
|
|
|
39
38
|
* @param locale string specifying the locale like 'en_GB', or 'fr'.
|
|
40
39
|
*/
|
|
41
40
|
export var getMessagesForLocale = /*#__PURE__*/function () {
|
|
42
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
41
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
|
|
43
42
|
var fragments;
|
|
44
|
-
return _regeneratorRuntime
|
|
45
|
-
while (1) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
44
|
+
while (1) switch (_context.prev = _context.next) {
|
|
45
|
+
case 0:
|
|
46
|
+
_context.t0 = locale;
|
|
47
|
+
_context.next = _context.t0 === 'cs' ? 3 : _context.t0 === 'da' ? 4 : _context.t0 === 'de' ? 5 : _context.t0 === 'en' ? 6 : _context.t0 === 'en_GB' ? 7 : _context.t0 === 'es' ? 8 : _context.t0 === 'et' ? 9 : _context.t0 === 'fi' ? 10 : _context.t0 === 'fr' ? 11 : _context.t0 === 'hu' ? 12 : _context.t0 === 'is' ? 13 : _context.t0 === 'it' ? 14 : _context.t0 === 'ja' ? 15 : _context.t0 === 'ko' ? 16 : _context.t0 === 'nb' ? 17 : _context.t0 === 'nl' ? 18 : _context.t0 === 'pl' ? 19 : _context.t0 === 'pt_BR' ? 20 : _context.t0 === 'pt-BR' ? 20 : _context.t0 === 'pt_PT' ? 21 : _context.t0 === 'pt-PT' ? 21 : _context.t0 === 'ro' ? 22 : _context.t0 === 'ru' ? 23 : _context.t0 === 'sk' ? 24 : _context.t0 === 'sv' ? 25 : _context.t0 === 'th' ? 26 : _context.t0 === 'tr' ? 27 : _context.t0 === 'uk' ? 28 : _context.t0 === 'vi' ? 29 : _context.t0 === 'zh_TW' ? 30 : _context.t0 === 'zh' ? 31 : 32;
|
|
48
|
+
break;
|
|
49
|
+
case 3:
|
|
50
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-cs" */'../i18n/cs').then(function (mod) {
|
|
51
|
+
return mod.default;
|
|
52
|
+
}));
|
|
53
|
+
case 4:
|
|
54
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-da" */'../i18n/da').then(function (mod) {
|
|
55
|
+
return mod.default;
|
|
56
|
+
}));
|
|
57
|
+
case 5:
|
|
58
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-de" */'../i18n/de').then(function (mod) {
|
|
59
|
+
return mod.default;
|
|
60
|
+
}));
|
|
61
|
+
case 6:
|
|
62
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-en" */'../i18n/en').then(function (mod) {
|
|
63
|
+
return mod.default;
|
|
64
|
+
}));
|
|
65
|
+
case 7:
|
|
66
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-en_GB" */'../i18n/en_GB').then(function (mod) {
|
|
67
|
+
return mod.default;
|
|
68
|
+
}));
|
|
69
|
+
case 8:
|
|
70
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-es" */'../i18n/es').then(function (mod) {
|
|
71
|
+
return mod.default;
|
|
72
|
+
}));
|
|
73
|
+
case 9:
|
|
74
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-et" */'../i18n/et').then(function (mod) {
|
|
75
|
+
return mod.default;
|
|
76
|
+
}));
|
|
77
|
+
case 10:
|
|
78
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-fi" */'../i18n/fi').then(function (mod) {
|
|
79
|
+
return mod.default;
|
|
80
|
+
}));
|
|
81
|
+
case 11:
|
|
82
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-fr" */'../i18n/fr').then(function (mod) {
|
|
83
|
+
return mod.default;
|
|
84
|
+
}));
|
|
85
|
+
case 12:
|
|
86
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-hu" */'../i18n/hu').then(function (mod) {
|
|
87
|
+
return mod.default;
|
|
88
|
+
}));
|
|
89
|
+
case 13:
|
|
90
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-is" */'../i18n/is').then(function (mod) {
|
|
91
|
+
return mod.default;
|
|
92
|
+
}));
|
|
93
|
+
case 14:
|
|
94
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-it" */'../i18n/it').then(function (mod) {
|
|
95
|
+
return mod.default;
|
|
96
|
+
}));
|
|
97
|
+
case 15:
|
|
98
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-ja" */'../i18n/ja').then(function (mod) {
|
|
99
|
+
return mod.default;
|
|
100
|
+
}));
|
|
101
|
+
case 16:
|
|
102
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-ko" */'../i18n/ko').then(function (mod) {
|
|
103
|
+
return mod.default;
|
|
104
|
+
}));
|
|
105
|
+
case 17:
|
|
106
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-nb" */'../i18n/nb').then(function (mod) {
|
|
107
|
+
return mod.default;
|
|
108
|
+
}));
|
|
109
|
+
case 18:
|
|
110
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-nl" */'../i18n/nl').then(function (mod) {
|
|
111
|
+
return mod.default;
|
|
112
|
+
}));
|
|
113
|
+
case 19:
|
|
114
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-pl" */'../i18n/pl').then(function (mod) {
|
|
115
|
+
return mod.default;
|
|
116
|
+
}));
|
|
117
|
+
case 20:
|
|
118
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-pt_BR" */'../i18n/pt_BR').then(function (mod) {
|
|
119
|
+
return mod.default;
|
|
120
|
+
}));
|
|
121
|
+
case 21:
|
|
122
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-pt_PT" */'../i18n/pt_PT').then(function (mod) {
|
|
123
|
+
return mod.default;
|
|
124
|
+
}));
|
|
125
|
+
case 22:
|
|
126
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-ro" */'../i18n/ro').then(function (mod) {
|
|
127
|
+
return mod.default;
|
|
128
|
+
}));
|
|
129
|
+
case 23:
|
|
130
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-ru" */'../i18n/ru').then(function (mod) {
|
|
131
|
+
return mod.default;
|
|
132
|
+
}));
|
|
133
|
+
case 24:
|
|
134
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-sk" */'../i18n/sk').then(function (mod) {
|
|
135
|
+
return mod.default;
|
|
136
|
+
}));
|
|
137
|
+
case 25:
|
|
138
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-sv" */'../i18n/sv').then(function (mod) {
|
|
139
|
+
return mod.default;
|
|
140
|
+
}));
|
|
141
|
+
case 26:
|
|
142
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-th" */'../i18n/th').then(function (mod) {
|
|
143
|
+
return mod.default;
|
|
144
|
+
}));
|
|
145
|
+
case 27:
|
|
146
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-tr" */'../i18n/tr').then(function (mod) {
|
|
147
|
+
return mod.default;
|
|
148
|
+
}));
|
|
149
|
+
case 28:
|
|
150
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-uk" */'../i18n/uk').then(function (mod) {
|
|
151
|
+
return mod.default;
|
|
152
|
+
}));
|
|
153
|
+
case 29:
|
|
154
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-vi" */'../i18n/vi').then(function (mod) {
|
|
155
|
+
return mod.default;
|
|
156
|
+
}));
|
|
157
|
+
case 30:
|
|
158
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-zh_TW" */'../i18n/zh_TW').then(function (mod) {
|
|
159
|
+
return mod.default;
|
|
160
|
+
}));
|
|
161
|
+
case 31:
|
|
162
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-zh" */'../i18n/zh').then(function (mod) {
|
|
163
|
+
return mod.default;
|
|
164
|
+
}));
|
|
165
|
+
case 32:
|
|
166
|
+
fragments = locale.split(/[_-]/);
|
|
167
|
+
if (!(fragments.length === 2)) {
|
|
168
|
+
_context.next = 37;
|
|
50
169
|
break;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-de" */'../i18n/de').then(function (mod) {
|
|
61
|
-
return mod.default;
|
|
62
|
-
}));
|
|
63
|
-
case 6:
|
|
64
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-en" */'../i18n/en').then(function (mod) {
|
|
65
|
-
return mod.default;
|
|
66
|
-
}));
|
|
67
|
-
case 7:
|
|
68
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-en_GB" */'../i18n/en_GB').then(function (mod) {
|
|
69
|
-
return mod.default;
|
|
70
|
-
}));
|
|
71
|
-
case 8:
|
|
72
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-es" */'../i18n/es').then(function (mod) {
|
|
73
|
-
return mod.default;
|
|
74
|
-
}));
|
|
75
|
-
case 9:
|
|
76
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-et" */'../i18n/et').then(function (mod) {
|
|
77
|
-
return mod.default;
|
|
78
|
-
}));
|
|
79
|
-
case 10:
|
|
80
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-fi" */'../i18n/fi').then(function (mod) {
|
|
81
|
-
return mod.default;
|
|
82
|
-
}));
|
|
83
|
-
case 11:
|
|
84
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-fr" */'../i18n/fr').then(function (mod) {
|
|
85
|
-
return mod.default;
|
|
86
|
-
}));
|
|
87
|
-
case 12:
|
|
88
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-hu" */'../i18n/hu').then(function (mod) {
|
|
89
|
-
return mod.default;
|
|
90
|
-
}));
|
|
91
|
-
case 13:
|
|
92
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-is" */'../i18n/is').then(function (mod) {
|
|
93
|
-
return mod.default;
|
|
94
|
-
}));
|
|
95
|
-
case 14:
|
|
96
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-it" */'../i18n/it').then(function (mod) {
|
|
97
|
-
return mod.default;
|
|
98
|
-
}));
|
|
99
|
-
case 15:
|
|
100
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-ja" */'../i18n/ja').then(function (mod) {
|
|
101
|
-
return mod.default;
|
|
102
|
-
}));
|
|
103
|
-
case 16:
|
|
104
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-ko" */'../i18n/ko').then(function (mod) {
|
|
105
|
-
return mod.default;
|
|
106
|
-
}));
|
|
107
|
-
case 17:
|
|
108
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-nb" */'../i18n/nb').then(function (mod) {
|
|
109
|
-
return mod.default;
|
|
110
|
-
}));
|
|
111
|
-
case 18:
|
|
112
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-nl" */'../i18n/nl').then(function (mod) {
|
|
113
|
-
return mod.default;
|
|
114
|
-
}));
|
|
115
|
-
case 19:
|
|
116
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-pl" */'../i18n/pl').then(function (mod) {
|
|
117
|
-
return mod.default;
|
|
118
|
-
}));
|
|
119
|
-
case 20:
|
|
120
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-pt_BR" */'../i18n/pt_BR').then(function (mod) {
|
|
121
|
-
return mod.default;
|
|
122
|
-
}));
|
|
123
|
-
case 21:
|
|
124
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-pt_PT" */'../i18n/pt_PT').then(function (mod) {
|
|
125
|
-
return mod.default;
|
|
126
|
-
}));
|
|
127
|
-
case 22:
|
|
128
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-ro" */'../i18n/ro').then(function (mod) {
|
|
129
|
-
return mod.default;
|
|
130
|
-
}));
|
|
131
|
-
case 23:
|
|
132
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-ru" */'../i18n/ru').then(function (mod) {
|
|
133
|
-
return mod.default;
|
|
134
|
-
}));
|
|
135
|
-
case 24:
|
|
136
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-sk" */'../i18n/sk').then(function (mod) {
|
|
137
|
-
return mod.default;
|
|
138
|
-
}));
|
|
139
|
-
case 25:
|
|
140
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-sv" */'../i18n/sv').then(function (mod) {
|
|
141
|
-
return mod.default;
|
|
142
|
-
}));
|
|
143
|
-
case 26:
|
|
144
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-th" */'../i18n/th').then(function (mod) {
|
|
145
|
-
return mod.default;
|
|
146
|
-
}));
|
|
147
|
-
case 27:
|
|
148
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-tr" */'../i18n/tr').then(function (mod) {
|
|
149
|
-
return mod.default;
|
|
150
|
-
}));
|
|
151
|
-
case 28:
|
|
152
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-uk" */'../i18n/uk').then(function (mod) {
|
|
153
|
-
return mod.default;
|
|
154
|
-
}));
|
|
155
|
-
case 29:
|
|
156
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-vi" */'../i18n/vi').then(function (mod) {
|
|
157
|
-
return mod.default;
|
|
158
|
-
}));
|
|
159
|
-
case 30:
|
|
160
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-zh_TW" */'../i18n/zh_TW').then(function (mod) {
|
|
161
|
-
return mod.default;
|
|
162
|
-
}));
|
|
163
|
-
case 31:
|
|
164
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-zh" */'../i18n/zh').then(function (mod) {
|
|
165
|
-
return mod.default;
|
|
166
|
-
}));
|
|
167
|
-
case 32:
|
|
168
|
-
fragments = locale.split(/[_-]/);
|
|
169
|
-
if (!(fragments.length === 2)) {
|
|
170
|
-
_context.next = 37;
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
return _context.abrupt("return", getMessagesForLocale(fragments[0]));
|
|
174
|
-
case 37:
|
|
175
|
-
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-en" */'../i18n/en').then(function (mod) {
|
|
176
|
-
return mod.default;
|
|
177
|
-
}));
|
|
178
|
-
case 38:
|
|
179
|
-
case "end":
|
|
180
|
-
return _context.stop();
|
|
181
|
-
}
|
|
170
|
+
}
|
|
171
|
+
return _context.abrupt("return", getMessagesForLocale(fragments[0]));
|
|
172
|
+
case 37:
|
|
173
|
+
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_mention-i18n-en" */'../i18n/en').then(function (mod) {
|
|
174
|
+
return mod.default;
|
|
175
|
+
}));
|
|
176
|
+
case 38:
|
|
177
|
+
case "end":
|
|
178
|
+
return _context.stop();
|
|
182
179
|
}
|
|
183
180
|
}, _callee);
|
|
184
181
|
}));
|
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MentionProvider, MentionContextIdentifier, ErrorCallback, InfoCallback, ResultCallback } from './MentionResource';
|
|
2
2
|
import { MentionDescription, InviteFromMentionProvider } from '../types';
|
|
3
3
|
export type { MentionDescription };
|
|
4
|
-
export
|
|
4
|
+
export type MentionProviderFunctions = Omit<{
|
|
5
5
|
[Key in keyof MentionProvider]: MentionProvider[Key] extends Function ? MentionProvider[Key] : never;
|
|
6
6
|
}, keyof InviteFromMentionProvider>;
|
|
7
7
|
/**
|
|
@@ -7,11 +7,11 @@ export declare enum Actions {
|
|
|
7
7
|
FAILED = "failed",
|
|
8
8
|
SELECTED = "selected"
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type DefaultAttributes = {
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
context: string;
|
|
13
13
|
sessionId: string;
|
|
14
14
|
pickerType: 'mentions';
|
|
15
15
|
source: 'smarts';
|
|
16
16
|
};
|
|
17
|
-
export declare const defaultAttributes: (context?: MentionContextIdentifier
|
|
17
|
+
export declare const defaultAttributes: (context?: MentionContextIdentifier) => DefaultAttributes;
|
|
@@ -3,7 +3,7 @@ import { MentionEventHandler } from '../../types';
|
|
|
3
3
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
4
4
|
export declare const ANALYTICS_HOVER_DELAY = 1000;
|
|
5
5
|
export declare const UNKNOWN_USER_ID = "_|unknown|_";
|
|
6
|
-
export
|
|
6
|
+
export type OwnProps = {
|
|
7
7
|
id: string;
|
|
8
8
|
text: string;
|
|
9
9
|
isHighlighted?: boolean;
|
|
@@ -13,7 +13,7 @@ export declare type OwnProps = {
|
|
|
13
13
|
onMouseLeave?: MentionEventHandler;
|
|
14
14
|
onHover?: () => void;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type Props = OwnProps & WithAnalyticsEventsProps;
|
|
17
17
|
export declare class MentionInternal extends React.PureComponent<Props, {}> {
|
|
18
18
|
private hoverTimeout?;
|
|
19
19
|
constructor(props: Props);
|
|
@@ -27,5 +27,5 @@ export declare class MentionInternal extends React.PureComponent<Props, {}> {
|
|
|
27
27
|
render(): JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
declare const Mention: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
30
|
-
|
|
30
|
+
type Mention = MentionInternal;
|
|
31
31
|
export default Mention;
|
|
@@ -23,8 +23,8 @@ export default class MentionList extends React.PureComponent<Props, State> {
|
|
|
23
23
|
componentDidUpdate(): void;
|
|
24
24
|
selectNext: () => void;
|
|
25
25
|
selectPrevious: () => void;
|
|
26
|
-
selectIndex: (index: number, callback?: (
|
|
27
|
-
selectId: (id: string, callback?: (
|
|
26
|
+
selectIndex: (index: number, callback?: () => any) => void;
|
|
27
|
+
selectId: (id: string, callback?: () => any) => void;
|
|
28
28
|
chooseCurrentSelection: () => void;
|
|
29
29
|
mentionsCount: () => number;
|
|
30
30
|
private revealItem;
|
|
@@ -10,7 +10,7 @@ export interface OnOpen {
|
|
|
10
10
|
export interface OnClose {
|
|
11
11
|
(): void;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type Position = 'above' | 'below' | 'auto';
|
|
14
14
|
export interface Props {
|
|
15
15
|
resourceProvider: MentionProvider;
|
|
16
16
|
presenceProvider?: PresenceProvider;
|
|
@@ -49,8 +49,8 @@ export declare class MentionPicker extends React.PureComponent<Props & WithAnaly
|
|
|
49
49
|
componentWillUnmount(): void;
|
|
50
50
|
selectNext: () => void;
|
|
51
51
|
selectPrevious: () => void;
|
|
52
|
-
selectIndex: (index: number, callback?: (
|
|
53
|
-
selectId: (id: string, callback?: (
|
|
52
|
+
selectIndex: (index: number, callback?: () => any) => void;
|
|
53
|
+
selectId: (id: string, callback?: () => any) => void;
|
|
54
54
|
chooseCurrentSelection: () => void;
|
|
55
55
|
mentionsCount: () => number;
|
|
56
56
|
private applyPropChanges;
|
|
@@ -73,5 +73,5 @@ export declare class MentionPicker extends React.PureComponent<Props & WithAnaly
|
|
|
73
73
|
export declare const MentionPickerWithAnalytics: React.ForwardRefExoticComponent<Omit<Pick<import("react-intl-next").WithIntlProps<React.PropsWithChildren<Props & WithAnalyticsEventsProps & {
|
|
74
74
|
intl: IntlShape;
|
|
75
75
|
}>>, "children" | "createAnalyticsEvent" | keyof Props | "forwardedRef"> & React.RefAttributes<any>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
76
|
-
export
|
|
76
|
+
export type MentionPickerWithAnalytics = MentionPicker;
|
|
77
77
|
export default MentionPickerWithAnalytics;
|
|
@@ -23,8 +23,8 @@ export declare class ResourcedMentionListWithoutAnalytics extends React.PureComp
|
|
|
23
23
|
componentWillUnmount(): void;
|
|
24
24
|
selectNext: () => void;
|
|
25
25
|
selectPrevious: () => void;
|
|
26
|
-
selectIndex: (index: number, callback?: (
|
|
27
|
-
selectId: (id: string, callback?: (
|
|
26
|
+
selectIndex: (index: number, callback?: () => any) => void;
|
|
27
|
+
selectId: (id: string, callback?: () => any) => void;
|
|
28
28
|
chooseCurrentSelection: () => void;
|
|
29
29
|
mentionsCount: () => number;
|
|
30
30
|
private subscribeMentionProvider;
|
|
@@ -42,5 +42,5 @@ export declare class ResourcedMentionListWithoutAnalytics extends React.PureComp
|
|
|
42
42
|
render(): JSX.Element;
|
|
43
43
|
}
|
|
44
44
|
declare const ResourcedMentionList: React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
45
|
-
|
|
45
|
+
type ResourcedMentionList = ResourcedMentionListWithoutAnalytics;
|
|
46
46
|
export default ResourcedMentionList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const config: {
|
|
2
|
-
getRecommendationServiceUrl(baseUrl?: string
|
|
2
|
+
getRecommendationServiceUrl(baseUrl?: string): string;
|
|
3
3
|
getUsersServiceUrl(productKey: string): "/rest/api/3/user/bulk" | "/wiki/rest/api/user/bulk";
|
|
4
|
-
getGraphQLUrl(baseUrl?: string
|
|
4
|
+
getGraphQLUrl(baseUrl?: string): string;
|
|
5
5
|
};
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|