@atlaskit/editor-plugin-toolbar-lists-indentation 1.14.4 → 1.14.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/cjs/toolbarListsIndentationPluginType.js +5 -0
  4. package/dist/cjs/ui/index.js +1 -1
  5. package/dist/cjs/{utils → ui/utils}/input-method.js +1 -1
  6. package/dist/es2019/index.js +1 -1
  7. package/dist/es2019/toolbarListsIndentationPluginType.js +1 -0
  8. package/dist/es2019/ui/index.js +1 -1
  9. package/dist/es2019/{utils → ui/utils}/input-method.js +1 -1
  10. package/dist/esm/index.js +1 -1
  11. package/dist/esm/toolbarListsIndentationPluginType.js +1 -0
  12. package/dist/esm/ui/index.js +1 -1
  13. package/dist/esm/{utils → ui/utils}/input-method.js +1 -1
  14. package/dist/types/index.d.ts +2 -2
  15. package/dist/types/toolbarListsIndentationPlugin.d.ts +13 -0
  16. package/dist/types/toolbarListsIndentationPluginType.d.ts +23 -0
  17. package/dist/types/{types.d.ts → types/index.d.ts} +2 -2
  18. package/dist/types/ui/FloatingToolbarComponent.d.ts +1 -1
  19. package/dist/types/ui/index.d.ts +1 -1
  20. package/dist/types/ui/utils/input-method.d.ts +3 -0
  21. package/dist/types-ts4.5/index.d.ts +2 -2
  22. package/dist/types-ts4.5/toolbarListsIndentationPlugin.d.ts +13 -0
  23. package/dist/types-ts4.5/toolbarListsIndentationPluginType.d.ts +23 -0
  24. package/dist/types-ts4.5/{types.d.ts → types/index.d.ts} +2 -2
  25. package/dist/types-ts4.5/ui/FloatingToolbarComponent.d.ts +1 -1
  26. package/dist/types-ts4.5/ui/index.d.ts +1 -1
  27. package/dist/types-ts4.5/ui/utils/input-method.d.ts +3 -0
  28. package/package.json +5 -2
  29. package/dist/types/plugin.d.ts +0 -33
  30. package/dist/types/utils/input-method.d.ts +0 -3
  31. package/dist/types-ts4.5/plugin.d.ts +0 -33
  32. package/dist/types-ts4.5/utils/input-method.d.ts +0 -3
  33. /package/dist/cjs/{plugin.js → toolbarListsIndentationPlugin.js} +0 -0
  34. /package/dist/cjs/{types.js → types/index.js} +0 -0
  35. /package/dist/es2019/{plugin.js → toolbarListsIndentationPlugin.js} +0 -0
  36. /package/dist/es2019/{types.js → types/index.js} +0 -0
  37. /package/dist/esm/{plugin.js → toolbarListsIndentationPlugin.js} +0 -0
  38. /package/dist/esm/{types.js → types/index.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-plugin-toolbar-lists-indentation
2
2
 
3
+ ## 1.14.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#171551](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171551)
8
+ [`702c918817e78`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/702c918817e78) -
9
+ ED-25817: refactors plugins to meet folder standards
10
+
3
11
  ## 1.14.4
4
12
 
5
13
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "toolbarListsIndentationPlugin", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _plugin.toolbarListsIndentationPlugin;
9
+ return _toolbarListsIndentationPlugin.toolbarListsIndentationPlugin;
10
10
  }
11
11
  });
12
- var _plugin = require("./plugin");
12
+ var _toolbarListsIndentationPlugin = require("./toolbarListsIndentationPlugin");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -8,10 +8,10 @@ var _react = require("@emotion/react");
8
8
  var _analytics = require("@atlaskit/editor-common/analytics");
9
9
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
10
  var _types = require("../types");
11
- var _inputMethod = require("../utils/input-method");
12
11
  var _onItemActivated = require("./onItemActivated");
13
12
  var _Toolbar = require("./Toolbar");
14
13
  var _ToolbarDropdown = require("./ToolbarDropdown");
