@atlaskit/editor-common 111.6.3 → 111.7.2
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 +27 -0
- package/dist/cjs/floating-toolbar/DropdownMenuItem.js +0 -2
- package/dist/cjs/keymaps/index.js +2 -1
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +2 -5
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +0 -1
- package/dist/cjs/media-inline/views/error-view.js +1 -5
- package/dist/cjs/media-single/ExternalImageBadge.js +0 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/resizer.js +1 -4
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Messages/index.js +0 -3
- package/dist/cjs/ui/Toolbar/ExpandIcon.js +0 -1
- package/dist/cjs/ui/UnsupportedBlock/index.js +1 -2
- package/dist/cjs/ui/UnsupportedInline/index.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +0 -3
- package/dist/cjs/utils/imageLoader.js +4 -131
- package/dist/es2019/floating-toolbar/DropdownMenuItem.js +0 -2
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +2 -5
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +0 -1
- package/dist/es2019/media-inline/views/error-view.js +1 -4
- package/dist/es2019/media-single/ExternalImageBadge.js +0 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/resizer.js +1 -4
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Messages/index.js +0 -3
- package/dist/es2019/ui/Toolbar/ExpandIcon.js +0 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +1 -2
- package/dist/es2019/ui/UnsupportedInline/index.js +1 -2
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +0 -2
- package/dist/es2019/utils/imageLoader.js +1 -111
- package/dist/esm/floating-toolbar/DropdownMenuItem.js +0 -2
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +2 -5
- package/dist/esm/link/ConfigureLinkOverlay/index.js +0 -1
- package/dist/esm/media-inline/views/error-view.js +1 -5
- package/dist/esm/media-single/ExternalImageBadge.js +0 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/resizer.js +1 -4
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Messages/index.js +0 -3
- package/dist/esm/ui/Toolbar/ExpandIcon.js +0 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -2
- package/dist/esm/ui/UnsupportedInline/index.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Color/index.js +0 -3
- package/dist/esm/utils/imageLoader.js +3 -130
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/media-inline/views/error-view.d.ts +1 -3
- package/dist/types/utils/imageLoader.d.ts +0 -1
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +1 -3
- package/dist/types-ts4.5/utils/imageLoader.d.ts +0 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`819348f0857f5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/819348f0857f5) -
|
|
8
|
+
[ux] [EDITOR-3769] added shortcut to track changes button
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 111.7.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`0bf8d0bd8bf2c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0bf8d0bd8bf2c) -
|
|
16
|
+
[ux] EDITOR-4276 Apply block selection visual style only from drag handle
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 111.7.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- [`87b12e64ff750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87b12e64ff750) -
|
|
24
|
+
Removed usages of LEGACY icon props
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 111.6.3
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -46,8 +46,6 @@ var SelectedIconBefore = function SelectedIconBefore(_ref) {
|
|
|
46
46
|
return (0, _react2.jsx)("span", {
|
|
47
47
|
"aria-hidden": "true"
|
|
48
48
|
}, (0, _react2.jsx)(_checkMark.default, {
|
|
49
|
-
LEGACY_primaryColor: "var(--ds-icon-selected, #1868DB)",
|
|
50
|
-
LEGACY_size: "small",
|
|
51
49
|
label: intl.formatMessage(_floatingToolbar.messages.confirmModalOK),
|
|
52
50
|
spacing: "none"
|
|
53
51
|
}));
|
|
@@ -103,7 +103,7 @@ exports.makeKeyMapArrayWithCommon = makeKeyMapArrayWithCommon;
|
|
|
103
103
|
exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
|
|
104
104
|
exports.makeKeymap = makeKeymap;
|
|
105
105
|
exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.selectTable = exports.selectRow = exports.selectColumn = exports.redoAlt = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRowUp = exports.moveRowDown = exports.moveRight = exports.moveLeft = exports.moveDown = exports.moveColumnRight = exports.moveColumnLeft = void 0;
|
|
106
|
-
exports.toggleUnderline = exports.toggleTaskList = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCodeBlock = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.showElementDragHandle = exports.shiftTab = exports.shiftEnter = void 0;
|
|
106
|
+
exports.toggleViewChanges = exports.toggleUnderline = exports.toggleTaskList = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCodeBlock = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.showElementDragHandle = exports.shiftTab = exports.shiftEnter = void 0;
|
|
107
107
|
exports.tooltip = tooltip;
|
|
108
108
|
exports.undo = void 0;
|
|
109
109
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
@@ -124,6 +124,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
124
124
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
125
125
|
|
|
126
126
|
var addAltText = exports.addAltText = makeKeyMapWithCommon('Add Alt Text', 'Mod-Alt-y');
|
|
127
|
+
var toggleViewChanges = exports.toggleViewChanges = makeKeyMapWithCommon('View changes', 'Mod-Alt-z');
|
|
127
128
|
var navToEditorToolbar = exports.navToEditorToolbar = makeKeyMapWithCommon('Navigate to editor toolbar', 'Alt-F9');
|
|
128
129
|
var navToFloatingToolbar = exports.navToFloatingToolbar = makeKeyMapWithCommon('Navigate to floating toolbar', 'Alt-F10');
|
|
129
130
|
var askAIQuickInsert = exports.askAIQuickInsert = makeKeyMapWithCommon('Ask AI', "Mod-'");
|
|
@@ -82,7 +82,6 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
82
82
|
}, props, {
|
|
83
83
|
iconBefore: (0, _react2.jsx)(_chevronDown.default, {
|
|
84
84
|
label: configureLinkLabel,
|
|
85
|
-
LEGACY_size: "small",
|
|
86
85
|
size: "small"
|
|
87
86
|
}),
|
|
88
87
|
onClick: function onClick(e) {
|
|
@@ -95,15 +94,13 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
95
94
|
onOpenChange: onOpenChange
|
|
96
95
|
}, (0, _react2.jsx)(_dropdownMenu.DropdownItemGroup, null, (0, _react2.jsx)(_dropdownMenu.DropdownItem, {
|
|
97
96
|
elemBefore: (0, _react2.jsx)(_linkExternal.default, {
|
|
98
|
-
label: goToLinkLabel
|
|
99
|
-
LEGACY_size: "medium"
|
|
97
|
+
label: goToLinkLabel
|
|
100
98
|
}),
|
|
101
99
|
testId: "".concat(testId, "-dropdown-item-open-link"),
|
|
102
100
|
onClick: onGoToLinkClick
|
|
103
101
|
}, goToLinkLabel), (0, _react2.jsx)(_dropdownMenu.DropdownItem, {
|
|
104
102
|
elemBefore: (0, _react2.jsx)(_customize.default, {
|
|
105
|
-
label: configureLinkLabel
|
|
106
|
-
LEGACY_size: "medium"
|
|
103
|
+
label: configureLinkLabel
|
|
107
104
|
}),
|
|
108
105
|
onClick: onConfigureClick,
|
|
109
106
|
testId: "".concat(testId, "-dropdown-item-configure")
|
|
@@ -108,7 +108,6 @@ var OverlayButton = exports.OverlayButton = (0, _withAnalyticsContext.default)()
|
|
|
108
108
|
onClick: handleConfigureClickWithAnalytics,
|
|
109
109
|
iconBefore: (0, _react2.jsx)(_customize.default, {
|
|
110
110
|
label: configureLinkLabel,
|
|
111
|
-
LEGACY_size: "small",
|
|
112
111
|
testId: "".concat(testId, "-configure-icon")
|
|
113
112
|
})
|
|
114
113
|
})));
|
|
@@ -8,7 +8,6 @@ exports.InlineImageCardErrorView = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
|
|
10
10
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
11
|
-
var _constants = require("./constants");
|
|
12
11
|
var _frame = require("./frame");
|
|
13
12
|
var _iconWrapper = require("./icon-wrapper");
|
|
14
13
|
/**
|
|
@@ -22,9 +21,7 @@ var InlineImageCardErrorView = exports.InlineImageCardErrorView = function Inlin
|
|
|
22
21
|
var _ref$testId = _ref.testId,
|
|
23
22
|
testId = _ref$testId === void 0 ? 'media-inline-image-card-error-view' : _ref$testId,
|
|
24
23
|
message = _ref.message,
|
|
25
|
-
icon = _ref.icon
|
|
26
|
-
_ref$height = _ref.height,
|
|
27
|
-
height = _ref$height === void 0 ? _constants.ICON_SIZE_THRESOLD : _ref$height;
|
|
24
|
+
icon = _ref.icon;
|
|
28
25
|
return (0, _react.jsx)(_frame.Frame, {
|
|
29
26
|
testId: testId
|
|
30
27
|
}, (0, _react.jsx)(_tooltip.default, {
|
|
@@ -34,7 +31,6 @@ var InlineImageCardErrorView = exports.InlineImageCardErrorView = function Inlin
|
|
|
34
31
|
hideTooltipOnClick: true
|
|
35
32
|
}, (0, _react.jsx)(_iconWrapper.IconWrapper, null, icon || (0, _react.jsx)(_statusWarning.default, {
|
|
36
33
|
label: "error",
|
|
37
|
-
LEGACY_size: height > _constants.ICON_SIZE_THRESOLD ? 'medium' : 'small',
|
|
38
34
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
39
35
|
}))));
|
|
40
36
|
};
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
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
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "111.
|
|
22
|
+
var packageVersion = "111.7.1";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -20,12 +20,9 @@ var resizerHandleClassName = exports.resizerHandleClassName = 'resizer-handle';
|
|
|
20
20
|
var resizerHandleTrackClassName = exports.resizerHandleTrackClassName = "".concat(resizerHandleClassName, "-track");
|
|
21
21
|
var resizerHandleThumbClassName = exports.resizerHandleThumbClassName = "".concat(resizerHandleClassName, "-thumb");
|
|
22
22
|
var resizerDangerClassName = exports.resizerDangerClassName = "".concat(resizerHandleClassName, "-danger");
|
|
23
|
-
|
|
24
|
-
// akEditorSelectedNodeClassName from '@atlaskit/editor-shared-styles';
|
|
25
|
-
var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
26
23
|
var handleWrapperClass = exports.handleWrapperClass = 'resizer-handle-wrapper';
|
|
27
24
|
var resizerHandleThumbWidth = exports.resizerHandleThumbWidth = 3;
|
|
28
25
|
var resizerHandleZIndex = exports.resizerHandleZIndex = 1;
|
|
29
26
|
|
|
30
27
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
|
|
31
|
-
var resizerStyles = exports.resizerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\t\t&.clamped {\n\t\t\t& .", " {\n\t\t\t\theight: clamp(43px, calc(100% - 32px), 96px);\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: flow-root;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t/* This below style is here to make sure the image width is correct when nested in a table */\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, #0B120E24)", "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, #E9F2FE)", "var(--ds-background-selected, #E9F2FE)", akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
|
|
28
|
+
var resizerStyles = exports.resizerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\t\t&.clamped {\n\t\t\t& .", " {\n\t\t\t\theight: clamp(43px, calc(100% - 32px), 96px);\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: flow-root;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t/* This below style is here to make sure the image width is correct when nested in a table */\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, #0B120E24)", "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, #E9F2FE)", "var(--ds-background-selected, #E9F2FE)", _editorSharedStyles.akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "111.
|
|
27
|
+
var packageVersion = "111.7.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -63,7 +63,6 @@ var ErrorMessage = exports.ErrorMessage = function ErrorMessage(_ref2) {
|
|
|
63
63
|
}, (0, _react.jsx)("span", {
|
|
64
64
|
css: iconWrapperStyle
|
|
65
65
|
}, (0, _react.jsx)(_statusError.default, {
|
|
66
|
-
LEGACY_size: "small",
|
|
67
66
|
label: (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? intl.formatMessage(_messages.default.error) : "error",
|
|
68
67
|
"aria-label": (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? undefined : "error"
|
|
69
68
|
})), children);
|
|
@@ -78,10 +77,8 @@ var ValidMessage = exports.ValidMessage = function ValidMessage(_ref3) {
|
|
|
78
77
|
}, (0, _react.jsx)("span", {
|
|
79
78
|
css: iconWrapperStyle
|
|
80
79
|
}, (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? (0, _react.jsx)(_statusSuccess.default, {
|
|
81
|
-
LEGACY_size: "small",
|
|
82
80
|
label: intl.formatMessage(_messages.default.success)
|
|
83
81
|
}) : (0, _react.jsx)(_statusSuccess.default, {
|
|
84
|
-
LEGACY_size: "small",
|
|
85
82
|
label: "success"
|
|
86
83
|
})), children);
|
|
87
84
|
};
|
|
@@ -66,8 +66,7 @@ var UnsupportedInlineNode = function UnsupportedInlineNode(_ref) {
|
|
|
66
66
|
}, (0, _react2.jsx)("span", {
|
|
67
67
|
style: style
|
|
68
68
|
}, (0, _react2.jsx)(_questionCircle.default, {
|
|
69
|
-
label: "?"
|
|
70
|
-
LEGACY_size: "small"
|
|
69
|
+
label: "?"
|
|
71
70
|
}))));
|
|
72
71
|
};
|
|
73
72
|
var _default = exports.default = (0, _reactIntlNext.injectIntl)(UnsupportedInlineNode);
|
|
@@ -24,8 +24,6 @@ var Color = function Color(props) {
|
|
|
24
24
|
label = props.label,
|
|
25
25
|
isSelected = props.isSelected,
|
|
26
26
|
borderColor = props.borderColor,
|
|
27
|
-
_props$checkMarkColor = props.checkMarkColor,
|
|
28
|
-
checkMarkColor = _props$checkMarkColor === void 0 ? '#FFFFFF' : _props$checkMarkColor,
|
|
29
27
|
hexToPaletteColor = props.hexToPaletteColor,
|
|
30
28
|
decorator = props.decorator;
|
|
31
29
|
var colorStyle = hexToPaletteColor ? hexToPaletteColor(value) : value;
|
|
@@ -74,7 +72,6 @@ var Color = function Color(props) {
|
|
|
74
72
|
},
|
|
75
73
|
autoFocus: autoFocus
|
|
76
74
|
}, !decorator && isSelected && (0, _react2.jsx)(_checkMark.default, {
|
|
77
|
-
LEGACY_primaryColor: checkMarkColor,
|
|
78
75
|
label: ""
|
|
79
76
|
}), decorator)));
|
|
80
77
|
};
|
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.withImageLoader = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -17,7 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
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); }
|
|
18
18
|
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)); }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
-
var
|
|
20
|
+
var withImageLoader = exports.withImageLoader = function withImageLoader(Wrapped) {
|
|
21
21
|
return /*#__PURE__*/function (_Component) {
|
|
22
22
|
function WithImageLoader() {
|
|
23
23
|
var _this;
|
|
@@ -49,130 +49,6 @@ var withImageLoaderOld = exports.withImageLoaderOld = function withImageLoaderOl
|
|
|
49
49
|
return _this;
|
|
50
50
|
}
|
|
51
51
|
(0, _inherits2.default)(WithImageLoader, _Component);
|
|
52
|
-
return (0, _createClass2.default)(WithImageLoader, [{
|
|
53
|
-
key: "componentDidMount",
|
|
54
|
-
value:
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
*/
|
|
59
|
-
function componentDidMount() {
|
|
60
|
-
this.fetchImage(this.props);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @param nextProps
|
|
66
|
-
* @example
|
|
67
|
-
*/
|
|
68
|
-
// Ignored via go/ees005
|
|
69
|
-
// eslint-disable-next-line react/no-unsafe
|
|
70
|
-
}, {
|
|
71
|
-
key: "UNSAFE_componentWillReceiveProps",
|
|
72
|
-
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
73
|
-
if (nextProps.url !== this.props.url) {
|
|
74
|
-
this.setState({
|
|
75
|
-
imageStatus: 'loading'
|
|
76
|
-
});
|
|
77
|
-
this.fetchImage(nextProps);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
*/
|
|
85
|
-
}, {
|
|
86
|
-
key: "componentWillUnmount",
|
|
87
|
-
value: function componentWillUnmount() {
|
|
88
|
-
if (this.img) {
|
|
89
|
-
if (!process.env.REACT_SSR) {
|
|
90
|
-
// Ignored via go/ees005
|
|
91
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
92
|
-
this.img.removeEventListener('load', this.onLoad);
|
|
93
|
-
// Ignored via go/ees005
|
|
94
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
95
|
-
this.img.removeEventListener('error', this.onError);
|
|
96
|
-
this.img = null;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @param root0
|
|
104
|
-
* @param root0.url
|
|
105
|
-
* @example
|
|
106
|
-
*/
|
|
107
|
-
}, {
|
|
108
|
-
key: "fetchImage",
|
|
109
|
-
value: function fetchImage(_ref) {
|
|
110
|
-
var url = _ref.url;
|
|
111
|
-
if (url) {
|
|
112
|
-
if (!this.img) {
|
|
113
|
-
this.img = new Image();
|
|
114
|
-
if (!process.env.REACT_SSR) {
|
|
115
|
-
// Ignored via go/ees005
|
|
116
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
117
|
-
this.img.addEventListener('load', this.onLoad);
|
|
118
|
-
// Ignored via go/ees005
|
|
119
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
120
|
-
this.img.addEventListener('error', this.onError);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
this.img.src = url;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}, {
|
|
127
|
-
key: "render",
|
|
128
|
-
value:
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
*/
|
|
133
|
-
function render() {
|
|
134
|
-
var imageStatus = this.state.imageStatus;
|
|
135
|
-
// Ignored via go/ees005
|
|
136
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
137
|
-
return /*#__PURE__*/_react.default.createElement(Wrapped, (0, _extends2.default)({}, this.props, {
|
|
138
|
-
imageStatus: imageStatus
|
|
139
|
-
}));
|
|
140
|
-
}
|
|
141
|
-
}]);
|
|
142
|
-
}(_react.Component);
|
|
143
|
-
};
|
|
144
|
-
var withImageLoaderNew = function withImageLoaderNew(Wrapped) {
|
|
145
|
-
return /*#__PURE__*/function (_Component2) {
|
|
146
|
-
function WithImageLoader() {
|
|
147
|
-
var _this2;
|
|
148
|
-
(0, _classCallCheck2.default)(this, WithImageLoader);
|
|
149
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
150
|
-
args[_key2] = arguments[_key2];
|
|
151
|
-
}
|
|
152
|
-
_this2 = _callSuper(this, WithImageLoader, [].concat(args));
|
|
153
|
-
(0, _defineProperty2.default)(_this2, "state", {
|
|
154
|
-
imageStatus: 'loading'
|
|
155
|
-
});
|
|
156
|
-
(0, _defineProperty2.default)(_this2, "onLoad", function () {
|
|
157
|
-
_this2.setState({
|
|
158
|
-
imageStatus: 'complete'
|
|
159
|
-
});
|
|
160
|
-
var onExternalImageLoaded = _this2.props.onExternalImageLoaded;
|
|
161
|
-
if (onExternalImageLoaded && _this2.img) {
|
|
162
|
-
onExternalImageLoaded({
|
|
163
|
-
width: _this2.img.naturalWidth,
|
|
164
|
-
height: _this2.img.naturalHeight
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
(0, _defineProperty2.default)(_this2, "onError", function () {
|
|
169
|
-
_this2.setState({
|
|
170
|
-
imageStatus: 'error'
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
return _this2;
|
|
174
|
-
}
|
|
175
|
-
(0, _inherits2.default)(WithImageLoader, _Component2);
|
|
176
52
|
return (0, _createClass2.default)(WithImageLoader, [{
|
|
177
53
|
key: "componentDidMount",
|
|
178
54
|
value: function componentDidMount() {
|
|
@@ -205,8 +81,8 @@ var withImageLoaderNew = function withImageLoaderNew(Wrapped) {
|
|
|
205
81
|
}
|
|
206
82
|
}, {
|
|
207
83
|
key: "fetchImage",
|
|
208
|
-
value: function fetchImage(
|
|
209
|
-
var url =
|
|
84
|
+
value: function fetchImage(_ref) {
|
|
85
|
+
var url = _ref.url;
|
|
210
86
|
if (url) {
|
|
211
87
|
if (!this.img) {
|
|
212
88
|
this.img = new Image();
|
|
@@ -234,7 +110,4 @@ var withImageLoaderNew = function withImageLoaderNew(Wrapped) {
|
|
|
234
110
|
}
|
|
235
111
|
}]);
|
|
236
112
|
}(_react.Component);
|
|
237
|
-
};
|
|
238
|
-
var withImageLoader = exports.withImageLoader = function withImageLoader(Wrapped) {
|
|
239
|
-
return withImageLoaderNew(Wrapped);
|
|
240
113
|
};
|
|
@@ -38,8 +38,6 @@ const SelectedIconBefore = ({
|
|
|
38
38
|
return jsx("span", {
|
|
39
39
|
"aria-hidden": "true"
|
|
40
40
|
}, jsx(EditorDoneIcon, {
|
|
41
|
-
LEGACY_primaryColor: "var(--ds-icon-selected, #1868DB)",
|
|
42
|
-
LEGACY_size: "small",
|
|
43
41
|
label: intl.formatMessage(messages.confirmModalOK),
|
|
44
42
|
spacing: "none"
|
|
45
43
|
}));
|
|
@@ -11,6 +11,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
11
11
|
import { editorCommandToPMCommand } from '../preset/editor-commands';
|
|
12
12
|
import { browser as browserLegacy, getBrowserInfo } from '../utils/browser';
|
|
13
13
|
export const addAltText = makeKeyMapWithCommon('Add Alt Text', 'Mod-Alt-y');
|
|
14
|
+
export const toggleViewChanges = makeKeyMapWithCommon('View changes', 'Mod-Alt-z');
|
|
14
15
|
export const navToEditorToolbar = makeKeyMapWithCommon('Navigate to editor toolbar', 'Alt-F9');
|
|
15
16
|
export const navToFloatingToolbar = makeKeyMapWithCommon('Navigate to floating toolbar', 'Alt-F10');
|
|
16
17
|
export const askAIQuickInsert = makeKeyMapWithCommon('Ask AI', "Mod-'");
|
|
@@ -74,7 +74,6 @@ const Dropdown = ({
|
|
|
74
74
|
}, props, {
|
|
75
75
|
iconBefore: jsx(ChevronDownIcon, {
|
|
76
76
|
label: configureLinkLabel,
|
|
77
|
-
LEGACY_size: "small",
|
|
78
77
|
size: "small"
|
|
79
78
|
}),
|
|
80
79
|
onClick: e => {
|
|
@@ -86,15 +85,13 @@ const Dropdown = ({
|
|
|
86
85
|
onOpenChange: onOpenChange
|
|
87
86
|
}, jsx(DropdownItemGroup, null, jsx(DropdownItem, {
|
|
88
87
|
elemBefore: jsx(LinkExternalIcon, {
|
|
89
|
-
label: goToLinkLabel
|
|
90
|
-
LEGACY_size: "medium"
|
|
88
|
+
label: goToLinkLabel
|
|
91
89
|
}),
|
|
92
90
|
testId: `${testId}-dropdown-item-open-link`,
|
|
93
91
|
onClick: onGoToLinkClick
|
|
94
92
|
}, goToLinkLabel), jsx(DropdownItem, {
|
|
95
93
|
elemBefore: jsx(PreferencesIcon, {
|
|
96
|
-
label: configureLinkLabel
|
|
97
|
-
LEGACY_size: "medium"
|
|
94
|
+
label: configureLinkLabel
|
|
98
95
|
}),
|
|
99
96
|
onClick: onConfigureClick,
|
|
100
97
|
testId: `${testId}-dropdown-item-configure`
|
|
@@ -7,14 +7,12 @@
|
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
|
-
import { ICON_SIZE_THRESOLD } from './constants';
|
|
11
10
|
import { Frame } from './frame';
|
|
12
11
|
import { IconWrapper } from './icon-wrapper';
|
|
13
12
|
export const InlineImageCardErrorView = ({
|
|
14
13
|
testId = 'media-inline-image-card-error-view',
|
|
15
14
|
message,
|
|
16
|
-
icon
|
|
17
|
-
height = ICON_SIZE_THRESOLD
|
|
15
|
+
icon
|
|
18
16
|
}) => {
|
|
19
17
|
return jsx(Frame, {
|
|
20
18
|
testId: testId
|
|
@@ -25,7 +23,6 @@ export const InlineImageCardErrorView = ({
|
|
|
25
23
|
hideTooltipOnClick: true
|
|
26
24
|
}, jsx(IconWrapper, null, icon || jsx(WarningIcon, {
|
|
27
25
|
label: "error",
|
|
28
|
-
LEGACY_size: height > ICON_SIZE_THRESOLD ? 'medium' : 'small',
|
|
29
26
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
30
27
|
}))));
|
|
31
28
|
};
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "111.
|
|
7
|
+
const packageVersion = "111.7.1";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { akEditorDeleteIconColor } from '@atlaskit/editor-shared-styles';
|
|
3
|
+
import { akEditorDeleteIconColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
/*
|
|
5
5
|
Styles in this file are based on
|
|
6
6
|
packages/editor/editor-core/src/plugins/media/styles.ts
|
|
@@ -12,9 +12,6 @@ export const resizerHandleClassName = 'resizer-handle';
|
|
|
12
12
|
export const resizerHandleTrackClassName = `${resizerHandleClassName}-track`;
|
|
13
13
|
export const resizerHandleThumbClassName = `${resizerHandleClassName}-thumb`;
|
|
14
14
|
export const resizerDangerClassName = `${resizerHandleClassName}-danger`;
|
|
15
|
-
|
|
16
|
-
// akEditorSelectedNodeClassName from '@atlaskit/editor-shared-styles';
|
|
17
|
-
const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
18
15
|
export const handleWrapperClass = 'resizer-handle-wrapper';
|
|
19
16
|
export const resizerHandleThumbWidth = 3;
|
|
20
17
|
export const resizerHandleZIndex = 1;
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "111.
|
|
17
|
+
const packageVersion = "111.7.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -52,7 +52,6 @@ export const ErrorMessage = ({
|
|
|
52
52
|
}, jsx("span", {
|
|
53
53
|
css: iconWrapperStyle
|
|
54
54
|
}, jsx(ErrorIcon, {
|
|
55
|
-
LEGACY_size: "small",
|
|
56
55
|
label: fg('platform_editor_dec_a11y_fixes') ? intl.formatMessage(commonMessages.error) : "error",
|
|
57
56
|
"aria-label": fg('platform_editor_dec_a11y_fixes') ? undefined : "error"
|
|
58
57
|
})), children);
|
|
@@ -68,10 +67,8 @@ export const ValidMessage = ({
|
|
|
68
67
|
}, jsx("span", {
|
|
69
68
|
css: iconWrapperStyle
|
|
70
69
|
}, fg('platform_editor_dec_a11y_fixes') ? jsx(SuccessIcon, {
|
|
71
|
-
LEGACY_size: "small",
|
|
72
70
|
label: intl.formatMessage(commonMessages.success)
|
|
73
71
|
}) : jsx(SuccessIcon, {
|
|
74
|
-
LEGACY_size: "small",
|
|
75
72
|
label: "success"
|
|
76
73
|
})), children);
|
|
77
74
|
};
|
|
@@ -17,7 +17,6 @@ const Color = props => {
|
|
|
17
17
|
label,
|
|
18
18
|
isSelected,
|
|
19
19
|
borderColor,
|
|
20
|
-
checkMarkColor = '#FFFFFF',
|
|
21
20
|
/**
|
|
22
21
|
* When hexToPaletteColor prop is set,
|
|
23
22
|
* it will be used to get background color style based on
|
|
@@ -76,7 +75,6 @@ const Color = props => {
|
|
|
76
75
|
},
|
|
77
76
|
autoFocus: autoFocus
|
|
78
77
|
}, !decorator && isSelected && jsx(EditorDoneIcon, {
|
|
79
|
-
LEGACY_primaryColor: checkMarkColor,
|
|
80
78
|
label: ""
|
|
81
79
|
}), decorator)));
|
|
82
80
|
};
|