@atlaskit/editor-plugin-text-color 0.1.11 → 0.1.13

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/.eslintrc.js ADDED
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ rules: {
3
+ '@typescript-eslint/no-duplicate-imports': 'error',
4
+ '@typescript-eslint/no-explicit-any': 'error',
5
+ '@typescript-eslint/ban-types': [
6
+ 'error',
7
+ {
8
+ types: {
9
+ 'React.FC':
10
+ 'Please use types directly on props instead, and explicitly define children if required',
11
+ 'React.FunctionalComponent':
12
+ 'Please use types directly on props instead, and explicitly define children if required',
13
+ },
14
+ extendDefaults: false,
15
+ },
16
+ ],
17
+ },
18
+ };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 0.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165) [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) - [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
8
+
9
+ ## 0.1.12
10
+
11
+ ### Patch Changes
12
+
13
+ - [#62088](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62088) [`cbb82175953e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbb82175953e) - [ux] Fixes the text color popup not disappearing when clicking on the toolbar icon.
14
+
3
15
  ## 0.1.11
4
16
 
5
17
  ### Patch Changes
@@ -57,13 +57,6 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
57
57
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "changeColor", function (color, editorAnalyticsApi) {
58
58
  return (0, _changeColor.changeColor)(color, editorAnalyticsApi)(_this.props.editorView.state, _this.props.editorView.dispatch);
59
59
  });
60
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onOpenChange", function (attrs) {
61
- _this.handleOpenChange({
62
- isOpen: attrs.isOpen,
63
- logCloseEvent: true,
64
- event: attrs.event
65
- });
66
- });
67
60
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "changeTextColor", function (color, editorAnalyticsApi, disabled) {
68
61
  if (!disabled) {
69
62
  var _this$props$editorVie;
@@ -188,7 +181,6 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
188
181
  handleEscapeKeydown: this.hideonEsc,
189
182
  zIndex: _editorSharedStyles.akEditorMenuZIndex,
190
183
  fitWidth: fitWidth,
191
- onOpenChange: this.onOpenChange,
192
184
  closeOnTab: true,
193
185
  arrowKeyNavigationProviderOptions: {
194
186
  type: _uiMenu.ArrowKeyNavigationType.COLOR,
@@ -32,13 +32,6 @@ export class ToolbarTextColor extends React.Component {
32
32
  });
33
33
  _defineProperty(this, "toolbarItemRef", /*#__PURE__*/React.createRef());
34
34
  _defineProperty(this, "changeColor", (color, editorAnalyticsApi) => changeColorWithAnalytics(color, editorAnalyticsApi)(this.props.editorView.state, this.props.editorView.dispatch));
35
- _defineProperty(this, "onOpenChange", attrs => {
36
- this.handleOpenChange({
37
- isOpen: attrs.isOpen,
38
- logCloseEvent: true,
39
- event: attrs.event
40
- });
41
- });
42
35
  _defineProperty(this, "changeTextColor", (color, editorAnalyticsApi, disabled) => {
43
36
  if (!disabled) {
44
37
  var _this$props$editorVie;
@@ -169,7 +162,6 @@ export class ToolbarTextColor extends React.Component {
169
162
  handleEscapeKeydown: this.hideonEsc,
170
163
  zIndex: akEditorMenuZIndex,
171
164
  fitWidth: fitWidth,
172
- onOpenChange: this.onOpenChange,
173
165
  closeOnTab: true,
174
166
  arrowKeyNavigationProviderOptions: {
175
167
  type: ArrowKeyNavigationType.COLOR,
@@ -51,13 +51,6 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
51
51
  _defineProperty(_assertThisInitialized(_this), "changeColor", function (color, editorAnalyticsApi) {
52
52
  return changeColorWithAnalytics(color, editorAnalyticsApi)(_this.props.editorView.state, _this.props.editorView.dispatch);
53
53
  });
54
- _defineProperty(_assertThisInitialized(_this), "onOpenChange", function (attrs) {
55
- _this.handleOpenChange({
56
- isOpen: attrs.isOpen,
57
- logCloseEvent: true,
58
- event: attrs.event
59
- });
60
- });
61
54
  _defineProperty(_assertThisInitialized(_this), "changeTextColor", function (color, editorAnalyticsApi, disabled) {
62
55
  if (!disabled) {
63
56
  var _this$props$editorVie;
@@ -182,7 +175,6 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
182
175
  handleEscapeKeydown: this.hideonEsc,
183
176
  zIndex: akEditorMenuZIndex,
184
177
  fitWidth: fitWidth,
185
- onOpenChange: this.onOpenChange,
186
178
  closeOnTab: true,
187
179
  arrowKeyNavigationProviderOptions: {
188
180
  type: ArrowKeyNavigationType.COLOR,
@@ -34,7 +34,6 @@ export declare class ToolbarTextColor extends React.Component<Props & WrappedCom
34
34
  private toolbarItemRef;
35
35
  changeColor: (color: string, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => boolean;
36
36
  render(): jsx.JSX.Element;
37
- private onOpenChange;
38
37
  private changeTextColor;
39
38
  private toggleOpen;
40
39
  private onKeyDown;
@@ -34,7 +34,6 @@ export declare class ToolbarTextColor extends React.Component<Props & WrappedCom
34
34
  private toolbarItemRef;
35
35
  changeColor: (color: string, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => boolean;
36
36
  render(): jsx.JSX.Element;
37
- private onOpenChange;
38
37
  private changeTextColor;
39
38
  private toggleOpen;
40
39
  private onKeyDown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,8 +31,8 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^35.1.1",
35
- "@atlaskit/editor-common": "^76.26.0",
34
+ "@atlaskit/adf-schema": "^35.2.0",
35
+ "@atlaskit/editor-common": "^76.27.0",
36
36
  "@atlaskit/editor-palette": "1.5.2",
37
37
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
38
38
  "@atlaskit/editor-prosemirror": "1.1.0",
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/editor-tables": "^2.3.0",
41
41
  "@atlaskit/icon": "^22.0.0",
42
42
  "@atlaskit/theme": "^12.6.0",
43
- "@atlaskit/tokens": "^1.29.0",
43
+ "@atlaskit/tokens": "^1.30.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1"
46
46
  },