@atlaskit/editor-plugin-text-color 12.2.0 → 12.2.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 12.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 12.2.0
4
10
 
5
11
  ### Minor Changes
@@ -52,9 +52,8 @@ var getContrastRatio = function getContrastRatio(defaultColor, highlightColor, t
52
52
  try {
53
53
  var contrastRatio = (0, _colorContrast.getContrastRatio)(getForegroundColor(textColor, defaultColor), getBackgroundColor(highlightColor));
54
54
  return contrastRatio;
55
- }
56
- // if we failed to calculate the contrast ratio, return null
57
- catch (_unused) {
55
+ } catch (_unused) {
56
+ // if we failed to calculate the contrast ratio, return null
58
57
  return null;
59
58
  }
60
59
  };
@@ -45,9 +45,8 @@ const getContrastRatio = (defaultColor, highlightColor, textColor) => {
45
45
  try {
46
46
  const contrastRatio = calcContrastRatio(getForegroundColor(textColor, defaultColor), getBackgroundColor(highlightColor));
47
47
  return contrastRatio;
48
- }
49
- // if we failed to calculate the contrast ratio, return null
50
- catch {
48
+ } catch {
49
+ // if we failed to calculate the contrast ratio, return null
51
50
  return null;
52
51
  }
53
52
  };
@@ -45,9 +45,8 @@ var getContrastRatio = function getContrastRatio(defaultColor, highlightColor, t
45
45
  try {
46
46
  var contrastRatio = calcContrastRatio(getForegroundColor(textColor, defaultColor), getBackgroundColor(highlightColor));
47
47
  return contrastRatio;
48
- }
49
- // if we failed to calculate the contrast ratio, return null
50
- catch (_unused) {
48
+ } catch (_unused) {
49
+ // if we failed to calculate the contrast ratio, return null
51
50
  return null;
52
51
  }
53
52
  };
@@ -4,5 +4,5 @@ import type { TextColorPlugin } from '../textColorPluginType';
4
4
  type ColorAccessibilityMenuItemProps = {
5
5
  api: ExtractInjectionAPI<TextColorPlugin> | undefined;
6
6
  };
7
- export declare const ColorAccessibilityMenuItem: ({ api }: ColorAccessibilityMenuItemProps) => React.JSX.Element;
7
+ export declare const ColorAccessibilityMenuItem: ({ api, }: ColorAccessibilityMenuItemProps) => React.JSX.Element;
8
8
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "12.2.0",
3
+ "version": "12.2.1",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,7 +27,7 @@
27
27
  "@atlaskit/editor-palette": "^3.1.0",
28
28
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
29
29
  "@atlaskit/editor-plugin-highlight": "^12.1.0",
30
- "@atlaskit/editor-plugin-interaction": "^21.0.0",
30
+ "@atlaskit/editor-plugin-interaction": "^22.0.0",
31
31
  "@atlaskit/editor-plugin-primary-toolbar": "^13.0.0",
32
32
  "@atlaskit/editor-plugin-selection-toolbar": "^13.0.0",
33
33
  "@atlaskit/editor-plugin-toolbar": "^9.0.0",
@@ -37,17 +37,17 @@
37
37
  "@atlaskit/editor-toolbar-model": "^1.0.0",
38
38
  "@atlaskit/heading": "^6.0.0",
39
39
  "@atlaskit/icon": "^36.0.0",
40
- "@atlaskit/icon-lab": "^7.0.0",
40
+ "@atlaskit/icon-lab": "^7.1.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.0.0",
42
42
  "@atlaskit/platform-feature-flags-react": "^1.0.0",
43
43
  "@atlaskit/primitives": "^20.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^109.0.0",
45
- "@atlaskit/tokens": "^14.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^110.0.0",
45
+ "@atlaskit/tokens": "^15.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^116.6.0",
50
+ "@atlaskit/editor-common": "^116.11.0",
51
51
  "react": "^18.2.0",
52
52
  "react-dom": "^18.2.0",
53
53
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -57,7 +57,7 @@
57
57
  "@testing-library/react": "^16.3.0",
58
58
  "react": "^18.2.0",
59
59
  "react-dom": "^18.2.0",
60
- "react-intl": "^6.6.2",
60
+ "react-intl": "^7.0.0",
61
61
  "wait-for-expect": "^1.2.0"
62
62
  },
63
63
  "techstack": {