@atlaskit/editor-core 189.4.1 → 189.4.2

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/plugins/index.js +0 -7
  3. package/dist/cjs/presets/universal.js +2 -1
  4. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +7 -3
  5. package/dist/cjs/version-wrapper.js +1 -1
  6. package/dist/es2019/plugins/index.js +0 -1
  7. package/dist/es2019/presets/universal.js +2 -1
  8. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +7 -3
  9. package/dist/es2019/version-wrapper.js +1 -1
  10. package/dist/esm/plugins/index.js +0 -1
  11. package/dist/esm/presets/universal.js +2 -1
  12. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +7 -3
  13. package/dist/esm/version-wrapper.js +1 -1
  14. package/dist/types/plugins/index.d.ts +0 -1
  15. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  16. package/package.json +10 -5
  17. package/dist/cjs/plugins/toolbar-lists-indentation/index.js +0 -91
  18. package/dist/cjs/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.js +0 -56
  19. package/dist/cjs/plugins/toolbar-lists-indentation/types.js +0 -5
  20. package/dist/cjs/plugins/toolbar-lists-indentation/ui/Toolbar.js +0 -135
  21. package/dist/cjs/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +0 -168
  22. package/dist/cjs/plugins/toolbar-lists-indentation/ui/index.js +0 -63
  23. package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +0 -53
  24. package/dist/es2019/plugins/toolbar-lists-indentation/index.js +0 -86
  25. package/dist/es2019/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.js +0 -53
  26. package/dist/es2019/plugins/toolbar-lists-indentation/types.js +0 -1
  27. package/dist/es2019/plugins/toolbar-lists-indentation/ui/Toolbar.js +0 -123
  28. package/dist/es2019/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +0 -158
  29. package/dist/es2019/plugins/toolbar-lists-indentation/ui/index.js +0 -58
  30. package/dist/es2019/plugins/toolbar-lists-indentation/ui/onItemActivated.js +0 -46
  31. package/dist/esm/plugins/toolbar-lists-indentation/index.js +0 -83
  32. package/dist/esm/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.js +0 -50
  33. package/dist/esm/plugins/toolbar-lists-indentation/types.js +0 -1
  34. package/dist/esm/plugins/toolbar-lists-indentation/ui/Toolbar.js +0 -124
  35. package/dist/esm/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +0 -161
  36. package/dist/esm/plugins/toolbar-lists-indentation/ui/index.js +0 -56
  37. package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +0 -47
  38. package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +0 -33
  39. package/dist/types/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.d.ts +0 -19
  40. package/dist/types/plugins/toolbar-lists-indentation/types.d.ts +0 -20
  41. package/dist/types/plugins/toolbar-lists-indentation/ui/Toolbar.d.ts +0 -4
  42. package/dist/types/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +0 -9
  43. package/dist/types/plugins/toolbar-lists-indentation/ui/index.d.ts +0 -26
  44. package/dist/types/plugins/toolbar-lists-indentation/ui/onItemActivated.d.ts +0 -9
  45. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +0 -33
  46. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.d.ts +0 -19
  47. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/types.d.ts +0 -20
  48. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/Toolbar.d.ts +0 -4
  49. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +0 -9
  50. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/index.d.ts +0 -26
  51. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/onItemActivated.d.ts +0 -9
