@atlaskit/util-data-test 17.4.0 → 17.5.2

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,24 @@
1
1
  # @atlaskit/util-data-test
2
2
 
3
+ ## 17.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
8
+
9
+ ## 17.5.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`40dc0e98bc6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/40dc0e98bc6) - remove fake timeout of findByEmojiId in mock
14
+ - Updated dependencies
15
+
16
+ ## 17.5.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [`32312d1534d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/32312d1534d) - Add get-atlassian-emojis entry point
21
+
3
22
  ## 17.4.0
4
23
 
5
24
  ### Minor Changes
@@ -116,24 +116,18 @@ var MockEmojiResource = /*#__PURE__*/function (_MockNonUploadingEmoj) {
116
116
  key: "fetchByEmojiId",
117
117
  value: function () {
118
118
  var _fetchByEmojiId = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(emojiId, optimistic) {
119
- var _this2 = this;
120
-
121
119
  return _regenerator.default.wrap(function _callee3$(_context3) {
122
120
  while (1) {
123
121
  switch (_context3.prev = _context3.next) {
124
122
  case 0:
125
- return _context3.abrupt("return", new Promise(function (resolve) {
126
- setTimeout(function () {
127
- resolve(_this2.findByEmojiId(emojiId));
128
- }, 1000);
129
- }));
123
+ return _context3.abrupt("return", this.findByEmojiId(emojiId));
130
124
 
131
125
  case 1:
132
126
  case "end":
133
127
  return _context3.stop();
134
128
  }
135
129
  }
136
- }, _callee3);
130
+ }, _callee3, this);
137
131
  }));
138
132
 
139
133
  function fetchByEmojiId(_x3, _x4) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.4.0"
3
+ "version": "17.5.2"
4
4
  }
@@ -28,11 +28,7 @@ export class MockEmojiResource extends MockNonUploadingEmojiResource {
28
28
  }
29
29
 
30
30
  async fetchByEmojiId(emojiId, optimistic) {
31
- return new Promise(resolve => {
32
- setTimeout(() => {
33
- resolve(this.findByEmojiId(emojiId));
34
- }, 1000);
35
- });
31
+ return this.findByEmojiId(emojiId);
36
32
  }
37
33
 
38
34
  getOptimisticImageURL(emojiId) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.4.0"
3
+ "version": "17.5.2"
4
4
  }
@@ -99,24 +99,18 @@ export var MockEmojiResource = /*#__PURE__*/function (_MockNonUploadingEmoj) {
99
99
  key: "fetchByEmojiId",
100
100
  value: function () {
101
101
  var _fetchByEmojiId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(emojiId, optimistic) {
102
- var _this2 = this;
103
-
104
102
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
105
103
  while (1) {
106
104
  switch (_context3.prev = _context3.next) {
107
105
  case 0:
108
- return _context3.abrupt("return", new Promise(function (resolve) {
109
- setTimeout(function () {
110
- resolve(_this2.findByEmojiId(emojiId));
111
- }, 1000);
112
- }));
106
+ return _context3.abrupt("return", this.findByEmojiId(emojiId));
113
107
 
114
108
  case 1:
115
109
  case "end":
116
110
  return _context3.stop();
117
111
  }
118
112
  }
119
- }, _callee3);
113
+ }, _callee3, this);
120
114
  }));
121
115
 
122
116
  function fetchByEmojiId(_x3, _x4) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.4.0"
3
+ "version": "17.5.2"
4
4
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@atlaskit/util-data-test/get-atlassian-emojis",
3
+ "main": "../dist/cjs/emoji/get-atlassian-emojis.js",
4
+ "module": "../dist/esm/emoji/get-atlassian-emojis.js",
5
+ "module:es2019": "../dist/es2019/emoji/get-atlassian-emojis.js",
6
+ "types": "../dist/types/emoji/get-atlassian-emojis.d.ts"
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.4.0",
3
+ "version": "17.5.2",
4
4
  "description": "Shared test and story data",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -13,6 +13,7 @@
13
13
  "./emoji-samples": "./src/emoji-test/emoji-samples.ts",
14
14
  "./emoji-types": "./src/emoji/types.ts",
15
15
  "./filter-to-searchable": "./src/emoji-test/filter-to-searchable.ts",
16
+ "./get-atlassian-emojis": "./src/emoji/get-atlassian-emojis.ts",
16
17
  "./get-emoji-provider": "./src/emoji/get-emoji-provider.ts",
17
18
  "./get-emoji-repository": "./src/emoji/get-emoji-repository.ts",
18
19
  "./get-emoji-resource-standard-atlassian": "./src/emoji/get-emoji-resource-standard-atlassian.ts",
@@ -66,9 +67,9 @@
66
67
  },
67
68
  "dependencies": {
68
69
  "@atlaskit/analytics-next": "^8.0.0",
69
- "@atlaskit/emoji": "^65.0.0",
70
+ "@atlaskit/emoji": "^65.1.0",
70
71
  "@atlaskit/mention": "^21.0.0",
71
- "@atlaskit/profilecard": "^16.10.0",
72
+ "@atlaskit/profilecard": "^16.12.0",
72
73
  "@atlaskit/task-decision": "^17.4.0",
73
74
  "@atlaskit/util-service-support": "^6.1.0",
74
75
  "@babel/runtime": "^7.0.0",
@@ -84,7 +85,7 @@
84
85
  "devDependencies": {
85
86
  "@atlaskit/docs": "^9.0.0",
86
87
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
87
- "typescript": "4.2.4"
88
+ "typescript": "4.3.5"
88
89
  },
89
90
  "keywords": [
90
91
  "fabric",