@atlaskit/editor-common 94.3.0 → 94.3.1
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/doc-utils/editor-use-only.js +2 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +48 -21
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +52 -47
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +56 -48
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/Caption/index.js +7 -6
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/doc-utils/editor-use-only.js +1 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +50 -20
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +2 -2
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +52 -47
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +56 -48
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/Caption/index.js +7 -6
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/doc-utils/editor-use-only.js +1 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +48 -21
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +2 -2
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +52 -47
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +56 -48
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/Caption/index.js +7 -6
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -69,7 +69,7 @@ var buttonLabelStyles = css({
|
|
|
69
69
|
'&.remove-nested-left-margin': {
|
|
70
70
|
marginLeft: 0
|
|
71
71
|
},
|
|
72
|
-
fontSize:
|
|
72
|
+
fontSize: "var(--ds-space-200, 16px)",
|
|
73
73
|
fontWeight: "var(--ds-font-weight-regular, 400)"
|
|
74
74
|
});
|
|
75
75
|
var spacerStyles = css({
|
|
@@ -77,6 +77,9 @@ var spacerStyles = css({
|
|
|
77
77
|
height: '10px'
|
|
78
78
|
});
|
|
79
79
|
var textStyles = css({
|
|
80
|
+
// cannot use font.body or editor custom font.body here as line-height need to be 1 (from sharedLabelStyles)
|
|
81
|
+
// cannot use space token as there is not token for 14px
|
|
82
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
80
83
|
fontSize: '14px',
|
|
81
84
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
82
85
|
padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)")
|
|
@@ -138,53 +141,58 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
138
141
|
var iconClassNames = classnames({
|
|
139
142
|
'hide-icon': isBodiedMacro && !isNodeHovered
|
|
140
143
|
});
|
|
141
|
-
return
|
|
142
|
-
// eslint-disable-next-line
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
144
|
+
return (
|
|
145
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
146
|
+
jsx("div", {
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
148
|
+
css: containerStyles
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
150
|
+
,
|
|
151
|
+
className: containerClassNames
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
153
|
+
,
|
|
154
|
+
style: customContainerStyles
|
|
155
|
+
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
156
|
+
,
|
|
157
|
+
onMouseOver: function onMouseOver() {
|
|
158
|
+
setIsNodeHovered === null || setIsNodeHovered === void 0 || setIsNodeHovered(true);
|
|
159
|
+
},
|
|
160
|
+
onMouseLeave: function onMouseLeave() {
|
|
161
|
+
setIsNodeHovered === null || setIsNodeHovered === void 0 || setIsNodeHovered(false);
|
|
162
|
+
},
|
|
163
|
+
"data-testid": "new-lozenge-container"
|
|
164
|
+
}, showMacroButtonUpdates ? jsx(Fragment, null, jsx(Tooltip, {
|
|
165
|
+
content: jsx(FormattedMessage, _extends({}, i18n.configure, {
|
|
166
|
+
values: {
|
|
167
|
+
macroName: text
|
|
168
|
+
}
|
|
169
|
+
})),
|
|
170
|
+
position: "top"
|
|
171
|
+
}, function (tooltipProps) {
|
|
172
|
+
return jsx("span", _extends({
|
|
173
|
+
"data-testid": "new-lozenge-button"
|
|
174
|
+
}, tooltipProps, {
|
|
175
|
+
css: [sharedLabelStyles, buttonLabelStyles]
|
|
176
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
177
|
+
,
|
|
178
|
+
className: "".concat(sharedLabelClassNames, " ").concat(newButtonLabelClassNames)
|
|
179
|
+
}), text, jsx("span", {
|
|
180
|
+
css: iconStyles,
|
|
181
|
+
className: iconClassNames,
|
|
182
|
+
"data-testid": "config-icon"
|
|
183
|
+
}, jsx(PreferencesIcon, {
|
|
184
|
+
label: ""
|
|
185
|
+
})));
|
|
186
|
+
}), jsx("div", {
|
|
187
|
+
css: spacerStyles
|
|
188
|
+
})) : jsx("span", {
|
|
189
|
+
"data-testid": "new-lozenge",
|
|
190
|
+
css: [sharedLabelStyles, originalLabelStyles]
|
|
169
191
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
170
192
|
,
|
|
171
|
-
className:
|
|
172
|
-
}
|
|
173
|
-
css:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}, jsx(PreferencesIcon, {
|
|
177
|
-
label: ""
|
|
178
|
-
})));
|
|
179
|
-
}), jsx("div", {
|
|
180
|
-
css: spacerStyles
|
|
181
|
-
})) : jsx("span", {
|
|
182
|
-
"data-testid": "new-lozenge",
|
|
183
|
-
css: [sharedLabelStyles, originalLabelStyles]
|
|
184
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
185
|
-
,
|
|
186
|
-
className: sharedLabelClassNames
|
|
187
|
-
}, jsx("span", {
|
|
188
|
-
css: textStyles
|
|
189
|
-
}, text)));
|
|
193
|
+
className: sharedLabelClassNames
|
|
194
|
+
}, jsx("span", {
|
|
195
|
+
css: textStyles
|
|
196
|
+
}, text)))
|
|
197
|
+
);
|
|
190
198
|
};
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "94.3.
|
|
10
|
+
var packageVersion = "94.3.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -15,6 +15,7 @@ import React from 'react';
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import { injectIntl } from 'react-intl-next';
|
|
18
|
+
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
18
19
|
import { messages } from './messages';
|
|
19
20
|
var captionWrapperStyle = css({
|
|
20
21
|
marginTop: "var(--ds-space-100, 8px)",
|
|
@@ -22,10 +23,10 @@ var captionWrapperStyle = css({
|
|
|
22
23
|
position: 'relative',
|
|
23
24
|
color: "var(--ds-text-subtle, #44546F)"
|
|
24
25
|
});
|
|
25
|
-
var placeholderStyle =
|
|
26
|
-
color:
|
|
26
|
+
var placeholderStyle = xcss({
|
|
27
|
+
color: 'color.text.subtlest',
|
|
27
28
|
position: 'absolute',
|
|
28
|
-
top: 0,
|
|
29
|
+
top: 'space.0',
|
|
29
30
|
width: '100%'
|
|
30
31
|
});
|
|
31
32
|
export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
|
|
@@ -50,9 +51,9 @@ export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
50
51
|
"data-testid": "media-caption"
|
|
51
52
|
}, dataAttributes, {
|
|
52
53
|
css: captionWrapperStyle
|
|
53
|
-
}), showPlaceholder ? jsx(
|
|
54
|
-
|
|
55
|
-
}, formatMessage(messages.placeholder)) : null, children);
|
|
54
|
+
}), showPlaceholder ? jsx(Box, {
|
|
55
|
+
xcss: placeholderStyle
|
|
56
|
+
}, jsx(Text, null, formatMessage(messages.placeholder))) : null, children);
|
|
56
57
|
}
|
|
57
58
|
}]);
|
|
58
59
|
return CaptionComponent;
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "94.3.
|
|
24
|
+
var packageVersion = "94.3.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -30,5 +30,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
30
30
|
skipFocusButtonAfterPick?: boolean | undefined;
|
|
31
31
|
absoluteOffset?: PopupPosition | undefined;
|
|
32
32
|
returnEscToButton?: boolean | undefined;
|
|
33
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "
|
|
33
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "cols" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "isAriaExpanded" | "returnEscToButton" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
34
34
|
export default _default;
|
|
@@ -30,5 +30,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
30
30
|
skipFocusButtonAfterPick?: boolean | undefined;
|
|
31
31
|
absoluteOffset?: PopupPosition | undefined;
|
|
32
32
|
returnEscToButton?: boolean | undefined;
|
|
33
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "
|
|
33
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "cols" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "isAriaExpanded" | "returnEscToButton" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
34
34
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "94.3.
|
|
3
|
+
"version": "94.3.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"@atlaskit/editor-json-transformer": "^8.20.0",
|
|
124
124
|
"@atlaskit/editor-palette": "1.6.2",
|
|
125
125
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
126
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
126
|
+
"@atlaskit/editor-shared-styles": "^3.1.0",
|
|
127
127
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
128
128
|
"@atlaskit/emoji": "^67.8.0",
|
|
129
129
|
"@atlaskit/icon": "^22.24.0",
|