@atlaskit/emoji 71.7.5 → 71.7.7
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 +12 -0
- package/dist/cjs/api/EmojiResource.js +2 -0
- package/dist/cjs/api/internal/UsageFrequencyTracker.js +1 -0
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/cjs/util/productivity-colors.js +2 -0
- package/dist/es2019/api/EmojiResource.js +2 -0
- package/dist/es2019/api/internal/UsageFrequencyTracker.js +1 -0
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/es2019/util/productivity-colors.js +2 -0
- package/dist/esm/api/EmojiResource.js +2 -0
- package/dist/esm/api/internal/UsageFrequencyTracker.js +1 -0
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/dist/esm/util/productivity-colors.js +2 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -411,6 +411,7 @@ var EmojiResource = exports.EmojiResource = /*#__PURE__*/function (_AbstractReso
|
|
|
411
411
|
if (typeof window === 'undefined') {
|
|
412
412
|
return undefined;
|
|
413
413
|
}
|
|
414
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
414
415
|
var storedToneString = window.localStorage.getItem(_constants.selectedToneStorageKey);
|
|
415
416
|
if (storedToneString) {
|
|
416
417
|
var storedTone = parseInt(storedToneString, 10);
|
|
@@ -726,6 +727,7 @@ var EmojiResource = exports.EmojiResource = /*#__PURE__*/function (_AbstractReso
|
|
|
726
727
|
}
|
|
727
728
|
if ((0, _storageAvailable.default)('localStorage')) {
|
|
728
729
|
try {
|
|
730
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
729
731
|
window.localStorage.setItem(_constants.selectedToneStorageKey, tone ? tone.toString() : '');
|
|
730
732
|
} catch (e) {
|
|
731
733
|
// eslint-disable-next-line no-console
|
|
@@ -84,6 +84,7 @@ var UsageFrequencyTracker = exports.UsageFrequencyTracker = /*#__PURE__*/functio
|
|
|
84
84
|
}]);
|
|
85
85
|
}();
|
|
86
86
|
(0, _defineProperty2.default)(UsageFrequencyTracker, "queueOptions", {
|
|
87
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
87
88
|
storage: (0, _storageAvailable.default)('localStorage') ? window.localStorage : undefined,
|
|
88
89
|
storagePrefix: _constants.localStoragePrefix,
|
|
89
90
|
maxDuplicates: 25,
|
|
@@ -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: "71.7.
|
|
23
|
+
packageVersion: "71.7.6"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -23,6 +23,7 @@ var getStoredProductivityColor = exports.getStoredProductivityColor = function g
|
|
|
23
23
|
return defaultProductivityColor;
|
|
24
24
|
}
|
|
25
25
|
try {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
26
27
|
var storedColor = window.localStorage.getItem(_constants.selectedProductivityColorStorageKey);
|
|
27
28
|
return isProductivityColor(storedColor) ? storedColor : defaultProductivityColor;
|
|
28
29
|
} catch (error) {
|
|
@@ -37,6 +38,7 @@ var storeProductivityColor = exports.storeProductivityColor = function storeProd
|
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
40
|
try {
|
|
41
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
40
42
|
window.localStorage.setItem(_constants.selectedProductivityColorStorageKey, color);
|
|
41
43
|
} catch (error) {
|
|
42
44
|
// eslint-disable-next-line no-console
|
|
@@ -247,6 +247,7 @@ export class EmojiResource extends AbstractResource {
|
|
|
247
247
|
if (typeof window === 'undefined') {
|
|
248
248
|
return undefined;
|
|
249
249
|
}
|
|
250
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
250
251
|
const storedToneString = window.localStorage.getItem(selectedToneStorageKey);
|
|
251
252
|
if (storedToneString) {
|
|
252
253
|
const storedTone = parseInt(storedToneString, 10);
|
|
@@ -492,6 +493,7 @@ export class EmojiResource extends AbstractResource {
|
|
|
492
493
|
}
|
|
493
494
|
if (storageAvailable('localStorage')) {
|
|
494
495
|
try {
|
|
496
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
495
497
|
window.localStorage.setItem(selectedToneStorageKey, tone ? tone.toString() : '');
|
|
496
498
|
} catch (e) {
|
|
497
499
|
// eslint-disable-next-line no-console
|
|
@@ -65,6 +65,7 @@ export class UsageFrequencyTracker {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
_defineProperty(UsageFrequencyTracker, "queueOptions", {
|
|
68
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
68
69
|
storage: storageAvailable('localStorage') ? window.localStorage : undefined,
|
|
69
70
|
storagePrefix: localStoragePrefix,
|
|
70
71
|
maxDuplicates: 25,
|
|
@@ -14,6 +14,7 @@ export const getStoredProductivityColor = () => {
|
|
|
14
14
|
return defaultProductivityColor;
|
|
15
15
|
}
|
|
16
16
|
try {
|
|
17
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
17
18
|
const storedColor = window.localStorage.getItem(selectedProductivityColorStorageKey);
|
|
18
19
|
return isProductivityColor(storedColor) ? storedColor : defaultProductivityColor;
|
|
19
20
|
} catch (error) {
|
|
@@ -28,6 +29,7 @@ export const storeProductivityColor = color => {
|
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
31
|
try {
|
|
32
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
31
33
|
window.localStorage.setItem(selectedProductivityColorStorageKey, color);
|
|
32
34
|
} catch (error) {
|
|
33
35
|
// eslint-disable-next-line no-console
|
|
@@ -405,6 +405,7 @@ export var EmojiResource = /*#__PURE__*/function (_AbstractResource) {
|
|
|
405
405
|
if (typeof window === 'undefined') {
|
|
406
406
|
return undefined;
|
|
407
407
|
}
|
|
408
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
408
409
|
var storedToneString = window.localStorage.getItem(selectedToneStorageKey);
|
|
409
410
|
if (storedToneString) {
|
|
410
411
|
var storedTone = parseInt(storedToneString, 10);
|
|
@@ -720,6 +721,7 @@ export var EmojiResource = /*#__PURE__*/function (_AbstractResource) {
|
|
|
720
721
|
}
|
|
721
722
|
if (storageAvailable('localStorage')) {
|
|
722
723
|
try {
|
|
724
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
723
725
|
window.localStorage.setItem(selectedToneStorageKey, tone ? tone.toString() : '');
|
|
724
726
|
} catch (e) {
|
|
725
727
|
// eslint-disable-next-line no-console
|
|
@@ -78,6 +78,7 @@ export var UsageFrequencyTracker = /*#__PURE__*/function () {
|
|
|
78
78
|
}]);
|
|
79
79
|
}();
|
|
80
80
|
_defineProperty(UsageFrequencyTracker, "queueOptions", {
|
|
81
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
81
82
|
storage: storageAvailable('localStorage') ? window.localStorage : undefined,
|
|
82
83
|
storagePrefix: localStoragePrefix,
|
|
83
84
|
maxDuplicates: 25,
|
|
@@ -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: "71.7.
|
|
17
|
+
packageVersion: "71.7.6"
|
|
18
18
|
}, attributes)
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -16,6 +16,7 @@ export var getStoredProductivityColor = function getStoredProductivityColor() {
|
|
|
16
16
|
return defaultProductivityColor;
|
|
17
17
|
}
|
|
18
18
|
try {
|
|
19
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
19
20
|
var storedColor = window.localStorage.getItem(selectedProductivityColorStorageKey);
|
|
20
21
|
return isProductivityColor(storedColor) ? storedColor : defaultProductivityColor;
|
|
21
22
|
} catch (error) {
|
|
@@ -30,6 +31,7 @@ export var storeProductivityColor = function storeProductivityColor(color) {
|
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
32
33
|
try {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
33
35
|
window.localStorage.setItem(selectedProductivityColorStorageKey, color);
|
|
34
36
|
} catch (error) {
|
|
35
37
|
// eslint-disable-next-line no-console
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "71.7.
|
|
3
|
+
"version": "71.7.7",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
"@atlaskit/css": "^1.0.0",
|
|
37
37
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
38
38
|
"@atlaskit/form": "^16.1.0",
|
|
39
|
-
"@atlaskit/heading": "^6.
|
|
40
|
-
"@atlaskit/icon": "^36.
|
|
41
|
-
"@atlaskit/icon-lab": "^7.
|
|
39
|
+
"@atlaskit/heading": "^6.2.0",
|
|
40
|
+
"@atlaskit/icon": "^36.2.0",
|
|
41
|
+
"@atlaskit/icon-lab": "^7.3.0",
|
|
42
42
|
"@atlaskit/image": "^4.1.0",
|
|
43
|
-
"@atlaskit/logo": "^21.
|
|
44
|
-
"@atlaskit/media-client": "^37.
|
|
43
|
+
"@atlaskit/logo": "^21.4.0",
|
|
44
|
+
"@atlaskit/media-client": "^37.2.0",
|
|
45
45
|
"@atlaskit/media-client-react": "^6.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
47
47
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
|
|
48
|
-
"@atlaskit/primitives": "^20.
|
|
48
|
+
"@atlaskit/primitives": "^20.5.0",
|
|
49
49
|
"@atlaskit/radio": "^9.1.0",
|
|
50
50
|
"@atlaskit/spinner": "^20.1.0",
|
|
51
51
|
"@atlaskit/textfield": "^9.1.0",
|
|
52
52
|
"@atlaskit/theme": "^26.1.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
54
|
-
"@atlaskit/tokens": "^15.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^122.0.0",
|
|
54
|
+
"@atlaskit/tokens": "^15.5.0",
|
|
55
55
|
"@atlaskit/tooltip": "^23.1.0",
|
|
56
56
|
"@atlaskit/ufo": "^1.0.0",
|
|
57
|
-
"@atlaskit/util-service-support": "^7.
|
|
57
|
+
"@atlaskit/util-service-support": "^7.2.0",
|
|
58
58
|
"@atlaskit/visually-hidden": "^4.1.0",
|
|
59
59
|
"@babel/runtime": "^7.0.0",
|
|
60
60
|
"@compiled/react": "^0.20.0",
|