@atlaskit/editor-plugin-media 4.1.2 → 4.1.4
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 +15 -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 +13 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 4.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#177941](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177941)
|
|
14
|
+
[`982a4695e943c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/982a4695e943c) -
|
|
15
|
+
[ux] Make isVideoFile default to false to prevent 320px limitation
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 4.1.2
|
|
4
19
|
|
|
5
20
|
### 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.4",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Core Experiences",
|
|
12
|
-
"singleton": true
|
|
13
|
-
"runReact18": true
|
|
12
|
+
"singleton": true
|
|
14
13
|
},
|
|
15
14
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
16
15
|
"main": "dist/cjs/index.js",
|
|
@@ -38,7 +37,7 @@
|
|
|
38
37
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
39
38
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
40
39
|
"@atlaskit/button": "^23.2.0",
|
|
41
|
-
"@atlaskit/editor-common": "^107.
|
|
40
|
+
"@atlaskit/editor-common": "^107.4.0",
|
|
42
41
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
43
42
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
44
43
|
"@atlaskit/editor-plugin-annotation": "^2.9.0",
|
|
@@ -57,20 +56,20 @@
|
|
|
57
56
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
58
57
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
59
58
|
"@atlaskit/form": "^12.0.0",
|
|
60
|
-
"@atlaskit/icon": "^27.
|
|
59
|
+
"@atlaskit/icon": "^27.2.0",
|
|
61
60
|
"@atlaskit/media-card": "^79.3.0",
|
|
62
|
-
"@atlaskit/media-client": "^
|
|
61
|
+
"@atlaskit/media-client": "^35.0.0",
|
|
63
62
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
64
|
-
"@atlaskit/media-common": "^12.
|
|
63
|
+
"@atlaskit/media-common": "^12.3.0",
|
|
65
64
|
"@atlaskit/media-filmstrip": "^51.0.0",
|
|
66
65
|
"@atlaskit/media-picker": "^70.0.0",
|
|
67
|
-
"@atlaskit/media-ui": "^28.
|
|
68
|
-
"@atlaskit/media-viewer": "^52.
|
|
66
|
+
"@atlaskit/media-ui": "^28.5.0",
|
|
67
|
+
"@atlaskit/media-viewer": "^52.4.0",
|
|
69
68
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
70
|
-
"@atlaskit/primitives": "^14.
|
|
69
|
+
"@atlaskit/primitives": "^14.10.0",
|
|
71
70
|
"@atlaskit/textfield": "^8.0.0",
|
|
72
71
|
"@atlaskit/theme": "^18.0.0",
|
|
73
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
72
|
+
"@atlaskit/tmp-editor-statsig": "^8.6.0",
|
|
74
73
|
"@atlaskit/tokens": "^5.4.0",
|
|
75
74
|
"@atlaskit/tooltip": "^20.3.0",
|
|
76
75
|
"@babel/runtime": "^7.0.0",
|
|
@@ -127,6 +126,9 @@
|
|
|
127
126
|
}
|
|
128
127
|
},
|
|
129
128
|
"platform-feature-flags": {
|
|
129
|
+
"platform_editor_media_video_check_fix": {
|
|
130
|
+
"type": "boolean"
|
|
131
|
+
},
|
|
130
132
|
"platform_media_cross_client_copy": {
|
|
131
133
|
"type": "boolean"
|
|
132
134
|
},
|
|
@@ -166,9 +168,6 @@
|
|
|
166
168
|
"platform_editor_remove_media_inline_feature_flag": {
|
|
167
169
|
"type": "boolean"
|
|
168
170
|
},
|
|
169
|
-
"platform_editor_media_single_toolbar_target": {
|
|
170
|
-
"type": "boolean"
|
|
171
|
-
},
|
|
172
171
|
"platform_editor_ssr_media": {
|
|
173
172
|
"type": "boolean"
|
|
174
173
|
},
|