@atlaskit/editor-plugin-selection-extension 13.0.2 → 13.1.1
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
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 13.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`e5cdd96dcf4f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e5cdd96dcf4f9) -
|
|
14
|
+
Clean up platform_editor_hydratable_ui experiment (shipped as enabled)
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 13.0.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -11,7 +11,6 @@ var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
13
13
|
var _usePluginStateEffect = require("@atlaskit/editor-common/use-plugin-state-effect");
|
|
14
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
14
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
15
|
var _insertAdfAtEndOfDoc2 = require("./pm-plugins/actions/insertAdfAtEndOfDoc");
|
|
17
16
|
var _replaceWithAdf2 = require("./pm-plugins/actions/replaceWithAdf");
|
|
@@ -155,7 +154,7 @@ var selectionExtensionPlugin = exports.selectionExtensionPlugin = function selec
|
|
|
155
154
|
},
|
|
156
155
|
usePluginHook: function usePluginHook() {
|
|
157
156
|
(0, _usePluginStateEffect.usePluginStateEffect)(api, ['selection'], function () {
|
|
158
|
-
if ((0,
|
|
157
|
+
if ((0, _coreUtils.isSSR)()) {
|
|
159
158
|
return;
|
|
160
159
|
}
|
|
161
160
|
if (isToolbarAIFCEnabled) {
|
|
@@ -170,7 +169,7 @@ var selectionExtensionPlugin = exports.selectionExtensionPlugin = function selec
|
|
|
170
169
|
contentComponent: function contentComponent(_ref6) {
|
|
171
170
|
var _api$analytics;
|
|
172
171
|
var editorView = _ref6.editorView;
|
|
173
|
-
if (!editorView || (0,
|
|
172
|
+
if (!editorView || (0, _coreUtils.isSSR)()) {
|
|
174
173
|
return null;
|
|
175
174
|
}
|
|
176
175
|
return /*#__PURE__*/_react.default.createElement(_SelectionExtensionComponentWrapper.SelectionExtensionComponentWrapper, {
|
|
@@ -3,7 +3,6 @@ import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
|
3
3
|
import { selectionExtensionMessages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
import { insertAdfAtEndOfDoc } from './pm-plugins/actions/insertAdfAtEndOfDoc';
|
|
9
8
|
import { replaceWithAdf } from './pm-plugins/actions/replaceWithAdf';
|
|
@@ -150,7 +149,7 @@ export const selectionExtensionPlugin = ({
|
|
|
150
149
|
},
|
|
151
150
|
usePluginHook: () => {
|
|
152
151
|
usePluginStateEffect(api, ['selection'], () => {
|
|
153
|
-
if (
|
|
152
|
+
if (isSSR()) {
|
|
154
153
|
return;
|
|
155
154
|
}
|
|
156
155
|
if (isToolbarAIFCEnabled) {
|
|
@@ -166,7 +165,7 @@ export const selectionExtensionPlugin = ({
|
|
|
166
165
|
editorView
|
|
167
166
|
}) => {
|
|
168
167
|
var _api$analytics;
|
|
169
|
-
if (!editorView ||
|
|
168
|
+
if (!editorView || isSSR()) {
|
|
170
169
|
return null;
|
|
171
170
|
}
|
|
172
171
|
return /*#__PURE__*/React.createElement(SelectionExtensionComponentWrapper, {
|
|
@@ -4,7 +4,6 @@ import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
|
4
4
|
import { selectionExtensionMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
6
|
import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
import { insertAdfAtEndOfDoc as _insertAdfAtEndOfDoc } from './pm-plugins/actions/insertAdfAtEndOfDoc';
|
|
10
9
|
import { replaceWithAdf as _replaceWithAdf } from './pm-plugins/actions/replaceWithAdf';
|
|
@@ -148,7 +147,7 @@ export var selectionExtensionPlugin = function selectionExtensionPlugin(_ref) {
|
|
|
148
147
|
},
|
|
149
148
|
usePluginHook: function usePluginHook() {
|
|
150
149
|
usePluginStateEffect(api, ['selection'], function () {
|
|
151
|
-
if (
|
|
150
|
+
if (isSSR()) {
|
|
152
151
|
return;
|
|
153
152
|
}
|
|
154
153
|
if (isToolbarAIFCEnabled) {
|
|
@@ -163,7 +162,7 @@ export var selectionExtensionPlugin = function selectionExtensionPlugin(_ref) {
|
|
|
163
162
|
contentComponent: function contentComponent(_ref6) {
|
|
164
163
|
var _api$analytics;
|
|
165
164
|
var editorView = _ref6.editorView;
|
|
166
|
-
if (!editorView ||
|
|
165
|
+
if (!editorView || isSSR()) {
|
|
167
166
|
return null;
|
|
168
167
|
}
|
|
169
168
|
return /*#__PURE__*/React.createElement(SelectionExtensionComponentWrapper, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.1.1",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/css": "^0.19.0",
|
|
37
37
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
39
|
-
"@atlaskit/editor-plugin-block-controls": "^11.
|
|
39
|
+
"@atlaskit/editor-plugin-block-controls": "^11.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-block-menu": "^9.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^10.0.0",
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
50
|
"@atlaskit/editor-toolbar": "^1.0.0",
|
|
51
|
-
"@atlaskit/icon": "^34.
|
|
51
|
+
"@atlaskit/icon": "^34.3.0",
|
|
52
52
|
"@atlaskit/lozenge": "^13.7.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
54
|
"@atlaskit/primitives": "^19.0.0",
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^66.0.0",
|
|
56
56
|
"@atlaskit/tokens": "^13.0.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
59
59
|
"uuid": "^3.1.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@atlaskit/editor-common": "^114.
|
|
62
|
+
"@atlaskit/editor-common": "^114.7.0",
|
|
63
63
|
"react": "^18.2.0",
|
|
64
64
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
65
65
|
},
|