@atlaskit/emoji 69.7.2 → 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 +14 -0
- package/dist/cjs/components/common/Emoji.js +13 -6
- package/dist/cjs/index.js +54 -0
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/cjs/util/constants.js +10 -1
- package/dist/es2019/components/common/Emoji.js +13 -6
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/es2019/util/constants.js +9 -0
- package/dist/esm/components/common/Emoji.js +13 -6
- package/dist/esm/index.js +2 -2
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/dist/esm/util/constants.js +9 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/util/constants.d.ts +9 -0
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/util/constants.d.ts +9 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
10
|
+
## 69.8.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`a8137975c5ecb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8137975c5ecb) -
|
|
15
|
+
[ux] [EDITOR-2459] css behind an experiment gate to scale emoji sizes with text styles
|
|
16
|
+
|
|
3
17
|
## 69.7.2
|
|
4
18
|
|
|
5
19
|
### Patch 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);
|
package/dist/cjs/index.js
CHANGED
|
@@ -114,6 +114,12 @@ Object.defineProperty(exports, "customCategory", {
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
exports.default = void 0;
|
|
117
|
+
Object.defineProperty(exports, "defaultDenseEmojiHeight", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function get() {
|
|
120
|
+
return _constants.defaultDenseEmojiHeight;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
117
123
|
Object.defineProperty(exports, "defaultEmojiHeight", {
|
|
118
124
|
enumerable: true,
|
|
119
125
|
get: function get() {
|
|
@@ -126,6 +132,30 @@ Object.defineProperty(exports, "denormaliseEmojiServiceResponse", {
|
|
|
126
132
|
return _EmojiUtils.denormaliseEmojiServiceResponse;
|
|
127
133
|
}
|
|
128
134
|
});
|
|
135
|
+
Object.defineProperty(exports, "denseEmojiHeightH1", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function get() {
|
|
138
|
+
return _constants.denseEmojiHeightH1;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(exports, "denseEmojiHeightH2", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function get() {
|
|
144
|
+
return _constants.denseEmojiHeightH2;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "denseEmojiHeightH3", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function get() {
|
|
150
|
+
return _constants.denseEmojiHeightH3;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, "denseEmojiHeightH4", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function get() {
|
|
156
|
+
return _constants.denseEmojiHeightH4;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
129
159
|
Object.defineProperty(exports, "emojiImage", {
|
|
130
160
|
enumerable: true,
|
|
131
161
|
get: function get() {
|
|
@@ -180,6 +210,30 @@ Object.defineProperty(exports, "recordSelectionSucceededSli", {
|
|
|
180
210
|
return _analytics.recordSelectionSucceededSli;
|
|
181
211
|
}
|
|
182
212
|
});
|
|
213
|
+
Object.defineProperty(exports, "scaledEmojiHeightH1", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function get() {
|
|
216
|
+
return _constants.scaledEmojiHeightH1;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(exports, "scaledEmojiHeightH2", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function get() {
|
|
222
|
+
return _constants.scaledEmojiHeightH2;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "scaledEmojiHeightH3", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function get() {
|
|
228
|
+
return _constants.scaledEmojiHeightH3;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(exports, "scaledEmojiHeightH4", {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: function get() {
|
|
234
|
+
return _constants.scaledEmojiHeightH4;
|
|
235
|
+
}
|
|
236
|
+
});
|
|
183
237
|
Object.defineProperty(exports, "selectOnHover", {
|
|
184
238
|
enumerable: true,
|
|
185
239
|
get: function get() {
|
|
@@ -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
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.yourUploadsCategory = exports.userCustomTitle = exports.sizeGap = exports.selectedToneStorageKey = exports.searchCategory = exports.migrationUserId = exports.localStoragePrefix = exports.frequentCategory = exports.emojiPickerWidth = exports.emojiPickerPreviewHeight = exports.emojiPickerMinHeight = exports.emojiPickerListHeight = exports.emojiPickerHeightWithPreview = exports.emojiPickerHeight = exports.deleteEmojiLabel = exports.defaultListLimit = exports.defaultEmojiPickerSize = exports.defaultEmojiHeight = exports.defaultCategories = exports.dataURLPrefix = exports.customType = exports.customTitle = exports.customCategory = exports.analyticsEmojiPrefix = exports.TONESELECTOR_KEYBOARD_KEYS_SUPPORTED = exports.SAMPLING_RATE_EMOJI_RESOURCE_FETCHED_EXP = exports.SAMPLING_RATE_EMOJI_RENDERED_EXP = exports.MAX_ORDINAL = exports.KeyboardNavigationDirection = exports.KeyboardKeys = exports.EMOJI_SEARCH_DEBOUNCE = exports.EMOJI_LIST_PAGE_COUNT = exports.EMOJI_LIST_COLUMNS = exports.EMOJI_KEYBOARD_KEYS_SUPPORTED = exports.EMOJIPICKERLIST_KEYBOARD_KEYS_SUPPORTED = exports.DEFAULT_TONE = exports.CATEGORYSELECTOR_KEYBOARD_KEYS_SUPPORTED = void 0;
|
|
6
|
+
exports.yourUploadsCategory = exports.userCustomTitle = exports.sizeGap = exports.selectedToneStorageKey = exports.searchCategory = exports.scaledEmojiHeightH4 = exports.scaledEmojiHeightH3 = exports.scaledEmojiHeightH2 = exports.scaledEmojiHeightH1 = exports.migrationUserId = exports.localStoragePrefix = exports.frequentCategory = exports.emojiPickerWidth = exports.emojiPickerPreviewHeight = exports.emojiPickerMinHeight = exports.emojiPickerListHeight = exports.emojiPickerHeightWithPreview = exports.emojiPickerHeight = exports.denseEmojiHeightH4 = exports.denseEmojiHeightH3 = exports.denseEmojiHeightH2 = exports.denseEmojiHeightH1 = exports.deleteEmojiLabel = exports.defaultListLimit = exports.defaultEmojiPickerSize = exports.defaultEmojiHeight = exports.defaultDenseEmojiHeight = exports.defaultCategories = exports.dataURLPrefix = exports.customType = exports.customTitle = exports.customCategory = exports.analyticsEmojiPrefix = exports.TONESELECTOR_KEYBOARD_KEYS_SUPPORTED = exports.SAMPLING_RATE_EMOJI_RESOURCE_FETCHED_EXP = exports.SAMPLING_RATE_EMOJI_RENDERED_EXP = exports.MAX_ORDINAL = exports.KeyboardNavigationDirection = exports.KeyboardKeys = exports.EMOJI_SEARCH_DEBOUNCE = exports.EMOJI_LIST_PAGE_COUNT = exports.EMOJI_LIST_COLUMNS = exports.EMOJI_KEYBOARD_KEYS_SUPPORTED = exports.EMOJIPICKERLIST_KEYBOARD_KEYS_SUPPORTED = exports.DEFAULT_TONE = exports.CATEGORYSELECTOR_KEYBOARD_KEYS_SUPPORTED = void 0;
|
|
7
7
|
var customCategory = exports.customCategory = 'CUSTOM';
|
|
8
8
|
var frequentCategory = exports.frequentCategory = 'FREQUENT';
|
|
9
9
|
var customType = exports.customType = 'SITE';
|
|
@@ -19,7 +19,16 @@ var deleteEmojiLabel = exports.deleteEmojiLabel = 'delete-emoji';
|
|
|
19
19
|
* This is used instead of Number.MAX_VALUE since subtraction of MAX_VALUE from itself occassionaly doesn't equal zero exactly :-(
|
|
20
20
|
*/
|
|
21
21
|
var MAX_ORDINAL = exports.MAX_ORDINAL = 100000;
|
|
22
|
+
var scaledEmojiHeightH1 = exports.scaledEmojiHeightH1 = 28;
|
|
23
|
+
var scaledEmojiHeightH2 = exports.scaledEmojiHeightH2 = 26;
|
|
24
|
+
var scaledEmojiHeightH3 = exports.scaledEmojiHeightH3 = 24;
|
|
25
|
+
var scaledEmojiHeightH4 = exports.scaledEmojiHeightH4 = 22;
|
|
26
|
+
var denseEmojiHeightH1 = exports.denseEmojiHeightH1 = 24.25;
|
|
27
|
+
var denseEmojiHeightH2 = exports.denseEmojiHeightH2 = 22.25;
|
|
28
|
+
var denseEmojiHeightH3 = exports.denseEmojiHeightH3 = 20.25;
|
|
29
|
+
var denseEmojiHeightH4 = exports.denseEmojiHeightH4 = 18.25;
|
|
22
30
|
var defaultEmojiHeight = exports.defaultEmojiHeight = 20;
|
|
31
|
+
var defaultDenseEmojiHeight = exports.defaultDenseEmojiHeight = 16.25;
|
|
23
32
|
var emojiPickerWidth = exports.emojiPickerWidth = 350;
|
|
24
33
|
var sizeGap = exports.sizeGap = 80;
|
|
25
34
|
var defaultEmojiPickerSize = exports.defaultEmojiPickerSize = 'medium';
|
|
@@ -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);
|
package/dist/es2019/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import EmojiLoader from './api/EmojiLoader';
|
|
|
16
16
|
import { denormaliseEmojiServiceResponse } from './api/EmojiUtils';
|
|
17
17
|
import { toEmojiId, toOptionalEmojiId } from './util/type-helpers';
|
|
18
18
|
import { recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling } from './util/analytics';
|
|
19
|
-
import { customCategory, defaultEmojiHeight, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
19
|
+
import { customCategory, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
20
20
|
import { UsageFrequencyTracker } from './api/internal/UsageFrequencyTracker';
|
|
21
21
|
import { useEmoji } from './hooks/useEmoji';
|
|
22
22
|
import { useEmojiContext } from './hooks/useEmojiContext';
|
|
@@ -30,7 +30,7 @@ useEmoji, useEmojiContext,
|
|
|
30
30
|
// functions
|
|
31
31
|
denormaliseEmojiServiceResponse, preloadEmojiPicker, toEmojiId, toOptionalEmojiId, recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling,
|
|
32
32
|
// Constants
|
|
33
|
-
emojiPickerWidth, emojiPickerHeight, defaultEmojiHeight, customCategory, UsageFrequencyTracker, EmojiTypeAheadItem };
|
|
33
|
+
emojiPickerWidth, emojiPickerHeight, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, customCategory, UsageFrequencyTracker, EmojiTypeAheadItem };
|
|
34
34
|
export {
|
|
35
35
|
// Enums
|
|
36
36
|
SearchSort, UfoExperienceName, UfoComponentName } from './types';
|
|
@@ -13,7 +13,16 @@ export const deleteEmojiLabel = 'delete-emoji';
|
|
|
13
13
|
* This is used instead of Number.MAX_VALUE since subtraction of MAX_VALUE from itself occassionaly doesn't equal zero exactly :-(
|
|
14
14
|
*/
|
|
15
15
|
export const MAX_ORDINAL = 100000;
|
|
16
|
+
export const scaledEmojiHeightH1 = 28;
|
|
17
|
+
export const scaledEmojiHeightH2 = 26;
|
|
18
|
+
export const scaledEmojiHeightH3 = 24;
|
|
19
|
+
export const scaledEmojiHeightH4 = 22;
|
|
20
|
+
export const denseEmojiHeightH1 = 24.25;
|
|
21
|
+
export const denseEmojiHeightH2 = 22.25;
|
|
22
|
+
export const denseEmojiHeightH3 = 20.25;
|
|
23
|
+
export const denseEmojiHeightH4 = 18.25;
|
|
16
24
|
export const defaultEmojiHeight = 20;
|
|
25
|
+
export const defaultDenseEmojiHeight = 16.25;
|
|
17
26
|
export const emojiPickerWidth = 350;
|
|
18
27
|
export const sizeGap = 80;
|
|
19
28
|
export const defaultEmojiPickerSize = 'medium';
|
|
@@ -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/dist/esm/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import EmojiLoader from './api/EmojiLoader';
|
|
|
16
16
|
import { denormaliseEmojiServiceResponse } from './api/EmojiUtils';
|
|
17
17
|
import { toEmojiId, toOptionalEmojiId } from './util/type-helpers';
|
|
18
18
|
import { recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling } from './util/analytics';
|
|
19
|
-
import { customCategory, defaultEmojiHeight, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
19
|
+
import { customCategory, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
20
20
|
import { UsageFrequencyTracker } from './api/internal/UsageFrequencyTracker';
|
|
21
21
|
import { useEmoji } from './hooks/useEmoji';
|
|
22
22
|
import { useEmojiContext } from './hooks/useEmojiContext';
|
|
@@ -30,7 +30,7 @@ useEmoji, useEmojiContext,
|
|
|
30
30
|
// functions
|
|
31
31
|
denormaliseEmojiServiceResponse, preloadEmojiPicker, toEmojiId, toOptionalEmojiId, recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling,
|
|
32
32
|
// Constants
|
|
33
|
-
emojiPickerWidth, emojiPickerHeight, defaultEmojiHeight, customCategory, UsageFrequencyTracker, EmojiTypeAheadItem };
|
|
33
|
+
emojiPickerWidth, emojiPickerHeight, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, customCategory, UsageFrequencyTracker, EmojiTypeAheadItem };
|
|
34
34
|
export {
|
|
35
35
|
// Enums
|
|
36
36
|
SearchSort, UfoExperienceName, UfoComponentName } from './types';
|
|
@@ -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
|
};
|
|
@@ -13,7 +13,16 @@ export var deleteEmojiLabel = 'delete-emoji';
|
|
|
13
13
|
* This is used instead of Number.MAX_VALUE since subtraction of MAX_VALUE from itself occassionaly doesn't equal zero exactly :-(
|
|
14
14
|
*/
|
|
15
15
|
export var MAX_ORDINAL = 100000;
|
|
16
|
+
export var scaledEmojiHeightH1 = 28;
|
|
17
|
+
export var scaledEmojiHeightH2 = 26;
|
|
18
|
+
export var scaledEmojiHeightH3 = 24;
|
|
19
|
+
export var scaledEmojiHeightH4 = 22;
|
|
20
|
+
export var denseEmojiHeightH1 = 24.25;
|
|
21
|
+
export var denseEmojiHeightH2 = 22.25;
|
|
22
|
+
export var denseEmojiHeightH3 = 20.25;
|
|
23
|
+
export var denseEmojiHeightH4 = 18.25;
|
|
16
24
|
export var defaultEmojiHeight = 20;
|
|
25
|
+
export var defaultDenseEmojiHeight = 16.25;
|
|
17
26
|
export var emojiPickerWidth = 350;
|
|
18
27
|
export var sizeGap = 80;
|
|
19
28
|
export var defaultEmojiPickerSize = 'medium';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -14,13 +14,13 @@ import EmojiLoader from './api/EmojiLoader';
|
|
|
14
14
|
import { denormaliseEmojiServiceResponse } from './api/EmojiUtils';
|
|
15
15
|
import { toEmojiId, toOptionalEmojiId } from './util/type-helpers';
|
|
16
16
|
import { recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling, type WithSamplingUFOExperience } from './util/analytics';
|
|
17
|
-
import { customCategory, defaultEmojiHeight, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
17
|
+
import { customCategory, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
18
18
|
import { UsageFrequencyTracker } from './api/internal/UsageFrequencyTracker';
|
|
19
19
|
import { useEmoji } from './hooks/useEmoji';
|
|
20
20
|
import { useEmojiContext } from './hooks/useEmojiContext';
|
|
21
21
|
import { EmojiContextProvider } from './context/EmojiContextProvider';
|
|
22
22
|
import { EmojiCommonProvider } from './context/EmojiCommonProvider';
|
|
23
|
-
export { AbstractResource, Emoji, EmojiPlaceholder, EmojiLoader, EmojiPicker, EmojiUploader, EmojiResource, EmojiCommonProvider, EmojiRepository, EmojiTypeAhead, ResourcedEmoji, EmojiContextProvider, useEmoji, useEmojiContext, denormaliseEmojiServiceResponse, preloadEmojiPicker, toEmojiId, toOptionalEmojiId, recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling, emojiPickerWidth, emojiPickerHeight, defaultEmojiHeight, customCategory, UsageFrequencyTracker, EmojiTypeAheadItem, };
|
|
23
|
+
export { AbstractResource, Emoji, EmojiPlaceholder, EmojiLoader, EmojiPicker, EmojiUploader, EmojiResource, EmojiCommonProvider, EmojiRepository, EmojiTypeAhead, ResourcedEmoji, EmojiContextProvider, useEmoji, useEmojiContext, denormaliseEmojiServiceResponse, preloadEmojiPicker, toEmojiId, toOptionalEmojiId, recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling, emojiPickerWidth, emojiPickerHeight, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, customCategory, UsageFrequencyTracker, EmojiTypeAheadItem, };
|
|
24
24
|
export type { EmojiProvider, UploadingEmojiProvider, EmojiResourceConfig, WithSamplingUFOExperience, };
|
|
25
25
|
export { SearchSort, UfoExperienceName, UfoComponentName, } from './types';
|
|
26
26
|
export type { CategoryId, EmojiRepresentation, EmojiServiceRepresentation, Message, OptionalEmojiDescription, OptionalEmojiDescriptionWithVariations, OptionalUser, RelativePosition, ToneSelection, AltRepresentations, CategoryDescription, EmojiDescription, EmojiDescriptionWithVariations, EmojiId, EmojiImageRepresentation, EmojiMeta, EmojiResponse, EmojiSearchResult, EmojiServiceDescription, EmojiServiceDescriptionWithVariations, EmojiServiceResponse, EmojiUpload, EmojiVariationDescription, ImageRepresentation, MediaApiRepresentation, MediaApiToken, OnCategory, OnEmojiEvent, OnToneSelected, OnToneSelectorCancelled, SearchOptions, SpriteImageRepresentation, SpriteRepresentation, SpriteServiceRepresentation, SpriteSheet, SpriteSheets, Styles, User, PickerSize, } from './types';
|
|
@@ -13,7 +13,16 @@ export declare const deleteEmojiLabel = "delete-emoji";
|
|
|
13
13
|
* This is used instead of Number.MAX_VALUE since subtraction of MAX_VALUE from itself occassionaly doesn't equal zero exactly :-(
|
|
14
14
|
*/
|
|
15
15
|
export declare const MAX_ORDINAL = 100000;
|
|
16
|
+
export declare const scaledEmojiHeightH1 = 28;
|
|
17
|
+
export declare const scaledEmojiHeightH2 = 26;
|
|
18
|
+
export declare const scaledEmojiHeightH3 = 24;
|
|
19
|
+
export declare const scaledEmojiHeightH4 = 22;
|
|
20
|
+
export declare const denseEmojiHeightH1 = 24.25;
|
|
21
|
+
export declare const denseEmojiHeightH2 = 22.25;
|
|
22
|
+
export declare const denseEmojiHeightH3 = 20.25;
|
|
23
|
+
export declare const denseEmojiHeightH4 = 18.25;
|
|
16
24
|
export declare const defaultEmojiHeight = 20;
|
|
25
|
+
export declare const defaultDenseEmojiHeight = 16.25;
|
|
17
26
|
export type EmojiPickerWidth = 350;
|
|
18
27
|
export declare const emojiPickerWidth: EmojiPickerWidth;
|
|
19
28
|
export declare const sizeGap = 80;
|
|
@@ -14,13 +14,13 @@ import EmojiLoader from './api/EmojiLoader';
|
|
|
14
14
|
import { denormaliseEmojiServiceResponse } from './api/EmojiUtils';
|
|
15
15
|
import { toEmojiId, toOptionalEmojiId } from './util/type-helpers';
|
|
16
16
|
import { recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling, type WithSamplingUFOExperience } from './util/analytics';
|
|
17
|
-
import { customCategory, defaultEmojiHeight, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
17
|
+
import { customCategory, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, emojiPickerWidth, emojiPickerHeight } from './util/constants';
|
|
18
18
|
import { UsageFrequencyTracker } from './api/internal/UsageFrequencyTracker';
|
|
19
19
|
import { useEmoji } from './hooks/useEmoji';
|
|
20
20
|
import { useEmojiContext } from './hooks/useEmojiContext';
|
|
21
21
|
import { EmojiContextProvider } from './context/EmojiContextProvider';
|
|
22
22
|
import { EmojiCommonProvider } from './context/EmojiCommonProvider';
|
|
23
|
-
export { AbstractResource, Emoji, EmojiPlaceholder, EmojiLoader, EmojiPicker, EmojiUploader, EmojiResource, EmojiCommonProvider, EmojiRepository, EmojiTypeAhead, ResourcedEmoji, EmojiContextProvider, useEmoji, useEmojiContext, denormaliseEmojiServiceResponse, preloadEmojiPicker, toEmojiId, toOptionalEmojiId, recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling, emojiPickerWidth, emojiPickerHeight, defaultEmojiHeight, customCategory, UsageFrequencyTracker, EmojiTypeAheadItem, };
|
|
23
|
+
export { AbstractResource, Emoji, EmojiPlaceholder, EmojiLoader, EmojiPicker, EmojiUploader, EmojiResource, EmojiCommonProvider, EmojiRepository, EmojiTypeAhead, ResourcedEmoji, EmojiContextProvider, useEmoji, useEmojiContext, denormaliseEmojiServiceResponse, preloadEmojiPicker, toEmojiId, toOptionalEmojiId, recordSelectionFailedSli, recordSelectionSucceededSli, ufoExperiences, withSampling, emojiPickerWidth, emojiPickerHeight, defaultEmojiHeight, defaultDenseEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4, customCategory, UsageFrequencyTracker, EmojiTypeAheadItem, };
|
|
24
24
|
export type { EmojiProvider, UploadingEmojiProvider, EmojiResourceConfig, WithSamplingUFOExperience, };
|
|
25
25
|
export { SearchSort, UfoExperienceName, UfoComponentName, } from './types';
|
|
26
26
|
export type { CategoryId, EmojiRepresentation, EmojiServiceRepresentation, Message, OptionalEmojiDescription, OptionalEmojiDescriptionWithVariations, OptionalUser, RelativePosition, ToneSelection, AltRepresentations, CategoryDescription, EmojiDescription, EmojiDescriptionWithVariations, EmojiId, EmojiImageRepresentation, EmojiMeta, EmojiResponse, EmojiSearchResult, EmojiServiceDescription, EmojiServiceDescriptionWithVariations, EmojiServiceResponse, EmojiUpload, EmojiVariationDescription, ImageRepresentation, MediaApiRepresentation, MediaApiToken, OnCategory, OnEmojiEvent, OnToneSelected, OnToneSelectorCancelled, SearchOptions, SpriteImageRepresentation, SpriteRepresentation, SpriteServiceRepresentation, SpriteSheet, SpriteSheets, Styles, User, PickerSize, } from './types';
|
|
@@ -13,7 +13,16 @@ export declare const deleteEmojiLabel = "delete-emoji";
|
|
|
13
13
|
* This is used instead of Number.MAX_VALUE since subtraction of MAX_VALUE from itself occassionaly doesn't equal zero exactly :-(
|
|
14
14
|
*/
|
|
15
15
|
export declare const MAX_ORDINAL = 100000;
|
|
16
|
+
export declare const scaledEmojiHeightH1 = 28;
|
|
17
|
+
export declare const scaledEmojiHeightH2 = 26;
|
|
18
|
+
export declare const scaledEmojiHeightH3 = 24;
|
|
19
|
+
export declare const scaledEmojiHeightH4 = 22;
|
|
20
|
+
export declare const denseEmojiHeightH1 = 24.25;
|
|
21
|
+
export declare const denseEmojiHeightH2 = 22.25;
|
|
22
|
+
export declare const denseEmojiHeightH3 = 20.25;
|
|
23
|
+
export declare const denseEmojiHeightH4 = 18.25;
|
|
16
24
|
export declare const defaultEmojiHeight = 20;
|
|
25
|
+
export declare const defaultDenseEmojiHeight = 16.25;
|
|
17
26
|
export type EmojiPickerWidth = 350;
|
|
18
27
|
export declare const emojiPickerWidth: EmojiPickerWidth;
|
|
19
28
|
export declare const sizeGap = 80;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.
|
|
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",
|