@atlaskit/editor-plugin-media 9.5.5 → 9.5.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 +8 -0
- package/dist/cjs/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -2
- package/dist/cjs/ui/ResizableMediaSingle/index.js +1 -2
- package/dist/es2019/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -2
- package/dist/es2019/ui/ResizableMediaSingle/index.js +1 -2
- package/dist/esm/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -2
- package/dist/esm/ui/ResizableMediaSingle/index.js +1 -2
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 9.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5ad6e24098de0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5ad6e24098de0) -
|
|
8
|
+
tidy up fg platform_editor_media_video_check_fix_new
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 9.5.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -21,7 +21,6 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
21
21
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
22
22
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
24
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
25
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
27
26
|
var _main = require("../../pm-plugins/main");
|
|
@@ -206,7 +205,7 @@ var ResizableMediaSingleNextFunctional = exports.ResizableMediaSingleNextFunctio
|
|
|
206
205
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
207
206
|
isResizing = _useState6[0],
|
|
208
207
|
setIsResizing = _useState6[1];
|
|
209
|
-
var _useState7 = (0, _react.useState)(
|
|
208
|
+
var _useState7 = (0, _react.useState)(false),
|
|
210
209
|
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
211
210
|
isVideoFile = _useState8[0],
|
|
212
211
|
setIsVideoFile = _useState8[1];
|
|
@@ -21,7 +21,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
21
21
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
22
22
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
24
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
25
|
var _checkMediaType = require("../../pm-plugins/utils/check-media-type");
|
|
27
26
|
var _styled = require("./styled");
|
|
@@ -42,7 +41,7 @@ var ResizableMediaSingle = exports.default = /*#__PURE__*/function (_React$Compo
|
|
|
42
41
|
(0, _defineProperty2.default)(_this, "hasResized", false);
|
|
43
42
|
(0, _defineProperty2.default)(_this, "state", {
|
|
44
43
|
offsetLeft: (0, _mediaSingle.calculateOffsetLeft)(_this.insideInlineLike, _this.insideLayout, _this.props.view.dom, undefined),
|
|
45
|
-
isVideoFile:
|
|
44
|
+
isVideoFile: false
|
|
46
45
|
});
|
|
47
46
|
(0, _defineProperty2.default)(_this, "displayGrid", function (visible, gridType, highlight) {
|
|
48
47
|
var _pluginInjectionApi$g;
|
|
@@ -17,7 +17,6 @@ import { nonWrappedLayouts } from '@atlaskit/editor-common/utils';
|
|
|
17
17
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
18
18
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
19
19
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
23
22
|
import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
|
|
@@ -189,7 +188,7 @@ export const ResizableMediaSingleNextFunctional = props => {
|
|
|
189
188
|
const lastSnappedGuidelineKeysRef = useRef([]);
|
|
190
189
|
const [snaps, setSnaps] = useState({});
|
|
191
190
|
const [isResizing, setIsResizing] = useState(false);
|
|
192
|
-
const [isVideoFile, setIsVideoFile] = useState(
|
|
191
|
+
const [isVideoFile, setIsVideoFile] = useState(false);
|
|
193
192
|
const [hasResized, setHasResized] = useState(false);
|
|
194
193
|
const nodePosition = expValEquals('platform_editor_media_vc_fixes', 'isEnabled', true) ? getNodePosition(getPos) :
|
|
195
194
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -13,7 +13,6 @@ import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, handleSides, imageA
|
|
|
13
13
|
import { calculateSnapPoints } from '@atlaskit/editor-common/utils';
|
|
14
14
|
import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
15
15
|
import { akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
17
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
19
18
|
import { wrapperStyle } from './styled';
|
|
@@ -24,7 +23,7 @@ export default class ResizableMediaSingle extends React.Component {
|
|
|
24
23
|
_defineProperty(this, "hasResized", false);
|
|
25
24
|
_defineProperty(this, "state", {
|
|
26
25
|
offsetLeft: calculateOffsetLeft(this.insideInlineLike, this.insideLayout, this.props.view.dom, undefined),
|
|
27
|
-
isVideoFile:
|
|
26
|
+
isVideoFile: false
|
|
28
27
|
});
|
|
29
28
|
_defineProperty(this, "displayGrid", (visible, gridType, highlight) => {
|
|
30
29
|
var _pluginInjectionApi$g, _pluginInjectionApi$g2;
|
|
@@ -19,7 +19,6 @@ import { nonWrappedLayouts } from '@atlaskit/editor-common/utils';
|
|
|
19
19
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
20
20
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
21
21
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
22
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
24
23
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
25
24
|
import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
|
|
@@ -196,7 +195,7 @@ export var ResizableMediaSingleNextFunctional = function ResizableMediaSingleNex
|
|
|
196
195
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
197
196
|
isResizing = _useState6[0],
|
|
198
197
|
setIsResizing = _useState6[1];
|
|
199
|
-
var _useState7 = useState(
|
|
198
|
+
var _useState7 = useState(false),
|
|
200
199
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
201
200
|
isVideoFile = _useState8[0],
|
|
202
201
|
setIsVideoFile = _useState8[1];
|
|
@@ -22,7 +22,6 @@ import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, handleSides, imageA
|
|
|
22
22
|
import { calculateSnapPoints } from '@atlaskit/editor-common/utils';
|
|
23
23
|
import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
24
24
|
import { akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
25
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
25
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
27
26
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
28
27
|
import { wrapperStyle } from './styled';
|
|
@@ -38,7 +37,7 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
38
37
|
_defineProperty(_this, "hasResized", false);
|
|
39
38
|
_defineProperty(_this, "state", {
|
|
40
39
|
offsetLeft: calculateOffsetLeft(_this.insideInlineLike, _this.insideLayout, _this.props.view.dom, undefined),
|
|
41
|
-
isVideoFile:
|
|
40
|
+
isVideoFile: false
|
|
42
41
|
});
|
|
43
42
|
_defineProperty(_this, "displayGrid", function (visible, gridType, highlight) {
|
|
44
43
|
var _pluginInjectionApi$g;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.6",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/primitives": "^18.0.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.2.0",
|
|
68
68
|
"@atlaskit/theme": "^21.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^29.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^29.5.0",
|
|
70
70
|
"@atlaskit/tokens": "^11.0.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.19.0",
|
|
82
82
|
"@atlaskit/media-core": "^37.0.0",
|
|
83
83
|
"react": "^18.2.0",
|
|
84
84
|
"react-dom": "^18.2.0",
|
|
@@ -159,9 +159,6 @@
|
|
|
159
159
|
},
|
|
160
160
|
"platform_editor_media_insert_check": {
|
|
161
161
|
"type": "boolean"
|
|
162
|
-
},
|
|
163
|
-
"platform_editor_media_video_check_fix_new": {
|
|
164
|
-
"type": "boolean"
|
|
165
162
|
}
|
|
166
163
|
},
|
|
167
164
|
"stricter": {
|