@atlaskit/editor-plugin-insert-block 2.0.3 → 2.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 +21 -0
- package/dist/cjs/plugin.js +14 -3
- package/dist/cjs/ui/ToolbarInsertBlock/index.js +3 -4
- package/dist/es2019/plugin.js +14 -3
- package/dist/es2019/ui/ToolbarInsertBlock/index.js +3 -4
- package/dist/esm/plugin.js +14 -3
- package/dist/esm/ui/ToolbarInsertBlock/index.js +3 -4
- package/dist/types/types.d.ts +2 -0
- package/dist/types-ts4.5/types.d.ts +2 -0
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 2.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#143799](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143799)
|
|
8
|
+
[`28c4ecb75a634`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28c4ecb75a634) -
|
|
9
|
+
removed editorActions from onClick in Props, updated toolbar reference to it
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 2.1.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#143644](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143644)
|
|
17
|
+
[`b5352e3195293`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b5352e3195293) -
|
|
18
|
+
[ux] [ED-24327] Integrate new media popup into toolbar and quick action
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 2.0.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -275,7 +275,7 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
|
|
|
275
275
|
return plugin;
|
|
276
276
|
};
|
|
277
277
|
function ToolbarInsertBlockWithInjectionApi(_ref3) {
|
|
278
|
-
var _ref4,
|
|
278
|
+
var _ref4, _pluginInjectionApi$i, _pluginInjectionApi$c2, _pluginInjectionApi$p, _pluginInjectionApi$b, _pluginInjectionApi$e;
|
|
279
279
|
var editorView = _ref3.editorView,
|
|
280
280
|
editorActions = _ref3.editorActions,
|
|
281
281
|
dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent,
|
|
@@ -311,6 +311,17 @@ function ToolbarInsertBlockWithInjectionApi(_ref3) {
|
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
313
|
var emojiProvider = getEmojiProvider();
|
|
314
|
+
var onShowMediaPicker = function onShowMediaPicker() {
|
|
315
|
+
if (!mediaState) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
if ((0, _experiments.editorExperiment)('add-media-from-url', true)) {
|
|
319
|
+
var _pluginInjectionApi$c, _pluginInjectionApi$m;
|
|
320
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.core) === null || _pluginInjectionApi$c === void 0 || _pluginInjectionApi$c.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$m = pluginInjectionApi.mediaInsert) === null || _pluginInjectionApi$m === void 0 ? void 0 : _pluginInjectionApi$m.commands.showMediaInsertPopup);
|
|
321
|
+
} else {
|
|
322
|
+
mediaState.showMediaPicker();
|
|
323
|
+
}
|
|
324
|
+
};
|
|
314
325
|
return /*#__PURE__*/_react.default.createElement(_ToolbarInsertBlock.default, {
|
|
315
326
|
pluginInjectionApi: pluginInjectionApi,
|
|
316
327
|
buttons: buttons,
|
|
@@ -329,7 +340,7 @@ function ToolbarInsertBlockWithInjectionApi(_ref3) {
|
|
|
329
340
|
layoutSectionEnabled: Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.layout),
|
|
330
341
|
expandEnabled: !!options.allowExpand,
|
|
331
342
|
mediaUploadsEnabled: (_ref4 = mediaState && mediaState.allowsUploads) !== null && _ref4 !== void 0 ? _ref4 : undefined,
|
|
332
|
-
onShowMediaPicker:
|
|
343
|
+
onShowMediaPicker: onShowMediaPicker,
|
|
333
344
|
mediaSupported: !!mediaState,
|
|
334
345
|
imageUploadSupported: !!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.imageUpload),
|
|
335
346
|
imageUploadEnabled: imageUploadState === null || imageUploadState === void 0 ? void 0 : imageUploadState.enabled,
|
|
@@ -341,7 +352,7 @@ function ToolbarInsertBlockWithInjectionApi(_ref3) {
|
|
|
341
352
|
emojiProvider: emojiProvider,
|
|
342
353
|
nativeStatusSupported: options.nativeStatusSupported,
|
|
343
354
|
horizontalRuleEnabled: options.horizontalRuleEnabled,
|
|
344
|
-
onInsertBlockType: handleInsertBlockType(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$
|
|
355
|
+
onInsertBlockType: handleInsertBlockType(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c2 = pluginInjectionApi.codeBlock) === null || _pluginInjectionApi$c2 === void 0 ? void 0 : _pluginInjectionApi$c2.actions.insertCodeBlock, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$p = pluginInjectionApi.panel) === null || _pluginInjectionApi$p === void 0 ? void 0 : _pluginInjectionApi$p.actions.insertPanel, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$b = pluginInjectionApi.blockType) === null || _pluginInjectionApi$b === void 0 ? void 0 : _pluginInjectionApi$b.actions.insertBlockQuote),
|
|
345
356
|
onInsertMacroFromMacroBrowser: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e = pluginInjectionApi.extension) === null || _pluginInjectionApi$e === void 0 ? void 0 : _pluginInjectionApi$e.actions.insertMacroFromMacroBrowser,
|
|
346
357
|
popupsMountPoint: popupsMountPoint,
|
|
347
358
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
@@ -368,7 +368,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
368
368
|
dispatchAnalyticsEvent({
|
|
369
369
|
action: _analytics.ACTION.OPENED,
|
|
370
370
|
actionSubject: _analytics.ACTION_SUBJECT.PICKER,
|
|
371
|
-
actionSubjectId: _analytics.ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
371
|
+
actionSubjectId: (0, _experiments.editorExperiment)('add-media-from-url', true) ? _analytics.ACTION_SUBJECT_ID.PICKER_MEDIA : _analytics.ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
372
372
|
attributes: {
|
|
373
373
|
inputMethod: inputMethod
|
|
374
374
|
},
|
|
@@ -437,7 +437,6 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
437
437
|
inputMethod = _ref5.inputMethod;
|
|
438
438
|
var _this$props10 = _this.props,
|
|
439
439
|
editorView = _this$props10.editorView,
|
|
440
|
-
editorActions = _this$props10.editorActions,
|
|
441
440
|
handleImageUpload = _this$props10.handleImageUpload,
|
|
442
441
|
expandEnabled = _this$props10.expandEnabled;
|
|
443
442
|
|
|
@@ -509,8 +508,8 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
509
508
|
|
|
510
509
|
// eslint-disable-next-line no-fallthrough
|
|
511
510
|
default:
|
|
512
|
-
if (item && item.onClick
|
|
513
|
-
item.onClick(
|
|
511
|
+
if (item && item.onClick) {
|
|
512
|
+
item.onClick();
|
|
514
513
|
break;
|
|
515
514
|
}
|
|
516
515
|
}
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -283,7 +283,7 @@ function ToolbarInsertBlockWithInjectionApi({
|
|
|
283
283
|
options,
|
|
284
284
|
registerToggleDropdownMenuOptions
|
|
285
285
|
}) {
|
|
286
|
-
var _ref,
|
|
286
|
+
var _ref, _pluginInjectionApi$i, _pluginInjectionApi$c2, _pluginInjectionApi$p, _pluginInjectionApi$b, _pluginInjectionApi$e;
|
|
287
287
|
const buttons = toolbarSizeToButtons(toolbarSize);
|
|
288
288
|
const {
|
|
289
289
|
dateState,
|
|
@@ -306,6 +306,17 @@ function ToolbarInsertBlockWithInjectionApi({
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
const emojiProvider = getEmojiProvider();
|
|
309
|
+
const onShowMediaPicker = () => {
|
|
310
|
+
if (!mediaState) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
if (editorExperiment('add-media-from-url', true)) {
|
|
314
|
+
var _pluginInjectionApi$c, _pluginInjectionApi$m;
|
|
315
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$c = pluginInjectionApi.core) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$m = pluginInjectionApi.mediaInsert) === null || _pluginInjectionApi$m === void 0 ? void 0 : _pluginInjectionApi$m.commands.showMediaInsertPopup);
|
|
316
|
+
} else {
|
|
317
|
+
mediaState.showMediaPicker();
|
|
318
|
+
}
|
|
319
|
+
};
|
|
309
320
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlock, {
|
|
310
321
|
pluginInjectionApi: pluginInjectionApi,
|
|
311
322
|
buttons: buttons,
|
|
@@ -324,7 +335,7 @@ function ToolbarInsertBlockWithInjectionApi({
|
|
|
324
335
|
layoutSectionEnabled: Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.layout),
|
|
325
336
|
expandEnabled: !!options.allowExpand,
|
|
326
337
|
mediaUploadsEnabled: (_ref = mediaState && mediaState.allowsUploads) !== null && _ref !== void 0 ? _ref : undefined,
|
|
327
|
-
onShowMediaPicker:
|
|
338
|
+
onShowMediaPicker: onShowMediaPicker,
|
|
328
339
|
mediaSupported: !!mediaState,
|
|
329
340
|
imageUploadSupported: !!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.imageUpload),
|
|
330
341
|
imageUploadEnabled: imageUploadState === null || imageUploadState === void 0 ? void 0 : imageUploadState.enabled,
|
|
@@ -336,7 +347,7 @@ function ToolbarInsertBlockWithInjectionApi({
|
|
|
336
347
|
emojiProvider: emojiProvider,
|
|
337
348
|
nativeStatusSupported: options.nativeStatusSupported,
|
|
338
349
|
horizontalRuleEnabled: options.horizontalRuleEnabled,
|
|
339
|
-
onInsertBlockType: handleInsertBlockType(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$
|
|
350
|
+
onInsertBlockType: handleInsertBlockType(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$c2 = pluginInjectionApi.codeBlock) === null || _pluginInjectionApi$c2 === void 0 ? void 0 : _pluginInjectionApi$c2.actions.insertCodeBlock, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$p = pluginInjectionApi.panel) === null || _pluginInjectionApi$p === void 0 ? void 0 : _pluginInjectionApi$p.actions.insertPanel, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$b = pluginInjectionApi.blockType) === null || _pluginInjectionApi$b === void 0 ? void 0 : _pluginInjectionApi$b.actions.insertBlockQuote),
|
|
340
351
|
onInsertMacroFromMacroBrowser: pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$e = pluginInjectionApi.extension) === null || _pluginInjectionApi$e === void 0 ? void 0 : _pluginInjectionApi$e.actions.insertMacroFromMacroBrowser,
|
|
341
352
|
popupsMountPoint: popupsMountPoint,
|
|
342
353
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
@@ -384,7 +384,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
384
384
|
dispatchAnalyticsEvent({
|
|
385
385
|
action: ACTION.OPENED,
|
|
386
386
|
actionSubject: ACTION_SUBJECT.PICKER,
|
|
387
|
-
actionSubjectId: ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
387
|
+
actionSubjectId: editorExperiment('add-media-from-url', true) ? ACTION_SUBJECT_ID.PICKER_MEDIA : ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
388
388
|
attributes: {
|
|
389
389
|
inputMethod
|
|
390
390
|
},
|
|
@@ -463,7 +463,6 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
463
463
|
}) => {
|
|
464
464
|
const {
|
|
465
465
|
editorView,
|
|
466
|
-
editorActions,
|
|
467
466
|
handleImageUpload,
|
|
468
467
|
expandEnabled
|
|
469
468
|
} = this.props;
|
|
@@ -538,8 +537,8 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
538
537
|
|
|
539
538
|
// eslint-disable-next-line no-fallthrough
|
|
540
539
|
default:
|
|
541
|
-
if (item && item.onClick
|
|
542
|
-
item.onClick(
|
|
540
|
+
if (item && item.onClick) {
|
|
541
|
+
item.onClick();
|
|
543
542
|
break;
|
|
544
543
|
}
|
|
545
544
|
}
|
package/dist/esm/plugin.js
CHANGED
|
@@ -265,7 +265,7 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
265
265
|
return plugin;
|
|
266
266
|
};
|
|
267
267
|
function ToolbarInsertBlockWithInjectionApi(_ref3) {
|
|
268
|
-
var _ref4,
|
|
268
|
+
var _ref4, _pluginInjectionApi$i, _pluginInjectionApi$c2, _pluginInjectionApi$p, _pluginInjectionApi$b, _pluginInjectionApi$e;
|
|
269
269
|
var editorView = _ref3.editorView,
|
|
270
270
|
editorActions = _ref3.editorActions,
|
|
271
271
|
dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent,
|
|
@@ -301,6 +301,17 @@ function ToolbarInsertBlockWithInjectionApi(_ref3) {
|
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
var emojiProvider = getEmojiProvider();
|
|
304
|
+
var onShowMediaPicker = function onShowMediaPicker() {
|
|
305
|
+
if (!mediaState) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
if (editorExperiment('add-media-from-url', true)) {
|
|
309
|
+
var _pluginInjectionApi$c, _pluginInjectionApi$m;
|
|
310
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.core) === null || _pluginInjectionApi$c === void 0 || _pluginInjectionApi$c.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$m = pluginInjectionApi.mediaInsert) === null || _pluginInjectionApi$m === void 0 ? void 0 : _pluginInjectionApi$m.commands.showMediaInsertPopup);
|
|
311
|
+
} else {
|
|
312
|
+
mediaState.showMediaPicker();
|
|
313
|
+
}
|
|
314
|
+
};
|
|
304
315
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlock, {
|
|
305
316
|
pluginInjectionApi: pluginInjectionApi,
|
|
306
317
|
buttons: buttons,
|
|
@@ -319,7 +330,7 @@ function ToolbarInsertBlockWithInjectionApi(_ref3) {
|
|
|
319
330
|
layoutSectionEnabled: Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.layout),
|
|
320
331
|
expandEnabled: !!options.allowExpand,
|
|
321
332
|
mediaUploadsEnabled: (_ref4 = mediaState && mediaState.allowsUploads) !== null && _ref4 !== void 0 ? _ref4 : undefined,
|
|
322
|
-
onShowMediaPicker:
|
|
333
|
+
onShowMediaPicker: onShowMediaPicker,
|
|
323
334
|
mediaSupported: !!mediaState,
|
|
324
335
|
imageUploadSupported: !!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.imageUpload),
|
|
325
336
|
imageUploadEnabled: imageUploadState === null || imageUploadState === void 0 ? void 0 : imageUploadState.enabled,
|
|
@@ -331,7 +342,7 @@ function ToolbarInsertBlockWithInjectionApi(_ref3) {
|
|
|
331
342
|
emojiProvider: emojiProvider,
|
|
332
343
|
nativeStatusSupported: options.nativeStatusSupported,
|
|
333
344
|
horizontalRuleEnabled: options.horizontalRuleEnabled,
|
|
334
|
-
onInsertBlockType: handleInsertBlockType(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$
|
|
345
|
+
onInsertBlockType: handleInsertBlockType(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c2 = pluginInjectionApi.codeBlock) === null || _pluginInjectionApi$c2 === void 0 ? void 0 : _pluginInjectionApi$c2.actions.insertCodeBlock, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$p = pluginInjectionApi.panel) === null || _pluginInjectionApi$p === void 0 ? void 0 : _pluginInjectionApi$p.actions.insertPanel, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$b = pluginInjectionApi.blockType) === null || _pluginInjectionApi$b === void 0 ? void 0 : _pluginInjectionApi$b.actions.insertBlockQuote),
|
|
335
346
|
onInsertMacroFromMacroBrowser: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e = pluginInjectionApi.extension) === null || _pluginInjectionApi$e === void 0 ? void 0 : _pluginInjectionApi$e.actions.insertMacroFromMacroBrowser,
|
|
336
347
|
popupsMountPoint: popupsMountPoint,
|
|
337
348
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
@@ -359,7 +359,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
359
359
|
dispatchAnalyticsEvent({
|
|
360
360
|
action: ACTION.OPENED,
|
|
361
361
|
actionSubject: ACTION_SUBJECT.PICKER,
|
|
362
|
-
actionSubjectId: ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
362
|
+
actionSubjectId: editorExperiment('add-media-from-url', true) ? ACTION_SUBJECT_ID.PICKER_MEDIA : ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
363
363
|
attributes: {
|
|
364
364
|
inputMethod: inputMethod
|
|
365
365
|
},
|
|
@@ -428,7 +428,6 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
428
428
|
inputMethod = _ref5.inputMethod;
|
|
429
429
|
var _this$props10 = _this.props,
|
|
430
430
|
editorView = _this$props10.editorView,
|
|
431
|
-
editorActions = _this$props10.editorActions,
|
|
432
431
|
handleImageUpload = _this$props10.handleImageUpload,
|
|
433
432
|
expandEnabled = _this$props10.expandEnabled;
|
|
434
433
|
|
|
@@ -500,8 +499,8 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
500
499
|
|
|
501
500
|
// eslint-disable-next-line no-fallthrough
|
|
502
501
|
default:
|
|
503
|
-
if (item && item.onClick
|
|
504
|
-
item.onClick(
|
|
502
|
+
if (item && item.onClick) {
|
|
503
|
+
item.onClick();
|
|
505
504
|
break;
|
|
506
505
|
}
|
|
507
506
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
|
12
12
|
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
13
13
|
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
14
14
|
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
15
|
+
import type { MediaInsertPlugin } from '@atlaskit/editor-plugin-media-insert';
|
|
15
16
|
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
16
17
|
import type { PanelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
17
18
|
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
@@ -36,6 +37,7 @@ export type InsertBlockPluginDependencies = [
|
|
|
36
37
|
OptionalPlugin<CodeBlockPlugin>,
|
|
37
38
|
OptionalPlugin<PanelPlugin>,
|
|
38
39
|
OptionalPlugin<MediaPlugin>,
|
|
40
|
+
OptionalPlugin<MediaInsertPlugin>,
|
|
39
41
|
OptionalPlugin<MentionsPlugin>,
|
|
40
42
|
OptionalPlugin<StatusPlugin>,
|
|
41
43
|
OptionalPlugin<LayoutPlugin>,
|
|
@@ -12,6 +12,7 @@ import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
|
12
12
|
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
13
13
|
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
14
14
|
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
15
|
+
import type { MediaInsertPlugin } from '@atlaskit/editor-plugin-media-insert';
|
|
15
16
|
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
16
17
|
import type { PanelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
17
18
|
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
@@ -36,6 +37,7 @@ export type InsertBlockPluginDependencies = [
|
|
|
36
37
|
OptionalPlugin<CodeBlockPlugin>,
|
|
37
38
|
OptionalPlugin<PanelPlugin>,
|
|
38
39
|
OptionalPlugin<MediaPlugin>,
|
|
40
|
+
OptionalPlugin<MediaInsertPlugin>,
|
|
39
41
|
OptionalPlugin<MentionsPlugin>,
|
|
40
42
|
OptionalPlugin<StatusPlugin>,
|
|
41
43
|
OptionalPlugin<LayoutPlugin>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/button": "^20.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^91.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
37
37
|
"@atlaskit/editor-plugin-block-type": "^3.15.0",
|
|
38
38
|
"@atlaskit/editor-plugin-code-block": "^3.3.0",
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"@atlaskit/editor-plugin-hyperlink": "^2.9.0",
|
|
45
45
|
"@atlaskit/editor-plugin-image-upload": "^1.2.0",
|
|
46
46
|
"@atlaskit/editor-plugin-layout": "^1.8.0",
|
|
47
|
-
"@atlaskit/editor-plugin-media": "^1.
|
|
47
|
+
"@atlaskit/editor-plugin-media": "^1.32.0",
|
|
48
|
+
"@atlaskit/editor-plugin-media-insert": "^2.8.0",
|
|
48
49
|
"@atlaskit/editor-plugin-mentions": "^2.6.0",
|
|
49
50
|
"@atlaskit/editor-plugin-panel": "^2.5.0",
|
|
50
51
|
"@atlaskit/editor-plugin-placeholder-text": "^1.7.0",
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
"@atlaskit/primitives": "^12.2.0",
|
|
66
67
|
"@atlaskit/theme": "^13.0.0",
|
|
67
68
|
"@atlaskit/tmp-editor-statsig": "^2.1.0",
|
|
68
|
-
"@atlaskit/tokens": "^1.
|
|
69
|
+
"@atlaskit/tokens": "^1.61.0",
|
|
69
70
|
"@atlaskit/tooltip": "18.7.2",
|
|
70
71
|
"@babel/runtime": "^7.0.0",
|
|
71
72
|
"@emotion/react": "^11.7.1",
|