@atlaskit/editor-plugin-selection-toolbar 3.6.4 → 3.6.6
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 +15 -0
- package/dist/cjs/ui/PageVisibilityWatcher.js +3 -1
- package/dist/es2019/ui/PageVisibilityWatcher.js +3 -1
- package/dist/esm/ui/PageVisibilityWatcher.js +3 -1
- package/dist/types/pm-plugins/commands.d.ts +1 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/PageVisibilityWatcher.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/commands.d.ts +1 -1
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/PageVisibilityWatcher.d.ts +2 -2
- package/package.json +11 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-toolbar
|
|
2
2
|
|
|
3
|
+
## 3.6.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#159043](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/159043)
|
|
8
|
+
[`686cfbea13d47`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/686cfbea13d47) -
|
|
9
|
+
ED-28050 [Performance] Disable unnecessary docking preference request on PageVisibilityWatcher
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 3.6.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.6.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -92,7 +92,9 @@ var PageVisibilityWatcher = exports.PageVisibilityWatcher = function PageVisibil
|
|
|
92
92
|
return _ref2.apply(this, arguments);
|
|
93
93
|
};
|
|
94
94
|
}();
|
|
95
|
-
|
|
95
|
+
if (!(0, _platformFeatureFlags.fg)('platform_disable_docking_preference_request')) {
|
|
96
|
+
refreshPrefrerence();
|
|
97
|
+
}
|
|
96
98
|
return (0, _bindEventListener.bind)(document, {
|
|
97
99
|
type: 'visibilitychange',
|
|
98
100
|
listener: refreshPrefrerence
|
|
@@ -41,7 +41,9 @@ export const PageVisibilityWatcher = ({
|
|
|
41
41
|
api === null || api === void 0 ? void 0 : (_api$selectionToolbar4 = api.selectionToolbar) === null || _api$selectionToolbar4 === void 0 ? void 0 : (_api$selectionToolbar5 = _api$selectionToolbar4.actions) === null || _api$selectionToolbar5 === void 0 ? void 0 : (_api$selectionToolbar6 = _api$selectionToolbar5.refreshToolbarDocking) === null || _api$selectionToolbar6 === void 0 ? void 0 : _api$selectionToolbar6.call(_api$selectionToolbar5);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
if (!fg('platform_disable_docking_preference_request')) {
|
|
45
|
+
refreshPrefrerence();
|
|
46
|
+
}
|
|
45
47
|
return bind(document, {
|
|
46
48
|
type: 'visibilitychange',
|
|
47
49
|
listener: refreshPrefrerence
|
|
@@ -85,7 +85,9 @@ export var PageVisibilityWatcher = function PageVisibilityWatcher(_ref) {
|
|
|
85
85
|
return _ref2.apply(this, arguments);
|
|
86
86
|
};
|
|
87
87
|
}();
|
|
88
|
-
|
|
88
|
+
if (!fg('platform_disable_docking_preference_request')) {
|
|
89
|
+
refreshPrefrerence();
|
|
90
|
+
}
|
|
89
91
|
return bind(document, {
|
|
90
92
|
type: 'visibilitychange',
|
|
91
93
|
listener: refreshPrefrerence
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EditorCommand, UserPreferencesProvider } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { ToolbarDocking } from '../types';
|
|
4
4
|
export declare const toggleToolbar: ({ hide }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserPreferences } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { UserPreferences } from '@atlaskit/editor-common/types';
|
|
2
2
|
export type SelectionToolbarPluginOptions = {
|
|
3
3
|
/**
|
|
4
4
|
* When set to true, placing the toolbar above the selection will be preferenced.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExtractInjectionAPI, UserPreferencesProvider } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
|
|
1
|
+
import type { ExtractInjectionAPI, UserPreferencesProvider } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
|
|
3
3
|
export declare const PageVisibilityWatcher: ({ api, userPreferencesProvider, }: {
|
|
4
4
|
api: ExtractInjectionAPI<SelectionToolbarPlugin> | undefined;
|
|
5
5
|
userPreferencesProvider?: UserPreferencesProvider | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EditorCommand, UserPreferencesProvider } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { ToolbarDocking } from '../types';
|
|
4
4
|
export declare const toggleToolbar: ({ hide }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserPreferences } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { UserPreferences } from '@atlaskit/editor-common/types';
|
|
2
2
|
export type SelectionToolbarPluginOptions = {
|
|
3
3
|
/**
|
|
4
4
|
* When set to true, placing the toolbar above the selection will be preferenced.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExtractInjectionAPI, UserPreferencesProvider } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
|
|
1
|
+
import type { ExtractInjectionAPI, UserPreferencesProvider } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
|
|
3
3
|
export declare const PageVisibilityWatcher: ({ api, userPreferencesProvider, }: {
|
|
4
4
|
api: ExtractInjectionAPI<SelectionToolbarPlugin> | undefined;
|
|
5
5
|
userPreferencesProvider?: UserPreferencesProvider | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-toolbar",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/css": "^0.10.0",
|
|
37
|
-
"@atlaskit/editor-common": "^105.
|
|
37
|
+
"@atlaskit/editor-common": "^105.9.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
39
|
-
"@atlaskit/editor-plugin-block-controls": "^3.
|
|
39
|
+
"@atlaskit/editor-plugin-block-controls": "^3.15.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
|
-
"@atlaskit/icon": "^26.
|
|
44
|
-
"@atlaskit/icon-lab": "^4.
|
|
45
|
-
"@atlaskit/menu": "^
|
|
43
|
+
"@atlaskit/icon": "^26.2.0",
|
|
44
|
+
"@atlaskit/icon-lab": "^4.15.0",
|
|
45
|
+
"@atlaskit/menu": "^8.0.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
48
|
-
"@atlaskit/tokens": "^4.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^4.25.0",
|
|
48
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"bind-event-listener": "^3.0.0"
|
|
51
51
|
},
|
|
@@ -112,6 +112,9 @@
|
|
|
112
112
|
},
|
|
113
113
|
"platform_editor_controls_patch_8": {
|
|
114
114
|
"type": "boolean"
|
|
115
|
+
},
|
|
116
|
+
"platform_disable_docking_preference_request": {
|
|
117
|
+
"type": "boolean"
|
|
115
118
|
}
|
|
116
119
|
}
|
|
117
120
|
}
|