@atlaskit/util-data-test 17.5.3 → 17.5.5

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 (149) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/json-data/user-picker-data.json +9 -0
  3. package/dist/cjs/user-picker/index.js +9 -1
  4. package/dist/cjs/user-picker/user-picker-team-data.js +36 -0
  5. package/dist/cjs/version.json +1 -1
  6. package/dist/es2019/json-data/user-picker-data.json +9 -0
  7. package/dist/es2019/user-picker/index.js +3 -1
  8. package/dist/es2019/user-picker/user-picker-team-data.js +24 -0
  9. package/dist/es2019/version.json +1 -1
  10. package/dist/esm/json-data/user-picker-data.json +9 -0
  11. package/dist/esm/user-picker/index.js +3 -1
  12. package/dist/esm/user-picker/user-picker-team-data.js +24 -0
  13. package/dist/esm/version.json +1 -1
  14. package/dist/types/json-data/user-picker-data.json +9 -0
  15. package/dist/types/user-picker/index.d.ts +3 -1
  16. package/dist/types/user-picker/user-picker-team-data.d.ts +2 -0
  17. package/dist/types-ts4.0/emoji/emoji-from-upload.d.ts +17 -0
  18. package/dist/types-ts4.0/emoji/emoji-repository-usage-clear.d.ts +7 -0
  19. package/dist/types-ts4.0/emoji/emoji-resource-usage-clear.d.ts +6 -0
  20. package/dist/types-ts4.0/emoji/get-atlassian-emoji-data.d.ts +2 -0
  21. package/dist/types-ts4.0/emoji/get-atlassian-emojis.d.ts +1 -0
  22. package/dist/types-ts4.0/emoji/get-emoji-provider.d.ts +9 -0
  23. package/dist/types-ts4.0/emoji/get-emoji-repository.d.ts +1 -0
  24. package/dist/types-ts4.0/emoji/get-emoji-resource-standard-atlassian.d.ts +2 -0
  25. package/dist/types-ts4.0/emoji/get-emoji-resource-usage-clear.d.ts +2 -0
  26. package/dist/types-ts4.0/emoji/get-emoji-resource.d.ts +2 -0
  27. package/dist/types-ts4.0/emoji/get-emojis.d.ts +1 -0
  28. package/dist/types-ts4.0/emoji/get-site-emoji-data.d.ts +2 -0
  29. package/dist/types-ts4.0/emoji/get-site-emojis.d.ts +1 -0
  30. package/dist/types-ts4.0/emoji/get-standard-emoji-data.d.ts +2 -0
  31. package/dist/types-ts4.0/emoji/get-standard-emojis.d.ts +1 -0
  32. package/dist/types-ts4.0/emoji/image-emoji.d.ts +19 -0
  33. package/dist/types-ts4.0/emoji/logged-user.d.ts +1 -0
  34. package/dist/types-ts4.0/emoji/lorem.d.ts +1 -0
  35. package/dist/types-ts4.0/emoji/mock-emoji-resource-factory.d.ts +3 -0
  36. package/dist/types-ts4.0/emoji/mock-emoji-resource.d.ts +20 -0
  37. package/dist/types-ts4.0/emoji/mock-non-uploading-emoji-resource-factory.d.ts +3 -0
  38. package/dist/types-ts4.0/emoji/mock-non-uploading-emoji-resource.d.ts +32 -0
  39. package/dist/types-ts4.0/emoji/site-emoji-foo.d.ts +17 -0
  40. package/dist/types-ts4.0/emoji/site-emoji-wtf.d.ts +17 -0
  41. package/dist/types-ts4.0/emoji/sprite-emoji.d.ts +24 -0
  42. package/dist/types-ts4.0/emoji/types.d.ts +15 -0
  43. package/dist/types-ts4.0/emoji-constants/index.d.ts +6 -0
  44. package/dist/types-ts4.0/emoji-test/emoji-samples.d.ts +10 -0
  45. package/dist/types-ts4.0/emoji-test/expires-at.d.ts +1 -0
  46. package/dist/types-ts4.0/emoji-test/filter-to-searchable.d.ts +2 -0
  47. package/dist/types-ts4.0/emoji-test/get-non-uploading-emoji-resource.d.ts +2 -0
  48. package/dist/types-ts4.0/emoji-test/get-test-atlassian-emojis.d.ts +1 -0
  49. package/dist/types-ts4.0/emoji-test/get-test-atlassian-service-emojis.d.ts +1 -0
  50. package/dist/types-ts4.0/emoji-test/get-test-emoji-repository.d.ts +1 -0
  51. package/dist/types-ts4.0/emoji-test/get-test-emoji-resource-from-repository.d.ts +3 -0
  52. package/dist/types-ts4.0/emoji-test/get-test-emoji-resource-non-uploading.d.ts +2 -0
  53. package/dist/types-ts4.0/emoji-test/get-test-emoji-resource.d.ts +2 -0
  54. package/dist/types-ts4.0/emoji-test/get-test-emojis.d.ts +21 -0
  55. package/dist/types-ts4.0/emoji-test/get-test-image-emoji.d.ts +19 -0
  56. package/dist/types-ts4.0/emoji-test/get-test-media-api-token.d.ts +7 -0
  57. package/dist/types-ts4.0/emoji-test/get-test-searchable-emojis.d.ts +1 -0
  58. package/dist/types-ts4.0/emoji-test/get-test-site-emoji-foo.d.ts +17 -0
  59. package/dist/types-ts4.0/emoji-test/get-test-site-emoji-repository.d.ts +1 -0
  60. package/dist/types-ts4.0/emoji-test/get-test-site-emoji-wtf.d.ts +17 -0
  61. package/dist/types-ts4.0/emoji-test/get-test-site-emojis.d.ts +32 -0
  62. package/dist/types-ts4.0/emoji-test/get-test-site-service-emojis.d.ts +33 -0
  63. package/dist/types-ts4.0/emoji-test/get-test-sprite-emoji.d.ts +24 -0
  64. package/dist/types-ts4.0/emoji-test/get-test-standard-emojis.d.ts +1 -0
  65. package/dist/types-ts4.0/emoji-test/get-test-standard-service-emojis.d.ts +1 -0
  66. package/dist/types-ts4.0/emoji-test/media-emoji.d.ts +26 -0
  67. package/dist/types-ts4.0/emoji-test/media-service-emoji.d.ts +22 -0
  68. package/dist/types-ts4.0/emoji-test/test-emoji-repository.d.ts +5 -0
  69. package/dist/types-ts4.0/json-data/emoji-all.json +54398 -0
  70. package/dist/types-ts4.0/json-data/mention-data.json +393 -0
  71. package/dist/types-ts4.0/json-data/presence-invalid-info.json +47 -0
  72. package/dist/types-ts4.0/json-data/presence-valid-info.json +63 -0
  73. package/dist/types-ts4.0/json-data/sample-tasks.json +80 -0
  74. package/dist/types-ts4.0/json-data/service-data-atlassian.json +272 -0
  75. package/dist/types-ts4.0/json-data/service-data-standard.json +54098 -0
  76. package/dist/types-ts4.0/json-data/slack-conversations-data.json +476 -0
  77. package/dist/types-ts4.0/json-data/slack-workspaces-data.json +19 -0
  78. package/dist/types-ts4.0/json-data/test-emoji-atlassian.json +224 -0
  79. package/dist/types-ts4.0/json-data/test-emoji-standard.json +2000 -0
  80. package/dist/types-ts4.0/json-data/user-picker-data.json +361 -0
  81. package/dist/types-ts4.0/logger.d.ts +4 -0
  82. package/dist/types-ts4.0/mention/create-mock-mention-name-resolver.d.ts +2 -0
  83. package/dist/types-ts4.0/mention/mention-story-data.d.ts +133 -0
  84. package/dist/types-ts4.0/mention/mention-test-data.d.ts +3 -0
  85. package/dist/types-ts4.0/mention/mock-mention-name-client.d.ts +6 -0
  86. package/dist/types-ts4.0/mention/mock-mention-resource-with-info-hints.d.ts +10 -0
  87. package/dist/types-ts4.0/mention/mock-mention-resource.d.ts +32 -0
  88. package/dist/types-ts4.0/mention/mock-presence-resource.d.ts +11 -0
  89. package/dist/types-ts4.0/mention/presence-data.d.ts +16 -0
  90. package/dist/types-ts4.0/mention/utils.d.ts +7 -0
  91. package/dist/types-ts4.0/profilecard/get-mock-profilecard-client.d.ts +3 -0
  92. package/dist/types-ts4.0/profilecard/profilecard-data.d.ts +31 -0
  93. package/dist/types-ts4.0/profilecard/util.d.ts +6 -0
  94. package/dist/types-ts4.0/slack-data/index.d.ts +3 -0
  95. package/dist/types-ts4.0/slack-data/slack-conversations-data.d.ts +2 -0
  96. package/dist/types-ts4.0/slack-data/slack-workspaces-data.d.ts +2 -0
  97. package/dist/types-ts4.0/task-decision/mock-task-decision-resource.d.ts +23 -0
  98. package/dist/types-ts4.0/task-decision/task-decision-story-data.d.ts +50 -0
  99. package/dist/types-ts4.0/task-decision/utils.d.ts +4 -0
  100. package/dist/types-ts4.0/user-picker/index.d.ts +3 -0
  101. package/dist/types-ts4.0/user-picker/user-picker-data.d.ts +1 -0
  102. package/dist/types-ts4.0/user-picker/user-picker-team-data.d.ts +2 -0
  103. package/emoji-constants/package.json +8 -1
  104. package/emoji-samples/package.json +8 -1
  105. package/emoji-types/package.json +8 -1
  106. package/filter-to-searchable/package.json +8 -1
  107. package/get-atlassian-emojis/package.json +8 -1
  108. package/get-emoji-provider/package.json +8 -1
  109. package/get-emoji-repository/package.json +8 -1
  110. package/get-emoji-resource/package.json +8 -1
  111. package/get-emoji-resource-standard-atlassian/package.json +8 -1
  112. package/get-emoji-resource-usage-clear/package.json +8 -1
  113. package/get-emojis/package.json +8 -1
  114. package/get-mock-profilecard-client/package.json +8 -1
  115. package/get-standard-emojis/package.json +8 -1
  116. package/get-test-atlassian-emojis/package.json +8 -1
  117. package/get-test-atlassian-service-emojis/package.json +8 -1
  118. package/get-test-emoji-repository/package.json +8 -1
  119. package/get-test-emoji-resource/package.json +8 -1
  120. package/get-test-emoji-resource-from-repository/package.json +8 -1
  121. package/get-test-emoji-resource-non-uploading/package.json +8 -1
  122. package/get-test-emojis/package.json +8 -1
  123. package/get-test-image-emoji/package.json +8 -1
  124. package/get-test-searchable-emojis/package.json +8 -1
  125. package/get-test-site-emoji-foo/package.json +8 -1
  126. package/get-test-site-emoji-repository/package.json +8 -1
  127. package/get-test-site-emoji-wtf/package.json +8 -1
  128. package/get-test-site-emojis/package.json +8 -1
  129. package/get-test-site-service-emojis/package.json +8 -1
  130. package/get-test-sprite-emoji/package.json +8 -1
  131. package/get-test-standard-emojis/package.json +8 -1
  132. package/get-test-standard-service-emojis/package.json +8 -1
  133. package/logged-user/package.json +8 -1
  134. package/logger/package.json +8 -1
  135. package/media-emoji/package.json +8 -1
  136. package/media-service-emoji/package.json +8 -1
  137. package/mention-story-data/package.json +8 -1
  138. package/mention-test-data/package.json +8 -1
  139. package/mock-emoji-resource/package.json +8 -1
  140. package/mock-mention-resource/package.json +8 -1
  141. package/mock-non-uploading-emoji-resource-factory/package.json +8 -1
  142. package/mock-presence-resource/package.json +8 -1
  143. package/package.json +13 -3
  144. package/presence-data/package.json +8 -1
  145. package/profilecard-data/package.json +8 -1
  146. package/slack-data/package.json +8 -1
  147. package/task-decision-story-data/package.json +8 -1
  148. package/user-picker/package.json +14 -0
  149. package/user-picker-data/package.json +8 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/util-data-test
