@atlaskit/editor-plugin-text-color 26.0.4 → 26.0.7
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 +18 -0
- package/dist/cjs/editor-commands/change-color.js +5 -5
- package/dist/cjs/editor-commands/toggle-color.js +2 -1
- package/dist/cjs/pm-plugins/commands/change-color.js +7 -7
- package/dist/cjs/pm-plugins/commands/toggle-color.js +2 -1
- package/dist/cjs/pm-plugins/keymap.js +2 -1
- package/dist/cjs/pm-plugins/main.js +2 -1
- package/dist/cjs/pm-plugins/utils/inputType.js +2 -2
- package/dist/cjs/ui/ColorAccessibilityMenuItem.js +23 -20
- package/dist/cjs/ui/FloatingToolbarComponent.js +2 -2
- package/dist/cjs/ui/PrimaryToolbarComponent.js +2 -2
- package/dist/cjs/ui/RemoveColorMenuItem.js +7 -7
- package/dist/cjs/ui/TextColorHighlightMenu.js +28 -22
- package/dist/cjs/ui/TextColorMenuItem.js +14 -12
- package/dist/cjs/ui/TextMenuSection.js +4 -4
- package/dist/cjs/ui/ToolbarTextColor/index.js +38 -32
- package/dist/cjs/ui/toolbar-components.js +26 -25
- package/dist/es2019/editor-commands/change-color.js +1 -1
- package/dist/es2019/editor-commands/toggle-color.js +2 -1
- package/dist/es2019/pm-plugins/commands/change-color.js +2 -2
- package/dist/es2019/pm-plugins/commands/toggle-color.js +2 -1
- package/dist/es2019/pm-plugins/keymap.js +2 -1
- package/dist/es2019/pm-plugins/main.js +2 -1
- package/dist/es2019/pm-plugins/utils/inputType.js +1 -1
- package/dist/es2019/ui/ColorAccessibilityMenuItem.js +9 -6
- package/dist/es2019/ui/FloatingToolbarComponent.js +1 -1
- package/dist/es2019/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/es2019/ui/RemoveColorMenuItem.js +3 -3
- package/dist/es2019/ui/TextColorHighlightMenu.js +10 -4
- package/dist/es2019/ui/TextColorMenuItem.js +8 -6
- package/dist/es2019/ui/TextMenuSection.js +2 -2
- package/dist/es2019/ui/ToolbarTextColor/index.js +14 -8
- package/dist/es2019/ui/toolbar-components.js +2 -1
- package/dist/esm/editor-commands/change-color.js +1 -1
- package/dist/esm/editor-commands/toggle-color.js +2 -1
- package/dist/esm/pm-plugins/commands/change-color.js +2 -2
- package/dist/esm/pm-plugins/commands/toggle-color.js +2 -1
- package/dist/esm/pm-plugins/keymap.js +2 -1
- package/dist/esm/pm-plugins/main.js +2 -1
- package/dist/esm/pm-plugins/utils/inputType.js +1 -1
- package/dist/esm/ui/ColorAccessibilityMenuItem.js +9 -6
- package/dist/esm/ui/FloatingToolbarComponent.js +1 -1
- package/dist/esm/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/esm/ui/RemoveColorMenuItem.js +3 -3
- package/dist/esm/ui/TextColorHighlightMenu.js +10 -4
- package/dist/esm/ui/TextColorMenuItem.js +8 -6
- package/dist/esm/ui/TextMenuSection.js +2 -2
- package/dist/esm/ui/ToolbarTextColor/index.js +14 -8
- package/dist/esm/ui/toolbar-components.js +2 -1
- package/dist/types/editor-commands/change-color.d.ts +2 -1
- package/dist/types/editor-commands/palette.d.ts +2 -1
- package/dist/types/editor-commands/remove-color.d.ts +1 -1
- package/dist/types/editor-commands/toggle-color.d.ts +1 -1
- package/dist/types/pm-plugins/commands/change-color.d.ts +2 -2
- package/dist/types/pm-plugins/commands/remove-color.d.ts +1 -1
- package/dist/types/pm-plugins/commands/toggle-color.d.ts +1 -1
- package/dist/types/pm-plugins/keymap.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/textColorPluginType.d.ts +10 -8
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/ColorAccessibilityMenuItem.d.ts +1 -1
- package/dist/types/ui/FloatingToolbarComponent.d.ts +2 -2
- package/dist/types/ui/PrimaryToolbarComponent.d.ts +2 -2
- package/dist/types/ui/RemoveColorMenuItem.d.ts +2 -2
- package/dist/types/ui/TextColorHighlightMenu.d.ts +1 -1
- package/dist/types/ui/TextColorMenuItem.d.ts +2 -2
- package/dist/types/ui/TextMenuSection.d.ts +1 -1
- package/dist/types/ui/ToolbarTextColor/index.d.ts +3 -2
- package/dist/types/ui/toolbar-components.d.ts +2 -2
- package/package.json +3 -3
|
@@ -4,10 +4,10 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import Button from '@atlaskit/button/default/button';
|
|
7
|
-
import { highlightMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
|
+
import { highlightMessages as messages } from '@atlaskit/editor-common/messages/highlight';
|
|
8
8
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
9
|
-
import { REMOVE_HIGHLIGHT_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
10
|
-
import { useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
9
|
+
import { REMOVE_HIGHLIGHT_COLOR } from '@atlaskit/editor-common/ui-color/ColorPalette/highlightColorPalette';
|
|
10
|
+
import { useToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu-context';
|
|
11
11
|
import ColourNoneIcon from '@atlaskit/icon-lab/core/colour-none';
|
|
12
12
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { toggleHighlightPalette, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
4
|
-
import { textColorMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
|
+
import { textColorMessages as messages } from '@atlaskit/editor-common/messages/text-color';
|
|
5
5
|
import { SelectedTextColorProvider } from '@atlaskit/editor-common/ui-color';
|
|
6
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/
|
|
7
|
-
import { hexToEditorTextPaletteColor
|
|
8
|
-
import {
|
|
6
|
+
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/useSharedPluginStateSelector';
|
|
7
|
+
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
|
|
8
|
+
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette/text-background-color';
|
|
9
|
+
import { TextColorIcon } from '@atlaskit/editor-toolbar/text-color-icon';
|
|
10
|
+
import { ToolbarColorSwatch } from '@atlaskit/editor-toolbar/toolbar-color-swatch';
|
|
11
|
+
import { ToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu';
|
|
12
|
+
import { ToolbarDropdownMenuProvider } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu-context';
|
|
13
|
+
import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
|
|
14
|
+
import { useToolbarUI } from '@atlaskit/editor-toolbar/ui-context';
|
|
9
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
16
|
var getIconColor = function getIconColor(textColor, defaultColor, highlightColor) {
|
|
11
17
|
if (expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)) {
|
|
@@ -3,12 +3,14 @@ import "./TextColorMenuItem.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useId } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { textPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { textColorMessages as messages } from '@atlaskit/editor-common/messages/text-color';
|
|
7
|
+
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
8
|
+
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
|
|
9
|
+
import { textPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color/ColorPalette/paletteMessagesTokenModeNames';
|
|
10
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
11
|
+
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
|
|
12
|
+
import { ColorPalette } from '@atlaskit/editor-toolbar/color-palette';
|
|
13
|
+
import { useToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu-context';
|
|
12
14
|
import Heading from '@atlaskit/heading/heading';
|
|
13
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
16
|
import { Bleed, Stack } from '@atlaskit/primitives/compiled';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "./TextMenuSection.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
|
|
6
|
-
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
5
|
+
import { TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar/keys';
|
|
6
|
+
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
var styles = {
|
|
@@ -18,14 +18,20 @@ import React from 'react';
|
|
|
18
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
19
19
|
import { css, jsx } from '@emotion/react';
|
|
20
20
|
import { injectIntl } from 'react-intl';
|
|
21
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
21
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
22
|
+
import { TOOLBAR_ACTION_SUBJECT_ID as TOOLBAR_BUTTON } from '@atlaskit/editor-common/analytics/types/toolbar-button';
|
|
23
|
+
import { DynamicStrokeIconDecoration } from '@atlaskit/editor-common/icons/DynamicStrokeIconDecoration';
|
|
24
|
+
import { textColorMessages as messages } from '@atlaskit/editor-common/messages/text-color';
|
|
25
|
+
import { expandIconContainerStyle } from '@atlaskit/editor-common/styles/expand';
|
|
26
|
+
import { separatorStyles, triggerWrapperStylesWithPadding, wrapperStyle } from '@atlaskit/editor-common/styles/plugins';
|
|
27
|
+
import ColorPalette from '@atlaskit/editor-common/ui-color/ColorPalette';
|
|
28
|
+
import { textPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color/ColorPalette/paletteMessagesTokenModeNames';
|
|
29
|
+
import { getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color/ColorPalette/utils';
|
|
30
|
+
import { ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu/ArrowKeyNavigationProvider/types';
|
|
31
|
+
import { DropdownContainer as Dropdown } from '@atlaskit/editor-common/ui-menu/DropdownContainer';
|
|
32
|
+
import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
33
|
+
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
|
|
34
|
+
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
29
35
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
30
36
|
import TextStyleIcon from '@atlaskit/icon/core/text-style';
|
|
31
37
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
@@ -3,7 +3,8 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { TEXT_SECTION,
|
|
6
|
+
import { TEXT_SECTION, TEXT_COLOR_HIGHLIGHT_GROUP, TEXT_COLOR_HIGHLIGHT_MENU, TEXT_COLOR_HIGHLIGHT_MENU_SECTION, TEXT_COLOR_MENU_ITEM, TEXT_COLLAPSED_MENU, CLEAR_COLOR_MENU_ITEM, COLOR_ACCESSIBILITY_MENU_ITEM, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar/keys';
|
|
7
|
+
import { TEXT_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_MENU_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_GROUP_RANK, TEXT_COLOR_HIGHLIGHT_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
7
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
9
|
import { ColorAccessibilityMenuItem } from './ColorAccessibilityMenuItem';
|
|
9
10
|
import { RemoveColorMenuItem } from './RemoveColorMenuItem';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { EditorCommand
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
3
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
3
4
|
import type { TextColorInputMethod } from '../types';
|
|
4
5
|
export declare const changeColor: (color: string, api: ExtractInjectionAPI<TextColorPlugin> | undefined, inputMethod?: TextColorInputMethod) => EditorCommand;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { EditorCommand
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
3
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
3
4
|
export declare const togglePalette: (api: ExtractInjectionAPI<TextColorPlugin> | undefined) => EditorCommand;
|
|
4
5
|
export declare const setPalette: (isPaletteOpen: boolean) => EditorCommand;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
2
|
export declare const removeColor: EditorCommand;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
2
|
export declare const toggleColor: (color: string) => EditorCommand;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
3
|
import type { TextColorInputMethod } from '../../types';
|
|
4
4
|
export declare const changeColor: (color: string, editorAnalyticsApi: EditorAnalyticsAPI | undefined, inputMethod?: TextColorInputMethod) => Command;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
export declare const removeColor: () => Command;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
export declare const toggleColor: (color: string) => Command;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
4
4
|
export declare function keymapPlugin({ api }: {
|
|
5
5
|
api: ExtractInjectionAPI<TextColorPlugin> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type { PluginToolbarComponentConfig } from '@atlaskit/editor-common/toolbar';
|
|
4
|
-
import type { PaletteColor } from '@atlaskit/editor-common/ui-color';
|
|
3
|
+
import type { PluginToolbarComponentConfig } from '@atlaskit/editor-common/toolbar/types';
|
|
4
|
+
import type { PaletteColor } from '@atlaskit/editor-common/ui-color/ColorPalette/type';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
export type TextColorPluginState = {
|
|
7
7
|
color: string | null;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type { Command
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
3
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
5
|
+
import type { HighlightPlugin } from '@atlaskit/editor-plugin-highlight/highlightPluginType';
|
|
6
|
+
import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction/interaction-plugin-type';
|
|
7
|
+
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar/primary-toolbar-plugin-type';
|
|
8
|
+
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar/selection-toolbar-plugin-type';
|
|
9
|
+
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar/toolbar-plugin-type';
|
|
10
|
+
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences/user-preferences-plugin-type';
|
|
9
11
|
import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
|
|
10
12
|
import type { TextColorInputMethod } from './types';
|
|
11
13
|
export type TextColorPluginOptions = TextColorPluginConfig | boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
export type TextColorInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
|
|
3
3
|
export declare enum ToolbarType {
|
|
4
4
|
PRIMARY = "primaryToolbar",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { Node, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
6
6
|
interface FloatingToolbarComponentProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
6
6
|
interface PrimaryToolbarComponentProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model/types';
|
|
3
3
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
4
4
|
type RemoveColorMenuItemButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<TextColorPlugin>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
4
4
|
interface TextColorHighlightMenuProps {
|
|
5
5
|
api: ExtractInjectionAPI<TextColorPlugin> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
|
+
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model/types';
|
|
4
4
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
5
5
|
interface TextColorMenuItemProps {
|
|
6
6
|
api: ExtractInjectionAPI<TextColorPlugin> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CommonComponentProps } from '@atlaskit/editor-toolbar-model';
|
|
2
|
+
import type { CommonComponentProps } from '@atlaskit/editor-toolbar-model/types';
|
|
3
3
|
type TextMenuSectionProps = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
} & CommonComponentProps;
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
8
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
9
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
10
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
10
11
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
11
12
|
import type { TextColorPluginState } from '../../pm-plugins/main';
|
|
12
13
|
import type { TextColorPlugin } from '../../textColorPluginType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model/types';
|
|
3
3
|
import type { TextColorPlugin } from '../textColorPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (api: ExtractInjectionAPI<TextColorPlugin> | undefined) => RegisterComponent[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.7",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
49
49
|
"@atlaskit/primitives": "^22.5.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^234.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^20.4.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^130.
|
|
56
|
+
"@atlaskit/editor-common": "^130.5.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"
|