@atlaskit/util-data-test 17.6.0 → 17.6.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.
Files changed (97) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/user-picker/ChevronRight.js +4 -4
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/user-picker/ChevronRight.js +1 -1
  5. package/dist/es2019/version.json +1 -1
  6. package/dist/esm/user-picker/ChevronRight.js +1 -1
  7. package/dist/esm/version.json +1 -1
  8. package/dist/types/user-picker/ChevronRight.d.ts +2 -2
  9. package/package.json +4 -12
  10. package/dist/types-ts4.0/emoji/emoji-from-upload.d.ts +0 -17
  11. package/dist/types-ts4.0/emoji/emoji-repository-usage-clear.d.ts +0 -7
  12. package/dist/types-ts4.0/emoji/emoji-resource-usage-clear.d.ts +0 -6
  13. package/dist/types-ts4.0/emoji/get-atlassian-emoji-data.d.ts +0 -2
  14. package/dist/types-ts4.0/emoji/get-atlassian-emojis.d.ts +0 -1
  15. package/dist/types-ts4.0/emoji/get-emoji-provider.d.ts +0 -9
  16. package/dist/types-ts4.0/emoji/get-emoji-repository.d.ts +0 -1
  17. package/dist/types-ts4.0/emoji/get-emoji-resource-standard-atlassian.d.ts +0 -2
  18. package/dist/types-ts4.0/emoji/get-emoji-resource-usage-clear.d.ts +0 -2
  19. package/dist/types-ts4.0/emoji/get-emoji-resource.d.ts +0 -2
  20. package/dist/types-ts4.0/emoji/get-emojis.d.ts +0 -1
  21. package/dist/types-ts4.0/emoji/get-site-emoji-data.d.ts +0 -2
  22. package/dist/types-ts4.0/emoji/get-site-emojis.d.ts +0 -1
  23. package/dist/types-ts4.0/emoji/get-standard-emoji-data.d.ts +0 -2
  24. package/dist/types-ts4.0/emoji/get-standard-emojis.d.ts +0 -1
  25. package/dist/types-ts4.0/emoji/image-emoji.d.ts +0 -19
  26. package/dist/types-ts4.0/emoji/logged-user.d.ts +0 -1
  27. package/dist/types-ts4.0/emoji/lorem.d.ts +0 -1
  28. package/dist/types-ts4.0/emoji/mock-emoji-resource-factory.d.ts +0 -3
  29. package/dist/types-ts4.0/emoji/mock-emoji-resource.d.ts +0 -20
  30. package/dist/types-ts4.0/emoji/mock-non-uploading-emoji-resource-factory.d.ts +0 -3
  31. package/dist/types-ts4.0/emoji/mock-non-uploading-emoji-resource.d.ts +0 -33
  32. package/dist/types-ts4.0/emoji/site-emoji-foo.d.ts +0 -17
  33. package/dist/types-ts4.0/emoji/site-emoji-wtf.d.ts +0 -17
  34. package/dist/types-ts4.0/emoji/sprite-emoji.d.ts +0 -24
  35. package/dist/types-ts4.0/emoji/types.d.ts +0 -15
  36. package/dist/types-ts4.0/emoji-constants/index.d.ts +0 -6
  37. package/dist/types-ts4.0/emoji-test/emoji-samples.d.ts +0 -10
  38. package/dist/types-ts4.0/emoji-test/expires-at.d.ts +0 -1
  39. package/dist/types-ts4.0/emoji-test/filter-to-searchable.d.ts +0 -2
  40. package/dist/types-ts4.0/emoji-test/get-non-uploading-emoji-resource.d.ts +0 -2
  41. package/dist/types-ts4.0/emoji-test/get-test-atlassian-emojis.d.ts +0 -1
  42. package/dist/types-ts4.0/emoji-test/get-test-atlassian-service-emojis.d.ts +0 -1
  43. package/dist/types-ts4.0/emoji-test/get-test-emoji-repository.d.ts +0 -1
  44. package/dist/types-ts4.0/emoji-test/get-test-emoji-resource-from-repository.d.ts +0 -3
  45. package/dist/types-ts4.0/emoji-test/get-test-emoji-resource-non-uploading.d.ts +0 -2
  46. package/dist/types-ts4.0/emoji-test/get-test-emoji-resource.d.ts +0 -2
  47. package/dist/types-ts4.0/emoji-test/get-test-emojis.d.ts +0 -21
  48. package/dist/types-ts4.0/emoji-test/get-test-image-emoji.d.ts +0 -19
  49. package/dist/types-ts4.0/emoji-test/get-test-media-api-token.d.ts +0 -7
  50. package/dist/types-ts4.0/emoji-test/get-test-searchable-emojis.d.ts +0 -1
  51. package/dist/types-ts4.0/emoji-test/get-test-site-emoji-foo.d.ts +0 -17
  52. package/dist/types-ts4.0/emoji-test/get-test-site-emoji-repository.d.ts +0 -1
  53. package/dist/types-ts4.0/emoji-test/get-test-site-emoji-wtf.d.ts +0 -17
  54. package/dist/types-ts4.0/emoji-test/get-test-site-emojis.d.ts +0 -32
  55. package/dist/types-ts4.0/emoji-test/get-test-site-service-emojis.d.ts +0 -33
  56. package/dist/types-ts4.0/emoji-test/get-test-sprite-emoji.d.ts +0 -24
  57. package/dist/types-ts4.0/emoji-test/get-test-standard-emojis.d.ts +0 -1
  58. package/dist/types-ts4.0/emoji-test/get-test-standard-service-emojis.d.ts +0 -1
  59. package/dist/types-ts4.0/emoji-test/media-emoji.d.ts +0 -26
  60. package/dist/types-ts4.0/emoji-test/media-service-emoji.d.ts +0 -22
  61. package/dist/types-ts4.0/emoji-test/test-emoji-repository.d.ts +0 -5
  62. package/dist/types-ts4.0/json-data/emoji-all.json +0 -54398
  63. package/dist/types-ts4.0/json-data/mention-data.json +0 -393
  64. package/dist/types-ts4.0/json-data/presence-invalid-info.json +0 -47
  65. package/dist/types-ts4.0/json-data/presence-valid-info.json +0 -63
  66. package/dist/types-ts4.0/json-data/sample-tasks.json +0 -80
  67. package/dist/types-ts4.0/json-data/service-data-atlassian.json +0 -272
  68. package/dist/types-ts4.0/json-data/service-data-standard.json +0 -54098
  69. package/dist/types-ts4.0/json-data/slack-conversations-data.json +0 -476
  70. package/dist/types-ts4.0/json-data/slack-workspaces-data.json +0 -19
  71. package/dist/types-ts4.0/json-data/test-emoji-atlassian.json +0 -224
  72. package/dist/types-ts4.0/json-data/test-emoji-standard.json +0 -2000
  73. package/dist/types-ts4.0/json-data/user-picker-data.json +0 -361
  74. package/dist/types-ts4.0/logger.d.ts +0 -4
  75. package/dist/types-ts4.0/mention/create-mock-mention-name-resolver.d.ts +0 -2
  76. package/dist/types-ts4.0/mention/mention-story-data.d.ts +0 -133
  77. package/dist/types-ts4.0/mention/mention-test-data.d.ts +0 -3
  78. package/dist/types-ts4.0/mention/mock-mention-name-client.d.ts +0 -6
  79. package/dist/types-ts4.0/mention/mock-mention-resource-with-info-hints.d.ts +0 -10
  80. package/dist/types-ts4.0/mention/mock-mention-resource.d.ts +0 -32
  81. package/dist/types-ts4.0/mention/mock-presence-resource.d.ts +0 -11
  82. package/dist/types-ts4.0/mention/presence-data.d.ts +0 -16
  83. package/dist/types-ts4.0/mention/utils.d.ts +0 -7
  84. package/dist/types-ts4.0/profilecard/get-mock-profilecard-client.d.ts +0 -3
  85. package/dist/types-ts4.0/profilecard/profilecard-data.d.ts +0 -31
  86. package/dist/types-ts4.0/profilecard/util.d.ts +0 -6
  87. package/dist/types-ts4.0/slack-data/index.d.ts +0 -3
  88. package/dist/types-ts4.0/slack-data/slack-conversations-data.d.ts +0 -2
  89. package/dist/types-ts4.0/slack-data/slack-workspaces-data.d.ts +0 -2
  90. package/dist/types-ts4.0/task-decision/mock-task-decision-resource.d.ts +0 -23
  91. package/dist/types-ts4.0/task-decision/task-decision-story-data.d.ts +0 -50
  92. package/dist/types-ts4.0/task-decision/utils.d.ts +0 -4
  93. package/dist/types-ts4.0/user-picker/ChevronRight.d.ts +0 -3
  94. package/dist/types-ts4.0/user-picker/index.d.ts +0 -4
  95. package/dist/types-ts4.0/user-picker/user-picker-custom-data.d.ts +0 -2
  96. package/dist/types-ts4.0/user-picker/user-picker-data.d.ts +0 -1
  97. package/dist/types-ts4.0/user-picker/user-picker-team-data.d.ts +0 -2
