@atlaskit/editor-plugin-text-formatting 11.0.15 → 11.0.16
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/package.json +2 -2
- package/text-formatting-plugin/package.json +1 -8
- package/text-formatting-plugin-type/package.json +1 -8
- package/types/package.json +1 -8
- package/dist/types-ts4.5/editor-commands/clear-formatting.d.ts +0 -13
- package/dist/types-ts4.5/editor-commands/text-formatting.d.ts +0 -5
- package/dist/types-ts4.5/editor-commands/toggle-mark.d.ts +0 -19
- package/dist/types-ts4.5/editor-commands/types.d.ts +0 -6
- package/dist/types-ts4.5/editor-commands/utils/cell-selection.d.ts +0 -3
- package/dist/types-ts4.5/editor-commands/utils/marks.d.ts +0 -14
- package/dist/types-ts4.5/editor-commands/utils.d.ts +0 -11
- package/dist/types-ts4.5/entry-points/text-formatting-plugin-type.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/text-formatting-plugin.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/clear-formatting-keymap.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/clear-formatting.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/cursor.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/input-rule.d.ts +0 -26
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -5
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/smart-input-rule.d.ts +0 -4
- package/dist/types-ts4.5/textFormattingPlugin.d.ts +0 -6
- package/dist/types-ts4.5/textFormattingPluginType.d.ts +0 -31
- package/dist/types-ts4.5/ui/FloatingToolbarComponent.d.ts +0 -19
- package/dist/types-ts4.5/ui/PrimaryToolbarComponent.d.ts +0 -16
- package/dist/types-ts4.5/ui/Toolbar/components/BoldButtonGroup.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/components/Component.d.ts +0 -15
- package/dist/types-ts4.5/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/components/TextFormattingGroups.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/components/TextFormattingMenuGroup.d.ts +0 -5
- package/dist/types-ts4.5/ui/Toolbar/components/UnderlineButtonGroup.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/components/utils.d.ts +0 -37
- package/dist/types-ts4.5/ui/Toolbar/constants.d.ts +0 -32
- package/dist/types-ts4.5/ui/Toolbar/dropdown-menu.d.ts +0 -21
- package/dist/types-ts4.5/ui/Toolbar/dropdown-toolbar-button.d.ts +0 -21
- package/dist/types-ts4.5/ui/Toolbar/hooks/clear-formatting-icon.d.ts +0 -10
- package/dist/types-ts4.5/ui/Toolbar/hooks/formatting-icons.d.ts +0 -17
- package/dist/types-ts4.5/ui/Toolbar/hooks/menu-state.d.ts +0 -5
- package/dist/types-ts4.5/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +0 -16
- package/dist/types-ts4.5/ui/Toolbar/hooks/use-icon-list.d.ts +0 -11
- package/dist/types-ts4.5/ui/Toolbar/icons.d.ts +0 -3
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +0 -25
- package/dist/types-ts4.5/ui/Toolbar/input-method-utils.d.ts +0 -6
- package/dist/types-ts4.5/ui/Toolbar/more-button.d.ts +0 -17
- package/dist/types-ts4.5/ui/Toolbar/single-toolbar-buttons.d.ts +0 -13
- package/dist/types-ts4.5/ui/Toolbar/types.d.ts +0 -47
- package/dist/types-ts4.5/ui/toolbar-components.d.ts +0 -4
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.16",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/icon": "^35.4.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.7.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^103.0.0",
|
|
50
50
|
"@atlaskit/tokens": "^13.4.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1"
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/text-formatting-plugin.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/text-formatting-plugin.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/text-formatting-plugin.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/text-formatting-plugin-type.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/text-formatting-plugin-type.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/text-formatting-plugin-type.d.ts"
|
|
17
10
|
}
|
package/types/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/types.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/types.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/types.d.ts"
|
|
17
10
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { ClearFormattingWithAnalyticsEditorCommand } from './types';
|
|
5
|
-
export declare const FORMATTING_NODE_TYPES: string[];
|
|
6
|
-
export declare const FORMATTING_MARK_TYPES: string[];
|
|
7
|
-
/**
|
|
8
|
-
* Consider removing this function when cleaning up platform_editor–toolbar_aifc
|
|
9
|
-
* @deprecated use `clearFormattingWithAnalyticsNext` instead, which returns EditorCommand
|
|
10
|
-
*/
|
|
11
|
-
export declare function clearFormattingWithAnalytics(inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): Command;
|
|
12
|
-
export declare function clearFormatting(inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined): Command;
|
|
13
|
-
export declare const clearFormattingWithAnalyticsNext: ClearFormattingWithAnalyticsEditorCommand;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
-
export declare const moveRight: () => Command;
|
|
4
|
-
export declare const moveLeft: () => Command;
|
|
5
|
-
export declare const createInlineCodeFromTextInputWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (from: number, to: number, text: string) => Command;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { EditorCommand, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
3
|
-
import type { ToggleMarkWithAnalyticsEditorCommand } from './types';
|
|
4
|
-
export declare const toggleEm: EditorCommand;
|
|
5
|
-
export declare const toggleEmWithAnalytics: ToggleMarkWithAnalyticsEditorCommand;
|
|
6
|
-
export declare const toggleStrike: EditorCommand;
|
|
7
|
-
export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsEditorCommand;
|
|
8
|
-
export declare const toggleStrong: EditorCommand;
|
|
9
|
-
export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsEditorCommand;
|
|
10
|
-
export declare const toggleUnderline: EditorCommand;
|
|
11
|
-
export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsEditorCommand;
|
|
12
|
-
export declare const toggleSuperscript: EditorCommand;
|
|
13
|
-
export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsEditorCommand;
|
|
14
|
-
export declare const toggleSubscript: EditorCommand;
|
|
15
|
-
export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsEditorCommand;
|
|
16
|
-
export declare const toggleCode: ({ api }: {
|
|
17
|
-
api: ExtractInjectionAPI<TextFormattingPlugin> | undefined;
|
|
18
|
-
}) => EditorCommand;
|
|
19
|
-
export declare const toggleCodeWithAnalytics: ToggleMarkWithAnalyticsEditorCommand;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { EditorCommand, ExtractInjectionAPI, InputMethodBasic } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
4
|
-
export type ToggleMarkWithAnalyticsEditorCommand = (editorAnalyticsApi: EditorAnalyticsAPI | undefined, api?: ExtractInjectionAPI<TextFormattingPlugin>) => ToggleMarkEditorCommand;
|
|
5
|
-
export type ToggleMarkEditorCommand = (inputMethod: InputMethodBasic) => EditorCommand;
|
|
6
|
-
export type ClearFormattingWithAnalyticsEditorCommand = (editorAnalyticsApi: EditorAnalyticsAPI | undefined) => (inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB) => EditorCommand;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
3
|
-
export declare const cellSelectionNodesBetween: (selection: CellSelection, doc: Node, f: (node: Node, pos: number, parent: Node | null, index: number) => void | boolean, startPos?: number) => void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { EditorCommand, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { Mark, MarkType } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { TextFormattingPlugin } from '../../textFormattingPluginType';
|
|
5
|
-
/**
|
|
6
|
-
* A custom version of the ProseMirror toggleMark, where we only toggle marks
|
|
7
|
-
* on text nodes in the selection rather than all inline nodes.
|
|
8
|
-
* @param markType
|
|
9
|
-
* @param attrs
|
|
10
|
-
*/
|
|
11
|
-
export declare const nextToggleMark: (markType: MarkType, api: ExtractInjectionAPI<TextFormattingPlugin> | undefined, attrs?: {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}) => EditorCommand;
|
|
14
|
-
export declare const nextApplyMarkOnRange: (from: number, to: number, removeMark: boolean, mark: Mark, tr: Transaction, api: ExtractInjectionAPI<TextFormattingPlugin> | undefined) => Transaction;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { MenuIconItem } from '../ui/Toolbar/types';
|
|
4
|
-
export declare const hasCode: (state: EditorState, pos: number) => boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Determine if a mark (with specific attribute values) exists anywhere in the selection.
|
|
7
|
-
*/
|
|
8
|
-
export declare const markActive: (state: EditorState, mark: PMMark) => boolean;
|
|
9
|
-
export declare const checkFormattingIsPresent: (state: EditorState) => boolean;
|
|
10
|
-
export declare const compareItemsArrays: (items: MenuIconItem[], prevItems: MenuIconItem[]) => MenuIconItem[];
|
|
11
|
-
export declare const isArrayContainsContent: (items: MenuIconItem[], content: string) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { TextFormattingPlugin, TextFormattingPluginOptions, } from '../textFormattingPluginType';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { textFormattingPlugin } from '../textFormattingPlugin';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ToggleMarkEditorCommand } from '../editor-commands/types';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
export declare function keymapPlugin(editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
4
|
-
export default keymapPlugin;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
export interface ClearFormattingState {
|
|
5
|
-
formattingIsPresent?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const pluginKey: PluginKey<ClearFormattingState>;
|
|
8
|
-
export declare const plugin: (dispatch: Dispatch) => SafePlugin<ClearFormattingState>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
6
|
-
declare enum ValidAutoformatChars {
|
|
7
|
-
STRONG = "__",
|
|
8
|
-
STRIKE = "~~",
|
|
9
|
-
STRONG_MARKDOWN = "**",
|
|
10
|
-
ITALIC_MARKDOWN = "*",
|
|
11
|
-
ITALIC = "_",
|
|
12
|
-
CODE = "`"
|
|
13
|
-
}
|
|
14
|
-
export declare const ValidCombinations: Record<ValidAutoformatChars, string[]>;
|
|
15
|
-
declare class ReverseRegexExp extends RegExp {
|
|
16
|
-
exec(str: string): RegExpExecArray | null;
|
|
17
|
-
}
|
|
18
|
-
export declare const strongRegex1: ReverseRegexExp;
|
|
19
|
-
export declare const strongRegex2: ReverseRegexExp;
|
|
20
|
-
export declare const italicRegex1: ReverseRegexExp;
|
|
21
|
-
export declare const italicRegex2: ReverseRegexExp;
|
|
22
|
-
export declare const strikeRegex: ReverseRegexExp;
|
|
23
|
-
export declare const codeRegex: ReverseRegexExp;
|
|
24
|
-
export declare const codeRegexWithBackwardMatch: ReverseRegexExp;
|
|
25
|
-
export declare function inputRulePlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, api: ExtractInjectionAPI<TextFormattingPlugin> | undefined): SafePlugin | undefined;
|
|
26
|
-
export default inputRulePlugin;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
export default function keymapPlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
import type { TextFormattingState } from '@atlaskit/editor-common/types';
|
|
5
|
-
export declare const plugin: (dispatch: Dispatch, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => SafePlugin<TextFormattingState>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { TextFormattingPlugin } from './textFormattingPluginType';
|
|
2
|
-
/**
|
|
3
|
-
* Text formatting plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
4
|
-
* from `@atlaskit/editor-core`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const textFormattingPlugin: TextFormattingPlugin;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions as CommonTextFormattingOptions, TextFormattingState, _MarkdownModePluginStub } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type { BasePlugin } from '@atlaskit/editor-plugin-base';
|
|
4
|
-
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
5
|
-
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
6
|
-
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
7
|
-
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
8
|
-
import type { ToggleMarkEditorCommand } from './editor-commands/types';
|
|
9
|
-
export type TextFormattingPluginOptions = CommonTextFormattingOptions;
|
|
10
|
-
export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
|
|
11
|
-
commands: {
|
|
12
|
-
toggleCode: ToggleMarkEditorCommand;
|
|
13
|
-
toggleEm: ToggleMarkEditorCommand;
|
|
14
|
-
toggleStrike: ToggleMarkEditorCommand;
|
|
15
|
-
toggleStrong: ToggleMarkEditorCommand;
|
|
16
|
-
toggleSubscript: ToggleMarkEditorCommand;
|
|
17
|
-
toggleSuperscript: ToggleMarkEditorCommand;
|
|
18
|
-
toggleUnderline: ToggleMarkEditorCommand;
|
|
19
|
-
};
|
|
20
|
-
dependencies: [
|
|
21
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
22
|
-
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
23
|
-
OptionalPlugin<BasePlugin>,
|
|
24
|
-
OptionalPlugin<SelectionToolbarPlugin>,
|
|
25
|
-
OptionalPlugin<UserPreferencesPlugin>,
|
|
26
|
-
OptionalPlugin<ToolbarPlugin>,
|
|
27
|
-
OptionalPlugin<_MarkdownModePluginStub>
|
|
28
|
-
];
|
|
29
|
-
pluginConfiguration: TextFormattingPluginOptions | undefined;
|
|
30
|
-
sharedState: TextFormattingState | undefined;
|
|
31
|
-
}>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
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';
|
|
9
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
11
|
-
type FloatingToolbarComponentProps = {
|
|
12
|
-
api: ExtractInjectionAPI<TextFormattingPlugin> | undefined;
|
|
13
|
-
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
14
|
-
editorView: EditorView;
|
|
15
|
-
} & WrappedComponentProps;
|
|
16
|
-
export declare const FloatingToolbarTextFormalWithIntl: React.FC<WithIntlProps<FloatingToolbarComponentProps>> & {
|
|
17
|
-
WrappedComponent: React.ComponentType<FloatingToolbarComponentProps>;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI, ToolbarSize } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
5
|
-
interface PrimaryToolbarComponentProps {
|
|
6
|
-
api: ExtractInjectionAPI<TextFormattingPlugin> | undefined;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
editorView: EditorView;
|
|
9
|
-
isReducedSpacing: boolean;
|
|
10
|
-
popupsMountPoint?: HTMLElement;
|
|
11
|
-
popupsScrollableElement?: HTMLElement;
|
|
12
|
-
shouldUseResponsiveToolbar: boolean;
|
|
13
|
-
toolbarSize: ToolbarSize;
|
|
14
|
-
}
|
|
15
|
-
export declare const PrimaryToolbarComponent: React.MemoExoticComponent<({ api, popupsMountPoint, popupsScrollableElement, toolbarSize, editorView, disabled, isReducedSpacing, shouldUseResponsiveToolbar, }: PrimaryToolbarComponentProps) => React.JSX.Element>;
|
|
16
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
-
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
|
-
export declare const boldButtonGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { CommonComponentProps } from '@atlaskit/editor-toolbar-model';
|
|
4
|
-
import type { FormatComponentProps } from './utils';
|
|
5
|
-
export declare const FormatMenuItem: ({ parents, api, optionType, toggleMarkWithAnalyticsCallback, icon, shortcut, title, }: FormatComponentProps) => React.JSX.Element | null;
|
|
6
|
-
export declare const FormatButton: ({ parents, api, optionType, toggleMarkWithAnalyticsCallback, icon, shortcut, title, }: FormatComponentProps) => React.JSX.Element;
|
|
7
|
-
export declare const ClearFormatMenuItem: ({ api, parents, }: Pick<FormatComponentProps, "api" | "parents">) => React.JSX.Element | null;
|
|
8
|
-
export declare const MoreFormattingMenu: ({ children }: {
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
}) => React.JSX.Element;
|
|
11
|
-
export declare const MenuSection: ({ children, title, parents, }: {
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
parents: CommonComponentProps["parents"];
|
|
14
|
-
title?: string;
|
|
15
|
-
}) => React.JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
-
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
|
-
export declare const textFormattingGroupForInlineToolbar: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
-
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
|
-
export declare const textFormattingGroupForPrimaryToolbar: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
-
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
|
-
export declare const getFormatMenuItems: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
5
|
-
export declare const textFormattingMenuGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
-
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
|
-
export declare const underlineButtonGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { MessageDescriptor } from 'react-intl';
|
|
2
|
-
import type { Keymap } from '@atlaskit/editor-common/keymaps';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { IconComponent } from '@atlaskit/editor-toolbar';
|
|
5
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
6
|
-
import type { ToggleMarkWithAnalyticsEditorCommand, ClearFormattingWithAnalyticsEditorCommand } from '../../../editor-commands/types';
|
|
7
|
-
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
8
|
-
import type { FormatOptions } from '../types';
|
|
9
|
-
export type FormatComponentProps = {
|
|
10
|
-
api?: ExtractInjectionAPI<TextFormattingPlugin>;
|
|
11
|
-
ariaLabel?: string;
|
|
12
|
-
icon: IconComponent;
|
|
13
|
-
optionType: FormatOptions;
|
|
14
|
-
parents: ToolbarComponentTypes;
|
|
15
|
-
shortcut: Keymap;
|
|
16
|
-
title: MessageDescriptor;
|
|
17
|
-
toggleMarkWithAnalyticsCallback: ToggleMarkWithAnalyticsEditorCommand | ClearFormattingWithAnalyticsEditorCommand;
|
|
18
|
-
};
|
|
19
|
-
export declare const useComponentInfo: ({ api, optionType, title, shortcut, toggleMarkWithAnalyticsCallback, parents, }: Omit<FormatComponentProps, "icon" | "ariaLabel" | "groupLocation">) => {
|
|
20
|
-
ariaLabel: string;
|
|
21
|
-
formatTitle: string;
|
|
22
|
-
isActive: boolean;
|
|
23
|
-
isDisabled: boolean;
|
|
24
|
-
isHidden: boolean;
|
|
25
|
-
onClick: () => void;
|
|
26
|
-
shortcutContent: string | undefined;
|
|
27
|
-
};
|
|
28
|
-
type FormatOptionInfo = {
|
|
29
|
-
command: ToggleMarkWithAnalyticsEditorCommand;
|
|
30
|
-
icon: IconComponent;
|
|
31
|
-
key: string;
|
|
32
|
-
rank: number;
|
|
33
|
-
shortcut: Keymap;
|
|
34
|
-
title: MessageDescriptor;
|
|
35
|
-
};
|
|
36
|
-
export declare const formatOptions: () => Record<FormatOptions, FormatOptionInfo>;
|
|
37
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { IconTypes } from './types';
|
|
3
|
-
export declare const ToolbarButtonsStrongItalic: IconTypes[];
|
|
4
|
-
export declare const ToolbarButtonsStrong: IconTypes[];
|
|
5
|
-
export declare const ToolbarButtonsStrongItalicUnderline: IconTypes[];
|
|
6
|
-
export declare const ButtonsMenuMinimal: IconTypes[];
|
|
7
|
-
export declare const ButtonsMenuCompact: IconTypes[];
|
|
8
|
-
export declare const ButtonsMenuSpacious: IconTypes[];
|
|
9
|
-
/**
|
|
10
|
-
* Minimal toolbar is with Bold as single button, and Italic as a dropdown button.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ResponsiveCustomButtonToolbarMinimal: Record<ToolbarSize, IconTypes[]>;
|
|
13
|
-
/**
|
|
14
|
-
* Compact toolbar is with Bold, Italic as single buttons, and underline as a dropdown button.
|
|
15
|
-
*/
|
|
16
|
-
export declare const ResponsiveCustomButtonToolbarCompact: Record<ToolbarSize, IconTypes[]>;
|
|
17
|
-
/**
|
|
18
|
-
* Spacious toolbar is with Bold, italic, underline as single buttons, and strike as a dropdown button.
|
|
19
|
-
*/
|
|
20
|
-
export declare const ResponsiveCustomButtonToolbarSpacious: Record<ToolbarSize, IconTypes[]>;
|
|
21
|
-
/**
|
|
22
|
-
* Corresponding dropdown menu for the ResponsiveCustomButtonToolbarMinimal
|
|
23
|
-
*/
|
|
24
|
-
export declare const ResponsiveCustomMenuMinimal: Record<ToolbarSize, IconTypes[]>;
|
|
25
|
-
/**
|
|
26
|
-
* Corresponding dropdown menu for the ResponsiveCustomButtonToolbarCompact
|
|
27
|
-
*/
|
|
28
|
-
export declare const ResponsiveCustomMenuCompact: Record<ToolbarSize, IconTypes[]>;
|
|
29
|
-
/**
|
|
30
|
-
* Corresponding dropdown menu for the ResponsiveCustomButtonToolbarSpacious
|
|
31
|
-
*/
|
|
32
|
-
export declare const ResponsiveCustomMenuSpacious: Record<ToolbarSize, IconTypes[]>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { MenuIconItem, ToolbarType } from './types';
|
|
5
|
-
type DropdownMenuProps = {
|
|
6
|
-
editorView: EditorView;
|
|
7
|
-
hasFormattingActive: boolean;
|
|
8
|
-
hasMoreButton: boolean;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
isReducedSpacing: boolean;
|
|
11
|
-
items: {
|
|
12
|
-
items: MenuIconItem[];
|
|
13
|
-
}[];
|
|
14
|
-
moreButtonLabel: string;
|
|
15
|
-
popupsBoundariesElement?: HTMLElement;
|
|
16
|
-
popupsMountPoint?: HTMLElement;
|
|
17
|
-
popupsScrollableElement?: HTMLElement;
|
|
18
|
-
toolbarType: ToolbarType;
|
|
19
|
-
} & WrappedComponentProps;
|
|
20
|
-
export declare const FormattingTextDropdownMenu: React.MemoExoticComponent<({ editorView, moreButtonLabel, isReducedSpacing, items, hasFormattingActive, popupsBoundariesElement, popupsMountPoint, popupsScrollableElement, hasMoreButton, intl, toolbarType, isDisabled, }: DropdownMenuProps) => React.JSX.Element>;
|
|
21
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import { ToolbarType } from './types';
|
|
8
|
-
type DropdownButtonProps = {
|
|
9
|
-
activeIconName?: string;
|
|
10
|
-
'aria-expanded': React.AriaAttributes['aria-expanded'];
|
|
11
|
-
iconBefore?: React.ReactElement;
|
|
12
|
-
isDisabled: boolean;
|
|
13
|
-
isReducedSpacing: boolean;
|
|
14
|
-
isSelected: boolean;
|
|
15
|
-
label: string;
|
|
16
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
17
|
-
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
18
|
-
toolbarType: ToolbarType;
|
|
19
|
-
};
|
|
20
|
-
export declare const DropdownToolbarButton: ({ label, isReducedSpacing, isDisabled, isSelected, "aria-expanded": ariaExpanded, onClick, onKeyDown, toolbarType, iconBefore, activeIconName, }: DropdownButtonProps) => jsx.JSX.Element;
|
|
21
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { IconHookProps, MenuIconItem, ToolbarType } from '../types';
|
|
3
|
-
interface ClearIconHookProps extends IconHookProps {
|
|
4
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
5
|
-
formattingIsPresent: boolean | undefined;
|
|
6
|
-
formattingPluginInitialised: boolean | undefined;
|
|
7
|
-
toolbarType: ToolbarType;
|
|
8
|
-
}
|
|
9
|
-
export declare const useClearIcon: ({ intl, formattingPluginInitialised, formattingIsPresent: formattingPresent, editorAnalyticsAPI, toolbarType, }: ClearIconHookProps) => MenuIconItem | null;
|
|
10
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { TextFormattingState } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import { type IconHookProps, type MenuIconItem, IconTypes, type ToolbarType } from '../types';
|
|
5
|
-
interface FormattingIconHookProps extends IconHookProps {
|
|
6
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
7
|
-
schema: Schema;
|
|
8
|
-
textFormattingState: TextFormattingState | undefined;
|
|
9
|
-
toolbarType: ToolbarType;
|
|
10
|
-
}
|
|
11
|
-
export declare const useFormattingIcons: ({ isToolbarDisabled, textFormattingState, schema, intl, editorAnalyticsAPI, toolbarType, }: FormattingIconHookProps) => Array<MenuIconItem | null>;
|
|
12
|
-
type Props = {
|
|
13
|
-
iconTypeList: IconTypes[];
|
|
14
|
-
textFormattingState: TextFormattingState | undefined;
|
|
15
|
-
};
|
|
16
|
-
export declare const useHasFormattingActived: ({ iconTypeList, textFormattingState }: Props) => boolean;
|
|
17
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { IconTypes, MenuIconItem } from '../types';
|
|
3
|
-
import type { IconsPositions } from './use-icon-list';
|
|
4
|
-
export declare const useResponsiveIconTypeButtons: ({ toolbarSize, responsivenessEnabled, }: {
|
|
5
|
-
responsivenessEnabled: boolean;
|
|
6
|
-
toolbarSize: ToolbarSize;
|
|
7
|
-
}) => IconTypes[];
|
|
8
|
-
export declare const useResponsiveIconTypeMenu: ({ toolbarSize, responsivenessEnabled, }: {
|
|
9
|
-
responsivenessEnabled: boolean;
|
|
10
|
-
toolbarSize: ToolbarSize;
|
|
11
|
-
}) => IconTypes[];
|
|
12
|
-
export declare const useResponsiveToolbarButtons: ({ icons, toolbarSize, responsivenessEnabled, }: {
|
|
13
|
-
icons: Array<MenuIconItem | null>;
|
|
14
|
-
responsivenessEnabled: boolean;
|
|
15
|
-
toolbarSize: ToolbarSize;
|
|
16
|
-
}) => IconsPositions;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { IconTypes, MenuIconItem } from '../types';
|
|
2
|
-
interface UseIconsParams {
|
|
3
|
-
icons: Array<MenuIconItem | null>;
|
|
4
|
-
iconTypeList: IconTypes[];
|
|
5
|
-
}
|
|
6
|
-
export type IconsPositions = {
|
|
7
|
-
dropdownItems: Array<MenuIconItem>;
|
|
8
|
-
singleItems: Array<MenuIconItem>;
|
|
9
|
-
};
|
|
10
|
-
export declare const useIconList: ({ icons, iconTypeList }: UseIconsParams) => IconsPositions;
|
|
11
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ComponentType, FC } from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { ExtractInjectionAPI, TextFormattingState, ToolbarSize } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
import type { TextFormattingPlugin } from '../../textFormattingPluginType';
|
|
7
|
-
import type { ToolbarType } from './types';
|
|
8
|
-
export type ToolbarFormattingProps = {
|
|
9
|
-
api: ExtractInjectionAPI<TextFormattingPlugin> | undefined;
|
|
10
|
-
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
11
|
-
editorView: EditorView;
|
|
12
|
-
isReducedSpacing: boolean;
|
|
13
|
-
isToolbarDisabled: boolean;
|
|
14
|
-
popupsBoundariesElement?: HTMLElement;
|
|
15
|
-
popupsMountPoint?: HTMLElement;
|
|
16
|
-
popupsScrollableElement?: HTMLElement;
|
|
17
|
-
shouldUseResponsiveToolbar: boolean;
|
|
18
|
-
textFormattingState: TextFormattingState;
|
|
19
|
-
toolbarSize: ToolbarSize;
|
|
20
|
-
toolbarType: ToolbarType;
|
|
21
|
-
};
|
|
22
|
-
declare const _default_1: FC<WithIntlProps<ToolbarFormattingProps & WrappedComponentProps>> & {
|
|
23
|
-
WrappedComponent: ComponentType<ToolbarFormattingProps & WrappedComponentProps>;
|
|
24
|
-
};
|
|
25
|
-
export default _default_1;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { InputMethodToolbar } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { ToolbarType } from './types';
|
|
3
|
-
type ToolbarTypeToInputMethodMap = Record<ToolbarType, InputMethodToolbar>;
|
|
4
|
-
export declare const toolbarTypeToInputMethod: ToolbarTypeToInputMethodMap;
|
|
5
|
-
export declare const getInputMethod: (toolbarType: ToolbarType) => InputMethodToolbar;
|
|
6
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
type MoreButtonProps = {
|
|
8
|
-
'aria-expanded': React.AriaAttributes['aria-expanded'];
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
isReducedSpacing: boolean;
|
|
11
|
-
isSelected: boolean;
|
|
12
|
-
label: string;
|
|
13
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
14
|
-
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
15
|
-
};
|
|
16
|
-
export declare const MoreButton: React.MemoExoticComponent<(props: MoreButtonProps) => jsx.JSX.Element>;
|
|
17
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
-
import type { MenuIconItem } from './types';
|
|
9
|
-
export declare const SingleToolbarButtons: React.MemoExoticComponent<({ items, isReducedSpacing, editorView, }: {
|
|
10
|
-
editorView: EditorView;
|
|
11
|
-
isReducedSpacing: boolean;
|
|
12
|
-
items: MenuIconItem[];
|
|
13
|
-
}) => jsx.JSX.Element>;
|
|
@@ -1,47 +0,0 @@
|
|
|
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';
|
|
5
|
-
export declare enum IconTypes {
|
|
6
|
-
strong = "strong",
|
|
7
|
-
em = "em",
|
|
8
|
-
underline = "underline",
|
|
9
|
-
strike = "strike",
|
|
10
|
-
code = "code",
|
|
11
|
-
subscript = "subscript",
|
|
12
|
-
superscript = "superscript"
|
|
13
|
-
}
|
|
14
|
-
export declare enum FormatOptions {
|
|
15
|
-
strong = "strong",
|
|
16
|
-
em = "em",
|
|
17
|
-
underline = "underline",
|
|
18
|
-
strike = "strike",
|
|
19
|
-
code = "code",
|
|
20
|
-
subscript = "subscript",
|
|
21
|
-
superscript = "superscript"
|
|
22
|
-
}
|
|
23
|
-
export type FormatOptionState = {
|
|
24
|
-
isActive: boolean;
|
|
25
|
-
isDisabled: boolean;
|
|
26
|
-
isHidden: boolean;
|
|
27
|
-
};
|
|
28
|
-
export interface MenuIconItem extends MenuItem {
|
|
29
|
-
buttonId?: TOOLBAR_ACTION_SUBJECT_ID;
|
|
30
|
-
command: Command;
|
|
31
|
-
iconElement?: React.ReactElement;
|
|
32
|
-
iconMark?: IconTypes;
|
|
33
|
-
tooltipElement?: React.ReactElement;
|
|
34
|
-
}
|
|
35
|
-
export type MenuIconState = {
|
|
36
|
-
hasSchemaMark: boolean;
|
|
37
|
-
isActive: boolean;
|
|
38
|
-
isDisabled: boolean;
|
|
39
|
-
isHidden: boolean;
|
|
40
|
-
};
|
|
41
|
-
export type IconHookProps = {
|
|
42
|
-
isToolbarDisabled?: boolean;
|
|
43
|
-
} & WrappedComponentProps;
|
|
44
|
-
export declare enum ToolbarType {
|
|
45
|
-
PRIMARY = "primaryToolbar",
|
|
46
|
-
FLOATING = "floatingToolbar"
|
|
47
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
-
import type { TextFormattingPlugin, TextFormattingPluginOptions } from '../textFormattingPluginType';
|
|
4
|
-
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<TextFormattingPlugin>, options?: TextFormattingPluginOptions) => RegisterComponent[];
|