@atlaskit/emoji 70.1.3 → 70.2.0
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 +11 -0
- package/dist/cjs/api/EmojiResource.js +2 -1
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/api/EmojiResource.js +2 -1
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/api/EmojiResource.js +2 -1
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 70.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`cf3379a558a4e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cf3379a558a4e) -
|
|
8
|
+
Increase emoji upload timeout from 12 to 30 seconds
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 70.1.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -14,6 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
15
15
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _utilServiceSupport = require("@atlaskit/util-service-support");
|
|
18
19
|
var _constants = require("../util/constants");
|
|
19
20
|
var _logger = _interopRequireDefault(require("../util/logger"));
|
|
@@ -734,7 +735,7 @@ var UploadingEmojiResource = exports.default = /*#__PURE__*/function (_EmojiReso
|
|
|
734
735
|
value: function uploadCustomEmoji(upload) {
|
|
735
736
|
var _this12 = this;
|
|
736
737
|
var retry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
737
|
-
var timeout = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12000;
|
|
738
|
+
var timeout = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0, _platformFeatureFlags.fg)('increase-emoji-client-upload-timeout') ? 30000 : 12000;
|
|
738
739
|
return this.isUploadSupported().then(function (supported) {
|
|
739
740
|
if (!supported || !_this12.isRepositoryAvailable(_this12.siteEmojiResource)) {
|
|
740
741
|
return Promise.reject('No media api support is configured');
|
|
@@ -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: "70.1.
|
|
23
|
+
packageVersion: "70.1.3"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { AbstractResource, utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
3
4
|
import { SAMPLING_RATE_EMOJI_RESOURCE_FETCHED_EXP, selectedToneStorageKey } from '../util/constants';
|
|
4
5
|
import debug from '../util/logger';
|
|
@@ -481,7 +482,7 @@ export default class UploadingEmojiResource extends EmojiResource {
|
|
|
481
482
|
}
|
|
482
483
|
return this.retryIfLoading(() => this.isUploadSupported(), false);
|
|
483
484
|
}
|
|
484
|
-
uploadCustomEmoji(upload, retry = false, timeout = 12_000) {
|
|
485
|
+
uploadCustomEmoji(upload, retry = false, timeout = fg('increase-emoji-client-upload-timeout') ? 30_000 : 12_000) {
|
|
485
486
|
return this.isUploadSupported().then(supported => {
|
|
486
487
|
if (!supported || !this.isRepositoryAvailable(this.siteEmojiResource)) {
|
|
487
488
|
return Promise.reject('No media api support is configured');
|
|
@@ -12,6 +12,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
12
12
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import { AbstractResource, utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
16
17
|
import { SAMPLING_RATE_EMOJI_RESOURCE_FETCHED_EXP, selectedToneStorageKey } from '../util/constants';
|
|
17
18
|
import debug from '../util/logger';
|
|
@@ -728,7 +729,7 @@ var UploadingEmojiResource = /*#__PURE__*/function (_EmojiResource2) {
|
|
|
728
729
|
value: function uploadCustomEmoji(upload) {
|
|
729
730
|
var _this12 = this;
|
|
730
731
|
var retry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
731
|
-
var timeout = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12000;
|
|
732
|
+
var timeout = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : fg('increase-emoji-client-upload-timeout') ? 30000 : 12000;
|
|
732
733
|
return this.isUploadSupported().then(function (supported) {
|
|
733
734
|
if (!supported || !_this12.isRepositoryAvailable(_this12.siteEmojiResource)) {
|
|
734
735
|
return Promise.reject('No media api support is configured');
|
|
@@ -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: "70.1.
|
|
17
|
+
packageVersion: "70.1.3"
|
|
18
18
|
}, attributes)
|
|
19
19
|
};
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "70.
|
|
3
|
+
"version": "70.2.0",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/textfield": "^8.3.0",
|
|
52
52
|
"@atlaskit/tmp-editor-statsig": "^66.0.0",
|
|
53
53
|
"@atlaskit/tokens": "^13.0.0",
|
|
54
|
-
"@atlaskit/tooltip": "^21.
|
|
54
|
+
"@atlaskit/tooltip": "^21.2.0",
|
|
55
55
|
"@atlaskit/ufo": "^0.4.0",
|
|
56
56
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
57
57
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -136,6 +136,9 @@
|
|
|
136
136
|
},
|
|
137
137
|
"platform_no_noninteractive_emojis_reactions": {
|
|
138
138
|
"type": "boolean"
|
|
139
|
+
},
|
|
140
|
+
"increase-emoji-client-upload-timeout": {
|
|
141
|
+
"type": "boolean"
|
|
139
142
|
}
|
|
140
143
|
},
|
|
141
144
|
"scripts": {
|