@atlaskit/editor-plugin-selection 7.0.1 → 7.0.2
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
|
@@ -96,7 +96,9 @@ var getSelectionFragment = exports.getSelectionFragment = function getSelectionF
|
|
|
96
96
|
return fragment;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
-
var getSelectionLocalIds = exports.getSelectionLocalIds =
|
|
99
|
+
var getSelectionLocalIds = exports.getSelectionLocalIds =
|
|
100
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
101
|
+
function getSelectionLocalIds(api) {
|
|
100
102
|
return function () {
|
|
101
103
|
var _api$selection$shared2, _selection;
|
|
102
104
|
var selection = api === null || api === void 0 || (_api$selection$shared2 = api.selection.sharedState) === null || _api$selection$shared2 === void 0 || (_api$selection$shared2 = _api$selection$shared2.currentState()) === null || _api$selection$shared2 === void 0 ? void 0 : _api$selection$shared2.selection;
|
|
@@ -76,7 +76,9 @@ export const getSelectionFragment = api => () => {
|
|
|
76
76
|
});
|
|
77
77
|
return fragment;
|
|
78
78
|
};
|
|
79
|
-
export const getSelectionLocalIds =
|
|
79
|
+
export const getSelectionLocalIds =
|
|
80
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
81
|
+
api => () => {
|
|
80
82
|
var _api$selection$shared3, _api$selection$shared4, _selection;
|
|
81
83
|
let selection = api === null || api === void 0 ? void 0 : (_api$selection$shared3 = api.selection.sharedState) === null || _api$selection$shared3 === void 0 ? void 0 : (_api$selection$shared4 = _api$selection$shared3.currentState()) === null || _api$selection$shared4 === void 0 ? void 0 : _api$selection$shared4.selection;
|
|
82
84
|
if ((_selection = selection) !== null && _selection !== void 0 && _selection.empty) {
|
|
@@ -89,7 +89,9 @@ export var getSelectionFragment = function getSelectionFragment(api) {
|
|
|
89
89
|
return fragment;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
|
-
export var getSelectionLocalIds =
|
|
92
|
+
export var getSelectionLocalIds =
|
|
93
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
94
|
+
function getSelectionLocalIds(api) {
|
|
93
95
|
return function () {
|
|
94
96
|
var _api$selection$shared2, _selection;
|
|
95
97
|
var selection = api === null || api === void 0 || (_api$selection$shared2 = api.selection.sharedState) === null || _api$selection$shared2 === void 0 || (_api$selection$shared2 = _api$selection$shared2.currentState()) === null || _api$selection$shared2 === void 0 ? void 0 : _api$selection$shared2.selection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
23
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
23
|
+
"@atlaskit/editor-plugin-interaction": "^13.0.0",
|
|
24
24
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
25
25
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
26
26
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
27
27
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
28
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
29
|
-
"@atlaskit/tokens": "^
|
|
28
|
+
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
29
|
+
"@atlaskit/tokens": "^10.0.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^111.
|
|
33
|
+
"@atlaskit/editor-common": "^111.8.0",
|
|
34
34
|
"react": "^18.2.0"
|
|
35
35
|
},
|
|
36
36
|
"techstack": {
|