@atlaskit/emoji 73.3.3 → 73.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/cjs/api/EmojiRepository.js +1 -7
- package/dist/cjs/api/EmojiResource.js +1 -3
- package/dist/cjs/components/common/DeleteButton.js +2 -8
- package/dist/cjs/components/common/EmojiActions.compiled.css +1 -3
- package/dist/cjs/components/common/EmojiActions.js +6 -45
- package/dist/cjs/components/common/EmojiDeletePreview.compiled.css +1 -16
- package/dist/cjs/components/common/EmojiDeletePreview.js +17 -65
- package/dist/cjs/components/common/EmojiErrorMessage.js +2 -9
- package/dist/cjs/components/common/EmojiRadioButton.js +3 -4
- package/dist/cjs/components/common/EmojiUploadPicker.compiled.css +1 -14
- package/dist/cjs/components/common/EmojiUploadPicker.js +7 -90
- package/dist/cjs/components/common/FileChooser.js +15 -25
- package/dist/cjs/components/common/TonePreviewButton.compiled.css +1 -2
- package/dist/cjs/components/common/TonePreviewButton.js +2 -23
- package/dist/cjs/components/common/ToneSelectorInternal.js +1 -10
- package/dist/cjs/components/picker/CategorySelector.compiled.css +0 -6
- package/dist/cjs/components/picker/CategorySelector.js +5 -44
- package/dist/cjs/components/picker/EmojiPickerComponent.compiled.css +1 -2
- package/dist/cjs/components/picker/EmojiPickerComponent.js +38 -57
- package/dist/cjs/components/picker/EmojiPickerEmojiRow.js +1 -2
- package/dist/cjs/components/picker/EmojiPickerFooter.compiled.css +0 -2
- package/dist/cjs/components/picker/EmojiPickerFooter.js +1 -8
- package/dist/cjs/components/picker/EmojiPickerInternal.compiled.css +1 -2
- package/dist/cjs/components/picker/EmojiPickerInternal.js +1 -9
- package/dist/cjs/components/picker/EmojiPickerList.js +30 -36
- package/dist/cjs/components/picker/EmojiPickerListSearch.compiled.css +0 -1
- package/dist/cjs/components/picker/EmojiPickerListSearch.js +2 -24
- package/dist/cjs/components/picker/EmojiPickerSizes.js +0 -1
- package/dist/cjs/components/picker/VirtualList.js +2 -3
- package/dist/cjs/components/picker/categories.js +1 -84
- package/dist/cjs/components/uploader/EmojiUploadComponent.js +0 -2
- package/dist/cjs/util/analytics/createEvent.js +1 -1
- package/dist/cjs/util/constants.js +1 -2
- package/dist/es2019/api/EmojiRepository.js +1 -7
- package/dist/es2019/api/EmojiResource.js +1 -3
- package/dist/es2019/components/common/DeleteButton.js +2 -8
- package/dist/es2019/components/common/EmojiActions.compiled.css +1 -3
- package/dist/es2019/components/common/EmojiActions.js +6 -45
- package/dist/es2019/components/common/EmojiDeletePreview.compiled.css +1 -16
- package/dist/es2019/components/common/EmojiDeletePreview.js +17 -65
- package/dist/es2019/components/common/EmojiErrorMessage.js +2 -9
- package/dist/es2019/components/common/EmojiRadioButton.js +2 -3
- package/dist/es2019/components/common/EmojiUploadPicker.compiled.css +1 -14
- package/dist/es2019/components/common/EmojiUploadPicker.js +7 -87
- package/dist/es2019/components/common/FileChooser.js +15 -25
- package/dist/es2019/components/common/TonePreviewButton.compiled.css +1 -2
- package/dist/es2019/components/common/TonePreviewButton.js +2 -23
- package/dist/es2019/components/common/ToneSelectorInternal.js +1 -10
- package/dist/es2019/components/picker/CategorySelector.compiled.css +0 -6
- package/dist/es2019/components/picker/CategorySelector.js +5 -44
- package/dist/es2019/components/picker/EmojiPickerComponent.compiled.css +1 -2
- package/dist/es2019/components/picker/EmojiPickerComponent.js +44 -61
- package/dist/es2019/components/picker/EmojiPickerEmojiRow.js +1 -2
- package/dist/es2019/components/picker/EmojiPickerFooter.compiled.css +0 -2
- package/dist/es2019/components/picker/EmojiPickerFooter.js +1 -8
- package/dist/es2019/components/picker/EmojiPickerInternal.compiled.css +1 -2
- package/dist/es2019/components/picker/EmojiPickerInternal.js +1 -9
- package/dist/es2019/components/picker/EmojiPickerList.js +29 -35
- package/dist/es2019/components/picker/EmojiPickerListSearch.compiled.css +0 -1
- package/dist/es2019/components/picker/EmojiPickerListSearch.js +2 -24
- package/dist/es2019/components/picker/EmojiPickerSizes.js +1 -2
- package/dist/es2019/components/picker/VirtualList.js +2 -3
- package/dist/es2019/components/picker/categories.js +0 -83
- package/dist/es2019/components/uploader/EmojiUploadComponent.js +0 -2
- package/dist/es2019/util/analytics/createEvent.js +1 -1
- package/dist/es2019/util/constants.js +0 -1
- package/dist/esm/api/EmojiRepository.js +1 -7
- package/dist/esm/api/EmojiResource.js +1 -3
- package/dist/esm/components/common/DeleteButton.js +2 -8
- package/dist/esm/components/common/EmojiActions.compiled.css +1 -3
- package/dist/esm/components/common/EmojiActions.js +6 -45
- package/dist/esm/components/common/EmojiDeletePreview.compiled.css +1 -16
- package/dist/esm/components/common/EmojiDeletePreview.js +17 -65
- package/dist/esm/components/common/EmojiErrorMessage.js +2 -9
- package/dist/esm/components/common/EmojiRadioButton.js +3 -4
- package/dist/esm/components/common/EmojiUploadPicker.compiled.css +1 -14
- package/dist/esm/components/common/EmojiUploadPicker.js +7 -90
- package/dist/esm/components/common/FileChooser.js +15 -25
- package/dist/esm/components/common/TonePreviewButton.compiled.css +1 -2
- package/dist/esm/components/common/TonePreviewButton.js +2 -23
- package/dist/esm/components/common/ToneSelectorInternal.js +1 -10
- package/dist/esm/components/picker/CategorySelector.compiled.css +0 -6
- package/dist/esm/components/picker/CategorySelector.js +6 -45
- package/dist/esm/components/picker/EmojiPickerComponent.compiled.css +1 -2
- package/dist/esm/components/picker/EmojiPickerComponent.js +39 -58
- package/dist/esm/components/picker/EmojiPickerEmojiRow.js +1 -2
- package/dist/esm/components/picker/EmojiPickerFooter.compiled.css +0 -2
- package/dist/esm/components/picker/EmojiPickerFooter.js +1 -8
- package/dist/esm/components/picker/EmojiPickerInternal.compiled.css +1 -2
- package/dist/esm/components/picker/EmojiPickerInternal.js +1 -9
- package/dist/esm/components/picker/EmojiPickerList.js +31 -37
- package/dist/esm/components/picker/EmojiPickerListSearch.compiled.css +0 -1
- package/dist/esm/components/picker/EmojiPickerListSearch.js +2 -24
- package/dist/esm/components/picker/EmojiPickerSizes.js +1 -2
- package/dist/esm/components/picker/VirtualList.js +2 -3
- package/dist/esm/components/picker/categories.js +0 -83
- package/dist/esm/components/uploader/EmojiUploadComponent.js +0 -2
- package/dist/esm/util/analytics/createEvent.js +1 -1
- package/dist/esm/util/constants.js +0 -1
- package/dist/types/components/common/EmojiUploadPicker.d.ts +0 -1
- package/dist/types/components/picker/EmojiPickerSizes.d.ts +0 -1
- package/dist/types/components/picker/categories.d.ts +0 -1
- package/dist/types/components/uploader/EmojiUploadComponent.d.ts +0 -1
- package/dist/types/components/uploader/EmojiUploader.d.ts +0 -1
- package/dist/types/util/constants.d.ts +0 -1
- package/package.json +2 -15
- package/dist/cjs/components/common/AddOwnEmoji.compiled.css +0 -6
- package/dist/cjs/components/common/AddOwnEmoji.js +0 -58
- package/dist/cjs/components/common/EmojiUploadPreview.compiled.css +0 -19
- package/dist/cjs/components/common/EmojiUploadPreview.js +0 -119
- package/dist/cjs/components/common/isRefreshEmojiPickerEnabled.js +0 -10
- package/dist/cjs/components/picker/sortCategories.js +0 -15
- package/dist/cjs/util/teamoji26RefreshEmojiPicker.js +0 -19
- package/dist/es2019/components/common/AddOwnEmoji.compiled.css +0 -6
- package/dist/es2019/components/common/AddOwnEmoji.js +0 -49
- package/dist/es2019/components/common/EmojiUploadPreview.compiled.css +0 -19
- package/dist/es2019/components/common/EmojiUploadPreview.js +0 -100
- package/dist/es2019/components/common/isRefreshEmojiPickerEnabled.js +0 -4
- package/dist/es2019/components/picker/sortCategories.js +0 -7
- package/dist/es2019/util/teamoji26RefreshEmojiPicker.js +0 -13
- package/dist/esm/components/common/AddOwnEmoji.compiled.css +0 -6
- package/dist/esm/components/common/AddOwnEmoji.js +0 -49
- package/dist/esm/components/common/EmojiUploadPreview.compiled.css +0 -19
- package/dist/esm/components/common/EmojiUploadPreview.js +0 -110
- package/dist/esm/components/common/isRefreshEmojiPickerEnabled.js +0 -4
- package/dist/esm/components/picker/sortCategories.js +0 -9
- package/dist/esm/util/teamoji26RefreshEmojiPicker.js +0 -13
- package/dist/types/components/common/AddOwnEmoji.d.ts +0 -9
- package/dist/types/components/common/EmojiUploadPreview.d.ts +0 -22
- package/dist/types/components/common/isRefreshEmojiPickerEnabled.d.ts +0 -1
- package/dist/types/components/picker/sortCategories.d.ts +0 -6
- package/dist/types/util/teamoji26RefreshEmojiPicker.d.ts +0 -6
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import AtlassianIcon from '@atlaskit/icon-lab/core/atlassian';
|
|
2
|
-
import AddIcon from '@atlaskit/icon/core/add';
|
|
3
2
|
import BasketballIcon from '@atlaskit/icon/core/basketball';
|
|
4
|
-
import CheckCircleIcon from '@atlaskit/icon/core/check-circle';
|
|
5
3
|
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
6
4
|
import EmojiIcon from '@atlaskit/icon/core/emoji';
|
|
7
5
|
import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
|
|
@@ -12,87 +10,6 @@ import TakeoutFoodIcon from '@atlaskit/icon/core/takeout-food';
|
|
|
12
10
|
import TreeIcon from '@atlaskit/icon/core/tree';
|
|
13
11
|
import VehicleCarIcon from '@atlaskit/icon/core/vehicle-car';
|
|
14
12
|
import { customCategory, userCustomTitle, customTitle } from '../../util/constants';
|
|
15
|
-
export const CategoryDescriptionMap = {
|
|
16
|
-
SEARCH: {
|
|
17
|
-
id: 'SEARCH',
|
|
18
|
-
name: 'categoriesSearchResults',
|
|
19
|
-
// refers to i18n categoriesSearchResults key
|
|
20
|
-
icon: undefined,
|
|
21
|
-
order: 0
|
|
22
|
-
},
|
|
23
|
-
FREQUENT: {
|
|
24
|
-
id: 'FREQUENT',
|
|
25
|
-
name: 'frequentCategory',
|
|
26
|
-
icon: ClockIcon,
|
|
27
|
-
order: 1
|
|
28
|
-
},
|
|
29
|
-
PEOPLE: {
|
|
30
|
-
id: 'PEOPLE',
|
|
31
|
-
name: 'peopleCategory',
|
|
32
|
-
icon: EmojiIcon,
|
|
33
|
-
order: 2
|
|
34
|
-
},
|
|
35
|
-
NATURE: {
|
|
36
|
-
id: 'NATURE',
|
|
37
|
-
name: 'natureCategory',
|
|
38
|
-
icon: TreeIcon,
|
|
39
|
-
order: 3
|
|
40
|
-
},
|
|
41
|
-
FOODS: {
|
|
42
|
-
id: 'FOODS',
|
|
43
|
-
name: 'foodsCategory',
|
|
44
|
-
icon: TakeoutFoodIcon,
|
|
45
|
-
order: 4
|
|
46
|
-
},
|
|
47
|
-
ACTIVITY: {
|
|
48
|
-
id: 'ACTIVITY',
|
|
49
|
-
name: 'activityCategory',
|
|
50
|
-
icon: BasketballIcon,
|
|
51
|
-
order: 5
|
|
52
|
-
},
|
|
53
|
-
PLACES: {
|
|
54
|
-
id: 'PLACES',
|
|
55
|
-
name: 'placesCategory',
|
|
56
|
-
icon: VehicleCarIcon,
|
|
57
|
-
order: 6
|
|
58
|
-
},
|
|
59
|
-
OBJECTS: {
|
|
60
|
-
id: 'OBJECTS',
|
|
61
|
-
name: 'objectsCategory',
|
|
62
|
-
icon: LightbulbIcon,
|
|
63
|
-
order: 7
|
|
64
|
-
},
|
|
65
|
-
SYMBOLS: {
|
|
66
|
-
id: 'SYMBOLS',
|
|
67
|
-
name: 'symbolsCategory',
|
|
68
|
-
icon: HeartIcon,
|
|
69
|
-
order: 8
|
|
70
|
-
},
|
|
71
|
-
FLAGS: {
|
|
72
|
-
id: 'FLAGS',
|
|
73
|
-
name: 'flagsCategory',
|
|
74
|
-
icon: FlagIcon,
|
|
75
|
-
order: 9
|
|
76
|
-
},
|
|
77
|
-
ATLASSIAN: {
|
|
78
|
-
id: 'ATLASSIAN',
|
|
79
|
-
name: 'productivityCategory',
|
|
80
|
-
icon: CheckCircleIcon,
|
|
81
|
-
order: 10
|
|
82
|
-
},
|
|
83
|
-
USER_CUSTOM: {
|
|
84
|
-
id: customCategory,
|
|
85
|
-
name: userCustomTitle,
|
|
86
|
-
icon: AddIcon,
|
|
87
|
-
order: 11
|
|
88
|
-
},
|
|
89
|
-
CUSTOM: {
|
|
90
|
-
id: customCategory,
|
|
91
|
-
name: customTitle,
|
|
92
|
-
icon: AddIcon,
|
|
93
|
-
order: 12
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
13
|
export const CategoryDescriptionMapNew = {
|
|
97
14
|
SEARCH: {
|
|
98
15
|
id: 'SEARCH',
|
|
@@ -21,7 +21,6 @@ const EmojiUploadComponent = props => {
|
|
|
21
21
|
emojiProvider,
|
|
22
22
|
createAnalyticsEvent,
|
|
23
23
|
onUploaderRef,
|
|
24
|
-
disableFocusLock,
|
|
25
24
|
contentId
|
|
26
25
|
} = props;
|
|
27
26
|
const [uploadErrorMessage, setUploadErrorMessage] = useState();
|
|
@@ -95,7 +94,6 @@ const EmojiUploadComponent = props => {
|
|
|
95
94
|
onUploadCancelled: onUploadCancelled,
|
|
96
95
|
onUploadEmoji: onUploadEmoji,
|
|
97
96
|
errorMessage: uploadErrorMessage ? /*#__PURE__*/React.createElement(FormattedMessage, uploadErrorMessage) : null,
|
|
98
|
-
disableFocusLock: disableFocusLock,
|
|
99
97
|
contentId: contentId,
|
|
100
98
|
fireAnalytics: fireAnalytics
|
|
101
99
|
})));
|
|
@@ -32,7 +32,6 @@ export const sizeGap = 80;
|
|
|
32
32
|
export const defaultEmojiPickerSize = 'medium';
|
|
33
33
|
export const emojiPickerMinHeight = 260;
|
|
34
34
|
export const emojiPickerHeight = 295;
|
|
35
|
-
export const emojiPickerListHeight = emojiPickerHeight - 58; // picker height - actions height
|
|
36
35
|
export const emojiPickerListHeightNew = emojiPickerHeight - 102; // picker height - actions height - preview height
|
|
37
36
|
|
|
38
37
|
export const emojiPickerPreviewHeight = 54;
|
|
@@ -12,7 +12,6 @@ import { SearchSort } from '../types';
|
|
|
12
12
|
import { defaultCategories, frequentCategory } from '../util/constants';
|
|
13
13
|
import { getCategoryId } from '../util/get-category-id';
|
|
14
14
|
import { isEmojiDescriptionWithVariations } from '../util/is-emoji-description-with-variations';
|
|
15
|
-
import { isTeamoji26RefreshEmojiPickerEnabled } from '../util/teamoji26RefreshEmojiPicker';
|
|
16
15
|
import { tokenizerRegex } from './EmojiRepositoryRegex';
|
|
17
16
|
import { getEmojiVariation } from './getEmojiVariation';
|
|
18
17
|
import { createSearchEmojiComparator } from './internal/createSearchEmojiComparator';
|
|
@@ -130,9 +129,6 @@ var findEmojiIndex = function findEmojiIndex(emojis, toFind) {
|
|
|
130
129
|
});
|
|
131
130
|
return match;
|
|
132
131
|
};
|
|
133
|
-
var isRefreshEmojiPickerEnabled = function isRefreshEmojiPickerEnabled() {
|
|
134
|
-
return isTeamoji26RefreshEmojiPickerEnabled();
|
|
135
|
-
};
|
|
136
132
|
var EmojiRepository = /*#__PURE__*/function () {
|
|
137
133
|
// protected to allow subclasses to access (for testing and storybooks).
|
|
138
134
|
|
|
@@ -394,9 +390,7 @@ var EmojiRepository = /*#__PURE__*/function () {
|
|
|
394
390
|
this.fullSearch.searchIndex = new UnorderedSearchIndex();
|
|
395
391
|
this.fullSearch.addIndex('name');
|
|
396
392
|
this.fullSearch.addIndex('shortName');
|
|
397
|
-
|
|
398
|
-
this.fullSearch.addIndex('keywords');
|
|
399
|
-
}
|
|
393
|
+
this.fullSearch.addIndex('keywords');
|
|
400
394
|
this.fullSearch.addDocuments(this.getAllSearchableEmojis());
|
|
401
395
|
this.fullSearchReady = true;
|
|
402
396
|
}
|
|
@@ -25,7 +25,6 @@ import { isMediaEmoji } from '../util/is-media-emoji';
|
|
|
25
25
|
import { isPromise } from '../util/is-promise';
|
|
26
26
|
import debug from '../util/logger';
|
|
27
27
|
import storageAvailable from '../util/storage-available';
|
|
28
|
-
import { isTeamoji26RefreshEmojiPickerEnabled } from '../util/teamoji26RefreshEmojiPicker';
|
|
29
28
|
import { promiseWithTimeout } from '../util/timed-promise';
|
|
30
29
|
import { toEmojiId } from '../util/to-emoji-id';
|
|
31
30
|
import EmojiLoader from './EmojiLoader';
|
|
@@ -73,13 +72,12 @@ export var EmojiResource = /*#__PURE__*/function (_AbstractResource) {
|
|
|
73
72
|
return migrateRemainingEmojiProviders ? url.replace('gateway/api/emoji', 'gateway/api/elements/emoji') : url.replace('/gateway/api/emoji', '/gateway/api/elements/emoji');
|
|
74
73
|
};
|
|
75
74
|
var stargateEmojiPathEnabled = fg('use-elements-stargate-emoji-path') || migrateRemainingEmojiProviders;
|
|
76
|
-
var teamoji26RefreshEmojiPickerEnabled = isTeamoji26RefreshEmojiPickerEnabled();
|
|
77
75
|
var singleEmojiApi = config.singleEmojiApi;
|
|
78
76
|
var optimisticImageApi = config.optimisticImageApi;
|
|
79
77
|
var providers = config.providers.map(function (provider) {
|
|
80
78
|
var rewrittenUrl = stargateEmojiPathEnabled ? rewriteEmojiGatewayPath(provider.url) : provider.url;
|
|
81
79
|
return _objectSpread(_objectSpread({}, provider), {}, {
|
|
82
|
-
url:
|
|
80
|
+
url: addTeamoji26QueryParam(rewrittenUrl)
|
|
83
81
|
});
|
|
84
82
|
});
|
|
85
83
|
_this.emojiProviderConfig = _objectSpread(_objectSpread({}, config), {}, {
|
|
@@ -6,7 +6,6 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
6
6
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
8
8
|
import { deleteEmojiLabel } from '../../util/constants';
|
|
9
|
-
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
10
9
|
import { emojiDeleteButton } from './styles';
|
|
11
10
|
var styles = {
|
|
12
11
|
boxWrapperStyle: "_1bsbf6fq _4t3if6fq"
|
|
@@ -19,22 +18,17 @@ var refreshedDeleteButton = null;
|
|
|
19
18
|
*/
|
|
20
19
|
export var RENDER_EMOJI_DELETE_BUTTON_TESTID = 'render-emoji-delete-button';
|
|
21
20
|
var DeleteButton = function DeleteButton(props) {
|
|
22
|
-
var isRefreshEnabled = isRefreshEmojiPickerEnabled();
|
|
23
21
|
return /*#__PURE__*/React.createElement("span", {
|
|
24
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
25
|
-
className: ax(["_3um015vq _1e0c1txw _kqswstnw _154ix0bf _1xi2x0bf _1pbykb7n _13t3idpf",
|
|
23
|
+
className: ax(["_3um015vq _1e0c1txw _kqswstnw _154ix0bf _1xi2x0bf _1pbykb7n _13t3idpf", "_154ir5cr _1xi2r5cr", emojiDeleteButton]),
|
|
26
24
|
"data-testid": RENDER_EMOJI_DELETE_BUTTON_TESTID
|
|
27
25
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
28
26
|
iconBefore: /*#__PURE__*/React.createElement(Box, {
|
|
29
27
|
xcss: styles.boxWrapperStyle
|
|
30
|
-
},
|
|
28
|
+
}, /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
31
29
|
label: deleteEmojiLabel,
|
|
32
30
|
color: "var(--ds-icon, #292A2E)",
|
|
33
31
|
size: "medium"
|
|
34
|
-
}) : /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
35
|
-
label: deleteEmojiLabel,
|
|
36
|
-
color: "var(--ds-text-subtle, #505258)",
|
|
37
|
-
size: "small"
|
|
38
32
|
})),
|
|
39
33
|
onClick: props.onClick
|
|
40
34
|
// TODO: (from codemod) "link" and "subtle-link" appearances are only available in LinkButton, please either provide a href prop then migrate to LinkButton, or remove the appearance from the default button.
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
._19itia51{border:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
|
|
2
|
-
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
3
|
-
._n7zl1uh4{border-bottom:var(--ds-border-width-selected,2px) solid var(--ds-border,#0b120e24)}._154i15iq{top:calc(100% + var(--ds-space-050, 4px))}
|
|
2
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._154i15iq{top:calc(100% + var(--ds-space-050, 4px))}
|
|
4
3
|
._16jlidpf{flex-grow:0}
|
|
5
4
|
._16jlkb7n{flex-grow:1}
|
|
6
5
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
7
|
-
._16qsjgpa{box-shadow:0 1px 1px 0 var(--ds-border,#0b120e24)}
|
|
8
6
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
9
7
|
._19bvidpf{padding-left:0}
|
|
10
8
|
._1bahesu3{justify-content:flex-end}
|
|
@@ -10,10 +10,8 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
10
10
|
import { DEFAULT_TONE } from '../../util/constants';
|
|
11
11
|
import { messages } from '../i18n';
|
|
12
12
|
import { EmojiPickerListSearch } from '../picker/EmojiPickerListSearch';
|
|
13
|
-
import { AddOwnEmoji } from './AddOwnEmoji';
|
|
14
13
|
import EmojiDeletePreview from './EmojiDeletePreview';
|
|
15
14
|
import EmojiUploadPicker from './EmojiUploadPicker';
|
|
16
|
-
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
17
15
|
import ProductivityColorSelector, { productivityColorSelectorId } from './ProductivityColorSelector';
|
|
18
16
|
import { setSkinToneAriaLabelText } from './setSkinToneAriaLabelText';
|
|
19
17
|
import TonePreviewButton from './TonePreviewButton';
|
|
@@ -29,7 +27,6 @@ var productivityColorPopupAnchor = null;
|
|
|
29
27
|
// Matches the ADS tooltip layer so the selector sits above picker content.
|
|
30
28
|
var productivityColorPopupZIndex = 9999;
|
|
31
29
|
var productivityColorPopupPosition = null;
|
|
32
|
-
var previewFooter = null;
|
|
33
30
|
var previewFooterNew = null;
|
|
34
31
|
var atlassianSubcategoriesWithProductivityColorSelector = ['Objects', 'Productivity', 'Logos'];
|
|
35
32
|
var ProductivityColorPopupContent = function ProductivityColorPopupContent(_ref) {
|
|
@@ -145,7 +142,7 @@ var TonesWrapper = function TonesWrapper(props) {
|
|
|
145
142
|
openProductivityColorSelectorWithKeyboard.current = true;
|
|
146
143
|
}
|
|
147
144
|
}, []);
|
|
148
|
-
var shouldShowProductivityColorSelector = !!(activeCategoryId === 'ATLASSIAN' && activeAtlassianSubcategory && atlassianSubcategoriesWithProductivityColorSelector.includes(activeAtlassianSubcategory) && productivityColorPreviewEmojis && selectedProductivityColor && onProductivityColorSelected
|
|
145
|
+
var shouldShowProductivityColorSelector = !!(activeCategoryId === 'ATLASSIAN' && activeAtlassianSubcategory && atlassianSubcategoriesWithProductivityColorSelector.includes(activeAtlassianSubcategory) && productivityColorPreviewEmojis && selectedProductivityColor && onProductivityColorSelected);
|
|
149
146
|
if (shouldShowProductivityColorSelector) {
|
|
150
147
|
var previewEmoji = (productivityColorPreviewEmojis === null || productivityColorPreviewEmojis === void 0 ? void 0 : productivityColorPreviewEmojis[selectedProductivityColor]) || Object.values(productivityColorPreviewEmojis || {})[0];
|
|
151
148
|
if (!previewEmoji) {
|
|
@@ -200,7 +197,6 @@ var TonesWrapper = function TonesWrapper(props) {
|
|
|
200
197
|
isVisible: !showToneSelector
|
|
201
198
|
}));
|
|
202
199
|
};
|
|
203
|
-
// TODO: remove this on cleanup of platform_teamoji_26_refresh_emoji_picker
|
|
204
200
|
export var EmojiActions = function EmojiActions(props) {
|
|
205
201
|
var onToneSelected = props.onToneSelected,
|
|
206
202
|
onToneSelectorCancelled = props.onToneSelectorCancelled,
|
|
@@ -223,7 +219,7 @@ export var EmojiActions = function EmojiActions(props) {
|
|
|
223
219
|
showToneSelector = _useState6[0],
|
|
224
220
|
setShowToneSelector = _useState6[1];
|
|
225
221
|
var wasProductivityColorSelectorOpen = useRef(false);
|
|
226
|
-
var shouldUseProductivityColorControl = !!(props.activeCategoryId === 'ATLASSIAN' && props.activeAtlassianSubcategory && atlassianSubcategoriesWithProductivityColorSelector.includes(props.activeAtlassianSubcategory) && props.productivityColorPreviewEmojis && props.selectedProductivityColor && props.onProductivityColorSelected
|
|
222
|
+
var shouldUseProductivityColorControl = !!(props.activeCategoryId === 'ATLASSIAN' && props.activeAtlassianSubcategory && atlassianSubcategoriesWithProductivityColorSelector.includes(props.activeAtlassianSubcategory) && props.productivityColorPreviewEmojis && props.selectedProductivityColor && props.onProductivityColorSelected);
|
|
227
223
|
var onToneOpenHandler = useCallback(function () {
|
|
228
224
|
return setShowToneSelector(true);
|
|
229
225
|
}, []);
|
|
@@ -266,7 +262,7 @@ export var EmojiActions = function EmojiActions(props) {
|
|
|
266
262
|
}
|
|
267
263
|
}, [shouldUseProductivityColorControl, showToneSelector]);
|
|
268
264
|
if (uploading) {
|
|
269
|
-
return
|
|
265
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
270
266
|
className: ax(["_16jlidpf _1o9zidpf _i0dl1wug"])
|
|
271
267
|
}, /*#__PURE__*/React.createElement(EmojiUploadPicker, {
|
|
272
268
|
onUploadCancelled: onUploadCancelled,
|
|
@@ -277,35 +273,18 @@ export var EmojiActions = function EmojiActions(props) {
|
|
|
277
273
|
onUploadPreviewErrorChange: onUploadPreviewErrorChange,
|
|
278
274
|
contentId: props.contentId,
|
|
279
275
|
fireAnalytics: props.fireAnalytics
|
|
280
|
-
})) : /*#__PURE__*/React.createElement("div", {
|
|
281
|
-
className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _n7zl1uh4 _16qsjgpa"])
|
|
282
|
-
}, /*#__PURE__*/React.createElement(EmojiUploadPicker, {
|
|
283
|
-
onUploadCancelled: onUploadCancelled,
|
|
284
|
-
onUploadEmoji: onUploadEmoji,
|
|
285
|
-
onFileChooserClicked: onFileChooserClicked,
|
|
286
|
-
errorMessage: uploadErrorMessage,
|
|
287
|
-
initialUploadName: initialUploadName,
|
|
288
|
-
onUploadPreviewErrorChange: onUploadPreviewErrorChange,
|
|
289
|
-
contentId: props.contentId,
|
|
290
|
-
fireAnalytics: props.fireAnalytics
|
|
291
276
|
}));
|
|
292
277
|
}
|
|
293
278
|
if (emojiToDelete) {
|
|
294
|
-
return
|
|
279
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
295
280
|
className: ax(["_16jlidpf _1o9zidpf _i0dl1wug"])
|
|
296
281
|
}, /*#__PURE__*/React.createElement(EmojiDeletePreview, {
|
|
297
282
|
emoji: emojiToDelete,
|
|
298
283
|
onDeleteEmoji: onDeleteEmoji,
|
|
299
284
|
onCloseDelete: onCloseDelete
|
|
300
|
-
})) : /*#__PURE__*/React.createElement("div", {
|
|
301
|
-
className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _n7zl1uh4 _16qsjgpa"])
|
|
302
|
-
}, /*#__PURE__*/React.createElement(EmojiDeletePreview, {
|
|
303
|
-
emoji: emojiToDelete,
|
|
304
|
-
onDeleteEmoji: onDeleteEmoji,
|
|
305
|
-
onCloseDelete: onCloseDelete
|
|
306
285
|
}));
|
|
307
286
|
}
|
|
308
|
-
return
|
|
287
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
309
288
|
"data-testid": emojiActionsTestId,
|
|
310
289
|
onMouseLeave: onMouseLeaveHandler,
|
|
311
290
|
onBlur: fg('platform_suppression_removal_fix_reactions') ? onBlurHandler : undefined,
|
|
@@ -323,25 +302,7 @@ export var EmojiActions = function EmojiActions(props) {
|
|
|
323
302
|
onToneSelected: onToneSelectedHandler,
|
|
324
303
|
onToneToggle: onToneToggleHandler,
|
|
325
304
|
showToneSelector: showToneSelector
|
|
326
|
-
}))))
|
|
327
|
-
"data-testid": emojiActionsTestId,
|
|
328
|
-
onMouseLeave: onMouseLeaveHandler,
|
|
329
|
-
onBlur: fg('platform_suppression_removal_fix_reactions') ? onBlurHandler : undefined,
|
|
330
|
-
className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _n7zl1uh4 _16qsjgpa"])
|
|
331
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
332
|
-
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o"])
|
|
333
|
-
}, /*#__PURE__*/React.createElement(EmojiPickerListSearch, {
|
|
334
|
-
onChange: onChange,
|
|
335
|
-
query: query,
|
|
336
|
-
resultsCount: resultsCount,
|
|
337
|
-
isVisible: !showToneSelector
|
|
338
|
-
}), /*#__PURE__*/React.createElement(TonesWrapper, _extends({}, props, {
|
|
339
|
-
onToneOpen: onToneOpenHandler,
|
|
340
|
-
onToneClose: onToneCloseHandler,
|
|
341
|
-
onToneSelected: onToneSelectedHandler,
|
|
342
|
-
onToneToggle: onToneToggleHandler,
|
|
343
|
-
showToneSelector: showToneSelector
|
|
344
|
-
}))), /*#__PURE__*/React.createElement(AddOwnEmoji, props));
|
|
305
|
+
}))));
|
|
345
306
|
};
|
|
346
307
|
|
|
347
308
|
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
@@ -1,39 +1,24 @@
|
|
|
1
|
-
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
1
|
._1sc1wadc span{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._2rko1tm3{border-radius:var(--ds-radius-xxlarge,1pc)}
|
|
4
3
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
5
4
|
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
6
|
-
._zulputpp{gap:var(--ds-space-150,9pt)}
|
|
7
|
-
._16jlkb7n{flex-grow:1}
|
|
5
|
+
._zulputpp{gap:var(--ds-space-150,9pt)}._16jlkb7n{flex-grow:1}
|
|
8
6
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
9
|
-
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
10
|
-
._19l3zwfg img{max-height:2pc}
|
|
11
7
|
._19pkutpp{margin-top:var(--ds-space-150,9pt)}
|
|
12
8
|
._1bah1h6o{justify-content:center}
|
|
13
|
-
._1bah1yb4{justify-content:space-between}
|
|
14
9
|
._1bahesu3{justify-content:flex-end}
|
|
15
10
|
._1e0c1txw{display:flex}
|
|
16
11
|
._1o9zkb7n{flex-shrink:1}
|
|
17
|
-
._1qz31b66 .emoji-submit-delete{margin-right:var(--ds-space-050,4px)}
|
|
18
12
|
._1tke1sa4{min-height:390px}
|
|
19
|
-
._1txfwu06 .emoji-submit-delete{font-weight:var(--ds-font-weight-bold,653)}
|
|
20
13
|
._2lx21bp4{flex-direction:column}
|
|
21
14
|
._4cvr1h6o{align-items:center}
|
|
22
15
|
._4cvr1y6m{align-items:flex-start}
|
|
23
|
-
._4t3i1ylp{height:40px}
|
|
24
|
-
._4t3i53f4{height:75pt}
|
|
25
|
-
._4t3ivbgk{height:4pc}
|
|
26
16
|
._bfhk1gly{background-color:var(--ds-background-danger,#ffeceb)}
|
|
27
17
|
._bna7t9kd img{height:72px}
|
|
28
|
-
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
29
18
|
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
30
19
|
._i0dl1wug{flex-basis:auto}
|
|
31
|
-
._m73io7ol .emoji-submit-delete{width:84px}
|
|
32
20
|
._mezjt9kd img{width:72px}
|
|
33
|
-
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
34
21
|
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
35
|
-
._rtyst9kd img{max-width:72px}
|
|
36
22
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
37
|
-
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
38
23
|
._vchhusvi{box-sizing:border-box}
|
|
39
24
|
._y3gn1e5h{text-align:left}
|
|
@@ -22,12 +22,7 @@ import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
|
22
22
|
import { messages } from '../i18n';
|
|
23
23
|
import CachingEmoji from './CachingEmoji';
|
|
24
24
|
import EmojiErrorMessage, { emojiErrorScreenreaderTestId } from './EmojiErrorMessage';
|
|
25
|
-
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
26
25
|
import RetryableButton from './RetryableButton';
|
|
27
|
-
var deleteFooter = null;
|
|
28
|
-
var deletePreview = null;
|
|
29
|
-
var deleteText = null;
|
|
30
|
-
var previewButtonGroup = null;
|
|
31
26
|
var deletePreviewNew = null;
|
|
32
27
|
var deleteTextSection = null;
|
|
33
28
|
var emojiPreviewLargeBox = null;
|
|
@@ -40,9 +35,7 @@ var EmojiDeletePreview = /*#__PURE__*/function (_Component) {
|
|
|
40
35
|
_classCallCheck(this, EmojiDeletePreview);
|
|
41
36
|
_this = _callSuper(this, EmojiDeletePreview, [props]);
|
|
42
37
|
_defineProperty(_this, "stopClickPropagationForRefreshEmojiPicker", function (event) {
|
|
43
|
-
|
|
44
|
-
event === null || event === void 0 || event.stopPropagation();
|
|
45
|
-
}
|
|
38
|
+
event === null || event === void 0 || event.stopPropagation();
|
|
46
39
|
});
|
|
47
40
|
_defineProperty(_this, "onSubmit", function (event) {
|
|
48
41
|
_this.stopClickPropagationForRefreshEmojiPicker(event);
|
|
@@ -96,59 +89,18 @@ var EmojiDeletePreview = /*#__PURE__*/function (_Component) {
|
|
|
96
89
|
loading = _this$state.loading,
|
|
97
90
|
error = _this$state.error;
|
|
98
91
|
var formatMessage = intl.formatMessage;
|
|
99
|
-
if (isRefreshEmojiPickerEnabled()) {
|
|
100
|
-
return /*#__PURE__*/React.createElement(FocusLock, {
|
|
101
|
-
noFocusGuards: true
|
|
102
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
103
|
-
"data-testid": emojiDeletePreviewTestId,
|
|
104
|
-
className: ax(["_zulputpp _1e0c1txw _2lx21bp4 _1tke1sa4 _ca0qutpp _u5f3pxbi _n3tdutpp _19bvpxbi _vchhusvi"])
|
|
105
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
106
|
-
className: ax(["_zulp1b66 _1e0c1txw _2lx21bp4 _4cvr1y6m _y3gn1e5h"])
|
|
107
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
108
|
-
paddingBlockEnd: "space.100"
|
|
109
|
-
}, /*#__PURE__*/React.createElement(Heading, {
|
|
110
|
-
size: "small"
|
|
111
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle))), /*#__PURE__*/React.createElement(Text, {
|
|
112
|
-
color: "color.text.subtle",
|
|
113
|
-
size: "small"
|
|
114
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.deleteEmojiDescription, {
|
|
115
|
-
values: {
|
|
116
|
-
emojiShortName: emoji.shortName
|
|
117
|
-
}
|
|
118
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
119
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _2rko1tm3 _1e0c1txw _4cvr1h6o _1bah1h6o _bfhk1gly _1sc1wadc _mezjt9kd _bna7t9kd"])
|
|
120
|
-
}, /*#__PURE__*/React.createElement(CachingEmoji, {
|
|
121
|
-
emoji: emoji
|
|
122
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
123
|
-
className: ax(["_zulpu2gc _1e0c1txw _4cvr1h6o _1bahesu3 _19pkutpp _n3tdutpp"])
|
|
124
|
-
}, error && !loading ? /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
125
|
-
message: formatMessage(messages.deleteEmojiFailed),
|
|
126
|
-
errorStyle: "delete",
|
|
127
|
-
tooltip: true
|
|
128
|
-
}) : null, /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
129
|
-
id: deleteEmojiLabelId
|
|
130
|
-
}, formatMessage(messages.deleteEmojiLabel)), /*#__PURE__*/React.createElement(AkButton, {
|
|
131
|
-
appearance: "subtle",
|
|
132
|
-
onClick: this.onCancel
|
|
133
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.cancelLabel)), /*#__PURE__*/React.createElement(RetryableButton, {
|
|
134
|
-
label: formatMessage(messages.deleteEmojiLabel),
|
|
135
|
-
onSubmit: this.onSubmit,
|
|
136
|
-
appearance: "danger",
|
|
137
|
-
loading: loading,
|
|
138
|
-
error: error,
|
|
139
|
-
ariaLabelledBy: "".concat(emojiErrorScreenreaderTestId, " ").concat(deleteEmojiLabelId)
|
|
140
|
-
}))));
|
|
141
|
-
}
|
|
142
92
|
return /*#__PURE__*/React.createElement(FocusLock, {
|
|
143
93
|
noFocusGuards: true
|
|
144
94
|
}, /*#__PURE__*/React.createElement("div", {
|
|
145
95
|
"data-testid": emojiDeletePreviewTestId,
|
|
146
|
-
className: ax(["
|
|
96
|
+
className: ax(["_zulputpp _1e0c1txw _2lx21bp4 _1tke1sa4 _ca0qutpp _u5f3pxbi _n3tdutpp _19bvpxbi _vchhusvi"])
|
|
147
97
|
}, /*#__PURE__*/React.createElement("div", {
|
|
148
|
-
className: ax(["
|
|
98
|
+
className: ax(["_zulp1b66 _1e0c1txw _2lx21bp4 _4cvr1y6m _y3gn1e5h"])
|
|
99
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
100
|
+
paddingBlockEnd: "space.100"
|
|
149
101
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
150
|
-
size: "
|
|
151
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(Text, {
|
|
102
|
+
size: "small"
|
|
103
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle))), /*#__PURE__*/React.createElement(Text, {
|
|
152
104
|
color: "color.text.subtle",
|
|
153
105
|
size: "small"
|
|
154
106
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.deleteEmojiDescription, {
|
|
@@ -156,28 +108,28 @@ var EmojiDeletePreview = /*#__PURE__*/function (_Component) {
|
|
|
156
108
|
emojiShortName: emoji.shortName
|
|
157
109
|
}
|
|
158
110
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
159
|
-
className: ax(["
|
|
111
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _2rko1tm3 _1e0c1txw _4cvr1h6o _1bah1h6o _bfhk1gly _1sc1wadc _mezjt9kd _bna7t9kd"])
|
|
160
112
|
}, /*#__PURE__*/React.createElement(CachingEmoji, {
|
|
161
113
|
emoji: emoji
|
|
162
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
163
|
-
className: ax(["_1e0c1txw"])
|
|
164
|
-
}, error
|
|
114
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
115
|
+
className: ax(["_zulpu2gc _1e0c1txw _4cvr1h6o _1bahesu3 _19pkutpp _n3tdutpp"])
|
|
116
|
+
}, error && !loading ? /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
165
117
|
message: formatMessage(messages.deleteEmojiFailed),
|
|
166
118
|
errorStyle: "delete",
|
|
167
119
|
tooltip: true
|
|
168
|
-
}) : null
|
|
120
|
+
}) : null, /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
169
121
|
id: deleteEmojiLabelId
|
|
170
|
-
}, formatMessage(messages.deleteEmojiLabel)), /*#__PURE__*/React.createElement(
|
|
122
|
+
}, formatMessage(messages.deleteEmojiLabel)), /*#__PURE__*/React.createElement(AkButton, {
|
|
123
|
+
appearance: "subtle",
|
|
124
|
+
onClick: this.onCancel
|
|
125
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.cancelLabel)), /*#__PURE__*/React.createElement(RetryableButton, {
|
|
171
126
|
label: formatMessage(messages.deleteEmojiLabel),
|
|
172
127
|
onSubmit: this.onSubmit,
|
|
173
128
|
appearance: "danger",
|
|
174
129
|
loading: loading,
|
|
175
130
|
error: error,
|
|
176
131
|
ariaLabelledBy: "".concat(emojiErrorScreenreaderTestId, " ").concat(deleteEmojiLabelId)
|
|
177
|
-
})
|
|
178
|
-
appearance: "subtle",
|
|
179
|
-
onClick: this.onCancel
|
|
180
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.cancelLabel))))));
|
|
132
|
+
}))));
|
|
181
133
|
}
|
|
182
134
|
}]);
|
|
183
135
|
}(Component); // eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
@@ -7,7 +7,6 @@ import { ErrorMessage } from '@atlaskit/form/error-message';
|
|
|
7
7
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
8
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
9
9
|
import { messages } from '../i18n';
|
|
10
|
-
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
11
10
|
var errorMessageStyles = {
|
|
12
11
|
chooseFile: "_1e0c1txw _syaz1tmw _u5f319bv _1bah1y6m",
|
|
13
12
|
delete: "_1e0c1txw _syaz1tmw _4cvr1h6o _1bahesu3 _u5f31b66",
|
|
@@ -35,15 +34,9 @@ var EmojiErrorMessage = function EmojiErrorMessage(props) {
|
|
|
35
34
|
label: formatMessage(messages.error),
|
|
36
35
|
spacing: "spacious",
|
|
37
36
|
testId: emojiErrorIconTestId
|
|
38
|
-
}))) :
|
|
37
|
+
}))) : /*#__PURE__*/React.createElement("div", {
|
|
39
38
|
"data-testid": emojiErrorMessageTestId
|
|
40
|
-
}, /*#__PURE__*/React.createElement(ErrorMessage, null, message))
|
|
41
|
-
"data-testid": emojiErrorMessageTestId,
|
|
42
|
-
className: ax([errorMessageStyles[errorStyle]])
|
|
43
|
-
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
44
|
-
color: "currentColor",
|
|
45
|
-
label: formatMessage(messages.error)
|
|
46
|
-
}), message);
|
|
39
|
+
}, /*#__PURE__*/React.createElement(ErrorMessage, null, message));
|
|
47
40
|
return visualContent;
|
|
48
41
|
};
|
|
49
42
|
export default EmojiErrorMessage;
|
|
@@ -4,14 +4,13 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { memo, forwardRef } from 'react';
|
|
5
5
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
6
6
|
import { TONESELECTOR_KEYBOARD_KEYS_SUPPORTED } from '../../util/constants';
|
|
7
|
-
import { isTeamoji26RefreshEmojiPickerEnabledNoExposure } from '../../util/teamoji26RefreshEmojiPicker';
|
|
8
7
|
import Emoji from './Emoji';
|
|
9
8
|
var emojiButton = null;
|
|
10
9
|
var emojiRadio = {
|
|
11
10
|
default: "_tzy4idpf _kqswstnw _154i14id _1ltv14id _3y8mfajl _157z1r31 _1dzmglyw _1sqm1o36 _fh6w1y54 _1i1213zc"
|
|
12
11
|
};
|
|
13
12
|
var handleKeyDown = function handleKeyDown(props, event) {
|
|
14
|
-
if (
|
|
13
|
+
if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
|
|
15
14
|
var _props$onArrowKey;
|
|
16
15
|
event.preventDefault();
|
|
17
16
|
event.stopPropagation();
|
|
@@ -47,9 +46,9 @@ export var EmojiRadioButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
47
46
|
onKeyDown: function onKeyDown(event) {
|
|
48
47
|
return handleKeyDown(props, event);
|
|
49
48
|
},
|
|
50
|
-
onChange:
|
|
49
|
+
onChange: function onChange(e) {
|
|
51
50
|
return e.preventDefault();
|
|
52
|
-
}
|
|
51
|
+
},
|
|
53
52
|
className: ax([emojiRadio.default])
|
|
54
53
|
}), /*#__PURE__*/React.createElement(Emoji, {
|
|
55
54
|
emoji: emoji,
|
|
@@ -1,33 +1,20 @@
|
|
|
1
1
|
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
|
-
._scffidpf input{border:0}
|
|
4
3
|
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
5
4
|
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
6
|
-
._16jlkb7n{flex-grow:1}
|
|
7
5
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
8
|
-
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
9
6
|
._1bah1b1v{justify-content:space-around}
|
|
10
7
|
._1bah1yb4{justify-content:space-between}
|
|
11
8
|
._1bahesu3{justify-content:flex-end}
|
|
12
9
|
._1e0c1txw{display:flex}
|
|
13
|
-
._1o9zkb7n{flex-shrink:1}
|
|
14
|
-
._1rwq1j28 input{background-color:transparent}
|
|
15
10
|
._1tker0r7{min-height:250px}
|
|
16
11
|
._1w90azsu._1w90azsu{color:var(--ds-text-subtle,#505258)}
|
|
17
12
|
._2lx21bp4{flex-direction:column}
|
|
18
|
-
._34ir1o36 input{outline-width:medium}
|
|
19
13
|
._4cvr1h6o{align-items:center}
|
|
20
14
|
._4cvresu3{align-items:flex-end}
|
|
21
|
-
._9bj2glyw input::-ms-clear{display:none}
|
|
22
15
|
._ca0q12x7{padding-top:var(--ds-space-075,6px)}
|
|
23
16
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
24
|
-
._coc6glyw input:invalid{box-shadow:none}
|
|
25
|
-
._gxxuglyw input{outline-style:none}
|
|
26
|
-
._gy1p12x7{column-gap:var(--ds-space-075,6px)}
|
|
27
|
-
._i0dl1wug{flex-basis:auto}
|
|
28
17
|
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
29
18
|
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
30
19
|
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
31
|
-
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
32
|
-
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
33
|
-
._xmji1r31 input{outline-color:currentColor}
|
|
20
|
+
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|