@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.
Files changed (124) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/i18n/cs.js +12 -12
  3. package/dist/cjs/i18n/da.js +12 -12
  4. package/dist/cjs/i18n/de.js +12 -12
  5. package/dist/cjs/i18n/en.js +17 -5
  6. package/dist/cjs/i18n/en_GB.js +17 -5
  7. package/dist/cjs/i18n/en_ZZ.js +11 -12
  8. package/dist/cjs/i18n/es.js +12 -12
  9. package/dist/cjs/i18n/et.js +0 -1
  10. package/dist/cjs/i18n/fi.js +12 -12
  11. package/dist/cjs/i18n/fr.js +12 -12
  12. package/dist/cjs/i18n/hu.js +12 -12
  13. package/dist/cjs/i18n/index.js +0 -31
  14. package/dist/cjs/i18n/it.js +12 -12
  15. package/dist/cjs/i18n/ja.js +12 -12
  16. package/dist/cjs/i18n/ko.js +12 -12
  17. package/dist/cjs/i18n/nb.js +12 -12
  18. package/dist/cjs/i18n/nl.js +12 -12
  19. package/dist/cjs/i18n/pl.js +12 -12
  20. package/dist/cjs/i18n/pt_BR.js +12 -12
  21. package/dist/cjs/i18n/pt_PT.js +0 -1
  22. package/dist/cjs/i18n/ru.js +12 -12
  23. package/dist/cjs/i18n/sk.js +0 -1
  24. package/dist/cjs/i18n/sv.js +12 -12
  25. package/dist/cjs/i18n/th.js +12 -12
  26. package/dist/cjs/i18n/tr.js +12 -12
  27. package/dist/cjs/i18n/uk.js +12 -12
  28. package/dist/cjs/i18n/vi.js +12 -12
  29. package/dist/cjs/i18n/zh.js +12 -12
  30. package/dist/cjs/i18n/zh_TW.js +12 -12
  31. package/dist/cjs/index.js +0 -3
  32. package/dist/cjs/messages.js +0 -2
  33. package/dist/cjs/services/use-function-usage-tracking/index.js +8 -13
  34. package/dist/cjs/services/use-user-recommendations/analytics.js +9 -25
  35. package/dist/cjs/services/use-user-recommendations/index.js +46 -91
  36. package/dist/cjs/services/use-user-recommendations/ufoExperiences.js +0 -2
  37. package/dist/cjs/utils/transform-recommendations-to-options/index.js +0 -16
  38. package/dist/cjs/version.json +1 -1
  39. package/dist/es2019/i18n/cs.js +12 -11
  40. package/dist/es2019/i18n/da.js +12 -11
  41. package/dist/es2019/i18n/de.js +12 -11
  42. package/dist/es2019/i18n/en.js +17 -5
  43. package/dist/es2019/i18n/en_GB.js +17 -5
  44. package/dist/es2019/i18n/en_ZZ.js +11 -11
  45. package/dist/es2019/i18n/es.js +12 -11
  46. package/dist/es2019/i18n/fi.js +12 -11
  47. package/dist/es2019/i18n/fr.js +12 -11
  48. package/dist/es2019/i18n/hu.js +12 -11
  49. package/dist/es2019/i18n/it.js +12 -11
  50. package/dist/es2019/i18n/ja.js +12 -11
  51. package/dist/es2019/i18n/ko.js +12 -11
  52. package/dist/es2019/i18n/nb.js +12 -11
  53. package/dist/es2019/i18n/nl.js +12 -11
  54. package/dist/es2019/i18n/pl.js +12 -11
  55. package/dist/es2019/i18n/pt_BR.js +12 -11
  56. package/dist/es2019/i18n/ru.js +12 -11
  57. package/dist/es2019/i18n/sv.js +12 -11
  58. package/dist/es2019/i18n/th.js +12 -11
  59. package/dist/es2019/i18n/tr.js +12 -11
  60. package/dist/es2019/i18n/uk.js +12 -11
  61. package/dist/es2019/i18n/vi.js +12 -11
  62. package/dist/es2019/i18n/zh.js +12 -11
  63. package/dist/es2019/i18n/zh_TW.js +12 -11
  64. package/dist/es2019/services/use-function-usage-tracking/index.js +6 -6
  65. package/dist/es2019/services/use-user-recommendations/analytics.js +0 -2
  66. package/dist/es2019/services/use-user-recommendations/index.js +16 -18
  67. package/dist/es2019/utils/transform-recommendations-to-options/index.js +0 -10
  68. package/dist/es2019/version.json +1 -1
  69. package/dist/esm/i18n/cs.js +12 -11
  70. package/dist/esm/i18n/da.js +12 -11
  71. package/dist/esm/i18n/de.js +12 -11
  72. package/dist/esm/i18n/en.js +17 -5
  73. package/dist/esm/i18n/en_GB.js +17 -5
  74. package/dist/esm/i18n/en_ZZ.js +11 -11
  75. package/dist/esm/i18n/es.js +12 -11
  76. package/dist/esm/i18n/fi.js +12 -11
  77. package/dist/esm/i18n/fr.js +12 -11
  78. package/dist/esm/i18n/hu.js +12 -11
  79. package/dist/esm/i18n/it.js +12 -11
  80. package/dist/esm/i18n/ja.js +12 -11
  81. package/dist/esm/i18n/ko.js +12 -11
  82. package/dist/esm/i18n/nb.js +12 -11
  83. package/dist/esm/i18n/nl.js +12 -11
  84. package/dist/esm/i18n/pl.js +12 -11
  85. package/dist/esm/i18n/pt_BR.js +12 -11
  86. package/dist/esm/i18n/ru.js +12 -11
  87. package/dist/esm/i18n/sv.js +12 -11
  88. package/dist/esm/i18n/th.js +12 -11
  89. package/dist/esm/i18n/tr.js +12 -11
  90. package/dist/esm/i18n/uk.js +12 -11
  91. package/dist/esm/i18n/vi.js +12 -11
  92. package/dist/esm/i18n/zh.js +12 -11
  93. package/dist/esm/i18n/zh_TW.js +12 -11
  94. package/dist/esm/services/use-function-usage-tracking/index.js +8 -9
  95. package/dist/esm/services/use-user-recommendations/analytics.js +9 -14
  96. package/dist/esm/services/use-user-recommendations/index.js +46 -71
  97. package/dist/esm/utils/transform-recommendations-to-options/index.js +0 -12
  98. package/dist/esm/version.json +1 -1
  99. package/dist/types/i18n/cs.d.ts +10 -10
  100. package/dist/types/i18n/da.d.ts +10 -10
  101. package/dist/types/i18n/de.d.ts +10 -10
  102. package/dist/types/i18n/en.d.ts +15 -4
  103. package/dist/types/i18n/en_GB.d.ts +15 -4
  104. package/dist/types/i18n/en_ZZ.d.ts +1 -1
  105. package/dist/types/i18n/es.d.ts +10 -10
  106. package/dist/types/i18n/fi.d.ts +10 -10
  107. package/dist/types/i18n/fr.d.ts +10 -10
  108. package/dist/types/i18n/hu.d.ts +10 -10
  109. package/dist/types/i18n/it.d.ts +10 -10
  110. package/dist/types/i18n/ja.d.ts +10 -10
  111. package/dist/types/i18n/ko.d.ts +10 -10
  112. package/dist/types/i18n/nb.d.ts +10 -10
  113. package/dist/types/i18n/nl.d.ts +10 -10
  114. package/dist/types/i18n/pl.d.ts +10 -10
  115. package/dist/types/i18n/pt_BR.d.ts +10 -10
  116. package/dist/types/i18n/ru.d.ts +10 -10
  117. package/dist/types/i18n/sv.d.ts +10 -10
  118. package/dist/types/i18n/th.d.ts +10 -10
  119. package/dist/types/i18n/tr.d.ts +10 -10
  120. package/dist/types/i18n/uk.d.ts +10 -10
  121. package/dist/types/i18n/vi.d.ts +10 -10
  122. package/dist/types/i18n/zh.d.ts +10 -10
  123. package/dist/types/i18n/zh_TW.d.ts +10 -10
  124. package/package.json +10 -8
