@atlaskit/emoji 69.10.36 → 69.10.37
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 +9 -0
- package/dist/cjs/components/common/Emoji.js +1 -3
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/Emoji.js +1 -3
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/Emoji.js +1 -3
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.10.37
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`da938a43a7aac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da938a43a7aac) -
|
|
8
|
+
Clean up feature gate platform_emoji_ssr_width_auto_allowed, permanently enabling auto width
|
|
9
|
+
during SSR
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 69.10.36
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -28,9 +28,7 @@ var _browserSupport = _interopRequireDefault(require("../../util/browser-support
|
|
|
28
28
|
var _useInView3 = require("../../hooks/useInView");
|
|
29
29
|
var _ufoExperiences = require("../../util/analytics/ufoExperiences");
|
|
30
30
|
var _DeletableEmojiTooltipContent = require("./DeletableEmojiTooltipContent");
|
|
31
|
-
var _isSsr = require("../../util/is-ssr");
|
|
32
31
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
33
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
34
32
|
var _excluded = ["emoji", "fitToHeight", "selected", "selectOnHover", "className", "showTooltip", "showDelete", "shouldBeInteractive", "tabIndex", "onSelected", "onMouseMove", "onFocus", "onDelete", "onLoadError", "onLoadSuccess", "disableLazyLoad", "autoWidth", "children", "type", "editorEmoji"];
|
|
35
33
|
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); }
|
|
36
34
|
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; }
|
|
@@ -183,7 +181,7 @@ var ImageEmoji = exports.ImageEmoji = function ImageEmoji(props) {
|
|
|
183
181
|
}
|
|
184
182
|
var sizing = {};
|
|
185
183
|
if (fitToHeight && width && height) {
|
|
186
|
-
var sizingWidth = autoWidth
|
|
184
|
+
var sizingWidth = autoWidth ? 'auto' : fitToHeight / height * width;
|
|
187
185
|
// Presize image, to prevent reflow due to size changes after loading
|
|
188
186
|
sizing = {
|
|
189
187
|
width: sizingWidth,
|
|
@@ -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.10.
|
|
23
|
+
packageVersion: "69.10.36"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -17,9 +17,7 @@ import browserSupport from '../../util/browser-support';
|
|
|
17
17
|
import { useInView } from '../../hooks/useInView';
|
|
18
18
|
import { hasUfoMarked } from '../../util/analytics/ufoExperiences';
|
|
19
19
|
import { DeletableEmojiTooltipContent, DeletableEmojiTooltipContentForScreenReader } from './DeletableEmojiTooltipContent';
|
|
20
|
-
import { isSSR } from '../../util/is-ssr';
|
|
21
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
21
|
const emojiSpriteContainer = null;
|
|
24
22
|
const emojiImageContainer = null;
|
|
25
23
|
const handleMouseDown = (props, event) => {
|
|
@@ -180,7 +178,7 @@ export const ImageEmoji = props => {
|
|
|
180
178
|
}
|
|
181
179
|
let sizing = {};
|
|
182
180
|
if (fitToHeight && width && height) {
|
|
183
|
-
const sizingWidth = autoWidth
|
|
181
|
+
const sizingWidth = autoWidth ? 'auto' : fitToHeight / height * width;
|
|
184
182
|
// Presize image, to prevent reflow due to size changes after loading
|
|
185
183
|
sizing = {
|
|
186
184
|
width: sizingWidth,
|
|
@@ -23,9 +23,7 @@ import browserSupport from '../../util/browser-support';
|
|
|
23
23
|
import { useInView } from '../../hooks/useInView';
|
|
24
24
|
import { hasUfoMarked } from '../../util/analytics/ufoExperiences';
|
|
25
25
|
import { DeletableEmojiTooltipContent, DeletableEmojiTooltipContentForScreenReader } from './DeletableEmojiTooltipContent';
|
|
26
|
-
import { isSSR } from '../../util/is-ssr';
|
|
27
26
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
28
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
29
27
|
var emojiSpriteContainer = null;
|
|
30
28
|
var emojiImageContainer = null;
|
|
31
29
|
var handleMouseDown = function handleMouseDown(props, event) {
|
|
@@ -174,7 +172,7 @@ export var ImageEmoji = function ImageEmoji(props) {
|
|
|
174
172
|
}
|
|
175
173
|
var sizing = {};
|
|
176
174
|
if (fitToHeight && width && height) {
|
|
177
|
-
var sizingWidth = autoWidth
|
|
175
|
+
var sizingWidth = autoWidth ? 'auto' : fitToHeight / height * width;
|
|
178
176
|
// Presize image, to prevent reflow due to size changes after loading
|
|
179
177
|
sizing = {
|
|
180
178
|
width: sizingWidth,
|
|
@@ -14,7 +14,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
14
14
|
actionSubjectId: actionSubjectId,
|
|
15
15
|
attributes: _objectSpread({
|
|
16
16
|
packageName: "@atlaskit/emoji",
|
|
17
|
-
packageVersion: "69.10.
|
|
17
|
+
packageVersion: "69.10.36"
|
|
18
18
|
}, attributes)
|
|
19
19
|
};
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.10.
|
|
3
|
+
"version": "69.10.37",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/spinner": "^19.0.0",
|
|
51
51
|
"@atlaskit/textfield": "^8.2.0",
|
|
52
52
|
"@atlaskit/theme": "^22.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^40.0.0",
|
|
54
54
|
"@atlaskit/tokens": "^11.1.0",
|
|
55
55
|
"@atlaskit/tooltip": "^20.14.0",
|
|
56
56
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -119,9 +119,6 @@
|
|
|
119
119
|
"platform_index_emoji_just_in_time": {
|
|
120
120
|
"type": "boolean"
|
|
121
121
|
},
|
|
122
|
-
"platform_emoji_ssr_width_auto_allowed": {
|
|
123
|
-
"type": "boolean"
|
|
124
|
-
},
|
|
125
122
|
"platform_emoji_prevent_img_src_changing": {
|
|
126
123
|
"type": "boolean"
|
|
127
124
|
},
|