@atlaskit/emoji 69.6.6 → 69.7.1
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 +15 -0
- package/dist/cjs/components/common/EmojiPlaceholder.js +1 -2
- package/dist/cjs/components/common/ResourcedEmojiComponent.js +19 -1
- package/dist/cjs/components/picker/CategorySelector.compiled.css +3 -3
- package/dist/cjs/components/picker/CategorySelector.js +3 -3
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/EmojiPlaceholder.js +1 -2
- package/dist/es2019/components/common/ResourcedEmojiComponent.js +18 -1
- package/dist/es2019/components/picker/CategorySelector.compiled.css +3 -3
- package/dist/es2019/components/picker/CategorySelector.js +3 -3
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/EmojiPlaceholder.js +1 -2
- package/dist/esm/components/common/ResourcedEmojiComponent.js +19 -1
- package/dist/esm/components/picker/CategorySelector.compiled.css +3 -3
- package/dist/esm/components/picker/CategorySelector.js +3 -3
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/dist/types/components/common/ResourcedEmojiComponent.d.ts +7 -1
- package/dist/types-ts4.5/components/common/ResourcedEmojiComponent.d.ts +7 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`acf73d58208f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/acf73d58208f1) -
|
|
8
|
+
If the optimisticImageURL is provided for the emoji page title, do not swap to the media reference
|
|
9
|
+
once it is loaded
|
|
10
|
+
|
|
11
|
+
## 69.7.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`fd2d25f0335ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fd2d25f0335ae) -
|
|
16
|
+
clean up platform_reactions_placeholder_custom_background
|
|
17
|
+
|
|
3
18
|
## 69.6.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ exports.emojiPlaceholderTestId = exports.default = void 0;
|
|
|
9
9
|
require("./EmojiPlaceholder.compiled.css");
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _constants = require("../../util/constants");
|
|
14
13
|
var _styles = require("./styles");
|
|
15
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -51,7 +50,7 @@ var EmojiPlaceholder = function EmojiPlaceholder(props) {
|
|
|
51
50
|
"aria-label": shortName
|
|
52
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
53
52
|
,
|
|
54
|
-
className: (0, _runtime.ax)(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkofajl _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", [_styles.placeholder,
|
|
53
|
+
className: (0, _runtime.ax)(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkofajl _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", [_styles.placeholder, xcss].join(' ')]),
|
|
55
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
56
55
|
style: style,
|
|
57
56
|
title: showTooltip ? shortName : ''
|
|
@@ -43,6 +43,8 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
|
|
|
43
43
|
_ref$optimisticImageU = _ref.optimisticImageURL,
|
|
44
44
|
optimisticImageURL = _ref$optimisticImageU === void 0 ? undefined : _ref$optimisticImageU,
|
|
45
45
|
editorEmoji = _ref.editorEmoji,
|
|
46
|
+
_ref$pageTitleEmoji = _ref.pageTitleEmoji,
|
|
47
|
+
pageTitleEmoji = _ref$pageTitleEmoji === void 0 ? false : _ref$pageTitleEmoji,
|
|
46
48
|
placeholderXcss = _ref.placeholderXcss,
|
|
47
49
|
onEmojiLoadSuccess = _ref.onEmojiLoadSuccess,
|
|
48
50
|
onEmojiLoadFail = _ref.onEmojiLoadFail;
|
|
@@ -176,6 +178,22 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
|
|
|
176
178
|
return ResourcedEmojiComponentRenderStatesEnum.EMOJI;
|
|
177
179
|
}, [emoji, loaded, optimisticImageURL, imageLoadError]);
|
|
178
180
|
var optimisticEmojiDescription = (0, _react.useMemo)(function () {
|
|
181
|
+
// reduce blast radius by targeting page title
|
|
182
|
+
if (pageTitleEmoji && optimisticImageURL && (0, _platformFeatureFlags.fg)('platform_emoji_prevent_img_src_changing')) {
|
|
183
|
+
return {
|
|
184
|
+
id: id,
|
|
185
|
+
shortName: shortName,
|
|
186
|
+
fallback: fallback,
|
|
187
|
+
type: '',
|
|
188
|
+
category: '',
|
|
189
|
+
searchable: true,
|
|
190
|
+
representation: {
|
|
191
|
+
height: fitToHeight || _constants.defaultEmojiHeight,
|
|
192
|
+
width: fitToHeight || _constants.defaultEmojiHeight,
|
|
193
|
+
imagePath: optimisticImageURL
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
179
197
|
if (optimisticImageURL) {
|
|
180
198
|
if (emoji && ((0, _typeHelpers.isImageRepresentation)(emoji.representation) || (0, _typeHelpers.isMediaRepresentation)(emoji === null || emoji === void 0 ? void 0 : emoji.representation))) {
|
|
181
199
|
var _emoji$representation = emoji.representation,
|
|
@@ -205,7 +223,7 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
|
|
|
205
223
|
}
|
|
206
224
|
}
|
|
207
225
|
return emoji;
|
|
208
|
-
}, [emoji, optimisticImageURL, fallback, fitToHeight, id, shortName]);
|
|
226
|
+
}, [emoji, optimisticImageURL, fallback, fitToHeight, id, shortName, pageTitleEmoji]);
|
|
209
227
|
var handleOnLoadError = (0, _react.useCallback)(function (emojiId) {
|
|
210
228
|
setImageLoadError(true);
|
|
211
229
|
var reason = 'load error';
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
._i0dl1wug{flex-basis:auto}
|
|
18
18
|
._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
|
|
19
19
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
21
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
22
22
|
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
23
23
|
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
24
|
-
.
|
|
24
|
+
._30l36x5g:hover{color:var(--ds-text-selected,#1868db)}
|
|
@@ -25,9 +25,9 @@ var _EmojiPickerList = require("./EmojiPickerList");
|
|
|
25
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
26
26
|
var styles = {
|
|
27
27
|
commonCategory: "_2rko12b0 _v564h5h4 _189eidpf _bfhksm61 _ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t",
|
|
28
|
-
defaultCategory: "
|
|
29
|
-
activeCategory: "
|
|
30
|
-
disabledCategory: "
|
|
28
|
+
defaultCategory: "_syaz1rpy _30l36x5g",
|
|
29
|
+
activeCategory: "_syaz6x5g _30l36x5g",
|
|
30
|
+
disabledCategory: "_syaz1rpy"
|
|
31
31
|
};
|
|
32
32
|
var categorySelector = null;
|
|
33
33
|
var categorySelectorTablist = null;
|
|
@@ -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: "
|
|
23
|
+
packageVersion: "0.0.0-development"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import "./EmojiPlaceholder.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { defaultEmojiHeight } from '../../util/constants';
|
|
7
6
|
import { placeholder } from './styles';
|
|
8
7
|
const placeholderContainer = null;
|
|
@@ -41,7 +40,7 @@ const EmojiPlaceholder = props => {
|
|
|
41
40
|
"aria-label": shortName
|
|
42
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
43
42
|
,
|
|
44
|
-
className: ax(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkofajl _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", [placeholder,
|
|
43
|
+
className: ax(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkofajl _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", [placeholder, xcss].join(' ')]),
|
|
45
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
46
45
|
style: style,
|
|
47
46
|
title: showTooltip ? shortName : ''
|
|
@@ -23,6 +23,7 @@ export const ResourcedEmojiComponent = ({
|
|
|
23
23
|
optimistic = false,
|
|
24
24
|
optimisticImageURL = undefined,
|
|
25
25
|
editorEmoji,
|
|
26
|
+
pageTitleEmoji = false,
|
|
26
27
|
placeholderXcss,
|
|
27
28
|
onEmojiLoadSuccess,
|
|
28
29
|
onEmojiLoadFail
|
|
@@ -129,6 +130,22 @@ export const ResourcedEmojiComponent = ({
|
|
|
129
130
|
return ResourcedEmojiComponentRenderStatesEnum.EMOJI;
|
|
130
131
|
}, [emoji, loaded, optimisticImageURL, imageLoadError]);
|
|
131
132
|
const optimisticEmojiDescription = useMemo(() => {
|
|
133
|
+
// reduce blast radius by targeting page title
|
|
134
|
+
if (pageTitleEmoji && optimisticImageURL && fg('platform_emoji_prevent_img_src_changing')) {
|
|
135
|
+
return {
|
|
136
|
+
id,
|
|
137
|
+
shortName,
|
|
138
|
+
fallback,
|
|
139
|
+
type: '',
|
|
140
|
+
category: '',
|
|
141
|
+
searchable: true,
|
|
142
|
+
representation: {
|
|
143
|
+
height: fitToHeight || defaultEmojiHeight,
|
|
144
|
+
width: fitToHeight || defaultEmojiHeight,
|
|
145
|
+
imagePath: optimisticImageURL
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
132
149
|
if (optimisticImageURL) {
|
|
133
150
|
if (emoji && (isImageRepresentation(emoji.representation) || isMediaRepresentation(emoji === null || emoji === void 0 ? void 0 : emoji.representation))) {
|
|
134
151
|
const {
|
|
@@ -160,7 +177,7 @@ export const ResourcedEmojiComponent = ({
|
|
|
160
177
|
}
|
|
161
178
|
}
|
|
162
179
|
return emoji;
|
|
163
|
-
}, [emoji, optimisticImageURL, fallback, fitToHeight, id, shortName]);
|
|
180
|
+
}, [emoji, optimisticImageURL, fallback, fitToHeight, id, shortName, pageTitleEmoji]);
|
|
164
181
|
const handleOnLoadError = useCallback(emojiId => {
|
|
165
182
|
setImageLoadError(true);
|
|
166
183
|
const reason = 'load error';
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
._i0dl1wug{flex-basis:auto}
|
|
18
18
|
._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
|
|
19
19
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
21
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
22
22
|
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
23
23
|
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
24
|
-
.
|
|
24
|
+
._30l36x5g:hover{color:var(--ds-text-selected,#1868db)}
|
|
@@ -15,9 +15,9 @@ import { usePrevious } from '../../hooks/usePrevious';
|
|
|
15
15
|
import { RENDER_EMOJI_PICKER_LIST_TESTID } from './EmojiPickerList';
|
|
16
16
|
const styles = {
|
|
17
17
|
commonCategory: "_2rko12b0 _v564h5h4 _189eidpf _bfhksm61 _ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t",
|
|
18
|
-
defaultCategory: "
|
|
19
|
-
activeCategory: "
|
|
20
|
-
disabledCategory: "
|
|
18
|
+
defaultCategory: "_syaz1rpy _30l36x5g",
|
|
19
|
+
activeCategory: "_syaz6x5g _30l36x5g",
|
|
20
|
+
disabledCategory: "_syaz1rpy"
|
|
21
21
|
};
|
|
22
22
|
const categorySelector = null;
|
|
23
23
|
const categorySelectorTablist = null;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import "./EmojiPlaceholder.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { defaultEmojiHeight } from '../../util/constants';
|
|
7
6
|
import { placeholder } from './styles';
|
|
8
7
|
var placeholderContainer = null;
|
|
@@ -43,7 +42,7 @@ var EmojiPlaceholder = function EmojiPlaceholder(props) {
|
|
|
43
42
|
"aria-label": shortName
|
|
44
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
45
44
|
,
|
|
46
|
-
className: ax(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkofajl _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", [placeholder,
|
|
45
|
+
className: ax(["_19pk1n1a _2hwxidpf _otyr1n1a _18u0idpf _2rkofajl _1reo15vq _18m915vq _kqswh2mm _1e0c1o8l _bfhkttw1 _s7n4nkob _o5721q9c _y3gn1h6o", [placeholder, xcss].join(' ')]),
|
|
47
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
48
47
|
style: style,
|
|
49
48
|
title: showTooltip ? shortName : ''
|
|
@@ -34,6 +34,8 @@ export var ResourcedEmojiComponent = function ResourcedEmojiComponent(_ref) {
|
|
|
34
34
|
_ref$optimisticImageU = _ref.optimisticImageURL,
|
|
35
35
|
optimisticImageURL = _ref$optimisticImageU === void 0 ? undefined : _ref$optimisticImageU,
|
|
36
36
|
editorEmoji = _ref.editorEmoji,
|
|
37
|
+
_ref$pageTitleEmoji = _ref.pageTitleEmoji,
|
|
38
|
+
pageTitleEmoji = _ref$pageTitleEmoji === void 0 ? false : _ref$pageTitleEmoji,
|
|
37
39
|
placeholderXcss = _ref.placeholderXcss,
|
|
38
40
|
onEmojiLoadSuccess = _ref.onEmojiLoadSuccess,
|
|
39
41
|
onEmojiLoadFail = _ref.onEmojiLoadFail;
|
|
@@ -167,6 +169,22 @@ export var ResourcedEmojiComponent = function ResourcedEmojiComponent(_ref) {
|
|
|
167
169
|
return ResourcedEmojiComponentRenderStatesEnum.EMOJI;
|
|
168
170
|
}, [emoji, loaded, optimisticImageURL, imageLoadError]);
|
|
169
171
|
var optimisticEmojiDescription = useMemo(function () {
|
|
172
|
+
// reduce blast radius by targeting page title
|
|
173
|
+
if (pageTitleEmoji && optimisticImageURL && fg('platform_emoji_prevent_img_src_changing')) {
|
|
174
|
+
return {
|
|
175
|
+
id: id,
|
|
176
|
+
shortName: shortName,
|
|
177
|
+
fallback: fallback,
|
|
178
|
+
type: '',
|
|
179
|
+
category: '',
|
|
180
|
+
searchable: true,
|
|
181
|
+
representation: {
|
|
182
|
+
height: fitToHeight || defaultEmojiHeight,
|
|
183
|
+
width: fitToHeight || defaultEmojiHeight,
|
|
184
|
+
imagePath: optimisticImageURL
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
}
|
|
170
188
|
if (optimisticImageURL) {
|
|
171
189
|
if (emoji && (isImageRepresentation(emoji.representation) || isMediaRepresentation(emoji === null || emoji === void 0 ? void 0 : emoji.representation))) {
|
|
172
190
|
var _emoji$representation = emoji.representation,
|
|
@@ -196,7 +214,7 @@ export var ResourcedEmojiComponent = function ResourcedEmojiComponent(_ref) {
|
|
|
196
214
|
}
|
|
197
215
|
}
|
|
198
216
|
return emoji;
|
|
199
|
-
}, [emoji, optimisticImageURL, fallback, fitToHeight, id, shortName]);
|
|
217
|
+
}, [emoji, optimisticImageURL, fallback, fitToHeight, id, shortName, pageTitleEmoji]);
|
|
200
218
|
var handleOnLoadError = useCallback(function (emojiId) {
|
|
201
219
|
setImageLoadError(true);
|
|
202
220
|
var reason = 'load error';
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
._i0dl1wug{flex-basis:auto}
|
|
18
18
|
._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
|
|
19
19
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
21
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
22
22
|
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
23
23
|
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
24
|
-
.
|
|
24
|
+
._30l36x5g:hover{color:var(--ds-text-selected,#1868db)}
|
|
@@ -16,9 +16,9 @@ import { usePrevious } from '../../hooks/usePrevious';
|
|
|
16
16
|
import { RENDER_EMOJI_PICKER_LIST_TESTID } from './EmojiPickerList';
|
|
17
17
|
var styles = {
|
|
18
18
|
commonCategory: "_2rko12b0 _v564h5h4 _189eidpf _bfhksm61 _ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t",
|
|
19
|
-
defaultCategory: "
|
|
20
|
-
activeCategory: "
|
|
21
|
-
disabledCategory: "
|
|
19
|
+
defaultCategory: "_syaz1rpy _30l36x5g",
|
|
20
|
+
activeCategory: "_syaz6x5g _30l36x5g",
|
|
21
|
+
disabledCategory: "_syaz1rpy"
|
|
22
22
|
};
|
|
23
23
|
var categorySelector = null;
|
|
24
24
|
var categorySelectorTablist = null;
|
|
@@ -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: "
|
|
16
|
+
packageVersion: "0.0.0-development"
|
|
17
17
|
}, attributes)
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -40,6 +40,12 @@ export interface BaseResourcedEmojiProps {
|
|
|
40
40
|
* Defaults to `undefined`.
|
|
41
41
|
*/
|
|
42
42
|
optimisticImageURL?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates that this emoji is being rendered in a page title context.
|
|
45
|
+
* This is used to adjust certain behaviors to reduce TTVC issues.
|
|
46
|
+
* Defaults to `false`.
|
|
47
|
+
*/
|
|
48
|
+
pageTitleEmoji?: boolean;
|
|
43
49
|
/**
|
|
44
50
|
* allows custom styling to the placeholder component while the emoji is loading.
|
|
45
51
|
*/
|
|
@@ -64,5 +70,5 @@ export interface Props extends BaseResourcedEmojiProps {
|
|
|
64
70
|
*/
|
|
65
71
|
onEmojiLoadSuccess?: EmojiLoadSuccessCallback;
|
|
66
72
|
}
|
|
67
|
-
export declare const ResourcedEmojiComponent: ({ emojiProvider, emojiId, showTooltip, customFallback, fitToHeight, optimistic, optimisticImageURL, editorEmoji, placeholderXcss, onEmojiLoadSuccess, onEmojiLoadFail, }: Props) => React.JSX.Element;
|
|
73
|
+
export declare const ResourcedEmojiComponent: ({ emojiProvider, emojiId, showTooltip, customFallback, fitToHeight, optimistic, optimisticImageURL, editorEmoji, pageTitleEmoji, placeholderXcss, onEmojiLoadSuccess, onEmojiLoadFail, }: Props) => React.JSX.Element;
|
|
68
74
|
export default ResourcedEmojiComponent;
|
|
@@ -40,6 +40,12 @@ export interface BaseResourcedEmojiProps {
|
|
|
40
40
|
* Defaults to `undefined`.
|
|
41
41
|
*/
|
|
42
42
|
optimisticImageURL?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates that this emoji is being rendered in a page title context.
|
|
45
|
+
* This is used to adjust certain behaviors to reduce TTVC issues.
|
|
46
|
+
* Defaults to `false`.
|
|
47
|
+
*/
|
|
48
|
+
pageTitleEmoji?: boolean;
|
|
43
49
|
/**
|
|
44
50
|
* allows custom styling to the placeholder component while the emoji is loading.
|
|
45
51
|
*/
|
|
@@ -64,5 +70,5 @@ export interface Props extends BaseResourcedEmojiProps {
|
|
|
64
70
|
*/
|
|
65
71
|
onEmojiLoadSuccess?: EmojiLoadSuccessCallback;
|
|
66
72
|
}
|
|
67
|
-
export declare const ResourcedEmojiComponent: ({ emojiProvider, emojiId, showTooltip, customFallback, fitToHeight, optimistic, optimisticImageURL, editorEmoji, placeholderXcss, onEmojiLoadSuccess, onEmojiLoadFail, }: Props) => React.JSX.Element;
|
|
73
|
+
export declare const ResourcedEmojiComponent: ({ emojiProvider, emojiId, showTooltip, customFallback, fitToHeight, optimistic, optimisticImageURL, editorEmoji, pageTitleEmoji, placeholderXcss, onEmojiLoadSuccess, onEmojiLoadFail, }: Props) => React.JSX.Element;
|
|
68
74
|
export default ResourcedEmojiComponent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.
|
|
3
|
+
"version": "69.7.1",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/css": "^0.15.0",
|
|
41
41
|
"@atlaskit/heading": "^5.2.0",
|
|
42
42
|
"@atlaskit/icon": "^28.5.0",
|
|
43
|
-
"@atlaskit/media-client": "^35.
|
|
43
|
+
"@atlaskit/media-client": "^35.6.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/spinner": "^19.0.0",
|
|
50
50
|
"@atlaskit/textfield": "^8.0.0",
|
|
51
51
|
"@atlaskit/theme": "^21.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^13.34.0",
|
|
53
53
|
"@atlaskit/tokens": "^8.0.0",
|
|
54
54
|
"@atlaskit/tooltip": "^20.8.0",
|
|
55
55
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -118,14 +118,14 @@
|
|
|
118
118
|
"platform_index_emoji_just_in_time": {
|
|
119
119
|
"type": "boolean"
|
|
120
120
|
},
|
|
121
|
-
"platform_reactions_placeholder_custom_background": {
|
|
122
|
-
"type": "boolean"
|
|
123
|
-
},
|
|
124
121
|
"platform_emoji_ssr_width_auto_allowed": {
|
|
125
122
|
"type": "boolean"
|
|
126
123
|
},
|
|
127
124
|
"platform_emoji_width_auto_fittoheight": {
|
|
128
125
|
"type": "boolean"
|
|
126
|
+
},
|
|
127
|
+
"platform_emoji_prevent_img_src_changing": {
|
|
128
|
+
"type": "boolean"
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"scripts": {
|