@@ -1,12 +1,10 @@
1
+ import _typeof from "@babel/runtime/helpers/typeof";
1
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- import _regeneratorRuntime from "@babel/runtime/regenerator";
5
-
5
+ 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; }
6
6
  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; }
7
-
8
7
  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) { _defineProperty(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; }
9
-
10
8
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
11
9
  import debounce from 'lodash/debounce';
12
10
  import memoizeOne from 'memoize-one';
@@ -30,54 +28,46 @@ export var instrumentFailureOption = [{
30
28
  entityType: EntityType.USER,
31
29
  avatarUrl: ''
32
30
  }];
33
-
34
31
  var useUserRecommendations = function useUserRecommendations(props) {
35
32
  var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
36
- baseUrl = _defaultProps$props.baseUrl,
37
- childObjectId = _defaultProps$props.childObjectId,
38
- containerId = _defaultProps$props.containerId,
39
- debounceTimeMs = _defaultProps$props.debounceTimeMs,
40
- fieldId = _defaultProps$props.fieldId,
41
- includeUsers = _defaultProps$props.includeUsers,
42
- includeGroups = _defaultProps$props.includeGroups,
43
- includeTeams = _defaultProps$props.includeTeams,
44
- maxNumberOfResults = _defaultProps$props.maxNumberOfResults,
45
- objectId = _defaultProps$props.objectId,
46
- preload = _defaultProps$props.preload,
47
- principalId = _defaultProps$props.principalId,
48
- productAttributes = _defaultProps$props.productAttributes,
49
- productKey = _defaultProps$props.productKey,
50
- cpusSearchQuery = _defaultProps$props.cpusSearchQuery,
51
- tenantId = _defaultProps$props.tenantId;
52
-
33
+ baseUrl = _defaultProps$props.baseUrl,
34
+ childObjectId = _defaultProps$props.childObjectId,
35
+ containerId = _defaultProps$props.containerId,
36
+ debounceTimeMs = _defaultProps$props.debounceTimeMs,
37
+ fieldId = _defaultProps$props.fieldId,
38
+ includeUsers = _defaultProps$props.includeUsers,
39
+ includeGroups = _defaultProps$props.includeGroups,
40
+ includeTeams = _defaultProps$props.includeTeams,
41
+ maxNumberOfResults = _defaultProps$props.maxNumberOfResults,
42
+ objectId = _defaultProps$props.objectId,
43
+ preload = _defaultProps$props.preload,
44
+ principalId = _defaultProps$props.principalId,
45
+ productAttributes = _defaultProps$props.productAttributes,
46
+ productKey = _defaultProps$props.productKey,
47
+ cpusSearchQuery = _defaultProps$props.cpusSearchQuery,
48
+ tenantId = _defaultProps$props.tenantId;
53
49
  var _useState = useState([]),
54
- _useState2 = _slicedToArray(_useState, 2),
55
- recommendations = _useState2[0],
56
- setRecommendations = _useState2[1];
57
-
50
+ _useState2 = _slicedToArray(_useState, 2),
51
+ recommendations = _useState2[0],
52
+ setRecommendations = _useState2[1];
58
53
  var _useState3 = useState(false),
59
- _useState4 = _slicedToArray(_useState3, 2),
60
- isLoading = _useState4[0],
61
- setIsLoading = _useState4[1];
62
-
54
+ _useState4 = _slicedToArray(_useState3, 2),
55
+ isLoading = _useState4[0],
56
+ setIsLoading = _useState4[1];
63
57
  var _useState5 = useState(),
64
- _useState6 = _slicedToArray(_useState5, 2),
65
- error = _useState6[0],
66
- setError = _useState6[1];
67
-
58
+ _useState6 = _slicedToArray(_useState5, 2),
59
+ error = _useState6[0],
60
+ setError = _useState6[1];
68
61
  var _useState7 = useState(function () {
69
- return uuid();
70
- }),
71
- _useState8 = _slicedToArray(_useState7, 1),
72
- renderId = _useState8[0];
73
-
62
+ return uuid();
63
+ }),
64
+ _useState8 = _slicedToArray(_useState7, 1),
65
+ renderId = _useState8[0];
74
66
  var sessionId = useRef('');
