@atlaskit/editor-plugin-selection-toolbar 11.3.5 → 11.3.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/ui/PageVisibilityWatcher.js +13 -13
- package/dist/esm/ui/PageVisibilityWatcher.js +13 -13
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -19,33 +19,33 @@ var PageVisibilityWatcher = exports.PageVisibilityWatcher = function PageVisibil
|
|
|
19
19
|
}
|
|
20
20
|
var refreshPrefrerence = /*#__PURE__*/function () {
|
|
21
21
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
22
|
-
var _api$selectionToolbar, _api$selectionToolbar2;
|
|
23
|
-
return _regenerator.default.wrap(function
|
|
22
|
+
var _api$selectionToolbar, _api$selectionToolbar2, _t;
|
|
23
|
+
return _regenerator.default.wrap(function (_context) {
|
|
24
24
|
while (1) switch (_context.prev = _context.next) {
|
|
25
25
|
case 0:
|
|
26
26
|
if (!(document.visibilityState === 'visible')) {
|
|
27
|
-
_context.next =
|
|
27
|
+
_context.next = 5;
|
|
28
28
|
break;
|
|
29
29
|
}
|
|
30
30
|
_context.prev = 1;
|
|
31
|
-
_context.next =
|
|
31
|
+
_context.next = 2;
|
|
32
32
|
return userPreferencesProvider.loadPreferences();
|
|
33
|
-
case
|
|
34
|
-
_context.next =
|
|
33
|
+
case 2:
|
|
34
|
+
_context.next = 4;
|
|
35
35
|
break;
|
|
36
|
-
case
|
|
37
|
-
_context.prev =
|
|
38
|
-
|
|
39
|
-
(0, _monitoring.logException)(
|
|
36
|
+
case 3:
|
|
37
|
+
_context.prev = 3;
|
|
38
|
+
_t = _context["catch"](1);
|
|
39
|
+
(0, _monitoring.logException)(_t, {
|
|
40
40
|
location: 'editor-plugin-selection-toolbar/PageVisibilityWatcher'
|
|
41
41
|
});
|
|
42
|
-
case
|
|
42
|
+
case 4:
|
|
43
43
|
api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.actions) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar2 = _api$selectionToolbar.refreshToolbarDocking) === null || _api$selectionToolbar2 === void 0 || _api$selectionToolbar2.call(_api$selectionToolbar);
|
|
44
|
-
case
|
|
44
|
+
case 5:
|
|
45
45
|
case "end":
|
|
46
46
|
return _context.stop();
|
|
47
47
|
}
|
|
48
|
-
}, _callee, null, [[1,
|
|
48
|
+
}, _callee, null, [[1, 3]]);
|
|
49
49
|
}));
|
|
50
50
|
return function refreshPrefrerence() {
|
|
51
51
|
return _ref2.apply(this, arguments);
|
|
@@ -12,33 +12,33 @@ export var PageVisibilityWatcher = function PageVisibilityWatcher(_ref) {
|
|
|
12
12
|
}
|
|
13
13
|
var refreshPrefrerence = /*#__PURE__*/function () {
|
|
14
14
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
15
|
-
var _api$selectionToolbar, _api$selectionToolbar2;
|
|
16
|
-
return _regeneratorRuntime.wrap(function
|
|
15
|
+
var _api$selectionToolbar, _api$selectionToolbar2, _t;
|
|
16
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
17
17
|
while (1) switch (_context.prev = _context.next) {
|
|
18
18
|
case 0:
|
|
19
19
|
if (!(document.visibilityState === 'visible')) {
|
|
20
|
-
_context.next =
|
|
20
|
+
_context.next = 5;
|
|
21
21
|
break;
|
|
22
22
|
}
|
|
23
23
|
_context.prev = 1;
|
|
24
|
-
_context.next =
|
|
24
|
+
_context.next = 2;
|
|
25
25
|
return userPreferencesProvider.loadPreferences();
|
|
26
|
-
case
|
|
27
|
-
_context.next =
|
|
26
|
+
case 2:
|
|
27
|
+
_context.next = 4;
|
|
28
28
|
break;
|
|
29
|
-
case
|
|
30
|
-
_context.prev =
|
|
31
|
-
|
|
32
|
-
logException(
|
|
29
|
+
case 3:
|
|
30
|
+
_context.prev = 3;
|
|
31
|
+
_t = _context["catch"](1);
|
|
32
|
+
logException(_t, {
|
|
33
33
|
location: 'editor-plugin-selection-toolbar/PageVisibilityWatcher'
|
|
34
34
|
});
|
|
35
|
-
case
|
|
35
|
+
case 4:
|
|
36
36
|
api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.actions) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar2 = _api$selectionToolbar.refreshToolbarDocking) === null || _api$selectionToolbar2 === void 0 || _api$selectionToolbar2.call(_api$selectionToolbar);
|
|
37
|
-
case
|
|
37
|
+
case 5:
|
|
38
38
|
case "end":
|
|
39
39
|
return _context.stop();
|
|
40
40
|
}
|
|
41
|
-
}, _callee, null, [[1,
|
|
41
|
+
}, _callee, null, [[1, 3]]);
|
|
42
42
|
}));
|
|
43
43
|
return function refreshPrefrerence() {
|
|
44
44
|
return _ref2.apply(this, arguments);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-toolbar",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.7",
|
|
4
4
|
"description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-user-intent": "^8.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-user-preferences": "^8.2.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
42
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
42
|
+
"@atlaskit/editor-toolbar": "^1.8.0",
|
|
43
43
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
44
|
-
"@atlaskit/icon": "^35.
|
|
45
|
-
"@atlaskit/icon-lab": "^6.
|
|
44
|
+
"@atlaskit/icon": "^35.3.0",
|
|
45
|
+
"@atlaskit/icon-lab": "^6.12.0",
|
|
46
46
|
"@atlaskit/menu": "^8.5.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
-
"@atlaskit/tokens": "^13.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^85.0.0",
|
|
49
|
+
"@atlaskit/tokens": "^13.1.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"bind-event-listener": "^3.0.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^114.
|
|
54
|
+
"@atlaskit/editor-common": "^114.50.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-dom": "^18.2.0",
|
|
57
57
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|