@@ -1,56 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import { onItemActivated } from './onItemActivated';
4
- import { ToolbarDropdown } from './ToolbarDropdown';
5
- import { Toolbar } from './Toolbar';
6
- export default function ToolbarListsIndentation(props) {
7
- var disabled = props.disabled,
8
- isSmall = props.isSmall,
9
- isReducedSpacing = props.isReducedSpacing,
10
- bulletListActive = props.bulletListActive,
11
- bulletListDisabled = props.bulletListDisabled,
12
- orderedListActive = props.orderedListActive,
13
- orderedListDisabled = props.orderedListDisabled,
14
- showIndentationButtons = props.showIndentationButtons,
15
- popupsMountPoint = props.popupsMountPoint,
16
- popupsBoundariesElement = props.popupsBoundariesElement,
17
- popupsScrollableElement = props.popupsScrollableElement,
18
- indentDisabled = props.indentDisabled,
19
- outdentDisabled = props.outdentDisabled,
20
- indentationStateNode = props.indentationStateNode,
21
- featureFlags = props.featureFlags,
22
- pluginInjectionApi = props.pluginInjectionApi;
23
- if (isSmall) {
24
- return jsx(ToolbarDropdown, {
25
- editorView: props.editorView,
26
- isReducedSpacing: isReducedSpacing,
27
- popupsMountPoint: popupsMountPoint,
28
- popupsBoundariesElement: popupsBoundariesElement,
29
- popupsScrollableElement: popupsScrollableElement,
30
- bulletListActive: bulletListActive,
31
- bulletListDisabled: bulletListDisabled,
32
- showIndentationButtons: showIndentationButtons,
33
- orderedListActive: orderedListActive,
34
- orderedListDisabled: orderedListDisabled,
35
- indentDisabled: indentDisabled,
36
- outdentDisabled: outdentDisabled,
37
- disabled: disabled,
38
- onItemActivated: onItemActivated(pluginInjectionApi, indentationStateNode),
39
- featureFlags: featureFlags
40
- });
41
- }
42
- return jsx(Toolbar, {
43
- editorView: props.editorView,
44
- isReducedSpacing: isReducedSpacing,
45
- bulletListActive: bulletListActive,
46
- bulletListDisabled: bulletListDisabled,
47
- showIndentationButtons: showIndentationButtons,
48
- orderedListActive: orderedListActive,
49
- orderedListDisabled: orderedListDisabled,
50
- indentDisabled: indentDisabled,
51
- outdentDisabled: outdentDisabled,
52
- disabled: disabled,
53
- onItemActivated: onItemActivated(pluginInjectionApi, indentationStateNode),
54
- featureFlags: featureFlags
55
- });
56
- }
@@ -1,47 +0,0 @@
1
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- export var onItemActivated = function onItemActivated(pluginInjectionApi, indentationStateNode) {
3
- return function (_ref) {
4
- var buttonName = _ref.buttonName,
5
- editorView = _ref.editorView;
6
- switch (buttonName) {
7
- case 'bullet_list':
8
- pluginInjectionApi === null || pluginInjectionApi === void 0 || pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.commands.toggleBulletList(INPUT_METHOD.TOOLBAR));
9
- break;
10
- case 'ordered_list':
11
- pluginInjectionApi === null || pluginInjectionApi === void 0 || pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.commands.toggleOrderedList(INPUT_METHOD.TOOLBAR));
12
- break;
13
- case 'indent':
14
- {
15
- var node = indentationStateNode;
16
- if (node === 'paragraph_heading') {
17
- var _pluginInjectionApi$i;
18
- pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$i = pluginInjectionApi.indentation) === null || _pluginInjectionApi$i === void 0 || _pluginInjectionApi$i.actions.indentParagraphOrHeading(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
19
- }
20
- if (node === 'list') {
21
- pluginInjectionApi === null || pluginInjectionApi === void 0 || pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.commands.indentList(INPUT_METHOD.TOOLBAR));
22
- }
23
- if (node === 'taskList') {
24
- var _pluginInjectionApi$t;
25
- pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t = pluginInjectionApi.taskDecision) === null || _pluginInjectionApi$t === void 0 || _pluginInjectionApi$t.actions.indentTaskList(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
26
- }
27
- break;
28
- }
29
- case 'outdent':
30
- {
31
- var _node = indentationStateNode;
32
- if (_node === 'paragraph_heading') {
33
- var _pluginInjectionApi$i2;
34
- pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$i2 = pluginInjectionApi.indentation) === null || _pluginInjectionApi$i2 === void 0 || _pluginInjectionApi$i2.actions.outdentParagraphOrHeading(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
35
- }
36
- if (_node === 'list') {
37
- pluginInjectionApi === null || pluginInjectionApi === void 0 || pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.commands.outdentList(INPUT_METHOD.TOOLBAR));
38
- }
39
- if (_node === 'taskList') {
40
- var _pluginInjectionApi$t2;
41
- pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t2 = pluginInjectionApi.taskDecision) === null || _pluginInjectionApi$t2 === void 0 || _pluginInjectionApi$t2.actions.outdentTaskList(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
42
- }
43
- break;
44
- }
45
- }
46
- };
47
- };
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- import type { FeatureFlags, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
- import type { ListPlugin } from '@atlaskit/editor-plugin-list';
6
- import type { ToolbarUiComponentFactoryParams } from '../../types';
7
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- import type { IndentationPlugin } from '@atlaskit/editor-plugin-indentation';
9
- import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
10
- type Config = {
11
- showIndentationButtons: boolean;
12
- allowHeadingAndParagraphIndentation: boolean;
13
- };
14
- type ToolbarListsIndentationPlugin = NextEditorPlugin<'toolbarListsIndentation', {
15
- pluginConfiguration: Config;
16
- dependencies: [
17
- OptionalPlugin<FeatureFlagsPlugin>,
18
- ListPlugin,
19
- OptionalPlugin<IndentationPlugin>,
20
- OptionalPlugin<TasksAndDecisionsPlugin>,
21
- OptionalPlugin<AnalyticsPlugin>
22
- ];
23
- }>;
24
- declare const toolbarListsIndentationPlugin: ToolbarListsIndentationPlugin;
25
- type PrimaryToolbarComponentProps = Pick<ToolbarUiComponentFactoryParams, 'editorView' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'disabled' | 'isToolbarReducedSpacing'> & {
26
- featureFlags: FeatureFlags;
27
- isSmall: boolean;
28
- showIndentationButtons?: boolean;
29
- pluginInjectionApi: ExtractInjectionAPI<typeof toolbarListsIndentationPlugin> | undefined;
30
- allowHeadingAndParagraphIndentation: boolean;
31
- };
32
- export declare function PrimaryToolbarComponent({ featureFlags, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isSmall, isToolbarReducedSpacing, disabled, editorView, showIndentationButtons, pluginInjectionApi, allowHeadingAndParagraphIndentation, }: PrimaryToolbarComponentProps): JSX.Element | null;
33
- export default 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
- outdentDisabled: boolean;
6
- node: IndentationButtonNode;
7
- }
8
- interface TaskDecisionState {
9
- isInsideTask: boolean;
10
- indentDisabled: boolean;
11
- outdentDisabled: boolean;
12
- }
13
- interface IndentationState {
14
- isIndentationAllowed: boolean;
15
- indentDisabled: 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,20 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- import type { onItemActivated } from './ui/onItemActivated';
3
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
4
- export type ButtonName = 'bullet_list' | 'ordered_list' | 'indent' | 'outdent';
5
- export interface ToolbarProps {
6
- editorView: EditorView;
7
- featureFlags: FeatureFlags;
8
- bulletListActive?: boolean;
9
- bulletListDisabled?: boolean;
10
- orderedListActive?: boolean;
11
- orderedListDisabled?: boolean;
12
- disabled?: boolean;
13
- isSmall?: boolean;
14
- isSeparator?: boolean;
15
- isReducedSpacing?: boolean;
16
- showIndentationButtons?: boolean;
17
- indentDisabled?: boolean;
18
- outdentDisabled?: boolean;
19
- onItemActivated: ReturnType<typeof onItemActivated>;
20
- }
@@ -1,4 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { ToolbarProps } from '../types';
4
- export declare function Toolbar(props: ToolbarProps): jsx.JSX.Element;
@@ -1,9 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { ToolbarProps } from '../types';
4
- export type DropdownProps = ToolbarProps & {
5
- popupsMountPoint?: HTMLElement;
6
- popupsBoundariesElement?: HTMLElement;
7
- popupsScrollableElement?: HTMLElement;
8
- };
9
- export declare function ToolbarDropdown(props: DropdownProps): jsx.JSX.Element;
@@ -1,26 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
5
- import type toolbarListsIndentationPlugin from '../index';
6
- import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
7
- export interface Props {
8
- editorView: EditorView;
9
- featureFlags: FeatureFlags;
10
- bulletListActive?: boolean;
11
- bulletListDisabled?: boolean;
12
- orderedListActive?: boolean;
13
- orderedListDisabled?: boolean;
14
- disabled?: boolean;
15
- isSmall?: boolean;
16
- isReducedSpacing?: boolean;
17
- popupsMountPoint?: HTMLElement;
18
- popupsBoundariesElement?: HTMLElement;
19
- popupsScrollableElement?: HTMLElement;
20
- showIndentationButtons?: boolean;
21
- indentDisabled?: boolean;
22
- outdentDisabled?: boolean;
23
- indentationStateNode?: IndentationButtonNode;
24
- pluginInjectionApi?: ExtractInjectionAPI<typeof toolbarListsIndentationPlugin> | undefined;
25
- }
26
- export default function ToolbarListsIndentation(props: Props): jsx.JSX.Element;
@@ -1,9 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
3
- import type { ButtonName } from '../types';
4
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
- import type toolbarListsIndentationPlugin from '../index';
6
- export declare const onItemActivated: (pluginInjectionApi: ExtractInjectionAPI<typeof toolbarListsIndentationPlugin> | undefined, indentationStateNode: IndentationButtonNode | undefined) => ({ buttonName, editorView, }: {
7
- buttonName: ButtonName;
8
- editorView: EditorView;
9
- }) => void;
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- import type { FeatureFlags, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
- import type { ListPlugin } from '@atlaskit/editor-plugin-list';
6
- import type { ToolbarUiComponentFactoryParams } from '../../types';
7
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- import type { IndentationPlugin } from '@atlaskit/editor-plugin-indentation';
9
- import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
10
- type Config = {
11
- showIndentationButtons: boolean;
12
- allowHeadingAndParagraphIndentation: boolean;
13
- };
14
- type ToolbarListsIndentationPlugin = NextEditorPlugin<'toolbarListsIndentation', {
15
- pluginConfiguration: Config;
16
- dependencies: [
17
- OptionalPlugin<FeatureFlagsPlugin>,
18
- ListPlugin,
19
- OptionalPlugin<IndentationPlugin>,
20
- OptionalPlugin<TasksAndDecisionsPlugin>,
21
- OptionalPlugin<AnalyticsPlugin>
22
- ];
23
- }>;
24
- declare const toolbarListsIndentationPlugin: ToolbarListsIndentationPlugin;
25
- type PrimaryToolbarComponentProps = Pick<ToolbarUiComponentFactoryParams, 'editorView' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'disabled' | 'isToolbarReducedSpacing'> & {
26
- featureFlags: FeatureFlags;
27
- isSmall: boolean;
28
- showIndentationButtons?: boolean;
29
- pluginInjectionApi: ExtractInjectionAPI<typeof toolbarListsIndentationPlugin> | undefined;
30
- allowHeadingAndParagraphIndentation: boolean;
31
- };
32
- export declare function PrimaryToolbarComponent({ featureFlags, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isSmall, isToolbarReducedSpacing, disabled, editorView, showIndentationButtons, pluginInjectionApi, allowHeadingAndParagraphIndentation, }: PrimaryToolbarComponentProps): JSX.Element | null;
33
- export default 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
- outdentDisabled: boolean;
6
- node: IndentationButtonNode;
7
- }
8
- interface TaskDecisionState {
9
- isInsideTask: boolean;
10
- indentDisabled: boolean;
11
- outdentDisabled: boolean;
12
- }
13
- interface IndentationState {
14
- isIndentationAllowed: boolean;
15
- indentDisabled: 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,20 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- import type { onItemActivated } from './ui/onItemActivated';
3
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
4
- export type ButtonName = 'bullet_list' | 'ordered_list' | 'indent' | 'outdent';
5
- export interface ToolbarProps {
6
- editorView: EditorView;
7
- featureFlags: FeatureFlags;
8
- bulletListActive?: boolean;
9
- bulletListDisabled?: boolean;
10
- orderedListActive?: boolean;
11
- orderedListDisabled?: boolean;
12
- disabled?: boolean;
13
- isSmall?: boolean;
14
- isSeparator?: boolean;
15
- isReducedSpacing?: boolean;
16
- showIndentationButtons?: boolean;
17
- indentDisabled?: boolean;
18
- outdentDisabled?: boolean;
19
- onItemActivated: ReturnType<typeof onItemActivated>;
20
- }
@@ -1,4 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { ToolbarProps } from '../types';
4
- export declare function Toolbar(props: ToolbarProps): jsx.JSX.Element;
@@ -1,9 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { ToolbarProps } from '../types';
4
- export type DropdownProps = ToolbarProps & {
5
- popupsMountPoint?: HTMLElement;
6
- popupsBoundariesElement?: HTMLElement;
7
- popupsScrollableElement?: HTMLElement;
8
- };
9
- export declare function ToolbarDropdown(props: DropdownProps): jsx.JSX.Element;
@@ -1,26 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
5
- import type toolbarListsIndentationPlugin from '../index';
6
- import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
7
- export interface Props {
8
- editorView: EditorView;
9
- featureFlags: FeatureFlags;
10
- bulletListActive?: boolean;
11
- bulletListDisabled?: boolean;
12
- orderedListActive?: boolean;
13
- orderedListDisabled?: boolean;
14
- disabled?: boolean;
15
- isSmall?: boolean;
16
- isReducedSpacing?: boolean;
17
- popupsMountPoint?: HTMLElement;
18
- popupsBoundariesElement?: HTMLElement;
19
- popupsScrollableElement?: HTMLElement;
20
- showIndentationButtons?: boolean;
21
- indentDisabled?: boolean;
22
- outdentDisabled?: boolean;
23
- indentationStateNode?: IndentationButtonNode;
24
- pluginInjectionApi?: ExtractInjectionAPI<typeof toolbarListsIndentationPlugin> | undefined;
25
- }
26
- export default function ToolbarListsIndentation(props: Props): jsx.JSX.Element;
@@ -1,9 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
3
- import type { ButtonName } from '../types';
4
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
- import type toolbarListsIndentationPlugin from '../index';
6
- export declare const onItemActivated: (pluginInjectionApi: ExtractInjectionAPI<typeof toolbarListsIndentationPlugin> | undefined, indentationStateNode: IndentationButtonNode | undefined) => ({ buttonName, editorView, }: {
7
- buttonName: ButtonName;
8
- editorView: EditorView;
9
- }) => void;