75
67
  var currentQuery = useRef('');
76
68
  var lastAbortController = useRef();
77
-
78
69
  var _useAnalyticsEvents = useAnalyticsEvents(),
79
- createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
80
-
70
+ createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
81
71
  var getAnalyticsAttributes = useCallback(function () {
82
72
  return _objectSpread({}, createDefaultAttributes({
83
73
  fieldId: fieldId,
@@ -93,25 +83,22 @@ var useUserRecommendations = function useUserRecommendations(props) {
93
83
  }, renderId, sessionId.current, currentQuery.current));
94
84
  }, [childObjectId, containerId, fieldId, includeTeams, maxNumberOfResults, objectId, preload, principalId, productKey, renderId, tenantId]);
95
85
  var fetchRecommendations = useCallback( /*#__PURE__*/function () {
96
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(query) {
86
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(query) {
97
87
  var _lastAbortController$, currentController, recommendedUsersResult;
98
-
99
- return _regeneratorRuntime.wrap(function _callee$(_context) {
88
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
100
89
  while (1) {
101
90
  switch (_context.prev = _context.next) {
102
91
  case 0:
103
- setIsLoading(true); // restart session
104
-
92
+ setIsLoading(true);
93
+ // restart session
105
94
  sessionId.current = uuid();
106
95
  UsersFetchedUfoExperience.getInstance(fieldId).start();
107
96
  _context.prev = 3;
108
-
109
97
  if (lastAbortController.current) {
110
98
  (_lastAbortController$ = lastAbortController.current) === null || _lastAbortController$ === void 0 ? void 0 : _lastAbortController$.abort();
111
- } // in case there are still IE users, check AbortController before init,
99
+ }
100
+ // in case there are still IE users, check AbortController before init,
112
101
  // IE has no timeout applied on fetch since AbortController isn't available
113
-
114
-
115
102
  currentController = typeof AbortController !== 'undefined' ? new AbortController() : null;
116
103
  lastAbortController.current = currentController;
117
104
  _context.next = 9;
@@ -135,7 +122,6 @@ var useUserRecommendations = function useUserRecommendations(props) {
135
122
  searchQuery: cpusSearchQuery,
136
123
  query: query
137
124
  }, currentController === null || currentController === void 0 ? void 0 : currentController.signal);
138
-
139
125
  case 9:
140
126
  recommendedUsersResult = _context.sent;
141
127
  currentQuery.current = query !== null && query !== void 0 ? query : '';
@@ -147,32 +133,26 @@ var useUserRecommendations = function useUserRecommendations(props) {
147
133
  setRecommendations(recommendedUsersResult);
148
134
  _context.next = 24;
149
135
  break;
150
-
151
136
  case 15:
152
137
  _context.prev = 15;
153
138
  _context.t0 = _context["catch"](3);
154
-
155
139
  if (!(_context.t0 instanceof Error && _context.t0.name === 'AbortError')) {
156
140
  _context.next = 22;
157
141
  break;
158
142
  }
159
-
160
143
  // Request aborted client-side
161
- UsersFetchedUfoExperience.getInstance(fieldId).abort(); // return early to prevent disabling isLoading
162
-
144
+ UsersFetchedUfoExperience.getInstance(fieldId).abort();
145
+ // return early to prevent disabling isLoading
163
146
  return _context.abrupt("return");
164
-
165
147
  case 22:
166
148
  UsersFetchedUfoExperience.getInstance(fieldId).failure({
167
149
  metadata: getAnalyticsAttributes()
168
150
  });
169
151
  setError(_context.t0);
170
-
171
152
  case 24:
172
- setIsLoading(false); // clear abort controller
173
-
153
+ setIsLoading(false);
154
+ // clear abort controller
174
155
  lastAbortController.current = undefined;
175
-
176
156
  case 26:
177
157
  case "end":
178
158
  return _context.stop();
@@ -180,7 +160,6 @@ var useUserRecommendations = function useUserRecommendations(props) {
180
160
  }
181
161
  }, _callee, null, [[3, 15]]);
182
162
  }));
183
-
184
163
  return function (_x) {
185
164
  return _ref.apply(this, arguments);
186
165
  };
@@ -203,15 +182,12 @@ var useUserRecommendations = function useUserRecommendations(props) {
203
182
  position: findUserPosition(recommendations, userId)
204
183
  }));
205
184
  }, [createAnalyticsEvent, getAnalyticsAttributes, recommendations]);
