@atlaskit/editor-plugin-media 1.20.9 → 1.20.11
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 +22 -0
- package/dist/cjs/plugin.js +2 -1
- package/dist/cjs/pm-plugins/alt-text/ui/AltTextEdit.js +2 -0
- package/dist/cjs/pm-plugins/keymap.js +2 -4
- package/dist/cjs/ui/CaptionPlaceholder/index.js +1 -1
- package/dist/cjs/ui/ImageBorder/index.js +10 -3
- package/dist/cjs/ui/ImageBorder/styles.js +3 -0
- package/dist/cjs/ui/Media/DropPlaceholder.js +6 -0
- package/dist/cjs/ui/PixelEntry/index.js +66 -58
- package/dist/cjs/ui/PixelEntry/styles.js +13 -1
- package/dist/cjs/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.js +3 -1
- package/dist/cjs/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +2 -0
- package/dist/cjs/ui/ResizableMediaSingle/index.js +3 -1
- package/dist/cjs/ui/ResizableMediaSingle/styles.js +3 -0
- package/dist/es2019/plugin.js +27 -24
- package/dist/es2019/pm-plugins/alt-text/ui/AltTextEdit.js +2 -0
- package/dist/es2019/pm-plugins/keymap.js +2 -4
- package/dist/es2019/ui/CaptionPlaceholder/index.js +1 -1
- package/dist/es2019/ui/ImageBorder/index.js +10 -3
- package/dist/es2019/ui/ImageBorder/styles.js +3 -0
- package/dist/es2019/ui/Media/DropPlaceholder.js +6 -0
- package/dist/es2019/ui/PixelEntry/index.js +64 -56
- package/dist/es2019/ui/PixelEntry/styles.js +13 -1
- package/dist/es2019/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.js +3 -1
- package/dist/es2019/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +2 -0
- package/dist/es2019/ui/ResizableMediaSingle/index.js +3 -1
- package/dist/es2019/ui/ResizableMediaSingle/styles.js +3 -0
- package/dist/esm/plugin.js +2 -1
- package/dist/esm/pm-plugins/alt-text/ui/AltTextEdit.js +2 -0
- package/dist/esm/pm-plugins/keymap.js +2 -4
- package/dist/esm/ui/CaptionPlaceholder/index.js +1 -1
- package/dist/esm/ui/ImageBorder/index.js +10 -3
- package/dist/esm/ui/ImageBorder/styles.js +3 -0
- package/dist/esm/ui/Media/DropPlaceholder.js +6 -0
- package/dist/esm/ui/PixelEntry/index.js +66 -58
- package/dist/esm/ui/PixelEntry/styles.js +13 -1
- package/dist/esm/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.js +3 -1
- package/dist/esm/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +2 -0
- package/dist/esm/ui/ResizableMediaSingle/index.js +3 -1
- package/dist/esm/ui/ResizableMediaSingle/styles.js +3 -0
- package/package.json +138 -161
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 1.20.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110390](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110390)
|
|
8
|
+
[`bead123202369`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bead123202369) -
|
|
9
|
+
[ux] [ED-23642] Reordering the typeahead so that date, status, code block & info panel are above
|
|
10
|
+
the fold (in the top 5 results)
|
|
11
|
+
- [#109353](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109353)
|
|
12
|
+
[`d932e2d76d8fc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d932e2d76d8fc) -
|
|
13
|
+
Removed FF for Media resize
|
|
14
|
+
- [#111045](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111045)
|
|
15
|
+
[`2f693993423ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f693993423ec) -
|
|
16
|
+
improve input latency of drag and drop experience and hide drag handle during resizing
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 1.20.10
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 1.20.9
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -240,12 +240,13 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref2) {
|
|
|
240
240
|
},
|
|
241
241
|
pluginsOptions: {
|
|
242
242
|
quickInsert: function quickInsert(_ref12) {
|
|
243
|
+
var _options$getEditorFea;
|
|
243
244
|
var formatMessage = _ref12.formatMessage;
|
|
244
245
|
return [{
|
|
245
246
|
id: 'media',
|
|
246
247
|
title: formatMessage(_messages.toolbarInsertBlockMessages.mediaFiles),
|
|
247
248
|
description: formatMessage(_messages.toolbarInsertBlockMessages.mediaFilesDescription),
|
|
248
|
-
priority: 400,
|
|
249
|
+
priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 600 : 400,
|
|
249
250
|
keywords: ['attachment', 'gif', 'media', 'picture', 'image', 'video'],
|
|
250
251
|
icon: function icon() {
|
|
251
252
|
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconImages, null);
|
|
@@ -32,6 +32,7 @@ var MAX_ALT_TEXT_LENGTH = exports.MAX_ALT_TEXT_LENGTH = 510; // double tweet len
|
|
|
32
32
|
|
|
33
33
|
var supportTextStyles = (0, _react2.css)({
|
|
34
34
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
36
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(12),
|
|
36
37
|
padding: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-500, 40px)"),
|
|
37
38
|
lineHeight: '20px',
|
|
@@ -39,6 +40,7 @@ var supportTextStyles = (0, _react2.css)({
|
|
|
39
40
|
margin: 0
|
|
40
41
|
});
|
|
41
42
|
var containerStyles = (0, _react2.css)({
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
44
|
width: "".concat(CONTAINER_WIDTH_IN_PX, "px"),
|
|
43
45
|
display: 'flex',
|
|
44
46
|
flexDirection: 'column',
|
|
@@ -29,10 +29,8 @@ function keymapPlugin(options, editorAnalyticsAPI, editorSelectionAPI, widthPlug
|
|
|
29
29
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.insertNewLine.common, splitMediaGroup, list);
|
|
30
30
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.enter.common, splitMediaGroup, list);
|
|
31
31
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.media.extended-resize-experience')) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
(0, _keymaps.bindKeymapWithCommand)(_keymaps.decreaseMediaSize.common, handleMediaDecrease(editorAnalyticsAPI, widthPlugin, options, getIntl), list);
|
|
35
|
-
}
|
|
32
|
+
(0, _keymaps.bindKeymapWithCommand)(_keymaps.increaseMediaSize.common, handleMediaIncrease(editorAnalyticsAPI, widthPlugin, options, getIntl), list);
|
|
33
|
+
(0, _keymaps.bindKeymapWithCommand)(_keymaps.decreaseMediaSize.common, handleMediaDecrease(editorAnalyticsAPI, widthPlugin, options, getIntl), list);
|
|
36
34
|
}
|
|
37
35
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y_video_controls_keyboard_support_yhcxh')) {
|
|
38
36
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.activateVideoControls.common, focusPlayButton, list);
|
|
@@ -14,7 +14,7 @@ var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
|
14
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
15
|
var _templateObject;
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
18
18
|
var placeholder = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tcolor: ", ";\n\twidth: 100%;\n\ttext-align: center;\n\tmargin-top: ", " !important;\n\tdisplay: block;\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), "var(--ds-space-100, 8px)");
|
|
19
19
|
var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
20
20
|
var onClick = _ref.onClick;
|
|
@@ -71,7 +71,9 @@ var ImageBorder = function ImageBorder(_ref) {
|
|
|
71
71
|
className: _styles.DropdownMenuSharedCssClassName.SUBMENU
|
|
72
72
|
}, (0, _react2.jsx)("div", {
|
|
73
73
|
css: (0, _styles2.contextualMenuColorIcon)(color && (0, _editorPalette.hexToEditorBorderPaletteColor)(color))
|
|
74
|
-
}), isColorSubmenuOpen &&
|
|
74
|
+
}), isColorSubmenuOpen &&
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
76
|
+
(0, _react2.jsx)("div", {
|
|
75
77
|
css: (0, _styles2.contextualSubMenu)(0),
|
|
76
78
|
ref: handleSubMenuRef
|
|
77
79
|
}, (0, _react2.jsx)(_uiColor.ColorPalette, {
|
|
@@ -99,7 +101,9 @@ var ImageBorder = function ImageBorder(_ref) {
|
|
|
99
101
|
className: _styles.DropdownMenuSharedCssClassName.SUBMENU
|
|
100
102
|
}, (0, _react2.jsx)("div", {
|
|
101
103
|
css: _styles2.contextualMenuArrow
|
|
102
|
-
}), isSizeSubmenuOpen &&
|
|
104
|
+
}), isSizeSubmenuOpen &&
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
106
|
+
(0, _react2.jsx)("div", {
|
|
103
107
|
css: (0, _styles2.contextualSubMenu)(1),
|
|
104
108
|
ref: handleSubMenuRef
|
|
105
109
|
}, borderSizeOptions.map(function (_ref2, idx) {
|
|
@@ -111,7 +115,9 @@ var ImageBorder = function ImageBorder(_ref) {
|
|
|
111
115
|
}, (0, _react2.jsx)("span", {
|
|
112
116
|
css: _styles2.buttonWrapperStyle
|
|
113
117
|
}, (0, _react2.jsx)("button", {
|
|
114
|
-
type: "button"
|
|
118
|
+
type: "button"
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
120
|
+
,
|
|
115
121
|
css: (0, _styles2.buttonStyle)(value === size),
|
|
116
122
|
"aria-label": name,
|
|
117
123
|
role: "radio",
|
|
@@ -140,6 +146,7 @@ var ImageBorder = function ImageBorder(_ref) {
|
|
|
140
146
|
var fitWidth = _styles2.menuItemDimensions.width;
|
|
141
147
|
var fitHeight = items.length * (_styles2.menuItemDimensions.height + _styles2.itemSpacing);
|
|
142
148
|
return (0, _react2.jsx)("div", null, (0, _react2.jsx)("div", {
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
143
150
|
css: (0, _styles2.toolbarButtonWrapper)({
|
|
144
151
|
enabled: enabled,
|
|
145
152
|
isOpen: isOpen
|
|
@@ -28,6 +28,8 @@ var menuItemDimensions = exports.menuItemDimensions = {
|
|
|
28
28
|
// TODO: Migrate away from gridSize
|
|
29
29
|
// Recommendation: Replace directly with 4 due to itemSpacing being used in calculations
|
|
30
30
|
var itemSpacing = exports.itemSpacing = (0, _constants.gridSize)() / 2;
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
33
|
var contextualMenuArrow = exports.contextualMenuArrow = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\t&::after {\n\t\tcontent: '\u203A';\n\t\tmargin-left: ", ";\n\t\tline-height: 20px;\n\t\tcolor: ", ";\n\t}\n"])), "var(--ds-space-050, 4px)", "var(--ds-icon, ".concat(_colors.N90, ")"));
|
|
32
34
|
var contextualMenuColorIcon = exports.contextualMenuColorIcon = function contextualMenuColorIcon(color) {
|
|
33
35
|
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t&::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: 1px solid ", ";\n\t\tborder-radius: ", ";\n\t\twidth: 20px;\n\t\theight: 20px;\n\t\t", "\n\t}\n"])), contextualMenuArrow, _uiColor.DEFAULT_BORDER_COLOR, "var(--ds-border-radius-100, 3px)", color && "background: ".concat(color));
|
|
@@ -40,6 +42,7 @@ var buttonStyle = exports.buttonStyle = function buttonStyle(selected) {
|
|
|
40
42
|
};
|
|
41
43
|
|
|
42
44
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
43
46
|
var buttonWrapperStyle = exports.buttonWrapperStyle = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\tborder: 1px solid transparent;\n\tmargin: ", ";\n\tfont-size: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ", ";\n\tborder-radius: 6px;\n\t&:focus-within,\n\t&:focus,\n\t&:hover {\n\t\tborder-color: ", " !important;\n\t}\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", _colors.N50);
|
|
44
47
|
var line = exports.line = function line(size, selected) {
|
|
45
48
|
return (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\tposition: relative;\n\t&:before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\twidth: 12px;\n\t\theight: ", "px;\n\t\tbackground-color: ", ";\n\t\tborder-radius: 90px;\n\t\ttransform: translate(-50%, -50%) rotate(135deg);\n\t}\n"])), size, selected ? "var(--ds-icon-inverse, ".concat(_colors.N0, ")") : "var(--ds-icon, #44546F)");
|
|
@@ -16,11 +16,16 @@ var _media2 = require("../../nodeviews/mediaNodeView/media");
|
|
|
16
16
|
/** @jsx jsx */
|
|
17
17
|
|
|
18
18
|
var iconWrapperStyles = (0, _react.css)({
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
20
|
color: "var(--ds-icon-accent-blue, ".concat((0, _adfSchema.hexToRgba)(_colors.B400, 0.4) || _colors.B400, ")"),
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
20
22
|
background: "var(--ds-background-accent-blue-subtle, ".concat((0, _adfSchema.hexToRgba)(_colors.B300, 0.6) || _colors.B300, ")"),
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
24
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
22
25
|
margin: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-300, 24px)"),
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
27
|
width: "".concat(_media2.FILE_WIDTH, "px"),
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
29
|
minHeight: "".concat(_media2.MEDIA_HEIGHT, "px"),
|
|
25
30
|
display: 'flex',
|
|
26
31
|
alignItems: 'center',
|
|
@@ -28,6 +33,7 @@ var iconWrapperStyles = (0, _react.css)({
|
|
|
28
33
|
});
|
|
29
34
|
var dropLineStyles = (0, _react.css)({
|
|
30
35
|
background: "var(--ds-border-focused, ".concat(_colors.B200, ")"),
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
37
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
32
38
|
margin: "var(--ds-space-025, 2px)".concat(" 0"),
|
|
33
39
|
width: '100%',
|
|
@@ -121,65 +121,73 @@ var PixelEntry = exports.PixelEntry = function PixelEntry(_ref) {
|
|
|
121
121
|
testId: _constants.PIXELENTRY_MIGRATION_BUTTON_TESTID
|
|
122
122
|
}, formatMessage(_media.pixelEntryMessages.migrationButtonText)));
|
|
123
123
|
}
|
|
124
|
-
return (
|
|
125
|
-
css
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
124
|
+
return (
|
|
125
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
126
|
+
(0, _react2.jsx)("div", {
|
|
127
|
+
css: _styles.pixelEntryForm
|
|
128
|
+
}, (0, _react2.jsx)(_form.default, {
|
|
129
|
+
onSubmit: handleOnSubmit
|
|
130
|
+
}, function (_ref2) {
|
|
131
|
+
var formProps = _ref2.formProps;
|
|
132
|
+
return (0, _react2.jsx)("form", formProps, (0, _react2.jsx)("div", {
|
|
133
|
+
css: _styles.pixelSizingWrapper
|
|
134
|
+
}, (0, _react2.jsx)(_form.Field, {
|
|
135
|
+
key: "inputWidth",
|
|
136
|
+
name: "inputWidth",
|
|
137
|
+
defaultValue: computedWidth
|
|
138
|
+
}, function (_ref3) {
|
|
139
|
+
var fieldProps = _ref3.fieldProps;
|
|
140
|
+
return (0, _react2.jsx)(_tooltip.default, {
|
|
141
|
+
hideTooltipOnMouseDown: true,
|
|
142
|
+
content: formatMessage(_media.pixelEntryMessages.inputWidthTooltip, {
|
|
143
|
+
maxWidth: maxWidth
|
|
144
|
+
}),
|
|
145
|
+
position: "top"
|
|
146
|
+
}, (0, _react2.jsx)(_textfield.default, (0, _extends2.default)({}, fieldProps, {
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
148
|
+
css: [_styles.pixelSizingWidthInput, _styles.pixelSizingInput],
|
|
149
|
+
appearance: "none",
|
|
150
|
+
isCompact: true,
|
|
151
|
+
onChange: handleOnChange('inputWidth'),
|
|
152
|
+
pattern: "\\d*",
|
|
153
|
+
"aria-label": formatMessage(_media.pixelEntryMessages.inputWidthAriaLabel, {
|
|
154
|
+
maxWidth: maxWidth
|
|
155
|
+
})
|
|
156
|
+
})));
|
|
157
|
+
}), (0, _react2.jsx)("span", {
|
|
158
|
+
css: _styles.pixelSizingLabel
|
|
159
|
+
}, "x"), (0, _react2.jsx)(_form.Field, {
|
|
160
|
+
key: "inputHeight",
|
|
161
|
+
name: "inputHeight",
|
|
162
|
+
defaultValue: computedHeight
|
|
163
|
+
}, function (_ref4) {
|
|
164
|
+
var fieldProps = _ref4.fieldProps;
|
|
165
|
+
return (0, _react2.jsx)(_tooltip.default, {
|
|
166
|
+
hideTooltipOnMouseDown: true,
|
|
167
|
+
content: formatMessage(_media.pixelEntryMessages.inputHeightTooltip),
|
|
168
|
+
position: "top"
|
|
169
|
+
}, (0, _react2.jsx)(_textfield.default, (0, _extends2.default)({}, fieldProps, {
|
|
170
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
171
|
+
css: [_styles.pixelSizingHeightInput, _styles.pixelSizingInput],
|
|
172
|
+
appearance: "none",
|
|
173
|
+
isCompact: true,
|
|
174
|
+
onChange: handleOnChange('inputHeight'),
|
|
175
|
+
pattern: "\\d*",
|
|
176
|
+
"aria-label": formatMessage(_media.pixelEntryMessages.inputHeightAriaLabel)
|
|
177
|
+
})));
|
|
178
|
+
}), (0, _react2.jsx)(_button.default, {
|
|
179
|
+
css: _styles.pixelEntryHiddenSubmit,
|
|
180
|
+
type: "submit"
|
|
181
|
+
}, formatMessage(_media.pixelEntryMessages.submitButtonText))));
|
|
182
|
+
}))
|
|
183
|
+
);
|
|
179
184
|
};
|
|
180
185
|
var FullWidthDisplay = exports.FullWidthDisplay = function FullWidthDisplay(_ref5) {
|
|
181
186
|
var formatMessage = _ref5.intl.formatMessage;
|
|
182
|
-
return (
|
|
183
|
-
css
|
|
184
|
-
|
|
187
|
+
return (
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
189
|
+
(0, _react2.jsx)("div", {
|
|
190
|
+
css: _styles.pixelSizingFullWidthLabelStyles
|
|
191
|
+
}, (0, _react2.jsx)("span", null, formatMessage(_media.pixelEntryMessages.fullWidthLabel)))
|
|
192
|
+
);
|
|
185
193
|
};
|
|
@@ -10,36 +10,48 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _templateObject;
|
|
11
11
|
var PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH = 120;
|
|
12
12
|
|
|
13
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
14
14
|
var pixelSizingWrapper = exports.pixelSizingWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: grid;\n\tgrid-template-columns: 1fr 1em 1fr 0;\n\tgrid-template-rows: auto;\n\tgrid-template-areas: 'widthinput label heightinput submit';\n\twidth: ", "px;\n\ttext-align: center;\n\theight: ", ";\n\n\t// Atlaskit fieldset does not allow style override\n\t& > * {\n\t\tmargin-top: 0 !important;\n\t}\n"])), PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH, "var(--ds-space-300, 24px)");
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
16
|
var pixelEntryForm = exports.pixelEntryForm = (0, _react.css)({
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
16
18
|
form: {
|
|
17
19
|
width: '100%'
|
|
18
20
|
}
|
|
19
21
|
});
|
|
22
|
+
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
20
24
|
var pixelSizingInput = exports.pixelSizingInput = (0, _react.css)({
|
|
21
25
|
width: '100%',
|
|
22
26
|
height: "var(--ds-space-300, 24px)",
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
28
|
'& input': {
|
|
24
29
|
textAlign: 'center'
|
|
25
30
|
}
|
|
26
31
|
});
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
27
33
|
var pixelSizingLabel = exports.pixelSizingLabel = (0, _react.css)({
|
|
28
34
|
gridArea: 'label',
|
|
29
35
|
lineHeight: "var(--ds-space-300, 24px)"
|
|
30
36
|
});
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
38
|
var pixelSizingWidthInput = exports.pixelSizingWidthInput = (0, _react.css)({
|
|
32
39
|
gridArea: 'widthinput'
|
|
33
40
|
});
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
34
42
|
var pixelSizingHeightInput = exports.pixelSizingHeightInput = (0, _react.css)({
|
|
35
43
|
gridArea: 'heightinput'
|
|
36
44
|
});
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
37
47
|
var pixelEntryHiddenSubmit = exports.pixelEntryHiddenSubmit = (0, _react.css)({
|
|
38
48
|
gridArea: 'submit',
|
|
39
49
|
visibility: 'hidden',
|
|
40
50
|
width: 0,
|
|
41
51
|
height: 0
|
|
42
52
|
});
|
|
53
|
+
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
43
55
|
var pixelSizingFullWidthLabelStyles = exports.pixelSizingFullWidthLabelStyles = (0, _react.css)({
|
|
44
56
|
minWidth: "".concat(PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH, "px"),
|
|
45
57
|
height: "var(--ds-space-300, 24px)",
|
|
@@ -10,7 +10,9 @@ var _styles = require("./styles");
|
|
|
10
10
|
|
|
11
11
|
var ResizableMediaMigrationNotification = exports.ResizableMediaMigrationNotification = function ResizableMediaMigrationNotification() {
|
|
12
12
|
return (0, _react.jsx)("div", {
|
|
13
|
-
"data-testid": "resizable-media-migration-notification"
|
|
13
|
+
"data-testid": "resizable-media-migration-notification"
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
15
|
+
,
|
|
14
16
|
css: [_styles.resizableMediaMigrationNotificationStyle]
|
|
15
17
|
});
|
|
16
18
|
};
|
|
@@ -123,6 +123,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
|
|
|
123
123
|
dispatch = _this$props$view.dispatch;
|
|
124
124
|
var tr = state.tr;
|
|
125
125
|
tr.setMeta(_main.MEDIA_PLUGIN_IS_RESIZING_KEY, isResizing);
|
|
126
|
+
tr.setMeta('is-resizer-resizing', isResizing);
|
|
126
127
|
return dispatch(tr);
|
|
127
128
|
});
|
|
128
129
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updateSizeInPluginState", (0, _throttle.default)(function (width) {
|
|
@@ -509,6 +510,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
|
|
|
509
510
|
// while is not resizing, we take 100% as min-width if the container width is less than the min-width
|
|
510
511
|
var minViewWidth = isResizing ? minWidth : "min(".concat(minWidth, "px, 100%)");
|
|
511
512
|
return (0, _react2.jsx)("div", {
|
|
513
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
512
514
|
css: (0, _styled.wrapperStyle)({
|
|
513
515
|
layout: layout,
|
|
514
516
|
containerWidth: containerWidth || origWidth,
|
|
@@ -387,7 +387,9 @@ var ResizableMediaSingle = exports.default = /*#__PURE__*/function (_React$Compo
|
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
389
|
return (0, _react2.jsx)("div", {
|
|
390
|
-
ref: this.saveWrapper
|
|
390
|
+
ref: this.saveWrapper
|
|
391
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
392
|
+
,
|
|
391
393
|
css: (0, _styled.wrapperStyle)({
|
|
392
394
|
layout: layout,
|
|
393
395
|
isResized: !!pctWidth,
|
|
@@ -11,10 +11,13 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
11
11
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
var NOTIFICATION_SIZE = 8;
|
|
13
13
|
var SPACE_FROM_EDGE = "var(--ds-space-100, 8px)";
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
14
16
|
var resizableMediaMigrationNotificationStyle = exports.resizableMediaMigrationNotificationStyle = (0, _react.css)({
|
|
15
17
|
position: 'absolute',
|
|
16
18
|
top: SPACE_FROM_EDGE,
|
|
17
19
|
right: "calc(".concat("var(--ds-space-150, 12px)", " + ", SPACE_FROM_EDGE, ")"),
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
21
|
backgroundColor: "var(--ds-background-warning-bold, ".concat(colors.Y300, ")"),
|
|
19
22
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
20
23
|
width: "".concat(NOTIFICATION_SIZE, "px"),
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -238,30 +238,33 @@ export const mediaPlugin = ({
|
|
|
238
238
|
pluginsOptions: {
|
|
239
239
|
quickInsert: ({
|
|
240
240
|
formatMessage
|
|
241
|
-
}) =>
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
241
|
+
}) => {
|
|
242
|
+
var _options$getEditorFea;
|
|
243
|
+
return [{
|
|
244
|
+
id: 'media',
|
|
245
|
+
title: formatMessage(messages.mediaFiles),
|
|
246
|
+
description: formatMessage(messages.mediaFilesDescription),
|
|
247
|
+
priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 600 : 400,
|
|
248
|
+
keywords: ['attachment', 'gif', 'media', 'picture', 'image', 'video'],
|
|
249
|
+
icon: () => /*#__PURE__*/React.createElement(IconImages, null),
|
|
250
|
+
action(insert, state) {
|
|
251
|
+
var _api$analytics4;
|
|
252
|
+
const pluginState = pluginKey.getState(state);
|
|
253
|
+
pluginState === null || pluginState === void 0 ? void 0 : pluginState.showMediaPicker();
|
|
254
|
+
const tr = insert('');
|
|
255
|
+
api === null || api === void 0 ? void 0 : (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions.attachAnalyticsEvent({
|
|
256
|
+
action: ACTION.OPENED,
|
|
257
|
+
actionSubject: ACTION_SUBJECT.PICKER,
|
|
258
|
+
actionSubjectId: ACTION_SUBJECT_ID.PICKER_CLOUD,
|
|
259
|
+
attributes: {
|
|
260
|
+
inputMethod: INPUT_METHOD.QUICK_INSERT
|
|
261
|
+
},
|
|
262
|
+
eventType: EVENT_TYPE.UI
|
|
263
|
+
})(tr);
|
|
264
|
+
return tr;
|
|
265
|
+
}
|
|
266
|
+
}];
|
|
267
|
+
},
|
|
265
268
|
floatingToolbar: (state, intl, providerFactory) => {
|
|
266
269
|
var _api$editorViewMode, _api$editorViewMode$s;
|
|
267
270
|
return floatingToolbar(state, intl, {
|
|
@@ -19,6 +19,7 @@ export const MAX_ALT_TEXT_LENGTH = 510; // double tweet length
|
|
|
19
19
|
|
|
20
20
|
const supportTextStyles = css({
|
|
21
21
|
color: `var(--ds-text-subtlest, ${N200})`,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
23
|
fontSize: relativeFontSizeToBase16(12),
|
|
23
24
|
padding: `${"var(--ds-space-150, 12px)"} ${"var(--ds-space-500, 40px)"}`,
|
|
24
25
|
lineHeight: '20px',
|
|
@@ -26,6 +27,7 @@ const supportTextStyles = css({
|
|
|
26
27
|
margin: 0
|
|
27
28
|
});
|
|
28
29
|
const containerStyles = css({
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
31
|
width: `${CONTAINER_WIDTH_IN_PX}px`,
|
|
30
32
|
display: 'flex',
|
|
31
33
|
flexDirection: 'column',
|
|
@@ -22,10 +22,8 @@ export function keymapPlugin(options, editorAnalyticsAPI, editorSelectionAPI, wi
|
|
|
22
22
|
bindKeymapWithCommand(insertNewLine.common, splitMediaGroup, list);
|
|
23
23
|
bindKeymapWithCommand(enter.common, splitMediaGroup, list);
|
|
24
24
|
if (getBooleanFF('platform.editor.media.extended-resize-experience')) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
bindKeymapWithCommand(decreaseMediaSize.common, handleMediaDecrease(editorAnalyticsAPI, widthPlugin, options, getIntl), list);
|
|
28
|
-
}
|
|
25
|
+
bindKeymapWithCommand(increaseMediaSize.common, handleMediaIncrease(editorAnalyticsAPI, widthPlugin, options, getIntl), list);
|
|
26
|
+
bindKeymapWithCommand(decreaseMediaSize.common, handleMediaDecrease(editorAnalyticsAPI, widthPlugin, options, getIntl), list);
|
|
29
27
|
}
|
|
30
28
|
if (getBooleanFF('platform.editor.a11y_video_controls_keyboard_support_yhcxh')) {
|
|
31
29
|
bindKeymapWithCommand(activateVideoControls.common, focusPlayButton, list);
|
|
@@ -5,7 +5,7 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
5
5
|
import { captionMessages as messages } from '@atlaskit/editor-common/media';
|
|
6
6
|
import { CAPTION_PLACEHOLDER_ID } from '@atlaskit/editor-common/media-single';
|
|
7
7
|
import { N200 } from '@atlaskit/theme/colors';
|
|
8
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
9
9
|
const placeholder = css`
|
|
10
10
|
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
11
11
|
width: 100%;
|
|
@@ -56,7 +56,9 @@ const ImageBorder = ({
|
|
|
56
56
|
className: DropdownMenuSharedCssClassName.SUBMENU
|
|
57
57
|
}, jsx("div", {
|
|
58
58
|
css: contextualMenuColorIcon(color && hexToEditorBorderPaletteColor(color))
|
|
59
|
-
}), isColorSubmenuOpen &&
|
|
59
|
+
}), isColorSubmenuOpen &&
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
61
|
+
jsx("div", {
|
|
60
62
|
css: contextualSubMenu(0),
|
|
61
63
|
ref: handleSubMenuRef
|
|
62
64
|
}, jsx(ColorPalette, {
|
|
@@ -84,7 +86,9 @@ const ImageBorder = ({
|
|
|
84
86
|
className: DropdownMenuSharedCssClassName.SUBMENU
|
|
85
87
|
}, jsx("div", {
|
|
86
88
|
css: contextualMenuArrow
|
|
87
|
-
}), isSizeSubmenuOpen &&
|
|
89
|
+
}), isSizeSubmenuOpen &&
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
91
|
+
jsx("div", {
|
|
88
92
|
css: contextualSubMenu(1),
|
|
89
93
|
ref: handleSubMenuRef
|
|
90
94
|
}, borderSizeOptions.map(({
|
|
@@ -96,7 +100,9 @@ const ImageBorder = ({
|
|
|
96
100
|
}, jsx("span", {
|
|
97
101
|
css: buttonWrapperStyle
|
|
98
102
|
}, jsx("button", {
|
|
99
|
-
type: "button"
|
|
103
|
+
type: "button"
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
105
|
+
,
|
|
100
106
|
css: buttonStyle(value === size),
|
|
101
107
|
"aria-label": name,
|
|
102
108
|
role: "radio",
|
|
@@ -124,6 +130,7 @@ const ImageBorder = ({
|
|
|
124
130
|
const fitWidth = menuItemDimensions.width;
|
|
125
131
|
const fitHeight = items.length * (menuItemDimensions.height + itemSpacing);
|
|
126
132
|
return jsx("div", null, jsx("div", {
|
|
133
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
127
134
|
css: toolbarButtonWrapper({
|
|
128
135
|
enabled,
|
|
129
136
|
isOpen
|
|
@@ -16,6 +16,8 @@ export const menuItemDimensions = {
|
|
|
16
16
|
// TODO: Migrate away from gridSize
|
|
17
17
|
// Recommendation: Replace directly with 4 due to itemSpacing being used in calculations
|
|
18
18
|
export const itemSpacing = gridSize() / 2;
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
19
21
|
export const contextualMenuArrow = css`
|
|
20
22
|
display: flex;
|
|
21
23
|
&::after {
|
|
@@ -63,6 +65,7 @@ export const buttonStyle = selected => css`
|
|
|
63
65
|
`;
|
|
64
66
|
|
|
65
67
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
66
69
|
export const buttonWrapperStyle = css`
|
|
67
70
|
border: 1px solid transparent;
|
|
68
71
|
margin: ${"var(--ds-space-025, 2px)"};
|
|
@@ -8,11 +8,16 @@ import { B200, B300, B400 } from '@atlaskit/theme/colors';
|
|
|
8
8
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
9
9
|
import { FILE_WIDTH, MEDIA_HEIGHT } from '../../nodeviews/mediaNodeView/media';
|
|
10
10
|
const iconWrapperStyles = css({
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
11
12
|
color: `var(--ds-icon-accent-blue, ${hexToRgba(B400, 0.4) || B400})`,
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
12
14
|
background: `var(--ds-background-accent-blue-subtle, ${hexToRgba(B300, 0.6) || B300})`,
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
16
|
borderRadius: `${borderRadius()}px`,
|
|
14
17
|
margin: `${"var(--ds-space-075, 6px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-300, 24px)"}`,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
19
|
width: `${FILE_WIDTH}px`,
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
21
|
minHeight: `${MEDIA_HEIGHT}px`,
|
|
17
22
|
display: 'flex',
|
|
18
23
|
alignItems: 'center',
|
|
@@ -20,6 +25,7 @@ const iconWrapperStyles = css({
|
|
|
20
25
|
});
|
|
21
26
|
const dropLineStyles = css({
|
|
22
27
|
background: `var(--ds-border-focused, ${B200})`,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
29
|
borderRadius: `${borderRadius()}px`,
|
|
24
30
|
margin: `${"var(--ds-space-025, 2px)"} 0`,
|
|
25
31
|
width: '100%',
|