@atlaskit/emoji 72.4.10 → 72.4.11
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 +6 -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/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/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/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/package.json +3 -3
package/dist/esm/admin.js
CHANGED
|
@@ -3,7 +3,6 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import { isTestEnvironment } from '../util/is-test-environment';
|
|
4
4
|
import { denormaliseEmojiServiceResponse } from './denormaliseEmojiServiceResponse';
|
|
5
5
|
import { emojiRequest } from './emojiRequest';
|
|
6
|
-
|
|
7
6
|
/**
|
|
8
7
|
* Shared cache of in-flight/resolved emoji load promises, keyed by the request URL so that
|
|
9
8
|
* multiple loaders created for the same provider config reuse a single request instead of
|
|
@@ -6,17 +6,18 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
6
6
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
7
7
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
8
8
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
9
|
+
|
|
9
10
|
import { Search, UnorderedSearchIndex } from 'js-search';
|
|
10
11
|
import { SearchSort } from '../types';
|
|
11
12
|
import { defaultCategories, frequentCategory } from '../util/constants';
|
|
12
13
|
import { getCategoryId } from '../util/get-category-id';
|
|
13
14
|
import { isEmojiDescriptionWithVariations } from '../util/is-emoji-description-with-variations';
|
|
15
|
+
import { isTeamoji26RefreshEmojiPickerEnabled } from '../util/teamoji26RefreshEmojiPicker';
|
|
14
16
|
import { tokenizerRegex } from './EmojiRepositoryRegex';
|
|
15
17
|
import { getEmojiVariation } from './getEmojiVariation';
|
|
16
|
-
import { UsageFrequencyTracker } from './internal/UsageFrequencyTracker';
|
|
17
18
|
import { createSearchEmojiComparator } from './internal/createSearchEmojiComparator';
|
|
18
19
|
import { createUsageOnlyEmojiComparator } from './internal/createUsageOnlyEmojiComparator';
|
|
19
|
-
import {
|
|
20
|
+
import { UsageFrequencyTracker } from './internal/UsageFrequencyTracker';
|
|
20
21
|
// FS-1097 - duplicated in mentions - extract at some point into a shared library
|
|
21
22
|
var Tokenizer = /*#__PURE__*/function () {
|
|
22
23
|
function Tokenizer() {
|
|
@@ -13,6 +13,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
15
15
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
16
|
+
|
|
16
17
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
18
|
import { AbstractResource, utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
18
19
|
import { ProviderTypes } from '../types';
|
|
@@ -23,9 +24,9 @@ import { isMediaEmoji } from '../util/is-media-emoji';
|
|
|
23
24
|
import { isPromise } from '../util/is-promise';
|
|
24
25
|
import debug from '../util/logger';
|
|
25
26
|
import storageAvailable from '../util/storage-available';
|
|
27
|
+
import { isTeamoji26RefreshEmojiPickerEnabled } from '../util/teamoji26RefreshEmojiPicker';
|
|
26
28
|
import { promiseWithTimeout } from '../util/timed-promise';
|
|
27
29
|
import { toEmojiId } from '../util/to-emoji-id';
|
|
28
|
-
import { isTeamoji26RefreshEmojiPickerEnabled } from '../util/teamoji26RefreshEmojiPicker';
|
|
29
30
|
import EmojiLoader from './EmojiLoader';
|
|
30
31
|
import EmojiRepository from './EmojiRepository';
|
|
31
32
|
import SiteEmojiResource from './media/SiteEmojiResource';
|
|
@@ -3,11 +3,11 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
import DuplicateLimitedQueue from '../../util/DuplicateLimitedQueue';
|
|
7
|
-
import StoredDuplicateLimitedQueue from '../../util/StoredDuplicateLimitedQueue';
|
|
8
6
|
import { localStoragePrefix } from '../../util/constants';
|
|
7
|
+
import DuplicateLimitedQueue from '../../util/DuplicateLimitedQueue';
|
|
9
8
|
import { isEmojiVariationDescription } from '../../util/is-emoji-variation-description';
|
|
10
9
|
import storageAvailable from '../../util/storage-available';
|
|
10
|
+
import StoredDuplicateLimitedQueue from '../../util/StoredDuplicateLimitedQueue';
|
|
11
11
|
import { Gateway } from './Gateway';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -4,9 +4,8 @@ import { LRUMap } from 'lru_map';
|
|
|
4
4
|
import { convertMediaToImageEmoji } from '../../util/convert-media-to-image-emoji';
|
|
5
5
|
import { isMediaRepresentation } from '../../util/is-media-representation';
|
|
6
6
|
import debug from '../../util/logger';
|
|
7
|
-
import { maxImageCached, maxImageSize } from './MediaEmojiCache';
|
|
8
7
|
import { getRequiredRepresentation } from './getRequiredRepresentation';
|
|
9
|
-
|
|
8
|
+
import { maxImageCached, maxImageSize } from './MediaEmojiCache';
|
|
10
9
|
/**
|
|
11
10
|
* For browsers that do no cache images without equivalent headers (e.g. Firefox).
|
|
12
11
|
*
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import { utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
4
|
-
|
|
5
4
|
// expire 30 seconds early to factor in latency, slow services, etc
|
|
6
5
|
export var EXPIRES_AT_LATENCY_IN_SECONDS = 30;
|
|
7
6
|
var TokenManager = /*#__PURE__*/function () {
|
|
@@ -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 var emojiActionsTestId = 'emoji-actions';
|
|
12
12
|
export var uploadEmojiTestId = 'upload-emoji';
|
|
@@ -8,10 +8,10 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
8
8
|
import { useCallback, useState } from 'react';
|
|
9
9
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
10
10
|
import IconButton from '@atlaskit/button/icon/button';
|
|
11
|
-
import TextField from '@atlaskit/textfield/text-field';
|
|
12
11
|
import ArrowUpIcon from '@atlaskit/icon/core/arrow-up';
|
|
13
12
|
import { RovoIcon } from '@atlaskit/logo';
|
|
14
13
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
14
|
+
import TextField from '@atlaskit/textfield/text-field';
|
|
15
15
|
import { generateEmojiImage } from '../../api/ai/generateEmojiImage';
|
|
16
16
|
import { slugifyPrompt } from '../../util/ai-emoji';
|
|
17
17
|
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
|
var styles = {
|
|
12
12
|
boxWrapperStyle: "_1bsbf6fq _4t3if6fq"
|
|
13
13
|
};
|
|
@@ -6,6 +6,7 @@ import "./Emoji.compiled.css";
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import React, { useEffect, useContext, forwardRef } from 'react';
|
|
8
8
|
import { IntlContext } from 'react-intl';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
11
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
11
12
|
import { ProviderTypes, UfoEmojiTimings } from '../../types';
|
|
@@ -23,7 +24,6 @@ import { handleDelete } from './handleDelete';
|
|
|
23
24
|
import { ImageEmoji } from './ImageEmoji';
|
|
24
25
|
import { SpriteEmoji } from './SpriteEmoji';
|
|
25
26
|
import { UnicodeEmoji } from './UnicodeEmoji';
|
|
26
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
27
27
|
var emojiSpriteContainer = null;
|
|
28
28
|
var emojiImageContainer = null;
|
|
29
29
|
|
|
@@ -12,17 +12,17 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
12
12
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
import { Component } from 'react';
|
|
15
|
+
import FocusLock from 'react-focus-lock';
|
|
15
16
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
16
17
|
import AkButton from '@atlaskit/button/default/button';
|
|
17
18
|
import Heading from '@atlaskit/heading/heading';
|
|
18
19
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
19
|
-
import
|
|
20
|
+
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
20
21
|
import { messages } from '../i18n';
|
|
21
22
|
import CachingEmoji from './CachingEmoji';
|
|
22
23
|
import EmojiErrorMessage, { emojiErrorScreenreaderTestId } from './EmojiErrorMessage';
|
|
23
|
-
import RetryableButton from './RetryableButton';
|
|
24
|
-
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
25
24
|
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
25
|
+
import RetryableButton from './RetryableButton';
|
|
26
26
|
var deleteFooter = null;
|
|
27
27
|
var deletePreview = null;
|
|
28
28
|
var 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
|
var 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
|
var emojiName = null;
|
|
8
8
|
var emojiShortName = null;
|
|
9
9
|
var 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
|
var emojiButton = null;
|
|
11
11
|
var emojiRadio = {
|
|
12
12
|
default: "_tzy4idpf _kqswstnw _154i14id _1ltv14id _3y8mfajl _157z1r31 _1dzmglyw _1sqm1o36 _fh6w1y54 _1i1213zc"
|
|
@@ -6,25 +6,25 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
8
|
import { useEffect, useLayoutEffect, useState, useRef, memo, useCallback } from 'react';
|
|
9
|
+
import FocusLock from 'react-focus-lock';
|
|
9
10
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
11
|
+
import { getDocument } from '@atlaskit/browser-apis';
|
|
12
|
+
import Button from '@atlaskit/button/default/button';
|
|
12
13
|
import AkButton from '@atlaskit/button/standard-button';
|
|
14
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
15
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
17
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
14
|
-
import
|
|
18
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
19
|
+
import TextField from '@atlaskit/textfield/text-field';
|
|
15
20
|
import * as ImageUtil from '../../util/image';
|
|
16
|
-
import CreateEmojiWithRovo from './CreateEmojiWithRovo';
|
|
17
21
|
import debug from '../../util/logger';
|
|
18
22
|
import { messages } from '../i18n';
|
|
23
|
+
import CreateEmojiWithRovo from './CreateEmojiWithRovo';
|
|
19
24
|
import EmojiErrorMessage from './EmojiErrorMessage';
|
|
20
25
|
import EmojiUploadPreview from './EmojiUploadPreview';
|
|
21
26
|
import FileChooser from './FileChooser';
|
|
22
27
|
import { UploadStatus } from './internal-types';
|
|
23
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
24
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
25
|
-
import Button from '@atlaskit/button/default/button';
|
|
26
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
27
|
-
import { getDocument } from '@atlaskit/browser-apis';
|
|
28
28
|
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
29
29
|
var closeEmojiUploadButton = null;
|
|
30
30
|
var uploadAddRowNew = null;
|
|
@@ -11,10 +11,10 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
11
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import { PureComponent } from 'react';
|
|
14
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
14
15
|
import AkButton from '@atlaskit/button/standard-button';
|
|
15
16
|
import Heading from '@atlaskit/heading/heading';
|
|
16
17
|
import { Stack } from '@atlaskit/primitives/compiled';
|
|
17
|
-
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
18
18
|
import { customCategory } from '../../util/constants';
|
|
19
19
|
import { messages } from '../i18n';
|
|
20
20
|
import Emoji from './Emoji';
|
|
@@ -4,6 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useEffect, useCallback, useMemo } from 'react';
|
|
6
6
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
8
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
8
9
|
import { shouldUseAltRepresentation } from '../../api/shouldUseAltRepresentation';
|
|
9
10
|
import { useInView } from '../../hooks/useInView';
|
|
@@ -20,7 +21,6 @@ import DeleteButton from './DeleteButton';
|
|
|
20
21
|
import { EmojiNodeWrapper } from './Emoji';
|
|
21
22
|
import { handleDelete } from './handleDelete';
|
|
22
23
|
import { emojiNodeStyles, commonSelectedStyles, selectOnHoverStyles, emojiMainStyle, emojiImage, deletableEmoji } from './styles';
|
|
23
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
24
24
|
var handleImageError = function handleImageError(props, event) {
|
|
25
25
|
var emoji = props.emoji,
|
|
26
26
|
onLoadError = props.onLoadError;
|
|
@@ -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
|
var ResourcedEmoji = function ResourcedEmoji(props) {
|
|
8
8
|
var emojiId = props.emojiId,
|
|
@@ -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
|
var buttonSpinner = null;
|
|
11
11
|
export var 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 var tonePreviewTestId = 'tone-preview';
|
|
10
10
|
var emojiButton = null;
|
|
11
11
|
var hidden = null;
|
|
@@ -12,9 +12,9 @@ import { toneSelectedEvent } from '../../util/analytics/toneSelectedEvent';
|
|
|
12
12
|
import { toneSelectorOpenedEvent } from '../../util/analytics/toneSelectorOpenedEvent';
|
|
13
13
|
import { messages } from '../i18n';
|
|
14
14
|
import EmojiRadioButton from './EmojiRadioButton';
|
|
15
|
-
import { toneSelectorTestId } from './ToneSelector';
|
|
16
|
-
import { setSkinToneAriaLabelText } from './setSkinToneAriaLabelText';
|
|
17
15
|
import { isRefreshEmojiPickerEnabled } from './isRefreshEmojiPickerEnabled';
|
|
16
|
+
import { setSkinToneAriaLabelText } from './setSkinToneAriaLabelText';
|
|
17
|
+
import { toneSelectorTestId } from './ToneSelector';
|
|
18
18
|
var hidden = null;
|
|
19
19
|
var extractAllTones = function extractAllTones(emoji) {
|
|
20
20
|
if (emoji.skinVariations) {
|
|
@@ -11,13 +11,13 @@ import { Pressable } from '@atlaskit/primitives/compiled';
|
|
|
11
11
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
12
|
import { usePrevious } from '../../hooks/usePrevious';
|
|
13
13
|
import { CATEGORYSELECTOR_KEYBOARD_KEYS_SUPPORTED, defaultCategories, KeyboardKeys } from '../../util/constants';
|
|
14
|
+
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
14
15
|
import { messages } from '../i18n';
|
|
15
16
|
import { CategoryDescriptionMap, CategoryDescriptionMapNew } from './categories';
|
|
16
17
|
import { categorySelectorCategoryTestId } from './categorySelectorCategoryTestId';
|
|
17
18
|
import { RENDER_EMOJI_PICKER_LIST_TESTID } from './EmojiPickerList';
|
|
18
19
|
import { sortCategories } from './sortCategories';
|
|
19
20
|
import { sortCategoriesNew } from './sortCategoriesNew';
|
|
20
|
-
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
21
21
|
var isEmojiPickerInitialFocusFixEnabled = function isEmojiPickerInitialFocusFixEnabled() {
|
|
22
22
|
if (!FeatureGates.initializeCompleted()) {
|
|
23
23
|
return false;
|
|
@@ -13,12 +13,12 @@ import { useCallback, useEffect, useMemo, useRef, useState, createRef, memo } fr
|
|
|
13
13
|
import { unstable_batchedUpdates as batchedUpdates } from 'react-dom';
|
|
14
14
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
15
15
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
16
|
-
import {
|
|
16
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
17
|
import { dropTargetForExternal } from '@atlaskit/pragmatic-drag-and-drop/adapter/drop-target-for-external';
|
|
18
18
|
import { monitorForExternal } from '@atlaskit/pragmatic-drag-and-drop/adapter/monitor-for-external';
|
|
19
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
19
20
|
import { containsFiles } from '@atlaskit/pragmatic-drag-and-drop/utils/contains-files';
|
|
20
21
|
import { preventUnhandled } from '@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled';
|
|
21
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
22
22
|
import { getEmojiVariation } from '../../api/getEmojiVariation';
|
|
23
23
|
import { supportsUploadFeature } from '../../api/supportsUploadFeature';
|
|
24
24
|
import { useEmoji } from '../../hooks/useEmoji';
|
|
@@ -46,9 +46,9 @@ import { getToneEmoji } from '../../util/get-tone-emoji';
|
|
|
46
46
|
import { isEmojiDescription } from '../../util/is-emoji-description';
|
|
47
47
|
import { isPromise } from '../../util/is-promise';
|
|
48
48
|
import { defaultProductivityColor, getStoredProductivityColor, storeProductivityColor } from '../../util/productivity-colors';
|
|
49
|
+
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
49
50
|
import { createRecordSelectionDefault } from '../common/RecordSelectionDefault';
|
|
50
51
|
import { uploadEmoji } from '../common/UploadEmoji';
|
|
51
|
-
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
52
52
|
import { messages } from '../i18n';
|
|
53
53
|
import CategorySelector from './CategorySelector';
|
|
54
54
|
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
|
var emojiItem = null;
|
|
13
13
|
var 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
|
var emojiPickerFooter = null;
|
|
12
12
|
var emojiPickerFooterWithTopShadow = null;
|
|
@@ -18,8 +18,8 @@ import { defaultEmojiPickerSize } from '../../util/constants';
|
|
|
18
18
|
import { isTeamoji26RefreshEmojiPickerEnabled } from '../../util/teamoji26RefreshEmojiPicker';
|
|
19
19
|
import LoadingEmojiComponent from '../common/LoadingEmojiComponent';
|
|
20
20
|
import { UfoErrorBoundary } from '../common/UfoErrorBoundary';
|
|
21
|
-
import { LoadingItem } from './LoadingItem';
|
|
22
21
|
import { emojiPickerLoader } from './emojiPickerLoader';
|
|
22
|
+
import { LoadingItem } from './LoadingItem';
|
|
23
23
|
var isRefreshEmojiPickerEnabled = function isRefreshEmojiPickerEnabled() {
|
|
24
24
|
return isTeamoji26RefreshEmojiPickerEnabled();
|
|
25
25
|
};
|
|
@@ -12,15 +12,15 @@ import { messages } from '../i18n';
|
|
|
12
12
|
import { CategoryDescriptionMap, CategoryDescriptionMapNew } from './categories';
|
|
13
13
|
import { CategoryHeadingItem } from './CategoryHeadingItem';
|
|
14
14
|
import CategoryTracker from './CategoryTracker';
|
|
15
|
+
import { emojiPickerHeightOffset } from './emojiPickerHeightOffset';
|
|
15
16
|
import { sizes } from './EmojiPickerSizes';
|
|
16
17
|
import EmojiPickerTabPanel from './EmojiPickerTabPanel';
|
|
17
18
|
import { EmojisRowItem } from './EmojisRowItem';
|
|
18
19
|
import { LoadingItem } from './LoadingItem';
|
|
19
20
|
import { NoResultsItem } from './NoResultsItem';
|
|
20
|
-
import { VirtualList } from './VirtualList';
|
|
21
|
-
import { emojiPickerHeightOffset } from './emojiPickerHeightOffset';
|
|
22
21
|
import { scrollToRow as _scrollToRow } from './scrollToRow';
|
|
23
22
|
import { virtualItemRenderer } from './virtualItemRenderer';
|
|
23
|
+
import { VirtualList } from './VirtualList';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Test id for wrapper Emoji Picker List div
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./EmojiPickerListSearch.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import SearchIcon from '@atlaskit/icon/core/search';
|
|
6
|
-
import TextField from '@atlaskit/textfield/text-field';
|
|
7
|
-
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
8
5
|
import React, { useLayoutEffect, useRef, useState } from 'react';
|
|
9
6
|
import { useIntl } from 'react-intl';
|
|
10
7
|
import { useDebouncedCallback } from 'use-debounce';
|
|
11
|
-
import { EMOJI_SEARCH_DEBOUNCE } from '../../util/constants';
|
|
12
|
-
import { messages } from '../i18n';
|
|
13
8
|
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
9
|
+
import SearchIcon from '@atlaskit/icon/core/search';
|
|
10
|
+
import TextField from '@atlaskit/textfield/text-field';
|
|
11
|
+
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
12
|
+
import { EMOJI_SEARCH_DEBOUNCE } from '../../util/constants';
|
|
14
13
|
import { isRefreshEmojiPickerEnabled } from '../common/isRefreshEmojiPickerEnabled';
|
|
14
|
+
import { messages } from '../i18n';
|
|
15
15
|
var isEmojiPickerInitialFocusFixEnabled = function isEmojiPickerInitialFocusFixEnabled() {
|
|
16
16
|
if (!FeatureGates.initializeCompleted()) {
|
|
17
17
|
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';
|
|
@@ -10,8 +10,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { PureComponent } from 'react';
|
|
13
|
-
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
14
13
|
import { injectIntl } from 'react-intl';
|
|
14
|
+
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
15
15
|
import { messages } from '../i18n';
|
|
16
16
|
import { RENDER_EMOJI_PICKER_LIST_TESTID } from './EmojiPickerList';
|
|
17
17
|
var 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 var CategoryDescriptionMap = {
|
|
16
16
|
SEARCH: {
|
|
@@ -12,6 +12,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { PureComponent } from 'react';
|
|
14
14
|
import { flushSync } from 'react-dom';
|
|
15
|
+
|
|
15
16
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
16
17
|
import { v4 as uuid } from 'uuid';
|
|
17
18
|
import { EmojiCommonProvider } from '../../context/EmojiCommonProvider';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import React, { useMemo, useEffect } from 'react';
|
|
4
|
-
import { EmojiContext } from './EmojiContext';
|
|
5
4
|
import debug from '../util/logger';
|
|
5
|
+
import { EmojiContext } from './EmojiContext';
|
|
6
6
|
export var EmojiContextProvider = function EmojiContextProvider(_ref) {
|
|
7
7
|
var children = _ref.children,
|
|
8
8
|
emojiContextValue = _ref.emojiContextValue;
|
package/dist/esm/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/esm/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/esm/picker.js
CHANGED
package/dist/esm/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/esm/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.
|
|
@@ -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
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
3
4
|
export var createAndFireEventInElementsChannel = createAndFireEvent('fabric-elements');
|
|
4
5
|
/**
|