@atlaskit/editor-plugin-media 1.14.2 → 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,18 @@
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
+
10
+ ## 1.14.3
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 1.14.2
4
17
 
5
18
  ### 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 sel = _state2.Selection.findFrom(doc.resolve(selection.$from.pos - 1), -1);
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 sel = Selection.findFrom(doc.resolve(selection.$from.pos - 1), -1);
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 sel = Selection.findFrom(doc.resolve(selection.$from.pos - 1), -1);
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.2",
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,11 +36,11 @@
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.11.0",
40
- "@atlaskit/editor-common": "^78.23.0",
39
+ "@atlaskit/button": "^17.12.0",
40
+ "@atlaskit/editor-common": "^78.26.0",
41
41
  "@atlaskit/editor-palette": "1.5.3",
42
42
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
43
- "@atlaskit/editor-plugin-annotation": "1.5.7",
43
+ "@atlaskit/editor-plugin-annotation": "1.5.8",
44
44
  "@atlaskit/editor-plugin-decorations": "^1.0.0",
45
45
  "@atlaskit/editor-plugin-editor-disabled": "^1.0.0",
46
46
  "@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
@@ -53,22 +53,22 @@
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.1.0",
56
+ "@atlaskit/form": "^9.2.0",
57
57
  "@atlaskit/icon": "^22.1.0",
58
- "@atlaskit/media-card": "^77.10.0",
59
- "@atlaskit/media-client": "^26.2.0",
58
+ "@atlaskit/media-card": "^77.11.0",
59
+ "@atlaskit/media-client": "^26.3.0",
60
60
  "@atlaskit/media-client-react": "^2.0.0",
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.6.0",
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",
68
68
  "@atlaskit/textfield": "^6.1.0",
69
69
  "@atlaskit/theme": "^12.7.0",
70
70
  "@atlaskit/tokens": "^1.43.0",
71
- "@atlaskit/tooltip": "^18.1.0",
71
+ "@atlaskit/tooltip": "^18.2.0",
72
72
  "@babel/runtime": "^7.0.0",
73
73
  "@emotion/react": "^11.7.1",
74
74
  "bind-event-listener": "^2.1.1",