@atlaskit/editor-plugin-media 9.4.5 → 9.4.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 9.4.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 9.4.5
4
10
 
5
11
  ### Patch Changes
@@ -188,7 +188,7 @@ var useLatestMediaNode = function useLatestMediaNode(nextMediaNode) {
188
188
  mediaNode = _React$useState2[0],
189
189
  setMediaNode = _React$useState2[1];
190
190
  _react.default.useEffect(function () {
191
- if (!previousMediaNode) {
191
+ if (!previousMediaNode || typeof previousMediaNode.eq !== 'function') {
192
192
  return;
193
193
  }
194
194
  if (!previousMediaNode.eq(nextMediaNode)) {
@@ -139,7 +139,7 @@ const useLatestMediaNode = nextMediaNode => {
139
139
  const previousMediaNode = usePreviousState(nextMediaNode);
140
140
  const [mediaNode, setMediaNode] = React.useState(nextMediaNode);
141
141
  React.useEffect(() => {
142
- if (!previousMediaNode) {
142
+ if (!previousMediaNode || typeof previousMediaNode.eq !== 'function') {
143
143
  return;
144
144
  }
145
145
  if (!previousMediaNode.eq(nextMediaNode)) {
@@ -182,7 +182,7 @@ var useLatestMediaNode = function useLatestMediaNode(nextMediaNode) {
182
182
  mediaNode = _React$useState2[0],
183
183
  setMediaNode = _React$useState2[1];
184
184
  React.useEffect(function () {
185
- if (!previousMediaNode) {
185
+ if (!previousMediaNode || typeof previousMediaNode.eq !== 'function') {
186
186
  return;
187
187
  }
188
188
  if (!previousMediaNode.eq(nextMediaNode)) {
@@ -36,4 +36,8 @@ export declare const mediaSpecWithFixedToDOM: () => {
36
36
  toDebugString?: (node: PMNode) => string;
37
37
  leafText?: (node: PMNode) => string;
38
38
  linebreakReplacement?: boolean;
39
+ disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
40
+ pos: number;
41
+ inside: number;
42
+ }, event: DragEvent) => boolean);
39
43
  };
@@ -56,4 +56,8 @@ export declare const mediaGroupSpecWithFixedToDOM: () => {
56
56
  toDebugString?: (node: import("prosemirror-model").Node) => string;
57
57
  leafText?: (node: import("prosemirror-model").Node) => string;
58
58
  linebreakReplacement?: boolean;
59
+ disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
60
+ pos: number;
61
+ inside: number;
62
+ }, event: DragEvent) => boolean);
59
63
  };
@@ -21,4 +21,8 @@ export declare const mediaInlineSpecWithFixedToDOM: () => {
21
21
  toDebugString?: (node: PMNode) => string;
22
22
  leafText?: (node: PMNode) => string;
23
23
  linebreakReplacement?: boolean;
24
+ disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
25
+ pos: number;
26
+ inside: number;
27
+ }, event: DragEvent) => boolean);
24
28
  };
@@ -36,4 +36,8 @@ export declare const mediaSpecWithFixedToDOM: () => {
36
36
  toDebugString?: (node: PMNode) => string;
37
37
  leafText?: (node: PMNode) => string;
38
38
  linebreakReplacement?: boolean;
39
+ disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
40
+ pos: number;
41
+ inside: number;
42
+ }, event: DragEvent) => boolean);
39
43
  };
@@ -56,4 +56,8 @@ export declare const mediaGroupSpecWithFixedToDOM: () => {
56
56
  toDebugString?: (node: import("prosemirror-model").Node) => string;
57
57
  leafText?: (node: import("prosemirror-model").Node) => string;
58
58
  linebreakReplacement?: boolean;
59
+ disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
60
+ pos: number;
61
+ inside: number;
62
+ }, event: DragEvent) => boolean);
59
63
  };
@@ -21,4 +21,8 @@ export declare const mediaInlineSpecWithFixedToDOM: () => {
21
21
  toDebugString?: (node: PMNode) => string;
22
22
  leafText?: (node: PMNode) => string;
23
23
  linebreakReplacement?: boolean;
24
+ disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
25
+ pos: number;
26
+ inside: number;
27
+ }, event: DragEvent) => boolean);
24
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "9.4.5",
3
+ "version": "9.4.6",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/button": "^23.9.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^7.0.0",
38
- "@atlaskit/editor-plugin-annotation": "^7.0.0",
38
+ "@atlaskit/editor-plugin-annotation": "^7.1.0",
39
39
  "@atlaskit/editor-plugin-connectivity": "^7.0.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^7.0.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^7.0.0",
@@ -53,20 +53,20 @@
53
53
  "@atlaskit/editor-tables": "^2.9.0",
54
54
  "@atlaskit/form": "^15.3.0",
55
55
  "@atlaskit/icon": "^30.0.0",
56
- "@atlaskit/icon-lab": "^5.14.0",
57
- "@atlaskit/media-card": "^79.14.0",
56
+ "@atlaskit/icon-lab": "^5.15.0",
57
+ "@atlaskit/media-card": "^79.15.0",
58
58
  "@atlaskit/media-client": "^35.7.0",
59
59
  "@atlaskit/media-client-react": "^4.1.0",
60
60
  "@atlaskit/media-common": "^12.3.0",
61
61
  "@atlaskit/media-filmstrip": "^51.1.0",
62
62
  "@atlaskit/media-picker": "^70.1.0",
63
63
  "@atlaskit/media-ui": "^28.7.0",
64
- "@atlaskit/media-viewer": "^52.6.0",
64
+ "@atlaskit/media-viewer": "^52.7.0",
65
65
  "@atlaskit/platform-feature-flags": "^1.1.0",
66
66
  "@atlaskit/primitives": "^17.1.0",
67
67
  "@atlaskit/textfield": "^8.2.0",
68
68
  "@atlaskit/theme": "^21.0.0",
69
- "@atlaskit/tmp-editor-statsig": "^16.31.0",
69
+ "@atlaskit/tmp-editor-statsig": "^17.0.0",
70
70
  "@atlaskit/tokens": "^10.1.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@babel/runtime": "^7.0.0",
@@ -78,7 +78,7 @@
78
78
  "uuid": "^3.1.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@atlaskit/editor-common": "^111.8.0",
81
+ "@atlaskit/editor-common": "^111.9.0",
82
82
  "@atlaskit/media-core": "^37.0.0",
83
83
  "react": "^18.2.0",
84
84
  "react-dom": "^18.2.0",