@atlaskit/editor-plugin-insert-block 3.1.0 → 3.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 +10 -0
- package/dist/cjs/insertBlockPlugin.js +1 -1
- package/dist/cjs/ui/ToolbarInsertBlock/index.js +1 -1
- package/dist/es2019/insertBlockPlugin.js +1 -1
- package/dist/es2019/ui/ToolbarInsertBlock/index.js +1 -1
- package/dist/esm/insertBlockPlugin.js +1 -1
- package/dist/esm/ui/ToolbarInsertBlock/index.js +1 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 3.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#128664](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128664)
|
|
8
|
+
[`abca3266336d9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/abca3266336d9) -
|
|
9
|
+
[ED-23250] Remove form element from MediaFromUrl and consolidate experiments and feature flags in
|
|
10
|
+
prepartion for jira release
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 3.1.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -350,7 +350,7 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
350
350
|
if (!mediaState) {
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
353
|
-
if ((0,
|
|
353
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_add_media_from_url_rollout')) {
|
|
354
354
|
var _pluginInjectionApi$c, _pluginInjectionApi$m;
|
|
355
355
|
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(mountInfo));
|
|
356
356
|
} else {
|
|
@@ -409,7 +409,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
409
409
|
dispatchAnalyticsEvent({
|
|
410
410
|
action: _analytics.ACTION.OPENED,
|
|
411
411
|
actionSubject: _analytics.ACTION_SUBJECT.PICKER,
|
|
412
|
-
actionSubjectId: (0,
|
|
412
|
+
actionSubjectId: (0, _platformFeatureFlags.fg)('platform_editor_add_media_from_url_rollout') ? _analytics.ACTION_SUBJECT_ID.PICKER_MEDIA : _analytics.ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
413
413
|
attributes: {
|
|
414
414
|
inputMethod: inputMethod
|
|
415
415
|
},
|
|
@@ -337,7 +337,7 @@ function ToolbarInsertBlockWithInjectionApi({
|
|
|
337
337
|
if (!mediaState) {
|
|
338
338
|
return;
|
|
339
339
|
}
|
|
340
|
-
if (
|
|
340
|
+
if (fg('platform_editor_add_media_from_url_rollout')) {
|
|
341
341
|
var _pluginInjectionApi$c, _pluginInjectionApi$m;
|
|
342
342
|
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(mountInfo));
|
|
343
343
|
} else {
|
|
@@ -432,7 +432,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
432
432
|
dispatchAnalyticsEvent({
|
|
433
433
|
action: ACTION.OPENED,
|
|
434
434
|
actionSubject: ACTION_SUBJECT.PICKER,
|
|
435
|
-
actionSubjectId:
|
|
435
|
+
actionSubjectId: fg('platform_editor_add_media_from_url_rollout') ? ACTION_SUBJECT_ID.PICKER_MEDIA : ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
436
436
|
attributes: {
|
|
437
437
|
inputMethod
|
|
438
438
|
},
|
|
@@ -339,7 +339,7 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
339
339
|
if (!mediaState) {
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
if (
|
|
342
|
+
if (fg('platform_editor_add_media_from_url_rollout')) {
|
|
343
343
|
var _pluginInjectionApi$c, _pluginInjectionApi$m;
|
|
344
344
|
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(mountInfo));
|
|
345
345
|
} else {
|
|
@@ -403,7 +403,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
403
403
|
dispatchAnalyticsEvent({
|
|
404
404
|
action: ACTION.OPENED,
|
|
405
405
|
actionSubject: ACTION_SUBJECT.PICKER,
|
|
406
|
-
actionSubjectId:
|
|
406
|
+
actionSubjectId: fg('platform_editor_add_media_from_url_rollout') ? ACTION_SUBJECT_ID.PICKER_MEDIA : ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
407
407
|
attributes: {
|
|
408
408
|
inputMethod: inputMethod
|
|
409
409
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/editor-plugin-image-upload": "^2.0.0",
|
|
49
49
|
"@atlaskit/editor-plugin-layout": "^2.3.0",
|
|
50
50
|
"@atlaskit/editor-plugin-media": "^2.3.0",
|
|
51
|
-
"@atlaskit/editor-plugin-media-insert": "^6.
|
|
51
|
+
"@atlaskit/editor-plugin-media-insert": "^6.2.0",
|
|
52
52
|
"@atlaskit/editor-plugin-mentions": "^4.1.0",
|
|
53
53
|
"@atlaskit/editor-plugin-metrics": "^3.4.0",
|
|
54
54
|
"@atlaskit/editor-plugin-panel": "^4.3.0",
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"@atlaskit/emoji": "^69.0.0",
|
|
66
66
|
"@atlaskit/heading": "^5.1.0",
|
|
67
67
|
"@atlaskit/icon": "^25.0.0",
|
|
68
|
-
"@atlaskit/icon-lab": "^4.
|
|
68
|
+
"@atlaskit/icon-lab": "^4.3.0",
|
|
69
69
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
70
70
|
"@atlaskit/primitives": "^14.2.0",
|
|
71
71
|
"@atlaskit/theme": "^18.0.0",
|
|
72
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
72
|
+
"@atlaskit/tmp-editor-statsig": "^4.3.0",
|
|
73
73
|
"@atlaskit/tokens": "^4.5.0",
|
|
74
74
|
"@atlaskit/tooltip": "^20.0.0",
|
|
75
75
|
"@babel/runtime": "^7.0.0",
|
|
@@ -138,6 +138,9 @@
|
|
|
138
138
|
},
|
|
139
139
|
"platform_editor_preload_emoji_picker": {
|
|
140
140
|
"type": "boolean"
|
|
141
|
+
},
|
|
142
|
+
"platform_editor_add_media_from_url_rollout": {
|
|
143
|
+
"type": "boolean"
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
146
|
}
|