@atlaskit/editor-plugin-media 9.4.3 → 9.4.5
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/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/cjs/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/es2019/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/es2019/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/esm/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/esm/ui/ResizableMediaSingle/index.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 9.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`23b8923f86fb9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/23b8923f86fb9) -
|
|
8
|
+
swap feature gate platform_editor_media_video_check_fix with
|
|
9
|
+
platform_editor_media_video_check_fix_new
|
|
10
|
+
|
|
11
|
+
## 9.4.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 9.4.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
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.5",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,12 +47,12 @@
|
|
|
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
|
-
"@atlaskit/icon": "^
|
|
55
|
+
"@atlaskit/icon": "^30.0.0",
|
|
56
56
|
"@atlaskit/icon-lab": "^5.14.0",
|
|
57
57
|
"@atlaskit/media-card": "^79.14.0",
|
|
58
58
|
"@atlaskit/media-client": "^35.7.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
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.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^16.31.0",
|
|
70
70
|
"@atlaskit/tokens": "^10.1.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.14.0",
|
|
72
72
|
"@babel/runtime": "^7.0.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": {
|