@atlaskit/util-data-test 17.8.0 → 17.8.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 +12 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/emoji/get-emoji-provider.d.ts +2 -2
- package/dist/types/emoji/get-emoji-resource-standard-atlassian.d.ts +1 -1
- package/dist/types/emoji/get-emoji-resource.d.ts +1 -1
- package/dist/types/emoji/mock-emoji-resource-factory.d.ts +1 -1
- package/dist/types/emoji/mock-non-uploading-emoji-resource-factory.d.ts +1 -1
- package/dist/types/emoji-test/get-non-uploading-emoji-resource.d.ts +1 -1
- package/dist/types/emoji-test/get-test-emoji-resource-from-repository.d.ts +1 -1
- package/dist/types/emoji-test/get-test-emoji-resource-non-uploading.d.ts +1 -1
- package/dist/types/emoji-test/get-test-emoji-resource.d.ts +1 -1
- package/dist/types/task-decision/task-decision-story-data.d.ts +1 -1
- package/dist/types-ts4.5/emoji/emoji-from-upload.d.ts +17 -0
- package/dist/types-ts4.5/emoji/emoji-repository-usage-clear.d.ts +7 -0
- package/dist/types-ts4.5/emoji/emoji-resource-usage-clear.d.ts +6 -0
- package/dist/types-ts4.5/emoji/get-atlassian-emoji-data.d.ts +2 -0
- package/dist/types-ts4.5/emoji/get-atlassian-emojis.d.ts +1 -0
- package/dist/types-ts4.5/emoji/get-emoji-provider.d.ts +9 -0
- package/dist/types-ts4.5/emoji/get-emoji-repository.d.ts +2 -0
- package/dist/types-ts4.5/emoji/get-emoji-resource-standard-atlassian.d.ts +2 -0
- package/dist/types-ts4.5/emoji/get-emoji-resource-usage-clear.d.ts +2 -0
- package/dist/types-ts4.5/emoji/get-emoji-resource.d.ts +2 -0
- package/dist/types-ts4.5/emoji/get-emojis.d.ts +1 -0
- package/dist/types-ts4.5/emoji/get-site-emoji-data.d.ts +2 -0
- package/dist/types-ts4.5/emoji/get-site-emojis.d.ts +1 -0
- package/dist/types-ts4.5/emoji/get-standard-emoji-data.d.ts +2 -0
- package/dist/types-ts4.5/emoji/get-standard-emojis.d.ts +1 -0
- package/dist/types-ts4.5/emoji/image-emoji.d.ts +19 -0
- package/dist/types-ts4.5/emoji/logged-user.d.ts +1 -0
- package/dist/types-ts4.5/emoji/lorem.d.ts +1 -0
- package/dist/types-ts4.5/emoji/mock-emoji-resource-factory.d.ts +3 -0
- package/dist/types-ts4.5/emoji/mock-emoji-resource.d.ts +20 -0
- package/dist/types-ts4.5/emoji/mock-non-uploading-emoji-resource-factory.d.ts +3 -0
- package/dist/types-ts4.5/emoji/mock-non-uploading-emoji-resource.d.ts +33 -0
- package/dist/types-ts4.5/emoji/site-emoji-foo.d.ts +17 -0
- package/dist/types-ts4.5/emoji/site-emoji-wtf.d.ts +17 -0
- package/dist/types-ts4.5/emoji/sprite-emoji.d.ts +24 -0
- package/dist/types-ts4.5/emoji/types.d.ts +15 -0
- package/dist/types-ts4.5/emoji-constants/index.d.ts +6 -0
- package/dist/types-ts4.5/emoji-test/emoji-samples.d.ts +10 -0
- package/dist/types-ts4.5/emoji-test/expires-at.d.ts +1 -0
- package/dist/types-ts4.5/emoji-test/filter-to-searchable.d.ts +2 -0
- package/dist/types-ts4.5/emoji-test/get-non-uploading-emoji-resource.d.ts +2 -0
- package/dist/types-ts4.5/emoji-test/get-test-atlassian-emojis.d.ts +1 -0
- package/dist/types-ts4.5/emoji-test/get-test-atlassian-service-emojis.d.ts +1 -0
- package/dist/types-ts4.5/emoji-test/get-test-emoji-repository.d.ts +1 -0
- package/dist/types-ts4.5/emoji-test/get-test-emoji-resource-from-repository.d.ts +3 -0
- package/dist/types-ts4.5/emoji-test/get-test-emoji-resource-non-uploading.d.ts +2 -0
- package/dist/types-ts4.5/emoji-test/get-test-emoji-resource.d.ts +2 -0
- package/dist/types-ts4.5/emoji-test/get-test-emojis.d.ts +21 -0
- package/dist/types-ts4.5/emoji-test/get-test-image-emoji.d.ts +19 -0
- package/dist/types-ts4.5/emoji-test/get-test-media-api-token.d.ts +7 -0
- package/dist/types-ts4.5/emoji-test/get-test-searchable-emojis.d.ts +1 -0
- package/dist/types-ts4.5/emoji-test/get-test-site-emoji-foo.d.ts +17 -0
- package/dist/types-ts4.5/emoji-test/get-test-site-emoji-repository.d.ts +1 -0
- package/dist/types-ts4.5/emoji-test/get-test-site-emoji-wtf.d.ts +17 -0
- package/dist/types-ts4.5/emoji-test/get-test-site-emojis.d.ts +32 -0
- package/dist/types-ts4.5/emoji-test/get-test-site-service-emojis.d.ts +33 -0
- package/dist/types-ts4.5/emoji-test/get-test-sprite-emoji.d.ts +24 -0
- package/dist/types-ts4.5/emoji-test/get-test-standard-emojis.d.ts +1 -0
- package/dist/types-ts4.5/emoji-test/get-test-standard-service-emojis.d.ts +1 -0
- package/dist/types-ts4.5/emoji-test/media-emoji.d.ts +26 -0
- package/dist/types-ts4.5/emoji-test/media-service-emoji.d.ts +22 -0
- package/dist/types-ts4.5/emoji-test/test-emoji-repository.d.ts +5 -0
- package/dist/types-ts4.5/json-data/emoji-all.json +54398 -0
- package/dist/types-ts4.5/json-data/mention-data.json +393 -0
- package/dist/types-ts4.5/json-data/presence-invalid-info.json +47 -0
- package/dist/types-ts4.5/json-data/presence-valid-info.json +63 -0
- package/dist/types-ts4.5/json-data/sample-tasks.json +80 -0
- package/dist/types-ts4.5/json-data/service-data-atlassian.json +272 -0
- package/dist/types-ts4.5/json-data/service-data-standard.json +54098 -0
- package/dist/types-ts4.5/json-data/slack-conversations-data.json +476 -0
- package/dist/types-ts4.5/json-data/slack-workspaces-data.json +19 -0
- package/dist/types-ts4.5/json-data/test-emoji-atlassian.json +224 -0
- package/dist/types-ts4.5/json-data/test-emoji-standard.json +2000 -0
- package/dist/types-ts4.5/json-data/user-picker-data.json +361 -0
- package/dist/types-ts4.5/logger.d.ts +4 -0
- package/dist/types-ts4.5/mention/create-mock-mention-name-resolver.d.ts +2 -0
- package/dist/types-ts4.5/mention/mention-story-data.d.ts +132 -0
- package/dist/types-ts4.5/mention/mention-test-data.d.ts +3 -0
- package/dist/types-ts4.5/mention/mock-mention-name-client.d.ts +6 -0
- package/dist/types-ts4.5/mention/mock-mention-resource-with-info-hints.d.ts +10 -0
- package/dist/types-ts4.5/mention/mock-mention-resource.d.ts +29 -0
- package/dist/types-ts4.5/mention/mock-presence-resource.d.ts +11 -0
- package/dist/types-ts4.5/mention/presence-data.d.ts +16 -0
- package/dist/types-ts4.5/mention/utils.d.ts +7 -0
- package/dist/types-ts4.5/profilecard/get-mock-profilecard-client.d.ts +3 -0
- package/dist/types-ts4.5/profilecard/profilecard-data.d.ts +31 -0
- package/dist/types-ts4.5/profilecard/util.d.ts +6 -0
- package/dist/types-ts4.5/slack-data/index.d.ts +3 -0
- package/dist/types-ts4.5/slack-data/slack-conversations-data.d.ts +2 -0
- package/dist/types-ts4.5/slack-data/slack-workspaces-data.d.ts +2 -0
- package/dist/types-ts4.5/task-decision/mock-task-decision-resource.d.ts +23 -0
- package/dist/types-ts4.5/task-decision/task-decision-story-data.d.ts +50 -0
- package/dist/types-ts4.5/task-decision/utils.d.ts +4 -0
- package/dist/types-ts4.5/user-picker/ChevronRight.d.ts +3 -0
- package/dist/types-ts4.5/user-picker/index.d.ts +4 -0
- package/dist/types-ts4.5/user-picker/user-picker-custom-data.d.ts +2 -0
- package/dist/types-ts4.5/user-picker/user-picker-data.d.ts +1 -0
- package/dist/types-ts4.5/user-picker/user-picker-team-data.d.ts +2 -0
- package/emoji-constants/package.json +2 -2
- package/emoji-samples/package.json +2 -2
- package/emoji-types/package.json +2 -2
- package/filter-to-searchable/package.json +2 -2
- package/get-atlassian-emojis/package.json +2 -2
- package/get-emoji-provider/package.json +2 -2
- package/get-emoji-repository/package.json +2 -2
- package/get-emoji-resource/package.json +2 -2
- package/get-emoji-resource-standard-atlassian/package.json +2 -2
- package/get-emoji-resource-usage-clear/package.json +2 -2
- package/get-emojis/package.json +2 -2
- package/get-mock-profilecard-client/package.json +2 -2
- package/get-standard-emojis/package.json +2 -2
- package/get-test-atlassian-emojis/package.json +2 -2
- package/get-test-atlassian-service-emojis/package.json +2 -2
- package/get-test-emoji-repository/package.json +2 -2
- package/get-test-emoji-resource/package.json +2 -2
- package/get-test-emoji-resource-from-repository/package.json +2 -2
- package/get-test-emoji-resource-non-uploading/package.json +2 -2
- package/get-test-emojis/package.json +2 -2
- package/get-test-image-emoji/package.json +2 -2
- package/get-test-searchable-emojis/package.json +2 -2
- package/get-test-site-emoji-foo/package.json +2 -2
- package/get-test-site-emoji-repository/package.json +2 -2
- package/get-test-site-emoji-wtf/package.json +2 -2
- package/get-test-site-emojis/package.json +2 -2
- package/get-test-site-service-emojis/package.json +2 -2
- package/get-test-sprite-emoji/package.json +2 -2
- package/get-test-standard-emojis/package.json +2 -2
- package/get-test-standard-service-emojis/package.json +2 -2
- package/logged-user/package.json +2 -2
- package/logger/package.json +2 -2
- package/media-emoji/package.json +2 -2
- package/media-service-emoji/package.json +2 -2
- package/mention-story-data/package.json +2 -2
- package/mention-test-data/package.json +2 -2
- package/mock-emoji-resource/package.json +2 -2
- package/mock-mention-resource/package.json +2 -2
- package/mock-non-uploading-emoji-resource-factory/package.json +2 -2
- package/mock-presence-resource/package.json +2 -2
- package/package.json +3 -3
- package/presence-data/package.json +2 -2
- package/profilecard-data/package.json +2 -2
- package/slack-data/package.json +2 -2
- package/task-decision-story-data/package.json +2 -2
- package/user-picker/package.json +2 -2
- package/user-picker-data/package.json +2 -2
|
@@ -0,0 +1,361 @@
|
|
|
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
|
+
]
|
|
@@ -0,0 +1,132 @@
|
|
|
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 mentionResourceProviderWithInviteFromMentionExperiment: MentionResource;
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MentionDescription, AbstractMentionResource, MentionNameResolver, ResolvingMentionProvider, MentionNameDetails, MentionProvider } 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
|
+
inviteExperimentCohort?: InviteExperimentCohort;
|
|
8
|
+
productName?: string;
|
|
9
|
+
shouldEnableInvite?: boolean;
|
|
10
|
+
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
11
|
+
userRole?: UserRole;
|
|
12
|
+
}
|
|
13
|
+
export declare class MockMentionResource extends AbstractMentionResource implements ResolvingMentionProvider, MentionProvider {
|
|
14
|
+
private config;
|
|
15
|
+
private lastReturnedSearch;
|
|
16
|
+
private search;
|
|
17
|
+
productName?: string;
|
|
18
|
+
shouldEnableInvite: boolean;
|
|
19
|
+
userRole: UserRole;
|
|
20
|
+
inviteExperimentCohort?: InviteExperimentCohort;
|
|
21
|
+
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
22
|
+
constructor(config: MockMentionConfig);
|
|
23
|
+
filter(query: string): Promise<void>;
|
|
24
|
+
recordMentionSelection(mention: MentionDescription): void;
|
|
25
|
+
resolveMentionName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
|
|
26
|
+
cacheMentionName(id: string, name: string): void;
|
|
27
|
+
supportsMentionNameResolving(): boolean;
|
|
28
|
+
shouldHighlightMention(mention: MentionDescription): boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
})[];
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|