@atlaskit/editor-plugin-media 10.1.3 → 10.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 +8 -0
- package/dist/cjs/nodeviews/toDOM-fixes/mediaSingle.js +2 -3
- package/dist/cjs/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
- package/dist/cjs/ui/CaptionPlaceholder/index.js +1 -2
- package/dist/cjs/ui/ImageBorder/styles.js +8 -14
- package/dist/cjs/ui/Media/DropPlaceholder.js +3 -5
- package/dist/cjs/ui/MediaLinkingToolbar.js +1 -2
- package/dist/cjs/ui/ResizableMediaSingle/index.js +2 -2
- package/dist/cjs/ui/ResizableMediaSingle/styles.js +1 -7
- package/dist/es2019/nodeviews/toDOM-fixes/mediaSingle.js +2 -3
- package/dist/es2019/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
- package/dist/es2019/ui/CaptionPlaceholder/index.js +1 -2
- package/dist/es2019/ui/ImageBorder/styles.js +14 -18
- package/dist/es2019/ui/Media/DropPlaceholder.js +3 -5
- package/dist/es2019/ui/MediaLinkingToolbar.js +1 -2
- package/dist/es2019/ui/ResizableMediaSingle/index.js +2 -2
- package/dist/es2019/ui/ResizableMediaSingle/styles.js +1 -5
- package/dist/esm/nodeviews/toDOM-fixes/mediaSingle.js +2 -3
- package/dist/esm/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
- package/dist/esm/ui/CaptionPlaceholder/index.js +1 -2
- package/dist/esm/ui/ImageBorder/styles.js +8 -12
- package/dist/esm/ui/Media/DropPlaceholder.js +3 -5
- package/dist/esm/ui/MediaLinkingToolbar.js +1 -2
- package/dist/esm/ui/ResizableMediaSingle/index.js +2 -2
- package/dist/esm/ui/ResizableMediaSingle/styles.js +1 -5
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 10.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5892e575833a1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5892e575833a1) -
|
|
8
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 10.1.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ exports.prepareWrapperContentDOM = exports.mediaWidthCSSCalc = exports.mediaSing
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
12
11
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
12
|
var _toDOMAttrs = require("./toDOMAttrs");
|
|
14
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -152,7 +151,7 @@ var prepareWrapperContentDOM = exports.prepareWrapperContentDOM = function prepa
|
|
|
152
151
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
153
152
|
width: mediaWidthCalc,
|
|
154
153
|
minWidth: mediaWidthCalc,
|
|
155
|
-
color: "var(--ds-icon,
|
|
154
|
+
color: "var(--ds-icon, #292A2E)"
|
|
156
155
|
})
|
|
157
156
|
}, ['figure', {
|
|
158
157
|
class: 'media-single-node',
|
|
@@ -207,7 +206,7 @@ var getToDom = exports.getToDom = function getToDom(allowPixelResizing) {
|
|
|
207
206
|
'--ak-editor-media-card-display': 'block',
|
|
208
207
|
'--ak-editor-media-single--gutter-size': GUTTER_SIZE,
|
|
209
208
|
'--ak-editor-media-margin-right': '0',
|
|
210
|
-
'--ak-editor-media-card-background-color': "var(--ds-background-neutral,
|
|
209
|
+
'--ak-editor-media-card-background-color': "var(--ds-background-neutral, #0515240F)",
|
|
211
210
|
marginTop: isMediaWrapped ? HALF_GUTTER_SIZE : "var(--ds-space-300, 24px)",
|
|
212
211
|
marginBottom: isMediaWrapped ? HALF_GUTTER_SIZE : "var(--ds-space-300, 24px)",
|
|
213
212
|
marginRight: isMediaWrapped ? layout === 'wrap-right' ? 'auto' : HALF_GUTTER_SIZE : 0,
|
|
@@ -23,7 +23,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
24
|
var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/core/chevron-left"));
|
|
25
25
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
26
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
27
26
|
var _commands = require("../commands");
|
|
28
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)); }
|
|
29
28
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
@@ -33,13 +32,13 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
33
32
|
var MAX_ALT_TEXT_LENGTH = exports.MAX_ALT_TEXT_LENGTH = 510; // double tweet length
|
|
34
33
|
|
|
35
34
|
var supportTextStyles = (0, _react2.css)({
|
|
36
|
-
color: "var(--ds-text-subtlest,
|
|
35
|
+
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
37
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
|
|
38
37
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(12),
|
|
39
38
|
padding: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-500, 40px)"),
|
|
40
39
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
41
40
|
lineHeight: '20px',
|
|
42
|
-
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border,
|
|
41
|
+
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
43
42
|
margin: 0
|
|
44
43
|
});
|
|
45
44
|
var containerStyles = (0, _react2.css)({
|
|
@@ -64,7 +63,7 @@ var validationWrapperStyles = (0, _react2.css)({
|
|
|
64
63
|
lineHeight: 0,
|
|
65
64
|
padding: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-300, 24px)", " ", "var(--ds-space-150, 12px)", " 0"),
|
|
66
65
|
margin: "0 ".concat("var(--ds-space-150, 12px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
67
|
-
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-danger,
|
|
66
|
+
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-danger, #E2483D)"),
|
|
68
67
|
alignItems: 'start',
|
|
69
68
|
flexDirection: 'column'
|
|
70
69
|
});
|
|
@@ -73,7 +72,7 @@ var buttonWrapperStyles = (0, _react2.css)({
|
|
|
73
72
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)")
|
|
74
73
|
});
|
|
75
74
|
var clearTextStyles = (0, _react2.css)({
|
|
76
|
-
color: "var(--ds-icon-subtle,
|
|
75
|
+
color: "var(--ds-icon-subtle, #505258)"
|
|
77
76
|
});
|
|
78
77
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
79
78
|
var AltTextEditComponent = exports.AltTextEditComponent = /*#__PURE__*/function (_React$Component) {
|
|
@@ -14,7 +14,6 @@ var _media = require("@atlaskit/editor-common/media");
|
|
|
14
14
|
var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
16
|
var _primitives = require("@atlaskit/primitives");
|
|
17
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
18
17
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
18
|
var _templateObject;
|
|
20
19
|
/**
|
|
@@ -25,7 +24,7 @@ var _templateObject;
|
|
|
25
24
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
26
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
27
26
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
28
|
-
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,
|
|
27
|
+
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, #6B6E76)", "var(--ds-space-100, 8px)");
|
|
29
28
|
var placeholderText = (0, _react2.css)({
|
|
30
29
|
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
31
30
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -9,14 +8,9 @@ exports.toolbarButtonWrapper = exports.menuItemDimensions = exports.line = expor
|
|
|
9
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
9
|
var _react = require("@emotion/react");
|
|
11
10
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
12
|
-
var _colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
13
|
-
var colors = _colors;
|
|
14
11
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
15
12
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation*/
|
|
16
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
-
// Ignored via go/ees005
|
|
18
|
-
// eslint-disable-next-line import/no-namespace
|
|
19
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
14
|
// menuItemDimensions and itemSpacing are copied from
|
|
21
15
|
// packages/editor/editor-core/src/plugins/floating-toolbar/ui/DropdownMenu.tsx
|
|
22
16
|
|
|
@@ -29,24 +23,24 @@ var menuItemDimensions = exports.menuItemDimensions = {
|
|
|
29
23
|
var itemSpacing = exports.itemSpacing = 4;
|
|
30
24
|
|
|
31
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
|
-
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,
|
|
26
|
+
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, #292A2E)");
|
|
33
27
|
var contextualMenuColorIcon = exports.contextualMenuColorIcon = function contextualMenuColorIcon(color) {
|
|
34
|
-
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t&::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder:
|
|
28
|
+
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t&::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: ", " solid ", ";\n\t\tborder-radius: ", ";\n\t\twidth: 20px;\n\t\theight: 20px;\n\t\t", "\n\t}\n"])), contextualMenuArrow, "var(--ds-border-width, 1px)", _uiColor.DEFAULT_BORDER_COLOR, "var(--ds-radius-small, 3px)", color && "background: ".concat(color));
|
|
35
29
|
};
|
|
36
30
|
var contextualSubMenu = exports.contextualSubMenu = function contextualSubMenu(index) {
|
|
37
|
-
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\tborder-radius: ", ";\n\tbackground: ", ";\n\tbox-shadow: ", ";\n\tdisplay: flex;\n\tposition: absolute;\n\ttop: ", "px;\n\tleft: ", "px;\n\tpadding: ", ";\n\n\t> div {\n\t\tpadding: 0;\n\t}\n"])), "var(--ds-radius-small, 3px)", "var(--ds-surface-overlay,
|
|
31
|
+
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\tborder-radius: ", ";\n\tbackground: ", ";\n\tbox-shadow: ", ";\n\tdisplay: flex;\n\tposition: absolute;\n\ttop: ", "px;\n\tleft: ", "px;\n\tpadding: ", ";\n\n\t> div {\n\t\tpadding: 0;\n\t}\n"])), "var(--ds-radius-small, 3px)", "var(--ds-surface-overlay, #FFFFFF)", "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)", index * (menuItemDimensions.height + itemSpacing * 2), menuItemDimensions.width, "var(--ds-space-100, 8px)");
|
|
38
32
|
};
|
|
39
33
|
var buttonStyle = exports.buttonStyle = function buttonStyle(selected) {
|
|
40
|
-
return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\theight: 26px;\n\twidth: 26px;\n\tpadding: 0;\n\tborder-radius:
|
|
34
|
+
return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\theight: 26px;\n\twidth: 26px;\n\tpadding: 0;\n\tborder-radius: ", ";\n\tbackground-color: ", ";\n\tborder: 1px solid ", ";\n\tcursor: pointer;\n\tdisplay: block;\n"])), "var(--ds-radius-small, 4px)", selected ? "var(--ds-text, #292A2E)" : "var(--ds-background-neutral, #0515240F)", _uiColor.DEFAULT_BORDER_COLOR);
|
|
41
35
|
};
|
|
42
36
|
|
|
43
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
|
-
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:
|
|
38
|
+
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: ", ";\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)", "var(--ds-radius-medium, 6px)", "var(--ds-border, #0B120E24)");
|
|
45
39
|
var line = exports.line = function line(size, selected) {
|
|
46
|
-
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,
|
|
40
|
+
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, #FFFFFF)" : "var(--ds-icon, #292A2E)");
|
|
47
41
|
};
|
|
48
42
|
var getHoverStyles = function getHoverStyles(selector) {
|
|
49
|
-
return "&:hover ".concat(selector, " {\n background: ", "var(--ds-background-neutral-subtle-hovered,
|
|
43
|
+
return "&:hover ".concat(selector, " {\n background: ", "var(--ds-background-neutral-subtle-hovered, #0515240F)", ";\n\n &:hover {\n background: ", "var(--ds-background-neutral-hovered, #0B120E24)", ";\n }\n }");
|
|
50
44
|
};
|
|
51
45
|
var toolbarButtonWrapper = exports.toolbarButtonWrapper = function toolbarButtonWrapper(_ref) {
|
|
52
46
|
var enabled = _ref.enabled,
|
|
@@ -55,7 +49,7 @@ var toolbarButtonWrapper = exports.toolbarButtonWrapper = function toolbarButton
|
|
|
55
49
|
};
|
|
56
50
|
|
|
57
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
58
|
-
var dropdownOptionButton = exports.dropdownOptionButton = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\tbackground: transparent;\n\tborder:
|
|
52
|
+
var dropdownOptionButton = exports.dropdownOptionButton = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\tbackground: transparent;\n\tborder: ", " solid transparent;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tjustify-content: space-between;\n\tpadding: 8px 16px;\n\n\t&:focus {\n\t\tbackground-color: ", ";\n\t\tborder: ", " solid ", ";\n\t}\n"])), "var(--ds-border-width-focused, 2px)", "var(--ds-background-neutral-subtle-hovered, #0515240F)", "var(--ds-border-width-focused, 2px)", "var(--ds-border-focused, #4688EC)");
|
|
59
53
|
|
|
60
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
61
55
|
var dropdownWrapper = exports.dropdownWrapper = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\tspan[role='menuitem'] {\n\t\tpadding: 0;\n\t}\n"])));
|
|
@@ -7,10 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
|
-
var _adfSchema = require("@atlaskit/adf-schema");
|
|
11
10
|
var _media = require("@atlaskit/editor-common/media");
|
|
12
11
|
var _file = _interopRequireDefault(require("@atlaskit/icon/core/file"));
|
|
13
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
14
12
|
var _media2 = require("../../nodeviews/mediaNodeView/media");
|
|
15
13
|
/**
|
|
16
14
|
* @jsxRuntime classic
|
|
@@ -20,9 +18,9 @@ var _media2 = require("../../nodeviews/mediaNodeView/media");
|
|
|
20
18
|
|
|
21
19
|
var iconWrapperStyles = (0, _react.css)({
|
|
22
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
|
-
color: "var(--ds-icon-accent-blue,
|
|
21
|
+
color: "var(--ds-icon-accent-blue, #357DE8)",
|
|
24
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
|
-
background: "var(--ds-background-accent-blue-subtle,
|
|
23
|
+
background: "var(--ds-background-accent-blue-subtle, #669DF1)",
|
|
26
24
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
27
25
|
margin: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-300, 24px)"),
|
|
28
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
|
|
@@ -34,7 +32,7 @@ var iconWrapperStyles = (0, _react.css)({
|
|
|
34
32
|
justifyContent: 'center'
|
|
35
33
|
});
|
|
36
34
|
var dropLineStyles = (0, _react.css)({
|
|
37
|
-
background: "var(--ds-border-focused,
|
|
35
|
+
background: "var(--ds-border-focused, #4688EC)",
|
|
38
36
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
39
37
|
margin: "var(--ds-space-025, 2px)".concat(" 0"),
|
|
40
38
|
width: '100%',
|
|
@@ -22,7 +22,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
22
22
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
23
23
|
var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/core/chevron-left"));
|
|
24
24
|
var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
|
|
25
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
26
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
27
26
|
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)); }
|
|
28
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
@@ -34,7 +33,7 @@ var validationWrapper = (0, _react2.css)({
|
|
|
34
33
|
lineHeight: 0,
|
|
35
34
|
padding: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-300, 24px)", " ", "var(--ds-space-150, 12px)", " 0"),
|
|
36
35
|
margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-400, 32px)"),
|
|
37
|
-
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-danger,
|
|
36
|
+
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-danger, #E2483D)"),
|
|
38
37
|
alignItems: 'start',
|
|
39
38
|
display: 'flex',
|
|
40
39
|
flexDirection: 'column'
|
|
@@ -396,11 +396,11 @@ var ResizableMediaSingle = exports.default = /*#__PURE__*/function (_React$Compo
|
|
|
396
396
|
}
|
|
397
397
|
return {
|
|
398
398
|
left: {
|
|
399
|
-
left: "calc(".concat("var(--ds-space-025,
|
|
399
|
+
left: "calc(".concat("var(--ds-space-025, 2px)", " * -0.5)"),
|
|
400
400
|
paddingLeft: '0px'
|
|
401
401
|
},
|
|
402
402
|
right: {
|
|
403
|
-
right: "calc(".concat("var(--ds-space-025,
|
|
403
|
+
right: "calc(".concat("var(--ds-space-025, 2px)", " * -0.5)"),
|
|
404
404
|
paddingRight: '0px'
|
|
405
405
|
}
|
|
406
406
|
};
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.resizableMediaMigrationNotificationStyle = void 0;
|
|
8
7
|
var _react = require("@emotion/react");
|
|
9
|
-
var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
10
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
11
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
9
|
|
|
13
|
-
// Ignored via go/ees005
|
|
14
|
-
// eslint-disable-next-line import/no-namespace
|
|
15
|
-
|
|
16
10
|
var NOTIFICATION_SIZE = 8;
|
|
17
11
|
var SPACE_FROM_EDGE = "var(--ds-space-100, 8px)";
|
|
18
12
|
|
|
@@ -22,7 +16,7 @@ var resizableMediaMigrationNotificationStyle = exports.resizableMediaMigrationNo
|
|
|
22
16
|
top: SPACE_FROM_EDGE,
|
|
23
17
|
right: "calc(".concat("var(--ds-space-150, 12px)", " + ", SPACE_FROM_EDGE, ")"),
|
|
24
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
|
-
backgroundColor: "var(--ds-background-warning-bold,
|
|
19
|
+
backgroundColor: "var(--ds-background-warning-bold, #FBC828)",
|
|
26
20
|
borderRadius: "var(--ds-radius-full, 50%)",
|
|
27
21
|
width: "".concat(NOTIFICATION_SIZE, "px"),
|
|
28
22
|
height: "".concat(NOTIFICATION_SIZE, "px"),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { mediaSingleSpec } from '@atlaskit/adf-schema';
|
|
2
2
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
-
import { N20, N50 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { getAttrsFromNodeMediaSingle } from './toDOMAttrs';
|
|
6
5
|
const WRAPPED_LAYOUTS = ['wrap-left', 'wrap-right'];
|
|
@@ -148,7 +147,7 @@ export const prepareWrapperContentDOM = ({
|
|
|
148
147
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
149
148
|
width: mediaWidthCalc,
|
|
150
149
|
minWidth: mediaWidthCalc,
|
|
151
|
-
color:
|
|
150
|
+
color: "var(--ds-icon, #292A2E)"
|
|
152
151
|
})
|
|
153
152
|
}, ['figure', {
|
|
154
153
|
class: 'media-single-node',
|
|
@@ -202,7 +201,7 @@ export const getToDom = allowPixelResizing => node => {
|
|
|
202
201
|
'--ak-editor-media-card-display': 'block',
|
|
203
202
|
'--ak-editor-media-single--gutter-size': GUTTER_SIZE,
|
|
204
203
|
'--ak-editor-media-margin-right': '0',
|
|
205
|
-
'--ak-editor-media-card-background-color':
|
|
204
|
+
'--ak-editor-media-card-background-color': "var(--ds-background-neutral, #0515240F)",
|
|
206
205
|
marginTop: isMediaWrapped ? HALF_GUTTER_SIZE : "var(--ds-space-300, 24px)",
|
|
207
206
|
marginBottom: isMediaWrapped ? HALF_GUTTER_SIZE : "var(--ds-space-300, 24px)",
|
|
208
207
|
marginRight: isMediaWrapped ? layout === 'wrap-right' ? 'auto' : HALF_GUTTER_SIZE : 0,
|
|
@@ -18,18 +18,17 @@ import { RECENT_SEARCH_WIDTH_IN_PX as CONTAINER_WIDTH_IN_PX, FloatingToolbarButt
|
|
|
18
18
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
19
19
|
import ChevronLeftLargeIcon from '@atlaskit/icon/core/chevron-left';
|
|
20
20
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
21
|
-
import { N200, N30, N80, R400 } from '@atlaskit/theme/colors';
|
|
22
21
|
import { closeMediaAltTextMenu, closeMediaAltTextMenuAndSave } from '../commands';
|
|
23
22
|
export const MAX_ALT_TEXT_LENGTH = 510; // double tweet length
|
|
24
23
|
|
|
25
24
|
const supportTextStyles = css({
|
|
26
|
-
color:
|
|
25
|
+
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
27
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
|
|
28
27
|
fontSize: relativeFontSizeToBase16(12),
|
|
29
28
|
padding: `${"var(--ds-space-150, 12px)"} ${"var(--ds-space-500, 40px)"}`,
|
|
30
29
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
31
30
|
lineHeight: '20px',
|
|
32
|
-
borderTop: `${"var(--ds-border-width, 1px)"} solid ${
|
|
31
|
+
borderTop: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
|
|
33
32
|
margin: 0
|
|
34
33
|
});
|
|
35
34
|
const containerStyles = css({
|
|
@@ -54,7 +53,7 @@ const validationWrapperStyles = css({
|
|
|
54
53
|
lineHeight: 0,
|
|
55
54
|
padding: `${"var(--ds-space-150, 12px)"} ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-150, 12px)"} 0`,
|
|
56
55
|
margin: `0 ${"var(--ds-space-150, 12px)"} 0 ${"var(--ds-space-500, 40px)"}`,
|
|
57
|
-
borderTop: `${"var(--ds-border-width, 1px)"} solid ${
|
|
56
|
+
borderTop: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border-danger, #E2483D)"}`,
|
|
58
57
|
alignItems: 'start',
|
|
59
58
|
flexDirection: 'column'
|
|
60
59
|
});
|
|
@@ -63,7 +62,7 @@ const buttonWrapperStyles = css({
|
|
|
63
62
|
padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"}`
|
|
64
63
|
});
|
|
65
64
|
const clearTextStyles = css({
|
|
66
|
-
color:
|
|
65
|
+
color: "var(--ds-icon-subtle, #505258)"
|
|
67
66
|
});
|
|
68
67
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
69
68
|
export class AltTextEditComponent extends React.Component {
|
|
@@ -12,11 +12,10 @@ import { CAPTION_PLACEHOLDER_ID } from '@atlaskit/editor-common/media-single';
|
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
14
|
import { Pressable, Text, xcss } from '@atlaskit/primitives';
|
|
15
|
-
import { N200 } from '@atlaskit/theme/colors';
|
|
16
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
16
|
// 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
17
|
const placeholder = css`
|
|
19
|
-
color: ${
|
|
18
|
+
color: ${"var(--ds-text-subtlest, #6B6E76)"};
|
|
20
19
|
width: 100%;
|
|
21
20
|
text-align: center;
|
|
22
21
|
margin-top: ${"var(--ds-space-100, 8px)"} !important;
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
5
|
-
// Ignored via go/ees005
|
|
6
|
-
// eslint-disable-next-line import/no-namespace
|
|
7
|
-
import * as colors from '@atlaskit/theme/colors';
|
|
8
|
-
import { N0, N20A, N50, N60A, N800, N90 } from '@atlaskit/theme/colors';
|
|
9
5
|
// menuItemDimensions and itemSpacing are copied from
|
|
10
6
|
// packages/editor/editor-core/src/plugins/floating-toolbar/ui/DropdownMenu.tsx
|
|
11
7
|
|
|
@@ -24,7 +20,7 @@ export const contextualMenuArrow = css`
|
|
|
24
20
|
content: '›';
|
|
25
21
|
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
26
22
|
line-height: 20px;
|
|
27
|
-
color: ${
|
|
23
|
+
color: ${"var(--ds-icon, #292A2E)"};
|
|
28
24
|
}
|
|
29
25
|
`;
|
|
30
26
|
export const contextualMenuColorIcon = color => css`
|
|
@@ -32,7 +28,7 @@ export const contextualMenuColorIcon = color => css`
|
|
|
32
28
|
&::before {
|
|
33
29
|
content: '';
|
|
34
30
|
display: block;
|
|
35
|
-
border: 1px solid ${DEFAULT_BORDER_COLOR};
|
|
31
|
+
border: ${"var(--ds-border-width, 1px)"} solid ${DEFAULT_BORDER_COLOR};
|
|
36
32
|
border-radius: ${"var(--ds-radius-small, 3px)"};
|
|
37
33
|
width: 20px;
|
|
38
34
|
height: 20px;
|
|
@@ -41,8 +37,8 @@ export const contextualMenuColorIcon = color => css`
|
|
|
41
37
|
`;
|
|
42
38
|
export const contextualSubMenu = index => css`
|
|
43
39
|
border-radius: ${"var(--ds-radius-small, 3px)"};
|
|
44
|
-
background: ${"var(--ds-surface-overlay,
|
|
45
|
-
box-shadow: ${
|
|
40
|
+
background: ${"var(--ds-surface-overlay, #FFFFFF)"};
|
|
41
|
+
box-shadow: ${"var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)"};
|
|
46
42
|
display: flex;
|
|
47
43
|
position: absolute;
|
|
48
44
|
top: ${index * (menuItemDimensions.height + itemSpacing * 2)}px;
|
|
@@ -57,8 +53,8 @@ export const buttonStyle = selected => css`
|
|
|
57
53
|
height: 26px;
|
|
58
54
|
width: 26px;
|
|
59
55
|
padding: 0;
|
|
60
|
-
border-radius: 4px;
|
|
61
|
-
background-color: ${selected ?
|
|
56
|
+
border-radius: ${"var(--ds-radius-small, 4px)"};
|
|
57
|
+
background-color: ${selected ? "var(--ds-text, #292A2E)" : "var(--ds-background-neutral, #0515240F)"};
|
|
62
58
|
border: 1px solid ${DEFAULT_BORDER_COLOR};
|
|
63
59
|
cursor: pointer;
|
|
64
60
|
display: block;
|
|
@@ -72,11 +68,11 @@ export const buttonWrapperStyle = css`
|
|
|
72
68
|
display: flex;
|
|
73
69
|
align-items: center;
|
|
74
70
|
padding: ${"var(--ds-space-025, 2px)"};
|
|
75
|
-
border-radius: 6px;
|
|
71
|
+
border-radius: ${"var(--ds-radius-medium, 6px)"};
|
|
76
72
|
&:focus-within,
|
|
77
73
|
&:focus,
|
|
78
74
|
&:hover {
|
|
79
|
-
border-color: ${
|
|
75
|
+
border-color: ${"var(--ds-border, #0B120E24)"} !important;
|
|
80
76
|
}
|
|
81
77
|
`;
|
|
82
78
|
export const line = (size, selected) => css`
|
|
@@ -89,16 +85,16 @@ export const line = (size, selected) => css`
|
|
|
89
85
|
left: 50%;
|
|
90
86
|
width: 12px;
|
|
91
87
|
height: ${size}px;
|
|
92
|
-
background-color: ${selected ?
|
|
88
|
+
background-color: ${selected ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #292A2E)"};
|
|
93
89
|
border-radius: 90px;
|
|
94
90
|
transform: translate(-50%, -50%) rotate(135deg);
|
|
95
91
|
}
|
|
96
92
|
`;
|
|
97
93
|
const getHoverStyles = selector => `&:hover ${selector} {
|
|
98
|
-
background: ${
|
|
94
|
+
background: ${"var(--ds-background-neutral-subtle-hovered, #0515240F)"};
|
|
99
95
|
|
|
100
96
|
&:hover {
|
|
101
|
-
background: ${
|
|
97
|
+
background: ${"var(--ds-background-neutral-hovered, #0B120E24)"};
|
|
102
98
|
}
|
|
103
99
|
}`;
|
|
104
100
|
export const toolbarButtonWrapper = ({
|
|
@@ -138,7 +134,7 @@ export const toolbarButtonWrapper = ({
|
|
|
138
134
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
139
135
|
export const dropdownOptionButton = css`
|
|
140
136
|
background: transparent;
|
|
141
|
-
border: 2px solid transparent;
|
|
137
|
+
border: ${"var(--ds-border-width-focused, 2px)"} solid transparent;
|
|
142
138
|
display: flex;
|
|
143
139
|
width: 100%;
|
|
144
140
|
align-items: center;
|
|
@@ -146,8 +142,8 @@ export const dropdownOptionButton = css`
|
|
|
146
142
|
padding: 8px 16px;
|
|
147
143
|
|
|
148
144
|
&:focus {
|
|
149
|
-
background-color: ${"var(--ds-background-neutral-subtle-hovered,
|
|
150
|
-
border: 2px solid ${"var(--ds-border-focused, #
|
|
145
|
+
background-color: ${"var(--ds-background-neutral-subtle-hovered, #0515240F)"};
|
|
146
|
+
border: ${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #4688EC)"};
|
|
151
147
|
}
|
|
152
148
|
`;
|
|
153
149
|
|
|
@@ -5,16 +5,14 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { injectIntl } from 'react-intl-next';
|
|
8
|
-
import { hexToRgba } from '@atlaskit/adf-schema';
|
|
9
8
|
import { dropPlaceholderMessages } from '@atlaskit/editor-common/media';
|
|
10
9
|
import DocumentFilledIcon from '@atlaskit/icon/core/file';
|
|
11
|
-
import { B200, B300, B400 } from '@atlaskit/theme/colors';
|
|
12
10
|
import { FILE_WIDTH, MEDIA_HEIGHT } from '../../nodeviews/mediaNodeView/media';
|
|
13
11
|
const iconWrapperStyles = css({
|
|
14
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
-
color:
|
|
13
|
+
color: "var(--ds-icon-accent-blue, #357DE8)",
|
|
16
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
|
-
background:
|
|
15
|
+
background: "var(--ds-background-accent-blue-subtle, #669DF1)",
|
|
18
16
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
19
17
|
margin: `${"var(--ds-space-075, 6px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-300, 24px)"}`,
|
|
20
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
|
|
@@ -26,7 +24,7 @@ const iconWrapperStyles = css({
|
|
|
26
24
|
justifyContent: 'center'
|
|
27
25
|
});
|
|
28
26
|
const dropLineStyles = css({
|
|
29
|
-
background:
|
|
27
|
+
background: "var(--ds-border-focused, #4688EC)",
|
|
30
28
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
31
29
|
margin: `${"var(--ds-space-025, 2px)"} 0`,
|
|
32
30
|
width: '100%',
|
|
@@ -17,13 +17,12 @@ PanelTextInput } from '@atlaskit/editor-common/ui';
|
|
|
17
17
|
import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
18
18
|
import ChevronLeftLargeIcon from '@atlaskit/icon/core/chevron-left';
|
|
19
19
|
import EditorUnlinkIcon from '@atlaskit/icon/core/link-broken';
|
|
20
|
-
import { R400 } from '@atlaskit/theme/colors';
|
|
21
20
|
const validationWrapper = css({
|
|
22
21
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
23
22
|
lineHeight: 0,
|
|
24
23
|
padding: `${"var(--ds-space-150, 12px)"} ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-150, 12px)"} 0`,
|
|
25
24
|
margin: `0 ${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-400, 32px)"}`,
|
|
26
|
-
borderTop: `${"var(--ds-border-width, 1px)"} solid ${
|
|
25
|
+
borderTop: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border-danger, #E2483D)"}`,
|
|
27
26
|
alignItems: 'start',
|
|
28
27
|
display: 'flex',
|
|
29
28
|
flexDirection: 'column'
|
|
@@ -326,11 +326,11 @@ export default class ResizableMediaSingle extends React.Component {
|
|
|
326
326
|
}
|
|
327
327
|
return {
|
|
328
328
|
left: {
|
|
329
|
-
left: `calc(${"var(--ds-space-025,
|
|
329
|
+
left: `calc(${"var(--ds-space-025, 2px)"} * -0.5)`,
|
|
330
330
|
paddingLeft: '0px'
|
|
331
331
|
},
|
|
332
332
|
right: {
|
|
333
|
-
right: `calc(${"var(--ds-space-025,
|
|
333
|
+
right: `calc(${"var(--ds-space-025, 2px)"} * -0.5)`,
|
|
334
334
|
paddingRight: '0px'
|
|
335
335
|
}
|
|
336
336
|
};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
|
|
4
|
-
// Ignored via go/ees005
|
|
5
|
-
// eslint-disable-next-line import/no-namespace
|
|
6
|
-
import * as colors from '@atlaskit/theme/colors';
|
|
7
3
|
const NOTIFICATION_SIZE = 8;
|
|
8
4
|
const SPACE_FROM_EDGE = "var(--ds-space-100, 8px)";
|
|
9
5
|
|
|
@@ -13,7 +9,7 @@ export const resizableMediaMigrationNotificationStyle = css({
|
|
|
13
9
|
top: SPACE_FROM_EDGE,
|
|
14
10
|
right: `calc(${"var(--ds-space-150, 12px)"} + ${SPACE_FROM_EDGE})`,
|
|
15
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
|
-
backgroundColor:
|
|
12
|
+
backgroundColor: "var(--ds-background-warning-bold, #FBC828)",
|
|
17
13
|
borderRadius: "var(--ds-radius-full, 50%)",
|
|
18
14
|
width: `${NOTIFICATION_SIZE}px`,
|
|
19
15
|
height: `${NOTIFICATION_SIZE}px`,
|
|
@@ -3,7 +3,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { mediaSingleSpec } from '@atlaskit/adf-schema';
|
|
5
5
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
|
-
import { N20, N50 } from '@atlaskit/theme/colors';
|
|
7
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import { getAttrsFromNodeMediaSingle } from './toDOMAttrs';
|
|
9
8
|
var WRAPPED_LAYOUTS = ['wrap-left', 'wrap-right'];
|
|
@@ -145,7 +144,7 @@ export var prepareWrapperContentDOM = function prepareWrapperContentDOM(_ref5) {
|
|
|
145
144
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
146
145
|
width: mediaWidthCalc,
|
|
147
146
|
minWidth: mediaWidthCalc,
|
|
148
|
-
color: "var(--ds-icon,
|
|
147
|
+
color: "var(--ds-icon, #292A2E)"
|
|
149
148
|
})
|
|
150
149
|
}, ['figure', {
|
|
151
150
|
class: 'media-single-node',
|
|
@@ -200,7 +199,7 @@ export var getToDom = function getToDom(allowPixelResizing) {
|
|
|
200
199
|
'--ak-editor-media-card-display': 'block',
|
|
201
200
|
'--ak-editor-media-single--gutter-size': GUTTER_SIZE,
|
|
202
201
|
'--ak-editor-media-margin-right': '0',
|
|
203
|
-
'--ak-editor-media-card-background-color': "var(--ds-background-neutral,
|
|
202
|
+
'--ak-editor-media-card-background-color': "var(--ds-background-neutral, #0515240F)",
|
|
204
203
|
marginTop: isMediaWrapped ? HALF_GUTTER_SIZE : "var(--ds-space-300, 24px)",
|
|
205
204
|
marginBottom: isMediaWrapped ? HALF_GUTTER_SIZE : "var(--ds-space-300, 24px)",
|
|
206
205
|
marginRight: isMediaWrapped ? layout === 'wrap-right' ? 'auto' : HALF_GUTTER_SIZE : 0,
|
|
@@ -25,18 +25,17 @@ import { RECENT_SEARCH_WIDTH_IN_PX as CONTAINER_WIDTH_IN_PX, FloatingToolbarButt
|
|
|
25
25
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
26
26
|
import ChevronLeftLargeIcon from '@atlaskit/icon/core/chevron-left';
|
|
27
27
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
28
|
-
import { N200, N30, N80, R400 } from '@atlaskit/theme/colors';
|
|
29
28
|
import { closeMediaAltTextMenu, closeMediaAltTextMenuAndSave } from '../commands';
|
|
30
29
|
export var MAX_ALT_TEXT_LENGTH = 510; // double tweet length
|
|
31
30
|
|
|
32
31
|
var supportTextStyles = css({
|
|
33
|
-
color: "var(--ds-text-subtlest,
|
|
32
|
+
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
34
33
|
// 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
34
|
fontSize: relativeFontSizeToBase16(12),
|
|
36
35
|
padding: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-500, 40px)"),
|
|
37
36
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
38
37
|
lineHeight: '20px',
|
|
39
|
-
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border,
|
|
38
|
+
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
40
39
|
margin: 0
|
|
41
40
|
});
|
|
42
41
|
var containerStyles = css({
|
|
@@ -61,7 +60,7 @@ var validationWrapperStyles = css({
|
|
|
61
60
|
lineHeight: 0,
|
|
62
61
|
padding: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-300, 24px)", " ", "var(--ds-space-150, 12px)", " 0"),
|
|
63
62
|
margin: "0 ".concat("var(--ds-space-150, 12px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
64
|
-
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-danger,
|
|
63
|
+
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-danger, #E2483D)"),
|
|
65
64
|
alignItems: 'start',
|
|
66
65
|
flexDirection: 'column'
|
|
67
66
|
});
|
|
@@ -70,7 +69,7 @@ var buttonWrapperStyles = css({
|
|
|
70
69
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)")
|
|
71
70
|
});
|
|
72
71
|
var clearTextStyles = css({
|
|
73
|
-
color: "var(--ds-icon-subtle,
|
|
72
|
+
color: "var(--ds-icon-subtle, #505258)"
|
|
74
73
|
});
|
|
75
74
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
76
75
|
export var AltTextEditComponent = /*#__PURE__*/function (_React$Component) {
|
|
@@ -14,10 +14,9 @@ import { CAPTION_PLACEHOLDER_ID } from '@atlaskit/editor-common/media-single';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
16
16
|
import { Pressable, Text, xcss } from '@atlaskit/primitives';
|
|
17
|
-
import { N200 } from '@atlaskit/theme/colors';
|
|
18
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
18
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
20
|
-
var placeholder = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tcolor: ", ";\n\twidth: 100%;\n\ttext-align: center;\n\tmargin-top: ", " !important;\n\tdisplay: block;\n"])), "var(--ds-text-subtlest,
|
|
19
|
+
var placeholder = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tcolor: ", ";\n\twidth: 100%;\n\ttext-align: center;\n\tmargin-top: ", " !important;\n\tdisplay: block;\n"])), "var(--ds-text-subtlest, #6B6E76)", "var(--ds-space-100, 8px)");
|
|
21
20
|
var placeholderText = css({
|
|
22
21
|
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
23
22
|
});
|
|
@@ -4,10 +4,6 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
7
|
-
// Ignored via go/ees005
|
|
8
|
-
// eslint-disable-next-line import/no-namespace
|
|
9
|
-
import * as colors from '@atlaskit/theme/colors';
|
|
10
|
-
import { N0, N20A, N50, N60A, N800, N90 } from '@atlaskit/theme/colors';
|
|
11
7
|
// menuItemDimensions and itemSpacing are copied from
|
|
12
8
|
// packages/editor/editor-core/src/plugins/floating-toolbar/ui/DropdownMenu.tsx
|
|
13
9
|
|
|
@@ -20,24 +16,24 @@ export var menuItemDimensions = {
|
|
|
20
16
|
export var itemSpacing = 4;
|
|
21
17
|
|
|
22
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
|
-
export var contextualMenuArrow = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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,
|
|
19
|
+
export var contextualMenuArrow = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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, #292A2E)");
|
|
24
20
|
export var contextualMenuColorIcon = function contextualMenuColorIcon(color) {
|
|
25
|
-
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t", "\n\t&::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder:
|
|
21
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t", "\n\t&::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: ", " solid ", ";\n\t\tborder-radius: ", ";\n\t\twidth: 20px;\n\t\theight: 20px;\n\t\t", "\n\t}\n"])), contextualMenuArrow, "var(--ds-border-width, 1px)", DEFAULT_BORDER_COLOR, "var(--ds-radius-small, 3px)", color && "background: ".concat(color));
|
|
26
22
|
};
|
|
27
23
|
export var contextualSubMenu = function contextualSubMenu(index) {
|
|
28
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\tborder-radius: ", ";\n\tbackground: ", ";\n\tbox-shadow: ", ";\n\tdisplay: flex;\n\tposition: absolute;\n\ttop: ", "px;\n\tleft: ", "px;\n\tpadding: ", ";\n\n\t> div {\n\t\tpadding: 0;\n\t}\n"])), "var(--ds-radius-small, 3px)", "var(--ds-surface-overlay,
|
|
24
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\tborder-radius: ", ";\n\tbackground: ", ";\n\tbox-shadow: ", ";\n\tdisplay: flex;\n\tposition: absolute;\n\ttop: ", "px;\n\tleft: ", "px;\n\tpadding: ", ";\n\n\t> div {\n\t\tpadding: 0;\n\t}\n"])), "var(--ds-radius-small, 3px)", "var(--ds-surface-overlay, #FFFFFF)", "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)", index * (menuItemDimensions.height + itemSpacing * 2), menuItemDimensions.width, "var(--ds-space-100, 8px)");
|
|
29
25
|
};
|
|
30
26
|
export var buttonStyle = function buttonStyle(selected) {
|
|
31
|
-
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\theight: 26px;\n\twidth: 26px;\n\tpadding: 0;\n\tborder-radius:
|
|
27
|
+
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\theight: 26px;\n\twidth: 26px;\n\tpadding: 0;\n\tborder-radius: ", ";\n\tbackground-color: ", ";\n\tborder: 1px solid ", ";\n\tcursor: pointer;\n\tdisplay: block;\n"])), "var(--ds-radius-small, 4px)", selected ? "var(--ds-text, #292A2E)" : "var(--ds-background-neutral, #0515240F)", DEFAULT_BORDER_COLOR);
|
|
32
28
|
};
|
|
33
29
|
|
|
34
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
|
-
export var buttonWrapperStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n\tborder: 1px solid transparent;\n\tmargin: ", ";\n\tfont-size: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ", ";\n\tborder-radius:
|
|
31
|
+
export var buttonWrapperStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n\tborder: 1px solid transparent;\n\tmargin: ", ";\n\tfont-size: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ", ";\n\tborder-radius: ", ";\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)", "var(--ds-radius-medium, 6px)", "var(--ds-border, #0B120E24)");
|
|
36
32
|
export var line = function line(size, selected) {
|
|
37
|
-
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\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,
|
|
33
|
+
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\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, #FFFFFF)" : "var(--ds-icon, #292A2E)");
|
|
38
34
|
};
|
|
39
35
|
var getHoverStyles = function getHoverStyles(selector) {
|
|
40
|
-
return "&:hover ".concat(selector, " {\n background: ", "var(--ds-background-neutral-subtle-hovered,
|
|
36
|
+
return "&:hover ".concat(selector, " {\n background: ", "var(--ds-background-neutral-subtle-hovered, #0515240F)", ";\n\n &:hover {\n background: ", "var(--ds-background-neutral-hovered, #0B120E24)", ";\n }\n }");
|
|
41
37
|
};
|
|
42
38
|
export var toolbarButtonWrapper = function toolbarButtonWrapper(_ref) {
|
|
43
39
|
var enabled = _ref.enabled,
|
|
@@ -46,7 +42,7 @@ export var toolbarButtonWrapper = function toolbarButtonWrapper(_ref) {
|
|
|
46
42
|
};
|
|
47
43
|
|
|
48
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
49
|
-
export var dropdownOptionButton = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\tbackground: transparent;\n\tborder:
|
|
45
|
+
export var dropdownOptionButton = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\tbackground: transparent;\n\tborder: ", " solid transparent;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tjustify-content: space-between;\n\tpadding: 8px 16px;\n\n\t&:focus {\n\t\tbackground-color: ", ";\n\t\tborder: ", " solid ", ";\n\t}\n"])), "var(--ds-border-width-focused, 2px)", "var(--ds-background-neutral-subtle-hovered, #0515240F)", "var(--ds-border-width-focused, 2px)", "var(--ds-border-focused, #4688EC)");
|
|
50
46
|
|
|
51
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
52
48
|
export var dropdownWrapper = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\tspan[role='menuitem'] {\n\t\tpadding: 0;\n\t}\n"])));
|
|
@@ -5,16 +5,14 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { injectIntl } from 'react-intl-next';
|
|
8
|
-
import { hexToRgba } from '@atlaskit/adf-schema';
|
|
9
8
|
import { dropPlaceholderMessages } from '@atlaskit/editor-common/media';
|
|
10
9
|
import DocumentFilledIcon from '@atlaskit/icon/core/file';
|
|
11
|
-
import { B200, B300, B400 } from '@atlaskit/theme/colors';
|
|
12
10
|
import { FILE_WIDTH, MEDIA_HEIGHT } from '../../nodeviews/mediaNodeView/media';
|
|
13
11
|
var iconWrapperStyles = css({
|
|
14
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
-
color: "var(--ds-icon-accent-blue,
|
|
13
|
+
color: "var(--ds-icon-accent-blue, #357DE8)",
|
|
16
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
|
-
background: "var(--ds-background-accent-blue-subtle,
|
|
15
|
+
background: "var(--ds-background-accent-blue-subtle, #669DF1)",
|
|
18
16
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
19
17
|
margin: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-300, 24px)"),
|
|
20
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
|
|
@@ -26,7 +24,7 @@ var iconWrapperStyles = css({
|
|
|
26
24
|
justifyContent: 'center'
|
|
27
25
|
});
|
|
28
26
|
var dropLineStyles = css({
|
|
29
|
-
background: "var(--ds-border-focused,
|
|
27
|
+
background: "var(--ds-border-focused, #4688EC)",
|
|
30
28
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
31
29
|
margin: "var(--ds-space-025, 2px)".concat(" 0"),
|
|
32
30
|
width: '100%',
|
|
@@ -24,13 +24,12 @@ PanelTextInput } from '@atlaskit/editor-common/ui';
|
|
|
24
24
|
import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
25
25
|
import ChevronLeftLargeIcon from '@atlaskit/icon/core/chevron-left';
|
|
26
26
|
import EditorUnlinkIcon from '@atlaskit/icon/core/link-broken';
|
|
27
|
-
import { R400 } from '@atlaskit/theme/colors';
|
|
28
27
|
var validationWrapper = css({
|
|
29
28
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
30
29
|
lineHeight: 0,
|
|
31
30
|
padding: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-300, 24px)", " ", "var(--ds-space-150, 12px)", " 0"),
|
|
32
31
|
margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-400, 32px)"),
|
|
33
|
-
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-danger,
|
|
32
|
+
borderTop: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-danger, #E2483D)"),
|
|
34
33
|
alignItems: 'start',
|
|
35
34
|
display: 'flex',
|
|
36
35
|
flexDirection: 'column'
|
|
@@ -392,11 +392,11 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
392
392
|
}
|
|
393
393
|
return {
|
|
394
394
|
left: {
|
|
395
|
-
left: "calc(".concat("var(--ds-space-025,
|
|
395
|
+
left: "calc(".concat("var(--ds-space-025, 2px)", " * -0.5)"),
|
|
396
396
|
paddingLeft: '0px'
|
|
397
397
|
},
|
|
398
398
|
right: {
|
|
399
|
-
right: "calc(".concat("var(--ds-space-025,
|
|
399
|
+
right: "calc(".concat("var(--ds-space-025, 2px)", " * -0.5)"),
|
|
400
400
|
paddingRight: '0px'
|
|
401
401
|
}
|
|
402
402
|
};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
|
|
4
|
-
// Ignored via go/ees005
|
|
5
|
-
// eslint-disable-next-line import/no-namespace
|
|
6
|
-
import * as colors from '@atlaskit/theme/colors';
|
|
7
3
|
var NOTIFICATION_SIZE = 8;
|
|
8
4
|
var SPACE_FROM_EDGE = "var(--ds-space-100, 8px)";
|
|
9
5
|
|
|
@@ -13,7 +9,7 @@ export var resizableMediaMigrationNotificationStyle = css({
|
|
|
13
9
|
top: SPACE_FROM_EDGE,
|
|
14
10
|
right: "calc(".concat("var(--ds-space-150, 12px)", " + ", SPACE_FROM_EDGE, ")"),
|
|
15
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
|
-
backgroundColor: "var(--ds-background-warning-bold,
|
|
12
|
+
backgroundColor: "var(--ds-background-warning-bold, #FBC828)",
|
|
17
13
|
borderRadius: "var(--ds-radius-full, 50%)",
|
|
18
14
|
width: "".concat(NOTIFICATION_SIZE, "px"),
|
|
19
15
|
height: "".concat(NOTIFICATION_SIZE, "px"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.4",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
53
53
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
54
54
|
"@atlaskit/form": "^15.5.0",
|
|
55
|
-
"@atlaskit/icon": "^33.
|
|
56
|
-
"@atlaskit/icon-lab": "^6.
|
|
55
|
+
"@atlaskit/icon": "^33.1.0",
|
|
56
|
+
"@atlaskit/icon-lab": "^6.2.0",
|
|
57
57
|
"@atlaskit/media-card": "^79.16.0",
|
|
58
58
|
"@atlaskit/media-client": "^36.0.0",
|
|
59
59
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/primitives": "^18.1.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.2.0",
|
|
68
68
|
"@atlaskit/theme": "^22.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^46.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^46.1.0",
|
|
70
70
|
"@atlaskit/tokens": "^11.2.0",
|
|
71
71
|
"@atlaskit/tooltip": "^21.0.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": "^112.
|
|
81
|
+
"@atlaskit/editor-common": "^112.10.0",
|
|
82
82
|
"@atlaskit/media-core": "^37.0.0",
|
|
83
83
|
"react": "^18.2.0",
|
|
84
84
|
"react-dom": "^18.2.0",
|