@atlaskit/emoji 72.4.10 → 72.4.12
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/api/EmojiRepository.js +2 -2
- package/dist/cjs/api/EmojiResource.js +1 -1
- package/dist/cjs/api/internal/UsageFrequencyTracker.js +2 -2
- package/dist/cjs/api/media/MemoryCacheStrategy.js +1 -1
- package/dist/cjs/components/common/AddEmoji.js +2 -2
- package/dist/cjs/components/common/CreateEmojiWithRovo.js +1 -1
- package/dist/cjs/components/common/DeleteButton.js +2 -2
- package/dist/cjs/components/common/Emoji.js +1 -1
- package/dist/cjs/components/common/EmojiDeletePreview.js +3 -3
- package/dist/cjs/components/common/EmojiErrorMessage.js +3 -3
- package/dist/cjs/components/common/EmojiPreviewComponent.js +1 -1
- package/dist/cjs/components/common/EmojiRadioButton.js +3 -3
- package/dist/cjs/components/common/EmojiUploadPicker.js +8 -8
- package/dist/cjs/components/common/EmojiUploadPreview.js +1 -1
- package/dist/cjs/components/common/ImageEmoji.js +1 -1
- package/dist/cjs/components/common/ResourcedEmoji.js +1 -1
- package/dist/cjs/components/common/RetryableButton.js +1 -1
- package/dist/cjs/components/common/TonePreviewButton.js +1 -1
- package/dist/cjs/components/common/ToneSelectorInternal.js +2 -2
- package/dist/cjs/components/picker/CategorySelector.js +1 -1
- package/dist/cjs/components/picker/EmojiPickerComponent.js +3 -3
- package/dist/cjs/components/picker/EmojiPickerEmojiRow.js +2 -2
- package/dist/cjs/components/picker/EmojiPickerFooter.js +1 -1
- package/dist/cjs/components/picker/EmojiPickerInternal.js +1 -1
- package/dist/cjs/components/picker/EmojiPickerList.js +2 -2
- package/dist/cjs/components/picker/EmojiPickerListSearch.js +5 -5
- package/dist/cjs/components/picker/EmojiPickerNoResults.js +2 -2
- package/dist/cjs/components/picker/EmojiPickerTabPanel.js +1 -1
- package/dist/cjs/components/picker/categories.js +7 -7
- package/dist/cjs/context/EmojiContextProvider.js +1 -1
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/util/analytics/createEvent.js +1 -1
- package/dist/cjs/util/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/util/teamoji26RefreshEmojiPicker.js +4 -3
- package/dist/es2019/admin.js +1 -0
- package/dist/es2019/api/EmojiLoader.js +0 -1
- package/dist/es2019/api/EmojiRepository.js +3 -2
- package/dist/es2019/api/EmojiResource.js +2 -1
- package/dist/es2019/api/internal/UsageFrequencyTracker.js +2 -2
- package/dist/es2019/api/media/MemoryCacheStrategy.js +1 -2
- package/dist/es2019/api/media/TokenManager.js +0 -1
- package/dist/es2019/components/common/AddEmoji.js +2 -2
- package/dist/es2019/components/common/CreateEmojiWithRovo.js +1 -1
- package/dist/es2019/components/common/DeleteButton.js +2 -2
- package/dist/es2019/components/common/Emoji.js +1 -1
- package/dist/es2019/components/common/EmojiDeletePreview.js +3 -3
- package/dist/es2019/components/common/EmojiErrorMessage.js +3 -3
- package/dist/es2019/components/common/EmojiPreviewComponent.js +1 -1
- package/dist/es2019/components/common/EmojiRadioButton.js +3 -3
- package/dist/es2019/components/common/EmojiUploadPicker.js +9 -9
- package/dist/es2019/components/common/EmojiUploadPreview.js +1 -1
- package/dist/es2019/components/common/ImageEmoji.js +1 -1
- package/dist/es2019/components/common/ResourcedEmoji.js +1 -1
- package/dist/es2019/components/common/RetryableButton.js +1 -1
- package/dist/es2019/components/common/TonePreviewButton.js +1 -1
- package/dist/es2019/components/common/ToneSelectorInternal.js +2 -2
- package/dist/es2019/components/picker/CategorySelector.js +1 -1
- package/dist/es2019/components/picker/EmojiPickerComponent.js +3 -3
- package/dist/es2019/components/picker/EmojiPickerEmojiRow.js +2 -2
- package/dist/es2019/components/picker/EmojiPickerFooter.js +1 -1
- package/dist/es2019/components/picker/EmojiPickerInternal.js +1 -1
- package/dist/es2019/components/picker/EmojiPickerList.js +2 -2
- package/dist/es2019/components/picker/EmojiPickerListSearch.js +5 -5
- package/dist/es2019/components/picker/EmojiPickerNoResults.js +2 -2
- package/dist/es2019/components/picker/EmojiPickerTabPanel.js +1 -1
- package/dist/es2019/components/picker/categories.js +7 -7
- package/dist/es2019/components/typeahead/EmojiTypeAheadComponent.js +1 -0
- package/dist/es2019/context/EmojiContextProvider.js +1 -1
- package/dist/es2019/element.js +1 -0
- package/dist/es2019/index.js +8 -8
- package/dist/es2019/picker.js +1 -0
- package/dist/es2019/resource.js +1 -0
- package/dist/es2019/typeahead.js +1 -0
- package/dist/es2019/util/analytics/analytics.js +1 -0
- package/dist/es2019/util/analytics/createEvent.js +1 -1
- package/dist/es2019/util/analytics/ufoExperiences.js +2 -1
- package/dist/es2019/util/teamoji26RefreshEmojiPicker.js +3 -2
- package/dist/es2019/util/type-helpers.js +1 -0
- package/dist/es2019/utils.js +1 -0
- package/dist/esm/admin.js +1 -0
- package/dist/esm/api/EmojiLoader.js +0 -1
- package/dist/esm/api/EmojiRepository.js +3 -2
- package/dist/esm/api/EmojiResource.js +2 -1
- package/dist/esm/api/internal/UsageFrequencyTracker.js +2 -2
- package/dist/esm/api/media/MemoryCacheStrategy.js +1 -2
- package/dist/esm/api/media/TokenManager.js +0 -1
- package/dist/esm/components/common/AddEmoji.js +2 -2
- package/dist/esm/components/common/CreateEmojiWithRovo.js +1 -1
- package/dist/esm/components/common/DeleteButton.js +2 -2
- package/dist/esm/components/common/Emoji.js +1 -1
- package/dist/esm/components/common/EmojiDeletePreview.js +3 -3
- package/dist/esm/components/common/EmojiErrorMessage.js +3 -3
- package/dist/esm/components/common/EmojiPreviewComponent.js +1 -1
- package/dist/esm/components/common/EmojiRadioButton.js +3 -3
- package/dist/esm/components/common/EmojiUploadPicker.js +9 -9
- package/dist/esm/components/common/EmojiUploadPreview.js +1 -1
- package/dist/esm/components/common/ImageEmoji.js +1 -1
- package/dist/esm/components/common/ResourcedEmoji.js +1 -1
- package/dist/esm/components/common/RetryableButton.js +1 -1
- package/dist/esm/components/common/TonePreviewButton.js +1 -1
- package/dist/esm/components/common/ToneSelectorInternal.js +2 -2
- package/dist/esm/components/picker/CategorySelector.js +1 -1
- package/dist/esm/components/picker/EmojiPickerComponent.js +3 -3
- package/dist/esm/components/picker/EmojiPickerEmojiRow.js +2 -2
- package/dist/esm/components/picker/EmojiPickerFooter.js +1 -1
- package/dist/esm/components/picker/EmojiPickerInternal.js +1 -1
- package/dist/esm/components/picker/EmojiPickerList.js +2 -2
- package/dist/esm/components/picker/EmojiPickerListSearch.js +5 -5
- package/dist/esm/components/picker/EmojiPickerNoResults.js +2 -2
- package/dist/esm/components/picker/EmojiPickerTabPanel.js +1 -1
- package/dist/esm/components/picker/categories.js +7 -7
- package/dist/esm/components/typeahead/EmojiTypeAheadComponent.js +1 -0
- package/dist/esm/context/EmojiContextProvider.js +1 -1
- package/dist/esm/element.js +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/picker.js +1 -0
- package/dist/esm/resource.js +1 -0
- package/dist/esm/typeahead.js +1 -0
- package/dist/esm/util/analytics/analytics.js +1 -0
- package/dist/esm/util/analytics/createEvent.js +1 -1
- package/dist/esm/util/analytics/ufoExperiences.js +2 -1
- package/dist/esm/util/teamoji26RefreshEmojiPicker.js +3 -2
- package/dist/esm/util/type-helpers.js +1 -0
- package/dist/esm/utils.js +1 -0
- package/dist/types/api/media/TokenManager.d.ts +1 -1
- package/dist/types/components/common/RetryableButton.d.ts +4 -0
- package/dist/types/components/picker/EmojiPickerEmojiRow.d.ts +1 -1
- package/dist/types/components/picker/EmojiPickerListSearch.d.ts +4 -0
- package/dist/types/components/picker/VirtualList.d.ts +5 -1
- package/dist/types/index.d.ts +8 -8
- package/dist/types/types.d.ts +1 -1
- package/dist/types/util/analytics/analytics.d.ts +1 -1
- package/dist/types/util/analytics/useSampledUFOComponentExperience.d.ts +1 -1
- package/dist/types/util/teamoji26RefreshEmojiPicker.d.ts +1 -0
- package/package.json +8 -4
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.teamoji26RefreshEmojiPickerUserIdGateName = exports.teamoji26RefreshEmojiPickerShortNameAndOrderingGateName = exports.teamoji26RefreshEmojiPickerExperimentName = exports.isTeamoji26RefreshEmojiPickerEnabledNoExposure = exports.isTeamoji26RefreshEmojiPickerEnabled = void 0;
|
|
6
|
+
exports.teamoji26RefreshEmojiPickerUserIdGateName = exports.teamoji26RefreshEmojiPickerShortNameAndOrderingGateName = exports.teamoji26RefreshEmojiPickerExperimentName = exports.teamoji26RefreshEmojiPickerCanvasExperimentName = exports.isTeamoji26RefreshEmojiPickerEnabledNoExposure = exports.isTeamoji26RefreshEmojiPickerEnabled = void 0;
|
|
7
7
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
8
8
|
var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
|
|
9
9
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
10
10
|
var teamoji26RefreshEmojiPickerExperimentName = exports.teamoji26RefreshEmojiPickerExperimentName = 'platform_teamoji_26_refresh_emoji_picker';
|
|
11
|
+
var teamoji26RefreshEmojiPickerCanvasExperimentName = exports.teamoji26RefreshEmojiPickerCanvasExperimentName = 'platform_teamoji_26_refresh_emoji_picker_canvas';
|
|
11
12
|
var teamoji26RefreshEmojiPickerUserIdGateName = exports.teamoji26RefreshEmojiPickerUserIdGateName = 'platform_teamoji_26_refresh_emoji_picker_user_id';
|
|
12
13
|
var teamoji26RefreshEmojiPickerShortNameAndOrderingGateName = exports.teamoji26RefreshEmojiPickerShortNameAndOrderingGateName = 'platform_bitbucket_fix_shortname_and_ordering';
|
|
13
14
|
var isTeamoji26RefreshEmojiPickerEnabled = exports.isTeamoji26RefreshEmojiPickerEnabled = function isTeamoji26RefreshEmojiPickerEnabled() {
|
|
14
|
-
return (0, _isExperimentEnabled.isExperimentEnabled)(teamoji26RefreshEmojiPickerExperimentName) || (0, _fg.fg)(teamoji26RefreshEmojiPickerUserIdGateName) || (0, _fg.fg)(teamoji26RefreshEmojiPickerShortNameAndOrderingGateName);
|
|
15
|
+
return (0, _isExperimentEnabled.isExperimentEnabled)(teamoji26RefreshEmojiPickerExperimentName) || (0, _isExperimentEnabled.isExperimentEnabled)(teamoji26RefreshEmojiPickerCanvasExperimentName) || (0, _fg.fg)(teamoji26RefreshEmojiPickerUserIdGateName) || (0, _fg.fg)(teamoji26RefreshEmojiPickerShortNameAndOrderingGateName);
|
|
15
16
|
};
|
|
16
17
|
var isTeamoji26RefreshEmojiPickerEnabledNoExposure = exports.isTeamoji26RefreshEmojiPickerEnabledNoExposure = function isTeamoji26RefreshEmojiPickerEnabledNoExposure() {
|
|
17
|
-
return (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)(teamoji26RefreshEmojiPickerExperimentName, 'isEnabled', false) === true || (0, _fg.fg)(teamoji26RefreshEmojiPickerUserIdGateName) || (0, _fg.fg)(teamoji26RefreshEmojiPickerShortNameAndOrderingGateName);
|
|
18
|
+
return (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)(teamoji26RefreshEmojiPickerExperimentName, 'isEnabled', false) === true || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)(teamoji26RefreshEmojiPickerCanvasExperimentName, 'isEnabled', false) === true || (0, _fg.fg)(teamoji26RefreshEmojiPickerUserIdGateName) || (0, _fg.fg)(teamoji26RefreshEmojiPickerShortNameAndOrderingGateName);
|
|
18
19
|
};
|
package/dist/es2019/admin.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { isTestEnvironment } from '../util/is-test-environment';
|
|
2
2
|
import { denormaliseEmojiServiceResponse } from './denormaliseEmojiServiceResponse';
|
|
3
3
|
import { emojiRequest } from './emojiRequest';
|
|
4
|
-
|
|
5
4
|
/**
|
|
6
5
|
* Shared cache of in-flight/resolved emoji load promises, keyed by the request URL so that
|
|
7
6
|
* multiple loaders created for the same provider config reuse a single request instead of
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
3
|
+
|
|
3
4
|
import { Search, UnorderedSearchIndex } from 'js-search';
|
|
4
5
|
import { SearchSort } from '../types';
|
|
5
6
|
import { defaultCategories, frequentCategory } from '../util/constants';
|
|
6
7
|
import { getCategoryId } from '../util/get-category-id';
|
|
7
8
|
import { isEmojiDescriptionWithVariations } from '../util/is-emoji-description-with-variations';
|
|
9
|
+
import { isTeamoji26RefreshEmojiPickerEnabled } from '../util/teamoji26RefreshEmojiPicker';
|
|
8
10
|
import { tokenizerRegex } from './EmojiRepositoryRegex';
|
|
9
11
|
import { getEmojiVariation } from './getEmojiVariation';
|
|
10
|
-
import { UsageFrequencyTracker } from './internal/UsageFrequencyTracker';
|
|
11
12
|
import { createSearchEmojiComparator } from './internal/createSearchEmojiComparator';
|
|
12
13
|
import { createUsageOnlyEmojiComparator } from './internal/createUsageOnlyEmojiComparator';
|
|
13
|
-
import {
|
|
14
|
+
import { UsageFrequencyTracker } from './internal/UsageFrequencyTracker';
|
|
14
15
|
// FS-1097 - duplicated in mentions - extract at some point into a shared library
|
|
15
16
|
class Tokenizer {
|
|
16
17
|
tokenize(text) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
3
|
+
|
|
3
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
5
|
import { AbstractResource, utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
5
6
|
import { ProviderTypes } from '../types';
|
|
@@ -10,9 +11,9 @@ import { isMediaEmoji } from '../util/is-media-emoji';
|
|
|
10
11
|
import { isPromise } from '../util/is-promise';
|
|
11
12
|
import debug from '../util/logger';
|
|
12
13
|
import storageAvailable from '../util/storage-available';
|
|
14
|
+
import { isTeamoji26RefreshEmojiPickerEnabled } from '../util/teamoji26RefreshEmojiPicker';
|
|
13
15
|
import { promiseWithTimeout } from '../util/timed-promise';
|
|
14
16
|
import { toEmojiId } from '../util/to-emoji-id';
|
|
15
|
-
import { isTeamoji26RefreshEmojiPickerEnabled } from '../util/teamoji26RefreshEmojiPicker';
|
|
16
17
|
import EmojiLoader from './EmojiLoader';
|
|
17
18
|
import EmojiRepository from './EmojiRepository';
|
|
18
19
|
import SiteEmojiResource from './media/SiteEmojiResource';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import DuplicateLimitedQueue from '../../util/DuplicateLimitedQueue';
|
|
3
|
-
import StoredDuplicateLimitedQueue from '../../util/StoredDuplicateLimitedQueue';
|
|
4
2
|
import { localStoragePrefix } from '../../util/constants';
|
|
3
|
+
import DuplicateLimitedQueue from '../../util/DuplicateLimitedQueue';
|
|
5
4
|
import { isEmojiVariationDescription } from '../../util/is-emoji-variation-description';
|
|
6
5
|
import storageAvailable from '../../util/storage-available';
|
|
6
|
+
import StoredDuplicateLimitedQueue from '../../util/StoredDuplicateLimitedQueue';
|
|
7
7
|
import { Gateway } from './Gateway';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -2,9 +2,8 @@ import { LRUMap } from 'lru_map';
|
|
|
2
2
|
import { convertMediaToImageEmoji } from '../../util/convert-media-to-image-emoji';
|
|
3
3
|
import { isMediaRepresentation } from '../../util/is-media-representation';
|
|
4
4
|
import debug from '../../util/logger';
|
|
5
|
-
import { maxImageCached, maxImageSize } from './MediaEmojiCache';
|
|
6
5
|
import { getRequiredRepresentation } from './getRequiredRepresentation';
|
|
7
|
-
|
|
6
|
+
import { maxImageCached, maxImageSize } from './MediaEmojiCache';
|
|
8
7
|
/**
|
|
9
8
|
* For browsers that do no cache images without equivalent headers (e.g. Firefox).
|
|
10
9
|
*
|
|
@@ -3,10 +3,10 @@ import "./AddEmoji.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { Fragment, useCallback } from 'react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
6
|
import { FormattedMessage } from 'react-intl';
|
|
8
|
-
import { messages } from '../i18n';
|
|
9
7
|
import Button from '@atlaskit/button/default/button';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
+
import { messages } from '../i18n';
|
|
10
10
|
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
11
11
|
export const emojiActionsTestId = 'emoji-actions';
|
|
12
12
|
export const uploadEmojiTestId = 'upload-emoji';
|
|
@@ -5,10 +5,10 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useCallback, useState } from 'react';
|
|
6
6
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
7
7
|
import IconButton from '@atlaskit/button/icon/button';
|
|
8
|
-
import TextField from '@atlaskit/textfield/text-field';
|
|
9
8
|
import ArrowUpIcon from '@atlaskit/icon/core/arrow-up';
|
|
10
9
|
import { RovoIcon } from '@atlaskit/logo';
|
|
11
10
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
11
|
+
import TextField from '@atlaskit/textfield/text-field';
|
|
12
12
|
import { generateEmojiImage } from '../../api/ai/generateEmojiImage';
|
|
13
13
|
import { slugifyPrompt } from '../../util/ai-emoji';
|
|
14
14
|
import { aiGenerationCompletedEvent } from '../../util/analytics/aiGenerationCompletedEvent';
|
|
@@ -4,10 +4,10 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import Button from '@atlaskit/button/standard-button';
|
|
6
6
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
7
|
-
import { deleteEmojiLabel } from '../../util/constants';
|
|
8
|
-
import { emojiDeleteButton } from './styles';
|
|
9
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { deleteEmojiLabel } from '../../util/constants';
|
|
10
9
|
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
10
|
+
import { emojiDeleteButton } from './styles';
|
|
11
11
|
const styles = {
|
|
12
12
|
boxWrapperStyle: "_1bsbf6fq _4t3if6fq"
|
|
13
13
|
};
|
|
@@ -4,6 +4,7 @@ import "./Emoji.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useEffect, useContext, forwardRef } from 'react';
|
|
6
6
|
import { IntlContext } from 'react-intl';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
9
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
9
10
|
import { ProviderTypes, UfoEmojiTimings } from '../../types';
|
|
@@ -21,7 +22,6 @@ import { handleDelete } from './handleDelete';
|
|
|
21
22
|
import { ImageEmoji } from './ImageEmoji';
|
|
22
23
|
import { SpriteEmoji } from './SpriteEmoji';
|
|
23
24
|
import { UnicodeEmoji } from './UnicodeEmoji';
|
|
24
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
25
25
|
const emojiSpriteContainer = null;
|
|
26
26
|
const emojiImageContainer = null;
|
|
27
27
|
|
|
@@ -5,17 +5,17 @@ import "./EmojiDeletePreview.compiled.css";
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { Component } from 'react';
|
|
8
|
+
import FocusLock from 'react-focus-lock';
|
|
8
9
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
9
10
|
import AkButton from '@atlaskit/button/default/button';
|
|
10
11
|
import Heading from '@atlaskit/heading/heading';
|
|
11
12
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
12
|
-
import
|
|
13
|
+
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
13
14
|
import { messages } from '../i18n';
|
|
14
15
|
import CachingEmoji from './CachingEmoji';
|
|
15
16
|
import EmojiErrorMessage, { emojiErrorScreenreaderTestId } from './EmojiErrorMessage';
|
|
16
|
-
import RetryableButton from './RetryableButton';
|
|
17
|
-
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
18
17
|
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
18
|
+
import RetryableButton from './RetryableButton';
|
|
19
19
|
const deleteFooter = null;
|
|
20
20
|
const deletePreview = null;
|
|
21
21
|
const deleteText = null;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import "./EmojiErrorMessage.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
6
|
-
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
7
|
-
import { ErrorMessage } from '@atlaskit/form/error-message';
|
|
8
5
|
import { useIntl } from 'react-intl';
|
|
6
|
+
import { ErrorMessage } from '@atlaskit/form/error-message';
|
|
7
|
+
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
9
9
|
import { messages } from '../i18n';
|
|
10
10
|
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
11
11
|
const errorMessageStyles = {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "./EmojiPreviewComponent.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import CachingEmoji from './CachingEmoji';
|
|
6
5
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
6
|
+
import CachingEmoji from './CachingEmoji';
|
|
7
7
|
const emojiName = null;
|
|
8
8
|
const emojiShortName = null;
|
|
9
9
|
const preview = null;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "./EmojiRadioButton.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { memo, forwardRef } from 'react';
|
|
5
|
-
import
|
|
5
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
6
|
+
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
6
7
|
import { TONESELECTOR_KEYBOARD_KEYS_SUPPORTED } from '../../util/constants';
|
|
7
8
|
import { isTeamoji26RefreshEmojiPickerEnabledNoExposure } from '../../util/teamoji26RefreshEmojiPicker';
|
|
8
|
-
import
|
|
9
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
9
|
+
import Emoji from './Emoji';
|
|
10
10
|
const emojiButton = null;
|
|
11
11
|
const emojiRadio = {
|
|
12
12
|
default: "_tzy4idpf _kqswstnw _154i14id _1ltv14id _3y8mfajl _157z1r31 _1dzmglyw _1sqm1o36 _fh6w1y54 _1i1213zc"
|
|
@@ -3,25 +3,25 @@ import "./EmojiUploadPicker.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useEffect, useLayoutEffect, useState, useRef, memo, useCallback } from 'react';
|
|
6
|
+
import FocusLock from 'react-focus-lock';
|
|
6
7
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
8
|
+
import { getDocument } from '@atlaskit/browser-apis';
|
|
9
|
+
import Button from '@atlaskit/button/default/button';
|
|
9
10
|
import AkButton from '@atlaskit/button/standard-button';
|
|
11
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
12
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
14
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
11
|
-
import
|
|
15
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
16
|
+
import TextField from '@atlaskit/textfield/text-field';
|
|
12
17
|
import * as ImageUtil from '../../util/image';
|
|
13
|
-
import CreateEmojiWithRovo from './CreateEmojiWithRovo';
|
|
14
18
|
import debug from '../../util/logger';
|
|
15
19
|
import { messages } from '../i18n';
|
|
20
|
+
import CreateEmojiWithRovo from './CreateEmojiWithRovo';
|
|
16
21
|
import EmojiErrorMessage from './EmojiErrorMessage';
|
|
17
22
|
import EmojiUploadPreview from './EmojiUploadPreview';
|
|
18
23
|
import FileChooser from './FileChooser';
|
|
19
24
|
import { UploadStatus } from './internal-types';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
22
|
-
import Button from '@atlaskit/button/default/button';
|
|
23
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
24
|
-
import { getDocument } from '@atlaskit/browser-apis';
|
|
25
25
|
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
26
26
|
const closeEmojiUploadButton = null;
|
|
27
27
|
const uploadAddRowNew = null;
|
|
@@ -4,10 +4,10 @@ import "./EmojiUploadPreview.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { PureComponent } from 'react';
|
|
7
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
7
8
|
import AkButton from '@atlaskit/button/standard-button';
|
|
8
9
|
import Heading from '@atlaskit/heading/heading';
|
|
9
10
|
import { Stack } from '@atlaskit/primitives/compiled';
|
|
10
|
-
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
11
11
|
import { customCategory } from '../../util/constants';
|
|
12
12
|
import { messages } from '../i18n';
|
|
13
13
|
import Emoji from './Emoji';
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect, useCallback, useMemo } from 'react';
|
|
5
5
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
7
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
7
8
|
import { shouldUseAltRepresentation } from '../../api/shouldUseAltRepresentation';
|
|
8
9
|
import { useInView } from '../../hooks/useInView';
|
|
@@ -19,7 +20,6 @@ import DeleteButton from './DeleteButton';
|
|
|
19
20
|
import { EmojiNodeWrapper } from './Emoji';
|
|
20
21
|
import { handleDelete } from './handleDelete';
|
|
21
22
|
import { emojiNodeStyles, commonSelectedStyles, selectOnHoverStyles, emojiMainStyle, emojiImage, deletableEmoji } from './styles';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
23
23
|
const handleImageError = (props, event) => {
|
|
24
24
|
const {
|
|
25
25
|
emoji,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { ResourcedEmojiComponent } from './ResourcedEmojiComponent';
|
|
3
2
|
import { sampledUfoRenderedEmoji } from '../../util/analytics/sampledUfoRenderedEmoji';
|
|
4
3
|
import { ufoExperiences } from '../../util/analytics/ufoExperiences';
|
|
5
4
|
import { SAMPLING_RATE_EMOJI_RENDERED_EXP } from '../../util/constants';
|
|
5
|
+
import { ResourcedEmojiComponent } from './ResourcedEmojiComponent';
|
|
6
6
|
import { UfoErrorBoundary } from './UfoErrorBoundary';
|
|
7
7
|
const ResourcedEmoji = props => {
|
|
8
8
|
const {
|
|
@@ -4,8 +4,8 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import AkButton from '@atlaskit/button/default/button';
|
|
7
|
-
import Spinner from '@atlaskit/spinner/spinner';
|
|
8
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
9
9
|
import { messages } from '../i18n';
|
|
10
10
|
const buttonSpinner = null;
|
|
11
11
|
export const retryUploadButtonTestId = 'retry-upload-button';
|
|
@@ -3,9 +3,9 @@ import "./TonePreviewButton.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { forwardRef, memo } from 'react';
|
|
6
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
6
7
|
import { isTeamoji26RefreshEmojiPickerEnabledNoExposure } from '../../util/teamoji26RefreshEmojiPicker';
|
|
7
8
|
import Emoji from './Emoji';
|
|
8
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
9
9
|
export const tonePreviewTestId = 'tone-preview';
|
|
10
10
|
const emojiButton = null;
|
|
11
11
|
const hidden = null;
|
|
@@ -8,9 +8,9 @@ import { toneSelectedEvent } from '../../util/analytics/toneSelectedEvent';
|
|
|
8
8
|
import { toneSelectorOpenedEvent } from '../../util/analytics/toneSelectorOpenedEvent';
|
|
9
9
|
import { messages } from '../i18n';
|
|
10
10
|
import EmojiRadioButton from './EmojiRadioButton';
|
|
11
|
-
import { toneSelectorTestId } from './ToneSelector';
|
|
12
|
-
import { setSkinToneAriaLabelText } from './setSkinToneAriaLabelText';
|
|
13
11
|
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
12
|
+
import { setSkinToneAriaLabelText } from './setSkinToneAriaLabelText';
|
|
13
|
+
import { toneSelectorTestId } from './ToneSelector';
|
|
14
14
|
const hidden = null;
|
|
15
15
|
const extractAllTones = emoji => {
|
|
16
16
|
if (emoji.skinVariations) {
|
|
@@ -10,13 +10,13 @@ import { Pressable } from '@atlaskit/primitives/compiled';
|
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
11
11
|
import { usePrevious } from '../../hooks/usePrevious';
|
|
12
12
|
import { CATEGORYSELECTOR_KEYBOARD_KEYS_SUPPORTED, defaultCategories, KeyboardKeys } from '../../util/constants';
|
|
13
|
+
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
13
14
|
import { messages } from '../i18n';
|
|
14
15
|
import { CategoryDescriptionMap, CategoryDescriptionMapNew } from './categories';
|
|
15
16
|
import { categorySelectorCategoryTestId } from './categorySelectorCategoryTestId';
|
|
16
17
|
import { RENDER_EMOJI_PICKER_LIST_TESTID } from './EmojiPickerList';
|
|
17
18
|
import { sortCategories } from './sortCategories';
|
|
18
19
|
import { sortCategoriesNew } from './sortCategoriesNew';
|
|
19
|
-
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
20
20
|
const isEmojiPickerInitialFocusFixEnabled = () => {
|
|
21
21
|
if (!FeatureGates.initializeCompleted()) {
|
|
22
22
|
return false;
|
|
@@ -6,12 +6,12 @@ import { useCallback, useEffect, useMemo, useRef, useState, createRef, memo } fr
|
|
|
6
6
|
import { unstable_batchedUpdates as batchedUpdates } from 'react-dom';
|
|
7
7
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
8
8
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
9
|
-
import {
|
|
9
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
10
|
import { dropTargetForExternal } from '@atlaskit/pragmatic-drag-and-drop/adapter/drop-target-for-external';
|
|
11
11
|
import { monitorForExternal } from '@atlaskit/pragmatic-drag-and-drop/adapter/monitor-for-external';
|
|
12
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
12
13
|
import { containsFiles } from '@atlaskit/pragmatic-drag-and-drop/utils/contains-files';
|
|
13
14
|
import { preventUnhandled } from '@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled';
|
|
14
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
15
|
import { getEmojiVariation } from '../../api/getEmojiVariation';
|
|
16
16
|
import { supportsUploadFeature } from '../../api/supportsUploadFeature';
|
|
17
17
|
import { useEmoji } from '../../hooks/useEmoji';
|
|
@@ -39,9 +39,9 @@ import { getToneEmoji } from '../../util/get-tone-emoji';
|
|
|
39
39
|
import { isEmojiDescription } from '../../util/is-emoji-description';
|
|
40
40
|
import { isPromise } from '../../util/is-promise';
|
|
41
41
|
import { defaultProductivityColor, getStoredProductivityColor, storeProductivityColor } from '../../util/productivity-colors';
|
|
42
|
+
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
42
43
|
import { createRecordSelectionDefault } from '../common/RecordSelectionDefault';
|
|
43
44
|
import { uploadEmoji } from '../common/UploadEmoji';
|
|
44
|
-
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
45
45
|
import { messages } from '../i18n';
|
|
46
46
|
import CategorySelector from './CategorySelector';
|
|
47
47
|
import EmojiPickerFooter from './EmojiPickerFooter';
|
|
@@ -4,10 +4,10 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import
|
|
7
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
8
8
|
import { useEmojiPickerListContext } from '../../hooks/useEmojiPickerListContext';
|
|
9
9
|
import { isTeamoji26RefreshEmojiPickerEnabledNoExposure } from '../../util/teamoji26RefreshEmojiPicker';
|
|
10
|
-
import
|
|
10
|
+
import CachingEmoji from '../common/CachingEmoji';
|
|
11
11
|
import { messages } from '../i18n';
|
|
12
12
|
const emojiItem = null;
|
|
13
13
|
const emojiPickerRowList = null;
|
|
@@ -5,8 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import { EmojiPreviewComponent } from '../common/EmojiPreviewComponent';
|
|
9
8
|
import { AddOwnEmoji } from '../common/AddEmoji';
|
|
9
|
+
import { EmojiPreviewComponent } from '../common/EmojiPreviewComponent';
|
|
10
10
|
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
11
11
|
const emojiPickerFooter = null;
|
|
12
12
|
const emojiPickerFooterWithTopShadow = null;
|
|
@@ -9,8 +9,8 @@ import { defaultEmojiPickerSize } from '../../util/constants';
|
|
|
9
9
|
import { isTeamoji26RefreshEmojiPickerEnabled } from '../../util/teamoji26RefreshEmojiPicker';
|
|
10
10
|
import LoadingEmojiComponent from '../common/LoadingEmojiComponent';
|
|
11
11
|
import { UfoErrorBoundary } from '../common/UfoErrorBoundary';
|
|
12
|
-
import { LoadingItem } from './LoadingItem';
|
|
13
12
|
import { emojiPickerLoader } from './emojiPickerLoader';
|
|
13
|
+
import { LoadingItem } from './LoadingItem';
|
|
14
14
|
const isRefreshEmojiPickerEnabled = () => {
|
|
15
15
|
return isTeamoji26RefreshEmojiPickerEnabled();
|
|
16
16
|
};
|
|
@@ -10,15 +10,15 @@ import { messages } from '../i18n';
|
|
|
10
10
|
import { CategoryDescriptionMap, CategoryDescriptionMapNew } from './categories';
|
|
11
11
|
import { CategoryHeadingItem } from './CategoryHeadingItem';
|
|
12
12
|
import CategoryTracker from './CategoryTracker';
|
|
13
|
+
import { emojiPickerHeightOffset } from './emojiPickerHeightOffset';
|
|
13
14
|
import { sizes } from './EmojiPickerSizes';
|
|
14
15
|
import EmojiPickerTabPanel from './EmojiPickerTabPanel';
|
|
15
16
|
import { EmojisRowItem } from './EmojisRowItem';
|
|
16
17
|
import { LoadingItem } from './LoadingItem';
|
|
17
18
|
import { NoResultsItem } from './NoResultsItem';
|
|
18
|
-
import { VirtualList } from './VirtualList';
|
|
19
|
-
import { emojiPickerHeightOffset } from './emojiPickerHeightOffset';
|
|
20
19
|
import { scrollToRow } from './scrollToRow';
|
|
21
20
|
import { virtualItemRenderer } from './virtualItemRenderer';
|
|
21
|
+
import { VirtualList } from './VirtualList';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Test id for wrapper Emoji Picker List div
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* EmojiPickerListSearch.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./EmojiPickerListSearch.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import SearchIcon from '@atlaskit/icon/core/search';
|
|
5
|
-
import TextField from '@atlaskit/textfield/text-field';
|
|
6
|
-
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
7
4
|
import React, { useLayoutEffect, useRef, useState } from 'react';
|
|
8
5
|
import { useIntl } from 'react-intl';
|
|
9
6
|
import { useDebouncedCallback } from 'use-debounce';
|
|
10
|
-
import { EMOJI_SEARCH_DEBOUNCE } from '../../util/constants';
|
|
11
|
-
import { messages } from '../i18n';
|
|
12
7
|
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
8
|
+
import SearchIcon from '@atlaskit/icon/core/search';
|
|
9
|
+
import TextField from '@atlaskit/textfield/text-field';
|
|
10
|
+
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
11
|
+
import { EMOJI_SEARCH_DEBOUNCE } from '../../util/constants';
|
|
13
12
|
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
13
|
+
import { messages } from '../i18n';
|
|
14
14
|
const isEmojiPickerInitialFocusFixEnabled = () => {
|
|
15
15
|
if (!FeatureGates.initializeCompleted()) {
|
|
16
16
|
return false;
|
|
@@ -3,10 +3,10 @@ import "./EmojiPickerNoResults.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
|
-
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
6
|
import { FormattedMessage } from 'react-intl';
|
|
9
7
|
import AkButton from '@atlaskit/button/standard-button';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
+
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
10
10
|
import { messages } from '../i18n';
|
|
11
11
|
import SearchNoResultDark from './assets/spot/search-no-result/SearchNoResultDark';
|
|
12
12
|
import SearchNoResultLight from './assets/spot/search-no-result/SearchNoResultLight';
|
|
@@ -3,8 +3,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import "./EmojiPickerTabPanel.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { PureComponent } from 'react';
|
|
6
|
-
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
7
6
|
import { injectIntl } from 'react-intl';
|
|
7
|
+
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
8
8
|
import { messages } from '../i18n';
|
|
9
9
|
import { RENDER_EMOJI_PICKER_LIST_TESTID } from './EmojiPickerList';
|
|
10
10
|
const emojiPickerList = null;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import AtlassianIcon from '@atlaskit/icon-lab/core/atlassian';
|
|
2
2
|
import AddIcon from '@atlaskit/icon/core/add';
|
|
3
|
+
import BasketballIcon from '@atlaskit/icon/core/basketball';
|
|
4
|
+
import CheckCircleIcon from '@atlaskit/icon/core/check-circle';
|
|
5
|
+
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
6
|
+
import EmojiIcon from '@atlaskit/icon/core/emoji';
|
|
3
7
|
import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
|
|
4
8
|
import FlagIcon from '@atlaskit/icon/core/flag';
|
|
9
|
+
import HeartIcon from '@atlaskit/icon/core/heart';
|
|
10
|
+
import LightbulbIcon from '@atlaskit/icon/core/lightbulb';
|
|
5
11
|
import TakeoutFoodIcon from '@atlaskit/icon/core/takeout-food';
|
|
6
|
-
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
7
12
|
import TreeIcon from '@atlaskit/icon/core/tree';
|
|
8
|
-
import LightbulbIcon from '@atlaskit/icon/core/lightbulb';
|
|
9
|
-
import EmojiIcon from '@atlaskit/icon/core/emoji';
|
|
10
|
-
import HeartIcon from '@atlaskit/icon/core/heart';
|
|
11
13
|
import VehicleCarIcon from '@atlaskit/icon/core/vehicle-car';
|
|
12
|
-
import CheckCircleIcon from '@atlaskit/icon/core/check-circle';
|
|
13
|
-
import AtlassianIcon from '@atlaskit/icon-lab/core/atlassian';
|
|
14
14
|
import { customCategory, userCustomTitle, customTitle } from '../../util/constants';
|
|
15
15
|
export const CategoryDescriptionMap = {
|
|
16
16
|
SEARCH: {
|
|
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PureComponent } from 'react';
|
|
4
4
|
import { flushSync } from 'react-dom';
|
|
5
|
+
|
|
5
6
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
7
|
import { v4 as uuid } from 'uuid';
|
|
7
8
|
import { EmojiCommonProvider } from '../../context/EmojiCommonProvider';
|
package/dist/es2019/element.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated Use `import EmojiPlaceholder from '@atlaskit/emoji/emoji-placeholder'` instead.
|
|
4
4
|
*/
|
|
5
|
+
|
|
5
6
|
export { default as EmojiPlaceholder } from './components/common/EmojiPlaceholder';
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated Use `import { Emoji } from '@atlaskit/emoji/emoji'` instead.
|
package/dist/es2019/index.js
CHANGED
|
@@ -10,22 +10,22 @@ import EmojiUploader from './components/uploader/EmojiUploader';
|
|
|
10
10
|
export {
|
|
11
11
|
// renaming exports to prevent breaking changes due to renaming
|
|
12
12
|
commonSelectedStyles as selected, selectOnHoverStyles as selectOnHover, emojiSprite, emojiNodeStyles as emojiNode, emojiImage, placeholder as emojiPlaceholder } from './components/common/styles';
|
|
13
|
-
import
|
|
13
|
+
import { denormaliseEmojiServiceResponse } from './api/denormaliseEmojiServiceResponse';
|
|
14
14
|
import EmojiLoader from './api/EmojiLoader';
|
|
15
15
|
import EmojiRepository from './api/EmojiRepository';
|
|
16
|
-
import
|
|
16
|
+
import EmojiResource from './api/EmojiResource';
|
|
17
|
+
import { UsageFrequencyTracker } from './api/internal/UsageFrequencyTracker';
|
|
18
|
+
import { EmojiCommonProvider } from './context/EmojiCommonProvider';
|
|
19
|
+
import { EmojiContextProvider } from './context/EmojiContextProvider';
|
|
20
|
+
import { useEmoji } from './hooks/useEmoji';
|
|
21
|
+
import { useEmojiContext } from './hooks/useEmojiContext';
|
|
17
22
|
import { recordSelectionFailedSli } from './util/analytics/recordSelectionFailedSli';
|
|
18
23
|
import { recordSelectionSucceededSli } from './util/analytics/recordSelectionSucceededSli';
|
|
19
24
|
import { ufoExperiences } from './util/analytics/ufoExperiences';
|
|
20
25
|
import { withSampling } from './util/analytics/withSampling';
|
|
26
|
+
import { customCategory, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
21
27
|
import { toEmojiId } from './util/to-emoji-id';
|
|
22
28
|
import { toOptionalEmojiId } from './util/to-optional-emoji-id';
|
|
23
|
-
import { customCategory, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
24
|
-
import { UsageFrequencyTracker } from './api/internal/UsageFrequencyTracker';
|
|
25
|
-
import { EmojiCommonProvider } from './context/EmojiCommonProvider';
|
|
26
|
-
import { EmojiContextProvider } from './context/EmojiContextProvider';
|
|
27
|
-
import { useEmoji } from './hooks/useEmoji';
|
|
28
|
-
import { useEmojiContext } from './hooks/useEmojiContext';
|
|
29
29
|
export {
|
|
30
30
|
// Classes
|
|
31
31
|
AbstractResource, Emoji, EmojiPlaceholder, EmojiLoader, EmojiPicker, EmojiUploader, EmojiResource, EmojiCommonProvider, EmojiRepository, EmojiTypeAhead, ResourcedEmoji, EmojiContextProvider,
|
package/dist/es2019/picker.js
CHANGED
package/dist/es2019/resource.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
export { AbstractResource } from '@atlaskit/util-service-support';
|
|
3
4
|
/**
|
|
4
5
|
* @deprecated Use `import { EmojiResource } from '@atlaskit/emoji/emoji-resource'` instead.
|
package/dist/es2019/typeahead.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated Use `import EmojiTypeAhead from '@atlaskit/emoji/emoji-type-ahead'` instead.
|
|
4
4
|
*/
|
|
5
|
+
|
|
5
6
|
export { default as EmojiTypeAhead } from './components/typeahead/EmojiTypeAhead';
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated Use `import EmojiTypeAheadList from '@atlaskit/emoji/emoji-type-ahead-list'` instead.
|