2
2
 
3
+ ## 17.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
8
+
9
+ ## 17.5.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`b7ec6e38528`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7ec6e38528) - Adding extra user-picker data and team data
14
+ - Updated dependencies
15
+
3
16
  ## 17.5.3
4
17
 
5
18
  ### Patch Changes
@@ -280,6 +280,15 @@
280
280
  "memberCount": 35,
281
281
  "includesYou": false
282
282
  },
283
+ {
284
+ "id": "team-9",
285
+ "name": "Team with custom byline",
286
+ "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/6.svg",
287
+ "type": "team",
288
+ "fixed": false,
289
+ "description": "This team has a custom byline which is not reliant on memberCount and includesYou props",
290
+ "byline": "A custom byline"
291
+ },
283
292
  {
284
293
  "id": "group-1",
285
294
  "name": "admin-groups-group",
@@ -9,5 +9,13 @@ Object.defineProperty(exports, "userPickerData", {
9
9
  return _userPickerData.userPickerData;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "userPickerTeamData", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _userPickerTeamData.userPickerTeamData;
16
+ }
17
+ });
18
+
19
+ var _userPickerData = require("./user-picker-data");
12
20
 
13
- var _userPickerData = require("./user-picker-data");
21
+ var _userPickerTeamData = require("./user-picker-team-data");
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.userPickerTeamData = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
13
+
14
+ var userPickerTeamData = [{
15
+ id: 'team-custom-icon',
16
+ name: 'Team with custom icon',
17
+ type: 'team',
18
+ fixed: false,
19
+ description: 'This team has a custom icon',
20
+ lozenge: /*#__PURE__*/_react.default.createElement(_chevronRight.default, {
21
+ label: "chevron right",
22
+ size: "large"
23
+ })
24
+ }, {
25
+ id: 'team-custom-icon-and-byline',
26
+ name: 'Team with custom icon and byline',
27
+ type: 'team',
28
+ fixed: false,
29
+ description: 'This team has a custom icon and byline which is not reliant on memberCount and includesYou props',
30
+ byline: 'Select team members',
31
+ lozenge: /*#__PURE__*/_react.default.createElement(_chevronRight.default, {
32
+ label: "chevron right",
33
+ size: "large"
34
+ })
35
+ }];
36
+ exports.userPickerTeamData = userPickerTeamData;
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.5.3"
3
+ "version": "17.5.5"
4
4
  }
