@atlaskit/editor-plugin-media 7.2.3 → 7.2.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 7.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6b6eca9cee16d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6b6eca9cee16d) -
|
|
8
|
+
Switch to use editorExperiment to use productKey for responsive preview panel changes.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.2.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ 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
24
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
|
-
var
|
|
25
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
26
26
|
var _main = require("../../pm-plugins/main");
|
|
27
27
|
var _analytics = require("../../pm-plugins/utils/analytics");
|
|
28
28
|
var _checkMediaType = require("../../pm-plugins/utils/check-media-type");
|
|
@@ -88,7 +88,9 @@ var calcUnwrappedLayout = function calcUnwrappedLayout(width, containerWidth, co
|
|
|
88
88
|
if (width <= contentWidth) {
|
|
89
89
|
return 'center';
|
|
90
90
|
}
|
|
91
|
-
var padding = containerWidth <= _editorSharedStyles.akEditorFullPageNarrowBreakout && (0,
|
|
91
|
+
var padding = containerWidth <= _editorSharedStyles.akEditorFullPageNarrowBreakout && (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
92
|
+
exposure: true
|
|
93
|
+
}) ? _editorSharedStyles.akEditorGutterPaddingReduced : (0, _editorSharedStyles.akEditorGutterPaddingDynamic)();
|
|
92
94
|
if (width < Math.min(containerWidth - padding * 2, _editorSharedStyles.akEditorFullWidthLayoutWidth)) {
|
|
93
95
|
return 'wide';
|
|
94
96
|
}
|
|
@@ -18,7 +18,7 @@ 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
20
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
|
-
import {
|
|
21
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
22
|
import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
|
|
23
23
|
import { getMediaResizeAnalyticsEvent } from '../../pm-plugins/utils/analytics';
|
|
24
24
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
@@ -79,7 +79,9 @@ const calcUnwrappedLayout = (width, containerWidth, contentWidth, fullWidthMode,
|
|
|
79
79
|
if (width <= contentWidth) {
|
|
80
80
|
return 'center';
|
|
81
81
|
}
|
|
82
|
-
const padding = containerWidth <= akEditorFullPageNarrowBreakout &&
|
|
82
|
+
const padding = containerWidth <= akEditorFullPageNarrowBreakout && editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
83
|
+
exposure: true
|
|
84
|
+
}) ? akEditorGutterPaddingReduced : akEditorGutterPaddingDynamic();
|
|
83
85
|
if (width < Math.min(containerWidth - padding * 2, akEditorFullWidthLayoutWidth)) {
|
|
84
86
|
return 'wide';
|
|
85
87
|
}
|
|
@@ -20,7 +20,7 @@ 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
22
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
|
-
import {
|
|
23
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
24
24
|
import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
|
|
25
25
|
import { getMediaResizeAnalyticsEvent } from '../../pm-plugins/utils/analytics';
|
|
26
26
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
@@ -78,7 +78,9 @@ var calcUnwrappedLayout = function calcUnwrappedLayout(width, containerWidth, co
|
|
|
78
78
|
if (width <= contentWidth) {
|
|
79
79
|
return 'center';
|
|
80
80
|
}
|
|
81
|
-
var padding = containerWidth <= akEditorFullPageNarrowBreakout &&
|
|
81
|
+
var padding = containerWidth <= akEditorFullPageNarrowBreakout && editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
82
|
+
exposure: true
|
|
83
|
+
}) ? akEditorGutterPaddingReduced : akEditorGutterPaddingDynamic();
|
|
82
84
|
if (width < Math.min(containerWidth - padding * 2, akEditorFullWidthLayoutWidth)) {
|
|
83
85
|
return 'wide';
|
|
84
86
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.4",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
53
53
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
54
|
-
"@atlaskit/form": "^12.
|
|
54
|
+
"@atlaskit/form": "^12.7.0",
|
|
55
55
|
"@atlaskit/icon": "^28.2.0",
|
|
56
56
|
"@atlaskit/icon-lab": "^5.7.0",
|
|
57
57
|
"@atlaskit/media-card": "^79.5.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/primitives": "^14.14.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.0.0",
|
|
68
68
|
"@atlaskit/theme": "^21.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^12.25.0",
|
|
70
70
|
"@atlaskit/tokens": "^6.3.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.4.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": "^109.
|
|
81
|
+
"@atlaskit/editor-common": "^109.10.0",
|
|
82
82
|
"@atlaskit/media-core": "^37.0.0",
|
|
83
83
|
"react": "^18.2.0",
|
|
84
84
|
"react-dom": "^18.2.0",
|