@atlaskit/editor-plugin-text-color 8.1.21 → 8.1.23

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
+ ## 8.1.23
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9ff7d1c1aa288`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ff7d1c1aa288) -
8
+ Update README.md and 0-intro.tsx
9
+ - Updated dependencies
10
+
11
+ ## 8.1.22
12
+
13
+ ### Patch Changes
14
+
15
+ - [`ddd049a745d38`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ddd049a745d38) -
16
+ Internal change to how legacy colors are applied. No visual changes.
17
+ - Updated dependencies
18
+
3
19
  ## 8.1.21
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -1,10 +1,23 @@
1
- # Editor plugin text color
1
+ # Editor Plugin Text Color
2
2
 
3
3
  Text color plugin for @atlaskit/editor-core
4
4
 
5
5
  **Note:** This component is designed for internal Atlassian development.
6
6
  External contributors will be able to use this component but will not be able to submit issues.
7
7
 
8
+ ## Overview
9
+
10
+ The Text Color plugin enables users to apply custom text colors to their content in the Atlassian Editor. It provides a color palette interface and integrates with the editor's toolbar and selection toolbar to offer intuitive color selection and application.
11
+
12
+ ## Key features
13
+
14
+ - **Color palette** - Access a customizable palette of text colors with default and custom color options
15
+ - **Toolbar integration** - Seamless integration with primary toolbar and floating selection toolbar
16
+ - **Color state management** - Track and manage active text color state across the document
17
+ - **Configurable defaults** - Configure default text color and toolbar component visibility
18
+ - **Commands and actions** - Programmatic API to change colors and control palette visibility
19
+ - **Keyboard support** - Keyboard shortcuts for color operations via keymap plugin
20
+
8
21
  ## Install
9
22
  ---
10
23
  - **Install** - *yarn add @atlaskit/editor-plugin-text-color*
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.overrideMarks = exports.DEFAULT_COLOR = void 0;
7
- var _colors = require("@atlaskit/theme/colors");
8
7
  var overrideMarks = exports.overrideMarks = ['backgroundColor'];
9
8
  var DEFAULT_COLOR = exports.DEFAULT_COLOR = {
10
- // TODO: DSP-4137 - Remove usage of N800
9
+ // TODO: DSP-4137 - Remove usage of hardcoded color
11
10
  /* eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage */
12
- color: _colors.N800.toLowerCase(),
11
+ color: '#172b4d',
13
12
  label: 'Dark gray'
14
13
  };
@@ -1,8 +1,7 @@
1
- import { N800 } from '@atlaskit/theme/colors';
2
1
  export const overrideMarks = ['backgroundColor'];
3
2
  export const DEFAULT_COLOR = {
4
- // TODO: DSP-4137 - Remove usage of N800
3
+ // TODO: DSP-4137 - Remove usage of hardcoded color
5
4
  /* eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage */
6
- color: N800.toLowerCase(),
5
+ color: '#172b4d',
7
6
  label: 'Dark gray'
8
7
  };
@@ -1,8 +1,7 @@
1
- import { N800 } from '@atlaskit/theme/colors';
2
1
  export var overrideMarks = ['backgroundColor'];
3
2
  export var DEFAULT_COLOR = {
4
- // TODO: DSP-4137 - Remove usage of N800
3
+ // TODO: DSP-4137 - Remove usage of hardcoded color
5
4
  /* eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage */
6
- color: N800.toLowerCase(),
5
+ color: '#172b4d',
7
6
  label: 'Dark gray'
8
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "8.1.21",
3
+ "version": "8.1.23",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,14 +46,13 @@
46
46
  "@atlaskit/icon": "^34.0.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/primitives": "^18.1.0",
49
- "@atlaskit/theme": "^23.0.0",
50
- "@atlaskit/tmp-editor-statsig": "^56.0.0",
49
+ "@atlaskit/tmp-editor-statsig": "^58.0.0",
51
50
  "@atlaskit/tokens": "^12.0.0",
52
51
  "@babel/runtime": "^7.0.0",
53
52
  "@emotion/react": "^11.7.1"
54
53
  },
55
54
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^112.18.0",
55
+ "@atlaskit/editor-common": "^112.19.0",
57
56
  "react": "^18.2.0",
58
57
  "react-dom": "^18.2.0",
59
58
  "react-intl-next": "npm:react-intl@^5.18.1"