@atlaskit/emoji 70.17.10 → 71.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/components/common/Emoji.js +2 -1
- package/dist/cjs/components/common/EmojiActions.compiled.css +8 -0
- package/dist/cjs/components/common/EmojiActions.js +69 -3
- package/dist/cjs/components/common/Popup.js +20 -5
- package/dist/cjs/components/common/ProductivityColorSelector.compiled.css +59 -0
- package/dist/cjs/components/common/ProductivityColorSelector.js +112 -0
- package/dist/cjs/components/common/TonePreviewButton.js +4 -2
- package/dist/cjs/components/i18n.js +10 -0
- package/dist/cjs/components/picker/EmojiPickerComponent.js +51 -36
- package/dist/cjs/components/picker/EmojiPickerList.js +36 -14
- package/dist/cjs/components/picker/VirtualList.js +4 -5
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/cjs/util/hidden-emojis.js +33 -0
- package/dist/cjs/util/productivity-colors.js +51 -0
- package/dist/es2019/components/common/Emoji.js +2 -1
- package/dist/es2019/components/common/EmojiActions.compiled.css +8 -0
- package/dist/es2019/components/common/EmojiActions.js +67 -3
- package/dist/es2019/components/common/Popup.js +19 -5
- package/dist/es2019/components/common/ProductivityColorSelector.compiled.css +59 -0
- package/dist/es2019/components/common/ProductivityColorSelector.js +98 -0
- package/dist/es2019/components/common/TonePreviewButton.js +3 -2
- package/dist/es2019/components/i18n.js +10 -0
- package/dist/es2019/components/picker/EmojiPickerComponent.js +26 -14
- package/dist/es2019/components/picker/EmojiPickerList.js +32 -14
- package/dist/es2019/components/picker/VirtualList.js +4 -5
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/es2019/util/hidden-emojis.js +25 -0
- package/dist/es2019/util/productivity-colors.js +37 -0
- package/dist/esm/components/common/Emoji.js +2 -1
- package/dist/esm/components/common/EmojiActions.compiled.css +8 -0
- package/dist/esm/components/common/EmojiActions.js +70 -4
- package/dist/esm/components/common/Popup.js +20 -5
- package/dist/esm/components/common/ProductivityColorSelector.compiled.css +59 -0
- package/dist/esm/components/common/ProductivityColorSelector.js +103 -0
- package/dist/esm/components/common/TonePreviewButton.js +4 -2
- package/dist/esm/components/i18n.js +10 -0
- package/dist/esm/components/picker/EmojiPickerComponent.js +51 -36
- package/dist/esm/components/picker/EmojiPickerList.js +36 -14
- package/dist/esm/components/picker/VirtualList.js +4 -5
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/dist/esm/util/hidden-emojis.js +27 -0
- package/dist/esm/util/productivity-colors.js +45 -0
- package/dist/types/components/common/EmojiActions.d.ts +6 -0
- package/dist/types/components/common/Popup.d.ts +1 -0
- package/dist/types/components/common/ProductivityColorSelector.d.ts +17 -0
- package/dist/types/components/common/TonePreviewButton.d.ts +1 -0
- package/dist/types/components/i18n.d.ts +10 -0
- package/dist/types/components/picker/EmojiPickerList.d.ts +3 -0
- package/dist/types/types.d.ts +7 -0
- package/dist/types/util/hidden-emojis.d.ts +3 -0
- package/dist/types/util/productivity-colors.d.ts +8 -0
- package/package.json +27 -34
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type MemoExoticComponent } from 'react';
|
|
6
|
+
import type { EmojiDescription } from '../../types';
|
|
7
|
+
import { type ProductivityColor } from '../../util/productivity-colors';
|
|
8
|
+
export declare const productivityColorSelectorTestId = "productivity-color-selector";
|
|
9
|
+
export declare const productivityColorSelectorId = "emoji-picker-productivity-color-selector";
|
|
10
|
+
export interface Props {
|
|
11
|
+
colorPreviewEmojis: Partial<Record<ProductivityColor, EmojiDescription>>;
|
|
12
|
+
onColorSelected: (color: ProductivityColor) => void;
|
|
13
|
+
selectedColor: ProductivityColor;
|
|
14
|
+
}
|
|
15
|
+
export declare const ProductivityColorSelector: ({ colorPreviewEmojis, onColorSelected, selectedColor, }: Props) => JSX.Element | null;
|
|
16
|
+
declare const _default_1: MemoExoticComponent<typeof ProductivityColorSelector>;
|
|
17
|
+
export default _default_1;
|
|
@@ -6,6 +6,7 @@ import { type ForwardRefExoticComponent, type MemoExoticComponent, type RefAttri
|
|
|
6
6
|
import type { EmojiDescription } from '../../types';
|
|
7
7
|
export declare const tonePreviewTestId = "tone-preview";
|
|
8
8
|
export interface Props {
|
|
9
|
+
ariaControls?: string;
|
|
9
10
|
ariaExpanded?: boolean;
|
|
10
11
|
ariaLabelText?: string;
|
|
11
12
|
emoji: EmojiDescription;
|
|
@@ -164,6 +164,16 @@ export declare const messages: {
|
|
|
164
164
|
description: string;
|
|
165
165
|
id: string;
|
|
166
166
|
};
|
|
167
|
+
emojiSelectColorButtonAriaLabelText: {
|
|
168
|
+
defaultMessage: string;
|
|
169
|
+
description: string;
|
|
170
|
+
id: string;
|
|
171
|
+
};
|
|
172
|
+
emojiSelectColorListAriaLabelText: {
|
|
173
|
+
defaultMessage: string;
|
|
174
|
+
description: string;
|
|
175
|
+
id: string;
|
|
176
|
+
};
|
|
167
177
|
emojiSelectSkinToneListAriaLabelText: {
|
|
168
178
|
defaultMessage: string;
|
|
169
179
|
description: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EmojiDescription, EmojiDescriptionWithVariations, Message, OnCategory, OnEmojiEvent, OnToneSelected, OnToneSelectorCancelled, PickerSize, ToneSelection, User } from '../../types';
|
|
3
|
+
import { type ProductivityColor } from '../../util/productivity-colors';
|
|
3
4
|
import { type CategoryId } from './categories';
|
|
4
5
|
import type { OnUploadEmoji } from '../common/EmojiUploadPicker';
|
|
5
6
|
import type { OnDeleteEmoji } from '../common/EmojiDeletePreview';
|
|
@@ -26,12 +27,14 @@ export interface Props {
|
|
|
26
27
|
onEmojiSelected?: OnEmojiEvent;
|
|
27
28
|
onFileChooserClicked?: () => void;
|
|
28
29
|
onOpenUpload: () => void;
|
|
30
|
+
onProductivityColorSelected?: (color: ProductivityColor) => void;
|
|
29
31
|
onSearch?: OnSearch;
|
|
30
32
|
onToneSelected?: OnToneSelected;
|
|
31
33
|
onToneSelectorCancelled?: OnToneSelectorCancelled;
|
|
32
34
|
onUploadCancelled: () => void;
|
|
33
35
|
onUploadEmoji: OnUploadEmoji;
|
|
34
36
|
query?: string;
|
|
37
|
+
selectedProductivityColor?: ProductivityColor;
|
|
35
38
|
selectedTone?: ToneSelection;
|
|
36
39
|
size?: PickerSize;
|
|
37
40
|
toneEmoji?: EmojiDescriptionWithVariations;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -220,13 +220,20 @@ export interface EmojiDescription extends EmojiId {
|
|
|
220
220
|
altRepresentation?: EmojiRepresentation;
|
|
221
221
|
ascii?: string[];
|
|
222
222
|
category: string;
|
|
223
|
+
color?: string;
|
|
223
224
|
createdDate?: string;
|
|
224
225
|
creatorUserId?: string;
|
|
226
|
+
fallback?: string;
|
|
227
|
+
hidden?: boolean;
|
|
228
|
+
keywords?: string[];
|
|
225
229
|
name?: string;
|
|
226
230
|
order?: number;
|
|
227
231
|
representation: EmojiRepresentation;
|
|
228
232
|
searchable: boolean;
|
|
229
233
|
type: string;
|
|
234
|
+
variantBase?: boolean;
|
|
235
|
+
variantChildren?: string[];
|
|
236
|
+
variantParent?: string;
|
|
230
237
|
}
|
|
231
238
|
export interface EmojiDescriptionWithVariations extends EmojiDescription {
|
|
232
239
|
skinVariations?: EmojiDescription[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EmojiDescription } from '../types';
|
|
2
|
+
export declare const productivityColors: readonly ["gray", "magenta", "purple", "blue", "teal", "green", "lime", "yellow", "orange", "red"];
|
|
3
|
+
export type ProductivityColor = (typeof productivityColors)[number];
|
|
4
|
+
export declare const defaultProductivityColor: ProductivityColor;
|
|
5
|
+
export declare const getProductivityColor: (emoji: EmojiDescription) => ProductivityColor | undefined;
|
|
6
|
+
export declare const isProductivityNumberEmoji: (emoji: EmojiDescription) => boolean;
|
|
7
|
+
export declare const filterProductivityEmojisByColor: (emojis: EmojiDescription[], selectedColor: ProductivityColor) => EmojiDescription[];
|
|
8
|
+
export declare const getProductivityColorPreviewEmojis: (emojis: EmojiDescription[]) => Partial<Record<ProductivityColor, EmojiDescription>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "71.0.1",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,14 +12,6 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"typesVersions": {
|
|
16
|
-
">=4.5 <4.9": {
|
|
17
|
-
"*": [
|
|
18
|
-
"dist/types-ts4.5/*",
|
|
19
|
-
"dist/types-ts4.5/index.d.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
15
|
"sideEffects": [
|
|
24
16
|
"*.compiled.css"
|
|
25
17
|
],
|
|
@@ -38,29 +30,30 @@
|
|
|
38
30
|
},
|
|
39
31
|
"dependencies": {
|
|
40
32
|
"@atlaskit/afm-i18n-platform-elements-emoji": "2.7.0",
|
|
41
|
-
"@atlaskit/analytics-next": "^
|
|
42
|
-
"@atlaskit/browser-apis": "^0.0
|
|
43
|
-
"@atlaskit/button": "^
|
|
44
|
-
"@atlaskit/css": "^0.
|
|
45
|
-
"@atlaskit/feature-gate-js-client": "^
|
|
46
|
-
"@atlaskit/form": "^
|
|
47
|
-
"@atlaskit/heading": "^
|
|
48
|
-
"@atlaskit/icon": "^
|
|
49
|
-
"@atlaskit/icon-lab": "^
|
|
50
|
-
"@atlaskit/image": "^
|
|
51
|
-
"@atlaskit/media-client": "^
|
|
52
|
-
"@atlaskit/media-client-react": "^
|
|
53
|
-
"@atlaskit/platform-feature-flags": "^
|
|
54
|
-
"@atlaskit/pragmatic-drag-and-drop": "^
|
|
55
|
-
"@atlaskit/primitives": "^
|
|
56
|
-
"@atlaskit/
|
|
57
|
-
"@atlaskit/
|
|
58
|
-
"@atlaskit/
|
|
59
|
-
"@atlaskit/
|
|
60
|
-
"@atlaskit/
|
|
61
|
-
"@atlaskit/
|
|
62
|
-
"@atlaskit/
|
|
63
|
-
"@atlaskit/
|
|
33
|
+
"@atlaskit/analytics-next": "^12.0.0",
|
|
34
|
+
"@atlaskit/browser-apis": "^1.0.0",
|
|
35
|
+
"@atlaskit/button": "^24.0.0",
|
|
36
|
+
"@atlaskit/css": "^1.0.0",
|
|
37
|
+
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
38
|
+
"@atlaskit/form": "^16.0.0",
|
|
39
|
+
"@atlaskit/heading": "^6.0.0",
|
|
40
|
+
"@atlaskit/icon": "^36.0.0",
|
|
41
|
+
"@atlaskit/icon-lab": "^7.0.0",
|
|
42
|
+
"@atlaskit/image": "^4.0.0",
|
|
43
|
+
"@atlaskit/media-client": "^37.0.0",
|
|
44
|
+
"@atlaskit/media-client-react": "^6.0.0",
|
|
45
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
46
|
+
"@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
|
|
47
|
+
"@atlaskit/primitives": "^20.0.0",
|
|
48
|
+
"@atlaskit/radio": "^9.0.0",
|
|
49
|
+
"@atlaskit/spinner": "^20.0.0",
|
|
50
|
+
"@atlaskit/textfield": "^9.0.0",
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^105.0.0",
|
|
52
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
53
|
+
"@atlaskit/tooltip": "^23.0.0",
|
|
54
|
+
"@atlaskit/ufo": "^1.0.0",
|
|
55
|
+
"@atlaskit/util-service-support": "^7.0.0",
|
|
56
|
+
"@atlaskit/visually-hidden": "^4.0.0",
|
|
64
57
|
"@babel/runtime": "^7.0.0",
|
|
65
58
|
"@compiled/react": "^0.20.0",
|
|
66
59
|
"@tanstack/react-virtual": "3.0.0-beta.60",
|
|
@@ -80,9 +73,9 @@
|
|
|
80
73
|
"devDependencies": {
|
|
81
74
|
"@af/integration-testing": "workspace:^",
|
|
82
75
|
"@af/visual-regression": "workspace:^",
|
|
83
|
-
"@atlaskit/media-core": "^
|
|
76
|
+
"@atlaskit/media-core": "^38.0.0",
|
|
84
77
|
"@atlaskit/ssr": "workspace:^",
|
|
85
|
-
"@atlaskit/theme": "^
|
|
78
|
+
"@atlaskit/theme": "^26.0.0",
|
|
86
79
|
"@atlassian/a11y-jest-testing": "^0.12.0",
|
|
87
80
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
88
81
|
"@emotion/jest": "^11.8.0",
|