@atlaskit/emoji 69.3.13 → 69.4.0
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 +16 -0
- package/admin/package.json +1 -1
- package/afm-passionfruit/tsconfig.json +84 -0
- package/afm-volt/tsconfig.json +7 -1
- package/dist/cjs/components/common/ToolTipContentWithKeymap.compiled.css +1 -1
- package/dist/cjs/components/common/ToolTipContentWithKeymap.js +1 -1
- package/dist/cjs/components/picker/EmojiPickerComponent.js +5 -0
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/ToolTipContentWithKeymap.compiled.css +1 -1
- package/dist/es2019/components/common/ToolTipContentWithKeymap.js +1 -1
- package/dist/es2019/components/picker/EmojiPickerComponent.js +5 -0
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/ToolTipContentWithKeymap.compiled.css +1 -1
- package/dist/esm/components/common/ToolTipContentWithKeymap.js +1 -1
- package/dist/esm/components/picker/EmojiPickerComponent.js +5 -0
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/dist/types/components/common/DeleteButton.d.ts +0 -1
- package/dist/types/components/common/Emoji.d.ts +1 -1
- package/dist/types/components/common/EmojiActions.d.ts +0 -1
- package/dist/types/components/common/EmojiDeletePreview.d.ts +0 -1
- package/dist/types/components/common/EmojiErrorMessage.d.ts +0 -1
- package/dist/types/components/common/EmojiPlaceholder.d.ts +0 -1
- package/dist/types/components/common/EmojiPreviewComponent.d.ts +0 -1
- package/dist/types/components/common/EmojiUploadPicker.d.ts +0 -1
- package/dist/types/components/common/EmojiUploadPreview.d.ts +0 -1
- package/dist/types/components/common/RecordSelectionDefault.d.ts +1 -1
- package/dist/types/components/common/RetryableButton.d.ts +0 -1
- package/dist/types/components/common/TonePreviewButton.d.ts +0 -1
- package/dist/types/components/common/ToneSelector.d.ts +0 -1
- package/dist/types/components/common/ToolTipContentWithKeymap.d.ts +2 -2
- package/dist/types/components/picker/CategorySelector.d.ts +0 -1
- package/dist/types/components/picker/EmojiPickerCategoryHeading.d.ts +0 -1
- package/dist/types/components/picker/EmojiPickerComponent.d.ts +0 -1
- package/dist/types/components/picker/EmojiPickerEmojiRow.d.ts +0 -1
- package/dist/types/components/picker/EmojiPickerFooter.d.ts +0 -1
- package/dist/types/components/picker/EmojiPickerListSearch.d.ts +0 -1
- package/dist/types/components/typeahead/EmojiTypeAheadSpinner.d.ts +0 -1
- package/dist/types/components/uploader/EmojiUploadComponent.d.ts +0 -1
- package/dist/types/context/EmojiContext.d.ts +0 -1
- package/dist/types/hooks/useInView.d.ts +1 -1
- package/dist/types/util/type-helpers.d.ts +2 -1
- package/dist/types-ts4.5/components/common/DeleteButton.d.ts +0 -1
- package/dist/types-ts4.5/components/common/Emoji.d.ts +1 -1
- package/dist/types-ts4.5/components/common/EmojiActions.d.ts +0 -1
- package/dist/types-ts4.5/components/common/EmojiDeletePreview.d.ts +0 -1
- package/dist/types-ts4.5/components/common/EmojiErrorMessage.d.ts +0 -1
- package/dist/types-ts4.5/components/common/EmojiPlaceholder.d.ts +0 -1
- package/dist/types-ts4.5/components/common/EmojiPreviewComponent.d.ts +0 -1
- package/dist/types-ts4.5/components/common/EmojiUploadPicker.d.ts +0 -1
- package/dist/types-ts4.5/components/common/EmojiUploadPreview.d.ts +0 -1
- package/dist/types-ts4.5/components/common/RecordSelectionDefault.d.ts +1 -1
- package/dist/types-ts4.5/components/common/RetryableButton.d.ts +0 -1
- package/dist/types-ts4.5/components/common/TonePreviewButton.d.ts +0 -1
- package/dist/types-ts4.5/components/common/ToneSelector.d.ts +0 -1
- package/dist/types-ts4.5/components/common/ToolTipContentWithKeymap.d.ts +2 -2
- package/dist/types-ts4.5/components/picker/CategorySelector.d.ts +0 -1
- package/dist/types-ts4.5/components/picker/EmojiPickerCategoryHeading.d.ts +0 -1
- package/dist/types-ts4.5/components/picker/EmojiPickerComponent.d.ts +0 -1
- package/dist/types-ts4.5/components/picker/EmojiPickerEmojiRow.d.ts +0 -1
- package/dist/types-ts4.5/components/picker/EmojiPickerFooter.d.ts +0 -1
- package/dist/types-ts4.5/components/picker/EmojiPickerListSearch.d.ts +0 -1
- package/dist/types-ts4.5/components/typeahead/EmojiTypeAheadSpinner.d.ts +0 -1
- package/dist/types-ts4.5/components/uploader/EmojiUploadComponent.d.ts +0 -1
- package/dist/types-ts4.5/context/EmojiContext.d.ts +0 -1
- package/dist/types-ts4.5/hooks/useInView.d.ts +1 -1
- package/dist/types-ts4.5/util/type-helpers.d.ts +2 -1
- package/element/package.json +1 -1
- package/package.json +8 -5
- package/picker/package.json +1 -1
- package/resource/package.json +1 -1
- package/typeahead/package.json +1 -1
- package/types/package.json +1 -1
- package/utils/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`36d69a7efe212`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/36d69a7efe212) -
|
|
8
|
+
[ux] add escape key support to close emoji picker component for reactions (A11y)
|
|
9
|
+
|
|
10
|
+
## 69.3.14
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#199353](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199353)
|
|
15
|
+
[`f2d4ca35574b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2d4ca35574b8) -
|
|
16
|
+
Internal changes to how border radius values are applied. No visual change.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 69.3.13
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/admin/package.json
CHANGED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.passionfruit.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../passionfruit/tsDist/@atlaskit__emoji/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/examples.*",
|
|
19
|
+
"../src/**/examples/*",
|
|
20
|
+
"../src/**/examples/**/*",
|
|
21
|
+
"../src/**/*.stories.*",
|
|
22
|
+
"../src/**/stories/*",
|
|
23
|
+
"../src/**/stories/**/*"
|
|
24
|
+
],
|
|
25
|
+
"references": [
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../analytics/analytics-next/afm-passionfruit/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/button/afm-passionfruit/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/css/afm-passionfruit/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../design-system/heading/afm-passionfruit/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/icon/afm-passionfruit/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../media/media-client/afm-passionfruit/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../media/media-client-react/afm-passionfruit/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../platform/feature-flags/afm-passionfruit/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../../platform/feature-flags-react/afm-passionfruit/tsconfig.json"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "../../../design-system/primitives/afm-passionfruit/tsconfig.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "../../../react-ufo/atlaskit/afm-passionfruit/tsconfig.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "../../../design-system/spinner/afm-passionfruit/tsconfig.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../../design-system/textfield/afm-passionfruit/tsconfig.json"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "../../../design-system/theme/afm-passionfruit/tsconfig.json"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"path": "../../../design-system/tokens/afm-passionfruit/tsconfig.json"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "../../../design-system/tooltip/afm-passionfruit/tsconfig.json"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "../../../data/ufo-external/afm-passionfruit/tsconfig.json"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "../../util-service-support/afm-passionfruit/tsconfig.json"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "../../../design-system/visually-hidden/afm-passionfruit/tsconfig.json"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
package/afm-volt/tsconfig.json
CHANGED
|
@@ -14,7 +14,13 @@
|
|
|
14
14
|
"exclude": [
|
|
15
15
|
"../src/**/__tests__/*",
|
|
16
16
|
"../src/**/*.test.*",
|
|
17
|
-
"../src/**/test.*"
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/examples.*",
|
|
19
|
+
"../src/**/examples/*",
|
|
20
|
+
"../src/**/examples/**/*",
|
|
21
|
+
"../src/**/*.stories.*",
|
|
22
|
+
"../src/**/stories/*",
|
|
23
|
+
"../src/**/stories/**/*"
|
|
18
24
|
],
|
|
19
25
|
"references": [
|
|
20
26
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkosqtm{border-radius:var(--ds-border-radius-100,3px)}._19bvv77o{padding-left:var(--ds-space-025,2px)}
|
|
3
3
|
._bfhk1v65{background-color:var(--_1kd7x7o)}
|
|
4
4
|
._ca0qidpf{padding-top:0}
|
|
5
5
|
._jqf61teg{label:tooltip-shortcut}
|
|
@@ -19,7 +19,7 @@ var ToolTipContentWithKeymap = exports.ToolTipContentWithKeymap = /*#__PURE__*/_
|
|
|
19
19
|
keymap = _ref.keymap;
|
|
20
20
|
var shortcut = shortcutOverride || keymap && (0, _keymaps.formatShortcut)(keymap);
|
|
21
21
|
return shortcut || description ? /*#__PURE__*/_react.default.createElement(_react.Fragment, null, description, shortcut && description && "\xA0", shortcut && /*#__PURE__*/_react.default.createElement("span", {
|
|
22
|
-
className: (0, _runtime.ax)(["
|
|
22
|
+
className: (0, _runtime.ax)(["_2rkosqtm _bfhk1v65 _ca0qidpf _n3tdidpf _19bvv77o _u5f3v77o _jqf61teg"]),
|
|
23
23
|
style: {
|
|
24
24
|
"--_1kd7x7o": (0, _runtime.ix)("var(--ds-background-inverse-subtle, ".concat(_colors.N400, ")"))
|
|
25
25
|
}
|
|
@@ -17,6 +17,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
17
17
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
18
|
var _reactDom = require("react-dom");
|
|
19
19
|
var _reactIntlNext = require("react-intl-next");
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _EmojiRepository = require("../../api/EmojiRepository");
|
|
21
22
|
var _EmojiResource = require("../../api/EmojiResource");
|
|
22
23
|
var _constants = require("../../util/constants");
|
|
@@ -432,6 +433,10 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
432
433
|
|
|
433
434
|
// stop all key propagation to other event listeners
|
|
434
435
|
var suppressKeyPress = function suppressKeyPress(e) {
|
|
436
|
+
// Allow escape key to propagate so parent components can handle it (behind feature gate)
|
|
437
|
+
if ((e.key === 'Escape' || e.key === 'Esc') && (0, _platformFeatureFlags.fg)('platform_emoji_picker_escape_propagation')) {
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
435
440
|
e.stopPropagation();
|
|
436
441
|
// We prevent default for enter keypresses
|
|
437
442
|
// since products like Bitbucket might have parent forms
|
|
@@ -20,7 +20,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
20
20
|
actionSubjectId: actionSubjectId,
|
|
21
21
|
attributes: _objectSpread({
|
|
22
22
|
packageName: "@atlaskit/emoji",
|
|
23
|
-
packageVersion: "69.3.
|
|
23
|
+
packageVersion: "69.3.14"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkosqtm{border-radius:var(--ds-border-radius-100,3px)}._19bvv77o{padding-left:var(--ds-space-025,2px)}
|
|
3
3
|
._bfhk17rn{background-color:var(--ds-background-inverse-subtle,#505f79)}
|
|
4
4
|
._ca0qidpf{padding-top:0}
|
|
5
5
|
._jqf61teg{label:tooltip-shortcut}
|
|
@@ -12,6 +12,6 @@ export const ToolTipContentWithKeymap = /*#__PURE__*/React.memo(({
|
|
|
12
12
|
}) => {
|
|
13
13
|
const shortcut = shortcutOverride || keymap && formatShortcut(keymap);
|
|
14
14
|
return shortcut || description ? /*#__PURE__*/React.createElement(Fragment, null, description, shortcut && description && '\u00A0', shortcut && /*#__PURE__*/React.createElement("span", {
|
|
15
|
-
className: ax(["
|
|
15
|
+
className: ax(["_2rkosqtm _bfhk17rn _ca0qidpf _n3tdidpf _19bvv77o _u5f3v77o _jqf61teg"])
|
|
16
16
|
}, shortcut)) : null;
|
|
17
17
|
});
|
|
@@ -6,6 +6,7 @@ import { useCallback, useEffect, useMemo, useRef, useState, createRef, memo } fr
|
|
|
6
6
|
import { N40 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { unstable_batchedUpdates as batchedUpdates } from 'react-dom';
|
|
8
8
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { getEmojiVariation } from '../../api/EmojiRepository';
|
|
10
11
|
import { supportsUploadFeature } from '../../api/EmojiResource';
|
|
11
12
|
import { KeyboardKeys, customCategory, defaultEmojiPickerSize, frequentCategory } from '../../util/constants';
|
|
@@ -370,6 +371,10 @@ const EmojiPickerComponent = ({
|
|
|
370
371
|
|
|
371
372
|
// stop all key propagation to other event listeners
|
|
372
373
|
const suppressKeyPress = e => {
|
|
374
|
+
// Allow escape key to propagate so parent components can handle it (behind feature gate)
|
|
375
|
+
if ((e.key === 'Escape' || e.key === 'Esc') && fg('platform_emoji_picker_escape_propagation')) {
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
373
378
|
e.stopPropagation();
|
|
374
379
|
// We prevent default for enter keypresses
|
|
375
380
|
// since products like Bitbucket might have parent forms
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkosqtm{border-radius:var(--ds-border-radius-100,3px)}._19bvv77o{padding-left:var(--ds-space-025,2px)}
|
|
3
3
|
._bfhk1v65{background-color:var(--_1kd7x7o)}
|
|
4
4
|
._ca0qidpf{padding-top:0}
|
|
5
5
|
._jqf61teg{label:tooltip-shortcut}
|
|
@@ -11,7 +11,7 @@ export var ToolTipContentWithKeymap = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
11
11
|
keymap = _ref.keymap;
|
|
12
12
|
var shortcut = shortcutOverride || keymap && formatShortcut(keymap);
|
|
13
13
|
return shortcut || description ? /*#__PURE__*/React.createElement(Fragment, null, description, shortcut && description && "\xA0", shortcut && /*#__PURE__*/React.createElement("span", {
|
|
14
|
-
className: ax(["
|
|
14
|
+
className: ax(["_2rkosqtm _bfhk1v65 _ca0qidpf _n3tdidpf _19bvv77o _u5f3v77o _jqf61teg"]),
|
|
15
15
|
style: {
|
|
16
16
|
"--_1kd7x7o": ix("var(--ds-background-inverse-subtle, ".concat(N400, ")"))
|
|
17
17
|
}
|
|
@@ -11,6 +11,7 @@ import { useCallback, useEffect, useMemo, useRef, useState, createRef, memo } fr
|
|
|
11
11
|
import { N40 } from '@atlaskit/theme/colors';
|
|
12
12
|
import { unstable_batchedUpdates as batchedUpdates } from 'react-dom';
|
|
13
13
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { getEmojiVariation } from '../../api/EmojiRepository';
|
|
15
16
|
import { supportsUploadFeature } from '../../api/EmojiResource';
|
|
16
17
|
import { KeyboardKeys, customCategory, defaultEmojiPickerSize, frequentCategory } from '../../util/constants';
|
|
@@ -423,6 +424,10 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
423
424
|
|
|
424
425
|
// stop all key propagation to other event listeners
|
|
425
426
|
var suppressKeyPress = function suppressKeyPress(e) {
|
|
427
|
+
// Allow escape key to propagate so parent components can handle it (behind feature gate)
|
|
428
|
+
if ((e.key === 'Escape' || e.key === 'Esc') && fg('platform_emoji_picker_escape_propagation')) {
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
426
431
|
e.stopPropagation();
|
|
427
432
|
// We prevent default for enter keypresses
|
|
428
433
|
// since products like Bitbucket might have parent forms
|
|
@@ -13,7 +13,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
13
13
|
actionSubjectId: actionSubjectId,
|
|
14
14
|
attributes: _objectSpread({
|
|
15
15
|
packageName: "@atlaskit/emoji",
|
|
16
|
-
packageVersion: "69.3.
|
|
16
|
+
packageVersion: "69.3.14"
|
|
17
17
|
}, attributes)
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -89,7 +89,7 @@ interface EmojiNodeWrapperProps extends Props {
|
|
|
89
89
|
type: 'sprite' | 'image';
|
|
90
90
|
}
|
|
91
91
|
export declare const EmojiNodeWrapper: React.ForwardRefExoticComponent<EmojiNodeWrapperProps & {
|
|
92
|
-
children?: React.ReactNode;
|
|
92
|
+
children?: React.ReactNode | undefined;
|
|
93
93
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
94
94
|
export declare const Emoji: (props: Props) => JSX.Element;
|
|
95
95
|
export default Emoji;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
2
|
import type { EmojiDescription, EmojiDescriptionWithVariations, Message, OnToneSelected, OnToneSelectorCancelled, ToneSelection } from '../../types';
|
|
4
3
|
import { type OnDeleteEmoji } from './EmojiDeletePreview';
|
|
@@ -9,4 +9,4 @@ import type { EmojiProvider } from '../../api/EmojiResource';
|
|
|
9
9
|
* @param onSelect the onSelect function that is explicitly configured on the Emoji component.
|
|
10
10
|
* @param fireAnalytics a function used to fire analytics events.
|
|
11
11
|
*/
|
|
12
|
-
export declare const createRecordSelectionDefault: <T>(provider: EmojiProvider, onSelect?: OnEmojiEvent<T>, fireAnalytics?: (
|
|
12
|
+
export declare const createRecordSelectionDefault: <T>(provider: EmojiProvider, onSelect?: OnEmojiEvent<T>, fireAnalytics?: (producer: EmojiInsertionAnalytic) => void) => OnEmojiEvent<T>;
|
|
@@ -6,6 +6,6 @@ import React from 'react';
|
|
|
6
6
|
import { type Keymap } from '../../util/keymaps';
|
|
7
7
|
export declare const ToolTipContentWithKeymap: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
8
8
|
description?: string | React.ReactNode;
|
|
9
|
-
keymap?: Keymap
|
|
10
|
-
shortcutOverride?: string
|
|
9
|
+
keymap?: Keymap;
|
|
10
|
+
shortcutOverride?: string;
|
|
11
11
|
}) => JSX.Element | null>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { EmojiContext as InternalEmojiContextType } from '../components/common/internal-types';
|
|
3
2
|
export type EmojiContextType = InternalEmojiContextType | null;
|
|
4
3
|
export declare const EmojiContext: import("react").Context<EmojiContextType>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type IntersectionOptions } from 'react-intersection-observer';
|
|
2
2
|
type InViewHookNotSupportedResponse = [undefined, boolean];
|
|
3
|
-
export declare const useInView: (options?: IntersectionOptions | undefined) => import("react-intersection-observer").InViewHookResponse
|
|
3
|
+
export declare const useInView: (options?: IntersectionOptions | undefined) => InViewHookNotSupportedResponse | import("react-intersection-observer").InViewHookResponse;
|
|
4
4
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { messages } from '../components/i18n';
|
|
1
2
|
import type { CategoryId } from '../components/picker/categories';
|
|
2
3
|
import type { EmojiDescription, EmojiDescriptionWithVariations, EmojiId, EmojiImageRepresentation, EmojiRepresentation, EmojiServiceRepresentation, EmojiVariationDescription, ImageRepresentation, MediaApiRepresentation, OptionalEmojiDescription, SpriteRepresentation, SpriteServiceRepresentation } from '../types';
|
|
3
4
|
export declare const isSpriteServiceRepresentation: (rep: EmojiServiceRepresentation) => rep is SpriteServiceRepresentation;
|
|
@@ -11,7 +12,7 @@ export declare const hasDataURLImage: (rep: EmojiRepresentation) => boolean;
|
|
|
11
12
|
export declare const isLoadedMediaEmoji: (emoji: EmojiDescription) => boolean;
|
|
12
13
|
export declare const isEmojiDescriptionWithVariations: (emoji: OptionalEmojiDescription) => emoji is EmojiDescriptionWithVariations;
|
|
13
14
|
export declare const isEmojiVariationDescription: (object: any) => object is EmojiVariationDescription;
|
|
14
|
-
export declare const isMessagesKey: (key: string) => key is
|
|
15
|
+
export declare const isMessagesKey: (key: string) => key is keyof typeof messages;
|
|
15
16
|
export declare const toEmojiId: (emoji: EmojiDescription) => EmojiId;
|
|
16
17
|
export declare const toOptionalEmojiId: (emoji: OptionalEmojiDescription) => EmojiId | undefined;
|
|
17
18
|
export declare const isEmojiIdEqual: (l?: EmojiId, r?: EmojiId) => boolean | undefined;
|
|
@@ -89,7 +89,7 @@ interface EmojiNodeWrapperProps extends Props {
|
|
|
89
89
|
type: 'sprite' | 'image';
|
|
90
90
|
}
|
|
91
91
|
export declare const EmojiNodeWrapper: React.ForwardRefExoticComponent<EmojiNodeWrapperProps & {
|
|
92
|
-
children?: React.ReactNode;
|
|
92
|
+
children?: React.ReactNode | undefined;
|
|
93
93
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
94
94
|
export declare const Emoji: (props: Props) => JSX.Element;
|
|
95
95
|
export default Emoji;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
2
|
import type { EmojiDescription, EmojiDescriptionWithVariations, Message, OnToneSelected, OnToneSelectorCancelled, ToneSelection } from '../../types';
|
|
4
3
|
import { type OnDeleteEmoji } from './EmojiDeletePreview';
|
|
@@ -9,4 +9,4 @@ import type { EmojiProvider } from '../../api/EmojiResource';
|
|
|
9
9
|
* @param onSelect the onSelect function that is explicitly configured on the Emoji component.
|
|
10
10
|
* @param fireAnalytics a function used to fire analytics events.
|
|
11
11
|
*/
|
|
12
|
-
export declare const createRecordSelectionDefault: <T>(provider: EmojiProvider, onSelect?: OnEmojiEvent<T>, fireAnalytics?: (
|
|
12
|
+
export declare const createRecordSelectionDefault: <T>(provider: EmojiProvider, onSelect?: OnEmojiEvent<T>, fireAnalytics?: (producer: EmojiInsertionAnalytic) => void) => OnEmojiEvent<T>;
|
|
@@ -6,6 +6,6 @@ import React from 'react';
|
|
|
6
6
|
import { type Keymap } from '../../util/keymaps';
|
|
7
7
|
export declare const ToolTipContentWithKeymap: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
8
8
|
description?: string | React.ReactNode;
|
|
9
|
-
keymap?: Keymap
|
|
10
|
-
shortcutOverride?: string
|
|
9
|
+
keymap?: Keymap;
|
|
10
|
+
shortcutOverride?: string;
|
|
11
11
|
}) => JSX.Element | null>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { EmojiContext as InternalEmojiContextType } from '../components/common/internal-types';
|
|
3
2
|
export type EmojiContextType = InternalEmojiContextType | null;
|
|
4
3
|
export declare const EmojiContext: import("react").Context<EmojiContextType>;
|
|
@@ -3,5 +3,5 @@ type InViewHookNotSupportedResponse = [
|
|
|
3
3
|
undefined,
|
|
4
4
|
boolean
|
|
5
5
|
];
|
|
6
|
-
export declare const useInView: (options?: IntersectionOptions | undefined) => import("react-intersection-observer").InViewHookResponse
|
|
6
|
+
export declare const useInView: (options?: IntersectionOptions | undefined) => InViewHookNotSupportedResponse | import("react-intersection-observer").InViewHookResponse;
|
|
7
7
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { messages } from '../components/i18n';
|
|
1
2
|
import type { CategoryId } from '../components/picker/categories';
|
|
2
3
|
import type { EmojiDescription, EmojiDescriptionWithVariations, EmojiId, EmojiImageRepresentation, EmojiRepresentation, EmojiServiceRepresentation, EmojiVariationDescription, ImageRepresentation, MediaApiRepresentation, OptionalEmojiDescription, SpriteRepresentation, SpriteServiceRepresentation } from '../types';
|
|
3
4
|
export declare const isSpriteServiceRepresentation: (rep: EmojiServiceRepresentation) => rep is SpriteServiceRepresentation;
|
|
@@ -11,7 +12,7 @@ export declare const hasDataURLImage: (rep: EmojiRepresentation) => boolean;
|
|
|
11
12
|
export declare const isLoadedMediaEmoji: (emoji: EmojiDescription) => boolean;
|
|
12
13
|
export declare const isEmojiDescriptionWithVariations: (emoji: OptionalEmojiDescription) => emoji is EmojiDescriptionWithVariations;
|
|
13
14
|
export declare const isEmojiVariationDescription: (object: any) => object is EmojiVariationDescription;
|
|
14
|
-
export declare const isMessagesKey: (key: string) => key is
|
|
15
|
+
export declare const isMessagesKey: (key: string) => key is keyof typeof messages;
|
|
15
16
|
export declare const toEmojiId: (emoji: EmojiDescription) => EmojiId;
|
|
16
17
|
export declare const toOptionalEmojiId: (emoji: OptionalEmojiDescription) => EmojiId | undefined;
|
|
17
18
|
export declare const isEmojiIdEqual: (l?: EmojiId, r?: EmojiId) => boolean | undefined;
|
package/element/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.
|
|
3
|
+
"version": "69.4.0",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
|
-
"@atlaskit/button": "^23.
|
|
38
|
+
"@atlaskit/button": "^23.4.0",
|
|
39
39
|
"@atlaskit/css": "^0.12.0",
|
|
40
40
|
"@atlaskit/heading": "^5.2.0",
|
|
41
|
-
"@atlaskit/icon": "^27.
|
|
42
|
-
"@atlaskit/media-client": "^35.
|
|
41
|
+
"@atlaskit/icon": "^27.12.0",
|
|
42
|
+
"@atlaskit/media-client": "^35.3.0",
|
|
43
43
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
46
46
|
"@atlaskit/primitives": "^14.11.0",
|
|
47
|
-
"@atlaskit/react-ufo": "^4.
|
|
47
|
+
"@atlaskit/react-ufo": "^4.3.0",
|
|
48
48
|
"@atlaskit/spinner": "^19.0.0",
|
|
49
49
|
"@atlaskit/textfield": "^8.0.0",
|
|
50
50
|
"@atlaskit/theme": "^19.0.0",
|
|
@@ -132,6 +132,9 @@
|
|
|
132
132
|
},
|
|
133
133
|
"platform_reactions_placeholder_custom_background": {
|
|
134
134
|
"type": "boolean"
|
|
135
|
+
},
|
|
136
|
+
"platform_emoji_picker_escape_propagation": {
|
|
137
|
+
"type": "boolean"
|
|
135
138
|
}
|
|
136
139
|
},
|
|
137
140
|
"scripts": {
|
package/picker/package.json
CHANGED
package/resource/package.json
CHANGED
package/typeahead/package.json
CHANGED
package/types/package.json
CHANGED