@atlaskit/emoji 67.3.2 → 67.4.1
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 +16 -0
- package/admin/package.json +2 -2
- package/dist/cjs/api/EmojiResource.js +192 -203
- package/dist/cjs/api/media/SiteEmojiResource.js +27 -30
- package/dist/cjs/components/common/EmojiUploadPicker.js +23 -23
- package/dist/cjs/components/common/ResourcedEmoji.js +1 -1
- package/dist/cjs/components/common/ResourcedEmojiComponent.js +51 -53
- package/dist/cjs/components/common/Scrollable.js +2 -1
- package/dist/cjs/components/common/UfoErrorBoundary.js +1 -1
- package/dist/cjs/components/common/internal-types.js +4 -4
- package/dist/cjs/components/picker/EmojiPicker.js +3 -4
- package/dist/cjs/components/picker/EmojiPickerList.js +11 -13
- package/dist/cjs/components/typeahead/EmojiTypeAhead.js +3 -4
- package/dist/cjs/components/typeahead/EmojiTypeAheadComponent.js +1 -1
- package/dist/cjs/components/typeahead/EmojiTypeAheadItem.js +2 -1
- package/dist/cjs/components/typeahead/EmojiTypeAheadList.js +1 -2
- package/dist/cjs/components/uploader/EmojiUploadComponent.js +41 -42
- package/dist/cjs/components/uploader/EmojiUploader.js +3 -4
- package/dist/cjs/context/EmojiContextProvider.js +18 -20
- package/dist/cjs/hooks/useEmoji.js +20 -23
- package/dist/cjs/i18n/cs.js +44 -34
- package/dist/cjs/i18n/da.js +44 -34
- package/dist/cjs/i18n/de.js +44 -34
- package/dist/cjs/i18n/en.js +44 -34
- package/dist/cjs/i18n/en_GB.js +44 -34
- package/dist/cjs/i18n/es.js +44 -34
- package/dist/cjs/i18n/fi.js +44 -34
- package/dist/cjs/i18n/fr.js +44 -34
- package/dist/cjs/i18n/hu.js +44 -34
- package/dist/cjs/i18n/it.js +44 -34
- package/dist/cjs/i18n/ja.js +44 -34
- package/dist/cjs/i18n/ko.js +44 -34
- package/dist/cjs/i18n/nb.js +44 -34
- package/dist/cjs/i18n/nl.js +44 -34
- package/dist/cjs/i18n/pl.js +44 -34
- package/dist/cjs/i18n/pt_BR.js +44 -34
- package/dist/cjs/i18n/ru.js +44 -34
- package/dist/cjs/i18n/sv.js +44 -34
- package/dist/cjs/i18n/th.js +44 -34
- package/dist/cjs/i18n/tr.js +44 -34
- package/dist/cjs/i18n/uk.js +44 -34
- package/dist/cjs/i18n/vi.js +44 -34
- package/dist/cjs/i18n/zh.js +44 -34
- package/dist/cjs/i18n/zh_TW.js +44 -34
- package/dist/cjs/types.js +28 -28
- package/dist/cjs/util/analytics/samplingUfo.js +74 -83
- package/dist/cjs/util/constants.js +8 -8
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/common/ResourcedEmojiComponent.js +3 -3
- package/dist/es2019/components/common/Scrollable.js +2 -1
- package/dist/es2019/components/common/internal-types.js +3 -3
- package/dist/es2019/components/picker/EmojiPicker.js +2 -3
- package/dist/es2019/components/picker/EmojiPickerList.js +11 -14
- package/dist/es2019/components/typeahead/EmojiTypeAhead.js +2 -3
- package/dist/es2019/components/typeahead/EmojiTypeAheadItem.js +2 -1
- package/dist/es2019/components/typeahead/EmojiTypeAheadList.js +1 -3
- package/dist/es2019/components/uploader/EmojiUploader.js +2 -3
- package/dist/es2019/i18n/cs.js +44 -34
- package/dist/es2019/i18n/da.js +44 -34
- package/dist/es2019/i18n/de.js +44 -34
- package/dist/es2019/i18n/en.js +44 -34
- package/dist/es2019/i18n/en_GB.js +44 -34
- package/dist/es2019/i18n/es.js +44 -34
- package/dist/es2019/i18n/fi.js +44 -34
- package/dist/es2019/i18n/fr.js +44 -34
- package/dist/es2019/i18n/hu.js +44 -34
- package/dist/es2019/i18n/it.js +44 -34
- package/dist/es2019/i18n/ja.js +44 -34
- package/dist/es2019/i18n/ko.js +44 -34
- package/dist/es2019/i18n/nb.js +44 -34
- package/dist/es2019/i18n/nl.js +44 -34
- package/dist/es2019/i18n/pl.js +44 -34
- package/dist/es2019/i18n/pt_BR.js +44 -34
- package/dist/es2019/i18n/ru.js +44 -34
- package/dist/es2019/i18n/sv.js +44 -34
- package/dist/es2019/i18n/th.js +44 -34
- package/dist/es2019/i18n/tr.js +44 -34
- package/dist/es2019/i18n/uk.js +44 -34
- package/dist/es2019/i18n/vi.js +44 -34
- package/dist/es2019/i18n/zh.js +44 -34
- package/dist/es2019/i18n/zh_TW.js +44 -34
- package/dist/es2019/types.js +21 -21
- package/dist/es2019/util/constants.js +8 -8
- package/dist/es2019/version.json +1 -1
- package/dist/esm/api/EmojiResource.js +192 -203
- package/dist/esm/api/media/SiteEmojiResource.js +27 -30
- package/dist/esm/components/common/EmojiUploadPicker.js +21 -24
- package/dist/esm/components/common/ResourcedEmojiComponent.js +51 -54
- package/dist/esm/components/common/Scrollable.js +2 -1
- package/dist/esm/components/common/UfoErrorBoundary.js +1 -1
- package/dist/esm/components/common/internal-types.js +3 -3
- package/dist/esm/components/picker/EmojiPicker.js +2 -3
- package/dist/esm/components/picker/EmojiPickerList.js +11 -13
- package/dist/esm/components/typeahead/EmojiTypeAhead.js +2 -3
- package/dist/esm/components/typeahead/EmojiTypeAheadComponent.js +1 -1
- package/dist/esm/components/typeahead/EmojiTypeAheadItem.js +2 -1
- package/dist/esm/components/typeahead/EmojiTypeAheadList.js +1 -2
- package/dist/esm/components/uploader/EmojiUploadComponent.js +39 -42
- package/dist/esm/components/uploader/EmojiUploader.js +2 -3
- package/dist/esm/context/EmojiContextProvider.js +18 -21
- package/dist/esm/hooks/useEmoji.js +20 -23
- package/dist/esm/i18n/cs.js +44 -34
- package/dist/esm/i18n/da.js +44 -34
- package/dist/esm/i18n/de.js +44 -34
- package/dist/esm/i18n/en.js +44 -34
- package/dist/esm/i18n/en_GB.js +44 -34
- package/dist/esm/i18n/es.js +44 -34
- package/dist/esm/i18n/fi.js +44 -34
- package/dist/esm/i18n/fr.js +44 -34
- package/dist/esm/i18n/hu.js +44 -34
- package/dist/esm/i18n/it.js +44 -34
- package/dist/esm/i18n/ja.js +44 -34
- package/dist/esm/i18n/ko.js +44 -34
- package/dist/esm/i18n/nb.js +44 -34
- package/dist/esm/i18n/nl.js +44 -34
- package/dist/esm/i18n/pl.js +44 -34
- package/dist/esm/i18n/pt_BR.js +44 -34
- package/dist/esm/i18n/ru.js +44 -34
- package/dist/esm/i18n/sv.js +44 -34
- package/dist/esm/i18n/th.js +44 -34
- package/dist/esm/i18n/tr.js +44 -34
- package/dist/esm/i18n/uk.js +44 -34
- package/dist/esm/i18n/vi.js +44 -34
- package/dist/esm/i18n/zh.js +44 -34
- package/dist/esm/i18n/zh_TW.js +44 -34
- package/dist/esm/types.js +21 -21
- package/dist/esm/util/analytics/samplingUfo.js +74 -83
- package/dist/esm/util/constants.js +8 -8
- package/dist/esm/version.json +1 -1
- package/dist/types/api/EmojiRepository.d.ts +1 -1
- package/dist/types/api/EmojiUtils.d.ts +6 -6
- package/dist/types/api/internal/Comparators.d.ts +1 -1
- package/dist/types/api/media/MediaImageLoader.d.ts +1 -1
- package/dist/types/api/media/TokenManager.d.ts +1 -1
- package/dist/types/components/common/EmojiActions.d.ts +2 -2
- package/dist/types/components/common/EmojiPreviewComponent.d.ts +1 -1
- package/dist/types/components/common/Scrollable.d.ts +1 -1
- package/dist/types/components/common/ToneSelector.d.ts +1 -1
- package/dist/types/components/common/setSkinToneAriaLabelText.d.ts +1 -1
- package/dist/types/components/picker/CategorySelector.d.ts +1 -1
- package/dist/types/components/picker/EmojiPickerVirtualItems.d.ts +1 -1
- package/dist/types/components/picker/VirtualList.d.ts +2 -2
- package/dist/types/components/picker/categories.d.ts +3 -3
- package/dist/types/components/picker/styles.d.ts +1 -1
- package/dist/types/components/typeahead/EmojiTypeAheadComponent.d.ts +1 -1
- package/dist/types/components/uploader/EmojiUploader.d.ts +1 -1
- package/dist/types/context/EmojiContext.d.ts +1 -1
- package/dist/types/context/EmojiContextProvider.d.ts +1 -1
- package/dist/types/hooks/useInView.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +46 -36
- package/dist/types/i18n/da.d.ts +46 -36
- package/dist/types/i18n/de.d.ts +46 -36
- package/dist/types/i18n/en.d.ts +46 -36
- package/dist/types/i18n/en_GB.d.ts +46 -36
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +46 -36
- package/dist/types/i18n/et.d.ts +6 -6
- package/dist/types/i18n/fi.d.ts +46 -36
- package/dist/types/i18n/fr.d.ts +46 -36
- package/dist/types/i18n/hu.d.ts +46 -36
- package/dist/types/i18n/it.d.ts +46 -36
- package/dist/types/i18n/ja.d.ts +46 -36
- package/dist/types/i18n/ko.d.ts +46 -36
- package/dist/types/i18n/nb.d.ts +46 -36
- package/dist/types/i18n/nl.d.ts +46 -36
- package/dist/types/i18n/pl.d.ts +46 -36
- package/dist/types/i18n/pt_BR.d.ts +46 -36
- package/dist/types/i18n/pt_PT.d.ts +6 -6
- package/dist/types/i18n/ru.d.ts +46 -36
- package/dist/types/i18n/sk.d.ts +6 -6
- package/dist/types/i18n/sv.d.ts +46 -36
- package/dist/types/i18n/th.d.ts +46 -36
- package/dist/types/i18n/tr.d.ts +46 -36
- package/dist/types/i18n/uk.d.ts +46 -36
- package/dist/types/i18n/vi.d.ts +46 -36
- package/dist/types/i18n/zh.d.ts +46 -36
- package/dist/types/i18n/zh_TW.d.ts +46 -36
- package/dist/types/types.d.ts +10 -10
- package/dist/types/util/analytics/analytics.d.ts +8 -8
- package/dist/types/util/analytics/samplingUfo.d.ts +1 -1
- package/dist/types/util/analytics/useSampledUFOComponentExperience.d.ts +1 -1
- package/dist/types/util/browser-support.d.ts +1 -1
- package/dist/types/util/storage-available.d.ts +1 -1
- package/dist/types/util/type-helpers.d.ts +3 -3
- package/element/package.json +2 -2
- package/package.json +28 -20
- package/picker/package.json +2 -2
- package/resource/package.json +2 -2
- package/typeahead/package.json +2 -2
- package/types/package.json +2 -2
- package/utils/package.json +2 -2
package/dist/esm/i18n/zh.js
CHANGED
|
@@ -7,38 +7,48 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//Chinese (Simplified)
|
|
9
9
|
export default {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
10
|
+
'fabric.emoji.add.custom.emoji.label': '添加您自己的表情符号',
|
|
11
|
+
'fabric.emoji.add.label': '添加表情符号',
|
|
12
|
+
'fabric.emoji.cancel.label': '取消',
|
|
13
|
+
'fabric.emoji.categories.label': '选择表情类别',
|
|
14
|
+
'fabric.emoji.categories.search.results': '搜索结果',
|
|
15
|
+
'fabric.emoji.category.activity': '活动',
|
|
16
|
+
'fabric.emoji.category.all.uploads': '所有上传',
|
|
17
|
+
'fabric.emoji.category.flags': '标记',
|
|
18
|
+
'fabric.emoji.category.foods': '食物和饮品',
|
|
19
|
+
'fabric.emoji.category.frequent': '频率',
|
|
20
|
+
'fabric.emoji.category.nature': '性质',
|
|
21
|
+
'fabric.emoji.category.objects': '对象',
|
|
22
|
+
'fabric.emoji.category.people': '人员',
|
|
23
|
+
'fabric.emoji.category.places': '旅行和地点',
|
|
24
|
+
'fabric.emoji.category.productivity': '生产力',
|
|
25
|
+
'fabric.emoji.category.symbols': '符号',
|
|
26
|
+
'fabric.emoji.category.user.uploads': '您的上传',
|
|
27
|
+
'fabric.emoji.choose.file.screenReaderDescription': '为表情选择一个文件。JPG、PNG 或 GIF。文件大小不得超过 1 MB',
|
|
28
|
+
'fabric.emoji.choose.file.title': '选择文件',
|
|
29
|
+
'fabric.emoji.delete.description': '此表情符号的所有现有实例将替换为{emojiShortName}',
|
|
30
|
+
'fabric.emoji.delete.label': '删除',
|
|
31
|
+
'fabric.emoji.delete.screenreader.tooltip': '要删除 {shortName} 表情,请按 Backspace 键',
|
|
32
|
+
'fabric.emoji.delete.title': '删除表情符号',
|
|
33
|
+
'fabric.emoji.delete.tooltip': '删除',
|
|
34
|
+
'fabric.emoji.emojipicker.emoi.roledescription': '表情按钮',
|
|
35
|
+
'fabric.emoji.emojipicker.error': '错误!',
|
|
36
|
+
'fabric.emoji.error.delete.failed': '删除失败',
|
|
37
|
+
'fabric.emoji.error.image.too.big': '选择的图像超过 1 MB',
|
|
38
|
+
'fabric.emoji.error.invalid.image': '选择的图像无效',
|
|
39
|
+
'fabric.emoji.error.upload.failed': '上传失败',
|
|
40
|
+
'fabric.emoji.image.requirements': 'JPG、PNG 或 GIF 最大为 1 MB。',
|
|
41
|
+
'fabric.emoji.name.ariaLabel': '为新表情符号输入名称',
|
|
42
|
+
'fabric.emoji.picker': '表情选择器',
|
|
43
|
+
'fabric.emoji.pickerlist.grid': '{showSearchResults, select, true {搜索结果} other {表情}}',
|
|
44
|
+
'fabric.emoji.pickerlist.tabpanel': '表情操作和列表面板',
|
|
45
|
+
'fabric.emoji.placeholder': '例如,您好',
|
|
46
|
+
'fabric.emoji.preview': '您的新表情符号{emoji}看起来很棒',
|
|
47
|
+
'fabric.emoji.preview.title': '预览',
|
|
48
|
+
'fabric.emoji.retry.label': '重试',
|
|
49
|
+
'fabric.emoji.search.label': '表情名称',
|
|
50
|
+
'fabric.emoji.search.placeholder': '搜索',
|
|
51
|
+
'fabric.emoji.search.status': '查看所有表情',
|
|
52
|
+
'fabric.emoji.select.skin.list.ariaLabel': '肤色选择器',
|
|
53
|
+
'fabric.emoji.select.skin.tone.ariaLabel': '选择您的肤色,已选 {selectedTone}'
|
|
44
54
|
};
|
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -7,38 +7,48 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//Chinese (Traditional)
|
|
9
9
|
export default {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
10
|
+
'fabric.emoji.add.custom.emoji.label': '新增專屬的表情符號',
|
|
11
|
+
'fabric.emoji.add.label': '新增表情符號',
|
|
12
|
+
'fabric.emoji.cancel.label': '取消',
|
|
13
|
+
'fabric.emoji.categories.label': '選擇表情符號類別',
|
|
14
|
+
'fabric.emoji.categories.search.results': '搜尋結果',
|
|
15
|
+
'fabric.emoji.category.activity': '活動',
|
|
16
|
+
'fabric.emoji.category.all.uploads': '所有上傳項目',
|
|
17
|
+
'fabric.emoji.category.flags': '旗標',
|
|
18
|
+
'fabric.emoji.category.foods': '食物和飲料',
|
|
19
|
+
'fabric.emoji.category.frequent': '常用項目',
|
|
20
|
+
'fabric.emoji.category.nature': '自然',
|
|
21
|
+
'fabric.emoji.category.objects': '物體',
|
|
22
|
+
'fabric.emoji.category.people': '人員',
|
|
23
|
+
'fabric.emoji.category.places': '旅遊和地點',
|
|
24
|
+
'fabric.emoji.category.productivity': '生產力',
|
|
25
|
+
'fabric.emoji.category.symbols': '符號',
|
|
26
|
+
'fabric.emoji.category.user.uploads': '您的上傳項目',
|
|
27
|
+
'fabric.emoji.choose.file.screenReaderDescription': '選擇表情符號的檔案。JPG、PNG 或 GIF。大小上限為 1 MB',
|
|
28
|
+
'fabric.emoji.choose.file.title': '選擇檔案',
|
|
29
|
+
'fabric.emoji.delete.description': '此表情符號的所有現有執行個體都將取代為 {emojiShortName}',
|
|
30
|
+
'fabric.emoji.delete.label': '移除',
|
|
31
|
+
'fabric.emoji.delete.screenreader.tooltip': '若要刪除 {shortName} 表情符號,請按退格鍵',
|
|
32
|
+
'fabric.emoji.delete.title': '移除表情符號',
|
|
33
|
+
'fabric.emoji.delete.tooltip': '刪除',
|
|
34
|
+
'fabric.emoji.emojipicker.emoi.roledescription': '表情符號按鈕',
|
|
35
|
+
'fabric.emoji.emojipicker.error': '錯誤!',
|
|
36
|
+
'fabric.emoji.error.delete.failed': '移除失敗',
|
|
37
|
+
'fabric.emoji.error.image.too.big': '所選的影像超過 1 MB',
|
|
38
|
+
'fabric.emoji.error.invalid.image': '所選的影像無效',
|
|
39
|
+
'fabric.emoji.error.upload.failed': '上傳失敗',
|
|
40
|
+
'fabric.emoji.image.requirements': 'JPG、PNG 或 GIF。大小上限為 1 MB。',
|
|
41
|
+
'fabric.emoji.name.ariaLabel': '請輸入新表情符號的名稱',
|
|
42
|
+
'fabric.emoji.picker': '表情符號選取器',
|
|
43
|
+
'fabric.emoji.pickerlist.grid': '{showSearchResults, select, true {搜尋結果} other {表情符號}}',
|
|
44
|
+
'fabric.emoji.pickerlist.tabpanel': '表情符號動作和列表面板',
|
|
45
|
+
'fabric.emoji.placeholder': '例如您好',
|
|
46
|
+
'fabric.emoji.preview': '新的表情符號 {emoji} 看起來很棒',
|
|
47
|
+
'fabric.emoji.preview.title': '預覽',
|
|
48
|
+
'fabric.emoji.retry.label': '重試',
|
|
49
|
+
'fabric.emoji.search.label': '表情符號名稱',
|
|
50
|
+
'fabric.emoji.search.placeholder': '搜尋',
|
|
51
|
+
'fabric.emoji.search.status': '查看所有表情符號',
|
|
52
|
+
'fabric.emoji.select.skin.list.ariaLabel': '膚色選取器',
|
|
53
|
+
'fabric.emoji.select.skin.tone.ariaLabel': '選取膚色,已選取 {selectedTone}'
|
|
44
54
|
};
|
package/dist/esm/types.js
CHANGED
|
@@ -28,50 +28,49 @@
|
|
|
28
28
|
* The expected response from an Emoji service.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
export var SearchSort
|
|
32
|
-
(function (SearchSort) {
|
|
31
|
+
export var SearchSort = /*#__PURE__*/function (SearchSort) {
|
|
33
32
|
SearchSort[SearchSort["None"] = 0] = "None";
|
|
34
33
|
SearchSort[SearchSort["Default"] = 1] = "Default";
|
|
35
34
|
SearchSort[SearchSort["UsageFrequency"] = 2] = "UsageFrequency";
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
return SearchSort;
|
|
36
|
+
}({});
|
|
37
|
+
export var SearchSourceTypes = /*#__PURE__*/function (SearchSourceTypes) {
|
|
39
38
|
SearchSourceTypes["PICKER"] = "picker";
|
|
40
39
|
SearchSourceTypes["TYPEAHEAD"] = "typeahead";
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
return SearchSourceTypes;
|
|
41
|
+
}({});
|
|
42
|
+
export var ProviderTypes = /*#__PURE__*/function (ProviderTypes) {
|
|
44
43
|
ProviderTypes["SITE"] = "SITE";
|
|
45
44
|
ProviderTypes["STANDARD"] = "STANDARD";
|
|
46
45
|
ProviderTypes["ATLASSIAN"] = "ATLASSIAN";
|
|
47
46
|
ProviderTypes["UNKNOWN"] = "UNKNOWN";
|
|
48
47
|
ProviderTypes["SINGLE"] = "SINGLE";
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
return ProviderTypes;
|
|
49
|
+
}({});
|
|
50
|
+
export var UfoExperienceName = /*#__PURE__*/function (UfoExperienceName) {
|
|
52
51
|
UfoExperienceName["EMOJI_RENDERED"] = "emoji-rendered";
|
|
53
52
|
UfoExperienceName["EMOJI_RESOURCE_FETCHED"] = "emoji-resource-fetched";
|
|
54
53
|
UfoExperienceName["EMOJI_PICKER_OPENED"] = "emoji-picker-opened";
|
|
55
54
|
UfoExperienceName["EMOJI_SELECTION_RECORDED"] = "emoji-selection-recorded";
|
|
56
55
|
UfoExperienceName["EMOJI_UPLOADED"] = "emoji-uploaded";
|
|
57
56
|
UfoExperienceName["EMOJI_SEARCHED"] = "emoji-searched";
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
return UfoExperienceName;
|
|
58
|
+
}({});
|
|
59
|
+
export var UfoComponentName = /*#__PURE__*/function (UfoComponentName) {
|
|
61
60
|
UfoComponentName["EMOJI"] = "emoji";
|
|
62
61
|
UfoComponentName["EMOJI_PICKER"] = "emoji-picker";
|
|
63
62
|
UfoComponentName["EMOJI_PROVIDER"] = "emoji-provider";
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
return UfoComponentName;
|
|
64
|
+
}({});
|
|
65
|
+
export var UfoEmojiTimingsKeys = /*#__PURE__*/function (UfoEmojiTimingsKeys) {
|
|
67
66
|
UfoEmojiTimingsKeys["FMP"] = "fmp";
|
|
68
67
|
UfoEmojiTimingsKeys["MOUNTED"] = "emoji-mount";
|
|
69
68
|
UfoEmojiTimingsKeys["METADATA"] = "emoji-metadata";
|
|
70
69
|
UfoEmojiTimingsKeys["MEDIADATA"] = "emoji-media";
|
|
71
70
|
UfoEmojiTimingsKeys["ONLOAD"] = "emoji-onload";
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
return UfoEmojiTimingsKeys;
|
|
72
|
+
}({});
|
|
73
|
+
export var UfoEmojiTimings = /*#__PURE__*/function (UfoEmojiTimings) {
|
|
75
74
|
UfoEmojiTimings["FMP_END"] = "fmp";
|
|
76
75
|
UfoEmojiTimings["MOUNTED_END"] = "emoji-mount_end";
|
|
77
76
|
UfoEmojiTimings["METADATA_START"] = "emoji-metadata_start";
|
|
@@ -80,4 +79,5 @@ export var UfoEmojiTimings;
|
|
|
80
79
|
UfoEmojiTimings["MEDIA_END"] = "emoji-media_end";
|
|
81
80
|
UfoEmojiTimings["ONLOAD_START"] = "emoji-onload_start";
|
|
82
81
|
UfoEmojiTimings["ONLOAD_END"] = "emoji-onload_end";
|
|
83
|
-
|
|
82
|
+
return UfoEmojiTimings;
|
|
83
|
+
}({});
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
5
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
6
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
8
7
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
10
9
|
export var ufoExperiencesSampled = {};
|
|
11
10
|
export var clearSampled = function clearSampled() {
|
|
12
11
|
var _iterator = _createForOfIteratorHelper(Object.getOwnPropertyNames(ufoExperiencesSampled)),
|
|
@@ -68,39 +67,37 @@ export var withSampling = function withSampling(ufoExperience) {
|
|
|
68
67
|
}
|
|
69
68
|
};
|
|
70
69
|
var start = /*#__PURE__*/function () {
|
|
71
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
70
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options) {
|
|
72
71
|
var isSampled;
|
|
73
|
-
return _regeneratorRuntime
|
|
74
|
-
while (1) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return _context.stop();
|
|
103
|
-
}
|
|
72
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
73
|
+
while (1) switch (_context.prev = _context.next) {
|
|
74
|
+
case 0:
|
|
75
|
+
if (!hasSampledFromStart(ufoExperience)) {
|
|
76
|
+
_context.next = 2;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
return _context.abrupt("return");
|
|
80
|
+
case 2:
|
|
81
|
+
isSampled = options.samplingFunc || isExperienceSampled;
|
|
82
|
+
if (isSampled(options.samplingRate)) {
|
|
83
|
+
_context.next = 7;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
if (ufoExperience.instanceId) {
|
|
87
|
+
ufoExperiencesSampled[ufoExperience.id].sampledInstance[ufoExperience.instanceId] = false;
|
|
88
|
+
}
|
|
89
|
+
ufoExperiencesSampled[ufoExperience.id].sampled = false;
|
|
90
|
+
return _context.abrupt("return");
|
|
91
|
+
case 7:
|
|
92
|
+
// update sampled records
|
|
93
|
+
if (ufoExperience.instanceId) {
|
|
94
|
+
ufoExperiencesSampled[ufoExperience.id].sampledInstance[ufoExperience.instanceId] = true;
|
|
95
|
+
ufoExperiencesSampled[ufoExperience.id].sampled = true;
|
|
96
|
+
}
|
|
97
|
+
return _context.abrupt("return", ufoExperience.start(options.startTime));
|
|
98
|
+
case 9:
|
|
99
|
+
case "end":
|
|
100
|
+
return _context.stop();
|
|
104
101
|
}
|
|
105
102
|
}, _callee);
|
|
106
103
|
}));
|
|
@@ -109,22 +106,20 @@ export var withSampling = function withSampling(ufoExperience) {
|
|
|
109
106
|
};
|
|
110
107
|
}();
|
|
111
108
|
var success = /*#__PURE__*/function () {
|
|
112
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
113
|
-
return _regeneratorRuntime
|
|
114
|
-
while (1) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
return _context2.stop();
|
|
127
|
-
}
|
|
109
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(config) {
|
|
110
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
111
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
112
|
+
case 0:
|
|
113
|
+
if (hasSampledFromStart(ufoExperience)) {
|
|
114
|
+
_context2.next = 2;
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
return _context2.abrupt("return", null);
|
|
118
|
+
case 2:
|
|
119
|
+
return _context2.abrupt("return", ufoExperience.success(config));
|
|
120
|
+
case 3:
|
|
121
|
+
case "end":
|
|
122
|
+
return _context2.stop();
|
|
128
123
|
}
|
|
129
124
|
}, _callee2);
|
|
130
125
|
}));
|
|
@@ -133,22 +128,20 @@ export var withSampling = function withSampling(ufoExperience) {
|
|
|
133
128
|
};
|
|
134
129
|
}();
|
|
135
130
|
var failure = /*#__PURE__*/function () {
|
|
136
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
137
|
-
return _regeneratorRuntime
|
|
138
|
-
while (1) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
return _context3.stop();
|
|
151
|
-
}
|
|
131
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(config) {
|
|
132
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
133
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
134
|
+
case 0:
|
|
135
|
+
if (hasSampledFromStart(ufoExperience)) {
|
|
136
|
+
_context3.next = 2;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
return _context3.abrupt("return", null);
|
|
140
|
+
case 2:
|
|
141
|
+
return _context3.abrupt("return", ufoExperience.failure(config));
|
|
142
|
+
case 3:
|
|
143
|
+
case "end":
|
|
144
|
+
return _context3.stop();
|
|
152
145
|
}
|
|
153
146
|
}, _callee3);
|
|
154
147
|
}));
|
|
@@ -157,22 +150,20 @@ export var withSampling = function withSampling(ufoExperience) {
|
|
|
157
150
|
};
|
|
158
151
|
}();
|
|
159
152
|
var abort = /*#__PURE__*/function () {
|
|
160
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
161
|
-
return _regeneratorRuntime
|
|
162
|
-
while (1) {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
return _context4.stop();
|
|
175
|
-
}
|
|
153
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(config) {
|
|
154
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
155
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
156
|
+
case 0:
|
|
157
|
+
if (hasSampledFromStart(ufoExperience)) {
|
|
158
|
+
_context4.next = 2;
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
return _context4.abrupt("return", null);
|
|
162
|
+
case 2:
|
|
163
|
+
return _context4.abrupt("return", ufoExperience.abort(config));
|
|
164
|
+
case 3:
|
|
165
|
+
case "end":
|
|
166
|
+
return _context4.stop();
|
|
176
167
|
}
|
|
177
168
|
}, _callee4);
|
|
178
169
|
}));
|
|
@@ -26,10 +26,7 @@ export var emojiPickerHeightWithPreview = emojiPickerHeight + emojiPickerPreview
|
|
|
26
26
|
export var localStoragePrefix = 'fabric.emoji';
|
|
27
27
|
export var selectedToneStorageKey = "".concat(localStoragePrefix, ".selectedTone");
|
|
28
28
|
export var defaultCategories = ['PEOPLE', 'NATURE', 'FOODS', 'ACTIVITY', 'PLACES', 'OBJECTS', 'SYMBOLS', 'FLAGS'];
|
|
29
|
-
export var KeyboardKeys
|
|
30
|
-
|
|
31
|
-
// Used to search available emoji in the picker list to focus
|
|
32
|
-
(function (KeyboardKeys) {
|
|
29
|
+
export var KeyboardKeys = /*#__PURE__*/function (KeyboardKeys) {
|
|
33
30
|
KeyboardKeys["ArrowLeft"] = "ArrowLeft";
|
|
34
31
|
KeyboardKeys["ArrowRight"] = "ArrowRight";
|
|
35
32
|
KeyboardKeys["ArrowUp"] = "ArrowUp";
|
|
@@ -42,14 +39,17 @@ export var KeyboardKeys;
|
|
|
42
39
|
KeyboardKeys["Tab"] = "Tab";
|
|
43
40
|
KeyboardKeys["Space"] = " ";
|
|
44
41
|
KeyboardKeys["Backspace"] = "Backspace";
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
return KeyboardKeys;
|
|
43
|
+
}({});
|
|
44
|
+
|
|
45
|
+
// Used to search available emoji in the picker list to focus
|
|
46
|
+
export var KeyboardNavigationDirection = /*#__PURE__*/function (KeyboardNavigationDirection) {
|
|
48
47
|
KeyboardNavigationDirection["Down"] = "Down";
|
|
49
48
|
KeyboardNavigationDirection["Up"] = "Up";
|
|
50
49
|
KeyboardNavigationDirection["Left"] = "Left";
|
|
51
50
|
KeyboardNavigationDirection["Right"] = "Right";
|
|
52
|
-
|
|
51
|
+
return KeyboardNavigationDirection;
|
|
52
|
+
}({});
|
|
53
53
|
export var CATEGORYSELECTOR_KEYBOARD_KEYS_SUPPORTED = [KeyboardKeys.ArrowRight, KeyboardKeys.ArrowLeft, KeyboardKeys.Home, KeyboardKeys.End];
|
|
54
54
|
export var EMOJI_KEYBOARD_KEYS_SUPPORTED = [KeyboardKeys.Enter, KeyboardKeys.Backspace, KeyboardKeys.Space];
|
|
55
55
|
export var TONESELECTOR_KEYBOARD_KEYS_SUPPORTED = [KeyboardKeys.Enter, KeyboardKeys.Tab, KeyboardKeys.Space];
|
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CategoryId } from '../components/picker/categories';
|
|
2
2
|
import { EmojiDescription, EmojiSearchResult, OptionalEmojiDescription, SearchOptions } from '../types';
|
|
3
3
|
import { UsageFrequencyTracker } from './internal/UsageFrequencyTracker';
|
|
4
|
-
export declare const getEmojiVariation: (emoji: EmojiDescription, options?: SearchOptions
|
|
4
|
+
export declare const getEmojiVariation: (emoji: EmojiDescription, options?: SearchOptions) => EmojiDescription;
|
|
5
5
|
export default class EmojiRepository {
|
|
6
6
|
private emojis;
|
|
7
7
|
private fullSearch;
|
|
@@ -9,16 +9,16 @@ export interface SingleEmojiApiLoaderConfig extends Omit<ServiceConfig, 'url'> {
|
|
|
9
9
|
export interface OptimisticImageApiLoaderConfig extends Omit<ServiceConfig, 'url'> {
|
|
10
10
|
getUrl: (emojiId: EmojiId) => string;
|
|
11
11
|
}
|
|
12
|
-
export declare const emojiRequest: (provider: EmojiLoaderConfig, options?: RequestServiceOptions
|
|
12
|
+
export declare const emojiRequest: (provider: EmojiLoaderConfig, options?: RequestServiceOptions) => Promise<EmojiServiceResponse>;
|
|
13
13
|
export declare const getPixelRatio: () => number;
|
|
14
14
|
export declare const getAltRepresentation: (reps: AltRepresentations) => EmojiServiceRepresentation;
|
|
15
|
-
export declare const isMediaApiUrl: (url: string, meta?: EmojiMeta
|
|
16
|
-
export declare const denormaliseServiceRepresentation: (representation: EmojiServiceRepresentation, meta?: EmojiMeta
|
|
17
|
-
export declare const denormaliseServiceAltRepresentation: (altReps?: AltRepresentations
|
|
18
|
-
export declare const denormaliseSkinEmoji: (emoji: EmojiServiceDescriptionWithVariations, meta?: EmojiMeta
|
|
15
|
+
export declare const isMediaApiUrl: (url: string, meta?: EmojiMeta) => boolean;
|
|
16
|
+
export declare const denormaliseServiceRepresentation: (representation: EmojiServiceRepresentation, meta?: EmojiMeta) => EmojiRepresentation;
|
|
17
|
+
export declare const denormaliseServiceAltRepresentation: (altReps?: AltRepresentations, meta?: EmojiMeta) => EmojiRepresentation;
|
|
18
|
+
export declare const denormaliseSkinEmoji: (emoji: EmojiServiceDescriptionWithVariations, meta?: EmojiMeta) => EmojiDescriptionWithVariations[];
|
|
19
19
|
/**
|
|
20
20
|
* Denormalised an emoji response (emojis + sprite references) into an array of
|
|
21
21
|
* emoji with local sprite definitions.
|
|
22
22
|
*/
|
|
23
23
|
export declare const denormaliseEmojiServiceResponse: (emojiData: EmojiServiceResponse) => EmojiResponse;
|
|
24
|
-
export declare const shouldUseAltRepresentation: (emoji: EmojiDescription, fitToHeight?: number
|
|
24
|
+
export declare const shouldUseAltRepresentation: (emoji: EmojiDescription, fitToHeight?: number) => boolean;
|
|
@@ -76,7 +76,7 @@ export declare class UsageFrequencyComparator implements EmojiComparator {
|
|
|
76
76
|
*/
|
|
77
77
|
private getPositionInOrder;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
type KeysOfType<T, TProp> = {
|
|
80
80
|
[P in keyof T]: T[P] extends TProp | undefined ? P : never;
|
|
81
81
|
}[keyof T];
|
|
82
82
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MediaApiToken } from '../../types';
|
|
2
2
|
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
3
3
|
export declare const EXPIRES_AT_LATENCY_IN_SECONDS = 30;
|
|
4
|
-
export
|
|
4
|
+
export type TokenType = 'read' | 'upload';
|
|
5
5
|
export default class TokenManager {
|
|
6
6
|
private siteServiceConfig;
|
|
7
7
|
private tokens;
|
|
@@ -26,8 +26,8 @@ export interface Props {
|
|
|
26
26
|
}
|
|
27
27
|
export declare const emojiActionsTestId = "emoji-actions";
|
|
28
28
|
export declare const uploadEmojiTestId = "upload-emoji";
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
type PropsWithWrappedComponentPropsType = Props & WrappedComponentProps;
|
|
30
|
+
type EmojiActionsProps = PropsWithWrappedComponentPropsType;
|
|
31
31
|
export declare const EmojiActions: FC<EmojiActionsProps>;
|
|
32
32
|
declare const _default: FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
33
33
|
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
@@ -13,7 +13,7 @@ export interface Props {
|
|
|
13
13
|
}
|
|
14
14
|
export default class Scrollable extends PureComponent<Props, {}> {
|
|
15
15
|
private scrollableDiv;
|
|
16
|
-
reveal: (child: HTMLElement, forceToTop?: boolean
|
|
16
|
+
reveal: (child: HTMLElement, forceToTop?: boolean) => void;
|
|
17
17
|
scrollToBottom: () => void;
|
|
18
18
|
private handleScroll;
|
|
19
19
|
private handleRef;
|