@atlaskit/editor-plugin-media 12.7.0 → 12.7.2
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 +16 -0
- package/dist/cjs/pm-plugins/main.js +12 -30
- package/dist/es2019/pm-plugins/main.js +10 -26
- package/dist/esm/pm-plugins/main.js +12 -30
- package/package.json +9 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 12.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 12.7.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3a96ba83a62ba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a96ba83a62ba) -
|
|
14
|
+
Clean up feature gate platform_editor_media_disable_save_during_upload. The attempted fix for
|
|
15
|
+
disabling save during upload did not resolve the issue and the code behind this gate has been
|
|
16
|
+
reverted.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 12.7.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -318,27 +318,11 @@ var MediaPluginStateImplementation = exports.MediaPluginStateImplementation = /*
|
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
320
|
});
|
|
321
|
-
|
|
322
|
-
_this.
|
|
323
|
-
|
|
324
|
-
allUploadsFinished: true
|
|
325
|
-
});
|
|
326
|
-
_this.waitForPendingTasks().then(function () {
|
|
327
|
-
if (_this.uploadInProgressSubscriptions.length > 0 && _this.uploadInProgressSubscriptionsNotified) {
|
|
328
|
-
_this.uploadInProgressSubscriptions.forEach(function (fn) {
|
|
329
|
-
return fn(false);
|
|
330
|
-
});
|
|
331
|
-
_this.uploadInProgressSubscriptionsNotified = false;
|
|
332
|
-
}
|
|
333
|
-
});
|
|
334
|
-
});
|
|
335
|
-
} else {
|
|
336
|
-
_this.taskManager.addPendingTask(_uploadingPromise, mediaStateWithContext.id).then(function () {
|
|
337
|
-
_this.updateAndDispatch({
|
|
338
|
-
allUploadsFinished: true
|
|
339
|
-
});
|
|
321
|
+
_this.taskManager.addPendingTask(_uploadingPromise, mediaStateWithContext.id).then(function () {
|
|
322
|
+
_this.updateAndDispatch({
|
|
323
|
+
allUploadsFinished: true
|
|
340
324
|
});
|
|
341
|
-
}
|
|
325
|
+
});
|
|
342
326
|
}
|
|
343
327
|
|
|
344
328
|
// refocus the view
|
|
@@ -346,16 +330,14 @@ var MediaPluginStateImplementation = exports.MediaPluginStateImplementation = /*
|
|
|
346
330
|
if (!view.hasFocus()) {
|
|
347
331
|
view.focus();
|
|
348
332
|
}
|
|
349
|
-
|
|
350
|
-
_this.
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
});
|
|
358
|
-
}
|
|
333
|
+
_this.waitForPendingTasks().then(function () {
|
|
334
|
+
if (_this.uploadInProgressSubscriptions.length > 0 && _this.uploadInProgressSubscriptionsNotified) {
|
|
335
|
+
_this.uploadInProgressSubscriptions.forEach(function (fn) {
|
|
336
|
+
return fn(false);
|
|
337
|
+
});
|
|
338
|
+
_this.uploadInProgressSubscriptionsNotified = false;
|
|
339
|
+
}
|
|
340
|
+
});
|
|
359
341
|
_this.selectLastAddedMediaNode();
|
|
360
342
|
});
|
|
361
343
|
// Ignored via go/ees005
|
|
@@ -302,25 +302,11 @@ export class MediaPluginStateImplementation {
|
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
});
|
|
305
|
-
|
|
306
|
-
this.
|
|
307
|
-
|
|
308
|
-
allUploadsFinished: true
|
|
309
|
-
});
|
|
310
|
-
this.waitForPendingTasks().then(() => {
|
|
311
|
-
if (this.uploadInProgressSubscriptions.length > 0 && this.uploadInProgressSubscriptionsNotified) {
|
|
312
|
-
this.uploadInProgressSubscriptions.forEach(fn => fn(false));
|
|
313
|
-
this.uploadInProgressSubscriptionsNotified = false;
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
} else {
|
|
318
|
-
this.taskManager.addPendingTask(uploadingPromise, mediaStateWithContext.id).then(() => {
|
|
319
|
-
this.updateAndDispatch({
|
|
320
|
-
allUploadsFinished: true
|
|
321
|
-
});
|
|
305
|
+
this.taskManager.addPendingTask(uploadingPromise, mediaStateWithContext.id).then(() => {
|
|
306
|
+
this.updateAndDispatch({
|
|
307
|
+
allUploadsFinished: true
|
|
322
308
|
});
|
|
323
|
-
}
|
|
309
|
+
});
|
|
324
310
|
}
|
|
325
311
|
|
|
326
312
|
// refocus the view
|
|
@@ -330,14 +316,12 @@ export class MediaPluginStateImplementation {
|
|
|
330
316
|
if (!view.hasFocus()) {
|
|
331
317
|
view.focus();
|
|
332
318
|
}
|
|
333
|
-
|
|
334
|
-
this.
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
});
|
|
340
|
-
}
|
|
319
|
+
this.waitForPendingTasks().then(() => {
|
|
320
|
+
if (this.uploadInProgressSubscriptions.length > 0 && this.uploadInProgressSubscriptionsNotified) {
|
|
321
|
+
this.uploadInProgressSubscriptions.forEach(fn => fn(false));
|
|
322
|
+
this.uploadInProgressSubscriptionsNotified = false;
|
|
323
|
+
}
|
|
324
|
+
});
|
|
341
325
|
this.selectLastAddedMediaNode();
|
|
342
326
|
});
|
|
343
327
|
// Ignored via go/ees005
|
|
@@ -310,27 +310,11 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
|
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
});
|
|
313
|
-
|
|
314
|
-
_this.
|
|
315
|
-
|
|
316
|
-
allUploadsFinished: true
|
|
317
|
-
});
|
|
318
|
-
_this.waitForPendingTasks().then(function () {
|
|
319
|
-
if (_this.uploadInProgressSubscriptions.length > 0 && _this.uploadInProgressSubscriptionsNotified) {
|
|
320
|
-
_this.uploadInProgressSubscriptions.forEach(function (fn) {
|
|
321
|
-
return fn(false);
|
|
322
|
-
});
|
|
323
|
-
_this.uploadInProgressSubscriptionsNotified = false;
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
});
|
|
327
|
-
} else {
|
|
328
|
-
_this.taskManager.addPendingTask(_uploadingPromise, mediaStateWithContext.id).then(function () {
|
|
329
|
-
_this.updateAndDispatch({
|
|
330
|
-
allUploadsFinished: true
|
|
331
|
-
});
|
|
313
|
+
_this.taskManager.addPendingTask(_uploadingPromise, mediaStateWithContext.id).then(function () {
|
|
314
|
+
_this.updateAndDispatch({
|
|
315
|
+
allUploadsFinished: true
|
|
332
316
|
});
|
|
333
|
-
}
|
|
317
|
+
});
|
|
334
318
|
}
|
|
335
319
|
|
|
336
320
|
// refocus the view
|
|
@@ -338,16 +322,14 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
|
|
|
338
322
|
if (!view.hasFocus()) {
|
|
339
323
|
view.focus();
|
|
340
324
|
}
|
|
341
|
-
|
|
342
|
-
_this.
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
});
|
|
350
|
-
}
|
|
325
|
+
_this.waitForPendingTasks().then(function () {
|
|
326
|
+
if (_this.uploadInProgressSubscriptions.length > 0 && _this.uploadInProgressSubscriptionsNotified) {
|
|
327
|
+
_this.uploadInProgressSubscriptions.forEach(function (fn) {
|
|
328
|
+
return fn(false);
|
|
329
|
+
});
|
|
330
|
+
_this.uploadInProgressSubscriptionsNotified = false;
|
|
331
|
+
}
|
|
332
|
+
});
|
|
351
333
|
_this.selectLastAddedMediaNode();
|
|
352
334
|
});
|
|
353
335
|
// Ignored via go/ees005
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "12.7.
|
|
3
|
+
"version": "12.7.2",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"@atlaskit/analytics-namespaced-context": "^7.3.0",
|
|
34
34
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
35
35
|
"@atlaskit/button": "^23.11.0",
|
|
36
|
-
"@atlaskit/editor-palette": "^2.
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^10.
|
|
38
|
-
"@atlaskit/editor-plugin-annotation": "^10.
|
|
39
|
-
"@atlaskit/editor-plugin-connectivity": "^10.
|
|
36
|
+
"@atlaskit/editor-palette": "^2.2.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
38
|
+
"@atlaskit/editor-plugin-annotation": "^10.4.0",
|
|
39
|
+
"@atlaskit/editor-plugin-connectivity": "^10.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^10.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-disabled": "^10.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-viewmode": "^12.1.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@atlaskit/editor-plugin-toolbar": "^7.3.0",
|
|
50
50
|
"@atlaskit/editor-plugin-width": "^11.1.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
52
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
53
|
-
"@atlaskit/editor-tables": "^2.
|
|
52
|
+
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
53
|
+
"@atlaskit/editor-tables": "^2.10.0",
|
|
54
54
|
"@atlaskit/form": "^15.5.0",
|
|
55
55
|
"@atlaskit/icon": "^34.5.0",
|
|
56
56
|
"@atlaskit/icon-lab": "^6.9.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
66
|
"@atlaskit/primitives": "^19.0.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.3.0",
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^81.0.0",
|
|
69
69
|
"@atlaskit/tokens": "^13.0.0",
|
|
70
70
|
"@atlaskit/tooltip": "^22.2.0",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"uuid": "^3.1.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@atlaskit/editor-common": "^114.
|
|
80
|
+
"@atlaskit/editor-common": "^114.32.0",
|
|
81
81
|
"@atlaskit/media-core": "^37.0.0",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
83
|
"react-dom": "^18.2.0",
|
|
@@ -159,9 +159,6 @@
|
|
|
159
159
|
"platform_editor_media_border_radius_fix": {
|
|
160
160
|
"type": "boolean"
|
|
161
161
|
},
|
|
162
|
-
"platform_editor_media_disable_save_during_upload": {
|
|
163
|
-
"type": "boolean"
|
|
164
|
-
},
|
|
165
162
|
"cc-maui-phase-2": {
|
|
166
163
|
"type": "boolean"
|
|
167
164
|
}
|