@atlaskit/editor-plugin-extension 5.5.9 → 5.5.11
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/dist/cjs/nodeviews/lazyExtension.js +1 -3
- package/dist/cjs/pm-plugins/toolbar.js +1 -2
- package/dist/es2019/nodeviews/lazyExtension.js +1 -3
- package/dist/es2019/pm-plugins/toolbar.js +1 -2
- package/dist/esm/nodeviews/lazyExtension.js +1 -3
- package/dist/esm/pm-plugins/toolbar.js +1 -2
- package/package.json +5 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 5.5.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#173846](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/173846)
|
|
8
|
+
[`852a3c0aec64b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/852a3c0aec64b) -
|
|
9
|
+
Clean up platform_editor_controls_patch_10
|
|
10
|
+
|
|
11
|
+
## 5.5.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#174513](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174513)
|
|
16
|
+
[`9190f78c5c704`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9190f78c5c704) -
|
|
17
|
+
Remove platform_editor_exp_disable_lnv experiment key.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 5.5.9
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -14,9 +14,7 @@ function lazyExtensionNodeView(nodeName) {
|
|
|
14
14
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
15
15
|
params[_key - 1] = arguments[_key];
|
|
16
16
|
}
|
|
17
|
-
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)
|
|
18
|
-
exposure: true
|
|
19
|
-
})) {
|
|
17
|
+
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
20
18
|
return _extensibility.ExtensionNodeView.apply(void 0, params);
|
|
21
19
|
}
|
|
22
20
|
return (0, _lazyNodeView.withLazyLoading)({
|
|
@@ -18,7 +18,6 @@ var _contentWidthWide = _interopRequireDefault(require("@atlaskit/icon/core/cont
|
|
|
18
18
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
19
19
|
var _expandHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/expand-horizontal"));
|
|
20
20
|
var _editEditorEdit = _interopRequireDefault(require("@atlaskit/icon/core/migration/edit--editor-edit"));
|
|
21
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
21
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
23
22
|
var _actions = require("../editor-actions/actions");
|
|
24
23
|
var _commands = require("../editor-commands/commands");
|
|
@@ -325,7 +324,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref
|
|
|
325
324
|
}, {
|
|
326
325
|
id: 'editor.extension.delete',
|
|
327
326
|
type: 'button',
|
|
328
|
-
icon: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
|
|
327
|
+
icon: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? _delete.default : function () {
|
|
329
328
|
return /*#__PURE__*/_react.default.createElement(_delete.default, {
|
|
330
329
|
label: formatMessage(_messages.default.remove),
|
|
331
330
|
spacing: "spacious"
|
|
@@ -2,9 +2,7 @@ import { ExtensionNodeView } from '@atlaskit/editor-common/extensibility';
|
|
|
2
2
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
4
|
export function lazyExtensionNodeView(nodeName, ...params) {
|
|
5
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)
|
|
6
|
-
exposure: true
|
|
7
|
-
})) {
|
|
5
|
+
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
8
6
|
return ExtensionNodeView(...params);
|
|
9
7
|
}
|
|
10
8
|
return withLazyLoading({
|
|
@@ -10,7 +10,6 @@ import ContentWidthWideIcon from '@atlaskit/icon/core/content-width-wide';
|
|
|
10
10
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
11
11
|
import ExpandHorizontalIcon from '@atlaskit/icon/core/expand-horizontal';
|
|
12
12
|
import EditIcon from '@atlaskit/icon/core/migration/edit--editor-edit';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
14
|
import { editExtension } from '../editor-actions/actions';
|
|
16
15
|
import { removeDescendantNodes, removeExtension, updateExtensionLayout } from '../editor-commands/commands';
|
|
@@ -319,7 +318,7 @@ export const getToolbarConfig = ({
|
|
|
319
318
|
}, {
|
|
320
319
|
id: 'editor.extension.delete',
|
|
321
320
|
type: 'button',
|
|
322
|
-
icon: editorExperiment('platform_editor_controls', 'variant1')
|
|
321
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? DeleteIcon : () => /*#__PURE__*/React.createElement(DeleteIcon, {
|
|
323
322
|
label: formatMessage(commonMessages.remove),
|
|
324
323
|
spacing: "spacious"
|
|
325
324
|
}),
|
|
@@ -5,9 +5,7 @@ export function lazyExtensionNodeView(nodeName) {
|
|
|
5
5
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6
6
|
params[_key - 1] = arguments[_key];
|
|
7
7
|
}
|
|
8
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)
|
|
9
|
-
exposure: true
|
|
10
|
-
})) {
|
|
8
|
+
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
11
9
|
return ExtensionNodeView.apply(void 0, params);
|
|
12
10
|
}
|
|
13
11
|
return withLazyLoading({
|
|
@@ -11,7 +11,6 @@ import ContentWidthWideIcon from '@atlaskit/icon/core/content-width-wide';
|
|
|
11
11
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
12
12
|
import ExpandHorizontalIcon from '@atlaskit/icon/core/expand-horizontal';
|
|
13
13
|
import EditIcon from '@atlaskit/icon/core/migration/edit--editor-edit';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
15
|
import { editExtension } from '../editor-actions/actions';
|
|
17
16
|
import { removeDescendantNodes, removeExtension, updateExtensionLayout } from '../editor-commands/commands';
|
|
@@ -319,7 +318,7 @@ export var getToolbarConfig = function getToolbarConfig(_ref) {
|
|
|
319
318
|
}, {
|
|
320
319
|
id: 'editor.extension.delete',
|
|
321
320
|
type: 'button',
|
|
322
|
-
icon: editorExperiment('platform_editor_controls', 'variant1')
|
|
321
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? DeleteIcon : function () {
|
|
323
322
|
return /*#__PURE__*/React.createElement(DeleteIcon, {
|
|
324
323
|
label: formatMessage(commonMessages.remove),
|
|
325
324
|
spacing: "spacious"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.11",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/button": "^23.2.0",
|
|
33
33
|
"@atlaskit/checkbox": "^17.1.0",
|
|
34
34
|
"@atlaskit/datetime-picker": "^17.0.0",
|
|
35
|
-
"@atlaskit/editor-common": "^107.
|
|
35
|
+
"@atlaskit/editor-common": "^107.1.0",
|
|
36
36
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/empty-state": "^10.0.0",
|
|
48
48
|
"@atlaskit/form": "^12.0.0",
|
|
49
49
|
"@atlaskit/heading": "^5.2.0",
|
|
50
|
-
"@atlaskit/icon": "^27.
|
|
50
|
+
"@atlaskit/icon": "^27.1.0",
|
|
51
51
|
"@atlaskit/link": "^3.2.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/primitives": "^14.9.0",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@atlaskit/textarea": "^8.0.0",
|
|
61
61
|
"@atlaskit/textfield": "^8.0.0",
|
|
62
62
|
"@atlaskit/theme": "^18.0.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^8.0.0",
|
|
64
64
|
"@atlaskit/toggle": "^15.0.0",
|
|
65
|
-
"@atlaskit/tokens": "^5.
|
|
65
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
66
66
|
"@atlaskit/tooltip": "^20.3.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
@@ -124,14 +124,8 @@
|
|
|
124
124
|
"platform_editor_update_extension_local_id_on_reset": {
|
|
125
125
|
"type": "boolean"
|
|
126
126
|
},
|
|
127
|
-
"platform_editor_controls_patch_8": {
|
|
128
|
-
"type": "boolean"
|
|
129
|
-
},
|
|
130
127
|
"dst-a11y__replace-anchor-with-link__editor-core-ex": {
|
|
131
128
|
"type": "boolean"
|
|
132
|
-
},
|
|
133
|
-
"platform_editor_controls_patch_10": {
|
|
134
|
-
"type": "boolean"
|
|
135
129
|
}
|
|
136
130
|
},
|
|
137
131
|
"stricter": {
|