@@ -280,6 +280,15 @@
280
280
  "memberCount": 35,
281
281
  "includesYou": false
282
282
  },
283
+ {
284
+ "id": "team-9",
285
+ "name": "Team with custom byline",
286
+ "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/6.svg",
287
+ "type": "team",
288
+ "fixed": false,
289
+ "description": "This team has a custom byline which is not reliant on memberCount and includesYou props",
290
+ "byline": "A custom byline"
291
+ },
283
292
  {
284
293
  "id": "group-1",
285
294
  "name": "admin-groups-group",
@@ -1 +1,3 @@
1
- export { userPickerData } from './user-picker-data';
1
+ import { userPickerData } from './user-picker-data';
2
+ import { userPickerTeamData } from './user-picker-team-data';
3
+ export { userPickerData, userPickerTeamData };
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
3
+ export const userPickerTeamData = [{
4
+ id: 'team-custom-icon',
5
+ name: 'Team with custom icon',
6
+ type: 'team',
7
+ fixed: false,
8
+ description: 'This team has a custom icon',
9
+ lozenge: /*#__PURE__*/React.createElement(ChevronRightIcon, {
10
+ label: "chevron right",
11
+ size: "large"
12
+ })
13
+ }, {
14
+ id: 'team-custom-icon-and-byline',
15
+ name: 'Team with custom icon and byline',
16
+ type: 'team',
17
+ fixed: false,
18
+ description: 'This team has a custom icon and byline which is not reliant on memberCount and includesYou props',
19
+ byline: 'Select team members',
20
+ lozenge: /*#__PURE__*/React.createElement(ChevronRightIcon, {
21
+ label: "chevron right",
22
+ size: "large"
23
+ })
24
+ }];
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.5.3"
3
+ "version": "17.5.5"
4
4
  }
