@atlaskit/emoji 69.0.7 → 69.0.9
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/dist/cjs/components/common/CachingEmoji.js +20 -60
- package/dist/cjs/components/common/DeletableEmojiTooltipContent.js +4 -13
- package/dist/cjs/components/common/DeleteButton.js +18 -20
- package/dist/cjs/components/common/Emoji.js +58 -55
- package/dist/cjs/components/common/EmojiActions.js +104 -108
- package/dist/cjs/components/common/EmojiDeletePreview.js +33 -26
- package/dist/cjs/components/common/EmojiErrorMessage.js +23 -21
- package/dist/cjs/components/common/EmojiFallback.js +8 -19
- package/dist/cjs/components/common/EmojiPlaceholder.js +22 -16
- package/dist/cjs/components/common/EmojiPreviewComponent.js +34 -25
- package/dist/cjs/components/common/EmojiRadioButton.js +33 -36
- package/dist/cjs/components/common/EmojiUploadPicker.js +78 -75
- package/dist/cjs/components/common/EmojiUploadPreview.js +59 -48
- package/dist/cjs/components/common/ResourcedEmojiComponent.js +3 -18
- package/dist/cjs/components/common/RetryableButton.js +20 -26
- package/dist/cjs/components/common/Scrollable.js +21 -24
- package/dist/cjs/components/common/TonePreviewButton.js +21 -20
- package/dist/cjs/components/common/ToneSelector.js +19 -18
- package/dist/cjs/components/common/ToolTipContentWithKeymap.js +10 -11
- package/dist/cjs/components/common/styles.js +2 -514
- package/dist/cjs/components/picker/CategorySelector.js +28 -45
- package/dist/cjs/components/picker/EmojiPicker.js +17 -16
- package/dist/cjs/components/picker/EmojiPickerCategoryHeading.js +16 -11
- package/dist/cjs/components/picker/EmojiPickerComponent.js +107 -86
- package/dist/cjs/components/picker/EmojiPickerEmojiRow.js +39 -42
- package/dist/cjs/components/picker/EmojiPickerFooter.js +19 -16
- package/dist/cjs/components/picker/EmojiPickerList.js +73 -190
- package/dist/cjs/components/picker/EmojiPickerListSearch.js +41 -51
- package/dist/cjs/components/picker/EmojiPickerTabPanel.js +9 -16
- package/dist/cjs/components/picker/EmojiPickerVirtualItems.js +17 -18
- package/dist/cjs/components/picker/VirtualList.js +23 -32
- package/dist/cjs/components/typeahead/EmojiTypeAheadItemInternalCompiled.js +1 -1
- package/dist/cjs/components/typeahead/EmojiTypeAheadList.js +6 -20
- package/dist/cjs/components/uploader/EmojiUploadComponentCompiled.js +1 -1
- package/dist/cjs/element.js +15 -9
- package/dist/cjs/index.js +10 -7
- package/dist/cjs/picker.js +7 -5
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/CachingEmoji.js +23 -63
- package/dist/es2019/components/common/DeletableEmojiTooltipContent.js +5 -14
- package/dist/es2019/components/common/DeleteButton.js +16 -21
- package/dist/es2019/components/common/Emoji.js +51 -55
- package/dist/es2019/components/common/EmojiActions.js +87 -104
- package/dist/es2019/components/common/EmojiDeletePreview.js +28 -26
- package/dist/es2019/components/common/EmojiErrorMessage.js +20 -20
- package/dist/es2019/components/common/EmojiFallback.js +8 -17
- package/dist/es2019/components/common/EmojiPlaceholder.js +11 -13
- package/dist/es2019/components/common/EmojiPreviewComponent.js +24 -24
- package/dist/es2019/components/common/EmojiRadioButton.js +23 -30
- package/dist/es2019/components/common/EmojiUploadPicker.js +72 -70
- package/dist/es2019/components/common/EmojiUploadPreview.js +48 -48
- package/dist/es2019/components/common/ResourcedEmojiComponent.js +5 -20
- package/dist/es2019/components/common/RetryableButton.js +16 -23
- package/dist/es2019/components/common/Scrollable.js +15 -23
- package/dist/es2019/components/common/TonePreviewButton.js +12 -14
- package/dist/es2019/components/common/ToneSelector.js +9 -13
- package/dist/es2019/components/common/ToolTipContentWithKeymap.js +7 -9
- package/dist/es2019/components/common/styles.js +1 -551
- package/dist/es2019/components/picker/CategorySelector.js +25 -43
- package/dist/es2019/components/picker/EmojiPicker.js +13 -18
- package/dist/es2019/components/picker/EmojiPickerCategoryHeading.js +11 -11
- package/dist/es2019/components/picker/EmojiPickerComponent.js +97 -86
- package/dist/es2019/components/picker/EmojiPickerEmojiRow.js +37 -41
- package/dist/es2019/components/picker/EmojiPickerFooter.js +11 -13
- package/dist/es2019/components/picker/EmojiPickerList.js +65 -178
- package/dist/es2019/components/picker/EmojiPickerListSearch.js +37 -45
- package/dist/es2019/components/picker/EmojiPickerTabPanel.js +8 -17
- package/dist/es2019/components/picker/EmojiPickerVirtualItems.js +12 -18
- package/dist/es2019/components/picker/VirtualList.js +13 -24
- package/dist/es2019/components/typeahead/EmojiTypeAheadItemInternalCompiled.js +1 -1
- package/dist/es2019/components/typeahead/EmojiTypeAheadList.js +7 -21
- package/dist/es2019/components/uploader/EmojiUploadComponentCompiled.js +1 -1
- package/dist/es2019/element.js +2 -9
- package/dist/es2019/index.js +3 -2
- package/dist/es2019/picker.js +1 -5
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/CachingEmoji.js +23 -63
- package/dist/esm/components/common/DeletableEmojiTooltipContent.js +5 -14
- package/dist/esm/components/common/DeleteButton.js +16 -21
- package/dist/esm/components/common/Emoji.js +58 -57
- package/dist/esm/components/common/EmojiActions.js +102 -107
- package/dist/esm/components/common/EmojiDeletePreview.js +31 -26
- package/dist/esm/components/common/EmojiErrorMessage.js +20 -20
- package/dist/esm/components/common/EmojiFallback.js +8 -17
- package/dist/esm/components/common/EmojiPlaceholder.js +19 -16
- package/dist/esm/components/common/EmojiPreviewComponent.js +31 -24
- package/dist/esm/components/common/EmojiRadioButton.js +33 -34
- package/dist/esm/components/common/EmojiUploadPicker.js +77 -72
- package/dist/esm/components/common/EmojiUploadPreview.js +54 -48
- package/dist/esm/components/common/ResourcedEmojiComponent.js +5 -20
- package/dist/esm/components/common/RetryableButton.js +17 -24
- package/dist/esm/components/common/Scrollable.js +19 -23
- package/dist/esm/components/common/TonePreviewButton.js +17 -17
- package/dist/esm/components/common/ToneSelector.js +9 -13
- package/dist/esm/components/common/ToolTipContentWithKeymap.js +10 -9
- package/dist/esm/components/common/styles.js +1 -511
- package/dist/esm/components/picker/CategorySelector.js +28 -43
- package/dist/esm/components/picker/EmojiPicker.js +16 -18
- package/dist/esm/components/picker/EmojiPickerCategoryHeading.js +14 -11
- package/dist/esm/components/picker/EmojiPickerComponent.js +102 -86
- package/dist/esm/components/picker/EmojiPickerEmojiRow.js +35 -39
- package/dist/esm/components/picker/EmojiPickerFooter.js +15 -13
- package/dist/esm/components/picker/EmojiPickerList.js +69 -186
- package/dist/esm/components/picker/EmojiPickerListSearch.js +37 -45
- package/dist/esm/components/picker/EmojiPickerTabPanel.js +8 -17
- package/dist/esm/components/picker/EmojiPickerVirtualItems.js +13 -20
- package/dist/esm/components/picker/VirtualList.js +13 -24
- package/dist/esm/components/typeahead/EmojiTypeAheadItemInternalCompiled.js +1 -1
- package/dist/esm/components/typeahead/EmojiTypeAheadList.js +7 -21
- package/dist/esm/components/uploader/EmojiUploadComponentCompiled.js +1 -1
- package/dist/esm/element.js +2 -9
- package/dist/esm/index.js +3 -2
- package/dist/esm/picker.js +1 -5
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/dist/types/components/common/DeleteButton.d.ts +2 -6
- package/dist/types/components/common/Emoji.d.ts +3 -4
- package/dist/types/components/common/EmojiActions.d.ts +1 -2
- package/dist/types/components/common/EmojiErrorMessage.d.ts +4 -7
- package/dist/types/components/common/EmojiFallback.d.ts +1 -2
- package/dist/types/components/common/EmojiPlaceholder.d.ts +2 -6
- package/dist/types/components/common/EmojiPreviewComponent.d.ts +2 -6
- package/dist/types/components/common/RetryableButton.d.ts +2 -2
- package/dist/types/components/common/Scrollable.d.ts +1 -6
- package/dist/types/components/common/ToneSelector.d.ts +1 -6
- package/dist/types/components/common/ToolTipContentWithKeymap.d.ts +1 -2
- package/dist/types/components/common/styles.d.ts +0 -42
- package/dist/types/components/picker/CategorySelector.d.ts +2 -2
- package/dist/types/components/picker/EmojiPicker.d.ts +4 -4
- package/dist/types/components/picker/EmojiPickerCategoryHeading.d.ts +2 -6
- package/dist/types/components/picker/EmojiPickerComponent.d.ts +1 -2
- package/dist/types/components/picker/EmojiPickerEmojiRow.d.ts +1 -2
- package/dist/types/components/picker/EmojiPickerFooter.d.ts +1 -2
- package/dist/types/components/picker/EmojiPickerListSearch.d.ts +2 -2
- package/dist/types/components/picker/EmojiPickerVirtualItems.d.ts +4 -5
- package/dist/types/components/typeahead/EmojiTypeAheadList.d.ts +2 -4
- package/dist/types/element.d.ts +2 -5
- package/dist/types/index.d.ts +3 -2
- package/dist/types/picker.d.ts +1 -3
- package/dist/types-ts4.5/components/common/DeleteButton.d.ts +2 -6
- package/dist/types-ts4.5/components/common/Emoji.d.ts +3 -4
- package/dist/types-ts4.5/components/common/EmojiActions.d.ts +1 -2
- package/dist/types-ts4.5/components/common/EmojiErrorMessage.d.ts +4 -7
- package/dist/types-ts4.5/components/common/EmojiFallback.d.ts +1 -2
- package/dist/types-ts4.5/components/common/EmojiPlaceholder.d.ts +2 -6
- package/dist/types-ts4.5/components/common/EmojiPreviewComponent.d.ts +2 -6
- package/dist/types-ts4.5/components/common/RetryableButton.d.ts +2 -2
- package/dist/types-ts4.5/components/common/Scrollable.d.ts +1 -6
- package/dist/types-ts4.5/components/common/ToneSelector.d.ts +1 -6
- package/dist/types-ts4.5/components/common/ToolTipContentWithKeymap.d.ts +1 -2
- package/dist/types-ts4.5/components/common/styles.d.ts +0 -42
- package/dist/types-ts4.5/components/picker/CategorySelector.d.ts +2 -2
- package/dist/types-ts4.5/components/picker/EmojiPicker.d.ts +4 -4
- package/dist/types-ts4.5/components/picker/EmojiPickerCategoryHeading.d.ts +2 -6
- package/dist/types-ts4.5/components/picker/EmojiPickerComponent.d.ts +1 -2
- package/dist/types-ts4.5/components/picker/EmojiPickerEmojiRow.d.ts +1 -2
- package/dist/types-ts4.5/components/picker/EmojiPickerFooter.d.ts +1 -2
- package/dist/types-ts4.5/components/picker/EmojiPickerListSearch.d.ts +2 -2
- package/dist/types-ts4.5/components/picker/EmojiPickerVirtualItems.d.ts +4 -5
- package/dist/types-ts4.5/components/typeahead/EmojiTypeAheadList.d.ts +2 -4
- package/dist/types-ts4.5/element.d.ts +2 -5
- package/dist/types-ts4.5/index.d.ts +3 -2
- package/dist/types-ts4.5/picker.d.ts +1 -3
- package/package.json +4 -4
- package/dist/cjs/components/compiled/common/DeleteButton.js +0 -52
- package/dist/cjs/components/compiled/common/Emoji.js +0 -380
- package/dist/cjs/components/compiled/common/EmojiActions.js +0 -220
- package/dist/cjs/components/compiled/common/EmojiDeletePreview.js +0 -152
- package/dist/cjs/components/compiled/common/EmojiErrorMessage.js +0 -58
- package/dist/cjs/components/compiled/common/EmojiFallback.js +0 -36
- package/dist/cjs/components/compiled/common/EmojiPlaceholder.js +0 -68
- package/dist/cjs/components/compiled/common/EmojiPreviewComponent.js +0 -45
- package/dist/cjs/components/compiled/common/EmojiRadioButton.js +0 -72
- package/dist/cjs/components/compiled/common/EmojiUploadPicker.js +0 -322
- package/dist/cjs/components/compiled/common/EmojiUploadPreview.js +0 -124
- package/dist/cjs/components/compiled/common/RetryableButton.js +0 -73
- package/dist/cjs/components/compiled/common/Scrollable.js +0 -97
- package/dist/cjs/components/compiled/common/TonePreviewButton.js +0 -52
- package/dist/cjs/components/compiled/common/ToneSelector.js +0 -111
- package/dist/cjs/components/compiled/common/ToolTipContentWithKeymap.js +0 -28
- package/dist/cjs/components/compiled/picker/CategorySelector.js +0 -161
- package/dist/cjs/components/compiled/picker/EmojiPicker.js +0 -109
- package/dist/cjs/components/compiled/picker/EmojiPickerCategoryHeading.js +0 -43
- package/dist/cjs/components/compiled/picker/EmojiPickerComponent.js +0 -574
- package/dist/cjs/components/compiled/picker/EmojiPickerEmojiRow.js +0 -76
- package/dist/cjs/components/compiled/picker/EmojiPickerFooter.js +0 -33
- package/dist/cjs/components/compiled/picker/EmojiPickerListSearch.js +0 -93
- package/dist/cjs/components/compiled/picker/EmojiPickerTabPanel.js +0 -60
- package/dist/cjs/components/compiled/picker/EmojiPickerVirtualItems.js +0 -86
- package/dist/cjs/components/compiled/picker/VirtualList.js +0 -303
- package/dist/cjs/components/picker/styles.js +0 -192
- package/dist/es2019/components/compiled/common/DeleteButton.js +0 -40
- package/dist/es2019/components/compiled/common/Emoji.js +0 -368
- package/dist/es2019/components/compiled/common/EmojiActions.js +0 -195
- package/dist/es2019/components/compiled/common/EmojiDeletePreview.js +0 -126
- package/dist/es2019/components/compiled/common/EmojiErrorMessage.js +0 -51
- package/dist/es2019/components/compiled/common/EmojiFallback.js +0 -33
- package/dist/es2019/components/compiled/common/EmojiPlaceholder.js +0 -51
- package/dist/es2019/components/compiled/common/EmojiPreviewComponent.js +0 -29
- package/dist/es2019/components/compiled/common/EmojiRadioButton.js +0 -58
- package/dist/es2019/components/compiled/common/EmojiUploadPicker.js +0 -276
- package/dist/es2019/components/compiled/common/EmojiUploadPreview.js +0 -96
- package/dist/es2019/components/compiled/common/RetryableButton.js +0 -67
- package/dist/es2019/components/compiled/common/Scrollable.js +0 -69
- package/dist/es2019/components/compiled/common/TonePreviewButton.js +0 -41
- package/dist/es2019/components/compiled/common/ToneSelector.js +0 -99
- package/dist/es2019/components/compiled/common/ToolTipContentWithKeymap.js +0 -17
- package/dist/es2019/components/compiled/picker/CategorySelector.js +0 -136
- package/dist/es2019/components/compiled/picker/EmojiPicker.js +0 -67
- package/dist/es2019/components/compiled/picker/EmojiPickerCategoryHeading.js +0 -30
- package/dist/es2019/components/compiled/picker/EmojiPickerComponent.js +0 -506
- package/dist/es2019/components/compiled/picker/EmojiPickerEmojiRow.js +0 -69
- package/dist/es2019/components/compiled/picker/EmojiPickerFooter.js +0 -19
- package/dist/es2019/components/compiled/picker/EmojiPickerListSearch.js +0 -79
- package/dist/es2019/components/compiled/picker/EmojiPickerTabPanel.js +0 -39
- package/dist/es2019/components/compiled/picker/EmojiPickerVirtualItems.js +0 -51
- package/dist/es2019/components/compiled/picker/VirtualList.js +0 -288
- package/dist/es2019/components/picker/styles.js +0 -199
- package/dist/esm/components/compiled/common/DeleteButton.js +0 -42
- package/dist/esm/components/compiled/common/Emoji.js +0 -370
- package/dist/esm/components/compiled/common/EmojiActions.js +0 -210
- package/dist/esm/components/compiled/common/EmojiDeletePreview.js +0 -142
- package/dist/esm/components/compiled/common/EmojiErrorMessage.js +0 -48
- package/dist/esm/components/compiled/common/EmojiFallback.js +0 -29
- package/dist/esm/components/compiled/common/EmojiPlaceholder.js +0 -58
- package/dist/esm/components/compiled/common/EmojiPreviewComponent.js +0 -35
- package/dist/esm/components/compiled/common/EmojiRadioButton.js +0 -62
- package/dist/esm/components/compiled/common/EmojiUploadPicker.js +0 -312
- package/dist/esm/components/compiled/common/EmojiUploadPreview.js +0 -114
- package/dist/esm/components/compiled/common/RetryableButton.js +0 -63
- package/dist/esm/components/compiled/common/Scrollable.js +0 -90
- package/dist/esm/components/compiled/common/TonePreviewButton.js +0 -42
- package/dist/esm/components/compiled/common/ToneSelector.js +0 -101
- package/dist/esm/components/compiled/common/ToolTipContentWithKeymap.js +0 -19
- package/dist/esm/components/compiled/picker/CategorySelector.js +0 -151
- package/dist/esm/components/compiled/picker/EmojiPicker.js +0 -97
- package/dist/esm/components/compiled/picker/EmojiPickerCategoryHeading.js +0 -34
- package/dist/esm/components/compiled/picker/EmojiPickerComponent.js +0 -564
- package/dist/esm/components/compiled/picker/EmojiPickerEmojiRow.js +0 -66
- package/dist/esm/components/compiled/picker/EmojiPickerFooter.js +0 -24
- package/dist/esm/components/compiled/picker/EmojiPickerListSearch.js +0 -83
- package/dist/esm/components/compiled/picker/EmojiPickerTabPanel.js +0 -50
- package/dist/esm/components/compiled/picker/EmojiPickerVirtualItems.js +0 -76
- package/dist/esm/components/compiled/picker/VirtualList.js +0 -293
- package/dist/esm/components/picker/styles.js +0 -185
- package/dist/types/components/compiled/common/DeleteButton.d.ts +0 -8
- package/dist/types/components/compiled/common/Emoji.d.ts +0 -95
- package/dist/types/components/compiled/common/EmojiActions.d.ts +0 -34
- package/dist/types/components/compiled/common/EmojiDeletePreview.d.ts +0 -21
- package/dist/types/components/compiled/common/EmojiErrorMessage.d.ts +0 -14
- package/dist/types/components/compiled/common/EmojiFallback.d.ts +0 -8
- package/dist/types/components/compiled/common/EmojiPlaceholder.d.ts +0 -12
- package/dist/types/components/compiled/common/EmojiPreviewComponent.d.ts +0 -7
- package/dist/types/components/compiled/common/EmojiRadioButton.d.ts +0 -16
- package/dist/types/components/compiled/common/EmojiUploadPicker.d.ts +0 -20
- package/dist/types/components/compiled/common/EmojiUploadPreview.d.ts +0 -18
- package/dist/types/components/compiled/common/RetryableButton.d.ts +0 -14
- package/dist/types/components/compiled/common/Scrollable.d.ts +0 -19
- package/dist/types/components/compiled/common/TonePreviewButton.d.ts +0 -14
- package/dist/types/components/compiled/common/ToneSelector.d.ts +0 -15
- package/dist/types/components/compiled/common/ToolTipContentWithKeymap.d.ts +0 -11
- package/dist/types/components/compiled/picker/CategorySelector.d.ts +0 -17
- package/dist/types/components/compiled/picker/EmojiPicker.d.ts +0 -45
- package/dist/types/components/compiled/picker/EmojiPickerCategoryHeading.d.ts +0 -13
- package/dist/types/components/compiled/picker/EmojiPickerComponent.d.ts +0 -24
- package/dist/types/components/compiled/picker/EmojiPickerEmojiRow.d.ts +0 -17
- package/dist/types/components/compiled/picker/EmojiPickerFooter.d.ts +0 -8
- package/dist/types/components/compiled/picker/EmojiPickerListSearch.d.ts +0 -11
- package/dist/types/components/compiled/picker/EmojiPickerTabPanel.d.ts +0 -21
- package/dist/types/components/compiled/picker/EmojiPickerVirtualItems.d.ts +0 -35
- package/dist/types/components/compiled/picker/VirtualList.d.ts +0 -42
- package/dist/types/components/picker/styles.d.ts +0 -15
- package/dist/types-ts4.5/components/compiled/common/DeleteButton.d.ts +0 -8
- package/dist/types-ts4.5/components/compiled/common/Emoji.d.ts +0 -95
- package/dist/types-ts4.5/components/compiled/common/EmojiActions.d.ts +0 -34
- package/dist/types-ts4.5/components/compiled/common/EmojiDeletePreview.d.ts +0 -21
- package/dist/types-ts4.5/components/compiled/common/EmojiErrorMessage.d.ts +0 -14
- package/dist/types-ts4.5/components/compiled/common/EmojiFallback.d.ts +0 -8
- package/dist/types-ts4.5/components/compiled/common/EmojiPlaceholder.d.ts +0 -12
- package/dist/types-ts4.5/components/compiled/common/EmojiPreviewComponent.d.ts +0 -7
- package/dist/types-ts4.5/components/compiled/common/EmojiRadioButton.d.ts +0 -16
- package/dist/types-ts4.5/components/compiled/common/EmojiUploadPicker.d.ts +0 -20
- package/dist/types-ts4.5/components/compiled/common/EmojiUploadPreview.d.ts +0 -18
- package/dist/types-ts4.5/components/compiled/common/RetryableButton.d.ts +0 -14
- package/dist/types-ts4.5/components/compiled/common/Scrollable.d.ts +0 -19
- package/dist/types-ts4.5/components/compiled/common/TonePreviewButton.d.ts +0 -14
- package/dist/types-ts4.5/components/compiled/common/ToneSelector.d.ts +0 -15
- package/dist/types-ts4.5/components/compiled/common/ToolTipContentWithKeymap.d.ts +0 -11
- package/dist/types-ts4.5/components/compiled/picker/CategorySelector.d.ts +0 -17
- package/dist/types-ts4.5/components/compiled/picker/EmojiPicker.d.ts +0 -45
- package/dist/types-ts4.5/components/compiled/picker/EmojiPickerCategoryHeading.d.ts +0 -13
- package/dist/types-ts4.5/components/compiled/picker/EmojiPickerComponent.d.ts +0 -24
- package/dist/types-ts4.5/components/compiled/picker/EmojiPickerEmojiRow.d.ts +0 -17
- package/dist/types-ts4.5/components/compiled/picker/EmojiPickerFooter.d.ts +0 -8
- package/dist/types-ts4.5/components/compiled/picker/EmojiPickerListSearch.d.ts +0 -11
- package/dist/types-ts4.5/components/compiled/picker/EmojiPickerTabPanel.d.ts +0 -21
- package/dist/types-ts4.5/components/compiled/picker/EmojiPickerVirtualItems.d.ts +0 -35
- package/dist/types-ts4.5/components/compiled/picker/VirtualList.d.ts +0 -42
- package/dist/types-ts4.5/components/picker/styles.d.ts +0 -15
- /package/dist/cjs/components/{compiled/common → common}/DeleteButton.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/Emoji.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/EmojiActions.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/EmojiDeletePreview.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/EmojiErrorMessage.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/EmojiFallback.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/EmojiPlaceholder.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/EmojiPreviewComponent.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/EmojiRadioButton.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/EmojiUploadPicker.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/EmojiUploadPreview.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/RetryableButton.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/Scrollable.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/TonePreviewButton.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/ToneSelector.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/common → common}/ToolTipContentWithKeymap.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/CategorySelector.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/EmojiPicker.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/EmojiPickerCategoryHeading.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/EmojiPickerComponent.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/EmojiPickerEmojiRow.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/EmojiPickerFooter.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/EmojiPickerListSearch.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/EmojiPickerTabPanel.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/EmojiPickerVirtualItems.compiled.css +0 -0
- /package/dist/cjs/components/{compiled/picker → picker}/VirtualList.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/DeleteButton.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/Emoji.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/EmojiActions.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/EmojiDeletePreview.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/EmojiErrorMessage.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/EmojiFallback.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/EmojiPlaceholder.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/EmojiPreviewComponent.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/EmojiRadioButton.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/EmojiUploadPicker.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/EmojiUploadPreview.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/RetryableButton.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/Scrollable.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/TonePreviewButton.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/ToneSelector.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/common → common}/ToolTipContentWithKeymap.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/CategorySelector.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/EmojiPicker.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/EmojiPickerCategoryHeading.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/EmojiPickerComponent.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/EmojiPickerEmojiRow.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/EmojiPickerFooter.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/EmojiPickerListSearch.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/EmojiPickerTabPanel.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/EmojiPickerVirtualItems.compiled.css +0 -0
- /package/dist/es2019/components/{compiled/picker → picker}/VirtualList.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/DeleteButton.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/Emoji.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/EmojiActions.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/EmojiDeletePreview.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/EmojiErrorMessage.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/EmojiFallback.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/EmojiPlaceholder.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/EmojiPreviewComponent.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/EmojiRadioButton.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/EmojiUploadPicker.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/EmojiUploadPreview.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/RetryableButton.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/Scrollable.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/TonePreviewButton.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/ToneSelector.compiled.css +0 -0
- /package/dist/esm/components/{compiled/common → common}/ToolTipContentWithKeymap.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/CategorySelector.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/EmojiPicker.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/EmojiPickerCategoryHeading.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/EmojiPickerComponent.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/EmojiPickerEmojiRow.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/EmojiPickerFooter.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/EmojiPickerListSearch.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/EmojiPickerTabPanel.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/EmojiPickerVirtualItems.compiled.css +0 -0
- /package/dist/esm/components/{compiled/picker → picker}/VirtualList.compiled.css +0 -0
|
@@ -4,24 +4,12 @@ import { customCategory, defaultEmojiPickerSize, frequentCategory, searchCategor
|
|
|
4
4
|
import { CategoryDescriptionMap } from './categories';
|
|
5
5
|
import CategoryTracker from './CategoryTracker';
|
|
6
6
|
import { sizes } from './EmojiPickerSizes';
|
|
7
|
-
import { CategoryHeadingItem
|
|
8
|
-
import
|
|
9
|
-
import { default as EmotionEmojiActions } from '../common/EmojiActions';
|
|
10
|
-
import { default as CompiledEmojiActions } from '../compiled/common/EmojiActions';
|
|
7
|
+
import { CategoryHeadingItem, EmojisRowItem, LoadingItem, virtualItemRenderer } from './EmojiPickerVirtualItems';
|
|
8
|
+
import EmojiActions from '../common/EmojiActions';
|
|
11
9
|
import { emojiPickerHeightOffset, scrollToRow } from './utils';
|
|
12
|
-
import { VirtualList
|
|
13
|
-
import { VirtualList as CompiledVirtualList } from '../compiled/picker/VirtualList';
|
|
10
|
+
import { VirtualList } from './VirtualList';
|
|
14
11
|
import { EmojiPickerListContextProvider } from '../../context/EmojiPickerListContext';
|
|
15
|
-
import
|
|
16
|
-
import { default as CompiledEmojiPickerTabPanel } from '../compiled/picker/EmojiPickerTabPanel';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
-
import { componentWithFG, functionWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
19
|
-
|
|
20
|
-
// when cleaning up `platform_editor_css_migrate_emoji`, delete these consts and rename the import
|
|
21
|
-
const EmojiActions = componentWithFG('platform_editor_css_migrate_emoji', CompiledEmojiActions, EmotionEmojiActions);
|
|
22
|
-
const EmojiPickerTabPanel = componentWithFG('platform_editor_css_migrate_emoji', CompiledEmojiPickerTabPanel, EmotionEmojiPickerTabPanel);
|
|
23
|
-
const VirtualList = componentWithFG('platform_editor_css_migrate_emoji', CompiledVirtualList, EmotionVirtualList);
|
|
24
|
-
const virtualItemRenderer = functionWithFG('platform_editor_css_migrate_emoji', virtualItemRendererCompiled, virtualItemRendererEmotion);
|
|
12
|
+
import EmojiPickerTabPanel from './EmojiPickerTabPanel';
|
|
25
13
|
|
|
26
14
|
/**
|
|
27
15
|
* Test id for wrapper Emoji Picker List div
|
|
@@ -54,18 +42,10 @@ export class EmojiPickerVirtualListInternalOld extends PureComponent {
|
|
|
54
42
|
let columnIndex = -1;
|
|
55
43
|
// for most of cases, it'd be in first emoji row, so should be quite fast to find in real world
|
|
56
44
|
let rowIndex = this.virtualItems.findIndex(rowItem => {
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return columnIndex !== -1;
|
|
62
|
-
}
|
|
63
|
-
} else {
|
|
64
|
-
if (rowItem instanceof EmotionEmojisRowItem) {
|
|
65
|
-
// find uploaded emoji in each emoji row
|
|
66
|
-
columnIndex = rowItem.props.emojis.findIndex(emoji => emoji.id === emojiId);
|
|
67
|
-
return columnIndex !== -1;
|
|
68
|
-
}
|
|
45
|
+
if (rowItem instanceof EmojisRowItem) {
|
|
46
|
+
// find uploaded emoji in each emoji row
|
|
47
|
+
columnIndex = rowItem.props.emojis.findIndex(emoji => emoji.id === emojiId);
|
|
48
|
+
return columnIndex !== -1;
|
|
69
49
|
}
|
|
70
50
|
return false;
|
|
71
51
|
});
|
|
@@ -80,46 +60,25 @@ export class EmojiPickerVirtualListInternalOld extends PureComponent {
|
|
|
80
60
|
onEmojiDelete
|
|
81
61
|
} = this.props;
|
|
82
62
|
const items = [];
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}));
|
|
89
|
-
} else {
|
|
90
|
-
items.push(new EmotionCategoryHeadingItem({
|
|
91
|
-
id: group.category,
|
|
92
|
-
title: group.title,
|
|
93
|
-
className: categoryClassname
|
|
94
|
-
}));
|
|
95
|
-
}
|
|
63
|
+
items.push(new CategoryHeadingItem({
|
|
64
|
+
id: group.category,
|
|
65
|
+
title: group.title,
|
|
66
|
+
className: categoryClassname
|
|
67
|
+
}));
|
|
96
68
|
let remainingEmojis = group.emojis;
|
|
97
69
|
while (remainingEmojis.length > 0) {
|
|
98
70
|
const rowEmojis = remainingEmojis.slice(0, sizes.emojiPerRow);
|
|
99
71
|
remainingEmojis = remainingEmojis.slice(sizes.emojiPerRow);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}));
|
|
111
|
-
} else {
|
|
112
|
-
items.push(new EmotionEmojisRowItem({
|
|
113
|
-
category: group.category,
|
|
114
|
-
emojis: rowEmojis,
|
|
115
|
-
title: group.title,
|
|
116
|
-
showDelete: group.title === userCustomTitle,
|
|
117
|
-
onSelected: onEmojiSelected,
|
|
118
|
-
onDelete: onEmojiDelete,
|
|
119
|
-
onMouseMove: this.onEmojiActive,
|
|
120
|
-
onFocus: this.onEmojiActive
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
72
|
+
items.push(new EmojisRowItem({
|
|
73
|
+
category: group.category,
|
|
74
|
+
emojis: rowEmojis,
|
|
75
|
+
title: group.title,
|
|
76
|
+
showDelete: group.title === userCustomTitle,
|
|
77
|
+
onSelected: onEmojiSelected,
|
|
78
|
+
onDelete: onEmojiDelete,
|
|
79
|
+
onMouseMove: this.onEmojiActive,
|
|
80
|
+
onFocus: this.onEmojiActive
|
|
81
|
+
}));
|
|
123
82
|
}
|
|
124
83
|
return items;
|
|
125
84
|
});
|
|
@@ -133,11 +92,7 @@ export class EmojiPickerVirtualListInternalOld extends PureComponent {
|
|
|
133
92
|
const prevFirstCategory = this.categoryTracker.getFirstCategory();
|
|
134
93
|
this.categoryTracker.reset();
|
|
135
94
|
if (loading) {
|
|
136
|
-
|
|
137
|
-
items.push(new CompiledLoadingItem());
|
|
138
|
-
} else {
|
|
139
|
-
items.push(new EmotionLoadingItem());
|
|
140
|
-
}
|
|
95
|
+
items.push(new LoadingItem());
|
|
141
96
|
} else {
|
|
142
97
|
if (query) {
|
|
143
98
|
const search = CategoryDescriptionMap.SEARCH;
|
|
@@ -206,19 +161,12 @@ export class EmojiPickerVirtualListInternalOld extends PureComponent {
|
|
|
206
161
|
});
|
|
207
162
|
_defineProperty(this, "findCategoryToActivate", row => {
|
|
208
163
|
let category = null;
|
|
209
|
-
if (
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
category = row.props.category;
|
|
214
|
-
}
|
|
215
|
-
} else {
|
|
216
|
-
if (row instanceof EmotionCategoryHeadingItem) {
|
|
217
|
-
category = row.props.id;
|
|
218
|
-
} else if (row instanceof EmotionEmojisRowItem) {
|
|
219
|
-
category = row.props.category;
|
|
220
|
-
}
|
|
164
|
+
if (row instanceof CategoryHeadingItem) {
|
|
165
|
+
category = row.props.id;
|
|
166
|
+
} else if (row instanceof EmojisRowItem) {
|
|
167
|
+
category = row.props.category;
|
|
221
168
|
}
|
|
169
|
+
|
|
222
170
|
// your uploads is rendered, take it as upload category, so could be highlighted in category selector
|
|
223
171
|
if (category === yourUploadsCategory) {
|
|
224
172
|
return customCategory;
|
|
@@ -242,22 +190,12 @@ export class EmojiPickerVirtualListInternalOld extends PureComponent {
|
|
|
242
190
|
const list = this.listRef.current;
|
|
243
191
|
|
|
244
192
|
// update tabIndex manually, startIndex is not 0 based here
|
|
245
|
-
if (
|
|
246
|
-
if
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex);
|
|
252
|
-
}
|
|
253
|
-
} else {
|
|
254
|
-
if (rowItem instanceof EmotionCategoryHeadingItem) {
|
|
255
|
-
// if top of row rendered is category heading, update tabIndex for the next emoji row
|
|
256
|
-
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex + 1);
|
|
257
|
-
} else if (rowItem instanceof EmotionEmojisRowItem) {
|
|
258
|
-
// if top of row rendered is emoji row, update it's tabIndex.
|
|
259
|
-
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex);
|
|
260
|
-
}
|
|
193
|
+
if (rowItem instanceof CategoryHeadingItem) {
|
|
194
|
+
// if top of row rendered is category heading, update tabIndex for the next emoji row
|
|
195
|
+
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex + 1);
|
|
196
|
+
} else if (rowItem instanceof EmojisRowItem) {
|
|
197
|
+
// if top of row rendered is emoji row, update it's tabIndex.
|
|
198
|
+
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex);
|
|
261
199
|
}
|
|
262
200
|
if (!this.props.query) {
|
|
263
201
|
// Calculate category in view - only relevant if categories shown, i.e. no query
|
|
@@ -462,22 +400,12 @@ export const EmojiPickerVirtualListInternalNew = /*#__PURE__*/React.forwardRef((
|
|
|
462
400
|
const list = listRef.current;
|
|
463
401
|
|
|
464
402
|
// update tabIndex manually, startIndex is not 0 based here
|
|
465
|
-
if (
|
|
466
|
-
if
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex);
|
|
472
|
-
}
|
|
473
|
-
} else {
|
|
474
|
-
if (rowItem instanceof EmotionCategoryHeadingItem) {
|
|
475
|
-
// if top of row rendered is category heading, update tabIndex for the next emoji row
|
|
476
|
-
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex + 1);
|
|
477
|
-
} else if (rowItem instanceof EmotionEmojisRowItem) {
|
|
478
|
-
// if top of row rendered is emoji row, update it's tabIndex.
|
|
479
|
-
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex);
|
|
480
|
-
}
|
|
403
|
+
if (rowItem instanceof CategoryHeadingItem) {
|
|
404
|
+
// if top of row rendered is category heading, update tabIndex for the next emoji row
|
|
405
|
+
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex + 1);
|
|
406
|
+
} else if (rowItem instanceof EmojisRowItem) {
|
|
407
|
+
// if top of row rendered is emoji row, update it's tabIndex.
|
|
408
|
+
list === null || list === void 0 ? void 0 : list.updateFocusIndex(startIndex);
|
|
481
409
|
}
|
|
482
410
|
if (!query) {
|
|
483
411
|
// Calculate category in view - only relevant if categories shown, i.e. no query
|
|
@@ -513,46 +441,25 @@ export const EmojiPickerVirtualListInternalNew = /*#__PURE__*/React.forwardRef((
|
|
|
513
441
|
};
|
|
514
442
|
const buildVirtualItemFromGroup = useCallback(group => {
|
|
515
443
|
const items = [];
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}));
|
|
522
|
-
} else {
|
|
523
|
-
items.push(new EmotionCategoryHeadingItem({
|
|
524
|
-
id: group.category,
|
|
525
|
-
title: group.title,
|
|
526
|
-
className: categoryClassname
|
|
527
|
-
}));
|
|
528
|
-
}
|
|
444
|
+
items.push(new CategoryHeadingItem({
|
|
445
|
+
id: group.category,
|
|
446
|
+
title: group.title,
|
|
447
|
+
className: categoryClassname
|
|
448
|
+
}));
|
|
529
449
|
let remainingEmojis = group.emojis;
|
|
530
450
|
while (remainingEmojis.length > 0) {
|
|
531
451
|
const rowEmojis = remainingEmojis.slice(0, sizes.emojiPerRow);
|
|
532
452
|
remainingEmojis = remainingEmojis.slice(sizes.emojiPerRow);
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}));
|
|
544
|
-
} else {
|
|
545
|
-
items.push(new EmotionEmojisRowItem({
|
|
546
|
-
category: group.category,
|
|
547
|
-
emojis: rowEmojis,
|
|
548
|
-
title: group.title,
|
|
549
|
-
showDelete: group.title === userCustomTitle,
|
|
550
|
-
onSelected: onEmojiSelected,
|
|
551
|
-
onDelete: onEmojiDelete,
|
|
552
|
-
onMouseMove: onEmojiActive,
|
|
553
|
-
onFocus: onEmojiActive
|
|
554
|
-
}));
|
|
555
|
-
}
|
|
453
|
+
items.push(new EmojisRowItem({
|
|
454
|
+
category: group.category,
|
|
455
|
+
emojis: rowEmojis,
|
|
456
|
+
title: group.title,
|
|
457
|
+
showDelete: group.title === userCustomTitle,
|
|
458
|
+
onSelected: onEmojiSelected,
|
|
459
|
+
onDelete: onEmojiDelete,
|
|
460
|
+
onMouseMove: onEmojiActive,
|
|
461
|
+
onFocus: onEmojiActive
|
|
462
|
+
}));
|
|
556
463
|
}
|
|
557
464
|
return items;
|
|
558
465
|
}, [onEmojiSelected, onEmojiDelete, onEmojiActive]);
|
|
@@ -561,11 +468,7 @@ export const EmojiPickerVirtualListInternalNew = /*#__PURE__*/React.forwardRef((
|
|
|
561
468
|
const prevFirstCategory = categoryTracker.getFirstCategory();
|
|
562
469
|
categoryTracker.reset();
|
|
563
470
|
if (loading) {
|
|
564
|
-
|
|
565
|
-
items.push(new CompiledLoadingItem());
|
|
566
|
-
} else {
|
|
567
|
-
items.push(new EmotionLoadingItem());
|
|
568
|
-
}
|
|
471
|
+
items.push(new LoadingItem());
|
|
569
472
|
} else {
|
|
570
473
|
if (query) {
|
|
571
474
|
const search = CategoryDescriptionMap.SEARCH;
|
|
@@ -603,18 +506,10 @@ export const EmojiPickerVirtualListInternalNew = /*#__PURE__*/React.forwardRef((
|
|
|
603
506
|
}, [allEmojiGroups, loading, query, emojis]);
|
|
604
507
|
const findCategoryToActivate = row => {
|
|
605
508
|
let category = null;
|
|
606
|
-
if (
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
category = row.props.category;
|
|
611
|
-
}
|
|
612
|
-
} else {
|
|
613
|
-
if (row instanceof EmotionCategoryHeadingItem) {
|
|
614
|
-
category = row.props.id;
|
|
615
|
-
} else if (row instanceof EmotionEmojisRowItem) {
|
|
616
|
-
category = row.props.category;
|
|
617
|
-
}
|
|
509
|
+
if (row instanceof CategoryHeadingItem) {
|
|
510
|
+
category = row.props.id;
|
|
511
|
+
} else if (row instanceof EmojisRowItem) {
|
|
512
|
+
category = row.props.category;
|
|
618
513
|
}
|
|
619
514
|
// your uploads is rendered, take it as upload category, so could be highlighted in category selector
|
|
620
515
|
if (category === yourUploadsCategory) {
|
|
@@ -647,18 +542,10 @@ export const EmojiPickerVirtualListInternalNew = /*#__PURE__*/React.forwardRef((
|
|
|
647
542
|
let columnIndex = -1;
|
|
648
543
|
// for most of cases, it'd be in first emoji row, so should be quite fast to find in real world
|
|
649
544
|
let rowIndex = virtualItems.findIndex(rowItem => {
|
|
650
|
-
if (
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
return columnIndex !== -1;
|
|
655
|
-
}
|
|
656
|
-
} else {
|
|
657
|
-
if (rowItem instanceof EmotionEmojisRowItem) {
|
|
658
|
-
// find uploaded emoji in each emoji row
|
|
659
|
-
columnIndex = rowItem.props.emojis.findIndex(emoji => emoji.id === emojiId);
|
|
660
|
-
return columnIndex !== -1;
|
|
661
|
-
}
|
|
545
|
+
if (rowItem instanceof EmojisRowItem) {
|
|
546
|
+
// find uploaded emoji in each emoji row
|
|
547
|
+
columnIndex = rowItem.props.emojis.findIndex(emoji => emoji.id === emojiId);
|
|
548
|
+
return columnIndex !== -1;
|
|
662
549
|
}
|
|
663
550
|
return false;
|
|
664
551
|
});
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
1
|
+
/* EmojiPickerListSearch.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./EmojiPickerListSearch.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
4
|
import SearchIcon from '@atlaskit/icon/core/migration/search';
|
|
6
5
|
import TextField from '@atlaskit/textfield';
|
|
7
6
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
-
import { jsx } from '@emotion/react';
|
|
10
7
|
import React, { useLayoutEffect, useRef, useState } from 'react';
|
|
11
8
|
import { useIntl } from 'react-intl-next';
|
|
12
9
|
import { useDebouncedCallback } from 'use-debounce';
|
|
13
10
|
import { EMOJI_SEARCH_DEBOUNCE } from '../../util/constants';
|
|
14
|
-
import { hidden } from '../common/styles';
|
|
15
11
|
import { messages } from '../i18n';
|
|
16
|
-
|
|
12
|
+
const input = null;
|
|
13
|
+
const pickerSearch = null;
|
|
14
|
+
const searchIcon = null;
|
|
15
|
+
const hidden = null;
|
|
17
16
|
export const emojiPickerSearchTestId = 'emoji-picker-search';
|
|
18
17
|
export const EmojiPickerListSearch = props => {
|
|
19
18
|
const {
|
|
@@ -47,41 +46,34 @@ export const EmojiPickerListSearch = props => {
|
|
|
47
46
|
}
|
|
48
47
|
});
|
|
49
48
|
}, []);
|
|
50
|
-
return (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
label: ""
|
|
81
|
-
})),
|
|
82
|
-
testId: emojiPickerSearchTestId,
|
|
83
|
-
ref: textRef,
|
|
84
|
-
isCompact: true
|
|
85
|
-
}))
|
|
86
|
-
);
|
|
49
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
style: style,
|
|
51
|
+
className: ax(["_vchhusvi _ca0qutpp _n3tdutpp _19bvutpp _u5f3utpp _1bsb1osq", !isVisible && "_tzy4idpf _3um015vq _1e0cglyw"])
|
|
52
|
+
}, /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
53
|
+
id: "emoji-search-results-status",
|
|
54
|
+
role: "status"
|
|
55
|
+
}, dirty && query === '' && formatMessage(messages.searchResultsStatusSeeAll), query !== '' && formatMessage(messages.searchResultsStatusSeeAll, {
|
|
56
|
+
// change to messages.searchResultsStatus once translated
|
|
57
|
+
count: resultsCount
|
|
58
|
+
})), /*#__PURE__*/React.createElement(TextField, {
|
|
59
|
+
role: "searchbox",
|
|
60
|
+
"aria-label": formatMessage(messages.searchLabel),
|
|
61
|
+
autoComplete: "off",
|
|
62
|
+
name: "search",
|
|
63
|
+
placeholder: `${formatMessage(messages.searchPlaceholder)}...`,
|
|
64
|
+
defaultValue: query || '',
|
|
65
|
+
onChange: handleOnChange,
|
|
66
|
+
elemBeforeInput: /*#__PURE__*/React.createElement("span", {
|
|
67
|
+
className: ax(["_tzy4105o _18u01i6y"])
|
|
68
|
+
}, /*#__PURE__*/React.createElement(SearchIcon, {
|
|
69
|
+
LEGACY_margin: "0 0 0 2px",
|
|
70
|
+
color: "currentColor",
|
|
71
|
+
spacing: "spacious",
|
|
72
|
+
label: ""
|
|
73
|
+
})),
|
|
74
|
+
testId: emojiPickerSearchTestId,
|
|
75
|
+
ref: textRef,
|
|
76
|
+
isCompact: true,
|
|
77
|
+
className: ax(["_11c82smr _12ji1r31 _1qu2glyw _12y31o36 _vchhusvi _syaz1kw7 _80om1kw7 _1q51t94y _y4tize3t _85i5v77o _bozg12x7 _1bsb1osq _13xeglyw _1goxglyw"])
|
|
78
|
+
}));
|
|
87
79
|
};
|
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
1
|
+
/* EmojiPickerTabPanel.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./EmojiPickerTabPanel.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
4
|
import React, { PureComponent } from 'react';
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
5
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
9
6
|
import { injectIntl } from 'react-intl-next';
|
|
10
7
|
import { messages } from '../i18n';
|
|
11
8
|
import { RENDER_EMOJI_PICKER_LIST_TESTID } from './EmojiPickerList';
|
|
12
|
-
const emojiPickerList =
|
|
13
|
-
display: 'flex',
|
|
14
|
-
flexDirection: 'column',
|
|
15
|
-
flex: '1 1 auto',
|
|
16
|
-
// To force Firefox/IE/Edge to shrink the list, if necessary (e.g. when upload panel in place)
|
|
17
|
-
height: '0'
|
|
18
|
-
});
|
|
9
|
+
const emojiPickerList = null;
|
|
19
10
|
|
|
20
11
|
/**
|
|
21
12
|
* TODO: have to use class component here as unit test is relying on ref.root. Will refactor this whole file + EmojiPickerList to functional component in future
|
|
@@ -31,14 +22,14 @@ class EmojiPickerTabPanelInternal extends PureComponent {
|
|
|
31
22
|
children,
|
|
32
23
|
showSearchResults
|
|
33
24
|
} = this.props;
|
|
34
|
-
return
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
35
26
|
ref: "root",
|
|
36
|
-
css: emojiPickerList,
|
|
37
27
|
"data-testid": RENDER_EMOJI_PICKER_LIST_TESTID,
|
|
38
28
|
id: RENDER_EMOJI_PICKER_LIST_TESTID,
|
|
39
29
|
role: "tabpanel",
|
|
40
|
-
"aria-label": formatMessage(messages.emojiPickerListPanel)
|
|
41
|
-
|
|
30
|
+
"aria-label": formatMessage(messages.emojiPickerListPanel),
|
|
31
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1e0c1txw _2lx21bp4 _4t3iidpf"])
|
|
32
|
+
}, /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
42
33
|
id: "emoji-picker-table-description"
|
|
43
34
|
}, formatMessage(messages.emojiPickerGrid, {
|
|
44
35
|
showSearchResults
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
+
/* EmojiPickerVirtualItems.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
-
import { jsx } from '@emotion/react';
|
|
4
|
+
import "./EmojiPickerVirtualItems.compiled.css";
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
10
7
|
import Spinner from '@atlaskit/spinner';
|
|
11
8
|
import EmojiPickerCategoryHeading from './EmojiPickerCategoryHeading';
|
|
12
9
|
import EmojiPickerEmojiRow from './EmojiPickerEmojiRow';
|
|
13
10
|
import { sizes } from './EmojiPickerSizes';
|
|
14
|
-
|
|
11
|
+
const emojiPickerSpinner = null;
|
|
15
12
|
export class AbstractItem {
|
|
16
13
|
constructor(props, height) {
|
|
17
14
|
this.props = props;
|
|
@@ -21,7 +18,7 @@ export class AbstractItem {
|
|
|
21
18
|
export class EmojisRowItem extends AbstractItem {
|
|
22
19
|
constructor(props) {
|
|
23
20
|
super(props, sizes.emojiRowHeight);
|
|
24
|
-
_defineProperty(this, "renderItem", context =>
|
|
21
|
+
_defineProperty(this, "renderItem", context => /*#__PURE__*/React.createElement(EmojiPickerEmojiRow, _extends({}, this.props, {
|
|
25
22
|
virtualItemContext: context
|
|
26
23
|
})));
|
|
27
24
|
}
|
|
@@ -29,20 +26,17 @@ export class EmojisRowItem extends AbstractItem {
|
|
|
29
26
|
export class LoadingItem extends AbstractItem {
|
|
30
27
|
constructor() {
|
|
31
28
|
super({}, sizes.loadingRowHeight);
|
|
32
|
-
_defineProperty(this, "renderItem", () =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, jsx("div", null, jsx(Spinner, {
|
|
37
|
-
size: "medium",
|
|
38
|
-
interactionName: "emoji-picker-loading-item-spinner"
|
|
29
|
+
_defineProperty(this, "renderItem", () => /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: ax(["_1e0c1txw _1bsb1osq _4t3i1w81 _1bah1h6o _4cvr1h6o _nphsidpf _t1edidpf _1t3b1wug"])
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Spinner, {
|
|
32
|
+
size: "medium"
|
|
39
33
|
}))));
|
|
40
34
|
}
|
|
41
35
|
}
|
|
42
36
|
export class CategoryHeadingItem extends AbstractItem {
|
|
43
37
|
constructor(props) {
|
|
44
38
|
super(props, sizes.categoryHeadingHeight);
|
|
45
|
-
_defineProperty(this, "renderItem", () =>
|
|
39
|
+
_defineProperty(this, "renderItem", () => /*#__PURE__*/React.createElement(EmojiPickerCategoryHeading, this.props));
|
|
46
40
|
}
|
|
47
41
|
}
|
|
48
42
|
export const virtualItemRenderer = (rows, context) => {
|
|
@@ -51,7 +45,7 @@ export const virtualItemRenderer = (rows, context) => {
|
|
|
51
45
|
key
|
|
52
46
|
} = context;
|
|
53
47
|
const row = rows[index];
|
|
54
|
-
return
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
55
49
|
key: key
|
|
56
50
|
}, row && row.renderItem(context));
|
|
57
51
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/* VirtualList.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./VirtualList.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
7
4
|
import React, { useCallback, useImperativeHandle } from 'react';
|
|
8
|
-
import { virtualList } from './styles';
|
|
9
5
|
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
10
6
|
import { useEmojiPickerListContext } from '../../hooks/useEmojiPickerListContext';
|
|
11
7
|
import { EMOJIPICKERLIST_KEYBOARD_KEYS_SUPPORTED, EMOJI_LIST_COLUMNS, EMOJI_LIST_PAGE_COUNT, KeyboardNavigationDirection, KeyboardKeys } from '../../util/constants';
|
|
8
|
+
const virtualList = null;
|
|
9
|
+
const virtualRowStyle = null;
|
|
12
10
|
export const virtualListScrollContainerTestId = 'virtual-list-scroll-container';
|
|
13
11
|
export const VirtualList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
14
12
|
const parentRef = React.useRef(null);
|
|
@@ -256,19 +254,17 @@ export const VirtualList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
256
254
|
}
|
|
257
255
|
};
|
|
258
256
|
}, [setEmojisFocus, focusEmoji, rowVirtualizer, scrollToAlignment]);
|
|
259
|
-
return
|
|
257
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
260
258
|
ref: parentRef,
|
|
261
259
|
style: {
|
|
262
260
|
height: `${height}px`,
|
|
263
261
|
width: `${width}px`
|
|
264
|
-
}
|
|
265
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
266
|
-
,
|
|
267
|
-
css: virtualList,
|
|
262
|
+
},
|
|
268
263
|
"data-testid": virtualListScrollContainerTestId,
|
|
269
264
|
"aria-labelledby": "emoji-picker-table-description",
|
|
270
|
-
role: "grid"
|
|
271
|
-
|
|
265
|
+
role: "grid",
|
|
266
|
+
className: ax(["_1reo15vq _18m91wug _n3tdu2gc _nt751r31 _49pcglyw _1hvw1o36"])
|
|
267
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
272
268
|
style: {
|
|
273
269
|
height: `${rowVirtualizer.getTotalSize()}px`,
|
|
274
270
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -279,21 +275,14 @@ export const VirtualList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
279
275
|
ref: virtualistItemsRef,
|
|
280
276
|
onKeyDown: handleKeyDown,
|
|
281
277
|
role: "presentation"
|
|
282
|
-
}, rowVirtualizer.getVirtualItems().map((virtualRow, index) =>
|
|
278
|
+
}, rowVirtualizer.getVirtualItems().map((virtualRow, index) => /*#__PURE__*/React.createElement("div", {
|
|
283
279
|
key: virtualRow.key,
|
|
284
280
|
style: {
|
|
285
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
286
|
-
position: 'absolute',
|
|
287
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
288
|
-
top: 0,
|
|
289
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
290
|
-
left: 0,
|
|
291
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
292
|
-
width: '100%',
|
|
293
281
|
height: `${virtualRow.size}px`,
|
|
294
282
|
transform: `translateY(${virtualRow.start}px)`
|
|
295
283
|
},
|
|
296
284
|
role: "row",
|
|
297
|
-
"aria-rowindex": index + 1
|
|
285
|
+
"aria-rowindex": index + 1,
|
|
286
|
+
className: ax(["_kqswstnw _154iidpf _1ltvidpf _1bsb1osq"])
|
|
298
287
|
}, rowRenderer(virtualRow)))));
|
|
299
288
|
});
|
|
@@ -6,7 +6,7 @@ import { N30 } from '@atlaskit/theme/colors';
|
|
|
6
6
|
import { EmojiCommonProvider } from '../../context/EmojiCommonProvider';
|
|
7
7
|
import { leftClick } from '../../util/mouse';
|
|
8
8
|
import { toEmojiId } from '../../util/type-helpers';
|
|
9
|
-
import { EmojiPreviewComponent } from '../
|
|
9
|
+
import { EmojiPreviewComponent } from '../common/EmojiPreviewComponent';
|
|
10
10
|
import { typeaheadSelected } from './styles';
|
|
11
11
|
const typeAheadWidth = 350;
|
|
12
12
|
const typeAheadItem = null;
|