@atlaskit/editor-plugin-text-formatting 26.0.4 → 26.0.5
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 +6 -0
- package/dist/cjs/editor-commands/clear-formatting.js +18 -18
- package/dist/cjs/editor-commands/text-formatting.js +10 -10
- package/dist/cjs/editor-commands/toggle-mark.js +36 -36
- package/dist/cjs/pm-plugins/clear-formatting-keymap.js +2 -2
- package/dist/cjs/pm-plugins/input-rule.js +31 -29
- package/dist/cjs/pm-plugins/keymap.js +15 -15
- package/dist/cjs/pm-plugins/main.js +5 -4
- package/dist/cjs/pm-plugins/smart-input-rule.js +28 -26
- package/dist/cjs/ui/FloatingToolbarComponent.js +2 -2
- package/dist/cjs/ui/PrimaryToolbarComponent.js +2 -2
- package/dist/cjs/ui/Toolbar/components/BoldButtonGroup.js +17 -14
- package/dist/cjs/ui/Toolbar/components/Component.js +29 -21
- package/dist/cjs/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.js +14 -13
- package/dist/cjs/ui/Toolbar/components/TextFormattingGroups.js +32 -29
- package/dist/cjs/ui/Toolbar/components/TextFormattingMenuGroup.js +38 -37
- package/dist/cjs/ui/Toolbar/components/UnderlineButtonGroup.js +17 -14
- package/dist/cjs/ui/Toolbar/components/utils.js +42 -34
- package/dist/cjs/ui/Toolbar/dropdown-menu.js +6 -6
- package/dist/cjs/ui/Toolbar/dropdown-toolbar-button.js +7 -6
- package/dist/cjs/ui/Toolbar/hooks/clear-formatting-icon.js +4 -4
- package/dist/cjs/ui/Toolbar/hooks/formatting-icons.js +16 -16
- package/dist/cjs/ui/Toolbar/index.js +17 -17
- package/dist/cjs/ui/Toolbar/input-method-utils.js +2 -2
- package/dist/cjs/ui/Toolbar/more-button.js +2 -2
- package/dist/cjs/ui/Toolbar/single-toolbar-buttons.js +5 -4
- package/dist/es2019/editor-commands/clear-formatting.js +1 -1
- package/dist/es2019/editor-commands/text-formatting.js +3 -3
- package/dist/es2019/editor-commands/toggle-mark.js +2 -2
- package/dist/es2019/pm-plugins/clear-formatting-keymap.js +1 -1
- package/dist/es2019/pm-plugins/input-rule.js +5 -3
- package/dist/es2019/pm-plugins/keymap.js +1 -1
- package/dist/es2019/pm-plugins/main.js +2 -1
- package/dist/es2019/pm-plugins/smart-input-rule.js +5 -3
- package/dist/es2019/ui/FloatingToolbarComponent.js +1 -1
- package/dist/es2019/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/es2019/ui/Toolbar/components/BoldButtonGroup.js +5 -2
- package/dist/es2019/ui/Toolbar/components/Component.js +12 -4
- package/dist/es2019/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.js +3 -2
- package/dist/es2019/ui/Toolbar/components/TextFormattingGroups.js +5 -2
- package/dist/es2019/ui/Toolbar/components/TextFormattingMenuGroup.js +3 -2
- package/dist/es2019/ui/Toolbar/components/UnderlineButtonGroup.js +5 -2
- package/dist/es2019/ui/Toolbar/components/utils.js +13 -4
- package/dist/es2019/ui/Toolbar/dropdown-menu.js +3 -3
- package/dist/es2019/ui/Toolbar/dropdown-toolbar-button.js +3 -2
- package/dist/es2019/ui/Toolbar/hooks/clear-formatting-icon.js +2 -2
- package/dist/es2019/ui/Toolbar/hooks/formatting-icons.js +4 -4
- package/dist/es2019/ui/Toolbar/index.js +4 -4
- package/dist/es2019/ui/Toolbar/input-method-utils.js +1 -1
- package/dist/es2019/ui/Toolbar/more-button.js +1 -1
- package/dist/es2019/ui/Toolbar/single-toolbar-buttons.js +2 -2
- package/dist/esm/editor-commands/clear-formatting.js +1 -1
- package/dist/esm/editor-commands/text-formatting.js +3 -3
- package/dist/esm/editor-commands/toggle-mark.js +2 -2
- package/dist/esm/pm-plugins/clear-formatting-keymap.js +1 -1
- package/dist/esm/pm-plugins/input-rule.js +5 -3
- package/dist/esm/pm-plugins/keymap.js +1 -1
- package/dist/esm/pm-plugins/main.js +2 -1
- package/dist/esm/pm-plugins/smart-input-rule.js +5 -3
- package/dist/esm/ui/FloatingToolbarComponent.js +1 -1
- package/dist/esm/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/esm/ui/Toolbar/components/BoldButtonGroup.js +5 -2
- package/dist/esm/ui/Toolbar/components/Component.js +12 -4
- package/dist/esm/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.js +3 -2
- package/dist/esm/ui/Toolbar/components/TextFormattingGroups.js +5 -2
- package/dist/esm/ui/Toolbar/components/TextFormattingMenuGroup.js +3 -2
- package/dist/esm/ui/Toolbar/components/UnderlineButtonGroup.js +5 -2
- package/dist/esm/ui/Toolbar/components/utils.js +13 -4
- package/dist/esm/ui/Toolbar/dropdown-menu.js +3 -3
- package/dist/esm/ui/Toolbar/dropdown-toolbar-button.js +3 -2
- package/dist/esm/ui/Toolbar/hooks/clear-formatting-icon.js +2 -2
- package/dist/esm/ui/Toolbar/hooks/formatting-icons.js +4 -4
- package/dist/esm/ui/Toolbar/index.js +4 -4
- package/dist/esm/ui/Toolbar/input-method-utils.js +1 -1
- package/dist/esm/ui/Toolbar/more-button.js +1 -1
- package/dist/esm/ui/Toolbar/single-toolbar-buttons.js +2 -2
- package/dist/types/editor-commands/clear-formatting.d.ts +3 -3
- package/dist/types/editor-commands/text-formatting.d.ts +2 -2
- package/dist/types/editor-commands/toggle-mark.d.ts +2 -1
- package/dist/types/editor-commands/types.d.ts +5 -2
- package/dist/types/editor-commands/utils/marks.d.ts +2 -1
- package/dist/types/pm-plugins/clear-formatting-keymap.d.ts +1 -1
- package/dist/types/pm-plugins/input-rule.d.ts +2 -2
- package/dist/types/pm-plugins/keymap.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/pm-plugins/smart-input-rule.d.ts +1 -1
- package/dist/types/textFormattingPluginType.d.ts +8 -7
- package/dist/types/ui/FloatingToolbarComponent.d.ts +2 -2
- package/dist/types/ui/PrimaryToolbarComponent.d.ts +2 -1
- package/dist/types/ui/Toolbar/components/BoldButtonGroup.d.ts +2 -2
- package/dist/types/ui/Toolbar/components/Component.d.ts +1 -1
- package/dist/types/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.d.ts +2 -2
- package/dist/types/ui/Toolbar/components/TextFormattingGroups.d.ts +2 -2
- package/dist/types/ui/Toolbar/components/TextFormattingMenuGroup.d.ts +2 -2
- package/dist/types/ui/Toolbar/components/UnderlineButtonGroup.d.ts +2 -2
- package/dist/types/ui/Toolbar/components/utils.d.ts +3 -3
- package/dist/types/ui/Toolbar/hooks/clear-formatting-icon.d.ts +1 -1
- package/dist/types/ui/Toolbar/hooks/formatting-icons.d.ts +2 -2
- package/dist/types/ui/Toolbar/index.d.ts +4 -2
- package/dist/types/ui/Toolbar/input-method-utils.d.ts +1 -1
- package/dist/types/ui/Toolbar/types.d.ts +3 -3
- package/dist/types/ui/toolbar-components.d.ts +2 -2
- package/docs/0-intro.tsx +1 -1
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import
|
|
9
|
+
import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
10
10
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
11
11
|
var MoreIconStyle = css({
|
|
12
12
|
display: 'flex',
|
|
@@ -6,8 +6,8 @@ import React, { useCallback } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import { buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
10
|
-
import
|
|
9
|
+
import { buttonGroupStyle } from '@atlaskit/editor-common/styles/plugins';
|
|
10
|
+
import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
11
11
|
export var SingleToolbarButtons = /*#__PURE__*/React.memo(function (_ref) {
|
|
12
12
|
var items = _ref.items,
|
|
13
13
|
isReducedSpacing = _ref.isReducedSpacing,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
4
4
|
import type { ClearFormattingWithAnalyticsEditorCommand } from './types';
|
|
5
5
|
export declare const FORMATTING_NODE_TYPES: string[];
|
|
6
6
|
export declare const FORMATTING_MARK_TYPES: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
export declare const moveRight: () => Command;
|
|
4
4
|
export declare const moveLeft: () => Command;
|
|
5
5
|
export declare const createInlineCodeFromTextInputWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (from: number, to: number, text: string) => Command;
|
|
@@ -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 { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
3
4
|
import type { ToggleMarkWithAnalyticsEditorCommand } from './types';
|
|
4
5
|
export declare const toggleEm: EditorCommand;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI
|
|
2
|
-
import type {
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
|
+
import type { InputMethodBasic } from '@atlaskit/editor-common/types/text-formatting';
|
|
3
6
|
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
4
7
|
export type ToggleMarkWithAnalyticsEditorCommand = (editorAnalyticsApi: EditorAnalyticsAPI | undefined, api?: ExtractInjectionAPI<TextFormattingPlugin>) => ToggleMarkEditorCommand;
|
|
5
8
|
export type ToggleMarkEditorCommand = (inputMethod: InputMethodBasic) => 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 { Mark, MarkType } from '@atlaskit/editor-prosemirror/model';
|
|
3
4
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import type { TextFormattingPlugin } from '../../textFormattingPluginType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
2
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
export declare function keymapPlugin(editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
4
4
|
export default keymapPlugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
6
6
|
declare enum ValidAutoformatChars {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
export default function keymapPlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
2
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
import type { TextFormattingState } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { TextFormattingState } from '@atlaskit/editor-common/types/text-formatting';
|
|
5
5
|
export declare const plugin: (dispatch: Dispatch, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => SafePlugin<TextFormattingState>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { TextFormattingState } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { TextFormattingState } from '@atlaskit/editor-common/types/text-formatting';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare const pluginKey: PluginKey<TextFormattingState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
export default _default;
|
|
4
4
|
declare function _default(editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { TextFormattingOptions as CommonTextFormattingOptions, TextFormattingState } from '@atlaskit/editor-common/types/text-formatting';
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
4
|
+
import type { BasePlugin } from '@atlaskit/editor-plugin-base/basePluginType';
|
|
5
|
+
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar/primary-toolbar-plugin-type';
|
|
6
|
+
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar/selection-toolbar-plugin-type';
|
|
7
|
+
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar/toolbar-plugin-type';
|
|
8
|
+
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences/user-preferences-plugin-type';
|
|
8
9
|
import type { ToggleMarkEditorCommand } from './editor-commands/types';
|
|
9
10
|
export type TextFormattingPluginOptions = CommonTextFormattingOptions;
|
|
10
11
|
export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
8
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
11
11
|
type FloatingToolbarComponentProps = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
5
6
|
interface PrimaryToolbarComponentProps {
|
|
@@ -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 { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const boldButtonGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { CommonComponentProps } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { CommonComponentProps } from '@atlaskit/editor-toolbar-model/types';
|
|
4
4
|
import type { FormatComponentProps } from './utils';
|
|
5
5
|
export declare const FormatMenuItem: ({ parents, api, optionType, toggleMarkWithAnalyticsCallback, icon, shortcut, title, }: FormatComponentProps) => React.JSX.Element | null;
|
|
6
6
|
export declare const FormatButton: ({ parents, api, optionType, toggleMarkWithAnalyticsCallback, icon, shortcut, title, }: FormatComponentProps) => React.JSX.Element;
|
|
@@ -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 { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const textFormattingGroupForInlineToolbar: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -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 { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const textFormattingGroupForPrimaryToolbar: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const getFormatMenuItems: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
5
5
|
export declare const textFormattingMenuGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -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 { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const underlineButtonGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { MessageDescriptor } from 'react-intl';
|
|
2
2
|
import type { Keymap } from '@atlaskit/editor-common/keymaps';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model/types';
|
|
5
|
+
import type { IconComponent } from '@atlaskit/editor-toolbar/types';
|
|
6
6
|
import type { ToggleMarkWithAnalyticsEditorCommand, ClearFormattingWithAnalyticsEditorCommand } from '../../../editor-commands/types';
|
|
7
7
|
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
8
8
|
import type { FormatOptions } from '../types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
2
|
import type { IconHookProps, MenuIconItem, ToolbarType } from '../types';
|
|
3
3
|
interface ClearIconHookProps extends IconHookProps {
|
|
4
4
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { TextFormattingState } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
|
+
import type { TextFormattingState } from '@atlaskit/editor-common/types/text-formatting';
|
|
3
3
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { type IconHookProps, type MenuIconItem, IconTypes, type ToolbarType } from '../types';
|
|
5
5
|
interface FormattingIconHookProps extends IconHookProps {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ComponentType, FC } from 'react';
|
|
2
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type {
|
|
3
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
4
|
+
import type { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
6
|
+
import type { TextFormattingState } from '@atlaskit/editor-common/types/text-formatting';
|
|
5
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
8
|
import type { TextFormattingPlugin } from '../../textFormattingPluginType';
|
|
7
9
|
import type { ToolbarType } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InputMethodToolbar } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { InputMethodToolbar } from '@atlaskit/editor-common/types/text-formatting';
|
|
2
2
|
import { ToolbarType } from './types';
|
|
3
3
|
type ToolbarTypeToInputMethodMap = Record<ToolbarType, InputMethodToolbar>;
|
|
4
4
|
export declare const toolbarTypeToInputMethod: ToolbarTypeToInputMethodMap;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
-
import type { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
2
|
+
import type { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/toolbar-button';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
4
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu/DropdownMenu/types';
|
|
5
5
|
export declare enum IconTypes {
|
|
6
6
|
strong = "strong",
|
|
7
7
|
em = "em",
|
|
@@ -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 { TextFormattingPlugin, TextFormattingPluginOptions } from '../textFormattingPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<TextFormattingPlugin>, options?: TextFormattingPluginOptions) => RegisterComponent[];
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
|
|
4
|
-
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils';
|
|
4
|
+
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils/editor-use-only';
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- md template from @atlaskit/docs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.5",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/icon": "^38.0.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
40
40
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^232.0.0",
|
|
42
42
|
"@atlaskit/tokens": "^20.4.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|