@atlaskit/emoji 69.10.30 → 69.10.32
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 +14 -0
- package/dist/cjs/components/common/CachingEmoji.js +2 -1
- package/dist/cjs/components/common/Emoji.js +3 -17
- package/dist/cjs/components/common/EmojiActions.js +6 -1
- package/dist/cjs/components/common/EmojiDeletePreview.js +3 -2
- package/dist/cjs/components/common/EmojiRadioButton.js +2 -1
- package/dist/cjs/components/common/EmojiUploadPicker.js +2 -0
- package/dist/cjs/components/common/EmojiUploadPreview.js +3 -2
- package/dist/cjs/components/common/Scrollable.js +2 -1
- package/dist/cjs/components/common/TonePreviewButton.js +2 -1
- package/dist/cjs/components/common/ToneSelector.js +2 -1
- package/dist/cjs/components/picker/EmojiPickerComponent.js +2 -1
- package/dist/cjs/components/picker/EmojiPickerEmojiRow.js +2 -1
- package/dist/cjs/components/picker/EmojiPickerFooter.js +2 -1
- package/dist/cjs/components/picker/EmojiPickerSizes.js +0 -1
- package/dist/cjs/components/picker/EmojiPickerTabPanel.js +3 -2
- package/dist/cjs/components/typeahead/EmojiTypeAheadItem.js +2 -0
- package/dist/cjs/components/uploader/EmojiUploadComponent.js +2 -1
- package/dist/cjs/util/analytics/analytics.js +2 -2
- package/dist/cjs/util/filters.js +3 -2
- package/dist/es2019/components/common/CachingEmoji.js +2 -1
- package/dist/es2019/components/common/Emoji.js +3 -17
- package/dist/es2019/components/common/EmojiActions.js +6 -1
- package/dist/es2019/components/common/EmojiDeletePreview.js +4 -1
- package/dist/es2019/components/common/EmojiRadioButton.js +2 -1
- package/dist/es2019/components/common/EmojiUploadPicker.js +2 -0
- package/dist/es2019/components/common/EmojiUploadPreview.js +4 -1
- package/dist/es2019/components/common/Scrollable.js +2 -1
- package/dist/es2019/components/common/TonePreviewButton.js +2 -1
- package/dist/es2019/components/common/ToneSelector.js +2 -1
- package/dist/es2019/components/picker/EmojiPickerComponent.js +2 -1
- package/dist/es2019/components/picker/EmojiPickerEmojiRow.js +2 -1
- package/dist/es2019/components/picker/EmojiPickerFooter.js +2 -1
- package/dist/es2019/components/picker/EmojiPickerSizes.js +0 -1
- package/dist/es2019/components/picker/EmojiPickerTabPanel.js +4 -1
- package/dist/es2019/components/typeahead/EmojiTypeAheadItem.js +3 -1
- package/dist/es2019/components/uploader/EmojiUploadComponent.js +2 -1
- package/dist/es2019/util/analytics/analytics.js +2 -1
- package/dist/es2019/util/filters.js +3 -2
- package/dist/esm/components/common/CachingEmoji.js +2 -1
- package/dist/esm/components/common/Emoji.js +3 -17
- package/dist/esm/components/common/EmojiActions.js +6 -1
- package/dist/esm/components/common/EmojiDeletePreview.js +3 -2
- package/dist/esm/components/common/EmojiRadioButton.js +2 -1
- package/dist/esm/components/common/EmojiUploadPicker.js +2 -0
- package/dist/esm/components/common/EmojiUploadPreview.js +3 -2
- package/dist/esm/components/common/Scrollable.js +2 -1
- package/dist/esm/components/common/TonePreviewButton.js +2 -1
- package/dist/esm/components/common/ToneSelector.js +2 -1
- package/dist/esm/components/picker/EmojiPickerComponent.js +2 -1
- package/dist/esm/components/picker/EmojiPickerEmojiRow.js +2 -1
- package/dist/esm/components/picker/EmojiPickerFooter.js +2 -1
- package/dist/esm/components/picker/EmojiPickerSizes.js +0 -1
- package/dist/esm/components/picker/EmojiPickerTabPanel.js +3 -2
- package/dist/esm/components/typeahead/EmojiTypeAheadItem.js +2 -0
- package/dist/esm/components/uploader/EmojiUploadComponent.js +2 -1
- package/dist/esm/util/analytics/analytics.js +2 -1
- package/dist/esm/util/filters.js +3 -2
- package/dist/types/components/common/CachingEmoji.d.ts +2 -2
- package/dist/types/components/common/EmojiActions.d.ts +9 -4
- package/dist/types/components/common/EmojiDeletePreview.d.ts +9 -4
- package/dist/types/components/common/EmojiRadioButton.d.ts +2 -2
- package/dist/types/components/common/EmojiUploadPicker.d.ts +8 -3
- package/dist/types/components/common/EmojiUploadPreview.d.ts +9 -4
- package/dist/types/components/common/Scrollable.d.ts +4 -0
- package/dist/types/components/common/TonePreviewButton.d.ts +8 -3
- package/dist/types/components/common/ToneSelector.d.ts +3 -2
- package/dist/types/components/picker/EmojiPickerComponent.d.ts +7 -2
- package/dist/types/components/picker/EmojiPickerEmojiRow.d.ts +7 -2
- package/dist/types/components/picker/EmojiPickerFooter.d.ts +7 -2
- package/dist/types/components/picker/EmojiPickerSizes.d.ts +5 -5
- package/dist/types/components/picker/EmojiPickerTabPanel.d.ts +3 -3
- package/dist/types/components/uploader/EmojiUploadComponent.d.ts +7 -2
- package/dist/types/components/uploader/EmojiUploader.d.ts +2 -2
- package/dist/types/context/EmojiContext.d.ts +2 -1
- package/dist/types/hooks/useEmojiContext.d.ts +2 -1
- package/dist/types/hooks/useEmojiPickerListContext.d.ts +2 -1
- package/dist/types/hooks/useInView.d.ts +2 -2
- package/dist/types/util/analytics/analytics.d.ts +2 -2
- package/dist/types/util/constants.d.ts +1 -1
- package/dist/types/util/filters.d.ts +2 -2
- package/dist/types-ts4.5/components/common/CachingEmoji.d.ts +2 -2
- package/dist/types-ts4.5/components/common/EmojiActions.d.ts +9 -4
- package/dist/types-ts4.5/components/common/EmojiDeletePreview.d.ts +9 -4
- package/dist/types-ts4.5/components/common/EmojiRadioButton.d.ts +2 -2
- package/dist/types-ts4.5/components/common/EmojiUploadPicker.d.ts +8 -3
- package/dist/types-ts4.5/components/common/EmojiUploadPreview.d.ts +9 -4
- package/dist/types-ts4.5/components/common/Scrollable.d.ts +4 -0
- package/dist/types-ts4.5/components/common/TonePreviewButton.d.ts +8 -3
- package/dist/types-ts4.5/components/common/ToneSelector.d.ts +3 -2
- package/dist/types-ts4.5/components/picker/EmojiPickerComponent.d.ts +7 -2
- package/dist/types-ts4.5/components/picker/EmojiPickerEmojiRow.d.ts +7 -2
- package/dist/types-ts4.5/components/picker/EmojiPickerFooter.d.ts +7 -2
- package/dist/types-ts4.5/components/picker/EmojiPickerSizes.d.ts +5 -5
- package/dist/types-ts4.5/components/picker/EmojiPickerTabPanel.d.ts +3 -3
- package/dist/types-ts4.5/components/uploader/EmojiUploadComponent.d.ts +7 -2
- package/dist/types-ts4.5/components/uploader/EmojiUploader.d.ts +2 -2
- package/dist/types-ts4.5/context/EmojiContext.d.ts +2 -1
- package/dist/types-ts4.5/hooks/useEmojiContext.d.ts +2 -1
- package/dist/types-ts4.5/hooks/useEmojiPickerListContext.d.ts +2 -1
- package/dist/types-ts4.5/hooks/useInView.d.ts +2 -2
- package/dist/types-ts4.5/util/analytics/analytics.d.ts +2 -2
- package/dist/types-ts4.5/util/constants.d.ts +1 -1
- package/dist/types-ts4.5/util/filters.d.ts +2 -2
- package/package.json +6 -3
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type MemoExoticComponent } from 'react';
|
|
1
6
|
import type { EmojiDescription } from '../../types';
|
|
2
7
|
export interface Props {
|
|
3
8
|
selectedEmoji?: EmojiDescription;
|
|
4
9
|
}
|
|
5
10
|
export declare const emojiPickerFooterTestId = "emoji-picker-footer";
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
11
|
+
declare const _default_1: MemoExoticComponent<({ selectedEmoji }: Props) => JSX.Element>;
|
|
12
|
+
export default _default_1;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const sizes: {
|
|
2
|
-
|
|
3
|
-
listWidth: 350;
|
|
4
|
-
searchHeight: number;
|
|
2
|
+
addEmojiHeight: number;
|
|
5
3
|
categoryHeadingHeight: number;
|
|
4
|
+
emojiPerRow: number;
|
|
6
5
|
emojiRowHeight: number;
|
|
7
|
-
|
|
6
|
+
listHeight: number;
|
|
7
|
+
listWidth: number;
|
|
8
8
|
loadingRowHeight: number;
|
|
9
|
+
searchHeight: number;
|
|
9
10
|
uploadActionHeight: number;
|
|
10
|
-
emojiPerRow: number;
|
|
11
11
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
/**
|
|
8
8
|
* 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
|
|
9
9
|
* ticket: COLLAB-2317
|
|
@@ -15,7 +15,7 @@ interface EmojiPickerTabPanelProps extends WrappedComponentProps {
|
|
|
15
15
|
*/
|
|
16
16
|
showSearchResults: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const
|
|
18
|
+
declare const _default_1: React.FC<WithIntlProps<React.PropsWithChildren<EmojiPickerTabPanelProps>>> & {
|
|
19
19
|
WrappedComponent: React.ComponentType<React.PropsWithChildren<EmojiPickerTabPanelProps>>;
|
|
20
20
|
};
|
|
21
|
-
export default
|
|
21
|
+
export default _default_1;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type MemoExoticComponent } from 'react';
|
|
1
6
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
7
|
import { type EmojiProvider } from '../../api/EmojiResource';
|
|
3
8
|
export interface UploadRefHandler {
|
|
@@ -9,5 +14,5 @@ export interface Props {
|
|
|
9
14
|
emojiProvider: EmojiProvider;
|
|
10
15
|
onUploaderRef?: UploadRefHandler;
|
|
11
16
|
}
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
17
|
+
declare const _default_1: MemoExoticComponent<(props: Props) => JSX.Element>;
|
|
18
|
+
export default _default_1;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import LoadingEmojiComponent, { type Props as LoadingProps, type State as LoadingState } from '../common/LoadingEmojiComponent';
|
|
3
3
|
import type { Props as ComponentProps } from './EmojiUploadComponent';
|
|
4
4
|
import type { EmojiProvider } from '../../api/EmojiResource';
|
|
5
|
-
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
+
import { type CreateUIAnalyticsEvent, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
6
6
|
export interface Props extends LoadingProps {
|
|
7
7
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
8
8
|
disableFocusLock?: boolean;
|
|
@@ -17,5 +17,5 @@ export declare class EmojiUploaderInternal extends LoadingEmojiComponent<Props,
|
|
|
17
17
|
renderLoaded(loadedEmojiProvider: EmojiProvider, EmojiUploadComponent: React.ComponentType<React.PropsWithChildren<ComponentProps>>): React.JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
type EmojiUploader = EmojiUploaderInternal;
|
|
20
|
-
declare const EmojiUploader: React.ForwardRefExoticComponent<Omit<Props, keyof
|
|
20
|
+
declare const EmojiUploader: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
21
21
|
export default EmojiUploader;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Context } from 'react';
|
|
1
2
|
import type { EmojiContext as InternalEmojiContextType } from '../components/common/internal-types';
|
|
2
3
|
export type EmojiContextType = InternalEmojiContextType | null;
|
|
3
|
-
export declare const EmojiContext:
|
|
4
|
+
export declare const EmojiContext: Context<EmojiContextType>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { type EmojiContextType } from '../context/EmojiContext';
|
|
1
2
|
/**
|
|
2
3
|
* @deprecated This hook can be replaced with useEmoji instead and will be deprecated in the near future
|
|
3
4
|
*/
|
|
4
|
-
export declare const useEmojiContext: () =>
|
|
5
|
+
export declare const useEmojiContext: () => EmojiContextType;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { EmojiPickerListContextType } from '../components/common/internal-types';
|
|
2
|
+
export declare const useEmojiPickerListContext: () => EmojiPickerListContextType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type IntersectionOptions } from 'react-intersection-observer';
|
|
1
|
+
import { type IntersectionOptions, type InViewHookResponse } from 'react-intersection-observer';
|
|
2
2
|
type InViewHookNotSupportedResponse = [
|
|
3
3
|
undefined,
|
|
4
4
|
boolean
|
|
5
5
|
];
|
|
6
|
-
export declare const useInView: (options?: IntersectionOptions | undefined) => InViewHookNotSupportedResponse |
|
|
6
|
+
export declare const useInView: (options?: IntersectionOptions | undefined) => InViewHookNotSupportedResponse | InViewHookResponse;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import { UIAnalyticsEvent, type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type EmojiDescription, type OptionalEmojiDescription, SearchSourceTypes } from '../../types';
|
|
3
|
-
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) =>
|
|
3
|
+
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
|
|
4
4
|
export type EmojiInsertionAnalytic = (source: SearchSourceTypes.PICKER | SearchSourceTypes.TYPEAHEAD) => AnalyticsEventPayload;
|
|
5
5
|
export declare const recordSucceededEmoji: (emoji: OptionalEmojiDescription) => (source: SearchSourceTypes) => AnalyticsEventPayload;
|
|
6
6
|
export declare const recordSucceeded: EmojiInsertionAnalytic;
|
|
@@ -33,7 +33,7 @@ export declare const emojiPickerListHeight: number;
|
|
|
33
33
|
export declare const emojiPickerPreviewHeight = 54;
|
|
34
34
|
export declare const emojiPickerHeightWithPreview: number;
|
|
35
35
|
export declare const localStoragePrefix = "fabric.emoji";
|
|
36
|
-
export declare const selectedToneStorageKey
|
|
36
|
+
export declare const selectedToneStorageKey: "fabric.emoji.selectedTone";
|
|
37
37
|
export declare const defaultCategories: CategoryId[];
|
|
38
38
|
export declare enum KeyboardKeys {
|
|
39
39
|
ArrowLeft = "ArrowLeft",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EmojiProvider } from '../api/EmojiResource';
|
|
2
2
|
import type { EmojiDescription, OptionalEmojiDescription } from '../types';
|
|
3
3
|
export declare const getToneEmoji: (provider: EmojiProvider) => OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
4
|
-
declare const
|
|
4
|
+
declare const _default_1: {
|
|
5
5
|
byShortName: (emojis: EmojiDescription[], shortName: string) => EmojiDescription;
|
|
6
6
|
toneEmoji: (emojis: EmojiDescription[]) => EmojiDescription;
|
|
7
7
|
};
|
|
8
|
-
export default
|
|
8
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.10.
|
|
3
|
+
"version": "69.10.32",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@atlaskit/spinner": "^19.0.0",
|
|
51
51
|
"@atlaskit/textfield": "^8.2.0",
|
|
52
52
|
"@atlaskit/theme": "^22.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^35.
|
|
54
|
-
"@atlaskit/tokens": "^11.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^35.10.0",
|
|
54
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
55
55
|
"@atlaskit/tooltip": "^20.14.0",
|
|
56
56
|
"@atlaskit/ufo": "^0.4.0",
|
|
57
57
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
@@ -124,6 +124,9 @@
|
|
|
124
124
|
},
|
|
125
125
|
"platform_emoji_prevent_img_src_changing": {
|
|
126
126
|
"type": "boolean"
|
|
127
|
+
},
|
|
128
|
+
"platform_suppression_removal_fix_reactions": {
|
|
129
|
+
"type": "boolean"
|
|
127
130
|
}
|
|
128
131
|
},
|
|
129
132
|
"scripts": {
|