@atlaskit/editor-plugin-media 9.4.4 → 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 +14 -0
- package/dist/cjs/nodeviews/mediaSingleNext.js +1 -1
- package/dist/cjs/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/cjs/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/es2019/nodeviews/mediaSingleNext.js +1 -1
- package/dist/es2019/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/es2019/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/esm/nodeviews/mediaSingleNext.js +1 -1
- package/dist/esm/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/esm/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/types/nodeviews/toDOM-fixes/media.d.ts +4 -0
- package/dist/types/nodeviews/toDOM-fixes/mediaGroup.d.ts +4 -0
- package/dist/types/nodeviews/toDOM-fixes/mediaInline.d.ts +4 -0
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/media.d.ts +4 -0
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/mediaGroup.d.ts +4 -0
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/mediaInline.d.ts +4 -0
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 9.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 9.4.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`23b8923f86fb9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/23b8923f86fb9) -
|
|
14
|
+
swap feature gate platform_editor_media_video_check_fix with
|
|
15
|
+
platform_editor_media_video_check_fix_new
|
|
16
|
+
|
|
3
17
|
## 9.4.4
|
|
4
18
|
|
|
5
19
|
### 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)) {
|
|
@@ -196,7 +196,7 @@ var ResizableMediaSingleNextFunctional = exports.ResizableMediaSingleNextFunctio
|
|
|
196
196
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
197
197
|
isResizing = _useState6[0],
|
|
198
198
|
setIsResizing = _useState6[1];
|
|
199
|
-
var _useState7 = (0, _react.useState)(!(0, _platformFeatureFlags.fg)('
|
|
199
|
+
var _useState7 = (0, _react.useState)(!(0, _platformFeatureFlags.fg)('platform_editor_media_video_check_fix_new')),
|
|
200
200
|
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
201
201
|
isVideoFile = _useState8[0],
|
|
202
202
|
setIsVideoFile = _useState8[1];
|
|
@@ -42,7 +42,7 @@ var ResizableMediaSingle = exports.default = /*#__PURE__*/function (_React$Compo
|
|
|
42
42
|
(0, _defineProperty2.default)(_this, "hasResized", false);
|
|
43
43
|
(0, _defineProperty2.default)(_this, "state", {
|
|
44
44
|
offsetLeft: (0, _mediaSingle.calculateOffsetLeft)(_this.insideInlineLike, _this.insideLayout, _this.props.view.dom, undefined),
|
|
45
|
-
isVideoFile: !(0, _platformFeatureFlags.fg)('
|
|
45
|
+
isVideoFile: !(0, _platformFeatureFlags.fg)('platform_editor_media_video_check_fix_new')
|
|
46
46
|
});
|
|
47
47
|
(0, _defineProperty2.default)(_this, "displayGrid", function (visible, gridType, highlight) {
|
|
48
48
|
var _pluginInjectionApi$g;
|
|
@@ -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)) {
|
|
@@ -179,7 +179,7 @@ export const ResizableMediaSingleNextFunctional = props => {
|
|
|
179
179
|
const lastSnappedGuidelineKeysRef = useRef([]);
|
|
180
180
|
const [snaps, setSnaps] = useState({});
|
|
181
181
|
const [isResizing, setIsResizing] = useState(false);
|
|
182
|
-
const [isVideoFile, setIsVideoFile] = useState(!fg('
|
|
182
|
+
const [isVideoFile, setIsVideoFile] = useState(!fg('platform_editor_media_video_check_fix_new'));
|
|
183
183
|
const [hasResized, setHasResized] = useState(false);
|
|
184
184
|
const nodePosition = useMemo(() => {
|
|
185
185
|
if (typeof getPos !== 'function') {
|
|
@@ -24,7 +24,7 @@ export default class ResizableMediaSingle extends React.Component {
|
|
|
24
24
|
_defineProperty(this, "hasResized", false);
|
|
25
25
|
_defineProperty(this, "state", {
|
|
26
26
|
offsetLeft: calculateOffsetLeft(this.insideInlineLike, this.insideLayout, this.props.view.dom, undefined),
|
|
27
|
-
isVideoFile: !fg('
|
|
27
|
+
isVideoFile: !fg('platform_editor_media_video_check_fix_new')
|
|
28
28
|
});
|
|
29
29
|
_defineProperty(this, "displayGrid", (visible, gridType, highlight) => {
|
|
30
30
|
var _pluginInjectionApi$g, _pluginInjectionApi$g2;
|
|
@@ -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)) {
|
|
@@ -186,7 +186,7 @@ export var ResizableMediaSingleNextFunctional = function ResizableMediaSingleNex
|
|
|
186
186
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
187
187
|
isResizing = _useState6[0],
|
|
188
188
|
setIsResizing = _useState6[1];
|
|
189
|
-
var _useState7 = useState(!fg('
|
|
189
|
+
var _useState7 = useState(!fg('platform_editor_media_video_check_fix_new')),
|
|
190
190
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
191
191
|
isVideoFile = _useState8[0],
|
|
192
192
|
setIsVideoFile = _useState8[1];
|
|
@@ -38,7 +38,7 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
38
38
|
_defineProperty(_this, "hasResized", false);
|
|
39
39
|
_defineProperty(_this, "state", {
|
|
40
40
|
offsetLeft: calculateOffsetLeft(_this.insideInlineLike, _this.insideLayout, _this.props.view.dom, undefined),
|
|
41
|
-
isVideoFile: !fg('
|
|
41
|
+
isVideoFile: !fg('platform_editor_media_video_check_fix_new')
|
|
42
42
|
});
|
|
43
43
|
_defineProperty(_this, "displayGrid", function (visible, gridType, highlight) {
|
|
44
44
|
var _pluginInjectionApi$g;
|
|
@@ -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.
|
|
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.
|
|
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",
|
|
@@ -47,26 +47,26 @@
|
|
|
47
47
|
"@atlaskit/editor-plugin-interaction": "^13.0.0",
|
|
48
48
|
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
49
49
|
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
50
|
-
"@atlaskit/editor-plugin-width": "^8.
|
|
50
|
+
"@atlaskit/editor-plugin-width": "^8.1.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
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.
|
|
57
|
-
"@atlaskit/media-card": "^79.
|
|
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.
|
|
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": "^
|
|
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.
|
|
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",
|
|
@@ -121,9 +121,6 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"platform-feature-flags": {
|
|
124
|
-
"platform_editor_media_video_check_fix": {
|
|
125
|
-
"type": "boolean"
|
|
126
|
-
},
|
|
127
124
|
"platform_media_cross_client_copy": {
|
|
128
125
|
"type": "boolean"
|
|
129
126
|
},
|
|
@@ -162,6 +159,9 @@
|
|
|
162
159
|
},
|
|
163
160
|
"platform_editor_media_insert_check": {
|
|
164
161
|
"type": "boolean"
|
|
162
|
+
},
|
|
163
|
+
"platform_editor_media_video_check_fix_new": {
|
|
164
|
+
"type": "boolean"
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
"stricter": {
|