@atlaskit/editor-plugin-media 1.20.5 → 1.20.6
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 +8 -0
- package/dist/cjs/pm-plugins/main.js +1 -3
- package/dist/cjs/utils/media-single.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -3
- package/dist/es2019/utils/media-single.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -3
- package/dist/esm/utils/media-single.js +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 1.20.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#107335](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107335)
|
|
8
|
+
[`d5457c8afe5f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5457c8afe5f) -
|
|
9
|
+
Cleaned up FF platform.editor.media.autoselect-inserted-image_oumto
|
|
10
|
+
|
|
3
11
|
## 1.20.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -289,9 +289,7 @@ var MediaPluginStateImplementation = exports.MediaPluginStateImplementation = /*
|
|
|
289
289
|
_this.uploadInProgressSubscriptionsNotified = false;
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
|
-
|
|
293
|
-
_this.selectLastAddedMediaNode();
|
|
294
|
-
}
|
|
292
|
+
_this.selectLastAddedMediaNode();
|
|
295
293
|
});
|
|
296
294
|
(0, _defineProperty2.default)(this, "addPendingTask", function (task) {
|
|
297
295
|
_this.taskManager.addPendingTask(task);
|
|
@@ -155,7 +155,7 @@ var insertMediaSingleNode = exports.insertMediaSingleNode = function insertMedia
|
|
|
155
155
|
}
|
|
156
156
|
dispatch(tr);
|
|
157
157
|
}
|
|
158
|
-
if (
|
|
158
|
+
if (onNodeInserted) {
|
|
159
159
|
onNodeInserted(mediaState.id, view.state.selection.to);
|
|
160
160
|
}
|
|
161
161
|
return true;
|
|
@@ -233,9 +233,7 @@ export class MediaPluginStateImplementation {
|
|
|
233
233
|
this.uploadInProgressSubscriptionsNotified = false;
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
|
|
237
|
-
this.selectLastAddedMediaNode();
|
|
238
|
-
}
|
|
236
|
+
this.selectLastAddedMediaNode();
|
|
239
237
|
});
|
|
240
238
|
_defineProperty(this, "addPendingTask", task => {
|
|
241
239
|
this.taskManager.addPendingTask(task);
|
|
@@ -146,7 +146,7 @@ export const insertMediaSingleNode = (view, mediaState, inputMethod, collection,
|
|
|
146
146
|
}
|
|
147
147
|
dispatch(tr);
|
|
148
148
|
}
|
|
149
|
-
if (
|
|
149
|
+
if (onNodeInserted) {
|
|
150
150
|
onNodeInserted(mediaState.id, view.state.selection.to);
|
|
151
151
|
}
|
|
152
152
|
return true;
|
|
@@ -274,9 +274,7 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
|
|
|
274
274
|
_this.uploadInProgressSubscriptionsNotified = false;
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
|
-
|
|
278
|
-
_this.selectLastAddedMediaNode();
|
|
279
|
-
}
|
|
277
|
+
_this.selectLastAddedMediaNode();
|
|
280
278
|
});
|
|
281
279
|
_defineProperty(this, "addPendingTask", function (task) {
|
|
282
280
|
_this.taskManager.addPendingTask(task);
|
|
@@ -146,7 +146,7 @@ export var insertMediaSingleNode = function insertMediaSingleNode(view, mediaSta
|
|
|
146
146
|
}
|
|
147
147
|
dispatch(tr);
|
|
148
148
|
}
|
|
149
|
-
if (
|
|
149
|
+
if (onNodeInserted) {
|
|
150
150
|
onNodeInserted(mediaState.id, view.state.selection.to);
|
|
151
151
|
}
|
|
152
152
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.6",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/media-ui": "^25.10.0",
|
|
65
65
|
"@atlaskit/media-viewer": "^48.6.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
67
|
-
"@atlaskit/primitives": "^6.
|
|
67
|
+
"@atlaskit/primitives": "^6.5.0",
|
|
68
68
|
"@atlaskit/textfield": "^6.3.0",
|
|
69
69
|
"@atlaskit/theme": "^12.8.0",
|
|
70
70
|
"@atlaskit/tokens": "^1.49.0",
|
|
@@ -144,9 +144,6 @@
|
|
|
144
144
|
"platform.editor.media.fix-copy-paste-excel_62g4s": {
|
|
145
145
|
"type": "boolean"
|
|
146
146
|
},
|
|
147
|
-
"platform.editor.media.autoselect-inserted-image_oumto": {
|
|
148
|
-
"type": "boolean"
|
|
149
|
-
},
|
|
150
147
|
"platform.editor.media.preview-in-full-page": {
|
|
151
148
|
"type": "boolean"
|
|
152
149
|
},
|