@atlaskit/emoji 69.8.0 → 69.8.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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a8330c6227ed0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8330c6227ed0) -
|
|
8
|
+
[ux] [EDITOR-2459] css behind an experiment gate to scale emoji sizes with text styles
|
|
9
|
+
|
|
3
10
|
## 69.8.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -113,12 +113,19 @@ var SpriteEmoji = exports.SpriteEmoji = function SpriteEmoji(props) {
|
|
|
113
113
|
var classes = "".concat(_styles.emojiNodeStyles, " ").concat(selected ? _styles.commonSelectedStyles : '', " ").concat(selectOnHover ? _styles.selectOnHoverStyles : '', " ").concat(className ? className : '');
|
|
114
114
|
var sizing = {};
|
|
115
115
|
if (fitToHeight) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
116
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_lovability_emoji_scaling', 'isEnabled', true)) {
|
|
117
|
+
sizing = {
|
|
118
|
+
minHeight: "".concat(fitToHeight, "px"),
|
|
119
|
+
minWidth: "".concat(fitToHeight, "px")
|
|
120
|
+
};
|
|
121
|
+
} else {
|
|
122
|
+
sizing = {
|
|
123
|
+
width: "".concat(fitToHeight, "px"),
|
|
124
|
+
height: "".concat(fitToHeight, "px"),
|
|
125
|
+
minHeight: "".concat(fitToHeight, "px"),
|
|
126
|
+
minWidth: "".concat(fitToHeight, "px")
|
|
127
|
+
};
|
|
128
|
+
}
|
|
122
129
|
}
|
|
123
130
|
var xPositionInPercent = 100 / (sprite.column - 1) * (representation.xIndex - 0);
|
|
124
131
|
var yPositionInPercent = 100 / (sprite.row - 1) * (representation.yIndex - 0);
|
|
@@ -112,12 +112,19 @@ export const SpriteEmoji = props => {
|
|
|
112
112
|
const classes = `${emojiNodeStyles} ${selected ? commonSelectedStyles : ''} ${selectOnHover ? selectOnHoverStyles : ''} ${className ? className : ''}`;
|
|
113
113
|
let sizing = {};
|
|
114
114
|
if (fitToHeight) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
115
|
+
if (expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true)) {
|
|
116
|
+
sizing = {
|
|
117
|
+
minHeight: `${fitToHeight}px`,
|
|
118
|
+
minWidth: `${fitToHeight}px`
|
|
119
|
+
};
|
|
120
|
+
} else {
|
|
121
|
+
sizing = {
|
|
122
|
+
width: `${fitToHeight}px`,
|
|
123
|
+
height: `${fitToHeight}px`,
|
|
124
|
+
minHeight: `${fitToHeight}px`,
|
|
125
|
+
minWidth: `${fitToHeight}px`
|
|
126
|
+
};
|
|
127
|
+
}
|
|
121
128
|
}
|
|
122
129
|
const xPositionInPercent = 100 / (sprite.column - 1) * (representation.xIndex - 0);
|
|
123
130
|
const yPositionInPercent = 100 / (sprite.row - 1) * (representation.yIndex - 0);
|
|
@@ -104,12 +104,19 @@ export var SpriteEmoji = function SpriteEmoji(props) {
|
|
|
104
104
|
var classes = "".concat(emojiNodeStyles, " ").concat(selected ? commonSelectedStyles : '', " ").concat(selectOnHover ? selectOnHoverStyles : '', " ").concat(className ? className : '');
|
|
105
105
|
var sizing = {};
|
|
106
106
|
if (fitToHeight) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
107
|
+
if (expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true)) {
|
|
108
|
+
sizing = {
|
|
109
|
+
minHeight: "".concat(fitToHeight, "px"),
|
|
110
|
+
minWidth: "".concat(fitToHeight, "px")
|
|
111
|
+
};
|
|
112
|
+
} else {
|
|
113
|
+
sizing = {
|
|
114
|
+
width: "".concat(fitToHeight, "px"),
|
|
115
|
+
height: "".concat(fitToHeight, "px"),
|
|
116
|
+
minHeight: "".concat(fitToHeight, "px"),
|
|
117
|
+
minWidth: "".concat(fitToHeight, "px")
|
|
118
|
+
};
|
|
119
|
+
}
|
|
113
120
|
}
|
|
114
121
|
var xPositionInPercent = 100 / (sprite.column - 1) * (representation.xIndex - 0);
|
|
115
122
|
var yPositionInPercent = 100 / (sprite.row - 1) * (representation.yIndex - 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.8.
|
|
3
|
+
"version": "69.8.1",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@atlaskit/primitives": "^16.1.0",
|
|
48
48
|
"@atlaskit/react-ufo": "^4.14.0",
|
|
49
49
|
"@atlaskit/spinner": "^19.0.0",
|
|
50
|
-
"@atlaskit/textfield": "^8.
|
|
50
|
+
"@atlaskit/textfield": "^8.1.0",
|
|
51
51
|
"@atlaskit/theme": "^21.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^13.38.0",
|
|
53
53
|
"@atlaskit/tokens": "^8.0.0",
|
|
54
54
|
"@atlaskit/tooltip": "^20.8.0",
|
|
55
55
|
"@atlaskit/ufo": "^0.4.0",
|