@atlaskit/editor-common 110.46.0 → 110.46.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/card/ui/assets/card.js +6 -14
- package/dist/cjs/card/ui/assets/embed.js +6 -14
- package/dist/cjs/card/ui/assets/inline.js +6 -14
- package/dist/cjs/card/ui/assets/url.js +6 -14
- package/dist/cjs/icons/shared/BorderIcon.js +6 -12
- package/dist/cjs/icons/shared/PanelErrorIcon.js +10 -15
- package/dist/cjs/icons/shared/PanelInfoIcon.js +9 -14
- package/dist/cjs/icons/shared/PanelNoteIcon.js +5 -11
- package/dist/cjs/icons/shared/PanelSuccessIcon.js +10 -15
- package/dist/cjs/icons/shared/PanelWarningIcon.js +10 -15
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +11 -14
- package/dist/es2019/card/ui/assets/card.js +8 -13
- package/dist/es2019/card/ui/assets/embed.js +8 -13
- package/dist/es2019/card/ui/assets/inline.js +8 -13
- package/dist/es2019/card/ui/assets/url.js +8 -13
- package/dist/es2019/icons/shared/BorderIcon.js +8 -12
- package/dist/es2019/icons/shared/PanelErrorIcon.js +11 -15
- package/dist/es2019/icons/shared/PanelInfoIcon.js +10 -14
- package/dist/es2019/icons/shared/PanelNoteIcon.js +5 -11
- package/dist/es2019/icons/shared/PanelSuccessIcon.js +11 -15
- package/dist/es2019/icons/shared/PanelWarningIcon.js +11 -15
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +11 -14
- package/dist/esm/card/ui/assets/card.js +7 -13
- package/dist/esm/card/ui/assets/embed.js +7 -13
- package/dist/esm/card/ui/assets/inline.js +7 -13
- package/dist/esm/card/ui/assets/url.js +7 -13
- package/dist/esm/icons/shared/BorderIcon.js +7 -12
- package/dist/esm/icons/shared/PanelErrorIcon.js +10 -15
- package/dist/esm/icons/shared/PanelInfoIcon.js +9 -14
- package/dist/esm/icons/shared/PanelNoteIcon.js +5 -11
- package/dist/esm/icons/shared/PanelSuccessIcon.js +10 -15
- package/dist/esm/icons/shared/PanelWarningIcon.js +10 -15
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +11 -14
- package/dist/types/card/ui/assets/card.d.ts +3 -2
- package/dist/types/card/ui/assets/embed.d.ts +3 -2
- package/dist/types/card/ui/assets/inline.d.ts +3 -2
- package/dist/types/card/ui/assets/url.d.ts +3 -2
- package/dist/types/icons/shared/BorderIcon.d.ts +3 -2
- package/dist/types/icons/shared/PanelErrorIcon.d.ts +3 -2
- package/dist/types/icons/shared/PanelInfoIcon.d.ts +3 -2
- package/dist/types/icons/shared/PanelSuccessIcon.d.ts +3 -2
- package/dist/types/icons/shared/PanelWarningIcon.d.ts +3 -2
- package/dist/types-ts4.5/card/ui/assets/card.d.ts +3 -2
- package/dist/types-ts4.5/card/ui/assets/embed.d.ts +3 -2
- package/dist/types-ts4.5/card/ui/assets/inline.d.ts +3 -2
- package/dist/types-ts4.5/card/ui/assets/url.d.ts +3 -2
- package/dist/types-ts4.5/icons/shared/BorderIcon.d.ts +3 -2
- package/dist/types-ts4.5/icons/shared/PanelErrorIcon.d.ts +3 -2
- package/dist/types-ts4.5/icons/shared/PanelInfoIcon.d.ts +3 -2
- package/dist/types-ts4.5/icons/shared/PanelSuccessIcon.d.ts +3 -2
- package/dist/types-ts4.5/icons/shared/PanelWarningIcon.d.ts +3 -2
- package/package.json +2 -5
|
@@ -3,9 +3,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./PanelWarningIcon.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import Icon from '@atlaskit/icon';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
6
|
var iconStyles = null;
|
|
7
|
+
|
|
8
|
+
// Custom icon ejection - these icons have been migrated away from the deprecated Custom / SVG components to native SVG. Please review whether this icon should be contributed to @atlaskit/icon-lab or whether it can be replaced by an existing icon from either @atlaskit/icon or @atlaskit/icon-lab
|
|
9
9
|
var PanelWarningGlyph = function PanelWarningGlyph(props) {
|
|
10
10
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
11
11
|
width: "24",
|
|
@@ -22,19 +22,14 @@ var PanelWarningGlyph = function PanelWarningGlyph(props) {
|
|
|
22
22
|
fill: "currentColor"
|
|
23
23
|
}));
|
|
24
24
|
};
|
|
25
|
-
export var PanelWarningIcon = function PanelWarningIcon(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"aria-
|
|
25
|
+
export var PanelWarningIcon = function PanelWarningIcon(_ref) {
|
|
26
|
+
var label = _ref.label;
|
|
27
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
28
|
+
role: label ? 'img' : undefined,
|
|
29
|
+
"aria-label": label ? label : undefined,
|
|
30
|
+
"aria-hidden": label ? undefined : true,
|
|
30
31
|
className: ax(["_1e0c1o8l _1o9zidpf _re2rglyw"])
|
|
31
32
|
}, /*#__PURE__*/React.createElement(PanelWarningGlyph, {
|
|
32
|
-
"
|
|
33
|
-
}))
|
|
34
|
-
/*#__PURE__*/
|
|
35
|
-
// Ignored via go/ees005
|
|
36
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
37
|
-
React.createElement(Icon, _extends({
|
|
38
|
-
glyph: PanelWarningGlyph
|
|
39
|
-
}, props));
|
|
33
|
+
role: "presentation"
|
|
34
|
+
}));
|
|
40
35
|
};
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "110.
|
|
13
|
+
var packageVersion = "110.46.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "110.
|
|
24
|
+
var packageVersion = "110.46.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { backgroundColorPalette, backgroundColorPaletteNext } from '@atlaskit/adf-schema';
|
|
9
|
-
import Icon from '@atlaskit/icon';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
9
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
12
10
|
import getColorMessage from './getColorMessage';
|
|
13
11
|
import paletteMessages from './paletteMessages';
|
|
14
12
|
import { mapPaletteColor } from './textColorPalette';
|
|
15
13
|
export var REMOVE_HIGHLIGHT_COLOR = '#00000000';
|
|
14
|
+
|
|
15
|
+
// Custom icon ejection - these icons have been migrated away from the deprecated Custom / SVG components to native SVG. Please review whether this icon should be contributed to @atlaskit/icon-lab or whether it can be replaced by an existing icon from either @atlaskit/icon or @atlaskit/icon-lab
|
|
16
16
|
var DiagonalLineGlyph = function DiagonalLineGlyph(props) {
|
|
17
17
|
return jsx("svg", {
|
|
18
18
|
width: "24",
|
|
@@ -40,18 +40,15 @@ export var EditorDiagonalLineIcon = function EditorDiagonalLineIcon() {
|
|
|
40
40
|
var _useThemeObserver = useThemeObserver(),
|
|
41
41
|
colorMode = _useThemeObserver.colorMode;
|
|
42
42
|
var primaryColor = colorMode === 'dark' ? "var(--ds-background-accent-gray-bolder, #626F86)" : "var(--ds-background-accent-gray-subtle, #8590A2)";
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
label: "",
|
|
53
|
-
primaryColor: primaryColor
|
|
54
|
-
});
|
|
43
|
+
return (
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
45
|
+
jsx(DiagonalLineGlyph, {
|
|
46
|
+
"aria-label": "",
|
|
47
|
+
style: {
|
|
48
|
+
color: primaryColor
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
);
|
|
55
52
|
};
|
|
56
53
|
|
|
57
54
|
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const PanelErrorIcon: ({ label }: {
|
|
2
|
+
label: string;
|
|
3
|
+
}) => JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const PanelInfoIcon: ({ label }: {
|
|
2
|
+
label: string;
|
|
3
|
+
}) => JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const PanelSuccessIcon: ({ label }: {
|
|
2
|
+
label: string;
|
|
3
|
+
}) => JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const PanelWarningIcon: ({ label }: {
|
|
2
|
+
label: string;
|
|
3
|
+
}) => JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const PanelErrorIcon: ({ label }: {
|
|
2
|
+
label: string;
|
|
3
|
+
}) => JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const PanelInfoIcon: ({ label }: {
|
|
2
|
+
label: string;
|
|
3
|
+
}) => JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const PanelSuccessIcon: ({ label }: {
|
|
2
|
+
label: string;
|
|
3
|
+
}) => JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const PanelWarningIcon: ({ label }: {
|
|
2
|
+
label: string;
|
|
3
|
+
}) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.46.
|
|
3
|
+
"version": "110.46.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/"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^15.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^15.14.0",
|
|
85
85
|
"@atlaskit/tokens": "^8.6.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.11.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -153,9 +153,6 @@
|
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
"platform-feature-flags": {
|
|
156
|
-
"platform-custom-icon-migration": {
|
|
157
|
-
"type": "boolean"
|
|
158
|
-
},
|
|
159
156
|
"platform_editor_updated_dropdown_colors": {
|
|
160
157
|
"type": "boolean"
|
|
161
158
|
},
|