@atlaskit/editor-core 187.48.7 → 188.0.0

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 (149) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/dist/cjs/index.js +3 -305
  3. package/dist/cjs/labs/next/presets/default.js +2 -2
  4. package/dist/cjs/plugins/index.js +0 -7
  5. package/dist/cjs/version-wrapper.js +1 -1
  6. package/dist/es2019/index.js +16 -45
  7. package/dist/es2019/labs/next/presets/default.js +1 -1
  8. package/dist/es2019/plugins/index.js +0 -1
  9. package/dist/es2019/version-wrapper.js +1 -1
  10. package/dist/esm/index.js +16 -45
  11. package/dist/esm/labs/next/presets/default.js +1 -1
  12. package/dist/esm/plugins/index.js +0 -1
  13. package/dist/esm/version-wrapper.js +1 -1
  14. package/dist/types/index.d.ts +19 -63
  15. package/dist/types/plugins/index.d.ts +0 -1
  16. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  17. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  18. package/dist/types-ts4.5/index.d.ts +19 -63
  19. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  20. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  21. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  22. package/package.json +4 -4
  23. package/report.api.md +8 -1116
  24. package/tmp/api-report-tmp.d.ts +8 -971
  25. package/dist/cjs/plugins/floating-toolbar/index.js +0 -386
  26. package/dist/cjs/plugins/floating-toolbar/pm-plugins/force-focus/index.js +0 -73
  27. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.js +0 -26
  28. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +0 -16
  29. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.js +0 -9
  30. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.js +0 -16
  31. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +0 -25
  32. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/types.js +0 -5
  33. package/dist/cjs/plugins/floating-toolbar/ui/CheckboxModal.js +0 -83
  34. package/dist/cjs/plugins/floating-toolbar/ui/ConfirmationModal.js +0 -22
  35. package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +0 -208
  36. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +0 -205
  37. package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +0 -32
  38. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +0 -120
  39. package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +0 -179
  40. package/dist/cjs/plugins/floating-toolbar/ui/Input.js +0 -78
  41. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +0 -152
  42. package/dist/cjs/plugins/floating-toolbar/ui/Select.js +0 -74
  43. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +0 -9
  44. package/dist/cjs/plugins/floating-toolbar/ui/SimpleModal.js +0 -42
  45. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +0 -427
  46. package/dist/cjs/plugins/floating-toolbar/ui/ToolbarLoader.js +0 -25
  47. package/dist/cjs/plugins/floating-toolbar/ui/messages.js +0 -55
  48. package/dist/cjs/plugins/floating-toolbar/ui/styles.js +0 -79
  49. package/dist/cjs/plugins/floating-toolbar/utils.js +0 -22
  50. package/dist/es2019/plugins/floating-toolbar/index.js +0 -368
  51. package/dist/es2019/plugins/floating-toolbar/pm-plugins/force-focus/index.js +0 -63
  52. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.js +0 -10
  53. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +0 -8
  54. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.js +0 -2
  55. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.js +0 -9
  56. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +0 -16
  57. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/types.js +0 -1
  58. package/dist/es2019/plugins/floating-toolbar/ui/CheckboxModal.js +0 -71
  59. package/dist/es2019/plugins/floating-toolbar/ui/ConfirmationModal.js +0 -13
  60. package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +0 -180
  61. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +0 -191
  62. package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +0 -25
  63. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +0 -107
  64. package/dist/es2019/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +0 -100
  65. package/dist/es2019/plugins/floating-toolbar/ui/Input.js +0 -52
  66. package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +0 -137
  67. package/dist/es2019/plugins/floating-toolbar/ui/Select.js +0 -62
  68. package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +0 -2
  69. package/dist/es2019/plugins/floating-toolbar/ui/SimpleModal.js +0 -35
  70. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +0 -419
  71. package/dist/es2019/plugins/floating-toolbar/ui/ToolbarLoader.js +0 -6
  72. package/dist/es2019/plugins/floating-toolbar/ui/messages.js +0 -48
  73. package/dist/es2019/plugins/floating-toolbar/ui/styles.js +0 -64
  74. package/dist/es2019/plugins/floating-toolbar/utils.js +0 -16
  75. package/dist/esm/plugins/floating-toolbar/index.js +0 -375
  76. package/dist/esm/plugins/floating-toolbar/pm-plugins/force-focus/index.js +0 -64
  77. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.js +0 -18
  78. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +0 -8
  79. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.js +0 -2
  80. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.js +0 -9
  81. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +0 -17
  82. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/types.js +0 -1
  83. package/dist/esm/plugins/floating-toolbar/ui/CheckboxModal.js +0 -72
  84. package/dist/esm/plugins/floating-toolbar/ui/ConfirmationModal.js +0 -14
  85. package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +0 -199
  86. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +0 -197
  87. package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +0 -25
  88. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +0 -113
  89. package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +0 -168
  90. package/dist/esm/plugins/floating-toolbar/ui/Input.js +0 -70
  91. package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +0 -141
  92. package/dist/esm/plugins/floating-toolbar/ui/Select.js +0 -64
  93. package/dist/esm/plugins/floating-toolbar/ui/Separator.js +0 -2
  94. package/dist/esm/plugins/floating-toolbar/ui/SimpleModal.js +0 -31
  95. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +0 -417
  96. package/dist/esm/plugins/floating-toolbar/ui/ToolbarLoader.js +0 -12
  97. package/dist/esm/plugins/floating-toolbar/ui/messages.js +0 -48
  98. package/dist/esm/plugins/floating-toolbar/ui/styles.js +0 -68
  99. package/dist/esm/plugins/floating-toolbar/utils.js +0 -16
  100. package/dist/types/plugins/floating-toolbar/index.d.ts +0 -13
  101. package/dist/types/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +0 -21
  102. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +0 -3
  103. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +0 -1
  104. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +0 -3
  105. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +0 -3
  106. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.d.ts +0 -3
  107. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +0 -8
  108. package/dist/types/plugins/floating-toolbar/ui/CheckboxModal.d.ts +0 -4
  109. package/dist/types/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +0 -6
  110. package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +0 -41
  111. package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +0 -29
  112. package/dist/types/plugins/floating-toolbar/ui/EditorEmojiAddIcon.d.ts +0 -2
  113. package/dist/types/plugins/floating-toolbar/ui/EmojiPickerButton.d.ts +0 -15
  114. package/dist/types/plugins/floating-toolbar/ui/ExtensionsPlaceholder.d.ts +0 -16
  115. package/dist/types/plugins/floating-toolbar/ui/Input.d.ts +0 -23
  116. package/dist/types/plugins/floating-toolbar/ui/ScrollButtons.d.ts +0 -13
  117. package/dist/types/plugins/floating-toolbar/ui/Select.d.ts +0 -21
  118. package/dist/types/plugins/floating-toolbar/ui/Separator.d.ts +0 -2
  119. package/dist/types/plugins/floating-toolbar/ui/SimpleModal.d.ts +0 -4
  120. package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +0 -44
  121. package/dist/types/plugins/floating-toolbar/ui/ToolbarLoader.d.ts +0 -4
  122. package/dist/types/plugins/floating-toolbar/ui/messages.d.ts +0 -48
  123. package/dist/types/plugins/floating-toolbar/ui/styles.d.ts +0 -20
  124. package/dist/types/plugins/floating-toolbar/utils.d.ts +0 -2
  125. package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +0 -13
  126. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +0 -21
  127. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +0 -3
  128. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +0 -1
  129. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +0 -3
  130. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +0 -3
  131. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.d.ts +0 -3
  132. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +0 -8
  133. package/dist/types-ts4.5/plugins/floating-toolbar/ui/CheckboxModal.d.ts +0 -4
  134. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +0 -6
  135. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Dropdown.d.ts +0 -41
  136. package/dist/types-ts4.5/plugins/floating-toolbar/ui/DropdownMenu.d.ts +0 -29
  137. package/dist/types-ts4.5/plugins/floating-toolbar/ui/EditorEmojiAddIcon.d.ts +0 -2
  138. package/dist/types-ts4.5/plugins/floating-toolbar/ui/EmojiPickerButton.d.ts +0 -15
  139. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ExtensionsPlaceholder.d.ts +0 -16
  140. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Input.d.ts +0 -23
  141. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ScrollButtons.d.ts +0 -13
  142. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Select.d.ts +0 -21
  143. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Separator.d.ts +0 -2
  144. package/dist/types-ts4.5/plugins/floating-toolbar/ui/SimpleModal.d.ts +0 -4
  145. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +0 -44
  146. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ToolbarLoader.d.ts +0 -4
  147. package/dist/types-ts4.5/plugins/floating-toolbar/ui/messages.d.ts +0 -48
  148. package/dist/types-ts4.5/plugins/floating-toolbar/ui/styles.d.ts +0 -20
  149. package/dist/types-ts4.5/plugins/floating-toolbar/utils.d.ts +0 -2
