@atlaskit/editor-plugin-media 2.3.1 → 2.3.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 +17 -0
- package/dist/cjs/ui/toolbar/index.js +10 -7
- package/dist/es2019/ui/toolbar/index.js +10 -7
- package/dist/esm/ui/toolbar/index.js +10 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 2.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#122379](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122379)
|
|
8
|
+
[`e0df50f1d4692`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e0df50f1d4692) -
|
|
9
|
+
[ux] Not show pixel entry on media floating toolbar under editor control experiment
|
|
10
|
+
|
|
11
|
+
## 2.3.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#122152](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122152)
|
|
16
|
+
[`c3187eef09138`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c3187eef09138) -
|
|
17
|
+
[ux] Update editor floating toolbar icons
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 2.3.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -21,6 +21,7 @@ var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
|
21
21
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
22
22
|
var _copy = _interopRequireDefault(require("@atlaskit/icon/core/copy"));
|
|
23
23
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
24
|
+
var _growDiagonal = _interopRequireDefault(require("@atlaskit/icon/core/grow-diagonal"));
|
|
24
25
|
var _growHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/grow-horizontal"));
|
|
25
26
|
var _imageFullscreen = _interopRequireDefault(require("@atlaskit/icon/core/image-fullscreen"));
|
|
26
27
|
var _imageInline = _interopRequireDefault(require("@atlaskit/icon/core/image-inline"));
|
|
@@ -127,7 +128,7 @@ var generateMediaCardFloatingToolbar = function generateMediaCardFloatingToolbar
|
|
|
127
128
|
id: 'editor.media.viewer',
|
|
128
129
|
testId: 'file-preview-toolbar-button',
|
|
129
130
|
type: 'button',
|
|
130
|
-
icon: _maximize.default,
|
|
131
|
+
icon: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? _growDiagonal.default : _maximize.default,
|
|
131
132
|
iconFallback: _filePreview.default,
|
|
132
133
|
title: intl.formatMessage(_mediaUi.messages.preview),
|
|
133
134
|
onClick: function onClick() {
|
|
@@ -467,10 +468,12 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
467
468
|
}
|
|
468
469
|
return [sizeInput];
|
|
469
470
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
471
|
+
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'control')) {
|
|
472
|
+
toolbarButtons.push(sizeInput);
|
|
473
|
+
toolbarButtons.push({
|
|
474
|
+
type: 'separator'
|
|
475
|
+
});
|
|
476
|
+
}
|
|
474
477
|
}
|
|
475
478
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'control')) {
|
|
476
479
|
if (allowCommentsOnMedia) {
|
|
@@ -533,7 +536,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
533
536
|
id: 'editor.media.viewer',
|
|
534
537
|
testId: 'file-preview-toolbar-button',
|
|
535
538
|
type: 'button',
|
|
536
|
-
icon: _maximize.default,
|
|
539
|
+
icon: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? _growDiagonal.default : _maximize.default,
|
|
537
540
|
iconFallback: _filePreview.default,
|
|
538
541
|
title: intl.formatMessage(_mediaUi.messages.preview),
|
|
539
542
|
onClick: function onClick() {
|
|
@@ -601,7 +604,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
601
604
|
id: 'editor.media.viewer',
|
|
602
605
|
testId: 'file-preview-toolbar-button',
|
|
603
606
|
type: 'button',
|
|
604
|
-
icon: _maximize.default,
|
|
607
|
+
icon: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? _growDiagonal.default : _maximize.default,
|
|
605
608
|
iconFallback: _filePreview.default,
|
|
606
609
|
title: intl.formatMessage(_mediaUi.messages.preview),
|
|
607
610
|
onClick: function onClick() {
|
|
@@ -11,6 +11,7 @@ import { contains, findParentNodeOfType, hasParentNode, hasParentNodeOfType, rem
|
|
|
11
11
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
13
13
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
14
|
+
import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
14
15
|
import GrowHorizontalIcon from '@atlaskit/icon/core/grow-horizontal';
|
|
15
16
|
import ImageFullscreenIcon from '@atlaskit/icon/core/image-fullscreen';
|
|
16
17
|
import ImageInlineIcon from '@atlaskit/icon/core/image-inline';
|
|
@@ -114,7 +115,7 @@ const generateMediaCardFloatingToolbar = (state, intl, mediaPluginState, hoverDe
|
|
|
114
115
|
id: 'editor.media.viewer',
|
|
115
116
|
testId: 'file-preview-toolbar-button',
|
|
116
117
|
type: 'button',
|
|
117
|
-
icon: MaximizeIcon,
|
|
118
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? GrowDiagonalIcon : MaximizeIcon,
|
|
118
119
|
iconFallback: FilePreviewIcon,
|
|
119
120
|
title: intl.formatMessage(messages.preview),
|
|
120
121
|
onClick: () => {
|
|
@@ -463,10 +464,12 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
|
|
|
463
464
|
}
|
|
464
465
|
return [sizeInput];
|
|
465
466
|
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
if (editorExperiment('platform_editor_controls', 'control')) {
|
|
468
|
+
toolbarButtons.push(sizeInput);
|
|
469
|
+
toolbarButtons.push({
|
|
470
|
+
type: 'separator'
|
|
471
|
+
});
|
|
472
|
+
}
|
|
470
473
|
}
|
|
471
474
|
if (editorExperiment('platform_editor_controls', 'control')) {
|
|
472
475
|
if (allowCommentsOnMedia) {
|
|
@@ -535,7 +538,7 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
|
|
|
535
538
|
id: 'editor.media.viewer',
|
|
536
539
|
testId: 'file-preview-toolbar-button',
|
|
537
540
|
type: 'button',
|
|
538
|
-
icon: MaximizeIcon,
|
|
541
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? GrowDiagonalIcon : MaximizeIcon,
|
|
539
542
|
iconFallback: FilePreviewIcon,
|
|
540
543
|
title: intl.formatMessage(messages.preview),
|
|
541
544
|
onClick: () => {
|
|
@@ -603,7 +606,7 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
|
|
|
603
606
|
id: 'editor.media.viewer',
|
|
604
607
|
testId: 'file-preview-toolbar-button',
|
|
605
608
|
type: 'button',
|
|
606
|
-
icon: MaximizeIcon,
|
|
609
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? GrowDiagonalIcon : MaximizeIcon,
|
|
607
610
|
iconFallback: FilePreviewIcon,
|
|
608
611
|
title: intl.formatMessage(messages.preview),
|
|
609
612
|
onClick: () => {
|
|
@@ -15,6 +15,7 @@ import { contains, findParentNodeOfType, hasParentNode, hasParentNodeOfType, rem
|
|
|
15
15
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
16
16
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
17
17
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
18
|
+
import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
18
19
|
import GrowHorizontalIcon from '@atlaskit/icon/core/grow-horizontal';
|
|
19
20
|
import ImageFullscreenIcon from '@atlaskit/icon/core/image-fullscreen';
|
|
20
21
|
import ImageInlineIcon from '@atlaskit/icon/core/image-inline';
|
|
@@ -117,7 +118,7 @@ var generateMediaCardFloatingToolbar = function generateMediaCardFloatingToolbar
|
|
|
117
118
|
id: 'editor.media.viewer',
|
|
118
119
|
testId: 'file-preview-toolbar-button',
|
|
119
120
|
type: 'button',
|
|
120
|
-
icon: MaximizeIcon,
|
|
121
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? GrowDiagonalIcon : MaximizeIcon,
|
|
121
122
|
iconFallback: FilePreviewIcon,
|
|
122
123
|
title: intl.formatMessage(messages.preview),
|
|
123
124
|
onClick: function onClick() {
|
|
@@ -457,10 +458,12 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
457
458
|
}
|
|
458
459
|
return [sizeInput];
|
|
459
460
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
461
|
+
if (editorExperiment('platform_editor_controls', 'control')) {
|
|
462
|
+
toolbarButtons.push(sizeInput);
|
|
463
|
+
toolbarButtons.push({
|
|
464
|
+
type: 'separator'
|
|
465
|
+
});
|
|
466
|
+
}
|
|
464
467
|
}
|
|
465
468
|
if (editorExperiment('platform_editor_controls', 'control')) {
|
|
466
469
|
if (allowCommentsOnMedia) {
|
|
@@ -523,7 +526,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
523
526
|
id: 'editor.media.viewer',
|
|
524
527
|
testId: 'file-preview-toolbar-button',
|
|
525
528
|
type: 'button',
|
|
526
|
-
icon: MaximizeIcon,
|
|
529
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? GrowDiagonalIcon : MaximizeIcon,
|
|
527
530
|
iconFallback: FilePreviewIcon,
|
|
528
531
|
title: intl.formatMessage(messages.preview),
|
|
529
532
|
onClick: function onClick() {
|
|
@@ -591,7 +594,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
591
594
|
id: 'editor.media.viewer',
|
|
592
595
|
testId: 'file-preview-toolbar-button',
|
|
593
596
|
type: 'button',
|
|
594
|
-
icon: MaximizeIcon,
|
|
597
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? GrowDiagonalIcon : MaximizeIcon,
|
|
595
598
|
iconFallback: FilePreviewIcon,
|
|
596
599
|
title: intl.formatMessage(messages.preview),
|
|
597
600
|
onClick: function onClick() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.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.0.0",
|
|
40
40
|
"@atlaskit/button": "^21.1.0",
|
|
41
|
-
"@atlaskit/editor-common": "^101.
|
|
41
|
+
"@atlaskit/editor-common": "^101.1.0",
|
|
42
42
|
"@atlaskit/editor-palette": "2.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-analytics": "^2.1.0",
|
|
44
44
|
"@atlaskit/editor-plugin-annotation": "2.1.1",
|