@atlaskit/emoji 70.17.8 → 70.17.10
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 +12 -0
- package/admin/package.json +1 -8
- package/analytics/package.json +1 -8
- package/categories/package.json +1 -8
- package/constants/package.json +1 -8
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/element/package.json +1 -8
- package/emoji/package.json +1 -8
- package/emoji-common-provider/package.json +1 -8
- package/emoji-context-provider/package.json +1 -8
- package/emoji-id-to-emoji/package.json +1 -8
- package/emoji-loader/package.json +1 -8
- package/emoji-picker/package.json +1 -8
- package/emoji-placeholder/package.json +1 -8
- package/emoji-repository/package.json +1 -8
- package/emoji-resource/package.json +1 -8
- package/emoji-type-ahead/package.json +1 -8
- package/emoji-type-ahead-item/package.json +1 -8
- package/emoji-type-ahead-list/package.json +1 -8
- package/emoji-uploader/package.json +1 -8
- package/emoji-utils/package.json +1 -8
- package/package.json +3 -3
- package/picker/package.json +1 -8
- package/resource/package.json +1 -8
- package/resourced-emoji/package.json +1 -8
- package/sampling-ufo/package.json +1 -8
- package/styles/package.json +1 -8
- package/type-helpers/package.json +1 -8
- package/typeahead/package.json +1 -8
- package/types/package.json +1 -8
- package/ufo-experiences/package.json +1 -8
- package/usage-frequency-tracker/package.json +1 -8
- package/use-emoji/package.json +1 -8
- package/use-emoji-context/package.json +1 -8
- package/utils/package.json +1 -8
- package/dist/types-ts4.5/admin.d.ts +0 -1
- package/dist/types-ts4.5/api/EmojiLoader.d.ts +0 -13
- package/dist/types-ts4.5/api/EmojiRepository.d.ts +0 -75
- package/dist/types-ts4.5/api/EmojiRepositoryRegex.d.ts +0 -1
- package/dist/types-ts4.5/api/EmojiResource.d.ts +0 -160
- package/dist/types-ts4.5/api/EmojiUtils.d.ts +0 -29
- package/dist/types-ts4.5/api/internal/Comparators.d.ts +0 -109
- package/dist/types-ts4.5/api/internal/UsageFrequencyTracker.d.ts +0 -46
- package/dist/types-ts4.5/api/media/MediaEmojiCache.d.ts +0 -53
- package/dist/types-ts4.5/api/media/MediaImageLoader.d.ts +0 -21
- package/dist/types-ts4.5/api/media/SiteEmojiResource.d.ts +0 -51
- package/dist/types-ts4.5/api/media/TokenManager.d.ts +0 -13
- package/dist/types-ts4.5/components/common/AddEmoji.d.ts +0 -11
- package/dist/types-ts4.5/components/common/CachingEmoji.d.ts +0 -21
- package/dist/types-ts4.5/components/common/DeletableEmojiTooltipContent.d.ts +0 -6
- package/dist/types-ts4.5/components/common/DeleteButton.d.ts +0 -7
- package/dist/types-ts4.5/components/common/Emoji.d.ts +0 -96
- package/dist/types-ts4.5/components/common/EmojiActions.d.ts +0 -40
- package/dist/types-ts4.5/components/common/EmojiDeletePreview.d.ts +0 -25
- package/dist/types-ts4.5/components/common/EmojiErrorMessage.d.ts +0 -13
- package/dist/types-ts4.5/components/common/EmojiFallback.d.ts +0 -8
- package/dist/types-ts4.5/components/common/EmojiPlaceholder.d.ts +0 -13
- package/dist/types-ts4.5/components/common/EmojiPreviewComponent.d.ts +0 -6
- package/dist/types-ts4.5/components/common/EmojiRadioButton.d.ts +0 -17
- package/dist/types-ts4.5/components/common/EmojiUploadPicker.d.ts +0 -25
- package/dist/types-ts4.5/components/common/EmojiUploadPreview.d.ts +0 -22
- package/dist/types-ts4.5/components/common/FileChooser.d.ts +0 -21
- package/dist/types-ts4.5/components/common/LoadingEmojiComponent.d.ts +0 -32
- package/dist/types-ts4.5/components/common/Popup.d.ts +0 -12
- package/dist/types-ts4.5/components/common/RecordSelectionDefault.d.ts +0 -12
- package/dist/types-ts4.5/components/common/ResourcedEmoji.d.ts +0 -6
- package/dist/types-ts4.5/components/common/ResourcedEmojiComponent.d.ts +0 -74
- package/dist/types-ts4.5/components/common/RetryableButton.d.ts +0 -13
- package/dist/types-ts4.5/components/common/Scrollable.d.ts +0 -23
- package/dist/types-ts4.5/components/common/TonePreviewButton.d.ts +0 -18
- package/dist/types-ts4.5/components/common/ToneSelector.d.ts +0 -15
- package/dist/types-ts4.5/components/common/ToolTipContentWithKeymap.d.ts +0 -11
- package/dist/types-ts4.5/components/common/UfoErrorBoundary.d.ts +0 -9
- package/dist/types-ts4.5/components/common/UploadEmoji.d.ts +0 -5
- package/dist/types-ts4.5/components/common/internal-types.d.ts +0 -20
- package/dist/types-ts4.5/components/common/setSkinToneAriaLabelText.d.ts +0 -1
- package/dist/types-ts4.5/components/common/styles.d.ts +0 -10
- package/dist/types-ts4.5/components/i18n.d.ts +0 -267
- package/dist/types-ts4.5/components/picker/CategorySelector.d.ts +0 -17
- package/dist/types-ts4.5/components/picker/CategoryTracker.d.ts +0 -16
- package/dist/types-ts4.5/components/picker/EmojiPicker.d.ts +0 -45
- package/dist/types-ts4.5/components/picker/EmojiPickerCategoryHeading.d.ts +0 -12
- package/dist/types-ts4.5/components/picker/EmojiPickerComponent.d.ts +0 -28
- package/dist/types-ts4.5/components/picker/EmojiPickerEmojiRow.d.ts +0 -22
- package/dist/types-ts4.5/components/picker/EmojiPickerFooter.d.ts +0 -14
- package/dist/types-ts4.5/components/picker/EmojiPickerList.d.ts +0 -51
- package/dist/types-ts4.5/components/picker/EmojiPickerListSearch.d.ts +0 -10
- package/dist/types-ts4.5/components/picker/EmojiPickerNoResults.d.ts +0 -7
- package/dist/types-ts4.5/components/picker/EmojiPickerSizes.d.ts +0 -13
- package/dist/types-ts4.5/components/picker/EmojiPickerTabPanel.d.ts +0 -21
- package/dist/types-ts4.5/components/picker/EmojiPickerVirtualItems.d.ts +0 -40
- package/dist/types-ts4.5/components/picker/VirtualList.d.ts +0 -42
- package/dist/types-ts4.5/components/picker/assets/spot/search-no-result/SearchNoResultDark.d.ts +0 -2
- package/dist/types-ts4.5/components/picker/assets/spot/search-no-result/SearchNoResultLight.d.ts +0 -2
- package/dist/types-ts4.5/components/picker/categories.d.ts +0 -9
- package/dist/types-ts4.5/components/picker/utils.d.ts +0 -3
- package/dist/types-ts4.5/components/typeahead/EmojiTypeAhead.d.ts +0 -28
- package/dist/types-ts4.5/components/typeahead/EmojiTypeAheadComponent.d.ts +0 -73
- package/dist/types-ts4.5/components/typeahead/EmojiTypeAheadItem.d.ts +0 -17
- package/dist/types-ts4.5/components/typeahead/EmojiTypeAheadList.d.ts +0 -34
- package/dist/types-ts4.5/components/typeahead/EmojiTypeAheadListContainer.d.ts +0 -10
- package/dist/types-ts4.5/components/typeahead/EmojiTypeAheadSpinner.d.ts +0 -1
- package/dist/types-ts4.5/components/typeahead/styles.d.ts +0 -3
- package/dist/types-ts4.5/components/uploader/EmojiUploadComponent.d.ts +0 -18
- package/dist/types-ts4.5/components/uploader/EmojiUploader.d.ts +0 -21
- package/dist/types-ts4.5/context/EmojiCommonProvider.d.ts +0 -17
- package/dist/types-ts4.5/context/EmojiContext.d.ts +0 -4
- package/dist/types-ts4.5/context/EmojiContextProvider.d.ts +0 -7
- package/dist/types-ts4.5/context/EmojiPickerListContext.d.ts +0 -10
- package/dist/types-ts4.5/element.d.ts +0 -3
- package/dist/types-ts4.5/hooks/useEmoji.d.ts +0 -5
- package/dist/types-ts4.5/hooks/useEmojiContext.d.ts +0 -5
- package/dist/types-ts4.5/hooks/useEmojiPickerListContext.d.ts +0 -2
- package/dist/types-ts4.5/hooks/useInView.d.ts +0 -7
- package/dist/types-ts4.5/hooks/useIsMounted.d.ts +0 -1
- package/dist/types-ts4.5/hooks/usePrevious.d.ts +0 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -55
- package/dist/types-ts4.5/i18n/da.d.ts +0 -55
- package/dist/types-ts4.5/i18n/de.d.ts +0 -55
- package/dist/types-ts4.5/i18n/en.d.ts +0 -55
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -55
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -55
- package/dist/types-ts4.5/i18n/es.d.ts +0 -55
- package/dist/types-ts4.5/i18n/et.d.ts +0 -39
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -55
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -55
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -54
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -55
- package/dist/types-ts4.5/i18n/index.d.ts +0 -37
- package/dist/types-ts4.5/i18n/is.d.ts +0 -33
- package/dist/types-ts4.5/i18n/it.d.ts +0 -55
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -55
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -55
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -28
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -55
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -55
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -55
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -55
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -39
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -33
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -55
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -39
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -54
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -54
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -54
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -55
- package/dist/types-ts4.5/i18n/th.d.ts +0 -55
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -55
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -55
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -55
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -55
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -55
- package/dist/types-ts4.5/index.d.ts +0 -27
- package/dist/types-ts4.5/picker.d.ts +0 -1
- package/dist/types-ts4.5/resource.d.ts +0 -6
- package/dist/types-ts4.5/typeahead.d.ts +0 -2
- package/dist/types-ts4.5/types.d.ts +0 -389
- package/dist/types-ts4.5/util/DuplicateLimitedQueue.d.ts +0 -91
- package/dist/types-ts4.5/util/StoredDuplicateLimitedQueue.d.ts +0 -46
- package/dist/types-ts4.5/util/analytics/analytics.d.ts +0 -69
- package/dist/types-ts4.5/util/analytics/index.d.ts +0 -6
- package/dist/types-ts4.5/util/analytics/samplingUfo.d.ts +0 -38
- package/dist/types-ts4.5/util/analytics/ufoExperiences.d.ts +0 -14
- package/dist/types-ts4.5/util/analytics/useSampledUFOComponentExperience.d.ts +0 -8
- package/dist/types-ts4.5/util/browser-support.d.ts +0 -6
- package/dist/types-ts4.5/util/constants.d.ts +0 -72
- package/dist/types-ts4.5/util/emojiIdToEmoji.d.ts +0 -15
- package/dist/types-ts4.5/util/filters.d.ts +0 -8
- package/dist/types-ts4.5/util/image.d.ts +0 -10
- package/dist/types-ts4.5/util/is-ssr.d.ts +0 -1
- package/dist/types-ts4.5/util/keymaps.d.ts +0 -14
- package/dist/types-ts4.5/util/logger.d.ts +0 -4
- package/dist/types-ts4.5/util/mouse.d.ts +0 -8
- package/dist/types-ts4.5/util/shared-styles.d.ts +0 -13
- package/dist/types-ts4.5/util/storage-available.d.ts +0 -3
- package/dist/types-ts4.5/util/timed-promise.d.ts +0 -1
- package/dist/types-ts4.5/util/type-helpers.d.ts +0 -25
- package/dist/types-ts4.5/utils.d.ts +0 -4
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType, type FC } from 'react';
|
|
6
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { EmojiDescription, EmojiDescriptionWithVariations, Message, OnToneSelected, OnToneSelectorCancelled, ToneSelection } from '../../types';
|
|
8
|
-
import { type OnDeleteEmoji } from './EmojiDeletePreview';
|
|
9
|
-
import { type OnUploadEmoji } from './EmojiUploadPicker';
|
|
10
|
-
export interface Props {
|
|
11
|
-
emojiToDelete?: EmojiDescription;
|
|
12
|
-
initialUploadName?: string;
|
|
13
|
-
onChange: (value: string) => void;
|
|
14
|
-
onCloseDelete: () => void;
|
|
15
|
-
onDeleteEmoji: OnDeleteEmoji;
|
|
16
|
-
onFileChooserClicked?: () => void;
|
|
17
|
-
onOpenUpload: () => void;
|
|
18
|
-
onToneSelected?: OnToneSelected;
|
|
19
|
-
onToneSelectorCancelled?: OnToneSelectorCancelled;
|
|
20
|
-
onUploadCancelled: () => void;
|
|
21
|
-
onUploadEmoji: OnUploadEmoji;
|
|
22
|
-
query?: string;
|
|
23
|
-
resultsCount?: number;
|
|
24
|
-
selectedTone?: ToneSelection;
|
|
25
|
-
toneEmoji?: EmojiDescriptionWithVariations;
|
|
26
|
-
uploadEnabled: boolean;
|
|
27
|
-
uploadErrorMessage?: Message;
|
|
28
|
-
uploading: boolean;
|
|
29
|
-
}
|
|
30
|
-
export declare const emojiActionsTestId = "emoji-actions";
|
|
31
|
-
export declare const uploadEmojiTestId = "upload-emoji";
|
|
32
|
-
type PropsWithWrappedComponentPropsType = Props & WrappedComponentProps;
|
|
33
|
-
type AddOwnEmojiProps = PropsWithWrappedComponentPropsType;
|
|
34
|
-
export declare const AddOwnEmoji: (props: AddOwnEmojiProps) => JSX.Element;
|
|
35
|
-
type EmojiActionsProps = PropsWithWrappedComponentPropsType;
|
|
36
|
-
export declare const EmojiActions: (props: EmojiActionsProps) => JSX.Element;
|
|
37
|
-
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
38
|
-
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
39
|
-
};
|
|
40
|
-
export default _default_1;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType, type FC } from 'react';
|
|
6
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { EmojiDescription } from '../../types';
|
|
8
|
-
export interface OnDeleteEmoji {
|
|
9
|
-
(emoji: EmojiDescription): Promise<boolean>;
|
|
10
|
-
}
|
|
11
|
-
export declare const emojiDeletePreviewTestId = "emoji-delete-preview";
|
|
12
|
-
export interface Props {
|
|
13
|
-
emoji: EmojiDescription;
|
|
14
|
-
errorMessage?: string;
|
|
15
|
-
onCloseDelete: () => void;
|
|
16
|
-
onDeleteEmoji: OnDeleteEmoji;
|
|
17
|
-
}
|
|
18
|
-
export interface State {
|
|
19
|
-
error: boolean;
|
|
20
|
-
loading: boolean;
|
|
21
|
-
}
|
|
22
|
-
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
23
|
-
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
24
|
-
};
|
|
25
|
-
export default _default_1;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Message } from '../../types';
|
|
2
|
-
export type ErrorStyle = 'chooseFile' | 'delete' | 'preview';
|
|
3
|
-
export interface Props {
|
|
4
|
-
errorStyle: ErrorStyle;
|
|
5
|
-
message: Message;
|
|
6
|
-
tooltip?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const emojiErrorScreenreaderTestId = "emoji-error-screenreader-message";
|
|
9
|
-
export declare const emojiErrorMessageTestId = "emoji-error-message";
|
|
10
|
-
export declare const emojiErrorMessageTooltipTestId = "emoji-error-message-tooltip";
|
|
11
|
-
export declare const emojiErrorIconTestId = "emoji-error-icon";
|
|
12
|
-
declare const EmojiErrorMessage: (props: Props) => JSX.Element;
|
|
13
|
-
export default EmojiErrorMessage;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { StrictXCSSProp } from '@atlaskit/css';
|
|
2
|
-
import type { EmojiImageRepresentation } from '../../types';
|
|
3
|
-
export interface Props {
|
|
4
|
-
loading?: boolean;
|
|
5
|
-
representation?: EmojiImageRepresentation;
|
|
6
|
-
shortName: string;
|
|
7
|
-
showTooltip?: boolean;
|
|
8
|
-
size?: number;
|
|
9
|
-
xcss?: StrictXCSSProp<'backgroundColor', never>;
|
|
10
|
-
}
|
|
11
|
-
export declare const emojiPlaceholderTestId: (shortName: string) => string;
|
|
12
|
-
declare const EmojiPlaceholder: (props: Props) => JSX.Element;
|
|
13
|
-
export default EmojiPlaceholder;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { EmojiDescription } from '../../types';
|
|
7
|
-
export interface Props {
|
|
8
|
-
ariaLabelText?: string;
|
|
9
|
-
defaultChecked?: boolean;
|
|
10
|
-
emoji: EmojiDescription;
|
|
11
|
-
onArrowKey?: (direction: -1 | 1) => void;
|
|
12
|
-
onSelected?: () => void;
|
|
13
|
-
selectOnHover?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const EmojiRadioButton: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
|
|
16
|
-
declare const _default_1: React.MemoExoticComponent<React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>>;
|
|
17
|
-
export default _default_1;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType, type FC } from 'react';
|
|
6
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { EmojiUpload, Message } from '../../types';
|
|
8
|
-
export interface OnUploadEmoji {
|
|
9
|
-
(upload: EmojiUpload, retry: boolean, onSuccessHandler?: () => void): void;
|
|
10
|
-
}
|
|
11
|
-
export declare const uploadEmojiNameInputTestId = "upload-emoji-name-input";
|
|
12
|
-
export declare const uploadEmojiComponentTestId = "upload-emoji-component";
|
|
13
|
-
export declare const cancelEmojiUploadPickerTestId = "cancel-emoji-upload-picker";
|
|
14
|
-
export interface Props {
|
|
15
|
-
disableFocusLock?: boolean;
|
|
16
|
-
errorMessage?: Message;
|
|
17
|
-
initialUploadName?: string;
|
|
18
|
-
onFileChooserClicked?: () => void;
|
|
19
|
-
onUploadCancelled: () => void;
|
|
20
|
-
onUploadEmoji: OnUploadEmoji;
|
|
21
|
-
}
|
|
22
|
-
declare const EmojiUploadPickerComponent: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
23
|
-
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
24
|
-
};
|
|
25
|
-
export default EmojiUploadPickerComponent;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType, type FC } from 'react';
|
|
6
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { Message } from '../../types';
|
|
8
|
-
import { UploadStatus } from './internal-types';
|
|
9
|
-
export interface EmojiUploadPreviewProps {
|
|
10
|
-
errorMessage?: Message;
|
|
11
|
-
name: string;
|
|
12
|
-
onAddEmoji: () => void;
|
|
13
|
-
onUploadCancelled: () => void;
|
|
14
|
-
previewImage: string;
|
|
15
|
-
uploadStatus?: UploadStatus;
|
|
16
|
-
}
|
|
17
|
-
export declare const uploadPreviewTestId = "upload-preview";
|
|
18
|
-
export declare const cancelUploadButtonTestId = "cancel-upload-button";
|
|
19
|
-
declare const _default_1: FC<WithIntlProps<EmojiUploadPreviewProps & WrappedComponentProps>> & {
|
|
20
|
-
WrappedComponent: ComponentType<EmojiUploadPreviewProps & WrappedComponentProps>;
|
|
21
|
-
};
|
|
22
|
-
export default _default_1;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React, { type ChangeEventHandler } from 'react';
|
|
6
|
-
export interface Props {
|
|
7
|
-
accept?: string;
|
|
8
|
-
ariaDescribedBy?: string;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
isDropDisabled?: boolean;
|
|
11
|
-
label: string;
|
|
12
|
-
onChange?: ChangeEventHandler<any>;
|
|
13
|
-
onClick?: () => void;
|
|
14
|
-
previewAlt?: string;
|
|
15
|
-
previewImage?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const chooseFileButtonTestId = "choose-file-button";
|
|
18
|
-
export declare const fileUploadInputTestId = "file-upload";
|
|
19
|
-
export declare const dropzoneTestId = "file-dropzone";
|
|
20
|
-
declare const FileChooser: (props: Props) => React.JSX.Element;
|
|
21
|
-
export default FileChooser;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Component, type ComponentType } from 'react';
|
|
2
|
-
import type { EmojiProvider } from '../../api/EmojiResource';
|
|
3
|
-
export interface Props {
|
|
4
|
-
/**
|
|
5
|
-
* Emoji Resource instance
|
|
6
|
-
*/
|
|
7
|
-
emojiProvider: Promise<EmojiProvider>;
|
|
8
|
-
}
|
|
9
|
-
export interface State {
|
|
10
|
-
asyncLoadedComponent?: ComponentType<React.PropsWithChildren<any>>;
|
|
11
|
-
loadedEmojiProvider?: EmojiProvider;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A base class for components that don't want to start rendering
|
|
15
|
-
* until the EmojiProvider is resolved.
|
|
16
|
-
* Notes: super.componentDidMount and super.componentWillUnmount will need to be
|
|
17
|
-
* called explicitly if they are overridden on the child class.
|
|
18
|
-
*/
|
|
19
|
-
export default abstract class LoadingEmojiComponent<P extends Props, S extends State> extends Component<P, S> {
|
|
20
|
-
private isUnmounted;
|
|
21
|
-
constructor(props: P, state: S);
|
|
22
|
-
componentDidMount(): void;
|
|
23
|
-
componentDidUpdate(prevProps: Readonly<P>): void;
|
|
24
|
-
componentWillUnmount(): void;
|
|
25
|
-
private loadEmojiProvider;
|
|
26
|
-
private loaded;
|
|
27
|
-
abstract asyncLoadComponent(): void;
|
|
28
|
-
protected setAsyncState(asyncLoadedComponent: ComponentType<React.PropsWithChildren<any>>): void;
|
|
29
|
-
renderLoading(): JSX.Element | null;
|
|
30
|
-
abstract renderLoaded(loadedEmojiProvider: EmojiProvider, asyncLoadedComponent: ComponentType<React.PropsWithChildren<any>>): JSX.Element | null;
|
|
31
|
-
render(): JSX.Element | null;
|
|
32
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement } from 'react';
|
|
2
|
-
import type { RelativePosition } from '../../types';
|
|
3
|
-
export interface Props {
|
|
4
|
-
children: ReactElement<any>;
|
|
5
|
-
offsetX?: number;
|
|
6
|
-
offsetY?: number;
|
|
7
|
-
relativePosition?: RelativePosition;
|
|
8
|
-
target: string | Element;
|
|
9
|
-
zIndex?: string | number;
|
|
10
|
-
}
|
|
11
|
-
declare const Popup: (props: React.PropsWithChildren<Props>) => React.JSX.Element;
|
|
12
|
-
export default Popup;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type EmojiInsertionAnalytic } from '../../util/analytics';
|
|
2
|
-
import type { OnEmojiEvent } from '../../types';
|
|
3
|
-
import type { EmojiProvider } from '../../api/EmojiResource';
|
|
4
|
-
/**
|
|
5
|
-
* A function that will wrap any configured Emoji 'onSelection' function to ensure recordSelection is always
|
|
6
|
-
* called.
|
|
7
|
-
*
|
|
8
|
-
* @param provider the EmojiProvider which will be called on each emoji selection
|
|
9
|
-
* @param onSelect the onSelect function that is explicitly configured on the Emoji component.
|
|
10
|
-
* @param fireAnalytics a function used to fire analytics events.
|
|
11
|
-
*/
|
|
12
|
-
export declare const createRecordSelectionDefault: <T>(provider: EmojiProvider, onSelect?: OnEmojiEvent<T>, fireAnalytics?: (producer: EmojiInsertionAnalytic) => void) => OnEmojiEvent<T>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type Props as ResourcedEmojiProps } from './ResourcedEmojiComponent';
|
|
3
|
-
export interface Props extends ResourcedEmojiProps {
|
|
4
|
-
}
|
|
5
|
-
declare const ResourcedEmoji: (props: React.PropsWithChildren<Props>) => React.JSX.Element;
|
|
6
|
-
export default ResourcedEmoji;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StrictXCSSProp } from '@atlaskit/css';
|
|
3
|
-
import type { EmojiProvider } from '../../api/EmojiResource';
|
|
4
|
-
import type { EmojiLoadSuccessCallback, EmojiLoadFailCallback } from '../../api/EmojiUtils';
|
|
5
|
-
import { type EmojiId } from '../../types';
|
|
6
|
-
export interface BaseResourcedEmojiProps {
|
|
7
|
-
/**
|
|
8
|
-
* Custom Fallback allows a custom element or string to be rendered if an emoji fails to be fetched or found.
|
|
9
|
-
* By default it takes the fallback or shortName inside emojiId, but if this prop is set it override the internal
|
|
10
|
-
* fallbacks
|
|
11
|
-
* customFallback<Element | string> else emojiId.fallback else emojiId.shortName.
|
|
12
|
-
* Defaults to `undefined`.
|
|
13
|
-
*/
|
|
14
|
-
customFallback?: JSX.Element | string;
|
|
15
|
-
/**
|
|
16
|
-
* This should only be set when the emoji is being used in the Editor.
|
|
17
|
-
* Currently when set -- this prevents any aria labels being added.
|
|
18
|
-
* This is acceptable in Editor -- as it uses another technique to announce the emoji nodes.
|
|
19
|
-
*/
|
|
20
|
-
editorEmoji?: true;
|
|
21
|
-
/**
|
|
22
|
-
* Emoji to display
|
|
23
|
-
*/
|
|
24
|
-
emojiId: EmojiId;
|
|
25
|
-
/**
|
|
26
|
-
* Scales the emoji proportionally to provided hight.
|
|
27
|
-
* Defaults to `undefined`.
|
|
28
|
-
*/
|
|
29
|
-
fitToHeight?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Optimistic will call the fetch interface first and not wait for the entire emoji collection
|
|
32
|
-
* to be available before rendering. This is useful for views or pages that show a select set of
|
|
33
|
-
* emojis.
|
|
34
|
-
* Defaults to `false`.
|
|
35
|
-
*/
|
|
36
|
-
optimistic?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Will attempt to render a highly condensed version of the emoji with an image url before showing the meta version.
|
|
39
|
-
* All that is required for optimistic images to render is an emojiId, imageUrl and sizing props.
|
|
40
|
-
* Defaults to `undefined`.
|
|
41
|
-
*/
|
|
42
|
-
optimisticImageURL?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Indicates that this emoji is being rendered in a page title context.
|
|
45
|
-
* This is used to adjust certain behaviors to reduce TTVC issues.
|
|
46
|
-
* Defaults to `false`.
|
|
47
|
-
*/
|
|
48
|
-
pageTitleEmoji?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* allows custom styling to the placeholder component while the emoji is loading.
|
|
51
|
-
*/
|
|
52
|
-
placeholderXcss?: StrictXCSSProp<'backgroundColor', never>;
|
|
53
|
-
/**
|
|
54
|
-
* Allows to show the tooltip.
|
|
55
|
-
* Defaults to `false`.
|
|
56
|
-
*/
|
|
57
|
-
showTooltip?: boolean;
|
|
58
|
-
}
|
|
59
|
-
export interface Props extends BaseResourcedEmojiProps {
|
|
60
|
-
/**
|
|
61
|
-
* EmojiResource instance that handles fetching of emoji data.
|
|
62
|
-
*/
|
|
63
|
-
emojiProvider: Promise<EmojiProvider>;
|
|
64
|
-
/**
|
|
65
|
-
* A callback triggered on emoji load failure
|
|
66
|
-
*/
|
|
67
|
-
onEmojiLoadFail?: EmojiLoadFailCallback;
|
|
68
|
-
/**
|
|
69
|
-
* A callback triggered on emoji load success
|
|
70
|
-
*/
|
|
71
|
-
onEmojiLoadSuccess?: EmojiLoadSuccessCallback;
|
|
72
|
-
}
|
|
73
|
-
export declare const ResourcedEmojiComponent: ({ emojiProvider, emojiId, showTooltip, customFallback, fitToHeight, optimistic, optimisticImageURL, editorEmoji, pageTitleEmoji, placeholderXcss, onEmojiLoadSuccess, onEmojiLoadFail, }: Props) => React.JSX.Element;
|
|
74
|
-
export default ResourcedEmojiComponent;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface Props {
|
|
2
|
-
appearance: string;
|
|
3
|
-
ariaDescribedBy?: string;
|
|
4
|
-
ariaLabelledBy?: string;
|
|
5
|
-
error: boolean;
|
|
6
|
-
label: string;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
onSubmit: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const retryUploadButtonTestId = "retry-upload-button";
|
|
11
|
-
export declare const uploadEmojiButtonTestId = "upload-emoji-button";
|
|
12
|
-
declare const RetryableButton: (props: Props) => JSX.Element;
|
|
13
|
-
export default RetryableButton;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type MouseEventHandler, PureComponent, type ReactNode, type UIEvent } from 'react';
|
|
6
|
-
export interface OnScroll {
|
|
7
|
-
(element: Element, event: UIEvent<any>): void;
|
|
8
|
-
}
|
|
9
|
-
export interface Props {
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
className?: string;
|
|
12
|
-
maxHeight?: string;
|
|
13
|
-
onMouseLeave?: MouseEventHandler<any>;
|
|
14
|
-
onScroll?: OnScroll;
|
|
15
|
-
}
|
|
16
|
-
export default class Scrollable extends PureComponent<Props, {}> {
|
|
17
|
-
private scrollableDiv;
|
|
18
|
-
reveal: (child: HTMLElement, forceToTop?: boolean) => void;
|
|
19
|
-
scrollToBottom: () => void;
|
|
20
|
-
private handleScroll;
|
|
21
|
-
private handleRef;
|
|
22
|
-
render(): JSX.Element;
|
|
23
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ForwardRefExoticComponent, type MemoExoticComponent, type RefAttributes } from 'react';
|
|
6
|
-
import type { EmojiDescription } from '../../types';
|
|
7
|
-
export declare const tonePreviewTestId = "tone-preview";
|
|
8
|
-
export interface Props {
|
|
9
|
-
ariaExpanded?: boolean;
|
|
10
|
-
ariaLabelText?: string;
|
|
11
|
-
emoji: EmojiDescription;
|
|
12
|
-
isVisible?: boolean;
|
|
13
|
-
onSelected?: () => void;
|
|
14
|
-
selectOnHover?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const TonePreviewButton: ForwardRefExoticComponent<Props & RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
declare const _default_1: MemoExoticComponent<ForwardRefExoticComponent<Props & RefAttributes<HTMLButtonElement>>>;
|
|
18
|
-
export default _default_1;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type ForwardRefExoticComponent, type MemoExoticComponent, type RefAttributes } from 'react';
|
|
2
|
-
import type { EmojiDescriptionWithVariations, OnToneSelected, ToneSelection } from '../../types';
|
|
3
|
-
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
export interface Props {
|
|
5
|
-
emoji: EmojiDescriptionWithVariations;
|
|
6
|
-
isVisible: boolean;
|
|
7
|
-
onToneClose?: () => void;
|
|
8
|
-
onToneSelected: OnToneSelected;
|
|
9
|
-
selectedTone?: ToneSelection;
|
|
10
|
-
}
|
|
11
|
-
export declare const toneSelectorTestId = "tone-selector";
|
|
12
|
-
type PropsWithAnalyticsEventsPropsType = Props & WithAnalyticsEventsProps;
|
|
13
|
-
export declare const ToneSelectorInternal: (props: PropsWithAnalyticsEventsPropsType) => JSX.Element;
|
|
14
|
-
declare const _default_1: MemoExoticComponent<ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & RefAttributes<any>>>;
|
|
15
|
-
export default _default_1;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { type Keymap } from '../../util/keymaps';
|
|
7
|
-
export declare const ToolTipContentWithKeymap: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
8
|
-
description?: string | React.ReactNode;
|
|
9
|
-
keymap?: Keymap;
|
|
10
|
-
shortcutOverride?: string;
|
|
11
|
-
}) => JSX.Element | null>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { type ErrorInfo } from 'react';
|
|
2
|
-
import type { UFOExperience } from '@atlaskit/ufo';
|
|
3
|
-
export declare class UfoErrorBoundary extends React.Component<{
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
experiences: UFOExperience[];
|
|
6
|
-
}> {
|
|
7
|
-
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
8
|
-
render(): React.ReactNode;
|
|
9
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { MessageDescriptor } from 'react-intl';
|
|
2
|
-
import { type EmojiProvider } from '../../api/EmojiResource';
|
|
3
|
-
import type { EmojiDescription, EmojiUpload } from '../../types';
|
|
4
|
-
import type { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
5
|
-
export declare const uploadEmoji: (upload: EmojiUpload, emojiProvider: EmojiProvider, errorSetter: (message: MessageDescriptor | undefined) => void, onSuccess: (emojiDescription: EmojiDescription) => void, fireAnalytics: (event: AnalyticsEventPayload) => void, retry: boolean) => void;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { EmojiProvider } from '../../api/EmojiResource';
|
|
2
|
-
export interface EmojiContext {
|
|
3
|
-
emoji: {
|
|
4
|
-
emojiProvider: EmojiProvider;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
interface FocusIndexes {
|
|
8
|
-
columnIndex: number;
|
|
9
|
-
rowIndex: number;
|
|
10
|
-
}
|
|
11
|
-
export interface EmojiPickerListContextType {
|
|
12
|
-
currentEmojisFocus: FocusIndexes;
|
|
13
|
-
setEmojisFocus: (indexes: FocusIndexes) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare enum UploadStatus {
|
|
16
|
-
Waiting = 0,
|
|
17
|
-
Uploading = 1,
|
|
18
|
-
Error = 2
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const setSkinToneAriaLabelText: (tone?: string) => string | undefined;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const commonSelectedStyles = "emoji-common-selected";
|
|
2
|
-
export declare const selectOnHoverStyles = "emoji-common-select-on-hover";
|
|
3
|
-
export declare const emojiSprite = "emoji-common-emoji-sprite";
|
|
4
|
-
export declare const emojiNodeStyles = "emoji-common-node";
|
|
5
|
-
export declare const emojiImage = "emoji-common-emoji-image";
|
|
6
|
-
export declare const emojiDeleteButton = "emoji-common-deleteButton";
|
|
7
|
-
export declare const emojiMainStyle = "emoji-common-main-styles";
|
|
8
|
-
export declare const deletableEmoji = "emoji-common-deletable";
|
|
9
|
-
export declare const placeholder = "emoji-common-placeholder";
|
|
10
|
-
export declare const emojiPickerAddEmoji = "emoji-picker-add-emoji";
|