@atlaskit/editor-plugin-media 4.1.2 → 4.1.3
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 +9 -0
- package/dist/cjs/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/cjs/ui/ResizableMediaSingle/index.js +2 -2
- package/dist/es2019/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/es2019/ui/ResizableMediaSingle/index.js +2 -2
- package/dist/esm/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/esm/ui/ResizableMediaSingle/index.js +2 -2
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 4.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#177941](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177941)
|
|
8
|
+
[`982a4695e943c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/982a4695e943c) -
|
|
9
|
+
[ux] Make isVideoFile default to false to prevent 320px limitation
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 4.1.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -190,7 +190,7 @@ var ResizableMediaSingleNextFunctional = exports.ResizableMediaSingleNextFunctio
|
|
|
190
190
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
191
191
|
isResizing = _useState6[0],
|
|
192
192
|
setIsResizing = _useState6[1];
|
|
193
|
-
var _useState7 = (0, _react.useState)(!(0, _platformFeatureFlags.fg)('platform_editor_ssr_media')),
|
|
193
|
+
var _useState7 = (0, _react.useState)(!((0, _platformFeatureFlags.fg)('platform_editor_media_video_check_fix') || (0, _platformFeatureFlags.fg)('platform_editor_ssr_media'))),
|
|
194
194
|
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
195
195
|
isVideoFile = _useState8[0],
|
|
196
196
|
setIsVideoFile = _useState8[1];
|
|
@@ -21,6 +21,7 @@ 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");
|
|
24
25
|
var _checkMediaType = require("../../pm-plugins/utils/check-media-type");
|
|
25
26
|
var _styled = require("./styled");
|
|
26
27
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -39,8 +40,7 @@ var ResizableMediaSingle = exports.default = /*#__PURE__*/function (_React$Compo
|
|
|
39
40
|
_this = _callSuper(this, ResizableMediaSingle, [].concat(args));
|
|
40
41
|
(0, _defineProperty2.default)(_this, "state", {
|
|
41
42
|
offsetLeft: (0, _mediaSingle.calculateOffsetLeft)(_this.insideInlineLike, _this.insideLayout, _this.props.view.dom, undefined),
|
|
42
|
-
|
|
43
|
-
isVideoFile: true
|
|
43
|
+
isVideoFile: !(0, _platformFeatureFlags.fg)('platform_editor_media_video_check_fix')
|
|
44
44
|
});
|
|
45
45
|
(0, _defineProperty2.default)(_this, "displayGrid", function (visible, gridType, highlight) {
|
|
46
46
|
var _pluginInjectionApi$g;
|
|
@@ -173,7 +173,7 @@ export const ResizableMediaSingleNextFunctional = props => {
|
|
|
173
173
|
const lastSnappedGuidelineKeysRef = useRef([]);
|
|
174
174
|
const [snaps, setSnaps] = useState({});
|
|
175
175
|
const [isResizing, setIsResizing] = useState(false);
|
|
176
|
-
const [isVideoFile, setIsVideoFile] = useState(!fg('platform_editor_ssr_media'));
|
|
176
|
+
const [isVideoFile, setIsVideoFile] = useState(!(fg('platform_editor_media_video_check_fix') || fg('platform_editor_ssr_media')));
|
|
177
177
|
const nodePosition = useMemo(() => {
|
|
178
178
|
if (typeof getPos !== 'function') {
|
|
179
179
|
return null;
|
|
@@ -13,6 +13,7 @@ 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';
|
|
16
17
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
17
18
|
import { wrapperStyle } from './styled';
|
|
18
19
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -21,8 +22,7 @@ export default class ResizableMediaSingle extends React.Component {
|
|
|
21
22
|
super(...args);
|
|
22
23
|
_defineProperty(this, "state", {
|
|
23
24
|
offsetLeft: calculateOffsetLeft(this.insideInlineLike, this.insideLayout, this.props.view.dom, undefined),
|
|
24
|
-
|
|
25
|
-
isVideoFile: true
|
|
25
|
+
isVideoFile: !fg('platform_editor_media_video_check_fix')
|
|
26
26
|
});
|
|
27
27
|
_defineProperty(this, "displayGrid", (visible, gridType, highlight) => {
|
|
28
28
|
var _pluginInjectionApi$g, _pluginInjectionApi$g2;
|
|
@@ -180,7 +180,7 @@ export var ResizableMediaSingleNextFunctional = function ResizableMediaSingleNex
|
|
|
180
180
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
181
181
|
isResizing = _useState6[0],
|
|
182
182
|
setIsResizing = _useState6[1];
|
|
183
|
-
var _useState7 = useState(!fg('platform_editor_ssr_media')),
|
|
183
|
+
var _useState7 = useState(!(fg('platform_editor_media_video_check_fix') || fg('platform_editor_ssr_media'))),
|
|
184
184
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
185
185
|
isVideoFile = _useState8[0],
|
|
186
186
|
setIsVideoFile = _useState8[1];
|
|
@@ -22,6 +22,7 @@ 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';
|
|
25
26
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
26
27
|
import { wrapperStyle } from './styled';
|
|
27
28
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -35,8 +36,7 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
35
36
|
_this = _callSuper(this, ResizableMediaSingle, [].concat(args));
|
|
36
37
|
_defineProperty(_this, "state", {
|
|
37
38
|
offsetLeft: calculateOffsetLeft(_this.insideInlineLike, _this.insideLayout, _this.props.view.dom, undefined),
|
|
38
|
-
|
|
39
|
-
isVideoFile: true
|
|
39
|
+
isVideoFile: !fg('platform_editor_media_video_check_fix')
|
|
40
40
|
});
|
|
41
41
|
_defineProperty(_this, "displayGrid", function (visible, gridType, highlight) {
|
|
42
42
|
var _pluginInjectionApi$g;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
39
39
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
40
40
|
"@atlaskit/button": "^23.2.0",
|
|
41
|
-
"@atlaskit/editor-common": "^107.
|
|
41
|
+
"@atlaskit/editor-common": "^107.3.0",
|
|
42
42
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
44
44
|
"@atlaskit/editor-plugin-annotation": "^2.9.0",
|
|
@@ -57,20 +57,20 @@
|
|
|
57
57
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
58
58
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
59
59
|
"@atlaskit/form": "^12.0.0",
|
|
60
|
-
"@atlaskit/icon": "^27.
|
|
60
|
+
"@atlaskit/icon": "^27.2.0",
|
|
61
61
|
"@atlaskit/media-card": "^79.3.0",
|
|
62
|
-
"@atlaskit/media-client": "^34.
|
|
62
|
+
"@atlaskit/media-client": "^34.2.0",
|
|
63
63
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
64
|
-
"@atlaskit/media-common": "^12.
|
|
64
|
+
"@atlaskit/media-common": "^12.3.0",
|
|
65
65
|
"@atlaskit/media-filmstrip": "^51.0.0",
|
|
66
66
|
"@atlaskit/media-picker": "^70.0.0",
|
|
67
|
-
"@atlaskit/media-ui": "^28.
|
|
68
|
-
"@atlaskit/media-viewer": "^52.
|
|
67
|
+
"@atlaskit/media-ui": "^28.5.0",
|
|
68
|
+
"@atlaskit/media-viewer": "^52.4.0",
|
|
69
69
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
70
|
-
"@atlaskit/primitives": "^14.
|
|
70
|
+
"@atlaskit/primitives": "^14.10.0",
|
|
71
71
|
"@atlaskit/textfield": "^8.0.0",
|
|
72
72
|
"@atlaskit/theme": "^18.0.0",
|
|
73
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
73
|
+
"@atlaskit/tmp-editor-statsig": "^8.4.0",
|
|
74
74
|
"@atlaskit/tokens": "^5.4.0",
|
|
75
75
|
"@atlaskit/tooltip": "^20.3.0",
|
|
76
76
|
"@babel/runtime": "^7.0.0",
|
|
@@ -127,6 +127,9 @@
|
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
"platform-feature-flags": {
|
|
130
|
+
"platform_editor_media_video_check_fix": {
|
|
131
|
+
"type": "boolean"
|
|
132
|
+
},
|
|
130
133
|
"platform_media_cross_client_copy": {
|
|
131
134
|
"type": "boolean"
|
|
132
135
|
},
|
|
@@ -166,9 +169,6 @@
|
|
|
166
169
|
"platform_editor_remove_media_inline_feature_flag": {
|
|
167
170
|
"type": "boolean"
|
|
168
171
|
},
|
|
169
|
-
"platform_editor_media_single_toolbar_target": {
|
|
170
|
-
"type": "boolean"
|
|
171
|
-
},
|
|
172
172
|
"platform_editor_ssr_media": {
|
|
173
173
|
"type": "boolean"
|
|
174
174
|
},
|