206
-
207
185
  var _useFunctionUsageTrac = useFunctionUsageTracking(onInputChange),
208
- isOnInputChangeUsed = _useFunctionUsageTrac.isUsed,
209
- usageTrackedOnInputChange = _useFunctionUsageTrac.trackingFunction;
210
-
186
+ isOnInputChangeUsed = _useFunctionUsageTrac.isUsed,
187
+ usageTrackedOnInputChange = _useFunctionUsageTrac.trackingFunction;
211
188
  var _useFunctionUsageTrac2 = useFunctionUsageTracking(onUserSelect),
212
- isOnUserSelectUsed = _useFunctionUsageTrac2.isUsed,
213
- usageTrackedOnUserSelect = _useFunctionUsageTrac2.trackingFunction;
214
-
189
+ isOnUserSelectUsed = _useFunctionUsageTrac2.isUsed,
190
+ usageTrackedOnUserSelect = _useFunctionUsageTrac2.trackingFunction;
215
191
  return {
216
192
  recommendations: isOnInputChangeUsed && isOnUserSelectUsed ? recommendations : instrumentFailureOption,
217
193
  triggerSearchFactory: usageTrackedOnInputChange,
@@ -220,5 +196,4 @@ var useUserRecommendations = function useUserRecommendations(props) {
220
196
  error: error
221
197
  };
222
198
  };
