@atlaskit/editor-plugin-media 19.2.0 → 20.0.0
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 +2 -1
- package/dist/cjs/ui/ResizableMediaSingle/index.js +2 -1
- package/dist/es2019/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +2 -1
- package/dist/es2019/ui/ResizableMediaSingle/index.js +2 -1
- package/dist/esm/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +2 -1
- package/dist/esm/ui/ResizableMediaSingle/index.js +2 -1
- package/package.json +19 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 20.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`357df7b291d07`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/357df7b291d07) -
|
|
14
|
+
[ux] remove the left hand resizer behind experiment `platform_editor_remove_left_resize_handle`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 19.2.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -21,6 +21,7 @@ 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 _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
24
25
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
25
26
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
26
27
|
var _main = require("../../pm-plugins/main");
|
|
@@ -287,7 +288,7 @@ var ResizableMediaSingleNextFunctional = exports.ResizableMediaSingleNextFunctio
|
|
|
287
288
|
right: false
|
|
288
289
|
};
|
|
289
290
|
}
|
|
290
|
-
var isLeftResizeHandleDisabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true);
|
|
291
|
+
var isLeftResizeHandleDisabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_remove_left_resize_handle');
|
|
291
292
|
return _ui.handleSides.reduce(function (acc, side) {
|
|
292
293
|
var oppositeSide = side === 'left' ? 'right' : 'left';
|
|
293
294
|
|
|
@@ -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 _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
24
25
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
25
26
|
var _checkMediaType = require("../../pm-plugins/utils/check-media-type");
|
|
26
27
|
var _constants = require("./constants");
|
|
@@ -365,7 +366,7 @@ var ResizableMediaSingle = exports.default = /*#__PURE__*/function (_React$Compo
|
|
|
365
366
|
if (origWidth) {
|
|
366
367
|
ratio = (origHeight / origWidth * 100).toFixed(3);
|
|
367
368
|
}
|
|
368
|
-
var isLeftResizeHandleDisabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true);
|
|
369
|
+
var isLeftResizeHandleDisabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_remove_left_resize_handle');
|
|
369
370
|
var enable = {};
|
|
370
371
|
_ui.handleSides.forEach(function (side) {
|
|
371
372
|
var oppositeSide = side === 'left' ? 'right' : 'left';
|
|
@@ -17,6 +17,7 @@ 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 { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
20
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
22
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
22
23
|
import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
|
|
@@ -266,7 +267,7 @@ export const ResizableMediaSingleNextFunctional = props => {
|
|
|
266
267
|
right: false
|
|
267
268
|
};
|
|
268
269
|
}
|
|
269
|
-
const isLeftResizeHandleDisabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true);
|
|
270
|
+
const isLeftResizeHandleDisabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) || isExperimentEnabled('platform_editor_remove_left_resize_handle');
|
|
270
271
|
return handleSides.reduce((acc, side) => {
|
|
271
272
|
const oppositeSide = side === 'left' ? 'right' : 'left';
|
|
272
273
|
|
|
@@ -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 { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
18
19
|
import { leftHandleOnlyLayouts } from './constants';
|
|
@@ -295,7 +296,7 @@ export default class ResizableMediaSingle extends React.Component {
|
|
|
295
296
|
if (origWidth) {
|
|
296
297
|
ratio = (origHeight / origWidth * 100).toFixed(3);
|
|
297
298
|
}
|
|
298
|
-
const isLeftResizeHandleDisabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true);
|
|
299
|
+
const isLeftResizeHandleDisabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) || isExperimentEnabled('platform_editor_remove_left_resize_handle');
|
|
299
300
|
const enable = {};
|
|
300
301
|
handleSides.forEach(side => {
|
|
301
302
|
const oppositeSide = side === 'left' ? 'right' : 'left';
|
|
@@ -19,6 +19,7 @@ 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 { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
22
23
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
24
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
24
25
|
import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
|
|
@@ -277,7 +278,7 @@ export var ResizableMediaSingleNextFunctional = function ResizableMediaSingleNex
|
|
|
277
278
|
right: false
|
|
278
279
|
};
|
|
279
280
|
}
|
|
280
|
-
var isLeftResizeHandleDisabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true);
|
|
281
|
+
var isLeftResizeHandleDisabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) || isExperimentEnabled('platform_editor_remove_left_resize_handle');
|
|
281
282
|
return handleSides.reduce(function (acc, side) {
|
|
282
283
|
var oppositeSide = side === 'left' ? 'right' : 'left';
|
|
283
284
|
|
|
@@ -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 { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
25
26
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
26
27
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
27
28
|
import { leftHandleOnlyLayouts } from './constants';
|
|
@@ -361,7 +362,7 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
361
362
|
if (origWidth) {
|
|
362
363
|
ratio = (origHeight / origWidth * 100).toFixed(3);
|
|
363
364
|
}
|
|
364
|
-
var isLeftResizeHandleDisabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true);
|
|
365
|
+
var isLeftResizeHandleDisabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) || isExperimentEnabled('platform_editor_remove_left_resize_handle');
|
|
365
366
|
var enable = {};
|
|
366
367
|
handleSides.forEach(function (side) {
|
|
367
368
|
var oppositeSide = side === 'left' ? 'right' : 'left';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,22 +26,22 @@
|
|
|
26
26
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
27
27
|
"@atlaskit/button": "^25.3.0",
|
|
28
28
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
29
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
30
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
31
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
32
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
33
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
34
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
35
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^
|
|
36
|
-
"@atlaskit/editor-plugin-focus": "^
|
|
37
|
-
"@atlaskit/editor-plugin-grid": "^
|
|
38
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
39
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
40
|
-
"@atlaskit/editor-plugin-limited-mode": "^
|
|
41
|
-
"@atlaskit/editor-plugin-media-editing": "^
|
|
42
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
43
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
44
|
-
"@atlaskit/editor-plugin-width": "^
|
|
29
|
+
"@atlaskit/editor-plugin-analytics": "^18.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-annotation": "^18.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-connectivity": "^18.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-decorations": "^18.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-editor-disabled": "^18.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^20.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^20.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-focus": "^17.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-grid": "^18.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-guideline": "^18.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-interaction": "^29.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-limited-mode": "^15.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-media-editing": "^12.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-selection": "^18.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-toolbar": "^15.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-width": "^19.0.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
46
46
|
"@atlaskit/editor-shared-styles": "^4.2.0",
|
|
47
47
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
61
61
|
"@atlaskit/primitives": "^22.5.0",
|
|
62
62
|
"@atlaskit/textfield": "^10.2.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^188.0.0",
|
|
64
64
|
"@atlaskit/tokens": "^16.12.0",
|
|
65
65
|
"@atlaskit/tooltip": "^24.3.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^11.1.1"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^
|
|
75
|
+
"@atlaskit/editor-common": "^122.0.0",
|
|
76
76
|
"@atlaskit/media-core": "^38.2.0",
|
|
77
77
|
"react": "^18.2.0 || ^19.2.0",
|
|
78
78
|
"react-dom": "^18.2.0 || ^19.2.0",
|