@@ -1,361 +0,0 @@
1
- [
2
- {
3
- "id": "0",
4
- "name": "Raina Halper",
5
- "publicName": "Carolyn",
6
- "avatarUrl": "https://api.adorable.io/avatars/1"
7
- },
8
- {
9
- "id": "1",
10
- "name": "Kaity",
11
- "publicName": "Kaity",
12
- "avatarUrl": "https://api.adorable.io/avatars/2",
13
- "lozenge": "TEAMMATE"
14
- },
15
- {
16
- "id": "2",
17
- "name": "Verdie",
18
- "avatarUrl": "https://api.adorable.io/avatars/3"
19
- },
20
- {
21
- "id": "3",
22
- "name": "Shae",
23
- "avatarUrl": "https://api.adorable.io/avatars/4",
24
- "byline": "Teammate"
25
- },
26
- {
27
- "id": "4",
28
- "name": "Fredericka Kollar",
29
- "publicName": "Summer",
30
- "avatarUrl": "https://api.adorable.io/avatars/5"
31
- },
32
- {
33
- "id": "5",
34
- "name": "Lorri Tremble",
35
- "publicName": "Lorri Tremble",
36
- "avatarUrl": "https://api.adorable.io/avatars/6"
37
- },
38
- {
39
- "id": "6",
40
- "name": "Dorene Rieger",
41
- "publicName": "April",
42
- "avatarUrl": "https://api.adorable.io/avatars/7"
43
- },
44
- {
45
- "id": "7",
46
- "name": "Erwin Petrovich",
47
- "publicName": "Erwin Petrovich",
48
- "avatarUrl": "https://api.adorable.io/avatars/8"
49
- },
50
- {
51
- "id": "8",
52
- "name": "Ty Bopp",
53
- "publicName": "Ty Bopp",
54
- "avatarUrl": "https://api.adorable.io/avatars/9"
55
- },
56
- {
57
- "id": "9",
58
- "name": "Helga Wetherbee",
59
- "publicName": "Helga Wetherbee",
60
- "avatarUrl": "https://api.adorable.io/avatars/10"
61
- },
62
- {
63
- "id": "10",
64
- "name": "Yuri Seals",
65
- "publicName": "Boris",
66
- "avatarUrl": "https://api.adorable.io/avatars/11"
67
- },
68
- {
69
- "id": "11",
70
- "name": "Elaine",
71
- "publicName": "Elaine",
72
- "avatarUrl": "https://api.adorable.io/avatars/12"
73
- },
74
- {
75
- "id": "12",
76
- "name": "Marlys",
77
- "publicName": "Marlys",
78
- "avatarUrl": "https://api.adorable.io/avatars/13"
79
- },
80
- {
81
- "id": "13",
82
- "name": "Cheryll Maust",
83
- "publicName": "Amber",
84
- "avatarUrl": "https://api.adorable.io/avatars/14"
85
- },
86
- {
87
- "id": "14",
88
- "name": "Alvin",
89
- "publicName": "Alvin",
90
- "avatarUrl": "https://api.adorable.io/avatars/15"
91
- },
92
- {
93
- "id": "15",
94
- "name": "Arlena",
95
- "publicName": "Arlena",
96
- "avatarUrl": "https://api.adorable.io/avatars/16"
97
- },
98
- {
99
- "id": "16",
100
- "name": "Vonda Wing",
101
- "publicName": "Ariel",
102
- "avatarUrl": "https://api.adorable.io/avatars/17"
103
- },
104
- {
105
- "id": "17",
106
- "name": "Critelli",
107
- "avatarUrl": "https://api.adorable.io/avatars/18"
108
- },
109
- {
110
- "id": "18",
111
- "name": "Alica Woods",
112
- "publicName": "awoods",
113
- "avatarUrl": "https://api.adorable.io/avatars/19"
114
- },
115
- {
116
- "id": "19",
117
- "name": "Alica Armwood",
118
- "publicName": "Jasmine"
119
- },
120
- {
121
- "id": "20",
122
- "name": "Penelope Gill",
123
- "publicName": "gill",
124
- "lozenge": "DEFAULT",
125
- "highlight": {
126
- "name": [
127
- {
128
- "start": 10,
129
- "end": 11
130
- }
131
- ],
132
- "publicName": []
133
- }
134
- },
135
- {
136
- "id": "21",
137
- "name": "Jill Jackson",
138
- "publicName": "gill"
139
- },
140
- {
141
- "id": "22",
142
- "name": "Penelope Lim",
143
- "publicName": "penelope"
144
- },
145
- {
146
- "id": "Assignee",
147
- "name": "Assignee",
148
- "avatarUrl": "",
149
- "publicName": "",
150
- "lozenge": "SPECIAL",
151
- "highlight": {
152
- "name": [
153
- {
154
- "start": 0,
155
- "end": 3
156
- }
157
- ],
158
- "publicName": [
159
- {
160
- "start": 0,
161
- "end": 3
162
- }
163
- ]
164
- }
165
- },
166
- {
167
- "id": "Unassigned",
168
- "name": "Unassigned",
169
- "avatarUrl": "",
170
- "publicName": "unassigned",
171
- "lozenge": "APP",
172
- "highlight": {
173
- "name": [
174
- {
175
- "start": 0,
176
- "end": 3
177
- }
178
- ],
179
- "publicName": [
180
- {
181
- "start": 0,
182
- "end": 3
183
- }
184
- ]
185
- }
186
- },
187
- {
188
- "id": "team",
189
- "name": "team",
190
- "avatarUrl": "",
191
- "publicName": "team",
192
- "lozenge": "APP",
193
- "highlight": {
194
- "name": [
195
- {
196
- "start": 0,
197
- "end": 3
198
- }
199
- ],
200
- "publicName": [
201
- {
202
- "start": 0,
203
- "end": 3
204
- }
205
- ]
206
- }
207
- },
208
- {
209
- "id": "fabric",
210
- "name": "The quick brown fox jumps over the lazy dog.",
211
- "publicName": "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. ",
212
- "avatarUrl": "",
213
- "lozenge": "TEAMMATE",
214
- "highlight": {
215
- "name": [],
216
- "publicName": [
217
- {
218
- "start": 0,
219
- "end": 3
220
- }
221
- ]
222
- }
223
- },
224
- {
225
- "id": "team-1",
226
- "name": "The minimal team",
227
- "type": "team"
228
- },
229
- {
230
- "id": "team-2",
231
- "name": "That team with an Avatar",
232
- "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/1.svg",
233
- "type": "team"
234
- },
235
- {
236
- "id": "team-3",
237
- "name": "Team with 1 member",
238
- "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/0.svg",
239
- "type": "team",
240
- "memberCount": 1
241
- },
242
- {
243
- "id": "team-4",
244
- "name": "Team which you are the only member",
245
- "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/2.svg",
246
- "type": "team",
247
- "memberCount": 1,
248
- "includesYou": true
249
- },
250
- {
251
- "id": "team-5",
252
- "name": "Team with 50+ members",
253
- "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/4.svg",
254
- "type": "team",
255
- "memberCount": 51
256
- },
257
- {
258
- "id": "team-6",
259
- "name": "Large team which includes you",
260
- "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/3.svg",
261
- "type": "team",
262
- "memberCount": 51,
263
- "includesYou": true
264
- },
265
- {
266
- "id": "team-7",
267
- "name": "Team which includes you",
268
- "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/6.svg",
269
- "type": "team",
270
- "memberCount": 49,
271
- "includesYou": true
272
- },
273
- {
274
- "id": "team-8",
275
- "name": "Team with all the fields (except highlight)",
276
- "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/5.svg",
277
- "type": "team",
278
- "fixed": false,
279
- "description": "This team has all the fields populated except highlights",
280
- "memberCount": 35,
281
- "includesYou": false
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
- },
292
- {
293
- "id": "group-1",
294
- "name": "admin-groups-group",
295
- "type": "group"
296
- },
297
- {
298
- "id": "group-2",
299
- "name": "group-group-group-group-group-group-group",
300
- "type": "group"
301
- },
302
- {
303
- "id": "group-3",
304
- "name": "the-blue-man-group",
305
- "highlight": {
306
- "name": [
307
- {
308
- "start": 4,
309
- "end": 11
310
- }
311
- ]
312
- },
313
- "type": "group"
314
- },
315
- {
316
- "id": "external-1",
317
- "name": "Ty Bopp",
318
- "email": "tybopp@email.com",
319
- "avatarUrl": "https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg",
320
- "type": "user",
321
- "isExternal": true,
322
- "sources": ["google", "microsoft"]
323
- },
324
- {
325
- "id": "external-2",
326
- "name": "Kaity",
327
- "email": "kaity@email.com",
328
- "avatarUrl": "https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg",
329
- "type": "user",
330
- "isExternal": true,
331
- "sources": ["google"]
332
- },
333
- {
334
- "id": "external-3",
335
- "name": "Rosee",
336
- "email": "rosee@email.com",
337
- "avatarUrl": "https://upload.wikimedia.org/wikipedia/commons/6/64/Slack_Logo_Icon.svg",
338
- "type": "user",
339
- "isExternal": true,
340
- "sources": ["slack"]
341
- },
342
- {
343
- "id": "external-4",
344
- "name": "Daisee",
345
- "email": "Daisee@email.com",
346
- "avatarUrl": "https://upload.wikimedia.org/wikipedia/commons/9/91/Octicons-mark-github.svg",
347
- "type": "user",
348
- "isExternal": true,
349
- "sources": ["github"]
350
- },
351
- {
352
- "id": "external-5",
353
- "name": "Dorian",
354
- "email": "Dorian@email.com",
355
- "avatarUrl": "https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/teams/avatars/4.svg",
356
- "type": "user",
357
- "isExternal": true,
358
- "requiresSourceHydration": true,
359
- "sources": []
360
- }
361
- ]
@@ -1,4 +0,0 @@
1
- export declare function enableLogger(enable: boolean): void;
2
- export declare function enableStacktraces(enable: boolean): void;
3
- export declare function logStacktrace(): void;
4
- export default function debug(msg: any, ...args: any[]): void;
@@ -1,2 +0,0 @@
1
- import { DefaultMentionNameResolver } from '@atlaskit/mention/resource';
2
- export declare const createMockMentionNameResolver: () => DefaultMentionNameResolver;
@@ -1,133 +0,0 @@
1
- import { MockMentionResource as MentionResource } from './mock-mention-resource';
2
- import { MockMentionResourceWithInfoHints as MentionResourceWithInfoHints } from './mock-mention-resource-with-info-hints';
3
- export declare const mentionSampleAvatarUrl = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/2wCEAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRQBAwQEBQQFCQUFCRQNCw0UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFP/AABEIACAAIAMBIgACEQEDEQH/xAB1AAEAAwEAAAAAAAAAAAAAAAAHAgUGCBAAAQMCBQMDAgcAAAAAAAAAAQIDBAURAAYSIUEHEzEUImEVcSMyQlGBweEBAAMBAAAAAAAAAAAAAAAAAAMEBwURAAICAgMBAQEAAAAAAAAAAAECAxEABBIhIkExgf/aAAwDAQACEQMRAD8AxWVci1ipwmJdT7seKFbIMgLKrGxTYkkH4NsMH1D0UFwsqsAACom1zbxvje9QMoU6BVnnFPswkqBX71JQkj7nnBFmwNx6JJmw5zUtkKUlCmFhaCAkG+21/IxCZ2keQ2KA6/uWzyF5X2cs1T1To62n3jYoWUuDfyLf3gUzhl/MuUI06fDLjdMBGh5EtCyQogBOm2q9+L+MJ1Ep0p1SFd5lptwqSe6sJCRpBvvySQP4xoqZlFt6QluQ4iSUL1eQQP8AcG1pHieqsHFHcVyv8xB6l0hnNOUrzGPUKlsBBXYa0FJ/MkkEbEA253GB/I/SeH0wy1PocFtoU6pOeqbbUjthp3TY8nyPngbADHT1ejCi02LGaShx6GlJKFH2rPlV/ub4H85yI+bSqPGdRSZjThdbYeSUNlRFlAnwQfixGNTZn4zSRq3hjdYprRK0cbyD2ABeBHULpiOo8ymrluBNMpai4lgoU5+MFg6zpULWtbkEXww5Ey/EpFOhoYQtllsDVqPudI5V9/OI0ZNMyahuI4tqsy/euykak90nlXgC9hsNv3xd0xuTMImylLaSE3S3+kE8cYHJslwsQbyvzADXRHaSuz9z/9k=";
4
- export declare const mentions: ({
5
- id: string;
6
- avatarUrl: string;
7
- name: string;
8
- mentionName: string;
9
- lozenge: string;
10
- accessLevel: string;
11
- presence: {
12
- status: string;
13
- time: string;
14
- };
15
- nickname?: undefined;
16
- userType?: undefined;
17
- context?: undefined;
18
- } | {
19
- id: string;
20
- avatarUrl: string;
21
- name: string;
22
- mentionName: string;
23
- lozenge: string;
24
- accessLevel: string;
25
- presence: {
26
- status: string;
27
- time?: undefined;
28
- };
29
- nickname?: undefined;
30
- userType?: undefined;
31
- context?: undefined;
32
- } | {
33
- id: string;
34
- avatarUrl: string;
35
- name: string;
36
- mentionName: string;
37
- presence: {
38
- status: string;
39
- time: string;
40
- };
41
- lozenge?: undefined;
42
- accessLevel?: undefined;
43
- nickname?: undefined;
44
- userType?: undefined;
45
- context?: undefined;
46
- } | {
47
- id: string;
48
- avatarUrl: string;
49
- name: string;
50
- mentionName: string;
51
- nickname: string;
52
- lozenge: string;
53
- accessLevel: string;
54
- presence: {
55
- status: string;
56
- time?: undefined;
57
- };
58
- userType?: undefined;
59
- context?: undefined;
60
- } | {
61
- id: string;
62
- avatarUrl: string;
63
- name: string;
64
- mentionName: string;
65
- nickname: string;
66
- accessLevel: string;
67
- presence: {
68
- status: string;
69
- time?: undefined;
70
- };
71
- lozenge?: undefined;
72
- userType?: undefined;
73
- context?: undefined;
74
- } | {
75
- id: string;
76
- avatarUrl: string;
77
- name: string;
78
- mentionName: string;
79
- nickname: string;
80
- lozenge?: undefined;
81
- accessLevel?: undefined;
82
- presence?: undefined;
83
- userType?: undefined;
84
- context?: undefined;
85
- } | {
86
- id: string;
87
- name: string;
88
- mentionName: string;
89
- presence: {
90
- time: string;
91
- status?: undefined;
92
- };
93
- avatarUrl?: undefined;
94
- lozenge?: undefined;
95
- accessLevel?: undefined;
96
- nickname?: undefined;
97
- userType?: undefined;
98
- context?: undefined;
99
- } | {
100
- id: string;
101
- avatarUrl: string;
102
- name: string;
103
- lozenge: string;
104
- mentionName: string;
105
- accessLevel?: undefined;
106
- presence?: undefined;
107
- nickname?: undefined;
108
- userType?: undefined;
109
- context?: undefined;
110
- } | {
111
- id: string;
112
- avatarUrl: string;
113
- name: string;
114
- userType: string;
115
- context: {
116
- members: never[];
117
- includesYou: boolean;
118
- memberCount: number;
119
- teamLink: string;
120
- };
121
- mentionName?: undefined;
122
- lozenge?: undefined;
123
- accessLevel?: undefined;
124
- presence?: undefined;
125
- nickname?: undefined;
126
- })[];
127
- export declare const mentionSlowResourceProvider: MentionResource;
128
- export declare const mentionResourceProvider: MentionResource;
129
- export declare const mentionResourceProviderWithResolver: MentionResource;
130
- export declare const mentionResourceProviderWithResolver2: MentionResource;
131
- export declare const mentionResourceProviderWithInfoHints: MentionResourceWithInfoHints;
132
- export declare const mentionResourceProviderWithTeamMentionHighlight: MentionResource;
133
- export declare const mentionResourceProviderWithInviteFromMentionExperiment: MentionResource;
@@ -1,3 +0,0 @@
1
- export declare const mentionTestData: any;
2
- export declare const mentionTestResult: any[];
3
- export declare const mentionTestDataSize: any;
@@ -1,6 +0,0 @@
1
- import { MentionNameClient, MentionNameDetails } from '@atlaskit/mention/resource';
2
- export declare class MockMentionNameClient implements MentionNameClient {
3
- constructor();
4
- getLookupLimit(): number;
5
- lookupMentionNames(ids: string[]): Promise<MentionNameDetails[]>;
6
- }
@@ -1,10 +0,0 @@
1
- import { MentionDescription, AbstractMentionResource } from '@atlaskit/mention/resource';
2
- import { MockMentionConfig } from './mock-mention-resource';
3
- export declare class MockMentionResourceWithInfoHints extends AbstractMentionResource {
4
- private config;
5
- private lastReturnedSearch;
6
- private search;
7
- constructor(config: MockMentionConfig);
8
- filter(query: string): void;
9
- recordMentionSelection(mention: MentionDescription): void;
10
- }
@@ -1,32 +0,0 @@
1
- import { MentionDescription, AbstractMentionResource, MentionNameResolver, ResolvingMentionProvider, MentionNameDetails, TeamMentionProvider } from '@atlaskit/mention/resource';
2
- import { InviteExperimentCohort, InviteFlow, UserRole } from '@atlaskit/mention';
3
- export interface MockMentionConfig {
4
- minWait?: number;
5
- maxWait?: number;
6
- mentionNameResolver?: MentionNameResolver;
7
- enableTeamMentionHighlight?: boolean;
8
- inviteExperimentCohort?: InviteExperimentCohort;
9
- productName?: string;
10
- shouldEnableInvite?: boolean;
11
- onInviteItemClick?: (flow: InviteFlow) => void;
12
- userRole?: UserRole;
13
- }
14
- export declare class MockMentionResource extends AbstractMentionResource implements ResolvingMentionProvider, TeamMentionProvider {
15
- private config;
16
- private lastReturnedSearch;
17
- private search;
18
- productName?: string;
19
- shouldEnableInvite: boolean;
20
- userRole: UserRole;
21
- inviteExperimentCohort?: InviteExperimentCohort;
22
- onInviteItemClick?: (flow: InviteFlow) => void;
23
- constructor(config: MockMentionConfig);
24
- filter(query: string): Promise<void>;
25
- recordMentionSelection(mention: MentionDescription): void;
26
- resolveMentionName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
27
- cacheMentionName(id: string, name: string): void;
28
- supportsMentionNameResolving(): boolean;
29
- shouldHighlightMention(mention: MentionDescription): boolean;
30
- mentionTypeaheadHighlightEnabled: () => boolean;
31
- mentionTypeaheadCreateTeamPath: () => string;
32
- }
@@ -1,11 +0,0 @@
1
- import { AbstractPresenceResource } from '@atlaskit/mention/resource';
2
- export declare class MockPresenceResource extends AbstractPresenceResource {
3
- private minTimeout;
4
- private maxTimeout;
5
- private statuses;
6
- constructor(minTimeout?: number, maxTimeout?: number);
7
- private getTimeout;
8
- private getStatus;
9
- private getTime;
10
- refreshPresence(ids: string[]): void;
11
- }
@@ -1,16 +0,0 @@
1
- export interface PresenceValidInfo {
2
- data: Data;
3
- }
4
- export interface Data {
5
- PresenceBulk: PresenceBulk[];
6
- }
7
- export interface PresenceBulk {
8
- userId: string;
9
- state: null | string;
10
- type: null | string;
11
- date: null | string;
12
- message: null | string;
13
- stateMetadata?: string;
14
- }
15
- export declare const validPresenceData: PresenceValidInfo;
16
- export declare const invalidPresenceData: PresenceValidInfo;
@@ -1,7 +0,0 @@
1
- export declare class HttpError implements Error {
2
- name: string;
3
- message: string;
4
- statusCode: number;
5
- stack?: string;
6
- constructor(statusCode: number, statusMessage: string);
7
- }
@@ -1,3 +0,0 @@
1
- import { ProfileClient } from '@atlaskit/profilecard/types';
2
- export declare function getMockProfilecardClient(BaseProfileClient: any, modifyResponse: any): any;
3
- export declare function simpleMockProfilecardClient(): ProfileClient;
@@ -1,31 +0,0 @@
1
- export declare const profilecardData: ({
2
- User: {
3
- avatarUrl: string | undefined;
4
- fullName: string;
5
- nickname: string;
6
- email: string;
7
- location: string;
8
- meta: string;
9
- remoteTimeString: string;
10
- remoteWeekdayIndex: number;
11
- remoteWeekdayString: string;
12
- };
13
- Presence: {
14
- state: string;
15
- };
16
- } | {
17
- User: {
18
- avatarUrl: string | undefined;
19
- fullName: string;
20
- nickname: string;
21
- email: string;
22
- meta: string;
23
- location?: undefined;
24
- remoteTimeString?: undefined;
25
- remoteWeekdayIndex?: undefined;
26
- remoteWeekdayString?: undefined;
27
- };
28
- Presence: {
29
- state: string;
30
- };
31
- })[];
@@ -1,6 +0,0 @@
1
- export declare const random: (int: number) => number;
2
- export declare const getWeekday: () => {
3
- index: number;
4
- string: string;
5
- };
6
- export declare const getTimeString: () => string;
@@ -1,3 +0,0 @@
1
- import slackWorkspacesData from './slack-workspaces-data';
2
- import slackConversationsData from './slack-conversations-data';
3
- export { slackWorkspacesData, slackConversationsData };
@@ -1,2 +0,0 @@
1
- declare const slackConversationsData: any;
2
- export default slackConversationsData;
@@ -1,2 +0,0 @@
1
- declare const slackWorkspacesData: any;
2
- export default slackWorkspacesData;
@@ -1,23 +0,0 @@
1
- import { BaseItem, DecisionState, Handler, ObjectKey, RecentUpdateContext, RecentUpdatesId, TaskDecisionProvider, TaskState } from '@atlaskit/task-decision';
2
- export interface MockTaskDecisionResourceConfig {
3
- hasMore?: boolean;
4
- lag?: number;
5
- error?: boolean;
6
- empty?: boolean;
7
- }
8
- export declare class MockTaskDecisionResource implements TaskDecisionProvider {
9
- private config?;
10
- private subscribers;
11
- private cachedItems;
12
- private batchedKeys;
13
- constructor(config?: MockTaskDecisionResourceConfig);
14
- unsubscribeRecentUpdates(_id: RecentUpdatesId): void;
15
- notifyRecentUpdates(_updateContext?: RecentUpdateContext): void;
16
- getTaskState(_keys: ObjectKey[]): Promise<BaseItem<TaskState>[]>;
17
- toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
18
- subscribe(objectKey: ObjectKey, handler: Handler): void;
19
- unsubscribe(objectKey: ObjectKey, handler: Handler): void;
20
- notifyUpdated(objectKey: ObjectKey, state: TaskState | DecisionState): void;
21
- private queueItem;
22
- private dequeueItem;
23
- }