@atlaskit/editor-plugin-text-color 19.0.4 → 19.0.6

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 19.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 19.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`590b6a2adcf09`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/590b6a2adcf09) -
14
+ Render the text color palette's label as a non-heading element behind
15
+ platform_editor_a11y_color_palette_radiogroup, so it no longer reports an out-of-order heading
16
+ level inside the toolbar menu
17
+ - Updated dependencies
18
+
3
19
  ## 19.0.4
4
20
 
5
21
  ### Patch Changes
@@ -84,6 +84,9 @@ function TextColorMenuItem(_ref) {
84
84
  }, /*#__PURE__*/_react.default.createElement(_heading.default, {
85
85
  id: labelId,
86
86
  size: "xxsmall"
87
+ // The label names the palette's radio group; a heading inside a menu is skipped and has no stable level here
88
+ ,
89
+ as: (0, _fg.fg)('platform_editor_a11y_color_palette_radiogroup') ? 'div' : undefined
87
90
  }, formatMessage(_messages.textColorMessages.textColorTooltip)), isNewColorPaletteEnabled && (0, _fg.fg)('platform_editor_lovability_text_bg_color_patch_1') ? /*#__PURE__*/_react.default.createElement(_compiled.Bleed, {
88
91
  inline: "space.025"
89
92
  }, colorPalette) : colorPalette);
@@ -79,6 +79,9 @@ export function TextColorMenuItem({
79
79
  }, /*#__PURE__*/React.createElement(Heading, {
80
80
  id: labelId,
81
81
  size: "xxsmall"
82
+ // The label names the palette's radio group; a heading inside a menu is skipped and has no stable level here
83
+ ,
84
+ as: fg('platform_editor_a11y_color_palette_radiogroup') ? 'div' : undefined
82
85
  }, formatMessage(messages.textColorTooltip)), isNewColorPaletteEnabled && fg('platform_editor_lovability_text_bg_color_patch_1') ? /*#__PURE__*/React.createElement(Bleed, {
83
86
  inline: "space.025"
84
87
  }, colorPalette) : colorPalette);
@@ -75,6 +75,9 @@ export function TextColorMenuItem(_ref) {
75
75
  }, /*#__PURE__*/React.createElement(Heading, {
76
76
  id: labelId,
77
77
  size: "xxsmall"
78
+ // The label names the palette's radio group; a heading inside a menu is skipped and has no stable level here
79
+ ,
80
+ as: fg('platform_editor_a11y_color_palette_radiogroup') ? 'div' : undefined
78
81
  }, formatMessage(messages.textColorTooltip)), isNewColorPaletteEnabled && fg('platform_editor_lovability_text_bg_color_patch_1') ? /*#__PURE__*/React.createElement(Bleed, {
79
82
  inline: "space.025"
80
83
  }, colorPalette) : colorPalette);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "19.0.4",
3
+ "version": "19.0.6",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  "@atlaskit/editor-palette": "^3.5.0",
33
33
  "@atlaskit/editor-plugin-analytics": "^19.0.0",
34
34
  "@atlaskit/editor-plugin-highlight": "^19.0.0",
35
- "@atlaskit/editor-plugin-interaction": "^32.0.0",
35
+ "@atlaskit/editor-plugin-interaction": "^33.0.0",
36
36
  "@atlaskit/editor-plugin-primary-toolbar": "^20.0.0",
37
37
  "@atlaskit/editor-plugin-selection-toolbar": "^20.0.0",
38
38
  "@atlaskit/editor-plugin-toolbar": "^16.0.0",
@@ -48,12 +48,12 @@
48
48
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
49
49
  "@atlaskit/primitives": "^22.5.0",
50
50
  "@atlaskit/tmp-editor-statsig": "^202.0.0",
51
- "@atlaskit/tokens": "^18.2.0",
51
+ "@atlaskit/tokens": "^19.0.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^123.5.0",
56
+ "@atlaskit/editor-common": "^123.7.0",
57
57
  "react": "^18.2.0 || ^19.2.0",
58
58
  "react-dom": "^18.2.0 || ^19.2.0",
59
59
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -68,6 +68,9 @@
68
68
  "wait-for-expect": "^1.2.0"
69
69
  },
70
70
  "platform-feature-flags": {
71
+ "platform_editor_a11y_color_palette_radiogroup": {
72
+ "type": "boolean"
73
+ },
71
74
  "platform_editor_lovability_text_bg_color_patch_1": {
72
75
  "type": "boolean"
73
76
  },