@atlaskit/editor-plugin-user-preferences 8.2.4 → 8.2.5
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
|
@@ -15,30 +15,31 @@ var useDocumentVisibilityWatcher = exports.useDocumentVisibilityWatcher = functi
|
|
|
15
15
|
if (userPreferencesProvider) {
|
|
16
16
|
var refreshPreferences = /*#__PURE__*/function () {
|
|
17
17
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
18
|
-
|
|
18
|
+
var _t;
|
|
19
|
+
return _regenerator.default.wrap(function (_context) {
|
|
19
20
|
while (1) switch (_context.prev = _context.next) {
|
|
20
21
|
case 0:
|
|
21
22
|
if (!(document.visibilityState === 'visible')) {
|
|
22
|
-
_context.next =
|
|
23
|
+
_context.next = 4;
|
|
23
24
|
break;
|
|
24
25
|
}
|
|
25
26
|
_context.prev = 1;
|
|
26
|
-
_context.next =
|
|
27
|
+
_context.next = 2;
|
|
27
28
|
return userPreferencesProvider.loadPreferences();
|
|
28
|
-
case
|
|
29
|
-
_context.next =
|
|
29
|
+
case 2:
|
|
30
|
+
_context.next = 4;
|
|
30
31
|
break;
|
|
31
|
-
case
|
|
32
|
-
_context.prev =
|
|
33
|
-
|
|
34
|
-
(0, _monitoring.logException)(
|
|
32
|
+
case 3:
|
|
33
|
+
_context.prev = 3;
|
|
34
|
+
_t = _context["catch"](1);
|
|
35
|
+
(0, _monitoring.logException)(_t, {
|
|
35
36
|
location: 'editor-plugin-user-preferences/userPreferencesPlugin'
|
|
36
37
|
});
|
|
37
|
-
case
|
|
38
|
+
case 4:
|
|
38
39
|
case "end":
|
|
39
40
|
return _context.stop();
|
|
40
41
|
}
|
|
41
|
-
}, _callee, null, [[1,
|
|
42
|
+
}, _callee, null, [[1, 3]]);
|
|
42
43
|
}));
|
|
43
44
|
return function refreshPreferences() {
|
|
44
45
|
return _ref.apply(this, arguments);
|
|
@@ -8,30 +8,31 @@ export var useDocumentVisibilityWatcher = function useDocumentVisibilityWatcher(
|
|
|
8
8
|
if (userPreferencesProvider) {
|
|
9
9
|
var refreshPreferences = /*#__PURE__*/function () {
|
|
10
10
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
11
|
-
|
|
11
|
+
var _t;
|
|
12
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
12
13
|
while (1) switch (_context.prev = _context.next) {
|
|
13
14
|
case 0:
|
|
14
15
|
if (!(document.visibilityState === 'visible')) {
|
|
15
|
-
_context.next =
|
|
16
|
+
_context.next = 4;
|
|
16
17
|
break;
|
|
17
18
|
}
|
|
18
19
|
_context.prev = 1;
|
|
19
|
-
_context.next =
|
|
20
|
+
_context.next = 2;
|
|
20
21
|
return userPreferencesProvider.loadPreferences();
|
|
21
|
-
case
|
|
22
|
-
_context.next =
|
|
22
|
+
case 2:
|
|
23
|
+
_context.next = 4;
|
|
23
24
|
break;
|
|
24
|
-
case
|
|
25
|
-
_context.prev =
|
|
26
|
-
|
|
27
|
-
logException(
|
|
25
|
+
case 3:
|
|
26
|
+
_context.prev = 3;
|
|
27
|
+
_t = _context["catch"](1);
|
|
28
|
+
logException(_t, {
|
|
28
29
|
location: 'editor-plugin-user-preferences/userPreferencesPlugin'
|
|
29
30
|
});
|
|
30
|
-
case
|
|
31
|
+
case 4:
|
|
31
32
|
case "end":
|
|
32
33
|
return _context.stop();
|
|
33
34
|
}
|
|
34
|
-
}, _callee, null, [[1,
|
|
35
|
+
}, _callee, null, [[1, 3]]);
|
|
35
36
|
}));
|
|
36
37
|
return function refreshPreferences() {
|
|
37
38
|
return _ref.apply(this, arguments);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-user-preferences",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.5",
|
|
4
4
|
"description": "UserPreferences plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
32
32
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^85.0.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
35
|
"bind-event-listener": "^3.0.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@atlaskit/editor-common": "^114.
|
|
38
|
+
"@atlaskit/editor-common": "^114.50.0",
|
|
39
39
|
"react": "^18.2.0"
|
|
40
40
|
},
|
|
41
41
|
"techstack": {
|