@atlaskit/editor-plugin-text-color 3.1.13 → 3.1.15

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,19 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 3.1.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
11
+ ## 3.1.14
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 3.1.13
4
18
 
5
19
  ### Patch Changes
@@ -3,10 +3,10 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import type { PaletteColor } from '@atlaskit/editor-common/ui-color';
4
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
5
  export type TextColorPluginState = {
6
- palette: Array<PaletteColor>;
6
+ color: string | null;
7
7
  defaultColor: string;
8
8
  disabled?: boolean;
9
- color: string | null;
9
+ palette: Array<PaletteColor>;
10
10
  };
11
11
  type TextColorDefaultColor = {
12
12
  color: string;
@@ -17,10 +17,10 @@ export type Dependencies = [
17
17
  OptionalPlugin<HighlightPlugin>
18
18
  ];
19
19
  export type TextColorPlugin = NextEditorPlugin<'textColor', {
20
- pluginConfiguration: TextColorPluginOptions | undefined;
21
- dependencies: Dependencies;
22
20
  actions: {
23
21
  changeColor: (color: string, inputMethod?: TextColorInputMethod) => Command;
24
22
  };
23
+ dependencies: Dependencies;
24
+ pluginConfiguration: TextColorPluginOptions | undefined;
25
25
  sharedState: TextColorPluginState | undefined;
26
26
  }>;
@@ -4,9 +4,9 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { TextColorPlugin } from '../textColorPluginType';
6
6
  interface FloatingToolbarComponentProps {
7
- editorView: EditorView;
8
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
9
7
  api: ExtractInjectionAPI<TextColorPlugin> | undefined;
8
+ dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
9
+ editorView: EditorView;
10
10
  }
11
11
  export declare function FloatingToolbarComponent({ api, editorView, dispatchAnalyticsEvent, }: FloatingToolbarComponentProps): React.JSX.Element | null;
12
12
  export {};
@@ -4,14 +4,14 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { TextColorPlugin } from '../textColorPluginType';
6
6
  interface PrimaryToolbarComponentProps {
7
- isReducedSpacing: boolean;
7
+ api: ExtractInjectionAPI<TextColorPlugin> | undefined;
8
+ disabled: boolean;
9
+ dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
8
10
  editorView: EditorView;
9
- popupsMountPoint?: HTMLElement;
11
+ isReducedSpacing: boolean;
10
12
  popupsBoundariesElement?: HTMLElement;
13
+ popupsMountPoint?: HTMLElement;
11
14
  popupsScrollableElement?: HTMLElement;
12
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
13
- disabled: boolean;
14
- api: ExtractInjectionAPI<TextColorPlugin> | undefined;
15
15
  }
16
16
  export declare function PrimaryToolbarComponent({ api, isReducedSpacing, editorView, popupsMountPoint, popupsScrollableElement, popupsBoundariesElement, dispatchAnalyticsEvent, disabled, }: PrimaryToolbarComponentProps): React.JSX.Element | null;
17
17
  export {};
@@ -16,15 +16,15 @@ export interface State {
16
16
  isOpenedByKeyboard: boolean;
17
17
  }
18
18
  export interface Props {
19
- pluginState: TextColorPluginState;
19
+ disabled?: boolean;
20
+ dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
20
21
  editorView: EditorView;
21
- popupsMountPoint?: HTMLElement;
22
- popupsBoundariesElement?: HTMLElement;
23
- popupsScrollableElement?: HTMLElement;
24
22
  isReducedSpacing?: boolean;
25
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
26
- disabled?: boolean;
27
23
  pluginInjectionApi: ExtractInjectionAPI<TextColorPlugin> | undefined;
24
+ pluginState: TextColorPluginState;
25
+ popupsBoundariesElement?: HTMLElement;
26
+ popupsMountPoint?: HTMLElement;
27
+ popupsScrollableElement?: HTMLElement;
28
28
  toolbarType: ToolbarType;
29
29
  }
30
30
  export declare class ToolbarTextColor extends React.Component<Props & WrappedComponentProps, State> {
@@ -3,10 +3,10 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import type { PaletteColor } from '@atlaskit/editor-common/ui-color';
4
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
5
  export type TextColorPluginState = {
6
- palette: Array<PaletteColor>;
6
+ color: string | null;
7
7
  defaultColor: string;
8
8
  disabled?: boolean;
9
- color: string | null;
9
+ palette: Array<PaletteColor>;
10
10
  };
11
11
  type TextColorDefaultColor = {
12
12
  color: string;
@@ -17,10 +17,10 @@ export type Dependencies = [
17
17
  OptionalPlugin<HighlightPlugin>
18
18
  ];
19
19
  export type TextColorPlugin = NextEditorPlugin<'textColor', {
20
- pluginConfiguration: TextColorPluginOptions | undefined;
21
- dependencies: Dependencies;
22
20
  actions: {
23
21
  changeColor: (color: string, inputMethod?: TextColorInputMethod) => Command;
24
22
  };
23
+ dependencies: Dependencies;
24
+ pluginConfiguration: TextColorPluginOptions | undefined;
25
25
  sharedState: TextColorPluginState | undefined;
26
26
  }>;
@@ -4,9 +4,9 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { TextColorPlugin } from '../textColorPluginType';
6
6
  interface FloatingToolbarComponentProps {
7
- editorView: EditorView;
8
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
9
7
  api: ExtractInjectionAPI<TextColorPlugin> | undefined;
8
+ dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
9
+ editorView: EditorView;
10
10
  }
11
11
  export declare function FloatingToolbarComponent({ api, editorView, dispatchAnalyticsEvent, }: FloatingToolbarComponentProps): React.JSX.Element | null;
12
12
  export {};
@@ -4,14 +4,14 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { TextColorPlugin } from '../textColorPluginType';
6
6
  interface PrimaryToolbarComponentProps {
7
- isReducedSpacing: boolean;
7
+ api: ExtractInjectionAPI<TextColorPlugin> | undefined;
8
+ disabled: boolean;
9
+ dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
8
10
  editorView: EditorView;
9
- popupsMountPoint?: HTMLElement;
11
+ isReducedSpacing: boolean;
10
12
  popupsBoundariesElement?: HTMLElement;
13
+ popupsMountPoint?: HTMLElement;
11
14
  popupsScrollableElement?: HTMLElement;
12
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
13
- disabled: boolean;
14
- api: ExtractInjectionAPI<TextColorPlugin> | undefined;
15
15
  }
16
16
  export declare function PrimaryToolbarComponent({ api, isReducedSpacing, editorView, popupsMountPoint, popupsScrollableElement, popupsBoundariesElement, dispatchAnalyticsEvent, disabled, }: PrimaryToolbarComponentProps): React.JSX.Element | null;
17
17
  export {};
@@ -16,15 +16,15 @@ export interface State {
16
16
  isOpenedByKeyboard: boolean;
17
17
  }
18
18
  export interface Props {
19
- pluginState: TextColorPluginState;
19
+ disabled?: boolean;
20
+ dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
20
21
  editorView: EditorView;
21
- popupsMountPoint?: HTMLElement;
22
- popupsBoundariesElement?: HTMLElement;
23
- popupsScrollableElement?: HTMLElement;
24
22
  isReducedSpacing?: boolean;
25
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
26
- disabled?: boolean;
27
23
  pluginInjectionApi: ExtractInjectionAPI<TextColorPlugin> | undefined;
24
+ pluginState: TextColorPluginState;
25
+ popupsBoundariesElement?: HTMLElement;
26
+ popupsMountPoint?: HTMLElement;
27
+ popupsScrollableElement?: HTMLElement;
28
28
  toolbarType: ToolbarType;
29
29
  }
30
30
  export declare class ToolbarTextColor extends React.Component<Props & WrappedComponentProps, State> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "3.1.13",
3
+ "version": "3.1.15",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-plugin-highlight": "^3.0.0",
40
40
  "@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
41
41
  "@atlaskit/editor-plugin-selection-toolbar": "^4.3.0",
42
- "@atlaskit/editor-plugin-toolbar": "^0.3.0",
42
+ "@atlaskit/editor-plugin-toolbar": "^0.4.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
44
  "@atlaskit/editor-shared-styles": "^3.6.0",
45
45
  "@atlaskit/editor-tables": "^2.9.0",
@@ -49,13 +49,13 @@
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/primitives": "^14.11.0",
51
51
  "@atlaskit/theme": "^19.0.0",
52
- "@atlaskit/tmp-editor-statsig": "^11.3.0",
52
+ "@atlaskit/tmp-editor-statsig": "^11.5.0",
53
53
  "@atlaskit/tokens": "^6.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^107.26.0",
58
+ "@atlaskit/editor-common": "^107.28.0",
59
59
  "react": "^18.2.0",
60
60
  "react-dom": "^18.2.0",
61
61
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -63,7 +63,6 @@
63
63
  "devDependencies": {
64
64
  "@af/visual-regression": "workspace:^",
65
65
  "@atlaskit/ssr": "workspace:^",
66
- "@atlaskit/visual-regression": "workspace:^",
67
66
  "@testing-library/react": "^13.4.0",
68
67
  "wait-for-expect": "^1.2.0"
69
68
  },