@atlaskit/editor-plugin-insert-block 6.0.2 → 7.0.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
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 6.0.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`39f3b00f65aa0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39f3b00f65aa0) -
|
|
20
|
+
NOISSUE: Patches emotion CSS exports in various editor packages
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 6.0.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -119,6 +119,9 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
|
|
|
119
119
|
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
|
|
120
120
|
isLastItem = _ref2.isLastItem;
|
|
121
121
|
var renderNode = function renderNode(providers) {
|
|
122
|
+
if (!editorView) {
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
122
125
|
return /*#__PURE__*/_react.default.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
123
126
|
pluginInjectionApi: api,
|
|
124
127
|
editorView: editorView,
|
|
@@ -138,6 +141,9 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
|
|
|
138
141
|
});
|
|
139
142
|
};
|
|
140
143
|
if ((0, _experiments.editorExperiment)('platform_editor_prevent_toolbar_layout_shifts', true)) {
|
|
144
|
+
if (!editorView) {
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
141
147
|
return /*#__PURE__*/_react.default.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
142
148
|
pluginInjectionApi: api,
|
|
143
149
|
editorView: editorView,
|
|
@@ -264,7 +270,6 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
264
270
|
disabled = _ref4.disabled,
|
|
265
271
|
isToolbarReducedSpacing = _ref4.isToolbarReducedSpacing,
|
|
266
272
|
isLastItem = _ref4.isLastItem,
|
|
267
|
-
providers = _ref4.providers,
|
|
268
273
|
pluginInjectionApi = _ref4.pluginInjectionApi,
|
|
269
274
|
options = _ref4.options,
|
|
270
275
|
appearance = _ref4.appearance;
|
|
@@ -104,6 +104,9 @@ export const insertBlockPlugin = ({
|
|
|
104
104
|
isLastItem
|
|
105
105
|
}) => {
|
|
106
106
|
const renderNode = providers => {
|
|
107
|
+
if (!editorView) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
107
110
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
108
111
|
pluginInjectionApi: api,
|
|
109
112
|
editorView: editorView,
|
|
@@ -123,6 +126,9 @@ export const insertBlockPlugin = ({
|
|
|
123
126
|
});
|
|
124
127
|
};
|
|
125
128
|
if (editorExperiment('platform_editor_prevent_toolbar_layout_shifts', true)) {
|
|
129
|
+
if (!editorView) {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
126
132
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
127
133
|
pluginInjectionApi: api,
|
|
128
134
|
editorView: editorView,
|
|
@@ -247,7 +253,6 @@ function ToolbarInsertBlockWithInjectionApi({
|
|
|
247
253
|
disabled,
|
|
248
254
|
isToolbarReducedSpacing,
|
|
249
255
|
isLastItem,
|
|
250
|
-
providers,
|
|
251
256
|
pluginInjectionApi,
|
|
252
257
|
options,
|
|
253
258
|
appearance
|
|
@@ -109,6 +109,9 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
109
109
|
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
|
|
110
110
|
isLastItem = _ref2.isLastItem;
|
|
111
111
|
var renderNode = function renderNode(providers) {
|
|
112
|
+
if (!editorView) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
112
115
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
113
116
|
pluginInjectionApi: api,
|
|
114
117
|
editorView: editorView,
|
|
@@ -128,6 +131,9 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
128
131
|
});
|
|
129
132
|
};
|
|
130
133
|
if (editorExperiment('platform_editor_prevent_toolbar_layout_shifts', true)) {
|
|
134
|
+
if (!editorView) {
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
131
137
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
132
138
|
pluginInjectionApi: api,
|
|
133
139
|
editorView: editorView,
|
|
@@ -254,7 +260,6 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
254
260
|
disabled = _ref4.disabled,
|
|
255
261
|
isToolbarReducedSpacing = _ref4.isToolbarReducedSpacing,
|
|
256
262
|
isLastItem = _ref4.isLastItem,
|
|
257
|
-
providers = _ref4.providers,
|
|
258
263
|
pluginInjectionApi = _ref4.pluginInjectionApi,
|
|
259
264
|
options = _ref4.options,
|
|
260
265
|
appearance = _ref4.appearance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,44 +30,44 @@
|
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/button": "^23.4.0",
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
34
|
-
"@atlaskit/editor-plugin-block-type": "^
|
|
35
|
-
"@atlaskit/editor-plugin-code-block": "^
|
|
36
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
37
|
-
"@atlaskit/editor-plugin-date": "^
|
|
38
|
-
"@atlaskit/editor-plugin-emoji": "^
|
|
39
|
-
"@atlaskit/editor-plugin-expand": "^
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "^
|
|
41
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
42
|
-
"@atlaskit/editor-plugin-hyperlink": "^
|
|
43
|
-
"@atlaskit/editor-plugin-image-upload": "^
|
|
44
|
-
"@atlaskit/editor-plugin-layout": "^
|
|
45
|
-
"@atlaskit/editor-plugin-media": "^
|
|
46
|
-
"@atlaskit/editor-plugin-media-insert": "^
|
|
47
|
-
"@atlaskit/editor-plugin-mentions": "^
|
|
48
|
-
"@atlaskit/editor-plugin-metrics": "^
|
|
49
|
-
"@atlaskit/editor-plugin-panel": "^
|
|
50
|
-
"@atlaskit/editor-plugin-placeholder-text": "^
|
|
51
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
52
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
53
|
-
"@atlaskit/editor-plugin-rule": "^
|
|
54
|
-
"@atlaskit/editor-plugin-status": "^
|
|
55
|
-
"@atlaskit/editor-plugin-table": "^
|
|
56
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^
|
|
57
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
58
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^6.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-block-type": "^9.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-code-block": "^8.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-date": "^8.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-emoji": "^7.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-expand": "^7.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "^9.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-feature-flags": "^5.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-hyperlink": "^8.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-image-upload": "^6.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-layout": "^6.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-media": "^8.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-media-insert": "^12.0.0",
|
|
47
|
+
"@atlaskit/editor-plugin-mentions": "^8.0.0",
|
|
48
|
+
"@atlaskit/editor-plugin-metrics": "^7.0.0",
|
|
49
|
+
"@atlaskit/editor-plugin-panel": "^8.0.0",
|
|
50
|
+
"@atlaskit/editor-plugin-placeholder-text": "^6.0.0",
|
|
51
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
|
|
52
|
+
"@atlaskit/editor-plugin-quick-insert": "^6.0.0",
|
|
53
|
+
"@atlaskit/editor-plugin-rule": "^6.0.0",
|
|
54
|
+
"@atlaskit/editor-plugin-status": "^7.0.0",
|
|
55
|
+
"@atlaskit/editor-plugin-table": "^15.0.0",
|
|
56
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^9.0.0",
|
|
57
|
+
"@atlaskit/editor-plugin-toolbar": "^3.0.0",
|
|
58
|
+
"@atlaskit/editor-plugin-type-ahead": "^6.0.0",
|
|
59
59
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
60
60
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
61
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
61
|
+
"@atlaskit/editor-toolbar": "^0.9.0",
|
|
62
62
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
63
63
|
"@atlaskit/emoji": "^69.5.0",
|
|
64
64
|
"@atlaskit/heading": "^5.2.0",
|
|
65
|
-
"@atlaskit/icon": "^28.
|
|
65
|
+
"@atlaskit/icon": "^28.3.0",
|
|
66
66
|
"@atlaskit/icon-lab": "^5.7.0",
|
|
67
67
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
68
|
-
"@atlaskit/primitives": "^14.
|
|
68
|
+
"@atlaskit/primitives": "^14.15.0",
|
|
69
69
|
"@atlaskit/theme": "^21.0.0",
|
|
70
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
70
|
+
"@atlaskit/tmp-editor-statsig": "^12.31.0",
|
|
71
71
|
"@atlaskit/tokens": "^6.3.0",
|
|
72
72
|
"@atlaskit/tooltip": "^20.4.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react-virtualized": "^9.8.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^
|
|
81
|
+
"@atlaskit/editor-common": "^110.0.0",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
83
|
"react-dom": "^18.2.0",
|
|
84
84
|
"react-intl-next": "npm:react-intl@^5.18.1"
|