223
-
224
199
  export default useUserRecommendations;
@@ -1,14 +1,11 @@
1
1
  import { EntityType } from '@atlaskit/smart-common';
2
2
  import { GroupType, TeamType, UserType } from '@atlaskit/user-picker';
3
3
  import { messages } from '../../messages';
4
-
5
4
  var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
6
5
  var _entity$attributes, _entity$attributes2;
7
-
8
6
  if ((_entity$attributes = entity.attributes) !== null && _entity$attributes !== void 0 && _entity$attributes.workspaceMember) {
9
7
  return intl.formatMessage(messages.memberLozengeText);
10
8
  }
11
-
12
9
  if ((_entity$attributes2 = entity.attributes) !== null && _entity$attributes2 !== void 0 && _entity$attributes2.isConfluenceExternalCollaborator) {
13
10
  var lozengeTooltipMessage = entity.entityType === EntityType.GROUP ? messages.guestGroupLozengeTooltip : messages.guestUserLozengeTooltip;
14
11
  return {
@@ -17,13 +14,10 @@ var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
17
14
  appearance: 'new'
18
15
  };
19
16
  }
20
-
21
17
  return undefined;
22
18
  };
23
-
24
19
  var transformRecommendation = function transformRecommendation(item, intl) {
25
20
  var type = item.entityType;
26
-
27
21
  if (type === EntityType.USER) {
28
22
  var user = item;
29
23
  var lozenge = getLozenzeProperties(user, intl);
@@ -36,7 +30,6 @@ var transformRecommendation = function transformRecommendation(item, intl) {
36
30
  lozenge: lozenge
37
31
  };
38
32
  }
39
-
40
33
  if (type === EntityType.TEAM) {
41
34
  var team = item;
42
35
  return {
@@ -49,12 +42,9 @@ var transformRecommendation = function transformRecommendation(item, intl) {
49
42
  avatarUrl: team.largeAvatarImageUrl || team.smallAvatarImageUrl
50
43
  };
51
44
  }
52
-
53
45
  if (type === EntityType.GROUP) {
54
46
  var group = item;
55
-
56
47
  var _lozenge = getLozenzeProperties(group, intl);
57
-
58
48
  return {
59
49
  id: group.id,
60
50
  type: GroupType,
@@ -62,10 +52,8 @@ var transformRecommendation = function transformRecommendation(item, intl) {
62
52
  lozenge: _lozenge
63
53
  };
64
54
  }
65
-
66
55
  return;
67
56
  };
68
-
69
57
  export default (function (recommendations, intl) {
70
58
  return (recommendations || []).map(function (item) {
71
59
  return transformRecommendation(item, intl);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-hooks",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "sideEffects": false
5
5
  }
@@ -1,18 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.external.sourced.from': string;
3
- 'smart-experiences.smart-hooks.github.provider': string;
4
- 'smart-experiences.smart-hooks.google.provider': string;
5
- 'smart-experiences.smart-hooks.guest.lozenge.text': string;
6
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': string;
7
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': string;
8
- 'smart-experiences.smart-hooks.member.lozenge.text': string;
9
- 'smart-experiences.smart-hooks.microsoft.provider': string;
10
- 'smart-experiences.smart-hooks.slack.provider': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
11
11
  };
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;
@@ -1,18 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.external.sourced.from': string;
3
- 'smart-experiences.smart-hooks.github.provider': string;
4
- 'smart-experiences.smart-hooks.google.provider': string;
5
- 'smart-experiences.smart-hooks.guest.lozenge.text': string;
6
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': string;
7
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': string;
8
- 'smart-experiences.smart-hooks.member.lozenge.text': string;
9
- 'smart-experiences.smart-hooks.microsoft.provider': string;
10
- 'smart-experiences.smart-hooks.slack.provider': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
11
11
  };
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;
@@ -1,18 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.external.sourced.from': string;
3
- 'smart-experiences.smart-hooks.github.provider': string;
4
- 'smart-experiences.smart-hooks.google.provider': string;
5
- 'smart-experiences.smart-hooks.guest.lozenge.text': string;
6
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': string;
7
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': string;
8
- 'smart-experiences.smart-hooks.member.lozenge.text': string;
9
- 'smart-experiences.smart-hooks.microsoft.provider': string;
10
- 'smart-experiences.smart-hooks.slack.provider': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
11
11
  };
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;
@@ -1,7 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.placeholder': string;
3
- 'smart-experiences.smart-hooks.placeholder.add-more': string;
4
- 'smart-experiences.smart-hooks.multi.remove-item': string;
5
- 'smart-experiences.smart-hooks.single.clear': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
6
11
  };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by Traduki 2.0.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
7
18
  export default _default;
@@ -1,7 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.placeholder': string;
3
- 'smart-experiences.smart-hooks.placeholder.add-more': string;
4
- 'smart-experiences.smart-hooks.multi.remove-item': string;
5
- 'smart-experiences.smart-hooks.single.clear': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
6
11
  };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by Traduki 2.0.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
