@atlaskit/editor-plugin-media 1.14.3 → 1.14.4
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,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 1.14.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#90865](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90865) [`bffb7089e74e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bffb7089e74e) - This changeset exists because a PR touches these packages in a way that doesn't require a release
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 1.14.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -483,7 +483,8 @@ var MediaPluginStateImplementation = exports.MediaPluginStateImplementation = /*
|
|
|
483
483
|
// @see https://product-fabric.atlassian.net/browse/MEX-2457
|
|
484
484
|
// If the media node is the last selectable item in the current cursor position and it is located within a mediaGroup,
|
|
485
485
|
// we relocate the cursor to the first child of the mediaGroup.
|
|
486
|
-
var
|
|
486
|
+
var pos = Math.max(0, selection.$from.pos - 1);
|
|
487
|
+
var sel = _state2.Selection.findFrom(doc.resolve(pos), -1);
|
|
487
488
|
if (sel && (0, _utils2.findSelectedNodeOfType)(media)(sel)) {
|
|
488
489
|
var parent = (0, _utils2.findParentNodeOfType)(mediaGroup)(sel);
|
|
489
490
|
if (parent) {
|
|
@@ -426,7 +426,8 @@ export class MediaPluginStateImplementation {
|
|
|
426
426
|
// @see https://product-fabric.atlassian.net/browse/MEX-2457
|
|
427
427
|
// If the media node is the last selectable item in the current cursor position and it is located within a mediaGroup,
|
|
428
428
|
// we relocate the cursor to the first child of the mediaGroup.
|
|
429
|
-
const
|
|
429
|
+
const pos = Math.max(0, selection.$from.pos - 1);
|
|
430
|
+
const sel = Selection.findFrom(doc.resolve(pos), -1);
|
|
430
431
|
if (sel && findSelectedNodeOfType(media)(sel)) {
|
|
431
432
|
const parent = findParentNodeOfType(mediaGroup)(sel);
|
|
432
433
|
if (parent) {
|
|
@@ -468,7 +468,8 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
|
|
|
468
468
|
// @see https://product-fabric.atlassian.net/browse/MEX-2457
|
|
469
469
|
// If the media node is the last selectable item in the current cursor position and it is located within a mediaGroup,
|
|
470
470
|
// we relocate the cursor to the first child of the mediaGroup.
|
|
471
|
-
var
|
|
471
|
+
var pos = Math.max(0, selection.$from.pos - 1);
|
|
472
|
+
var sel = Selection.findFrom(doc.resolve(pos), -1);
|
|
472
473
|
if (sel && findSelectedNodeOfType(media)(sel)) {
|
|
473
474
|
var parent = findParentNodeOfType(mediaGroup)(sel);
|
|
474
475
|
if (parent) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.4",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/adf-schema": "^35.8.0",
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
39
|
-
"@atlaskit/button": "^17.
|
|
39
|
+
"@atlaskit/button": "^17.12.0",
|
|
40
40
|
"@atlaskit/editor-common": "^78.26.0",
|
|
41
41
|
"@atlaskit/editor-palette": "1.5.3",
|
|
42
42
|
"@atlaskit/editor-plugin-analytics": "^1.0.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
54
54
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
55
55
|
"@atlaskit/editor-tables": "^2.6.0",
|
|
56
|
-
"@atlaskit/form": "^9.
|
|
56
|
+
"@atlaskit/form": "^9.2.0",
|
|
57
57
|
"@atlaskit/icon": "^22.1.0",
|
|
58
58
|
"@atlaskit/media-card": "^77.11.0",
|
|
59
59
|
"@atlaskit/media-client": "^26.3.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/media-common": "^11.1.0",
|
|
62
62
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
63
63
|
"@atlaskit/media-picker": "^66.4.0",
|
|
64
|
-
"@atlaskit/media-ui": "^25.
|
|
64
|
+
"@atlaskit/media-ui": "^25.7.0",
|
|
65
65
|
"@atlaskit/media-viewer": "^48.4.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
67
67
|
"@atlaskit/primitives": "^5.5.0",
|