@atlaskit/util-data-test 17.2.3 → 17.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @atlaskit/util-data-test
2
2
 
3
+ ## 17.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`06232e0f8dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/06232e0f8dd) - [ux] Opt In SSR for Resourced Emoji and Emoji Placeholder with EmojiResource interfaces
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 17.3.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [`31ca93c69a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31ca93c69a3) - [ux] Adding give kudos button to the profile card
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
23
+ ## 17.2.4
24
+
25
+ ### Patch Changes
26
+
27
+ - [`b926172a999`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b926172a999) - Custom Emoji Assets now load using inline media tokens preventing 401s
28
+ - Updated dependencies
29
+
3
30
  ## 17.2.3
4
31
 
5
32
  ### Patch Changes
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.MockEmojiResource = void 0;
9
9
 
10
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
+
12
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
+
10
14
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
15
 
12
16
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -53,6 +57,97 @@ var MockEmojiResource = /*#__PURE__*/function (_MockNonUploadingEmoj) {
53
57
  }
54
58
 
55
59
  (0, _createClass2.default)(MockEmojiResource, [{
60
+ key: "getMediaEmojiDescriptionURLWithInlineToken",
61
+ value: function () {
62
+ var _getMediaEmojiDescriptionURLWithInlineToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(emoji) {
63
+ return _regenerator.default.wrap(function _callee$(_context) {
64
+ while (1) {
65
+ switch (_context.prev = _context.next) {
66
+ case 0:
67
+ if (!this.promiseBuilder) {
68
+ _context.next = 2;
69
+ break;
70
+ }
71
+
72
+ return _context.abrupt("return", this.promiseBuilder(emoji, 'getMediaEmojiDescriptionURLWithInlineToken'));
73
+
74
+ case 2:
75
+ return _context.abrupt("return", emoji);
76
+
77
+ case 3:
78
+ case "end":
79
+ return _context.stop();
80
+ }
81
+ }
82
+ }, _callee, this);
83
+ }));
84
+
85
+ function getMediaEmojiDescriptionURLWithInlineToken(_x) {
86
+ return _getMediaEmojiDescriptionURLWithInlineToken.apply(this, arguments);
87
+ }
88
+
89
+ return getMediaEmojiDescriptionURLWithInlineToken;
90
+ }()
91
+ }, {
92
+ key: "fetchEmojiProvider",
93
+ value: function () {
94
+ var _fetchEmojiProvider = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(force) {
95
+ return _regenerator.default.wrap(function _callee2$(_context2) {
96
+ while (1) {
97
+ switch (_context2.prev = _context2.next) {
98
+ case 0:
99
+ return _context2.abrupt("return", Promise.resolve(this.emojiRepository));
100
+
101
+ case 1:
102
+ case "end":
103
+ return _context2.stop();
104
+ }
105
+ }
106
+ }, _callee2, this);
107
+ }));
108
+
109
+ function fetchEmojiProvider(_x2) {
110
+ return _fetchEmojiProvider.apply(this, arguments);
111
+ }
112
+
113
+ return fetchEmojiProvider;
114
+ }()
115
+ }, {
116
+ key: "fetchByEmojiId",
117
+ value: function () {
118
+ var _fetchByEmojiId = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(emojiId, optimistic) {
119
+ var _this2 = this;
120
+
121
+ return _regenerator.default.wrap(function _callee3$(_context3) {
122
+ while (1) {
123
+ switch (_context3.prev = _context3.next) {
124
+ case 0:
125
+ return _context3.abrupt("return", new Promise(function (resolve) {
126
+ setTimeout(function () {
127
+ resolve(_this2.findByEmojiId(emojiId));
128
+ }, 1000);
129
+ }));
130
+
131
+ case 1:
132
+ case "end":
133
+ return _context3.stop();
134
+ }
135
+ }
136
+ }, _callee3);
137
+ }));
138
+
139
+ function fetchByEmojiId(_x3, _x4) {
140
+ return _fetchByEmojiId.apply(this, arguments);
141
+ }
142
+
143
+ return fetchByEmojiId;
144
+ }()
145
+ }, {
146
+ key: "getOptimisticImageURL",
147
+ value: function getOptimisticImageURL(emojiId) {
148
+ return 'optimisticUrl';
149
+ }
150
+ }, {
56
151
  key: "isUploadSupported",
57
152
  value: function isUploadSupported() {
58
153
  return this.promiseBuilder(this.uploadSupported, 'isUploadSupported');
@@ -69,6 +69,35 @@ var MockNonUploadingEmojiResource = /*#__PURE__*/function (_AbstractResource) {
69
69
  }
70
70
 
71
71
  (0, _createClass2.default)(MockNonUploadingEmojiResource, [{
72
+ key: "fetchEmojiProvider",
73
+ value: function () {
74
+ var _fetchEmojiProvider = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(force) {
75
+ return _regenerator.default.wrap(function _callee$(_context) {
76
+ while (1) {
77
+ switch (_context.prev = _context.next) {
78
+ case 0:
79
+ return _context.abrupt("return", Promise.resolve(this.emojiRepository));
80
+
81
+ case 1:
82
+ case "end":
83
+ return _context.stop();
84
+ }
85
+ }
86
+ }, _callee, this);
87
+ }));
88
+
89
+ function fetchEmojiProvider(_x) {
90
+ return _fetchEmojiProvider.apply(this, arguments);
91
+ }
92
+
93
+ return fetchEmojiProvider;
94
+ }()
95
+ }, {
96
+ key: "getOptimisticImageURL",
97
+ value: function getOptimisticImageURL(emojiId) {
98
+ return 'optimisticUrl';
99
+ }
100
+ }, {
72
101
  key: "getCurrentUser",
73
102
  value: function getCurrentUser() {
74
103
  return this.currentUser;
@@ -127,27 +156,51 @@ var MockNonUploadingEmojiResource = /*#__PURE__*/function (_AbstractResource) {
127
156
  }, {
128
157
  key: "getFrequentlyUsed",
129
158
  value: function () {
130
- var _getFrequentlyUsed = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(options) {
131
- return _regenerator.default.wrap(function _callee$(_context) {
159
+ var _getFrequentlyUsed = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
160
+ return _regenerator.default.wrap(function _callee2$(_context2) {
132
161
  while (1) {
133
- switch (_context.prev = _context.next) {
162
+ switch (_context2.prev = _context2.next) {
134
163
  case 0:
135
- return _context.abrupt("return", this.promiseBuilder(this.emojiRepository.getFrequentlyUsed(options), 'getFrequentlyUsed'));
164
+ return _context2.abrupt("return", this.promiseBuilder(this.emojiRepository.getFrequentlyUsed(options), 'getFrequentlyUsed'));
136
165
 
137
166
  case 1:
138
167
  case "end":
139
- return _context.stop();
168
+ return _context2.stop();
140
169
  }
141
170
  }
142
- }, _callee, this);
171
+ }, _callee2, this);
143
172
  }));
144
173
 
145
- function getFrequentlyUsed(_x) {
174
+ function getFrequentlyUsed(_x2) {
146
175
  return _getFrequentlyUsed.apply(this, arguments);
147
176
  }
148
177
 
149
178
  return getFrequentlyUsed;
150
179
  }()
180
+ }, {
181
+ key: "getMediaEmojiDescriptionURLWithInlineToken",
182
+ value: function () {
183
+ var _getMediaEmojiDescriptionURLWithInlineToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(emoji) {
184
+ return _regenerator.default.wrap(function _callee3$(_context3) {
185
+ while (1) {
186
+ switch (_context3.prev = _context3.next) {
187
+ case 0:
188
+ return _context3.abrupt("return", emoji);
189
+
190
+ case 1:
191
+ case "end":
192
+ return _context3.stop();
193
+ }
194
+ }
195
+ }, _callee3);
196
+ }));
197
+
198
+ function getMediaEmojiDescriptionURLWithInlineToken(_x3) {
199
+ return _getMediaEmojiDescriptionURLWithInlineToken.apply(this, arguments);
200
+ }
201
+
202
+ return getMediaEmojiDescriptionURLWithInlineToken;
203
+ }()
151
204
  }, {
152
205
  key: "recordSelection",
153
206
  value: function recordSelection(emoji) {
@@ -187,6 +187,12 @@ function simpleMockProfilecardClient() {
187
187
  managers: reportingLinesUsers.slice(0, halfCount),
188
188
  reports: reportingLinesUsers.slice(-halfCount)
189
189
  });
190
+ },
191
+ getTeamCentralBaseUrl: function getTeamCentralBaseUrl() {
192
+ return 'teamCentralUrl';
193
+ },
194
+ shouldShowGiveKudos: function shouldShowGiveKudos() {
195
+ return Promise.resolve(true);
190
196
  }
191
197
  };
192
198
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.2.3"
3
+ "version": "17.4.0"
4
4
  }
@@ -15,6 +15,30 @@ export class MockEmojiResource extends MockNonUploadingEmojiResource {
15
15
  }
16
16
  }
17
17
 
18
+ async getMediaEmojiDescriptionURLWithInlineToken(emoji) {
19
+ if (this.promiseBuilder) {
20
+ return this.promiseBuilder(emoji, 'getMediaEmojiDescriptionURLWithInlineToken');
21
+ }
22
+
23
+ return emoji;
24
+ }
25
+
26
+ async fetchEmojiProvider(force) {
27
+ return Promise.resolve(this.emojiRepository);
28
+ }
29
+
30
+ async fetchByEmojiId(emojiId, optimistic) {
31
+ return new Promise(resolve => {
32
+ setTimeout(() => {
33
+ resolve(this.findByEmojiId(emojiId));
34
+ }, 1000);
35
+ });
36
+ }
37
+
38
+ getOptimisticImageURL(emojiId) {
39
+ return 'optimisticUrl';
40
+ }
41
+
18
42
  isUploadSupported() {
19
43
  return this.promiseBuilder(this.uploadSupported, 'isUploadSupported');
20
44
  }
@@ -28,6 +28,14 @@ export class MockNonUploadingEmojiResource extends AbstractResource {
28
28
  }
29
29
  }
30
30
 
31
+ async fetchEmojiProvider(force) {
32
+ return Promise.resolve(this.emojiRepository);
33
+ }
34
+
35
+ getOptimisticImageURL(emojiId) {
36
+ return 'optimisticUrl';
37
+ }
38
+
31
39
  getCurrentUser() {
32
40
  return this.currentUser;
33
41
  }
@@ -81,6 +89,10 @@ export class MockNonUploadingEmojiResource extends AbstractResource {
81
89
  return this.promiseBuilder(this.emojiRepository.getFrequentlyUsed(options), 'getFrequentlyUsed');
82
90
  }
83
91
 
92
+ async getMediaEmojiDescriptionURLWithInlineToken(emoji) {
93
+ return emoji;
94
+ }
95
+
84
96
  recordSelection(emoji) {
85
97
  this.recordedSelections.push(emoji);
86
98
  this.emojiRepository.used(emoji);
@@ -96,6 +96,8 @@ export function simpleMockProfilecardClient() {
96
96
  managers: reportingLinesUsers.slice(0, halfCount),
97
97
  reports: reportingLinesUsers.slice(-halfCount)
98
98
  });
99
- }
99
+ },
100
+ getTeamCentralBaseUrl: () => 'teamCentralUrl',
101
+ shouldShowGiveKudos: () => Promise.resolve(true)
100
102
  };
101
103
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.2.3"
3
+ "version": "17.4.0"
4
4
  }
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { EmojiRepository } from '@atlaskit/emoji/resource';
4
4
  import { denormaliseEmojiServiceResponse } from '@atlaskit/emoji/utils';
5
5
  import { MockEmojiResource } from './mock-emoji-resource';
@@ -1,3 +1,4 @@
1
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
1
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
3
  import _createClass from "@babel/runtime/helpers/createClass";
3
4
  import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
@@ -6,6 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
6
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
9
11
 
10
12
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
13
 
@@ -38,6 +40,97 @@ export var MockEmojiResource = /*#__PURE__*/function (_MockNonUploadingEmoj) {
38
40
  }
39
41
 
40
42
  _createClass(MockEmojiResource, [{
43
+ key: "getMediaEmojiDescriptionURLWithInlineToken",
44
+ value: function () {
45
+ var _getMediaEmojiDescriptionURLWithInlineToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(emoji) {
46
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
47
+ while (1) {
48
+ switch (_context.prev = _context.next) {
49
+ case 0:
50
+ if (!this.promiseBuilder) {
51
+ _context.next = 2;
52
+ break;
53
+ }
54
+
55
+ return _context.abrupt("return", this.promiseBuilder(emoji, 'getMediaEmojiDescriptionURLWithInlineToken'));
56
+
57
+ case 2:
58
+ return _context.abrupt("return", emoji);
59
+
60
+ case 3:
61
+ case "end":
62
+ return _context.stop();
63
+ }
64
+ }
65
+ }, _callee, this);
66
+ }));
67
+
68
+ function getMediaEmojiDescriptionURLWithInlineToken(_x) {
69
+ return _getMediaEmojiDescriptionURLWithInlineToken.apply(this, arguments);
70
+ }
71
+
72
+ return getMediaEmojiDescriptionURLWithInlineToken;
73
+ }()
74
+ }, {
75
+ key: "fetchEmojiProvider",
76
+ value: function () {
77
+ var _fetchEmojiProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(force) {
78
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
79
+ while (1) {
80
+ switch (_context2.prev = _context2.next) {
81
+ case 0:
82
+ return _context2.abrupt("return", Promise.resolve(this.emojiRepository));
83
+
84
+ case 1:
85
+ case "end":
86
+ return _context2.stop();
87
+ }
88
+ }
89
+ }, _callee2, this);
90
+ }));
91
+
92
+ function fetchEmojiProvider(_x2) {
93
+ return _fetchEmojiProvider.apply(this, arguments);
94
+ }
95
+
96
+ return fetchEmojiProvider;
97
+ }()
98
+ }, {
99
+ key: "fetchByEmojiId",
100
+ value: function () {
101
+ var _fetchByEmojiId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(emojiId, optimistic) {
102
+ var _this2 = this;
103
+
104
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
105
+ while (1) {
106
+ switch (_context3.prev = _context3.next) {
107
+ case 0:
108
+ return _context3.abrupt("return", new Promise(function (resolve) {
109
+ setTimeout(function () {
110
+ resolve(_this2.findByEmojiId(emojiId));
111
+ }, 1000);
112
+ }));
113
+
114
+ case 1:
115
+ case "end":
116
+ return _context3.stop();
117
+ }
118
+ }
119
+ }, _callee3);
120
+ }));
121
+
122
+ function fetchByEmojiId(_x3, _x4) {
123
+ return _fetchByEmojiId.apply(this, arguments);
124
+ }
125
+
126
+ return fetchByEmojiId;
127
+ }()
128
+ }, {
129
+ key: "getOptimisticImageURL",
130
+ value: function getOptimisticImageURL(emojiId) {
131
+ return 'optimisticUrl';
132
+ }
133
+ }, {
41
134
  key: "isUploadSupported",
42
135
  value: function isUploadSupported() {
43
136
  return this.promiseBuilder(this.uploadSupported, 'isUploadSupported');
@@ -1,4 +1,3 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -7,6 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
 
@@ -54,6 +54,35 @@ export var MockNonUploadingEmojiResource = /*#__PURE__*/function (_AbstractResou
54
54
  }
55
55
 
56
56
  _createClass(MockNonUploadingEmojiResource, [{
57
+ key: "fetchEmojiProvider",
58
+ value: function () {
59
+ var _fetchEmojiProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(force) {
60
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
61
+ while (1) {
62
+ switch (_context.prev = _context.next) {
63
+ case 0:
64
+ return _context.abrupt("return", Promise.resolve(this.emojiRepository));
65
+
66
+ case 1:
67
+ case "end":
68
+ return _context.stop();
69
+ }
70
+ }
71
+ }, _callee, this);
72
+ }));
73
+
74
+ function fetchEmojiProvider(_x) {
75
+ return _fetchEmojiProvider.apply(this, arguments);
76
+ }
77
+
78
+ return fetchEmojiProvider;
79
+ }()
80
+ }, {
81
+ key: "getOptimisticImageURL",
82
+ value: function getOptimisticImageURL(emojiId) {
83
+ return 'optimisticUrl';
84
+ }
85
+ }, {
57
86
  key: "getCurrentUser",
58
87
  value: function getCurrentUser() {
59
88
  return this.currentUser;
@@ -112,27 +141,51 @@ export var MockNonUploadingEmojiResource = /*#__PURE__*/function (_AbstractResou
112
141
  }, {
113
142
  key: "getFrequentlyUsed",
114
143
  value: function () {
115
- var _getFrequentlyUsed = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options) {
116
- return _regeneratorRuntime.wrap(function _callee$(_context) {
144
+ var _getFrequentlyUsed = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(options) {
145
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
117
146
  while (1) {
118
- switch (_context.prev = _context.next) {
147
+ switch (_context2.prev = _context2.next) {
119
148
  case 0:
120
- return _context.abrupt("return", this.promiseBuilder(this.emojiRepository.getFrequentlyUsed(options), 'getFrequentlyUsed'));
149
+ return _context2.abrupt("return", this.promiseBuilder(this.emojiRepository.getFrequentlyUsed(options), 'getFrequentlyUsed'));
121
150
 
122
151
  case 1:
123
152
  case "end":
124
- return _context.stop();
153
+ return _context2.stop();
125
154
  }
126
155
  }
127
- }, _callee, this);
156
+ }, _callee2, this);
128
157
  }));
129
158
 
130
- function getFrequentlyUsed(_x) {
159
+ function getFrequentlyUsed(_x2) {
131
160
  return _getFrequentlyUsed.apply(this, arguments);
132
161
  }
133
162
 
134
163
  return getFrequentlyUsed;
135
164
  }()
165
+ }, {
166
+ key: "getMediaEmojiDescriptionURLWithInlineToken",
167
+ value: function () {
168
+ var _getMediaEmojiDescriptionURLWithInlineToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(emoji) {
169
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
170
+ while (1) {
171
+ switch (_context3.prev = _context3.next) {
172
+ case 0:
173
+ return _context3.abrupt("return", emoji);
174
+
175
+ case 1:
176
+ case "end":
177
+ return _context3.stop();
178
+ }
179
+ }
180
+ }, _callee3);
181
+ }));
182
+
183
+ function getMediaEmojiDescriptionURLWithInlineToken(_x3) {
184
+ return _getMediaEmojiDescriptionURLWithInlineToken.apply(this, arguments);
185
+ }
186
+
187
+ return getMediaEmojiDescriptionURLWithInlineToken;
188
+ }()
136
189
  }, {
137
190
  key: "recordSelection",
138
191
  value: function recordSelection(emoji) {
@@ -1,4 +1,3 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -6,6 +5,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
6
5
  import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
9
9
 
10
10
  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; }
11
11
 
@@ -168,6 +168,12 @@ export function simpleMockProfilecardClient() {
168
168
  managers: reportingLinesUsers.slice(0, halfCount),
169
169
  reports: reportingLinesUsers.slice(-halfCount)
170
170
  });
171
+ },
172
+ getTeamCentralBaseUrl: function getTeamCentralBaseUrl() {
173
+ return 'teamCentralUrl';
174
+ },
175
+ shouldShowGiveKudos: function shouldShowGiveKudos() {
176
+ return Promise.resolve(true);
171
177
  }
172
178
  };
173
179
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.2.3"
3
+ "version": "17.4.0"
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { UploadingEmojiProvider, EmojiRepository } from '@atlaskit/emoji/resource';
2
- import { EmojiDescription, EmojiUpload } from '@atlaskit/emoji/types';
2
+ import { EmojiDescription, EmojiId, EmojiUpload, OptionalEmojiDescriptionWithVariations } from '@atlaskit/emoji/types';
3
3
  import { MockNonUploadingEmojiResource } from './mock-non-uploading-emoji-resource';
4
4
  import { MockEmojiResourceConfig, UploadDetail } from './types';
5
5
  export declare class MockEmojiResource extends MockNonUploadingEmojiResource implements UploadingEmojiProvider {
@@ -7,6 +7,10 @@ export declare class MockEmojiResource extends MockNonUploadingEmojiResource imp
7
7
  private uploadSupported;
8
8
  private uploadError?;
9
9
  constructor(emojiService: EmojiRepository, config?: MockEmojiResourceConfig);
10
+ getMediaEmojiDescriptionURLWithInlineToken(emoji: EmojiDescription): Promise<EmojiDescription>;
11
+ fetchEmojiProvider(force?: boolean): Promise<EmojiRepository | undefined>;
12
+ fetchByEmojiId(emojiId: EmojiId, optimistic: boolean): Promise<OptionalEmojiDescriptionWithVariations>;
13
+ getOptimisticImageURL(emojiId: EmojiId): string;
10
14
  isUploadSupported(): Promise<boolean>;
11
15
  uploadCustomEmoji(upload: EmojiUpload): Promise<any>;
12
16
  getUploads(): UploadDetail[];
@@ -11,6 +11,8 @@ export declare class MockNonUploadingEmojiResource extends AbstractResource<stri
11
11
  protected currentUser?: User;
12
12
  recordedSelections: EmojiDescription[];
13
13
  constructor(emojiService: EmojiRepository, config?: MockEmojiResourceConfig);
14
+ fetchEmojiProvider(force?: boolean): Promise<EmojiRepository | undefined>;
15
+ getOptimisticImageURL(emojiId: EmojiId): string;
14
16
  getCurrentUser(): OptionalUser;
15
17
  filter(query?: string, options?: SearchOptions): void;
16
18
  findByShortName(shortName: string): Promise<OptionalEmojiDescription>;
@@ -19,6 +21,7 @@ export declare class MockNonUploadingEmojiResource extends AbstractResource<stri
19
21
  findInCategory(categoryId: CategoryId): Promise<EmojiDescription[]>;
20
22
  getAsciiMap(): Promise<Map<string, EmojiDescription>>;
21
23
  getFrequentlyUsed(options?: SearchOptions): Promise<EmojiDescription[]>;
24
+ getMediaEmojiDescriptionURLWithInlineToken(emoji: EmojiDescription): Promise<EmojiDescription>;
22
25
  recordSelection?(emoji: EmojiDescription): Promise<any>;
23
26
  deleteSiteEmoji(emoji: EmojiDescription): Promise<boolean>;
24
27
  loadMediaEmoji(emoji: EmojiDescription): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.2.3",
3
+ "version": "17.4.0",
4
4
  "description": "Shared test and story data",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,9 +66,9 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@atlaskit/analytics-next": "^8.0.0",
69
- "@atlaskit/emoji": "^64.5.0",
69
+ "@atlaskit/emoji": "^65.0.0",
70
70
  "@atlaskit/mention": "^21.0.0",
71
- "@atlaskit/profilecard": "^16.4.0",
71
+ "@atlaskit/profilecard": "^16.10.0",
72
72
  "@atlaskit/task-decision": "^17.4.0",
73
73
  "@atlaskit/util-service-support": "^6.1.0",
74
74
  "@babel/runtime": "^7.0.0",