@atlaskit/smart-hooks 0.1.7 → 0.1.9
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 +12 -0
- package/dist/cjs/i18n/cs.js +12 -12
- package/dist/cjs/i18n/da.js +12 -12
- package/dist/cjs/i18n/de.js +12 -12
- package/dist/cjs/i18n/en.js +17 -5
- package/dist/cjs/i18n/en_GB.js +17 -5
- package/dist/cjs/i18n/en_ZZ.js +11 -12
- package/dist/cjs/i18n/es.js +12 -12
- package/dist/cjs/i18n/et.js +0 -1
- package/dist/cjs/i18n/fi.js +12 -12
- package/dist/cjs/i18n/fr.js +12 -12
- package/dist/cjs/i18n/hu.js +12 -12
- package/dist/cjs/i18n/index.js +0 -31
- package/dist/cjs/i18n/it.js +12 -12
- package/dist/cjs/i18n/ja.js +12 -12
- package/dist/cjs/i18n/ko.js +12 -12
- package/dist/cjs/i18n/nb.js +12 -12
- package/dist/cjs/i18n/nl.js +12 -12
- package/dist/cjs/i18n/pl.js +12 -12
- package/dist/cjs/i18n/pt_BR.js +12 -12
- package/dist/cjs/i18n/pt_PT.js +0 -1
- package/dist/cjs/i18n/ru.js +12 -12
- package/dist/cjs/i18n/sk.js +0 -1
- package/dist/cjs/i18n/sv.js +12 -12
- package/dist/cjs/i18n/th.js +12 -12
- package/dist/cjs/i18n/tr.js +12 -12
- package/dist/cjs/i18n/uk.js +12 -12
- package/dist/cjs/i18n/vi.js +12 -12
- package/dist/cjs/i18n/zh.js +12 -12
- package/dist/cjs/i18n/zh_TW.js +12 -12
- package/dist/cjs/index.js +0 -3
- package/dist/cjs/messages.js +0 -2
- package/dist/cjs/services/use-function-usage-tracking/index.js +8 -13
- package/dist/cjs/services/use-user-recommendations/analytics.js +9 -25
- package/dist/cjs/services/use-user-recommendations/index.js +46 -91
- package/dist/cjs/services/use-user-recommendations/ufoExperiences.js +0 -2
- package/dist/cjs/utils/transform-recommendations-to-options/index.js +0 -16
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +12 -11
- package/dist/es2019/i18n/da.js +12 -11
- package/dist/es2019/i18n/de.js +12 -11
- package/dist/es2019/i18n/en.js +17 -5
- package/dist/es2019/i18n/en_GB.js +17 -5
- package/dist/es2019/i18n/en_ZZ.js +11 -11
- package/dist/es2019/i18n/es.js +12 -11
- package/dist/es2019/i18n/fi.js +12 -11
- package/dist/es2019/i18n/fr.js +12 -11
- package/dist/es2019/i18n/hu.js +12 -11
- package/dist/es2019/i18n/it.js +12 -11
- package/dist/es2019/i18n/ja.js +12 -11
- package/dist/es2019/i18n/ko.js +12 -11
- package/dist/es2019/i18n/nb.js +12 -11
- package/dist/es2019/i18n/nl.js +12 -11
- package/dist/es2019/i18n/pl.js +12 -11
- package/dist/es2019/i18n/pt_BR.js +12 -11
- package/dist/es2019/i18n/ru.js +12 -11
- package/dist/es2019/i18n/sv.js +12 -11
- package/dist/es2019/i18n/th.js +12 -11
- package/dist/es2019/i18n/tr.js +12 -11
- package/dist/es2019/i18n/uk.js +12 -11
- package/dist/es2019/i18n/vi.js +12 -11
- package/dist/es2019/i18n/zh.js +12 -11
- package/dist/es2019/i18n/zh_TW.js +12 -11
- package/dist/es2019/services/use-function-usage-tracking/index.js +6 -6
- package/dist/es2019/services/use-user-recommendations/analytics.js +0 -2
- package/dist/es2019/services/use-user-recommendations/index.js +16 -18
- package/dist/es2019/utils/transform-recommendations-to-options/index.js +0 -10
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/cs.js +12 -11
- package/dist/esm/i18n/da.js +12 -11
- package/dist/esm/i18n/de.js +12 -11
- package/dist/esm/i18n/en.js +17 -5
- package/dist/esm/i18n/en_GB.js +17 -5
- package/dist/esm/i18n/en_ZZ.js +11 -11
- package/dist/esm/i18n/es.js +12 -11
- package/dist/esm/i18n/fi.js +12 -11
- package/dist/esm/i18n/fr.js +12 -11
- package/dist/esm/i18n/hu.js +12 -11
- package/dist/esm/i18n/it.js +12 -11
- package/dist/esm/i18n/ja.js +12 -11
- package/dist/esm/i18n/ko.js +12 -11
- package/dist/esm/i18n/nb.js +12 -11
- package/dist/esm/i18n/nl.js +12 -11
- package/dist/esm/i18n/pl.js +12 -11
- package/dist/esm/i18n/pt_BR.js +12 -11
- package/dist/esm/i18n/ru.js +12 -11
- package/dist/esm/i18n/sv.js +12 -11
- package/dist/esm/i18n/th.js +12 -11
- package/dist/esm/i18n/tr.js +12 -11
- package/dist/esm/i18n/uk.js +12 -11
- package/dist/esm/i18n/vi.js +12 -11
- package/dist/esm/i18n/zh.js +12 -11
- package/dist/esm/i18n/zh_TW.js +12 -11
- package/dist/esm/services/use-function-usage-tracking/index.js +8 -9
- package/dist/esm/services/use-user-recommendations/analytics.js +9 -14
- package/dist/esm/services/use-user-recommendations/index.js +46 -71
- package/dist/esm/utils/transform-recommendations-to-options/index.js +0 -12
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/cs.d.ts +10 -10
- package/dist/types/i18n/da.d.ts +10 -10
- package/dist/types/i18n/de.d.ts +10 -10
- package/dist/types/i18n/en.d.ts +15 -4
- package/dist/types/i18n/en_GB.d.ts +15 -4
- package/dist/types/i18n/en_ZZ.d.ts +1 -1
- package/dist/types/i18n/es.d.ts +10 -10
- package/dist/types/i18n/fi.d.ts +10 -10
- package/dist/types/i18n/fr.d.ts +10 -10
- package/dist/types/i18n/hu.d.ts +10 -10
- package/dist/types/i18n/it.d.ts +10 -10
- package/dist/types/i18n/ja.d.ts +10 -10
- package/dist/types/i18n/ko.d.ts +10 -10
- package/dist/types/i18n/nb.d.ts +10 -10
- package/dist/types/i18n/nl.d.ts +10 -10
- package/dist/types/i18n/pl.d.ts +10 -10
- package/dist/types/i18n/pt_BR.d.ts +10 -10
- package/dist/types/i18n/ru.d.ts +10 -10
- package/dist/types/i18n/sv.d.ts +10 -10
- package/dist/types/i18n/th.d.ts +10 -10
- package/dist/types/i18n/tr.d.ts +10 -10
- package/dist/types/i18n/uk.d.ts +10 -10
- package/dist/types/i18n/vi.d.ts +10 -10
- package/dist/types/i18n/zh.d.ts +10 -10
- package/dist/types/i18n/zh_TW.d.ts +10 -10
- package/package.json +10 -8
|
@@ -1,42 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.instrumentFailureOption = exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
-
|
|
14
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
|
-
|
|
16
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
-
|
|
18
12
|
var _react = require("react");
|
|
19
|
-
|
|
20
13
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
21
|
-
|
|
22
14
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
23
|
-
|
|
24
15
|
var _uuid = require("uuid");
|
|
25
|
-
|
|
26
16
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
27
|
-
|
|
28
17
|
var _smartCommon = require("@atlaskit/smart-common");
|
|
29
|
-
|
|
30
18
|
var _useFunctionUsageTracking = _interopRequireDefault(require("../use-function-usage-tracking"));
|
|
31
|
-
|
|
32
19
|
var _analytics = require("./analytics");
|
|
33
|
-
|
|
34
20
|
var _ufoExperiences = require("./ufoExperiences");
|
|
35
|
-
|
|
21
|
+
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; }
|
|
36
22
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
37
|
-
|
|
38
23
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
39
|
-
|
|
40
24
|
var MAX_NUMBER_RESULTS = 25;
|
|
41
25
|
var DEFAULT_DEBOUNCE_TIME_MS = 150;
|
|
42
26
|
var defaultProps = {
|
|
@@ -52,54 +36,46 @@ var instrumentFailureOption = [{
|
|
|
52
36
|
avatarUrl: ''
|
|
53
37
|
}];
|
|
54
38
|
exports.instrumentFailureOption = instrumentFailureOption;
|
|
55
|
-
|
|
56
39
|
var useUserRecommendations = function useUserRecommendations(props) {
|
|
57
40
|
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
41
|
+
baseUrl = _defaultProps$props.baseUrl,
|
|
42
|
+
childObjectId = _defaultProps$props.childObjectId,
|
|
43
|
+
containerId = _defaultProps$props.containerId,
|
|
44
|
+
debounceTimeMs = _defaultProps$props.debounceTimeMs,
|
|
45
|
+
fieldId = _defaultProps$props.fieldId,
|
|
46
|
+
includeUsers = _defaultProps$props.includeUsers,
|
|
47
|
+
includeGroups = _defaultProps$props.includeGroups,
|
|
48
|
+
includeTeams = _defaultProps$props.includeTeams,
|
|
49
|
+
maxNumberOfResults = _defaultProps$props.maxNumberOfResults,
|
|
50
|
+
objectId = _defaultProps$props.objectId,
|
|
51
|
+
preload = _defaultProps$props.preload,
|
|
52
|
+
principalId = _defaultProps$props.principalId,
|
|
53
|
+
productAttributes = _defaultProps$props.productAttributes,
|
|
54
|
+
productKey = _defaultProps$props.productKey,
|
|
55
|
+
cpusSearchQuery = _defaultProps$props.cpusSearchQuery,
|
|
56
|
+
tenantId = _defaultProps$props.tenantId;
|
|
75
57
|
var _useState = (0, _react.useState)([]),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
58
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
59
|
+
recommendations = _useState2[0],
|
|
60
|
+
setRecommendations = _useState2[1];
|
|
80
61
|
var _useState3 = (0, _react.useState)(false),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
62
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
63
|
+
isLoading = _useState4[0],
|
|
64
|
+
setIsLoading = _useState4[1];
|
|
85
65
|
var _useState5 = (0, _react.useState)(),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
66
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
67
|
+
error = _useState6[0],
|
|
68
|
+
setError = _useState6[1];
|
|
90
69
|
var _useState7 = (0, _react.useState)(function () {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
70
|
+
return (0, _uuid.v4)();
|
|
71
|
+
}),
|
|
72
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 1),
|
|
73
|
+
renderId = _useState8[0];
|
|
96
74
|
var sessionId = (0, _react.useRef)('');
|
|
97
75
|
var currentQuery = (0, _react.useRef)('');
|
|
98
76
|
var lastAbortController = (0, _react.useRef)();
|
|
99
|
-
|
|
100
77
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
101
|
-
|
|
102
|
-
|
|
78
|
+
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
103
79
|
var getAnalyticsAttributes = (0, _react.useCallback)(function () {
|
|
104
80
|
return _objectSpread({}, (0, _analytics.createDefaultAttributes)({
|
|
105
81
|
fieldId: fieldId,
|
|
@@ -115,27 +91,22 @@ var useUserRecommendations = function useUserRecommendations(props) {
|
|
|
115
91
|
}, renderId, sessionId.current, currentQuery.current));
|
|
116
92
|
}, [childObjectId, containerId, fieldId, includeTeams, maxNumberOfResults, objectId, preload, principalId, productKey, renderId, tenantId]);
|
|
117
93
|
var fetchRecommendations = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
118
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
94
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(query) {
|
|
119
95
|
var _lastAbortController$, currentController, recommendedUsersResult;
|
|
120
|
-
|
|
121
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
96
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
122
97
|
while (1) {
|
|
123
98
|
switch (_context.prev = _context.next) {
|
|
124
99
|
case 0:
|
|
125
|
-
setIsLoading(true);
|
|
126
|
-
|
|
100
|
+
setIsLoading(true);
|
|
101
|
+
// restart session
|
|
127
102
|
sessionId.current = (0, _uuid.v4)();
|
|
128
|
-
|
|
129
103
|
_ufoExperiences.UsersFetchedUfoExperience.getInstance(fieldId).start();
|
|
130
|
-
|
|
131
104
|
_context.prev = 3;
|
|
132
|
-
|
|
133
105
|
if (lastAbortController.current) {
|
|
134
106
|
(_lastAbortController$ = lastAbortController.current) === null || _lastAbortController$ === void 0 ? void 0 : _lastAbortController$.abort();
|
|
135
|
-
}
|
|
107
|
+
}
|
|
108
|
+
// in case there are still IE users, check AbortController before init,
|
|
136
109
|
// IE has no timeout applied on fetch since AbortController isn't available
|
|
137
|
-
|
|
138
|
-
|
|
139
110
|
currentController = typeof AbortController !== 'undefined' ? new AbortController() : null;
|
|
140
111
|
lastAbortController.current = currentController;
|
|
141
112
|
_context.next = 9;
|
|
@@ -159,48 +130,37 @@ var useUserRecommendations = function useUserRecommendations(props) {
|
|
|
159
130
|
searchQuery: cpusSearchQuery,
|
|
160
131
|
query: query
|
|
161
132
|
}, currentController === null || currentController === void 0 ? void 0 : currentController.signal);
|
|
162
|
-
|
|
163
133
|
case 9:
|
|
164
134
|
recommendedUsersResult = _context.sent;
|
|
165
135
|
currentQuery.current = query !== null && query !== void 0 ? query : '';
|
|
166
|
-
|
|
167
136
|
_ufoExperiences.UsersFetchedUfoExperience.getInstance(fieldId).success({
|
|
168
137
|
metadata: _objectSpread(_objectSpread({}, getAnalyticsAttributes()), {}, {
|
|
169
138
|
loadedUsersSize: recommendedUsersResult.length
|
|
170
139
|
})
|
|
171
140
|
});
|
|
172
|
-
|
|
173
141
|
setRecommendations(recommendedUsersResult);
|
|
174
142
|
_context.next = 24;
|
|
175
143
|
break;
|
|
176
|
-
|
|
177
144
|
case 15:
|
|
178
145
|
_context.prev = 15;
|
|
179
146
|
_context.t0 = _context["catch"](3);
|
|
180
|
-
|
|
181
147
|
if (!(_context.t0 instanceof Error && _context.t0.name === 'AbortError')) {
|
|
182
148
|
_context.next = 22;
|
|
183
149
|
break;
|
|
184
150
|
}
|
|
185
|
-
|
|
186
151
|
// Request aborted client-side
|
|
187
|
-
_ufoExperiences.UsersFetchedUfoExperience.getInstance(fieldId).abort();
|
|
188
|
-
|
|
189
|
-
|
|
152
|
+
_ufoExperiences.UsersFetchedUfoExperience.getInstance(fieldId).abort();
|
|
153
|
+
// return early to prevent disabling isLoading
|
|
190
154
|
return _context.abrupt("return");
|
|
191
|
-
|
|
192
155
|
case 22:
|
|
193
156
|
_ufoExperiences.UsersFetchedUfoExperience.getInstance(fieldId).failure({
|
|
194
157
|
metadata: getAnalyticsAttributes()
|
|
195
158
|
});
|
|
196
|
-
|
|
197
159
|
setError(_context.t0);
|
|
198
|
-
|
|
199
160
|
case 24:
|
|
200
|
-
setIsLoading(false);
|
|
201
|
-
|
|
161
|
+
setIsLoading(false);
|
|
162
|
+
// clear abort controller
|
|
202
163
|
lastAbortController.current = undefined;
|
|
203
|
-
|
|
204
164
|
case 26:
|
|
205
165
|
case "end":
|
|
206
166
|
return _context.stop();
|
|
@@ -208,7 +168,6 @@ var useUserRecommendations = function useUserRecommendations(props) {
|
|
|
208
168
|
}
|
|
209
169
|
}, _callee, null, [[3, 15]]);
|
|
210
170
|
}));
|
|
211
|
-
|
|
212
171
|
return function (_x) {
|
|
213
172
|
return _ref.apply(this, arguments);
|
|
214
173
|
};
|
|
@@ -231,15 +190,12 @@ var useUserRecommendations = function useUserRecommendations(props) {
|
|
|
231
190
|
position: (0, _analytics.findUserPosition)(recommendations, userId)
|
|
232
191
|
}));
|
|
233
192
|
}, [createAnalyticsEvent, getAnalyticsAttributes, recommendations]);
|
|
234
|
-
|
|
235
193
|
var _useFunctionUsageTrac = (0, _useFunctionUsageTracking.default)(onInputChange),
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
194
|
+
isOnInputChangeUsed = _useFunctionUsageTrac.isUsed,
|
|
195
|
+
usageTrackedOnInputChange = _useFunctionUsageTrac.trackingFunction;
|
|
239
196
|
var _useFunctionUsageTrac2 = (0, _useFunctionUsageTracking.default)(onUserSelect),
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
197
|
+
isOnUserSelectUsed = _useFunctionUsageTrac2.isUsed,
|
|
198
|
+
usageTrackedOnUserSelect = _useFunctionUsageTrac2.trackingFunction;
|
|
243
199
|
return {
|
|
244
200
|
recommendations: isOnInputChangeUsed && isOnUserSelectUsed ? recommendations : instrumentFailureOption,
|
|
245
201
|
triggerSearchFactory: usageTrackedOnInputChange,
|
|
@@ -248,6 +204,5 @@ var useUserRecommendations = function useUserRecommendations(props) {
|
|
|
248
204
|
error: error
|
|
249
205
|
};
|
|
250
206
|
};
|
|
251
|
-
|
|
252
207
|
var _default = useUserRecommendations;
|
|
253
208
|
exports.default = _default;
|
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UsersFetchedUfoExperience = void 0;
|
|
7
|
-
|
|
8
7
|
var _ufo = require("@atlaskit/ufo");
|
|
9
|
-
|
|
10
8
|
var COMPONENT_NAME = 'smart-hooks.use-user-recommendations';
|
|
11
9
|
var UsersFetchedUfoExperience = new _ufo.ConcurrentExperience('users-fetched', {
|
|
12
10
|
platform: {
|
|
@@ -4,20 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _smartCommon = require("@atlaskit/smart-common");
|
|
9
|
-
|
|
10
8
|
var _userPicker = require("@atlaskit/user-picker");
|
|
11
|
-
|
|
12
9
|
var _messages = require("../../messages");
|
|
13
|
-
|
|
14
10
|
var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
|
|
15
11
|
var _entity$attributes, _entity$attributes2;
|
|
16
|
-
|
|
17
12
|
if ((_entity$attributes = entity.attributes) !== null && _entity$attributes !== void 0 && _entity$attributes.workspaceMember) {
|
|
18
13
|
return intl.formatMessage(_messages.messages.memberLozengeText);
|
|
19
14
|
}
|
|
20
|
-
|
|
21
15
|
if ((_entity$attributes2 = entity.attributes) !== null && _entity$attributes2 !== void 0 && _entity$attributes2.isConfluenceExternalCollaborator) {
|
|
22
16
|
var lozengeTooltipMessage = entity.entityType === _smartCommon.EntityType.GROUP ? _messages.messages.guestGroupLozengeTooltip : _messages.messages.guestUserLozengeTooltip;
|
|
23
17
|
return {
|
|
@@ -26,13 +20,10 @@ var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
|
|
|
26
20
|
appearance: 'new'
|
|
27
21
|
};
|
|
28
22
|
}
|
|
29
|
-
|
|
30
23
|
return undefined;
|
|
31
24
|
};
|
|
32
|
-
|
|
33
25
|
var transformRecommendation = function transformRecommendation(item, intl) {
|
|
34
26
|
var type = item.entityType;
|
|
35
|
-
|
|
36
27
|
if (type === _smartCommon.EntityType.USER) {
|
|
37
28
|
var user = item;
|
|
38
29
|
var lozenge = getLozenzeProperties(user, intl);
|
|
@@ -45,7 +36,6 @@ var transformRecommendation = function transformRecommendation(item, intl) {
|
|
|
45
36
|
lozenge: lozenge
|
|
46
37
|
};
|
|
47
38
|
}
|
|
48
|
-
|
|
49
39
|
if (type === _smartCommon.EntityType.TEAM) {
|
|
50
40
|
var team = item;
|
|
51
41
|
return {
|
|
@@ -58,12 +48,9 @@ var transformRecommendation = function transformRecommendation(item, intl) {
|
|
|
58
48
|
avatarUrl: team.largeAvatarImageUrl || team.smallAvatarImageUrl
|
|
59
49
|
};
|
|
60
50
|
}
|
|
61
|
-
|
|
62
51
|
if (type === _smartCommon.EntityType.GROUP) {
|
|
63
52
|
var group = item;
|
|
64
|
-
|
|
65
53
|
var _lozenge = getLozenzeProperties(group, intl);
|
|
66
|
-
|
|
67
54
|
return {
|
|
68
55
|
id: group.id,
|
|
69
56
|
type: _userPicker.GroupType,
|
|
@@ -71,10 +58,8 @@ var transformRecommendation = function transformRecommendation(item, intl) {
|
|
|
71
58
|
lozenge: _lozenge
|
|
72
59
|
};
|
|
73
60
|
}
|
|
74
|
-
|
|
75
61
|
return;
|
|
76
62
|
};
|
|
77
|
-
|
|
78
63
|
var _default = function _default(recommendations, intl) {
|
|
79
64
|
return (recommendations || []).map(function (item) {
|
|
80
65
|
return transformRecommendation(item, intl);
|
|
@@ -84,5 +69,4 @@ var _default = function _default(recommendations, intl) {
|
|
|
84
69
|
return option;
|
|
85
70
|
});
|
|
86
71
|
};
|
|
87
|
-
|
|
88
72
|
exports.default = _default;
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
1
2
|
/**
|
|
2
3
|
* NOTE:
|
|
3
4
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
7
|
*/
|
|
7
|
-
//
|
|
8
|
+
//Czech
|
|
8
9
|
export default {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
"smart-experiences.smart-hooks.external.sourced.from": "Nalezen v:",
|
|
11
|
+
"smart-experiences.smart-hooks.github.provider": "GitHub",
|
|
12
|
+
"smart-experiences.smart-hooks.google.provider": "Google",
|
|
13
|
+
"smart-experiences.smart-hooks.guest.lozenge.text": "HOST",
|
|
14
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Skupiny hostů mají přístup pouze k určitým prostorům a mají omezený přístup k uživatelským údajům.",
|
|
15
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Hosté mají přístup pouze k určitým prostorům a mají omezený přístup k uživatelským údajům.",
|
|
16
|
+
"smart-experiences.smart-hooks.member.lozenge.text": "ČLEN",
|
|
17
|
+
"smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
|
|
18
|
+
"smart-experiences.smart-hooks.slack.provider": "Slack"
|
|
18
19
|
};
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
1
2
|
/**
|
|
2
3
|
* NOTE:
|
|
3
4
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
7
|
*/
|
|
7
|
-
//
|
|
8
|
+
//Danish (Denmark)
|
|
8
9
|
export default {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
"smart-experiences.smart-hooks.external.sourced.from": "Fundet i:",
|
|
11
|
+
"smart-experiences.smart-hooks.github.provider": "GitHub",
|
|
12
|
+
"smart-experiences.smart-hooks.google.provider": "Google",
|
|
13
|
+
"smart-experiences.smart-hooks.guest.lozenge.text": "GÆST",
|
|
14
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Gæstegrupper har kun adgang til bestemte områder og har begrænset adgang til brugeroplysninger.",
|
|
15
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Gæster har kun adgang til bestemte områder og har begrænset adgang til brugeroplysninger.",
|
|
16
|
+
"smart-experiences.smart-hooks.member.lozenge.text": "Medlem",
|
|
17
|
+
"smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
|
|
18
|
+
"smart-experiences.smart-hooks.slack.provider": "Slack"
|
|
18
19
|
};
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
1
2
|
/**
|
|
2
3
|
* NOTE:
|
|
3
4
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
7
|
*/
|
|
7
|
-
//
|
|
8
|
+
//German (Germany)
|
|
8
9
|
export default {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
"smart-experiences.smart-hooks.external.sourced.from": "Gefunden in:",
|
|
11
|
+
"smart-experiences.smart-hooks.github.provider": "GitHub",
|
|
12
|
+
"smart-experiences.smart-hooks.google.provider": "Google",
|
|
13
|
+
"smart-experiences.smart-hooks.guest.lozenge.text": "Gast",
|
|
14
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Gästegruppen können ausschließlich auf ausgewählte Bereiche zugreifen und verfügen über eingeschränkten Zugriff auf Benutzerinformationen.",
|
|
15
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Gäste können ausschließlich auf ausgewählte Bereiche zugreifen und verfügen über eingeschränkten Zugriff auf Benutzerinformationen.",
|
|
16
|
+
"smart-experiences.smart-hooks.member.lozenge.text": "Mitglied",
|
|
17
|
+
"smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
|
|
18
|
+
"smart-experiences.smart-hooks.slack.provider": "Slack"
|
|
18
19
|
};
|
package/dist/es2019/i18n/en.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/* prettier-ignore */
|
|
2
|
+
/**
|
|
3
|
+
* NOTE:
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
6
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
|
+
*/
|
|
8
|
+
//
|
|
2
9
|
export default {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
"smart-experiences.smart-hooks.external.sourced.from": "Found in:",
|
|
11
|
+
"smart-experiences.smart-hooks.github.provider": "GitHub",
|
|
12
|
+
"smart-experiences.smart-hooks.google.provider": "Google",
|
|
13
|
+
"smart-experiences.smart-hooks.guest.lozenge.text": "GUEST",
|
|
14
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Guest groups can only access certain spaces and have limited access to user info.",
|
|
15
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Guests can only access certain spaces and have limited access to user info.",
|
|
16
|
+
"smart-experiences.smart-hooks.member.lozenge.text": "MEMBER",
|
|
17
|
+
"smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
|
|
18
|
+
"smart-experiences.smart-hooks.slack.provider": "Slack"
|
|
7
19
|
};
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/* prettier-ignore */
|
|
2
|
+
/**
|
|
3
|
+
* NOTE:
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
6
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
|
+
*/
|
|
8
|
+
//English (United Kingdom)
|
|
2
9
|
export default {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
"smart-experiences.smart-hooks.external.sourced.from": "Found in:",
|
|
11
|
+
"smart-experiences.smart-hooks.github.provider": "GitHub",
|
|
12
|
+
"smart-experiences.smart-hooks.google.provider": "Google",
|
|
13
|
+
"smart-experiences.smart-hooks.guest.lozenge.text": "GUEST",
|
|
14
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Guest groups can only access certain spaces and have limited access to user info.",
|
|
15
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Guests can only access certain spaces and have limited access to user info.",
|
|
16
|
+
"smart-experiences.smart-hooks.member.lozenge.text": "MEMBER",
|
|
17
|
+
"smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
|
|
18
|
+
"smart-experiences.smart-hooks.slack.provider": "Slack"
|
|
7
19
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//
|
|
8
8
|
export default {
|
|
9
|
-
'smart-experiences.smart-hooks.external.sourced.from': 'Found in
|
|
10
|
-
'smart-experiences.smart-hooks.github.provider': 'GitHub
|
|
11
|
-
'smart-experiences.smart-hooks.google.provider': 'Google
|
|
12
|
-
'smart-experiences.smart-hooks.guest.lozenge.text': 'GUEST
|
|
13
|
-
'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Guest groups can only access certain spaces and have limited access to user info
|
|
14
|
-
'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Guests can only access certain spaces and have limited access to user info
|
|
15
|
-
'smart-experiences.smart-hooks.member.lozenge.text': 'MEMBER
|
|
16
|
-
'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft
|
|
17
|
-
'smart-experiences.smart-hooks.slack.provider': 'Slack
|
|
9
|
+
'smart-experiences.smart-hooks.external.sourced.from': 'Found in:',
|
|
10
|
+
'smart-experiences.smart-hooks.github.provider': 'GitHub',
|
|
11
|
+
'smart-experiences.smart-hooks.google.provider': 'Google',
|
|
12
|
+
'smart-experiences.smart-hooks.guest.lozenge.text': 'GUEST',
|
|
13
|
+
'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Guest groups can only access certain spaces and have limited access to user info.',
|
|
14
|
+
'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Guests can only access certain spaces and have limited access to user info.',
|
|
15
|
+
'smart-experiences.smart-hooks.member.lozenge.text': 'MEMBER',
|
|
16
|
+
'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
|
|
17
|
+
'smart-experiences.smart-hooks.slack.provider': 'Slack'
|
|
18
18
|
};
|
package/dist/es2019/i18n/es.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
1
2
|
/**
|
|
2
3
|
* NOTE:
|
|
3
4
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
7
|
*/
|
|
7
|
-
//
|
|
8
|
+
//Spanish (International)
|
|
8
9
|
export default {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
"smart-experiences.smart-hooks.external.sourced.from": "Encontrado en:",
|
|
11
|
+
"smart-experiences.smart-hooks.github.provider": "GitHub",
|
|
12
|
+
"smart-experiences.smart-hooks.google.provider": "Google",
|
|
13
|
+
"smart-experiences.smart-hooks.guest.lozenge.text": "INVITADO",
|
|
14
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Los grupos de invitados solo pueden acceder a espacios determinados y tienen un acceso limitado a la información de los usuarios.",
|
|
15
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Los invitados solo pueden acceder a espacios determinados y tienen un acceso limitado a la información de los usuarios.",
|
|
16
|
+
"smart-experiences.smart-hooks.member.lozenge.text": "MIEMBRO",
|
|
17
|
+
"smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
|
|
18
|
+
"smart-experiences.smart-hooks.slack.provider": "Slack"
|
|
18
19
|
};
|
package/dist/es2019/i18n/fi.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
1
2
|
/**
|
|
2
3
|
* NOTE:
|
|
3
4
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
7
|
*/
|
|
7
|
-
//
|
|
8
|
+
//Finnish
|
|
8
9
|
export default {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
"smart-experiences.smart-hooks.external.sourced.from": "Löydetty kohteesta:",
|
|
11
|
+
"smart-experiences.smart-hooks.github.provider": "GitHub",
|
|
12
|
+
"smart-experiences.smart-hooks.google.provider": "Google",
|
|
13
|
+
"smart-experiences.smart-hooks.guest.lozenge.text": "VIERAS",
|
|
14
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Vierasryhmillä on pääsy vain tiettyihin työtiloihin ja rajoitettu pääsy käyttäjätietoihin.",
|
|
15
|
+
"smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Vierailla on pääsy vain tiettyihin työtiloihin ja rajoitettu pääsy käyttäjätietoihin.",
|
|
16
|
+
"smart-experiences.smart-hooks.member.lozenge.text": "Jäsen",
|
|
17
|
+
"smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
|
|
18
|
+
"smart-experiences.smart-hooks.slack.provider": "Slack"
|
|
18
19
|
};
|