7
18
  export default _default;
@@ -12,7 +12,7 @@ declare const _default: {
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;
@@ -1,18 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.external.sourced.from': string;
3
- 'smart-experiences.smart-hooks.github.provider': string;
4
- 'smart-experiences.smart-hooks.google.provider': string;
5
- 'smart-experiences.smart-hooks.guest.lozenge.text': string;
6
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': string;
7
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': string;
8
- 'smart-experiences.smart-hooks.member.lozenge.text': string;
9
- 'smart-experiences.smart-hooks.microsoft.provider': string;
10
- 'smart-experiences.smart-hooks.slack.provider': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
11
11
  };
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;
@@ -1,18 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.external.sourced.from': string;
3
- 'smart-experiences.smart-hooks.github.provider': string;
4
- 'smart-experiences.smart-hooks.google.provider': string;
5
- 'smart-experiences.smart-hooks.guest.lozenge.text': string;
6
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': string;
7
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': string;
8
- 'smart-experiences.smart-hooks.member.lozenge.text': string;
9
- 'smart-experiences.smart-hooks.microsoft.provider': string;
10
- 'smart-experiences.smart-hooks.slack.provider': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
11
11
  };
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;
@@ -1,18 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.external.sourced.from': string;
3
- 'smart-experiences.smart-hooks.github.provider': string;
4
- 'smart-experiences.smart-hooks.google.provider': string;
5
- 'smart-experiences.smart-hooks.guest.lozenge.text': string;
6
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': string;
7
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': string;
8
- 'smart-experiences.smart-hooks.member.lozenge.text': string;
9
- 'smart-experiences.smart-hooks.microsoft.provider': string;
10
- 'smart-experiences.smart-hooks.slack.provider': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
11
11
  };
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;
@@ -1,18 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.external.sourced.from': string;
3
- 'smart-experiences.smart-hooks.github.provider': string;
4
- 'smart-experiences.smart-hooks.google.provider': string;
5
- 'smart-experiences.smart-hooks.guest.lozenge.text': string;
6
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': string;
7
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': string;
8
- 'smart-experiences.smart-hooks.member.lozenge.text': string;
9
- 'smart-experiences.smart-hooks.microsoft.provider': string;
10
- 'smart-experiences.smart-hooks.slack.provider': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
11
11
  };
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;
@@ -1,18 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.external.sourced.from': string;
3
- 'smart-experiences.smart-hooks.github.provider': string;
4
- 'smart-experiences.smart-hooks.google.provider': string;
5
- 'smart-experiences.smart-hooks.guest.lozenge.text': string;
6
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': string;
7
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': string;
8
- 'smart-experiences.smart-hooks.member.lozenge.text': string;
9
- 'smart-experiences.smart-hooks.microsoft.provider': string;
10
- 'smart-experiences.smart-hooks.slack.provider': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
11
11
  };
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;
@@ -1,18 +1,18 @@
1
1
  declare const _default: {
2
- 'smart-experiences.smart-hooks.external.sourced.from': string;
3
- 'smart-experiences.smart-hooks.github.provider': string;
4
- 'smart-experiences.smart-hooks.google.provider': string;
5
- 'smart-experiences.smart-hooks.guest.lozenge.text': string;
6
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': string;
7
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': string;
8
- 'smart-experiences.smart-hooks.member.lozenge.text': string;
9
- 'smart-experiences.smart-hooks.microsoft.provider': string;
10
- 'smart-experiences.smart-hooks.slack.provider': string;
2
+ "smart-experiences.smart-hooks.external.sourced.from": string;
3
+ "smart-experiences.smart-hooks.github.provider": string;
4
+ "smart-experiences.smart-hooks.google.provider": string;
5
+ "smart-experiences.smart-hooks.guest.lozenge.text": string;
6
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": string;
7
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": string;
8
+ "smart-experiences.smart-hooks.member.lozenge.text": string;
9
+ "smart-experiences.smart-hooks.microsoft.provider": string;
10
+ "smart-experiences.smart-hooks.slack.provider": string;
11
11
  };
12
12
  /**
13
13
  * NOTE:
14
14
  *
15
- * This file is automatically generated by i18n-tools.
15
+ * This file is automatically generated by Traduki 2.0.
16
16
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
17
  */
18
18
  export default _default;