@atlaskit/emoji 64.4.1 → 64.5.2
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 +23 -0
- package/dist/cjs/api/EmojiResource.js +3 -5
- package/dist/cjs/components/common/CachingEmoji.js +8 -6
- package/dist/cjs/components/common/ResourcedEmojiComponent.js +12 -17
- package/dist/cjs/components/picker/EmojiPickerComponent.js +11 -16
- package/dist/cjs/components/picker/EmojiPickerList.js +0 -20
- package/dist/cjs/components/typeahead/EmojiTypeAheadComponent.js +11 -16
- package/dist/cjs/components/typeahead/EmojiTypeAheadItem.js +4 -2
- package/dist/cjs/context/EmojiContext.js +11 -0
- package/dist/cjs/context/EmojiContextProvider.js +29 -0
- package/dist/cjs/context/LegacyEmojiContextProvider.js +76 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/api/EmojiResource.js +3 -6
- package/dist/es2019/components/common/CachingEmoji.js +7 -5
- package/dist/es2019/components/common/ResourcedEmojiComponent.js +11 -16
- package/dist/es2019/components/picker/EmojiPickerComponent.js +10 -15
- package/dist/es2019/components/picker/EmojiPickerList.js +0 -19
- package/dist/es2019/components/typeahead/EmojiTypeAheadComponent.js +10 -15
- package/dist/es2019/components/typeahead/EmojiTypeAheadItem.js +3 -2
- package/dist/es2019/context/EmojiContext.js +2 -0
- package/dist/es2019/context/EmojiContextProvider.js +11 -0
- package/dist/es2019/context/LegacyEmojiContextProvider.js +32 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/api/EmojiResource.js +3 -5
- package/dist/esm/components/common/CachingEmoji.js +7 -5
- package/dist/esm/components/common/ResourcedEmojiComponent.js +10 -16
- package/dist/esm/components/picker/EmojiPickerComponent.js +10 -16
- package/dist/esm/components/picker/EmojiPickerList.js +0 -21
- package/dist/esm/components/typeahead/EmojiTypeAheadComponent.js +10 -16
- package/dist/esm/components/typeahead/EmojiTypeAheadItem.js +3 -2
- package/dist/esm/context/EmojiContext.js +2 -0
- package/dist/esm/context/EmojiContextProvider.js +12 -0
- package/dist/esm/context/LegacyEmojiContextProvider.js +57 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/api/EmojiResource.d.ts +1 -0
- package/dist/types/api/EmojiUtils.d.ts +1 -1
- package/dist/types/components/common/CachingEmoji.d.ts +6 -8
- package/dist/types/components/common/EmojiUploadPicker.d.ts +2 -2
- package/dist/types/components/common/ResourcedEmojiComponent.d.ts +0 -6
- package/dist/types/components/common/ToneSelector.d.ts +1 -1
- package/dist/types/components/picker/EmojiPicker.d.ts +1 -1
- package/dist/types/components/picker/EmojiPickerComponent.d.ts +2 -8
- package/dist/types/components/picker/EmojiPickerList.d.ts +0 -10
- package/dist/types/components/typeahead/EmojiTypeAheadComponent.d.ts +2 -8
- package/dist/types/components/uploader/EmojiUploader.d.ts +1 -1
- package/dist/types/context/EmojiContext.d.ts +4 -0
- package/dist/types/context/EmojiContextProvider.d.ts +7 -0
- package/dist/types/context/LegacyEmojiContextProvider.d.ts +22 -0
- package/dist/types/util/analytics/analytics.d.ts +21 -21
- package/package.json +6 -6
|
@@ -43,6 +43,7 @@ export interface ResolveReject<T> {
|
|
|
43
43
|
*
|
|
44
44
|
* Follow this up with an isUploadSupported() check to see if the provider is actually
|
|
45
45
|
* configured to support uploads.
|
|
46
|
+
* https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates
|
|
46
47
|
*/
|
|
47
48
|
export declare const supportsUploadFeature: (emojiProvider: EmojiProvider) => emojiProvider is UploadingEmojiProvider;
|
|
48
49
|
export interface LastQuery {
|
|
@@ -15,4 +15,4 @@ export declare const denormaliseSkinEmoji: (emoji: EmojiServiceDescriptionWithVa
|
|
|
15
15
|
* emoji with local sprite definitions.
|
|
16
16
|
*/
|
|
17
17
|
export declare const denormaliseEmojiServiceResponse: (emojiData: EmojiServiceResponse) => EmojiResponse;
|
|
18
|
-
export declare const shouldUseAltRepresentation: (emoji: EmojiDescription, fitToHeight?:
|
|
18
|
+
export declare const shouldUseAltRepresentation: (emoji: EmojiDescription, fitToHeight?: number | undefined) => boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ContextType } from 'react';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
3
|
import { EmojiDescription } from '../../types';
|
|
4
4
|
import { Props as EmojiProps } from './Emoji';
|
|
5
|
-
import { EmojiContext } from '
|
|
5
|
+
import { EmojiContext, EmojiContextType } from '../../context/EmojiContext';
|
|
6
6
|
export interface State {
|
|
7
7
|
cachedEmoji?: EmojiDescription;
|
|
8
8
|
invalidImage?: boolean;
|
|
@@ -19,15 +19,13 @@ export declare const CachingEmoji: (props: CachingEmojiProps) => JSX.Element;
|
|
|
19
19
|
* rendering paths depending on caching strategy.
|
|
20
20
|
*/
|
|
21
21
|
export declare class CachingMediaEmoji extends PureComponent<CachingEmojiProps, State> {
|
|
22
|
-
static contextTypes: {
|
|
23
|
-
emoji: PropTypes.Requireable<any>;
|
|
24
|
-
};
|
|
25
22
|
private mounted;
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
static contextType: React.Context<EmojiContextType>;
|
|
24
|
+
context: ContextType<typeof EmojiContext>;
|
|
25
|
+
constructor(props: EmojiProps, context: ContextType<typeof EmojiContext>);
|
|
28
26
|
componentDidMount(): void;
|
|
29
27
|
componentWillUnmount(): void;
|
|
30
|
-
UNSAFE_componentWillReceiveProps(nextProps: EmojiProps, nextContext:
|
|
28
|
+
UNSAFE_componentWillReceiveProps(nextProps: EmojiProps, nextContext: EmojiContextType): void;
|
|
31
29
|
private loadEmoji;
|
|
32
30
|
private handleLoadError;
|
|
33
31
|
render(): JSX.Element;
|
|
@@ -33,8 +33,8 @@ export declare class EmojiUploadPicker extends PureComponent<Props & WrappedComp
|
|
|
33
33
|
clearUploadPicker: () => void;
|
|
34
34
|
render(): JSX.Element;
|
|
35
35
|
}
|
|
36
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
37
|
-
forwardedRef?:
|
|
36
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props & WrappedComponentProps<"intl">>, "intl"> & {
|
|
37
|
+
forwardedRef?: React.Ref<any> | undefined;
|
|
38
38
|
} & React.RefAttributes<any>> & {
|
|
39
39
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
40
40
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import EmojiProvider from '../../api/EmojiResource';
|
|
4
3
|
import { EmojiId, OptionalEmojiDescription } from '../../types';
|
|
5
|
-
import { EmojiContext } from './internal-types';
|
|
6
4
|
import { State as LoadingState } from './LoadingEmojiComponent';
|
|
7
5
|
export interface BaseResourcedEmojiProps {
|
|
8
6
|
emojiId: EmojiId;
|
|
@@ -17,12 +15,8 @@ export interface State extends LoadingState {
|
|
|
17
15
|
loaded: boolean;
|
|
18
16
|
}
|
|
19
17
|
export default class ResourcedEmojiComponent extends Component<Props, State> {
|
|
20
|
-
static childContextTypes: {
|
|
21
|
-
emoji: PropTypes.Requireable<any>;
|
|
22
|
-
};
|
|
23
18
|
private ready;
|
|
24
19
|
constructor(props: Props);
|
|
25
|
-
getChildContext(): EmojiContext;
|
|
26
20
|
private refreshEmoji;
|
|
27
21
|
UNSAFE_componentWillMount(): void;
|
|
28
22
|
componentWillUnmount(): void;
|
|
@@ -14,5 +14,5 @@ export declare class ToneSelectorInternal extends PureComponent<Props & WithAnal
|
|
|
14
14
|
private onToneSelectedHandler;
|
|
15
15
|
render(): JSX.Element;
|
|
16
16
|
}
|
|
17
|
-
declare const ToneSelector: React.ForwardRefExoticComponent<
|
|
17
|
+
declare const ToneSelector: React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
18
18
|
export default ToneSelector;
|
|
@@ -19,5 +19,5 @@ export declare class EmojiPickerInternal extends LoadingEmojiComponent<Props & W
|
|
|
19
19
|
renderLoading(): JSX.Element | null;
|
|
20
20
|
renderLoaded(loadedEmojiProvider: EmojiProvider, EmojiPickerComponent: ComponentClass<ComponentProps>): JSX.Element;
|
|
21
21
|
}
|
|
22
|
-
declare const EmojiPicker: import("react").ForwardRefExoticComponent<
|
|
22
|
+
declare const EmojiPicker: import("react").ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
|
|
23
23
|
export default EmojiPicker;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import { MessageDescriptor } from 'react-intl-next';
|
|
4
3
|
import { EmojiProvider } from '../../api/EmojiResource';
|
|
5
|
-
import { EmojiDescription, EmojiId, OnEmojiEvent,
|
|
6
|
-
import { EmojiContext } from '../common/internal-types';
|
|
4
|
+
import { EmojiDescription, EmojiId, OnEmojiEvent, OptionalEmojiDescriptionWithVariations, ToneSelection } from '../../types';
|
|
7
5
|
import { CategoryId } from './categories';
|
|
8
6
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
9
7
|
export interface PickerRefHandler {
|
|
@@ -34,21 +32,17 @@ export interface State {
|
|
|
34
32
|
loading: boolean;
|
|
35
33
|
}
|
|
36
34
|
export default class EmojiPickerComponent extends PureComponent<Props, State> {
|
|
37
|
-
static childContextTypes: {
|
|
38
|
-
emoji: PropTypes.Requireable<any>;
|
|
39
|
-
};
|
|
40
35
|
static defaultProps: {
|
|
41
36
|
onSelection: () => void;
|
|
42
37
|
};
|
|
43
38
|
constructor(props: Props);
|
|
44
39
|
openTime: number;
|
|
45
|
-
getChildContext(): EmojiContext;
|
|
46
40
|
UNSAFE_componentWillMount(): void;
|
|
47
41
|
componentDidMount(): void;
|
|
48
42
|
componentWillUnmount(): void;
|
|
49
43
|
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
50
44
|
componentDidUpdate(prevProps: Props): void;
|
|
51
|
-
onEmojiActive: (_emojiId: EmojiId, emoji?:
|
|
45
|
+
onEmojiActive: (_emojiId: EmojiId, emoji?: EmojiDescription | undefined) => void;
|
|
52
46
|
onCategoryActivated: (category: CategoryId | null) => void;
|
|
53
47
|
onCategorySelected: (categoryId: CategoryId | null) => void;
|
|
54
48
|
onFileChooserClicked: () => void;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import { EmojiDescription, EmojiDescriptionWithVariations, Message, OnCategory, OnEmojiEvent, OnToneSelected, OnToneSelectorCancelled, ToneSelection, User } from '../../types';
|
|
4
|
-
import { EmojiContext } from '../common/internal-types';
|
|
5
3
|
import { CategoryId } from './categories';
|
|
6
4
|
import { OnUploadEmoji } from '../common/EmojiUploadPicker';
|
|
7
5
|
import { OnDeleteEmoji } from '../common/EmojiDeletePreview';
|
|
@@ -37,12 +35,6 @@ export interface Props {
|
|
|
37
35
|
export interface State {
|
|
38
36
|
}
|
|
39
37
|
export default class EmojiPickerVirtualList extends PureComponent<Props, State> {
|
|
40
|
-
static contextTypes: {
|
|
41
|
-
emoji: PropTypes.Requireable<any>;
|
|
42
|
-
};
|
|
43
|
-
static childContextTypes: {
|
|
44
|
-
emoji: PropTypes.Requireable<any>;
|
|
45
|
-
};
|
|
46
38
|
static defaultProps: {
|
|
47
39
|
onEmojiSelected: () => void;
|
|
48
40
|
onEmojiActive: () => void;
|
|
@@ -54,9 +46,7 @@ export default class EmojiPickerVirtualList extends PureComponent<Props, State>
|
|
|
54
46
|
private activeCategoryId;
|
|
55
47
|
private virtualItems;
|
|
56
48
|
private categoryTracker;
|
|
57
|
-
context: EmojiContext;
|
|
58
49
|
constructor(props: Props);
|
|
59
|
-
getChildContext(): EmojiContext;
|
|
60
50
|
UNSAFE_componentWillUpdate(nextProps: Props, nextState: State): void;
|
|
61
51
|
private onEmojiMouseEnter;
|
|
62
52
|
private onSearch;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import { EmojiProvider } from '../../api/EmojiResource';
|
|
4
|
-
import { EmojiDescription, OnEmojiEvent
|
|
5
|
-
import { EmojiContext } from '../common/internal-types';
|
|
3
|
+
import { EmojiDescription, OnEmojiEvent } from '../../types';
|
|
6
4
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
5
|
export interface OnLifecycle {
|
|
8
6
|
(): void;
|
|
@@ -24,9 +22,6 @@ export interface State {
|
|
|
24
22
|
loading: boolean;
|
|
25
23
|
}
|
|
26
24
|
export default class EmojiTypeAheadComponent extends PureComponent<Props, State> {
|
|
27
|
-
static childContextTypes: {
|
|
28
|
-
emoji: PropTypes.Requireable<any>;
|
|
29
|
-
};
|
|
30
25
|
static defaultProps: {
|
|
31
26
|
onSelection: () => void;
|
|
32
27
|
onOpen: () => void;
|
|
@@ -41,7 +36,6 @@ export default class EmojiTypeAheadComponent extends PureComponent<Props, State>
|
|
|
41
36
|
private sessionId;
|
|
42
37
|
private selected;
|
|
43
38
|
constructor(props: Props);
|
|
44
|
-
getChildContext(): EmojiContext;
|
|
45
39
|
componentDidMount(): void;
|
|
46
40
|
componentWillUnmount(): void;
|
|
47
41
|
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
@@ -49,7 +43,7 @@ export default class EmojiTypeAheadComponent extends PureComponent<Props, State>
|
|
|
49
43
|
selectPrevious: () => void;
|
|
50
44
|
chooseCurrentSelection: () => void;
|
|
51
45
|
count: () => number;
|
|
52
|
-
getTone: (tone?:
|
|
46
|
+
getTone: (tone?: number | undefined) => string | undefined;
|
|
53
47
|
private fireAnalyticsEvent;
|
|
54
48
|
private onSearch;
|
|
55
49
|
private onSearchResult;
|
|
@@ -18,5 +18,5 @@ export declare class EmojiUploaderInternal extends LoadingEmojiComponent<Props,
|
|
|
18
18
|
renderLoaded(loadedEmojiProvider: EmojiProvider, EmojiUploadComponent: ComponentClass<ComponentProps>): JSX.Element;
|
|
19
19
|
}
|
|
20
20
|
declare type EmojiUploader = EmojiUploaderInternal;
|
|
21
|
-
declare const EmojiUploader: React.ForwardRefExoticComponent<
|
|
21
|
+
declare const EmojiUploader: React.ForwardRefExoticComponent<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
22
22
|
export default EmojiUploader;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EmojiContext as InternalEmojiContextType } from '../components/common/internal-types';
|
|
3
|
+
export declare type EmojiContextType = InternalEmojiContextType | null;
|
|
4
|
+
export declare const EmojiContext: import("react").Context<EmojiContextType>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { EmojiContext } from '../components/common/internal-types';
|
|
4
|
+
export interface LegacyEmojiContextProviderProps {
|
|
5
|
+
emojiContextValue?: EmojiContext;
|
|
6
|
+
}
|
|
7
|
+
interface LegacyEmojiContextProviderState {
|
|
8
|
+
prioritisedContextValue?: EmojiContext;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Legacy Context Priority Passthrough ...
|
|
12
|
+
* If component finds legacy context, then use it, otherwise use the passed through context
|
|
13
|
+
*/
|
|
14
|
+
export default class LegacyEmojiContextProvider extends Component<LegacyEmojiContextProviderProps, LegacyEmojiContextProviderState> {
|
|
15
|
+
static contextTypes: {
|
|
16
|
+
emoji: PropTypes.Requireable<object>;
|
|
17
|
+
};
|
|
18
|
+
context: EmojiContext;
|
|
19
|
+
constructor(props: LegacyEmojiContextProviderProps, context: EmojiContext);
|
|
20
|
+
render(): React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { EmojiDescription } from '../../types';
|
|
3
|
-
export declare const createAndFireEventInElementsChannel: (payload:
|
|
3
|
+
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
|
|
4
4
|
export declare type EmojiInsertionAnalytic = (source: 'picker' | 'typeahead') => AnalyticsEventPayload;
|
|
5
5
|
export declare const recordSucceeded: EmojiInsertionAnalytic;
|
|
6
6
|
export declare const recordFailed: EmojiInsertionAnalytic;
|
|
7
7
|
interface Duration {
|
|
8
8
|
duration: number;
|
|
9
9
|
}
|
|
10
|
-
export declare const openedPickerEvent: () =>
|
|
11
|
-
export declare const closedPickerEvent: (attributes: Duration) =>
|
|
10
|
+
export declare const openedPickerEvent: () => AnalyticsEventPayload;
|
|
11
|
+
export declare const closedPickerEvent: (attributes: Duration) => AnalyticsEventPayload;
|
|
12
12
|
interface EmojiAttributes {
|
|
13
13
|
emojiId: string;
|
|
14
14
|
baseEmojiId?: string;
|
|
@@ -18,40 +18,40 @@ interface EmojiAttributes {
|
|
|
18
18
|
}
|
|
19
19
|
export declare const pickerClickedEvent: (attributes: {
|
|
20
20
|
queryLength: number;
|
|
21
|
-
} & EmojiAttributes & Duration) =>
|
|
21
|
+
} & EmojiAttributes & Duration) => AnalyticsEventPayload;
|
|
22
22
|
export declare const categoryClickedEvent: (attributes: {
|
|
23
23
|
category: string;
|
|
24
|
-
}) =>
|
|
24
|
+
}) => AnalyticsEventPayload;
|
|
25
25
|
export declare const pickerSearchedEvent: (attributes: {
|
|
26
26
|
queryLength: number;
|
|
27
27
|
numMatches: number;
|
|
28
|
-
}) =>
|
|
28
|
+
}) => AnalyticsEventPayload;
|
|
29
29
|
export declare const toneSelectedEvent: (attributes: {
|
|
30
30
|
skinToneModifier: string;
|
|
31
|
-
}) =>
|
|
31
|
+
}) => AnalyticsEventPayload;
|
|
32
32
|
export declare const toneSelectorOpenedEvent: (attributes: {
|
|
33
33
|
skinToneModifier?: string;
|
|
34
|
-
}) =>
|
|
35
|
-
export declare const toneSelectorClosedEvent: () =>
|
|
36
|
-
export declare const uploadBeginButton: () =>
|
|
34
|
+
}) => AnalyticsEventPayload;
|
|
35
|
+
export declare const toneSelectorClosedEvent: () => AnalyticsEventPayload;
|
|
36
|
+
export declare const uploadBeginButton: () => AnalyticsEventPayload;
|
|
37
37
|
export declare const uploadConfirmButton: (attributes: {
|
|
38
38
|
retry: boolean;
|
|
39
|
-
}) =>
|
|
40
|
-
export declare const uploadCancelButton: () =>
|
|
41
|
-
export declare const uploadSucceededEvent: (attributes: Duration) =>
|
|
39
|
+
}) => AnalyticsEventPayload;
|
|
40
|
+
export declare const uploadCancelButton: () => AnalyticsEventPayload;
|
|
41
|
+
export declare const uploadSucceededEvent: (attributes: Duration) => AnalyticsEventPayload;
|
|
42
42
|
export declare const uploadFailedEvent: (attributes: {
|
|
43
43
|
reason: string;
|
|
44
|
-
} & Duration) =>
|
|
44
|
+
} & Duration) => AnalyticsEventPayload;
|
|
45
45
|
interface Attributes {
|
|
46
46
|
emojiId?: string;
|
|
47
47
|
}
|
|
48
|
-
export declare const deleteBeginEvent: (attributes: Attributes) =>
|
|
49
|
-
export declare const deleteConfirmEvent: (attributes: Attributes) =>
|
|
50
|
-
export declare const deleteCancelEvent: (attributes: Attributes) =>
|
|
51
|
-
export declare const selectedFileEvent: () =>
|
|
52
|
-
export declare const typeaheadCancelledEvent: (duration: number, query?: string | undefined, emojiList?: EmojiDescription[] | undefined) =>
|
|
53
|
-
export declare const typeaheadSelectedEvent: (pressed: boolean, duration: number, emoji: EmojiDescription, emojiList?: EmojiDescription[] | undefined, query?: string | undefined, exactMatch?: boolean | undefined) =>
|
|
54
|
-
export declare const typeaheadRenderedEvent: (duration: number, query?: string | undefined, emojiList?: EmojiDescription[] | undefined) =>
|
|
48
|
+
export declare const deleteBeginEvent: (attributes: Attributes) => AnalyticsEventPayload;
|
|
49
|
+
export declare const deleteConfirmEvent: (attributes: Attributes) => AnalyticsEventPayload;
|
|
50
|
+
export declare const deleteCancelEvent: (attributes: Attributes) => AnalyticsEventPayload;
|
|
51
|
+
export declare const selectedFileEvent: () => AnalyticsEventPayload;
|
|
52
|
+
export declare const typeaheadCancelledEvent: (duration: number, query?: string | undefined, emojiList?: EmojiDescription[] | undefined) => AnalyticsEventPayload;
|
|
53
|
+
export declare const typeaheadSelectedEvent: (pressed: boolean, duration: number, emoji: EmojiDescription, emojiList?: EmojiDescription[] | undefined, query?: string | undefined, exactMatch?: boolean | undefined) => AnalyticsEventPayload;
|
|
54
|
+
export declare const typeaheadRenderedEvent: (duration: number, query?: string | undefined, emojiList?: EmojiDescription[] | undefined) => AnalyticsEventPayload;
|
|
55
55
|
export declare const recordSelectionSucceededSli: (options?: {
|
|
56
56
|
createAnalyticsEvent?: CreateUIAnalyticsEvent | undefined;
|
|
57
57
|
} | undefined) => () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "64.
|
|
3
|
+
"version": "64.5.2",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
30
|
-
"@atlaskit/button": "^16.
|
|
30
|
+
"@atlaskit/button": "^16.3.0",
|
|
31
31
|
"@atlaskit/icon": "^21.10.0",
|
|
32
|
-
"@atlaskit/media-client": "^15.
|
|
32
|
+
"@atlaskit/media-client": "^15.1.0",
|
|
33
33
|
"@atlaskit/spinner": "^15.0.0",
|
|
34
34
|
"@atlaskit/textfield": "^5.1.0",
|
|
35
35
|
"@atlaskit/theme": "^12.1.0",
|
|
36
|
-
"@atlaskit/tokens": "^0.
|
|
36
|
+
"@atlaskit/tokens": "^0.9.0",
|
|
37
37
|
"@atlaskit/tooltip": "^17.5.0",
|
|
38
38
|
"@atlaskit/ufo": "^0.1.0",
|
|
39
39
|
"@atlaskit/util-service-support": "^6.1.0",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
62
62
|
"@atlassian/ufo": "^0.1.10",
|
|
63
63
|
"@testing-library/react": "^8.0.1",
|
|
64
|
+
"@testing-library/user-event": "10.4.0",
|
|
64
65
|
"@types/js-search": "^1.4.0",
|
|
65
66
|
"@types/react-virtualized": "^9.18.12",
|
|
66
67
|
"@types/serialize-javascript": "^5.0.0",
|
|
@@ -69,7 +70,6 @@
|
|
|
69
70
|
"enzyme-adapter-react-16": "^1.15.1",
|
|
70
71
|
"es6-promise": "^4.0.5",
|
|
71
72
|
"fetch-mock": "^8.0.0",
|
|
72
|
-
"jest-fetch-mock": "^3.0.3",
|
|
73
73
|
"p-wait-for": "^3.2.0",
|
|
74
74
|
"react": "^16.8.0",
|
|
75
75
|
"react-addons-perf": "^15.3.2",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"rxjs": "^5.5.0",
|
|
78
78
|
"serialize-javascript": "^5.0.1",
|
|
79
79
|
"sinon": "^2.2.0",
|
|
80
|
-
"typescript": "
|
|
80
|
+
"typescript": "4.2.4",
|
|
81
81
|
"wait-for-expect": "^1.2.0",
|
|
82
82
|
"webpack-dev-server": "^3.11.2"
|
|
83
83
|
},
|