@@ -280,6 +280,15 @@
280
280
  "memberCount": 35,
281
281
  "includesYou": false
282
282
  },
283
+ {
284
+ "id": "team-9",
285
+ "name": "Team with custom byline",
286
+ "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/6.svg",
287
+ "type": "team",
288
+ "fixed": false,
289
+ "description": "This team has a custom byline which is not reliant on memberCount and includesYou props",
290
+ "byline": "A custom byline"
291
+ },
283
292
  {
284
293
  "id": "group-1",
285
294
  "name": "admin-groups-group",
@@ -1 +1,3 @@
1
- export { userPickerData } from './user-picker-data';
1
+ import { userPickerData } from './user-picker-data';
2
+ import { userPickerTeamData } from './user-picker-team-data';
3
+ export { userPickerData, userPickerTeamData };
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
3
+ export var userPickerTeamData = [{
4
+ id: 'team-custom-icon',
5
+ name: 'Team with custom icon',
6
+ type: 'team',
7
+ fixed: false,
8
+ description: 'This team has a custom icon',
9
+ lozenge: /*#__PURE__*/React.createElement(ChevronRightIcon, {
10
+ label: "chevron right",
11
+ size: "large"
12
+ })
13
+ }, {
14
+ id: 'team-custom-icon-and-byline',
15
+ name: 'Team with custom icon and byline',
16
+ type: 'team',
17
+ fixed: false,
18
+ description: 'This team has a custom icon and byline which is not reliant on memberCount and includesYou props',
19
+ byline: 'Select team members',
20
+ lozenge: /*#__PURE__*/React.createElement(ChevronRightIcon, {
21
+ label: "chevron right",
22
+ size: "large"
23
+ })
24
+ }];
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.5.3"
3
+ "version": "17.5.5"
4
4
  }
