@atlaskit/editor-core 187.4.8 → 187.4.11
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 +13 -0
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +1 -1
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +2 -1
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +1 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +1 -1
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +7 -6
- package/dist/cjs/plugins/text-formatting/commands/clear-formatting.js +1 -1
- package/dist/cjs/plugins/text-formatting/index.js +2 -2
- package/dist/cjs/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +1 -1
- package/dist/cjs/plugins/text-formatting/pm-plugins/clear-formatting.js +5 -2
- package/dist/cjs/plugins/text-formatting/pm-plugins/keymap.js +3 -3
- package/dist/cjs/plugins/text-formatting/pm-plugins/main.js +1 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/constants.js +1 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +5 -5
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +6 -7
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +1 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/more-button.js +3 -3
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +3 -4
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/Toolbar.js +1 -1
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +4 -3
- package/dist/cjs/plugins/type-ahead/ui/AssistiveText.js +3 -1
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/cjs/ui/styles.js +9 -25
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +1 -1
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +2 -1
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +1 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +1 -1
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/es2019/plugins/text-formatting/commands/clear-formatting.js +1 -1
- package/dist/es2019/plugins/text-formatting/index.js +1 -1
- package/dist/es2019/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +1 -1
- package/dist/es2019/plugins/text-formatting/pm-plugins/clear-formatting.js +2 -2
- package/dist/es2019/plugins/text-formatting/pm-plugins/input-rule.js +1 -2
- package/dist/es2019/plugins/text-formatting/pm-plugins/keymap.js +2 -2
- package/dist/es2019/plugins/text-formatting/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/constants.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +3 -3
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +2 -3
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/more-button.js +2 -2
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +2 -2
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/Toolbar.js +1 -1
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +2 -1
- package/dist/es2019/plugins/type-ahead/ui/AssistiveText.js +3 -1
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/es2019/ui/styles.js +3 -45
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +1 -1
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +2 -1
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +1 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +1 -1
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/esm/plugins/text-formatting/commands/clear-formatting.js +1 -1
- package/dist/esm/plugins/text-formatting/index.js +1 -1
- package/dist/esm/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +1 -1
- package/dist/esm/plugins/text-formatting/pm-plugins/clear-formatting.js +2 -2
- package/dist/esm/plugins/text-formatting/pm-plugins/input-rule.js +1 -2
- package/dist/esm/plugins/text-formatting/pm-plugins/keymap.js +2 -2
- package/dist/esm/plugins/text-formatting/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/constants.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +3 -3
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +2 -3
- package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/more-button.js +2 -2
- package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +2 -2
- package/dist/esm/plugins/toolbar-lists-indentation/ui/Toolbar.js +1 -1
- package/dist/esm/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +2 -1
- package/dist/esm/plugins/type-ahead/ui/AssistiveText.js +3 -1
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +1 -1
- package/dist/esm/ui/styles.js +7 -18
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/plugins/alignment/ui/ToolbarAlignment/index.d.ts +2 -2
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/blocktype-button.d.ts +2 -2
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +5 -5
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +2 -2
- package/dist/types/plugins/text-color/ui/ToolbarTextColor/index.d.ts +5 -5
- package/dist/types/plugins/text-formatting/commands/clear-formatting.d.ts +2 -2
- package/dist/types/plugins/text-formatting/commands/text-formatting.d.ts +3 -2
- package/dist/types/plugins/text-formatting/commands/transform-to-code.d.ts +1 -1
- package/dist/types/plugins/text-formatting/index.d.ts +1 -1
- package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting-keymap.d.ts +2 -2
- package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +3 -3
- package/dist/types/plugins/text-formatting/pm-plugins/input-rule.d.ts +3 -3
- package/dist/types/plugins/text-formatting/pm-plugins/keymap.d.ts +3 -3
- package/dist/types/plugins/text-formatting/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/constants.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/dropdown-menu.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/index.d.ts +5 -5
- package/dist/types/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/types.d.ts +5 -5
- package/dist/{types-ts4.5 → types/plugins/text-formatting}/utils/cell-selection.d.ts +2 -2
- package/dist/types/plugins/text-formatting/utils.d.ts +3 -3
- package/dist/types/plugins/toolbar-lists-indentation/ui/Toolbar.d.ts +1 -1
- package/dist/types/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +1 -1
- package/dist/types/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +3 -3
- package/dist/types/ui/styles.d.ts +0 -4
- package/dist/types/utils/commands.d.ts +3 -3
- package/dist/types/utils/index.d.ts +3 -3
- package/dist/types/utils/input-rules.d.ts +3 -3
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/block-type/ui/ToolbarBlockType/blocktype-button.d.ts +2 -2
- package/dist/types-ts4.5/plugins/block-type/ui/ToolbarBlockType/index.d.ts +5 -5
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/index.d.ts +5 -5
- package/dist/types-ts4.5/plugins/text-formatting/commands/clear-formatting.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/commands/text-formatting.d.ts +3 -2
- package/dist/types-ts4.5/plugins/text-formatting/commands/transform-to-code.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/clear-formatting-keymap.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +3 -3
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/input-rule.d.ts +3 -3
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/keymap.d.ts +3 -3
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/constants.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/dropdown-menu.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/index.d.ts +5 -5
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/types.d.ts +5 -5
- package/dist/{types → types-ts4.5/plugins/text-formatting}/utils/cell-selection.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/utils.d.ts +3 -3
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/Toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +1 -1
- package/dist/types-ts4.5/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/styles.d.ts +0 -4
- package/dist/types-ts4.5/utils/commands.d.ts +3 -3
- package/dist/types-ts4.5/utils/index.d.ts +3 -3
- package/dist/types-ts4.5/utils/input-rules.d.ts +3 -3
- package/package.json +2 -2
- package/report.api.md +14 -14
- package/tmp/api-report-tmp.d.ts +14 -14
- /package/dist/cjs/{utils → plugins/text-formatting/utils}/cell-selection.js +0 -0
- /package/dist/es2019/{utils → plugins/text-formatting/utils}/cell-selection.js +0 -0
- /package/dist/esm/{utils → plugins/text-formatting/utils}/cell-selection.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { EditorView } from 'prosemirror-view';
|
|
5
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
import { DispatchAnalyticsEvent } from '../../../analytics';
|
|
7
|
-
import { TextColorPluginState } from '../../pm-plugins/main';
|
|
8
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EditorView } from 'prosemirror-view';
|
|
5
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { DispatchAnalyticsEvent } from '../../../analytics';
|
|
7
|
+
import type { TextColorPluginState } from '../../pm-plugins/main';
|
|
8
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
9
|
export declare const messages: {
|
|
10
10
|
textColor: {
|
|
11
11
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Command } from '
|
|
2
|
-
import { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
export declare const FORMATTING_NODE_TYPES: string[];
|
|
4
4
|
export declare const FORMATTING_MARK_TYPES: string[];
|
|
5
5
|
export declare function clearFormattingWithAnalytics(inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): Command;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Command } from '
|
|
2
|
-
import {
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
export declare const moveRight: () => Command;
|
|
4
5
|
export declare const moveLeft: () => Command;
|
|
5
6
|
export type InputMethodToolbar = INPUT_METHOD.TOOLBAR;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Transaction } from 'prosemirror-state';
|
|
1
|
+
import type { Transaction } from 'prosemirror-state';
|
|
2
2
|
export declare const transformSmartCharsMentionsAndEmojis: (from: number, to: number, tr: Transaction) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { TextFormattingOptions } from './types';
|
|
2
|
+
import type { TextFormattingOptions } from './types';
|
|
3
3
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
declare const textFormatting: NextEditorPlugin<'textFormatting', {
|
|
5
5
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
export declare function keymapPlugin(editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
4
4
|
export default keymapPlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as safePlugin from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
|
-
import { Dispatch } from '
|
|
3
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
export interface ClearFormattingState {
|
|
5
5
|
formattingIsPresent?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const pluginKey: PluginKey<ClearFormattingState>;
|
|
8
|
-
export declare const plugin: (dispatch: Dispatch) => SafePlugin<ClearFormattingState>;
|
|
8
|
+
export declare const plugin: (dispatch: Dispatch) => safePlugin.SafePlugin<ClearFormattingState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Schema } from 'prosemirror-model';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Schema } from 'prosemirror-model';
|
|
2
|
+
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
4
|
declare enum ValidAutoformatChars {
|
|
5
5
|
STRONG = "__",
|
|
6
6
|
STRIKE = "~~",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from 'prosemirror-model';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { Schema } from 'prosemirror-model';
|
|
2
|
+
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
export default function keymapPlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { Dispatch } from '
|
|
3
|
-
import { TextFormattingState } from '../types';
|
|
2
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
+
import type { TextFormattingState } from '../types';
|
|
4
4
|
import { pluginKey } from './plugin-key';
|
|
5
5
|
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
export { pluginKey };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FeatureFlags } from '../../../types/feature-flags';
|
|
1
|
+
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
2
2
|
declare const _default: (featureFlags: FeatureFlags) => import("@atlaskit/editor-common/safe-plugin").SafePlugin<any>;
|
|
3
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToolbarSize } from '
|
|
1
|
+
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { IconTypes } from './types';
|
|
3
3
|
export declare const DefaultButtonsToolbar: IconTypes[];
|
|
4
4
|
export declare const DefaultButtonsMenu: IconTypes[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
import { MenuIconItem } from './types';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { MenuIconItem } from './types';
|
|
4
4
|
type DropdownMenuProps = {
|
|
5
5
|
editorView: EditorView;
|
|
6
6
|
isReducedSpacing: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IconHookProps, MenuIconItem } from '../types';
|
|
2
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { IconHookProps, MenuIconItem } from '../types';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
interface ClearIconHookProps extends IconHookProps {
|
|
4
4
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ToolbarSize } from '
|
|
2
|
-
import { MenuIconItem } from '../types';
|
|
1
|
+
import type { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { MenuIconItem } from '../types';
|
|
3
3
|
export declare const useResponsiveIconTypeButtons: ({ toolbarSize, responsivenessEnabled, }: {
|
|
4
4
|
toolbarSize: ToolbarSize;
|
|
5
5
|
responsivenessEnabled: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
|
-
import { EditorState } from 'prosemirror-state';
|
|
5
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
import { ToolbarSize } from '
|
|
7
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import type { EditorView } from 'prosemirror-view';
|
|
4
|
+
import type { EditorState } from 'prosemirror-state';
|
|
5
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
export type ToolbarFormattingProps = {
|
|
9
9
|
editorView: EditorView;
|
|
10
10
|
isToolbarDisabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
|
-
import { MenuIconItem } from './types';
|
|
3
|
+
import type { EditorView } from 'prosemirror-view';
|
|
4
|
+
import type { MenuIconItem } from './types';
|
|
5
5
|
export declare const SingleToolbarButtons: React.FC<{
|
|
6
6
|
items: MenuIconItem[];
|
|
7
7
|
isReducedSpacing: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { Command } from '
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import type { EditorState } from 'prosemirror-state';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
7
7
|
export declare enum IconTypes {
|
|
8
8
|
strong = "strong",
|
|
9
9
|
em = "em",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
2
|
-
import { Node } from 'prosemirror-model';
|
|
1
|
+
import type { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
2
|
+
import type { Node } from 'prosemirror-model';
|
|
3
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,6 +1,6 @@
|
|
|
1
|
-
import { MarkType, Mark as PMMark, Mark } from 'prosemirror-model';
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
|
-
import { MenuIconItem } from './ui/Toolbar/types';
|
|
1
|
+
import type { MarkType, Mark as PMMark, Mark } from 'prosemirror-model';
|
|
2
|
+
import type { EditorState } from 'prosemirror-state';
|
|
3
|
+
import type { MenuIconItem } from './ui/Toolbar/types';
|
|
4
4
|
export declare const hasCode: (state: EditorState, pos: number) => boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Determine if a mark (with specific attribute values) exists anywhere in the selection.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { ToolbarProps } from '../types';
|
|
3
|
+
import type { ToolbarProps } from '../types';
|
|
4
4
|
export type DropdownProps = ToolbarProps & {
|
|
5
5
|
popupsMountPoint?: HTMLElement;
|
|
6
6
|
popupsBoundariesElement?: HTMLElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import { EditorView } from 'prosemirror-view';
|
|
6
|
-
import { HistoryPluginState } from '../../../history/types';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
import type { EditorView } from 'prosemirror-view';
|
|
6
|
+
import type { HistoryPluginState } from '../../../history/types';
|
|
7
7
|
export interface Props {
|
|
8
8
|
undoDisabled?: boolean;
|
|
9
9
|
redoDisabled?: boolean;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
2
2
|
export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
3
|
-
export declare const buttonGroupStyle: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const separatorStyles: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
|
|
6
3
|
export declare const wrapperSmallStyle: import("@emotion/react").SerializedStyles;
|
|
7
4
|
export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const triggerWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
9
5
|
export declare const buttonContentStyle: import("@emotion/react").SerializedStyles;
|
|
10
6
|
export declare const buttonContentReducedSpacingStyle: import("@emotion/react").SerializedStyles;
|
|
11
7
|
export declare const clickSelectWrapperStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
import { ResolvedPos, MarkType, Mark, Node as PMNode, Fragment } from 'prosemirror-model';
|
|
1
|
+
import type { EditorState, Transaction } from 'prosemirror-state';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { ResolvedPos, MarkType, Mark, Node as PMNode, Fragment } from 'prosemirror-model';
|
|
4
4
|
import type { Command, HigherOrderCommand } from '@atlaskit/editor-common/types';
|
|
5
5
|
declare const isEmptySelectionAtStart: (state: EditorState) => boolean;
|
|
6
6
|
declare const isEmptySelectionAtEnd: (state: EditorState) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MarkType, Node, ResolvedPos, Schema, Slice } from 'prosemirror-model';
|
|
2
|
-
import { EditorState, Selection } from 'prosemirror-state';
|
|
3
|
-
import { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer';
|
|
1
|
+
import type { MarkType, Node, ResolvedPos, Schema, Slice } from 'prosemirror-model';
|
|
2
|
+
import type { EditorState, Selection } from 'prosemirror-state';
|
|
3
|
+
import type { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer';
|
|
4
4
|
export { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
5
5
|
export { hasVisibleContent, isNodeEmpty, findFarthestParentNode, isSelectionEndOfParagraph, nodesBetweenChanged, getNodesCount, } from './document';
|
|
6
6
|
export { sanitiseMarksInSelection } from './mark';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Node as PMNode, NodeType } from 'prosemirror-model';
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
|
-
import { InputRuleWrapper } from '@atlaskit/prosemirror-input-rules';
|
|
4
|
-
import { AnalyticsEventPayload } from '../plugins/analytics/types';
|
|
2
|
+
import type { EditorState } from 'prosemirror-state';
|
|
3
|
+
import type { InputRuleWrapper } from '@atlaskit/prosemirror-input-rules';
|
|
4
|
+
import type { AnalyticsEventPayload } from '../plugins/analytics/types';
|
|
5
5
|
import { JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
type GetPayload = AnalyticsEventPayload | ((state: EditorState, matchResult: RegExpExecArray) => AnalyticsEventPayload);
|
|
7
7
|
export declare const ruleWithAnalytics: (getPayload: GetPayload) => (originalRule: InputRuleWrapper) => InputRuleWrapper;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import { AlignmentPluginState, AlignmentState } from '../../pm-plugins/types';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
import type { AlignmentPluginState, AlignmentState } from '../../pm-plugins/types';
|
|
6
6
|
export interface State {
|
|
7
7
|
isOpen: boolean;
|
|
8
8
|
isOpenedByKeyboard: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { MessageDescriptor } from '../../../../types/i18n';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { MessageDescriptor } from '../../../../types/i18n';
|
|
5
5
|
export interface BlockTypeButtonProps {
|
|
6
6
|
isSmall?: boolean;
|
|
7
7
|
isReducedSpacing?: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { BlockTypeState } from '../../pm-plugins/main';
|
|
5
|
-
import { BlockType } from '../../types';
|
|
6
|
-
import { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
7
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { BlockTypeState } from '../../pm-plugins/main';
|
|
5
|
+
import type { BlockType } from '../../types';
|
|
6
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
7
|
+
import type { EditorView } from 'prosemirror-view';
|
|
8
8
|
export type DropdownItem = MenuItem & {
|
|
9
9
|
value: BlockType;
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import { Props, State } from './types';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
import type { Props, State } from './types';
|
|
6
6
|
export declare class ToolbarInsertBlock extends React.PureComponent<Props & WrappedComponentProps, State> {
|
|
7
7
|
private dropdownButtonRef?;
|
|
8
8
|
private emojiButtonRef?;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { EditorView } from 'prosemirror-view';
|
|
5
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
import { DispatchAnalyticsEvent } from '../../../analytics';
|
|
7
|
-
import { TextColorPluginState } from '../../pm-plugins/main';
|
|
8
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EditorView } from 'prosemirror-view';
|
|
5
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { DispatchAnalyticsEvent } from '../../../analytics';
|
|
7
|
+
import type { TextColorPluginState } from '../../pm-plugins/main';
|
|
8
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
9
|
export declare const messages: {
|
|
10
10
|
textColor: {
|
|
11
11
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Command } from '
|
|
2
|
-
import { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
export declare const FORMATTING_NODE_TYPES: string[];
|
|
4
4
|
export declare const FORMATTING_MARK_TYPES: string[];
|
|
5
5
|
export declare function clearFormattingWithAnalytics(inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): Command;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Command } from '
|
|
2
|
-
import {
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
export declare const moveRight: () => Command;
|
|
4
5
|
export declare const moveLeft: () => Command;
|
|
5
6
|
export type InputMethodToolbar = INPUT_METHOD.TOOLBAR;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Transaction } from 'prosemirror-state';
|
|
1
|
+
import type { Transaction } from 'prosemirror-state';
|
|
2
2
|
export declare const transformSmartCharsMentionsAndEmojis: (from: number, to: number, tr: Transaction) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { TextFormattingOptions } from './types';
|
|
2
|
+
import type { TextFormattingOptions } from './types';
|
|
3
3
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
declare const textFormatting: NextEditorPlugin<'textFormatting', {
|
|
5
5
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
export declare function keymapPlugin(editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
4
4
|
export default keymapPlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as safePlugin from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
|
-
import { Dispatch } from '
|
|
3
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
export interface ClearFormattingState {
|
|
5
5
|
formattingIsPresent?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const pluginKey: PluginKey<ClearFormattingState>;
|
|
8
|
-
export declare const plugin: (dispatch: Dispatch) => SafePlugin<ClearFormattingState>;
|
|
8
|
+
export declare const plugin: (dispatch: Dispatch) => safePlugin.SafePlugin<ClearFormattingState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Schema } from 'prosemirror-model';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Schema } from 'prosemirror-model';
|
|
2
|
+
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
4
|
declare enum ValidAutoformatChars {
|
|
5
5
|
STRONG = "__",
|
|
6
6
|
STRIKE = "~~",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from 'prosemirror-model';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { Schema } from 'prosemirror-model';
|
|
2
|
+
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
export default function keymapPlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { Dispatch } from '
|
|
3
|
-
import { TextFormattingState } from '../types';
|
|
2
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
+
import type { TextFormattingState } from '../types';
|
|
4
4
|
import { pluginKey } from './plugin-key';
|
|
5
5
|
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
export { pluginKey };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FeatureFlags } from '../../../types/feature-flags';
|
|
1
|
+
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
2
2
|
declare const _default: (featureFlags: FeatureFlags) => import("@atlaskit/editor-common/safe-plugin").SafePlugin<any>;
|
|
3
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToolbarSize } from '
|
|
1
|
+
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { IconTypes } from './types';
|
|
3
3
|
export declare const DefaultButtonsToolbar: IconTypes[];
|
|
4
4
|
export declare const DefaultButtonsMenu: IconTypes[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
import { MenuIconItem } from './types';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { MenuIconItem } from './types';
|
|
4
4
|
type DropdownMenuProps = {
|
|
5
5
|
editorView: EditorView;
|
|
6
6
|
isReducedSpacing: boolean;
|
package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IconHookProps, MenuIconItem } from '../types';
|
|
2
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { IconHookProps, MenuIconItem } from '../types';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
interface ClearIconHookProps extends IconHookProps {
|
|
4
4
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
5
5
|
}
|
package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ToolbarSize } from '
|
|
2
|
-
import { MenuIconItem } from '../types';
|
|
1
|
+
import type { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { MenuIconItem } from '../types';
|
|
3
3
|
export declare const useResponsiveIconTypeButtons: ({ toolbarSize, responsivenessEnabled, }: {
|
|
4
4
|
toolbarSize: ToolbarSize;
|
|
5
5
|
responsivenessEnabled: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
|
-
import { EditorState } from 'prosemirror-state';
|
|
5
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
import { ToolbarSize } from '
|
|
7
|
-
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import type { EditorView } from 'prosemirror-view';
|
|
4
|
+
import type { EditorState } from 'prosemirror-state';
|
|
5
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
export type ToolbarFormattingProps = {
|
|
9
9
|
editorView: EditorView;
|
|
10
10
|
isToolbarDisabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
|
-
import { MenuIconItem } from './types';
|
|
3
|
+
import type { EditorView } from 'prosemirror-view';
|
|
4
|
+
import type { MenuIconItem } from './types';
|
|
5
5
|
export declare const SingleToolbarButtons: React.FC<{
|
|
6
6
|
items: MenuIconItem[];
|
|
7
7
|
isReducedSpacing: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { Command } from '
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import type { EditorState } from 'prosemirror-state';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { TOOLBAR_ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
7
7
|
export declare enum IconTypes {
|
|
8
8
|
strong = "strong",
|
|
9
9
|
em = "em",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
2
|
-
import { Node } from 'prosemirror-model';
|
|
1
|
+
import type { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
2
|
+
import type { Node } from 'prosemirror-model';
|
|
3
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,6 +1,6 @@
|
|
|
1
|
-
import { MarkType, Mark as PMMark, Mark } from 'prosemirror-model';
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
|
-
import { MenuIconItem } from './ui/Toolbar/types';
|
|
1
|
+
import type { MarkType, Mark as PMMark, Mark } from 'prosemirror-model';
|
|
2
|
+
import type { EditorState } from 'prosemirror-state';
|
|
3
|
+
import type { MenuIconItem } from './ui/Toolbar/types';
|
|
4
4
|
export declare const hasCode: (state: EditorState, pos: number) => boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Determine if a mark (with specific attribute values) exists anywhere in the selection.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { ToolbarProps } from '../types';
|
|
3
|
+
import type { ToolbarProps } from '../types';
|
|
4
4
|
export type DropdownProps = ToolbarProps & {
|
|
5
5
|
popupsMountPoint?: HTMLElement;
|
|
6
6
|
popupsBoundariesElement?: HTMLElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import { EditorView } from 'prosemirror-view';
|
|
6
|
-
import { HistoryPluginState } from '../../../history/types';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
import type { EditorView } from 'prosemirror-view';
|
|
6
|
+
import type { HistoryPluginState } from '../../../history/types';
|
|
7
7
|
export interface Props {
|
|
8
8
|
undoDisabled?: boolean;
|
|
9
9
|
redoDisabled?: boolean;
|