@atlaskit/editor-plugin-toolbar 3.4.17 → 3.5.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 +17 -0
- package/afm-cc/tsconfig.json +5 -1
- package/afm-jira/tsconfig.json +5 -1
- package/afm-products/tsconfig.json +5 -1
- package/dist/cjs/ui/SelectionToolbar/index.js +2 -1
- package/dist/es2019/ui/SelectionToolbar/index.js +2 -1
- package/dist/esm/ui/SelectionToolbar/index.js +2 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar
|
|
2
2
|
|
|
3
|
+
## 3.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`82d57d01a0f61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/82d57d01a0f61) -
|
|
8
|
+
Distinguish between collab offline and internet offline cases for connectivity mode
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 3.4.18
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 3.4.17
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"target": "es5",
|
|
5
5
|
"outDir": "../../../../../confluence/tsDist/@atlaskit__editor-plugin-toolbar",
|
|
6
6
|
"rootDir": "../",
|
|
7
|
-
"composite": true
|
|
7
|
+
"composite": true,
|
|
8
|
+
"noCheck": true
|
|
8
9
|
},
|
|
9
10
|
"include": [
|
|
10
11
|
"../src/**/*.ts",
|
|
@@ -38,6 +39,9 @@
|
|
|
38
39
|
{
|
|
39
40
|
"path": "../../editor-plugin-user-preferences/afm-cc/tsconfig.json"
|
|
40
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../editor-prosemirror/afm-cc/tsconfig.json"
|
|
44
|
+
},
|
|
41
45
|
{
|
|
42
46
|
"path": "../../editor-toolbar/afm-cc/tsconfig.json"
|
|
43
47
|
},
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"target": "es5",
|
|
5
5
|
"outDir": "../../../../../jira/tsDist/@atlaskit__editor-plugin-toolbar/app",
|
|
6
6
|
"rootDir": "../",
|
|
7
|
-
"composite": true
|
|
7
|
+
"composite": true,
|
|
8
|
+
"noCheck": true
|
|
8
9
|
},
|
|
9
10
|
"include": [
|
|
10
11
|
"../src/**/*.ts",
|
|
@@ -38,6 +39,9 @@
|
|
|
38
39
|
{
|
|
39
40
|
"path": "../../editor-plugin-user-preferences/afm-jira/tsconfig.json"
|
|
40
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../editor-prosemirror/afm-jira/tsconfig.json"
|
|
44
|
+
},
|
|
41
45
|
{
|
|
42
46
|
"path": "../../editor-toolbar/afm-jira/tsconfig.json"
|
|
43
47
|
},
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"target": "es5",
|
|
5
5
|
"outDir": "../../../../../tsDist/@atlaskit__editor-plugin-toolbar/app",
|
|
6
6
|
"rootDir": "../",
|
|
7
|
-
"composite": true
|
|
7
|
+
"composite": true,
|
|
8
|
+
"noCheck": true
|
|
8
9
|
},
|
|
9
10
|
"include": [
|
|
10
11
|
"../src/**/*.ts",
|
|
@@ -38,6 +39,9 @@
|
|
|
38
39
|
{
|
|
39
40
|
"path": "../../editor-plugin-user-preferences/afm-products/tsconfig.json"
|
|
40
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../editor-prosemirror/afm-products/tsconfig.json"
|
|
44
|
+
},
|
|
41
45
|
{
|
|
42
46
|
"path": "../../editor-toolbar/afm-products/tsconfig.json"
|
|
43
47
|
},
|
|
@@ -16,6 +16,7 @@ var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
|
16
16
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
17
17
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
18
18
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
19
|
+
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
19
20
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
20
21
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
21
22
|
var _editorToolbarModel = require("@atlaskit/editor-toolbar-model");
|
|
@@ -129,7 +130,7 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
|
|
|
129
130
|
var _useToolbarUI = (0, _editorToolbar.useToolbarUI)(),
|
|
130
131
|
isDisabled = _useToolbarUI.isDisabled;
|
|
131
132
|
var patch6Enabled = (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
|
|
132
|
-
var isOffline = connectivityStateMode
|
|
133
|
+
var isOffline = (0, _editorPluginConnectivity.isOfflineMode)(connectivityStateMode);
|
|
133
134
|
var isTextSelection = !editorView.state.selection.empty && editorView.state.selection instanceof _state.TextSelection;
|
|
134
135
|
var isAllSelection = !editorView.state.selection.empty && editorView.state.selection instanceof _state.AllSelection;
|
|
135
136
|
var isCellSelection = !editorView.state.selection.empty && '$anchorCell' in editorView.state.selection;
|
|
@@ -9,6 +9,7 @@ import { EditorToolbarProvider, EditorToolbarUIProvider } from '@atlaskit/editor
|
|
|
9
9
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
11
11
|
import { calculateToolbarPositionTrackHead, calculateToolbarPositionOnCellSelection } from '@atlaskit/editor-common/utils';
|
|
12
|
+
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
12
13
|
import { AllSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
14
|
import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useToolbarUI } from '@atlaskit/editor-toolbar';
|
|
14
15
|
import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
|
|
@@ -120,7 +121,7 @@ export const SelectionToolbar = ({
|
|
|
120
121
|
isDisabled
|
|
121
122
|
} = useToolbarUI();
|
|
122
123
|
const patch6Enabled = expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
|
|
123
|
-
const isOffline = connectivityStateMode
|
|
124
|
+
const isOffline = isOfflineMode(connectivityStateMode);
|
|
124
125
|
const isTextSelection = !editorView.state.selection.empty && editorView.state.selection instanceof TextSelection;
|
|
125
126
|
const isAllSelection = !editorView.state.selection.empty && editorView.state.selection instanceof AllSelection;
|
|
126
127
|
const isCellSelection = !editorView.state.selection.empty && '$anchorCell' in editorView.state.selection;
|
|
@@ -9,6 +9,7 @@ import { EditorToolbarProvider, EditorToolbarUIProvider } from '@atlaskit/editor
|
|
|
9
9
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
11
11
|
import { calculateToolbarPositionTrackHead, calculateToolbarPositionOnCellSelection } from '@atlaskit/editor-common/utils';
|
|
12
|
+
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
12
13
|
import { AllSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
14
|
import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useToolbarUI } from '@atlaskit/editor-toolbar';
|
|
14
15
|
import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
|
|
@@ -121,7 +122,7 @@ export var SelectionToolbar = function SelectionToolbar(_ref) {
|
|
|
121
122
|
var _useToolbarUI = useToolbarUI(),
|
|
122
123
|
isDisabled = _useToolbarUI.isDisabled;
|
|
123
124
|
var patch6Enabled = expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true);
|
|
124
|
-
var isOffline = connectivityStateMode
|
|
125
|
+
var isOffline = isOfflineMode(connectivityStateMode);
|
|
125
126
|
var isTextSelection = !editorView.state.selection.empty && editorView.state.selection instanceof TextSelection;
|
|
126
127
|
var isAllSelection = !editorView.state.selection.empty && editorView.state.selection instanceof AllSelection;
|
|
127
128
|
var isCellSelection = !editorView.state.selection.empty && '$anchorCell' in editorView.state.selection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/browser-apis": "^0.0.1",
|
|
32
32
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
33
|
-
"@atlaskit/editor-plugin-connectivity": "^6.
|
|
33
|
+
"@atlaskit/editor-plugin-connectivity": "^6.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-user-preferences": "^4.0.0",
|
|
38
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
38
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
39
39
|
"@atlaskit/editor-toolbar": "^0.18.0",
|
|
40
40
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^16.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"bind-event-listener": "^3.0.0",
|
|
46
46
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^110.
|
|
49
|
+
"@atlaskit/editor-common": "^110.46.0",
|
|
50
50
|
"react": "^18.2.0"
|
|
51
51
|
},
|
|
52
52
|
"platform-feature-flags": {
|