@atlaskit/editor-plugin-toolbar-lists-indentation 12.1.12 → 12.1.14
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 +12 -0
- package/package.json +2 -2
- package/toolbar-lists-indentation-plugin/package.json +1 -8
- package/toolbar-lists-indentation-plugin-type/package.json +1 -8
- package/dist/types-ts4.5/entry-points/toolbar-lists-indentation-plugin-type.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-lists-indentation-plugin.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/indentation-buttons.d.ts +0 -19
- package/dist/types-ts4.5/toolbarListsIndentationPlugin.d.ts +0 -16
- package/dist/types-ts4.5/toolbarListsIndentationPluginType.d.ts +0 -32
- package/dist/types-ts4.5/types/index.d.ts +0 -28
- package/dist/types-ts4.5/ui/FloatingToolbarComponent.d.ts +0 -13
- package/dist/types-ts4.5/ui/Toolbar.d.ts +0 -2
- package/dist/types-ts4.5/ui/ToolbarDropdown.d.ts +0 -8
- package/dist/types-ts4.5/ui/index.d.ts +0 -26
- package/dist/types-ts4.5/ui/onItemActivated.d.ts +0 -10
- package/dist/types-ts4.5/ui/toolbar-components/BulletedListButton.d.ts +0 -10
- package/dist/types-ts4.5/ui/toolbar-components/BulletedListButtonGroup.d.ts +0 -4
- package/dist/types-ts4.5/ui/toolbar-components/BulletedListMenuItem.d.ts +0 -17
- package/dist/types-ts4.5/ui/toolbar-components/IndentMenuItem.d.ts +0 -12
- package/dist/types-ts4.5/ui/toolbar-components/ListsIndentationGroupForInlineToolbar.d.ts +0 -2
- package/dist/types-ts4.5/ui/toolbar-components/ListsIndentationGroupForPrimaryToolbar.d.ts +0 -2
- package/dist/types-ts4.5/ui/toolbar-components/ListsIndentationHeroButton.d.ts +0 -12
- package/dist/types-ts4.5/ui/toolbar-components/ListsIndentationHeroButtonGroup.d.ts +0 -4
- package/dist/types-ts4.5/ui/toolbar-components/ListsIndentationMenu.d.ts +0 -10
- package/dist/types-ts4.5/ui/toolbar-components/ListsIndentationMenuGroup.d.ts +0 -4
- package/dist/types-ts4.5/ui/toolbar-components/MenuSection.d.ts +0 -7
- package/dist/types-ts4.5/ui/toolbar-components/NumberedListMenuItem.d.ts +0 -10
- package/dist/types-ts4.5/ui/toolbar-components/OutdentMenuItem.d.ts +0 -12
- package/dist/types-ts4.5/ui/toolbar-components/TaskListMenuItem.d.ts +0 -10
- package/dist/types-ts4.5/ui/toolbar-components.d.ts +0 -10
- package/dist/types-ts4.5/ui/utils/hooks.d.ts +0 -11
- package/dist/types-ts4.5/ui/utils/input-method.d.ts +0 -3
- package/dist/types-ts4.5/ui/utils/markdown-compatible-toolbar.d.ts +0 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.14",
|
|
4
4
|
"description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
46
46
|
"@atlaskit/icon": "^35.4.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^103.0.0",
|
|
49
49
|
"@atlaskit/tokens": "^13.4.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0"
|
|
51
51
|
},
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/toolbar-lists-indentation-plugin.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/toolbar-lists-indentation-plugin.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/toolbar-lists-indentation-plugin.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/toolbar-lists-indentation-plugin-type.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/toolbar-lists-indentation-plugin-type.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/toolbar-lists-indentation-plugin-type.d.ts"
|
|
17
10
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ToolbarListsIndentationPlugin, ToolbarListsIndentationPluginOptions, ToolbarListsIndentationPluginDependencies, } from '../toolbarListsIndentationPluginType';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { toolbarListsIndentationPlugin } from '../toolbarListsIndentationPlugin';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export type IndentationButtonNode = null | 'paragraph_heading' | 'list' | 'taskList';
|
|
3
|
-
export interface IndentationButtons {
|
|
4
|
-
indentDisabled: boolean;
|
|
5
|
-
node: IndentationButtonNode;
|
|
6
|
-
outdentDisabled: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface TaskDecisionState {
|
|
9
|
-
indentDisabled: boolean;
|
|
10
|
-
isInsideTask: boolean;
|
|
11
|
-
outdentDisabled: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface IndentationState {
|
|
14
|
-
indentDisabled?: boolean;
|
|
15
|
-
isIndentationAllowed?: boolean;
|
|
16
|
-
outdentDisabled?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare function getIndentationButtonsState(editorState: EditorState, allowHeadingAndParagraphIndentation: boolean, taskDecisionState: TaskDecisionState | undefined, indentationState: IndentationState | undefined, isInsideListItem: ((tr: Transaction) => boolean | undefined) | undefined): IndentationButtons;
|
|
19
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI, FeatureFlags, ToolbarUiComponentFactoryParams } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from './toolbarListsIndentationPluginType';
|
|
5
|
-
export declare const toolbarListsIndentationPlugin: ToolbarListsIndentationPlugin;
|
|
6
|
-
type PrimaryToolbarComponentProps = Pick<ToolbarUiComponentFactoryParams, 'editorView' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'disabled' | 'isToolbarReducedSpacing'> & {
|
|
7
|
-
allowHeadingAndParagraphIndentation: boolean;
|
|
8
|
-
featureFlags: FeatureFlags;
|
|
9
|
-
isSmall: boolean;
|
|
10
|
-
pluginInjectionApi: ExtractInjectionAPI<typeof toolbarListsIndentationPlugin> | undefined;
|
|
11
|
-
showIndentationButtons?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare function PrimaryToolbarComponent({ featureFlags, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isSmall, isToolbarReducedSpacing, disabled, editorView, showIndentationButtons, pluginInjectionApi, allowHeadingAndParagraphIndentation, }: PrimaryToolbarComponentProps & {
|
|
14
|
-
editorView: EditorView;
|
|
15
|
-
}): React.JSX.Element | null;
|
|
16
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { _MarkdownModePluginStub, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
-
import type { IndentationPlugin } from '@atlaskit/editor-plugin-indentation';
|
|
5
|
-
import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
|
|
6
|
-
import type { ListPlugin } from '@atlaskit/editor-plugin-list';
|
|
7
|
-
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
8
|
-
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
9
|
-
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
10
|
-
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
11
|
-
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
12
|
-
export type ToolbarListsIndentationPluginOptions = {
|
|
13
|
-
allowHeadingAndParagraphIndentation: boolean;
|
|
14
|
-
showIndentationButtons: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type ToolbarListsIndentationPluginDependencies = [
|
|
17
|
-
OptionalPlugin<_MarkdownModePluginStub>,
|
|
18
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
19
|
-
ListPlugin,
|
|
20
|
-
OptionalPlugin<IndentationPlugin>,
|
|
21
|
-
OptionalPlugin<TasksAndDecisionsPlugin>,
|
|
22
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
23
|
-
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
24
|
-
OptionalPlugin<SelectionToolbarPlugin>,
|
|
25
|
-
OptionalPlugin<UserPreferencesPlugin>,
|
|
26
|
-
OptionalPlugin<ToolbarPlugin>,
|
|
27
|
-
OptionalPlugin<InteractionPlugin>
|
|
28
|
-
];
|
|
29
|
-
export type ToolbarListsIndentationPlugin = NextEditorPlugin<'toolbarListsIndentation', {
|
|
30
|
-
dependencies: ToolbarListsIndentationPluginDependencies;
|
|
31
|
-
pluginConfiguration: ToolbarListsIndentationPluginOptions;
|
|
32
|
-
}>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
|
|
5
|
-
import type { onItemActivated } from '../ui/onItemActivated';
|
|
6
|
-
export type ButtonName = 'bullet_list' | 'ordered_list' | 'indent' | 'outdent';
|
|
7
|
-
export declare enum ToolbarType {
|
|
8
|
-
PRIMARY = "primaryToolbar",
|
|
9
|
-
FLOATING = "floatingToolbar"
|
|
10
|
-
}
|
|
11
|
-
export type ListsIndentationInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
|
|
12
|
-
export interface ToolbarProps {
|
|
13
|
-
bulletListActive?: boolean;
|
|
14
|
-
bulletListDisabled?: boolean;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
editorView: EditorView;
|
|
17
|
-
featureFlags: FeatureFlags;
|
|
18
|
-
indentDisabled?: boolean;
|
|
19
|
-
isReducedSpacing?: boolean;
|
|
20
|
-
isSeparator?: boolean;
|
|
21
|
-
isSmall?: boolean;
|
|
22
|
-
onItemActivated: ReturnType<typeof onItemActivated>;
|
|
23
|
-
orderedListActive?: boolean;
|
|
24
|
-
orderedListDisabled?: boolean;
|
|
25
|
-
outdentDisabled?: boolean;
|
|
26
|
-
pluginInjectionApi?: ExtractInjectionAPI<ToolbarListsIndentationPlugin> | undefined;
|
|
27
|
-
showIndentationButtons?: boolean;
|
|
28
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
|
|
5
|
-
type FloatingToolbarComponentProps = {
|
|
6
|
-
allowHeadingAndParagraphIndentation: boolean;
|
|
7
|
-
editorView: EditorView;
|
|
8
|
-
featureFlags: FeatureFlags;
|
|
9
|
-
pluginInjectionApi?: ExtractInjectionAPI<ToolbarListsIndentationPlugin> | undefined;
|
|
10
|
-
showIndentationButtons?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare function FloatingToolbarComponent({ featureFlags, editorView, showIndentationButtons, pluginInjectionApi, allowHeadingAndParagraphIndentation, }: FloatingToolbarComponentProps): React.JSX.Element | null;
|
|
13
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ToolbarProps, ToolbarType } from '../types';
|
|
2
|
-
export type DropdownProps = ToolbarProps & {
|
|
3
|
-
popupsBoundariesElement?: HTMLElement;
|
|
4
|
-
popupsMountPoint?: HTMLElement;
|
|
5
|
-
popupsScrollableElement?: HTMLElement;
|
|
6
|
-
toolbarType: ToolbarType;
|
|
7
|
-
};
|
|
8
|
-
export declare function ToolbarDropdown(props: DropdownProps): JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
|
|
5
|
-
import { ToolbarType } from '../types';
|
|
6
|
-
export interface Props {
|
|
7
|
-
bulletListActive?: boolean;
|
|
8
|
-
bulletListDisabled?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
editorView: EditorView;
|
|
11
|
-
featureFlags: FeatureFlags;
|
|
12
|
-
indentationStateNode?: IndentationButtonNode;
|
|
13
|
-
indentDisabled?: boolean;
|
|
14
|
-
isReducedSpacing?: boolean;
|
|
15
|
-
isSmall?: boolean;
|
|
16
|
-
orderedListActive?: boolean;
|
|
17
|
-
orderedListDisabled?: boolean;
|
|
18
|
-
outdentDisabled?: boolean;
|
|
19
|
-
pluginInjectionApi?: ExtractInjectionAPI<ToolbarListsIndentationPlugin> | undefined;
|
|
20
|
-
popupsBoundariesElement?: HTMLElement;
|
|
21
|
-
popupsMountPoint?: HTMLElement;
|
|
22
|
-
popupsScrollableElement?: HTMLElement;
|
|
23
|
-
showIndentationButtons?: boolean;
|
|
24
|
-
toolbarType: ToolbarType;
|
|
25
|
-
}
|
|
26
|
-
export default function ToolbarListsIndentation(props: Props): JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../index';
|
|
5
|
-
import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
|
|
6
|
-
import type { ButtonName } from '../types';
|
|
7
|
-
export declare const onItemActivated: (pluginInjectionApi: ExtractInjectionAPI<ToolbarListsIndentationPlugin> | undefined, indentationStateNode: IndentationButtonNode | undefined, inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => ({ buttonName, editorView }: {
|
|
8
|
-
buttonName: ButtonName;
|
|
9
|
-
editorView: EditorView;
|
|
10
|
-
}) => void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
5
|
-
type BulletedListType = {
|
|
6
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
7
|
-
parents: ToolbarComponentTypes;
|
|
8
|
-
};
|
|
9
|
-
export declare const BulletedListButton: ({ api, parents }: BulletedListType) => React.JSX.Element;
|
|
10
|
-
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 { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
4
|
-
export declare const getBulletedListButtonGroup: (api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>) => RegisterComponent[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
5
|
-
type BulletedListType = {
|
|
6
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
7
|
-
parents: ToolbarComponentTypes;
|
|
8
|
-
};
|
|
9
|
-
export declare const useBulletedListInfo: ({ api, parents, }: BulletedListType) => {
|
|
10
|
-
bulletMessage: string;
|
|
11
|
-
isDisabled: boolean | undefined;
|
|
12
|
-
isSelected: boolean | undefined;
|
|
13
|
-
onClick: () => void;
|
|
14
|
-
shortcut: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export declare const BulletedListMenuItem: ({ api, parents }: BulletedListType) => React.JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
5
|
-
type IndentMenuItemType = {
|
|
6
|
-
allowHeadingAndParagraphIndentation: boolean;
|
|
7
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
8
|
-
parents: ToolbarComponentTypes;
|
|
9
|
-
showIndentationButtons: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const IndentMenuItem: ({ api, showIndentationButtons, allowHeadingAndParagraphIndentation, parents, }: IndentMenuItemType) => React.JSX.Element | null;
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
5
|
-
type ListsIndentationHeroButtonProps = {
|
|
6
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
7
|
-
parents: ToolbarComponentTypes;
|
|
8
|
-
};
|
|
9
|
-
export declare const ListsIndentationHeroButtonCollapsed: ({ api, parents, }: ListsIndentationHeroButtonProps) => React.JSX.Element;
|
|
10
|
-
export declare const ListsIndentationHeroButtonNew: ({ api, parents, }: ListsIndentationHeroButtonProps) => React.JSX.Element;
|
|
11
|
-
export declare const ListsIndentationHeroButton: ({ api, parents, }: ListsIndentationHeroButtonProps) => React.JSX.Element;
|
|
12
|
-
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 { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
4
|
-
export declare const getListsIndentationHeroButton: (api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>) => RegisterComponent[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
4
|
-
type ListsIndentationMenuProps = {
|
|
5
|
-
allowHeadingAndParagraphIndentation: boolean;
|
|
6
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export declare const ListsIndentationMenu: ({ children, api, allowHeadingAndParagraphIndentation, }: ListsIndentationMenuProps) => React.JSX.Element;
|
|
10
|
-
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 { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
4
|
-
export declare const getListsIndentationMenu: (allowHeadingAndParagraphIndentation: boolean, showIndentationButtons: boolean, api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>) => RegisterComponent[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { CommonComponentProps } from '@atlaskit/editor-toolbar-model';
|
|
3
|
-
export declare const MenuSection: ({ children, title, parents, }: {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
parents: CommonComponentProps["parents"];
|
|
6
|
-
title?: string;
|
|
7
|
-
}) => React.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
5
|
-
type NumberedListMenuItemType = {
|
|
6
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
7
|
-
parents: ToolbarComponentTypes;
|
|
8
|
-
};
|
|
9
|
-
export declare const NumberedListMenuItem: ({ api, parents, }: NumberedListMenuItemType) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
5
|
-
type OutdentMenuItemType = {
|
|
6
|
-
allowHeadingAndParagraphIndentation: boolean;
|
|
7
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
8
|
-
parents: ToolbarComponentTypes;
|
|
9
|
-
showIndentationButtons: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const OutdentMenuItem: ({ api, allowHeadingAndParagraphIndentation, showIndentationButtons, parents, }: OutdentMenuItemType) => React.JSX.Element | null;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
5
|
-
type TaskListMenuItemProps = {
|
|
6
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
7
|
-
parents?: ToolbarComponentTypes;
|
|
8
|
-
};
|
|
9
|
-
export declare const TaskListMenuItem: ({ api }: TaskListMenuItemProps) => React.JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
-
import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
|
|
4
|
-
type GetToolbarComponentsProps = {
|
|
5
|
-
allowHeadingAndParagraphIndentation: boolean;
|
|
6
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
7
|
-
showIndentationButtons: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const getToolbarComponents: ({ api, showIndentationButtons, allowHeadingAndParagraphIndentation, }: GetToolbarComponentsProps) => RegisterComponent[];
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { EditorState } from 'prosemirror-state';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { type IndentationButtons } from '../../pm-plugins/indentation-buttons';
|
|
4
|
-
import type { ToolbarListsIndentationPlugin } from '../../toolbarListsIndentationPluginType';
|
|
5
|
-
type UseIndentationStateProps = {
|
|
6
|
-
allowHeadingAndParagraphIndentation: boolean;
|
|
7
|
-
api?: ExtractInjectionAPI<ToolbarListsIndentationPlugin>;
|
|
8
|
-
state?: EditorState;
|
|
9
|
-
};
|
|
10
|
-
export declare const useIndentationState: ({ api, allowHeadingAndParagraphIndentation, state, }: UseIndentationStateProps) => IndentationButtons | undefined;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isMarkdownCompatibleToolbarEnabled: () => boolean;
|