14
+ var _inputMethod = require("./utils/input-method");
15
15
  /**
16
16
  * @jsxRuntime classic
17
17
  * @jsx jsx
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.getInputMethod = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _analytics = require("@atlaskit/editor-common/analytics");
10
- var _types = require("../types");
10
+ var _types = require("../../types");
11
11
  var _toolbarTypeToInputMe;
12
12
  var toolbarTypeToInputMethod = (_toolbarTypeToInputMe = {}, (0, _defineProperty2.default)(_toolbarTypeToInputMe, _types.ToolbarType.PRIMARY, _analytics.INPUT_METHOD.TOOLBAR), (0, _defineProperty2.default)(_toolbarTypeToInputMe, _types.ToolbarType.FLOATING, _analytics.INPUT_METHOD.FLOATING_TB), _toolbarTypeToInputMe);
13
13
  var getInputMethod = exports.getInputMethod = function getInputMethod(toolbarType) {
@@ -1 +1 @@
1
- export { toolbarListsIndentationPlugin } from './plugin';
1
+ export { toolbarListsIndentationPlugin } from './toolbarListsIndentationPlugin';
@@ -0,0 +1 @@
1
+ export {};
@@ -7,10 +7,10 @@ import { jsx } from '@emotion/react';
7
7
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { ToolbarType } from '../types';
10
- import { getInputMethod } from '../utils/input-method';
11
10
  import { onItemActivated } from './onItemActivated';
12
11
  import { Toolbar } from './Toolbar';
13
12
  import { ToolbarDropdown } from './ToolbarDropdown';
13
+ import { getInputMethod } from './utils/input-method';
14
14
  export default function ToolbarListsIndentation(props) {
15
15
  const {
16
16
  disabled,
@@ -1,5 +1,5 @@
1
1
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import { ToolbarType } from '../types';
2
+ import { ToolbarType } from '../../types';
3
3
  const toolbarTypeToInputMethod = {
4
4
  [ToolbarType.PRIMARY]: INPUT_METHOD.TOOLBAR,
5
5
  [ToolbarType.FLOATING]: INPUT_METHOD.FLOATING_TB
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export { toolbarListsIndentationPlugin } from './plugin';
1
+ export { toolbarListsIndentationPlugin } from './toolbarListsIndentationPlugin';
@@ -0,0 +1 @@
1
+ export {};
@@ -7,10 +7,10 @@ import { jsx } from '@emotion/react';
7
7
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { ToolbarType } from '../types';
10
- import { getInputMethod } from '../utils/input-method';
11
10
  import { onItemActivated } from './onItemActivated';
12
11
  import { Toolbar } from './Toolbar';
13
12
  import { ToolbarDropdown } from './ToolbarDropdown';
13
+ import { getInputMethod } from './utils/input-method';
14
14
  export default function ToolbarListsIndentation(props) {
15
15
  var disabled = props.disabled,
16
16
  isSmall = props.isSmall,
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  var _toolbarTypeToInputMe;
3
3
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
- import { ToolbarType } from '../types';
4
+ import { ToolbarType } from '../../types';
5
5
  var toolbarTypeToInputMethod = (_toolbarTypeToInputMe = {}, _defineProperty(_toolbarTypeToInputMe, ToolbarType.PRIMARY, INPUT_METHOD.TOOLBAR), _defineProperty(_toolbarTypeToInputMe, ToolbarType.FLOATING, INPUT_METHOD.FLOATING_TB), _toolbarTypeToInputMe);
6
6
  export var getInputMethod = function getInputMethod(toolbarType) {
7
7
  return toolbarTypeToInputMethod[toolbarType];
@@ -1,2 +1,2 @@
1
- export { toolbarListsIndentationPlugin } from './plugin';
2
- export type { ToolbarListsIndentationPlugin } from './plugin';
1
+ export { toolbarListsIndentationPlugin } from './toolbarListsIndentationPlugin';
2
+ export type { ToolbarListsIndentationPlugin } from './toolbarListsIndentationPluginType';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import type { ExtractInjectionAPI, FeatureFlags, ToolbarUiComponentFactoryParams } from '@atlaskit/editor-common/types';
3
+ import type { ToolbarListsIndentationPlugin } from './toolbarListsIndentationPluginType';
4
+ export declare const toolbarListsIndentationPlugin: ToolbarListsIndentationPlugin;
5
+ type PrimaryToolbarComponentProps = Pick<ToolbarUiComponentFactoryParams, 'editorView' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'disabled' | 'isToolbarReducedSpacing'> & {
6
+ featureFlags: FeatureFlags;
7
+ isSmall: boolean;
8
+ showIndentationButtons?: boolean;
9
+ pluginInjectionApi: ExtractInjectionAPI<typeof toolbarListsIndentationPlugin> | undefined;
10
+ allowHeadingAndParagraphIndentation: boolean;
11
+ };
12
+ export declare function PrimaryToolbarComponent({ featureFlags, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isSmall, isToolbarReducedSpacing, disabled, editorView, showIndentationButtons, pluginInjectionApi, allowHeadingAndParagraphIndentation, }: PrimaryToolbarComponentProps): JSX.Element | null;
13
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { 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 { ListPlugin } from '@atlaskit/editor-plugin-list';
6
+ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
7
+ import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
8
+ type Config = {
9
+ showIndentationButtons: boolean;
10
+ allowHeadingAndParagraphIndentation: boolean;
11
+ };
12
+ export type ToolbarListsIndentationPlugin = NextEditorPlugin<'toolbarListsIndentation', {
13
+ pluginConfiguration: Config;
14
+ dependencies: [
15
+ OptionalPlugin<FeatureFlagsPlugin>,
16
+ ListPlugin,
17
+ OptionalPlugin<IndentationPlugin>,
18
+ OptionalPlugin<TasksAndDecisionsPlugin>,
19
+ OptionalPlugin<AnalyticsPlugin>,
20
+ OptionalPlugin<PrimaryToolbarPlugin>
21
+ ];
22
+ }>;
23
+ export {};
@@ -1,8 +1,8 @@
1
1
  import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { ToolbarListsIndentationPlugin } from './plugin';
5
- import type { onItemActivated } from './ui/onItemActivated';
4
+ import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
5
+ import type { onItemActivated } from '../ui/onItemActivated';
6
6
  export type ButtonName = 'bullet_list' | 'ordered_list' | 'indent' | 'outdent';
7
7
  export declare enum ToolbarType {
8
8
  PRIMARY = "primaryToolbar",
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { ToolbarListsIndentationPlugin } from '../plugin';
4
+ import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
5
5
  type FloatingToolbarComponentProps = {
6
6
  allowHeadingAndParagraphIndentation: boolean;
7
7
  editorView: EditorView;
@@ -5,8 +5,8 @@
5
5
  import { jsx } from '@emotion/react';
6
6
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
7
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
- import type { ToolbarListsIndentationPlugin } from '../plugin';
9
8
  import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
9
+ import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
10
10
  import { ToolbarType } from '../types';
11
11
  export interface Props {
12
12
  editorView: EditorView;
@@ -0,0 +1,3 @@
1
+ import type { ListsIndentationInputMethod } from '../../types';
2
+ import { ToolbarType } from '../../types';
3
+ export declare const getInputMethod: (toolbarType: ToolbarType) => ListsIndentationInputMethod;
@@ -1,2 +1,2 @@
1
- export { toolbarListsIndentationPlugin } from './plugin';
2
- export type { ToolbarListsIndentationPlugin } from './plugin';
1
+ export { toolbarListsIndentationPlugin } from './toolbarListsIndentationPlugin';
2
+ export type { ToolbarListsIndentationPlugin } from './toolbarListsIndentationPluginType';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import type { ExtractInjectionAPI, FeatureFlags, ToolbarUiComponentFactoryParams } from '@atlaskit/editor-common/types';
3
+ import type { ToolbarListsIndentationPlugin } from './toolbarListsIndentationPluginType';
4
+ export declare const toolbarListsIndentationPlugin: ToolbarListsIndentationPlugin;
5
+ type PrimaryToolbarComponentProps = Pick<ToolbarUiComponentFactoryParams, 'editorView' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'disabled' | 'isToolbarReducedSpacing'> & {
6
+ featureFlags: FeatureFlags;
7
+ isSmall: boolean;
8
+ showIndentationButtons?: boolean;
9
+ pluginInjectionApi: ExtractInjectionAPI<typeof toolbarListsIndentationPlugin> | undefined;
10
+ allowHeadingAndParagraphIndentation: boolean;
11
+ };
12
+ export declare function PrimaryToolbarComponent({ featureFlags, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isSmall, isToolbarReducedSpacing, disabled, editorView, showIndentationButtons, pluginInjectionApi, allowHeadingAndParagraphIndentation, }: PrimaryToolbarComponentProps): JSX.Element | null;
13
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { 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 { ListPlugin } from '@atlaskit/editor-plugin-list';
6
+ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
7
+ import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
8
+ type Config = {
9
+ showIndentationButtons: boolean;
10
+ allowHeadingAndParagraphIndentation: boolean;
11
+ };
12
+ export type ToolbarListsIndentationPlugin = NextEditorPlugin<'toolbarListsIndentation', {
13
+ pluginConfiguration: Config;
14
+ dependencies: [
15
+ OptionalPlugin<FeatureFlagsPlugin>,
16
+ ListPlugin,
17
+ OptionalPlugin<IndentationPlugin>,
18
+ OptionalPlugin<TasksAndDecisionsPlugin>,
19
+ OptionalPlugin<AnalyticsPlugin>,
20
+ OptionalPlugin<PrimaryToolbarPlugin>
21
+ ];
22
+ }>;
23
+ export {};
@@ -1,8 +1,8 @@
1
1
  import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { ToolbarListsIndentationPlugin } from './plugin';
5
- import type { onItemActivated } from './ui/onItemActivated';
4
+ import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
5
+ import type { onItemActivated } from '../ui/onItemActivated';
6
6
  export type ButtonName = 'bullet_list' | 'ordered_list' | 'indent' | 'outdent';
7
7
  export declare enum ToolbarType {
8
8
  PRIMARY = "primaryToolbar",
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { ToolbarListsIndentationPlugin } from '../plugin';
4
+ import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
5
5
  type FloatingToolbarComponentProps = {
6
6
  allowHeadingAndParagraphIndentation: boolean;
7
7
  editorView: EditorView;
@@ -5,8 +5,8 @@
5
5
  import { jsx } from '@emotion/react';
6
6
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
7
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
- import type { ToolbarListsIndentationPlugin } from '../plugin';
9
8
  import type { IndentationButtonNode } from '../pm-plugins/indentation-buttons';
9
+ import type { ToolbarListsIndentationPlugin } from '../toolbarListsIndentationPluginType';
10
10
  import { ToolbarType } from '../types';
11
11
  export interface Props {
12
12
  editorView: EditorView;
@@ -0,0 +1,3 @@
1
+ import type { ListsIndentationInputMethod } from '../../types';
2
+ import { ToolbarType } from '../../types';
3
+ export declare const getInputMethod: (toolbarType: ToolbarType) => ListsIndentationInputMethod;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
3
- "version": "1.14.4",
3
+ "version": "1.14.5",
4
4
  "description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -56,7 +56,7 @@
56
56
  "@af/integration-testing": "*",
57
57
  "@af/visual-regression": "*",
58
58
  "@atlaskit/adf-schema": "^46.1.0",
59
- "@atlaskit/analytics-next": "^10.1.0",
59
+ "@atlaskit/analytics-next": "^10.2.0",
60
60
  "@atlaskit/editor-plugin-base": "^2.0.0",
61
61
  "@atlaskit/editor-plugin-text-formatting": "^1.16.0",
62
62
  "@atlaskit/ssr": "*",
@@ -67,6 +67,9 @@
67
67
  },
68
68
  "techstack": {
69
69
  "@atlassian/frontend": {
70
+ "code-structure": [
71
+ "editor-plugin"
72
+ ],
70
73
  "import-structure": [
71
74
  "atlassian-conventions"
72
75
  ],
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ExtractInjectionAPI, FeatureFlags, NextEditorPlugin, OptionalPlugin, ToolbarUiComponentFactoryParams } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
5
- import type { IndentationPlugin } from '@atlaskit/editor-plugin-indentation';
6
- import type { ListPlugin } from '@atlaskit/editor-plugin-list';
7
- import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
8
- import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
9
- type Config = {
10
- showIndentationButtons: boolean;
11
- allowHeadingAndParagraphIndentation: boolean;
12
- };
13
- export type ToolbarListsIndentationPlugin = NextEditorPlugin<'toolbarListsIndentation', {
14
- pluginConfiguration: Config;
15
- dependencies: [
16
- OptionalPlugin<FeatureFlagsPlugin>,
17
- ListPlugin,
18
- OptionalPlugin<IndentationPlugin>,
19
- OptionalPlugin<TasksAndDecisionsPlugin>,
20
- OptionalPlugin<AnalyticsPlugin>,
21
- OptionalPlugin<PrimaryToolbarPlugin>
22
- ];
23
- }>;
24
- export 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 {};
@@ -1,3 +0,0 @@
1
- import type { ListsIndentationInputMethod } from '../types';
2
- import { ToolbarType } from '../types';
3
- export declare const getInputMethod: (toolbarType: ToolbarType) => ListsIndentationInputMethod;
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ExtractInjectionAPI, FeatureFlags, NextEditorPlugin, OptionalPlugin, ToolbarUiComponentFactoryParams } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
5
- import type { IndentationPlugin } from '@atlaskit/editor-plugin-indentation';
6
- import type { ListPlugin } from '@atlaskit/editor-plugin-list';
7
- import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
8
- import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
9
- type Config = {
10
- showIndentationButtons: boolean;
11
- allowHeadingAndParagraphIndentation: boolean;
12
- };
13
- export type ToolbarListsIndentationPlugin = NextEditorPlugin<'toolbarListsIndentation', {
14
- pluginConfiguration: Config;
15
- dependencies: [
16
- OptionalPlugin<FeatureFlagsPlugin>,
17
- ListPlugin,
18
- OptionalPlugin<IndentationPlugin>,
19
- OptionalPlugin<TasksAndDecisionsPlugin>,
20
- OptionalPlugin<AnalyticsPlugin>,
21
- OptionalPlugin<PrimaryToolbarPlugin>
22
- ];
23
- }>;
24
- export 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 {};
@@ -1,3 +0,0 @@
1
- import type { ListsIndentationInputMethod } from '../types';
2
- import { ToolbarType } from '../types';
3
- export declare const getInputMethod: (toolbarType: ToolbarType) => ListsIndentationInputMethod;
File without changes
File without changes
File without changes