@atlaskit/editor-plugin-insert-block 2.4.0 → 2.4.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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 2.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#155333](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155333)
|
|
8
|
+
[`8b2c7d6c20aa1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b2c7d6c20aa1) -
|
|
9
|
+
change logic to ensure plus menu can open in comment when insert-right-rail experiment is enabled
|
|
10
|
+
- [#155735](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155735)
|
|
11
|
+
[`1beeeda29023a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1beeeda29023a) -
|
|
12
|
+
Upgrades editor packages to react 18
|
|
13
|
+
- [#155345](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155345)
|
|
14
|
+
[`9f00717c4915b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f00717c4915b) -
|
|
15
|
+
[ux] Add layout placeholder behind feature gate
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.4.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -350,8 +350,9 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
350
350
|
var _pluginInjectionApi$l;
|
|
351
351
|
var _this$props4 = _this.props,
|
|
352
352
|
editorView = _this$props4.editorView,
|
|
353
|
-
pluginInjectionApi = _this$props4.pluginInjectionApi
|
|
354
|
-
|
|
353
|
+
pluginInjectionApi = _this$props4.pluginInjectionApi,
|
|
354
|
+
intl = _this$props4.intl;
|
|
355
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$l = pluginInjectionApi.layout) === null || _pluginInjectionApi$l === void 0 || _pluginInjectionApi$l.actions.insertLayoutColumns(inputMethod, intl.formatMessage)(editorView.state, editorView.dispatch);
|
|
355
356
|
return true;
|
|
356
357
|
});
|
|
357
358
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createStatus", function (inputMethod) {
|
|
@@ -786,7 +787,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
786
787
|
editorView: this.props.editorView,
|
|
787
788
|
spacing: this.props.isReducedSpacing ? 'none' : 'default',
|
|
788
789
|
label: this.props.intl.formatMessage(_messages.messages.insertMenu),
|
|
789
|
-
open:
|
|
790
|
+
open: (0, _experiments.editorExperiment)('insert-menu-in-right-rail', true) ? !isFullPageAppearance && this.state.isPlusMenuOpen : this.state.isPlusMenuOpen,
|
|
790
791
|
plusButtonRef: this.plusButtonRef,
|
|
791
792
|
items: this.state.dropdownItems,
|
|
792
793
|
onRef: this.handleDropDownButtonRef,
|
|
@@ -360,9 +360,10 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
360
360
|
var _pluginInjectionApi$l;
|
|
361
361
|
const {
|
|
362
362
|
editorView,
|
|
363
|
-
pluginInjectionApi
|
|
363
|
+
pluginInjectionApi,
|
|
364
|
+
intl
|
|
364
365
|
} = this.props;
|
|
365
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$l = pluginInjectionApi.layout) === null || _pluginInjectionApi$l === void 0 ? void 0 : _pluginInjectionApi$l.actions.insertLayoutColumns(inputMethod)(editorView.state, editorView.dispatch);
|
|
366
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$l = pluginInjectionApi.layout) === null || _pluginInjectionApi$l === void 0 ? void 0 : _pluginInjectionApi$l.actions.insertLayoutColumns(inputMethod, intl.formatMessage)(editorView.state, editorView.dispatch);
|
|
366
367
|
return true;
|
|
367
368
|
});
|
|
368
369
|
_defineProperty(this, "createStatus", inputMethod => {
|
|
@@ -820,7 +821,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
820
821
|
editorView: this.props.editorView,
|
|
821
822
|
spacing: this.props.isReducedSpacing ? 'none' : 'default',
|
|
822
823
|
label: this.props.intl.formatMessage(messages.insertMenu),
|
|
823
|
-
open:
|
|
824
|
+
open: editorExperiment('insert-menu-in-right-rail', true) ? !isFullPageAppearance && this.state.isPlusMenuOpen : this.state.isPlusMenuOpen,
|
|
824
825
|
plusButtonRef: this.plusButtonRef,
|
|
825
826
|
items: this.state.dropdownItems,
|
|
826
827
|
onRef: this.handleDropDownButtonRef,
|
|
@@ -341,8 +341,9 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
341
341
|
var _pluginInjectionApi$l;
|
|
342
342
|
var _this$props4 = _this.props,
|
|
343
343
|
editorView = _this$props4.editorView,
|
|
344
|
-
pluginInjectionApi = _this$props4.pluginInjectionApi
|
|
345
|
-
|
|
344
|
+
pluginInjectionApi = _this$props4.pluginInjectionApi,
|
|
345
|
+
intl = _this$props4.intl;
|
|
346
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$l = pluginInjectionApi.layout) === null || _pluginInjectionApi$l === void 0 || _pluginInjectionApi$l.actions.insertLayoutColumns(inputMethod, intl.formatMessage)(editorView.state, editorView.dispatch);
|
|
346
347
|
return true;
|
|
347
348
|
});
|
|
348
349
|
_defineProperty(_assertThisInitialized(_this), "createStatus", function (inputMethod) {
|
|
@@ -777,7 +778,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
777
778
|
editorView: this.props.editorView,
|
|
778
779
|
spacing: this.props.isReducedSpacing ? 'none' : 'default',
|
|
779
780
|
label: this.props.intl.formatMessage(messages.insertMenu),
|
|
780
|
-
open:
|
|
781
|
+
open: editorExperiment('insert-menu-in-right-rail', true) ? !isFullPageAppearance && this.state.isPlusMenuOpen : this.state.isPlusMenuOpen,
|
|
781
782
|
plusButtonRef: this.plusButtonRef,
|
|
782
783
|
items: this.state.dropdownItems,
|
|
783
784
|
onRef: this.handleDropDownButtonRef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Lego",
|
|
12
12
|
"singleton": true,
|
|
13
|
-
"runReact18":
|
|
13
|
+
"runReact18": true
|
|
14
14
|
},
|
|
15
15
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
16
16
|
"main": "dist/cjs/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/button": "^20.
|
|
35
|
-
"@atlaskit/editor-common": "^94.
|
|
34
|
+
"@atlaskit/button": "^20.3.0",
|
|
35
|
+
"@atlaskit/editor-common": "^94.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
37
|
"@atlaskit/editor-plugin-block-type": "^3.16.0",
|
|
38
38
|
"@atlaskit/editor-plugin-code-block": "^3.5.0",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"@atlaskit/editor-shared-styles": "^3.0.0",
|
|
61
61
|
"@atlaskit/emoji": "^67.8.0",
|
|
62
62
|
"@atlaskit/heading": "2.4.6",
|
|
63
|
-
"@atlaskit/icon": "^22.
|
|
63
|
+
"@atlaskit/icon": "^22.24.0",
|
|
64
64
|
"@atlaskit/icon-lab": "^1.0.0",
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
66
66
|
"@atlaskit/primitives": "^12.2.0",
|
|
67
67
|
"@atlaskit/theme": "^14.0.0",
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^2.8.0",
|
|
69
69
|
"@atlaskit/tokens": "^2.0.0",
|
|
70
70
|
"@atlaskit/tooltip": "18.8.5",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|
|
@@ -85,7 +85,6 @@
|
|
|
85
85
|
"@atlaskit/ssr": "*",
|
|
86
86
|
"@atlaskit/visual-regression": "*",
|
|
87
87
|
"@testing-library/react": "^12.1.5",
|
|
88
|
-
"react-dom": "^16.8.0",
|
|
89
88
|
"typescript": "~5.4.2"
|
|
90
89
|
},
|
|
91
90
|
"techstack": {
|