@@ -1,41 +0,0 @@
1
- /** @jsx jsx */
2
- import type { ReactElement } from 'react';
3
- import React, { Component } from 'react';
4
- import { jsx } from '@emotion/react';
5
- import type { DropdownOptions } from '@atlaskit/editor-common/types';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- export interface Props {
8
- title: string;
9
- icon?: ReactElement<any>;
10
- hideExpandIcon?: boolean;
11
- options: DropdownOptions<Function>;
12
- dispatchCommand: (command: Function) => void;
13
- mountPoint?: HTMLElement;
14
- boundariesElement?: HTMLElement;
15
- scrollableElement?: HTMLElement;
16
- disabled?: boolean;
17
- tooltip?: string;
18
- buttonTestId?: string;
19
- dropdownWidth?: number;
20
- showSelected?: boolean;
21
- setDisableParentScroll?: (disable: boolean) => void;
22
- editorView?: EditorView;
23
- dropdownListId?: string;
24
- alignDropdownWithToolbar?: boolean;
25
- }
26
- export interface State {
27
- isOpen: boolean;
28
- isOpenedByKeyboard: boolean;
29
- }
30
- export default class Dropdown extends Component<Props, State> {
31
- state: State;
32
- triggerRef: React.RefObject<HTMLDivElement>;
33
- render(): jsx.JSX.Element;
34
- private renderArrayOptions;
35
- private toggleOpen;
36
- private toggleOpenByKeyboard;
37
- private hide;
38
- private hideOnEsc;
39
- private onOpenChanged;
40
- componentDidUpdate(prevProps: Props, prevState: State): void;
41
- }
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ButtonItemProps } from '@atlaskit/menu';
3
- import type { DropdownOptionT } from '@atlaskit/editor-common/types';
4
- import type { WrappedComponentProps } from 'react-intl-next';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- export declare const menuItemDimensions: {
7
- width: number;
8
- height: number;
9
- };
10
- export declare const itemSpacing: number;
11
- export interface Props {
12
- hide: Function;
13
- dispatchCommand: Function;
14
- items: Array<DropdownOptionT<Function>>;
15
- showSelected?: boolean;
16
- editorView?: EditorView;
17
- }
18
- export interface DropdownButtonItemProps extends ButtonItemProps {
19
- onMouseEnter?: (event: React.MouseEvent | React.KeyboardEvent) => void;
20
- onMouseOver?: (event: React.MouseEvent | React.KeyboardEvent) => void;
21
- onMouseLeave?: (event: React.MouseEvent | React.KeyboardEvent) => void;
22
- onMouseOut?: (event: React.MouseEvent | React.KeyboardEvent) => void;
23
- onFocus?: (event: React.MouseEvent | React.KeyboardEvent) => void;
24
- onBlur?: (event: React.MouseEvent | React.KeyboardEvent) => void;
25
- }
26
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
27
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
28
- };
29
- export default _default;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export default function EditorEmojiAddIcon(): JSX.Element;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
- import type { EmojiId } from '@atlaskit/emoji';
5
- export declare const EmojiPickerButton: React.FunctionComponent<{
6
- className?: string;
7
- editorView?: EditorView;
8
- idx?: number;
9
- providerFactory?: ProviderFactory;
10
- title?: string;
11
- onChange?: (emoji: EmojiId) => void;
12
- isSelected?: boolean;
13
- mountPoint?: HTMLElement;
14
- setDisableParentScroll?: (disable: boolean) => void;
15
- }>;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
5
- import type { ExtensionAPI } from '@atlaskit/editor-common/extensions';
6
- import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
7
- interface Props {
8
- node: PMNode;
9
- extensionProvider: Promise<ExtensionProvider>;
10
- editorView: EditorView;
11
- separator?: 'start' | 'end' | 'both';
12
- applyChangeToContextPanel: ApplyChangeHandler | undefined;
13
- extensionApi: ExtensionAPI | undefined;
14
- }
15
- export declare const ExtensionsPlaceholder: (props: Props) => JSX.Element | null;
16
- export {};
@@ -1,23 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { jsx } from '@emotion/react';
4
- import { Component } from 'react';
5
- export interface Props {
6
- mountPoint?: HTMLElement;
7
- boundariesElement?: HTMLElement;
8
- defaultValue?: string;
9
- placeholder?: string;
10
- onBlur?: (text: string) => void;
11
- onSubmit?: (text: string) => void;
12
- }
13
- export interface State {
14
- text: string;
15
- }
16
- export default class TextField extends Component<Props, State> {
17
- constructor(props: Props);
18
- UNSAFE_componentWillReceiveProps(nextProps: Props): void;
19
- handleChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
20
- handleSubmit: (e: React.FormEvent) => void;
21
- handleBlur: (e: React.FocusEvent<{}>) => void;
22
- render(): jsx.JSX.Element;
23
- }
@@ -1,13 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { jsx } from '@emotion/react';
4
- import type { Node } from '@atlaskit/editor-prosemirror/model';
5
- import type { IntlShape } from 'react-intl-next';
6
- interface ScrollButtonsProps {
7
- intl: IntlShape;
8
- scrollContainerRef: React.RefObject<HTMLDivElement>;
9
- node: Node;
10
- disabled: boolean;
11
- }
12
- export declare const ScrollButtons: ({ intl, scrollContainerRef, node, disabled, }: ScrollButtonsProps) => jsx.JSX.Element | null;
13
- export {};
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ValueType } from '@atlaskit/select';
3
- import type { RenderOptionsPropsT, SelectOption } from '@atlaskit/editor-common/types';
4
- export type { RenderOptionsPropsT, SelectOption };
5
- export interface Props {
6
- hideExpandIcon?: boolean;
7
- options: SelectOption[];
8
- dispatchCommand: (command: Function) => void;
9
- mountPoint?: HTMLElement;
10
- boundariesElement?: HTMLElement;
11
- scrollableElement?: HTMLElement;
12
- defaultValue?: SelectOption | null;
13
- placeholder?: string;
14
- onChange?: (change: ValueType<SelectOption>) => void;
15
- width?: number;
16
- filterOption?: ((option: SelectOption, rawInput: string) => boolean) | null;
17
- setDisableParentScroll?: (disable: boolean) => void;
18
- ariaLabel?: string;
19
- classNamePrefix?: string;
20
- }
21
- export default function Search(props: Props): JSX.Element;
@@ -1,2 +0,0 @@
1
- import { FloatingToolbarSeparator } from '@atlaskit/editor-common/ui';
2
- export default FloatingToolbarSeparator;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { WrappedComponentProps } from 'react-intl-next';
3
- import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
- export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
@@ -1,44 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { Node } from '@atlaskit/editor-prosemirror/model';
5
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
6
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
- import type { WrappedComponentProps } from 'react-intl-next';
9
- import type { FeatureFlags, PluginInjectionAPIWithDependencies, OptionalPlugin } from '@atlaskit/editor-common/types';
10
- import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
11
- import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
12
- import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
13
- import type { Item } from '@atlaskit/editor-common/floating-toolbar';
14
- export type { Item };
15
- export interface Props {
16
- items: Array<Item>;
17
- dispatchCommand: (command?: Function) => void;
18
- popupsMountPoint?: HTMLElement;
19
- popupsBoundariesElement?: HTMLElement;
20
- popupsScrollableElement?: HTMLElement;
21
- providerFactory?: ProviderFactory;
22
- className?: string;
23
- focusEditor?: () => void;
24
- editorView?: EditorView;
25
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
26
- target?: HTMLElement;
27
- node: Node;
28
- extensionsProvider?: Promise<ExtensionProvider>;
29
- scrollable?: boolean;
30
- featureFlags: FeatureFlags;
31
- api: PluginInjectionAPIWithDependencies<[
32
- typeof decorationsPlugin,
33
- OptionalPlugin<typeof contextPanelPlugin>,
34
- OptionalPlugin<ExtensionPlugin>
35
- ]> | undefined;
36
- }
37
- export interface State {
38
- scrollDisabled: boolean;
39
- mounted: boolean;
40
- }
41
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
42
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
43
- };
44
- export default _default;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import Loadable from 'react-loadable';
3
- import type { Props } from './Toolbar';
4
- export declare const ToolbarLoader: import("react").ComponentType<Props> & Loadable.LoadableComponent;
@@ -1,48 +0,0 @@
1
- declare const _default: {
2
- confirmModalDefaultHeading: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- confirmModalOK: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- confirmModalCancel: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- confirmModalListUnit: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- confirmDeleteLinkedModalMessage: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- floatingToolbarAriaLabel: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- floatingToolbarAnnouncer: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- floatingToolbarScrollLeft: {
38
- id: string;
39
- defaultMessage: string;
40
- description: string;
41
- };
42
- floatingToolbarScrollRight: {
43
- id: string;
44
- defaultMessage: string;
45
- description: string;
46
- };
47
- };
48
- export default _default;
@@ -1,20 +0,0 @@
1
- export declare const iconOnlySpacing: {
2
- '&&': {
3
- padding: string;
4
- /**
5
- Increased specificity here because css for .hyperlink-open-link defined in
6
- packages/editor/editor-core/src/ui/ContentStyles/index.tsx file
7
- overrides padding left-right 2px with 4px.
8
- */
9
- '&&[href]': {
10
- padding: string;
11
- };
12
- };
13
- '& > span': {
14
- margin: string;
15
- };
16
- };
17
- export declare const getButtonStyles: (props: any) => {
18
- background: any;
19
- color: any;
20
- };
@@ -1,2 +0,0 @@
1
- import type { Node } from '@atlaskit/editor-prosemirror/model';
2
- export declare function findNode(parent: Node, predicate: (node: Node) => boolean): Node | undefined;
@@ -1,13 +0,0 @@
1
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
4
- import type { FloatingToolbarPlugin, ConfigWithNodeInfo, FloatingToolbarPluginState } from '@atlaskit/editor-plugin-floating-toolbar';
5
- export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
6
- declare const floatingToolbarPlugin: FloatingToolbarPlugin;
7
- export default floatingToolbarPlugin;
8
- /**
9
- *
10
- * ProseMirror Plugin
11
- *
12
- */
13
- export declare const pluginKey: PluginKey<FloatingToolbarPluginState>;
@@ -1,21 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- export declare const forceFocusStateKey: PluginKey<any>;
6
- /**
7
- * Used in cases where a floating toolbar button opens a submenu which destroys
8
- * the button, but the user has pressed ESC to close the submenu and focus needs
9
- * to move back to the button. */
10
- declare const _default: () => SafePlugin<{
11
- selector: null;
12
- }>;
13
- export default _default;
14
- /**
15
- * The provided selector should be the floating toolbar button that needs focus.
16
- */
17
- export declare const forceFocusSelector: (selector: string | null) => (tr: Transaction) => Transaction;
18
- /**
19
- * If a selector is set and the element exists, focus it.
20
- */
21
- export declare function checkShouldForceFocusAndApply(view?: EditorView): void;
@@ -1,3 +0,0 @@
1
- import type { Command } from '@atlaskit/editor-common/types';
2
- export declare const showConfirmDialog: (buttonIndex: number) => Command;
3
- export declare const hideConfirmDialog: () => Command;
@@ -1 +0,0 @@
1
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { FloatingToolbarPluginData } from '@atlaskit/editor-plugin-floating-toolbar';
3
- export declare const pluginKey: PluginKey<FloatingToolbarPluginData>;
@@ -1,3 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
- export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>;
@@ -1,3 +0,0 @@
1
- import type { FloatingToolbarPluginAction } from './types';
2
- import type { FloatingToolbarPluginData } from '@atlaskit/editor-plugin-floating-toolbar';
3
- export declare const reducer: (pluginState: FloatingToolbarPluginData, action: FloatingToolbarPluginAction) => FloatingToolbarPluginData;
@@ -1,8 +0,0 @@
1
- export type FloatingToolbarPluginAction = {
2
- type: 'SHOW_CONFIRM_DIALOG';
3
- data: {
4
- buttonIndex: number;
5
- };
6
- } | {
7
- type: 'HIDE_CONFIRM_DIALOG';
8
- };
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { WrappedComponentProps } from 'react-intl-next';
3
- import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
- export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
3
- import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
- export declare const ConfirmationModal: React.FC<import("react-intl-next").WithIntlProps<ConfirmationDialogProps & WrappedComponentProps<"intl">>> & {
5
- WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps<"intl">>;
6
- };
@@ -1,41 +0,0 @@
1
- /** @jsx jsx */
2
- import type { ReactElement } from 'react';
3
- import React, { Component } from 'react';
4
- import { jsx } from '@emotion/react';
5
- import type { DropdownOptions } from '@atlaskit/editor-common/types';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- export interface Props {
8
- title: string;
9
- icon?: ReactElement<any>;
10
- hideExpandIcon?: boolean;
11
- options: DropdownOptions<Function>;
12
- dispatchCommand: (command: Function) => void;
13
- mountPoint?: HTMLElement;
14
- boundariesElement?: HTMLElement;
15
- scrollableElement?: HTMLElement;
16
- disabled?: boolean;
17
- tooltip?: string;
18
- buttonTestId?: string;
19
- dropdownWidth?: number;
20
- showSelected?: boolean;
21
- setDisableParentScroll?: (disable: boolean) => void;
22
- editorView?: EditorView;
23
- dropdownListId?: string;
24
- alignDropdownWithToolbar?: boolean;
25
- }
26
- export interface State {
27
- isOpen: boolean;
28
- isOpenedByKeyboard: boolean;
29
- }
30
- export default class Dropdown extends Component<Props, State> {
31
- state: State;
32
- triggerRef: React.RefObject<HTMLDivElement>;
33
- render(): jsx.JSX.Element;
34
- private renderArrayOptions;
35
- private toggleOpen;
36
- private toggleOpenByKeyboard;
37
- private hide;
38
- private hideOnEsc;
39
- private onOpenChanged;
40
- componentDidUpdate(prevProps: Props, prevState: State): void;
41
- }
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ButtonItemProps } from '@atlaskit/menu';
3
- import type { DropdownOptionT } from '@atlaskit/editor-common/types';
4
- import type { WrappedComponentProps } from 'react-intl-next';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- export declare const menuItemDimensions: {
7
- width: number;
8
- height: number;
9
- };
10
- export declare const itemSpacing: number;
11
- export interface Props {
12
- hide: Function;
13
- dispatchCommand: Function;
14
- items: Array<DropdownOptionT<Function>>;
15
- showSelected?: boolean;
16
- editorView?: EditorView;
17
- }
18
- export interface DropdownButtonItemProps extends ButtonItemProps {
19
- onMouseEnter?: (event: React.MouseEvent | React.KeyboardEvent) => void;
20
- onMouseOver?: (event: React.MouseEvent | React.KeyboardEvent) => void;
21
- onMouseLeave?: (event: React.MouseEvent | React.KeyboardEvent) => void;
22
- onMouseOut?: (event: React.MouseEvent | React.KeyboardEvent) => void;
23
- onFocus?: (event: React.MouseEvent | React.KeyboardEvent) => void;
24
- onBlur?: (event: React.MouseEvent | React.KeyboardEvent) => void;
25
- }
26
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
27
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
28
- };
29
- export default _default;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export default function EditorEmojiAddIcon(): JSX.Element;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
- import type { EmojiId } from '@atlaskit/emoji';
5
- export declare const EmojiPickerButton: React.FunctionComponent<{
6
- className?: string;
7
- editorView?: EditorView;
8
- idx?: number;
9
- providerFactory?: ProviderFactory;
10
- title?: string;
11
- onChange?: (emoji: EmojiId) => void;
12
- isSelected?: boolean;
13
- mountPoint?: HTMLElement;
14
- setDisableParentScroll?: (disable: boolean) => void;
15
- }>;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
5
- import type { ExtensionAPI } from '@atlaskit/editor-common/extensions';
6
- import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
7
- interface Props {
8
- node: PMNode;
9
- extensionProvider: Promise<ExtensionProvider>;
10
- editorView: EditorView;
11
- separator?: 'start' | 'end' | 'both';
12
- applyChangeToContextPanel: ApplyChangeHandler | undefined;
13
- extensionApi: ExtensionAPI | undefined;
14
- }
15
- export declare const ExtensionsPlaceholder: (props: Props) => JSX.Element | null;
16
- export {};
@@ -1,23 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { jsx } from '@emotion/react';
4
- import { Component } from 'react';
5
- export interface Props {
6
- mountPoint?: HTMLElement;
7
- boundariesElement?: HTMLElement;
8
- defaultValue?: string;
9
- placeholder?: string;
10
- onBlur?: (text: string) => void;
11
- onSubmit?: (text: string) => void;
12
- }
13
- export interface State {
14
- text: string;
15
- }
16
- export default class TextField extends Component<Props, State> {
17
- constructor(props: Props);
18
- UNSAFE_componentWillReceiveProps(nextProps: Props): void;
19
- handleChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
20
- handleSubmit: (e: React.FormEvent) => void;
21
- handleBlur: (e: React.FocusEvent<{}>) => void;
22
- render(): jsx.JSX.Element;
23
- }
@@ -1,13 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { jsx } from '@emotion/react';
4
- import type { Node } from '@atlaskit/editor-prosemirror/model';
5
- import type { IntlShape } from 'react-intl-next';
6
- interface ScrollButtonsProps {
7
- intl: IntlShape;
8
- scrollContainerRef: React.RefObject<HTMLDivElement>;
9
- node: Node;
10
- disabled: boolean;
11
- }
12
- export declare const ScrollButtons: ({ intl, scrollContainerRef, node, disabled, }: ScrollButtonsProps) => jsx.JSX.Element | null;
13
- export {};
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ValueType } from '@atlaskit/select';
3
- import type { RenderOptionsPropsT, SelectOption } from '@atlaskit/editor-common/types';
4
- export type { RenderOptionsPropsT, SelectOption };
5
- export interface Props {
6
- hideExpandIcon?: boolean;
7
- options: SelectOption[];
8
- dispatchCommand: (command: Function) => void;
9
- mountPoint?: HTMLElement;
10
- boundariesElement?: HTMLElement;
11
- scrollableElement?: HTMLElement;
12
- defaultValue?: SelectOption | null;
13
- placeholder?: string;
14
- onChange?: (change: ValueType<SelectOption>) => void;
15
- width?: number;
16
- filterOption?: ((option: SelectOption, rawInput: string) => boolean) | null;
17
- setDisableParentScroll?: (disable: boolean) => void;
18
- ariaLabel?: string;
19
- classNamePrefix?: string;
20
- }
21
- export default function Search(props: Props): JSX.Element;
@@ -1,2 +0,0 @@
1
- import { FloatingToolbarSeparator } from '@atlaskit/editor-common/ui';
2
- export default FloatingToolbarSeparator;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { WrappedComponentProps } from 'react-intl-next';
3
- import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
- export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
@@ -1,44 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { Node } from '@atlaskit/editor-prosemirror/model';
5
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
6
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
- import type { WrappedComponentProps } from 'react-intl-next';
9
- import type { FeatureFlags, PluginInjectionAPIWithDependencies, OptionalPlugin } from '@atlaskit/editor-common/types';
10
- import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
11
- import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
12
- import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
13
- import type { Item } from '@atlaskit/editor-common/floating-toolbar';
14
- export type { Item };
15
- export interface Props {
16
- items: Array<Item>;
17
- dispatchCommand: (command?: Function) => void;
18
- popupsMountPoint?: HTMLElement;
19
- popupsBoundariesElement?: HTMLElement;
20
- popupsScrollableElement?: HTMLElement;
21
- providerFactory?: ProviderFactory;
22
- className?: string;
23
- focusEditor?: () => void;
24
- editorView?: EditorView;
25
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
26
- target?: HTMLElement;
27
- node: Node;
28
- extensionsProvider?: Promise<ExtensionProvider>;
29
- scrollable?: boolean;
30
- featureFlags: FeatureFlags;
31
- api: PluginInjectionAPIWithDependencies<[
32
- typeof decorationsPlugin,
33
- OptionalPlugin<typeof contextPanelPlugin>,
34
- OptionalPlugin<ExtensionPlugin>
35
- ]> | undefined;
36
- }
37
- export interface State {
38
- scrollDisabled: boolean;
39
- mounted: boolean;
40
- }
41
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
42
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
43
- };
44
- export default _default;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import Loadable from 'react-loadable';
3
- import type { Props } from './Toolbar';
4
- export declare const ToolbarLoader: import("react").ComponentType<Props> & Loadable.LoadableComponent;