@@ -280,6 +280,15 @@
280
280
  "memberCount": 35,
281
281
  "includesYou": false
282
282
  },
283
+ {
284
+ "id": "team-9",
285
+ "name": "Team with custom byline",
286
+ "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/6.svg",
287
+ "type": "team",
288
+ "fixed": false,
289
+ "description": "This team has a custom byline which is not reliant on memberCount and includesYou props",
290
+ "byline": "A custom byline"
291
+ },
283
292
  {
284
293
  "id": "group-1",
285
294
  "name": "admin-groups-group",
@@ -1 +1,3 @@
1
- export { userPickerData } from './user-picker-data';
1
+ import { userPickerData } from './user-picker-data';
2
+ import { userPickerTeamData } from './user-picker-team-data';
3
+ export { userPickerData, userPickerTeamData };
@@ -0,0 +1,2 @@
1
+ import { Team } from '@atlaskit/user-picker';
2
+ export declare const userPickerTeamData: Team[];
@@ -0,0 +1,17 @@
1
+ import { EmojiUpload } from '@atlaskit/emoji/types';
2
+ export declare const emojiFromUpload: (upload: EmojiUpload) => {
3
+ id: any;
4
+ shortName: string;
5
+ name: string;
6
+ fallback: string;
7
+ type: string;
8
+ category: string;
9
+ order: number;
10
+ creatorUserId: string;
11
+ representation: {
12
+ width: number;
13
+ height: number;
14
+ imagePath: string;
15
+ };
16
+ searchable: boolean;
17
+ };
@@ -0,0 +1,7 @@
1
+ import { EmojiRepository } from '@atlaskit/emoji/resource';
2
+ import { EmojiDescription } from '@atlaskit/emoji/types';
3
+ export declare const isUsageClearEmojiRepository: (object: any) => object is EmojiRepositoryUsageClear;
4
+ export declare class EmojiRepositoryUsageClear extends EmojiRepository {
5
+ constructor(emojis: EmojiDescription[]);
6
+ clear(): void;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { EmojiDescription } from '@atlaskit/emoji/types';
2
+ import { MockNonUploadingEmojiResource } from './mock-non-uploading-emoji-resource';
3
+ export declare class EmojiResourceUsageClear extends MockNonUploadingEmojiResource {
4
+ constructor(emojis: EmojiDescription[]);
5
+ clearFrequentlyUsed(): void;
6
+ }
@@ -0,0 +1,2 @@
1
+ import { EmojiServiceResponse } from '@atlaskit/emoji/types';
2
+ export declare const getAtlassianEmojiData: () => EmojiServiceResponse;
@@ -0,0 +1 @@
1
+ export declare const getAtlassianEmojis: import("memoize-one").MemoizedFn<() => import("@atlaskit/emoji").EmojiDescriptionWithVariations[]>;
@@ -0,0 +1,9 @@
1
+ import type { EmojiProvider, EmojiServiceResponse } from '@atlaskit/emoji/types';
2
+ import { MockEmojiResourceConfig } from './types';
3
+ declare type DataFetch = () => Promise<EmojiServiceResponse>;
4
+ export declare const currentUser: {
5
+ id: string;
6
+ };
7
+ export declare const defaultFetch: () => Promise<any>;
8
+ export declare const getEmojiProvider: (config?: MockEmojiResourceConfig | undefined, fn?: DataFetch) => Promise<EmojiProvider>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare const getEmojiRepository: () => any;
@@ -0,0 +1,2 @@
1
+ import { MockEmojiResourceConfig } from './types';
2
+ export declare const getEmojiResourceWithStandardAndAtlassianEmojis: (config?: MockEmojiResourceConfig | undefined) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ import { EmojiResourceUsageClear } from './emoji-resource-usage-clear';
2
+ export declare const getEmojiResourceUsageClear: () => EmojiResourceUsageClear;
@@ -0,0 +1,2 @@
1
+ import { MockEmojiResourceConfig } from './types';
2
+ export declare const getEmojiResource: (config?: MockEmojiResourceConfig | undefined) => Promise<any>;
@@ -0,0 +1 @@
1
+ export declare const getEmojis: () => import("@atlaskit/emoji").EmojiDescriptionWithVariations[];
@@ -0,0 +1,2 @@
1
+ import { EmojiServiceResponse } from '@atlaskit/emoji/types';
2
+ export declare const getSiteEmojiData: () => EmojiServiceResponse;
@@ -0,0 +1 @@
1
+ export declare const getSiteEmojis: import("memoize-one").MemoizedFn<() => import("@atlaskit/emoji").EmojiDescriptionWithVariations[]>;
@@ -0,0 +1,2 @@
1
+ import { EmojiServiceResponse } from '@atlaskit/emoji/types';
2
+ export declare const getStandardEmojiData: () => EmojiServiceResponse;
@@ -0,0 +1 @@
1
+ export declare const getStandardEmojis: import("memoize-one").MemoizedFn<() => import("@atlaskit/emoji").EmojiDescriptionWithVariations[]>;
@@ -0,0 +1,19 @@
1
+ export declare const imageEmoji: {
2
+ id: string;
3
+ shortName: string;
4
+ name: string;
5
+ type: string;
6
+ category: string;
7
+ order: number;
8
+ representation: {
9
+ imagePath: string;
10
+ width: number;
11
+ height: number;
12
+ };
13
+ altRepresentation: {
14
+ imagePath: string;
15
+ width: number;
16
+ height: number;
17
+ };
18
+ searchable: boolean;
19
+ };
@@ -0,0 +1 @@
1
+ export declare const loggedUser = "blackpanther";
@@ -0,0 +1 @@
1
+ export declare const lorem = "\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt,\n lorem eu vestibulum sollicitudin, erat nibh ornare purus, et sollicitudin lorem\n felis nec erat. Quisque quis ligula nisi. Cras nec dui vestibulum, pretium massa ut,\n egestas turpis. Quisque finibus eget justo a mollis. Mauris quis varius nisl. Donec\n aliquet enim vel eros suscipit porta. Vivamus quis molestie leo. In feugiat felis mi,\n ac varius odio accumsan ac. Pellentesque habitant morbi tristique senectus et netus et\n malesuada fames ac turpis egestas. Mauris elementum mauris ac leo porta venenatis.\n Integer hendrerit lacus vel faucibus sagittis. Mauris elit urna, tincidunt at aliquet\n sit amet, convallis placerat diam. Mauris id aliquet elit, non posuere nibh. Curabitur\n ullamcorper lectus mi, quis varius libero ultricies nec. Quisque tempus neque ligula,\n a semper massa dignissim nec.\n";
@@ -0,0 +1,3 @@
1
+ import { EmojiRepository } from '@atlaskit/emoji/resource';
2
+ import { MockEmojiResourceConfig, PromiseBuilder } from './types';
3
+ export declare const mockEmojiResourceFactory: (emojiRepository: EmojiRepository, config?: MockEmojiResourceConfig | undefined, promiseBuilder?: PromiseBuilder<any> | undefined) => Promise<any>;
@@ -0,0 +1,20 @@
1
+ import { UploadingEmojiProvider, EmojiRepository } from '@atlaskit/emoji/resource';
2
+ import { EmojiDescription, EmojiId, EmojiUpload, OptionalEmojiDescriptionWithVariations } from '@atlaskit/emoji/types';
3
+ import { MockNonUploadingEmojiResource } from './mock-non-uploading-emoji-resource';
4
+ import { MockEmojiResourceConfig, UploadDetail } from './types';
5
+ export declare class MockEmojiResource extends MockNonUploadingEmojiResource implements UploadingEmojiProvider {
6
+ private uploads;
7
+ private uploadSupported;
8
+ private uploadError?;
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;
14
+ isUploadSupported(): Promise<boolean>;
15
+ uploadCustomEmoji(upload: EmojiUpload): Promise<any>;
16
+ getUploads(): UploadDetail[];
17
+ prepareForUpload(): Promise<void>;
18
+ notifyNotReady(): void;
19
+ loadMediaEmoji(emoji: EmojiDescription): EmojiDescription | Promise<any>;
20
+ }
@@ -0,0 +1,3 @@
1
+ import { EmojiRepository } from '@atlaskit/emoji/resource';
2
+ import { MockEmojiResourceConfig, PromiseBuilder } from './types';
3
+ export declare const mockNonUploadingEmojiResourceFactory: (emojiRepository: EmojiRepository, config?: MockEmojiResourceConfig | undefined, promiseBuilder?: PromiseBuilder<any> | undefined) => Promise<any>;
@@ -0,0 +1,32 @@
1
+ import { AbstractResource } from '@atlaskit/util-service-support';
2
+ import { EmojiProvider, EmojiRepository } from '@atlaskit/emoji/resource';
3
+ import { EmojiDescription, EmojiId, EmojiSearchResult, OptionalEmojiDescription, SearchOptions, ToneSelection, User, OptionalUser, CategoryId } from '@atlaskit/emoji/types';
4
+ import { MockEmojiResourceConfig, PromiseBuilder } from './types';
5
+ export declare class MockNonUploadingEmojiResource extends AbstractResource<string, EmojiSearchResult, any, undefined, SearchOptions> implements EmojiProvider {
6
+ protected emojiRepository: EmojiRepository;
7
+ protected promiseBuilder: PromiseBuilder<any>;
8
+ protected lastQuery: string;
9
+ protected selectedTone: ToneSelection;
10
+ protected optimisticRendering?: boolean;
11
+ protected currentUser?: User;
12
+ recordedSelections: EmojiDescription[];
13
+ constructor(emojiService: EmojiRepository, config?: MockEmojiResourceConfig);
14
+ fetchEmojiProvider(force?: boolean): Promise<EmojiRepository | undefined>;
15
+ getOptimisticImageURL(emojiId: EmojiId): string;
16
+ getCurrentUser(): OptionalUser;
17
+ filter(query?: string, options?: SearchOptions): void;
18
+ findByShortName(shortName: string): Promise<OptionalEmojiDescription>;
19
+ findByEmojiId(emojiId: EmojiId): Promise<OptionalEmojiDescription> | OptionalEmojiDescription;
20
+ findById(id: string): Promise<OptionalEmojiDescription>;
21
+ findInCategory(categoryId: CategoryId): Promise<EmojiDescription[]>;
22
+ getAsciiMap(): Promise<Map<string, EmojiDescription>>;
23
+ getFrequentlyUsed(options?: SearchOptions): Promise<EmojiDescription[]>;
24
+ getMediaEmojiDescriptionURLWithInlineToken(emoji: EmojiDescription): Promise<EmojiDescription>;
25
+ recordSelection?(emoji: EmojiDescription): Promise<any>;
26
+ deleteSiteEmoji(emoji: EmojiDescription): Promise<boolean>;
27
+ loadMediaEmoji(emoji: EmojiDescription): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
28
+ optimisticMediaRendering(emoji: EmojiDescription): boolean;
29
+ getSelectedTone(): ToneSelection;
30
+ setSelectedTone(tone: ToneSelection): void;
31
+ calculateDynamicCategories(): Promise<string[]>;
32
+ }
@@ -0,0 +1,17 @@
1
+ export declare const siteEmojiFoo: {
2
+ id: string;
3
+ name: string;
4
+ fallback: string;
5
+ type: string;
6
+ category: string;
7
+ order: number;
8
+ searchable: boolean;
9
+ shortName: string;
10
+ creatorUserId: string;
11
+ representation: {
12
+ height: number;
13
+ width: number;
14
+ imagePath: string;
15
+ };
16
+ skinVariations: never[];
17
+ };
@@ -0,0 +1,17 @@
1
+ export declare const siteEmojiWtf: {
2
+ id: string;
3
+ name: string;
4
+ fallback: string;
5
+ type: string;
6
+ category: string;
7
+ order: number;
8
+ searchable: boolean;
9
+ shortName: string;
10
+ creatorUserId: string;
11
+ representation: {
12
+ height: number;
13
+ width: number;
14
+ imagePath: string;
15
+ };
16
+ skinVariations: never[];
17
+ };
@@ -0,0 +1,24 @@
1
+ export declare const spriteEmoji: {
2
+ id: string;
3
+ shortName: string;
4
+ name: string;
5
+ type: string;
6
+ category: string;
7
+ order: number;
8
+ representation: {
9
+ sprite: {
10
+ url: string;
11
+ row: number;
12
+ column: number;
13
+ height: number;
14
+ width: number;
15
+ };
16
+ xIndex: number;
17
+ yIndex: number;
18
+ x: number;
19
+ y: number;
20
+ height: number;
21
+ width: number;
22
+ };
23
+ searchable: boolean;
24
+ };
@@ -0,0 +1,15 @@
1
+ import type { EmojiUpload, EmojiDescription, User } from '@atlaskit/emoji/types';
2
+ export interface PromiseBuilder<R> {
3
+ (result: R, context: string): Promise<R>;
4
+ }
5
+ export interface UploadDetail {
6
+ upload: EmojiUpload;
7
+ emoji: EmojiDescription;
8
+ }
9
+ export interface MockEmojiResourceConfig {
10
+ promiseBuilder?: PromiseBuilder<any>;
11
+ uploadSupported?: boolean;
12
+ uploadError?: string;
13
+ optimisticRendering?: boolean;
14
+ currentUser?: User;
15
+ }
@@ -0,0 +1,6 @@
1
+ export declare const customType = "SITE";
2
+ export declare const customCategory = "CUSTOM";
3
+ export declare const selectedToneStorageKey = "fabric.emoji.selectedTone";
4
+ export declare const mediaBaseUrl = "https://media.example.com/";
5
+ export declare const mediaEmojiImagePath: string;
6
+ export declare const mediaEmojiAlternateImagePath: string;
@@ -0,0 +1,10 @@
1
+ export declare const smileyEmoji: () => any;
2
+ export declare const openMouthEmoji: () => any;
3
+ export declare const grinEmoji: () => any;
4
+ export declare const evilburnsEmoji: () => any;
5
+ export declare const thumbsupEmoji: () => any;
6
+ export declare const thumbsdownEmoji: () => any;
7
+ export declare const standardBoomEmoji: () => any;
8
+ export declare const atlassianBoomEmoji: () => any;
9
+ export declare const blackFlagEmoji: () => any;
10
+ export declare const congoFlagEmoji: () => any;
@@ -0,0 +1 @@
1
+ export declare const expiresAt: (offsetSeconds?: number) => number;
@@ -0,0 +1,2 @@
1
+ import { EmojiDescription } from '@atlaskit/emoji/types';
2
+ export declare const filterToSearchable: (emojis: EmojiDescription[]) => EmojiDescription[];
@@ -0,0 +1,2 @@
1
+ import { MockEmojiResourceConfig } from '../emoji/types';
2
+ export declare const getNonUploadingEmojiResource: (config?: MockEmojiResourceConfig | undefined) => Promise<any>;
@@ -0,0 +1 @@
1
+ export declare const getTestAtlassianEmojis: () => any;
@@ -0,0 +1 @@
1
+ export declare const getTestAtlassianServiceEmojis: () => any;
@@ -0,0 +1 @@
1
+ export declare const getTestEmojiRepository: () => any;
@@ -0,0 +1,3 @@
1
+ import { EmojiRepository } from '@atlaskit/emoji/resource';
2
+ import { MockEmojiResourceConfig } from '../emoji/types';
3
+ export declare const getTestEmojiResourceFromRepository: (repo: EmojiRepository, config?: MockEmojiResourceConfig | undefined) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ import { MockEmojiResourceConfig } from '../emoji/types';
2
+ export declare const getTestEmojiResourceNonUploading: (config?: MockEmojiResourceConfig | undefined) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ import { MockEmojiResourceConfig } from '../emoji/types';
2
+ export declare const getTestEmojiResource: (config?: MockEmojiResourceConfig | undefined) => Promise<any>;
@@ -0,0 +1,21 @@
1
+ export declare const getTestEmojis: () => (import("@atlaskit/emoji").EmojiDescriptionWithVariations | {
2
+ name: string;
3
+ type: string;
4
+ category: string;
5
+ order: number;
6
+ representation: {
7
+ mediaPath: string;
8
+ width: number;
9
+ height: number;
10
+ };
11
+ altRepresentation: {
12
+ mediaPath: string;
13
+ width: number;
14
+ height: number;
15
+ };
16
+ skinVariations: never[];
17
+ searchable: boolean;
18
+ id: string;
19
+ shortName: string;
20
+ fallback: string;
21
+ })[];
@@ -0,0 +1,19 @@
1
+ export declare const getTestImageEmoji: () => {
2
+ id: string;
3
+ shortName: string;
4
+ name: string;
5
+ type: string;
6
+ category: string;
7
+ order: number;
8
+ representation: {
9
+ imagePath: string;
10
+ width: number;
11
+ height: number;
12
+ };
13
+ altRepresentation: {
14
+ imagePath: string;
15
+ width: number;
16
+ height: number;
17
+ };
18
+ searchable: boolean;
19
+ };
@@ -0,0 +1,7 @@
1
+ export declare const getTestMediaApiToken: () => {
2
+ url: string;
3
+ clientId: string;
4
+ jwt: string;
5
+ collectionName: string;
6
+ expiresAt: number;
7
+ };
@@ -0,0 +1 @@
1
+ export declare const getTestSearchableEmojis: () => import("@atlaskit/emoji").EmojiDescription[];
@@ -0,0 +1,17 @@
1
+ export declare const getTestSiteEmojiFoo: () => {
2
+ id: string;
3
+ name: string;
4
+ fallback: string;
5
+ type: string;
6
+ category: string;
7
+ order: number;
8
+ searchable: boolean;
9
+ shortName: string;
10
+ creatorUserId: string;
11
+ representation: {
12
+ height: number;
13
+ width: number;
14
+ imagePath: string;
15
+ };
16
+ skinVariations: never[];
17
+ };
@@ -0,0 +1 @@
1
+ export declare const getTestSiteEmojiRepository: () => any;