@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.
Files changed (59) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/card/ui/assets/card.js +6 -14
  3. package/dist/cjs/card/ui/assets/embed.js +6 -14
  4. package/dist/cjs/card/ui/assets/inline.js +6 -14
  5. package/dist/cjs/card/ui/assets/url.js +6 -14
  6. package/dist/cjs/icons/shared/BorderIcon.js +6 -12
  7. package/dist/cjs/icons/shared/PanelErrorIcon.js +10 -15
  8. package/dist/cjs/icons/shared/PanelInfoIcon.js +9 -14
  9. package/dist/cjs/icons/shared/PanelNoteIcon.js +5 -11
  10. package/dist/cjs/icons/shared/PanelSuccessIcon.js +10 -15
  11. package/dist/cjs/icons/shared/PanelWarningIcon.js +10 -15
  12. package/dist/cjs/monitoring/error.js +1 -1
  13. package/dist/cjs/ui/DropList/index.js +1 -1
  14. package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +11 -14
  15. package/dist/es2019/card/ui/assets/card.js +8 -13
  16. package/dist/es2019/card/ui/assets/embed.js +8 -13
  17. package/dist/es2019/card/ui/assets/inline.js +8 -13
  18. package/dist/es2019/card/ui/assets/url.js +8 -13
  19. package/dist/es2019/icons/shared/BorderIcon.js +8 -12
  20. package/dist/es2019/icons/shared/PanelErrorIcon.js +11 -15
  21. package/dist/es2019/icons/shared/PanelInfoIcon.js +10 -14
  22. package/dist/es2019/icons/shared/PanelNoteIcon.js +5 -11
  23. package/dist/es2019/icons/shared/PanelSuccessIcon.js +11 -15
  24. package/dist/es2019/icons/shared/PanelWarningIcon.js +11 -15
  25. package/dist/es2019/monitoring/error.js +1 -1
  26. package/dist/es2019/ui/DropList/index.js +1 -1
  27. package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +11 -14
  28. package/dist/esm/card/ui/assets/card.js +7 -13
  29. package/dist/esm/card/ui/assets/embed.js +7 -13
  30. package/dist/esm/card/ui/assets/inline.js +7 -13
  31. package/dist/esm/card/ui/assets/url.js +7 -13
  32. package/dist/esm/icons/shared/BorderIcon.js +7 -12
  33. package/dist/esm/icons/shared/PanelErrorIcon.js +10 -15
  34. package/dist/esm/icons/shared/PanelInfoIcon.js +9 -14
  35. package/dist/esm/icons/shared/PanelNoteIcon.js +5 -11
  36. package/dist/esm/icons/shared/PanelSuccessIcon.js +10 -15
  37. package/dist/esm/icons/shared/PanelWarningIcon.js +10 -15
  38. package/dist/esm/monitoring/error.js +1 -1
  39. package/dist/esm/ui/DropList/index.js +1 -1
  40. package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +11 -14
  41. package/dist/types/card/ui/assets/card.d.ts +3 -2
  42. package/dist/types/card/ui/assets/embed.d.ts +3 -2
  43. package/dist/types/card/ui/assets/inline.d.ts +3 -2
  44. package/dist/types/card/ui/assets/url.d.ts +3 -2
  45. package/dist/types/icons/shared/BorderIcon.d.ts +3 -2
  46. package/dist/types/icons/shared/PanelErrorIcon.d.ts +3 -2
  47. package/dist/types/icons/shared/PanelInfoIcon.d.ts +3 -2
  48. package/dist/types/icons/shared/PanelSuccessIcon.d.ts +3 -2
  49. package/dist/types/icons/shared/PanelWarningIcon.d.ts +3 -2
  50. package/dist/types-ts4.5/card/ui/assets/card.d.ts +3 -2
  51. package/dist/types-ts4.5/card/ui/assets/embed.d.ts +3 -2
  52. package/dist/types-ts4.5/card/ui/assets/inline.d.ts +3 -2
  53. package/dist/types-ts4.5/card/ui/assets/url.d.ts +3 -2
  54. package/dist/types-ts4.5/icons/shared/BorderIcon.d.ts +3 -2
  55. package/dist/types-ts4.5/icons/shared/PanelErrorIcon.d.ts +3 -2
  56. package/dist/types-ts4.5/icons/shared/PanelInfoIcon.d.ts +3 -2
  57. package/dist/types-ts4.5/icons/shared/PanelSuccessIcon.d.ts +3 -2
  58. package/dist/types-ts4.5/icons/shared/PanelWarningIcon.d.ts +3 -2
  59. 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(props) {
26
- return fg('platform-custom-icon-migration') ? /*#__PURE__*/React.createElement("span", {
27
- role: props.label ? 'img' : undefined,
28
- "aria-label": props.label ? props.label : undefined,
29
- "aria-hidden": props.label ? undefined : true,
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
- "aria-label": props.label
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.45.1";
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.45.1";
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 fg('platform-custom-icon-migration') ?
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
- }) : jsx(Icon, {
51
- glyph: DiagonalLineGlyph,
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,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { IconProps } from '@atlaskit/icon/types';
3
- export declare const IconCard: (props: IconProps) => React.JSX.Element;
2
+ export declare const IconCard: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { IconProps } from '@atlaskit/icon/types';
3
- export declare const IconEmbed: (props: IconProps) => React.JSX.Element;
2
+ export declare const IconEmbed: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { IconProps } from '@atlaskit/icon/types';
3
- export declare const IconInline: (props: IconProps) => React.JSX.Element;
2
+ export declare const IconInline: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { IconProps } from '@atlaskit/icon/types';
3
- export declare const IconUrl: (props: IconProps) => React.JSX.Element;
2
+ export declare const IconUrl: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { GlyphProps } from '@atlaskit/icon/types';
3
- export declare const BorderIcon: (props: GlyphProps) => React.JSX.Element;
2
+ export declare const BorderIcon: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { GlyphProps } from '@atlaskit/icon/types';
2
- export declare const PanelErrorIcon: (props: GlyphProps) => JSX.Element;
1
+ export declare const PanelErrorIcon: ({ label }: {
2
+ label: string;
3
+ }) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { GlyphProps } from '@atlaskit/icon/types';
2
- export declare const PanelInfoIcon: (props: GlyphProps) => JSX.Element;
1
+ export declare const PanelInfoIcon: ({ label }: {
2
+ label: string;
3
+ }) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { GlyphProps } from '@atlaskit/icon/types';
2
- export declare const PanelSuccessIcon: (props: GlyphProps) => JSX.Element;
1
+ export declare const PanelSuccessIcon: ({ label }: {
2
+ label: string;
3
+ }) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { GlyphProps } from '@atlaskit/icon/types';
2
- export declare const PanelWarningIcon: (props: GlyphProps) => JSX.Element;
1
+ export declare const PanelWarningIcon: ({ label }: {
2
+ label: string;
3
+ }) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { IconProps } from '@atlaskit/icon/types';
3
- export declare const IconCard: (props: IconProps) => React.JSX.Element;
2
+ export declare const IconCard: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { IconProps } from '@atlaskit/icon/types';
3
- export declare const IconEmbed: (props: IconProps) => React.JSX.Element;
2
+ export declare const IconEmbed: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { IconProps } from '@atlaskit/icon/types';
3
- export declare const IconInline: (props: IconProps) => React.JSX.Element;
2
+ export declare const IconInline: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { IconProps } from '@atlaskit/icon/types';
3
- export declare const IconUrl: (props: IconProps) => React.JSX.Element;
2
+ export declare const IconUrl: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- import type { GlyphProps } from '@atlaskit/icon/types';
3
- export declare const BorderIcon: (props: GlyphProps) => React.JSX.Element;
2
+ export declare const BorderIcon: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { GlyphProps } from '@atlaskit/icon/types';
2
- export declare const PanelErrorIcon: (props: GlyphProps) => JSX.Element;
1
+ export declare const PanelErrorIcon: ({ label }: {
2
+ label: string;
3
+ }) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { GlyphProps } from '@atlaskit/icon/types';
2
- export declare const PanelInfoIcon: (props: GlyphProps) => JSX.Element;
1
+ export declare const PanelInfoIcon: ({ label }: {
2
+ label: string;
3
+ }) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { GlyphProps } from '@atlaskit/icon/types';
2
- export declare const PanelSuccessIcon: (props: GlyphProps) => JSX.Element;
1
+ export declare const PanelSuccessIcon: ({ label }: {
2
+ label: string;
3
+ }) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { GlyphProps } from '@atlaskit/icon/types';
2
- export declare const PanelWarningIcon: (props: GlyphProps) => JSX.Element;
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.0",
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.13.0",
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
  },