@atlaskit/editor-core 187.48.6 → 187.48.8

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 (142) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/labs/next/presets/default.js +2 -2
  3. package/dist/cjs/plugins/index.js +0 -7
  4. package/dist/cjs/version-wrapper.js +1 -1
  5. package/dist/es2019/labs/next/presets/default.js +1 -1
  6. package/dist/es2019/plugins/index.js +0 -1
  7. package/dist/es2019/version-wrapper.js +1 -1
  8. package/dist/esm/labs/next/presets/default.js +1 -1
  9. package/dist/esm/plugins/index.js +0 -1
  10. package/dist/esm/version-wrapper.js +1 -1
  11. package/dist/types/plugins/index.d.ts +0 -1
  12. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  13. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  14. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  15. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  16. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  17. package/package.json +7 -3
  18. package/dist/cjs/plugins/floating-toolbar/index.js +0 -386
  19. package/dist/cjs/plugins/floating-toolbar/pm-plugins/force-focus/index.js +0 -73
  20. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.js +0 -26
  21. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +0 -16
  22. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.js +0 -9
  23. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.js +0 -16
  24. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +0 -25
  25. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/types.js +0 -5
  26. package/dist/cjs/plugins/floating-toolbar/ui/CheckboxModal.js +0 -83
  27. package/dist/cjs/plugins/floating-toolbar/ui/ConfirmationModal.js +0 -22
  28. package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +0 -208
  29. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +0 -205
  30. package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +0 -32
  31. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +0 -120
  32. package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +0 -179
  33. package/dist/cjs/plugins/floating-toolbar/ui/Input.js +0 -78
  34. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +0 -152
  35. package/dist/cjs/plugins/floating-toolbar/ui/Select.js +0 -74
  36. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +0 -9
  37. package/dist/cjs/plugins/floating-toolbar/ui/SimpleModal.js +0 -42
  38. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +0 -427
  39. package/dist/cjs/plugins/floating-toolbar/ui/ToolbarLoader.js +0 -25
  40. package/dist/cjs/plugins/floating-toolbar/ui/messages.js +0 -55
  41. package/dist/cjs/plugins/floating-toolbar/ui/styles.js +0 -79
  42. package/dist/cjs/plugins/floating-toolbar/utils.js +0 -22
  43. package/dist/es2019/plugins/floating-toolbar/index.js +0 -368
  44. package/dist/es2019/plugins/floating-toolbar/pm-plugins/force-focus/index.js +0 -63
  45. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.js +0 -10
  46. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +0 -8
  47. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.js +0 -2
  48. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.js +0 -9
  49. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +0 -16
  50. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/types.js +0 -1
  51. package/dist/es2019/plugins/floating-toolbar/ui/CheckboxModal.js +0 -71
  52. package/dist/es2019/plugins/floating-toolbar/ui/ConfirmationModal.js +0 -13
  53. package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +0 -180
  54. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +0 -191
  55. package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +0 -25
  56. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +0 -107
  57. package/dist/es2019/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +0 -100
  58. package/dist/es2019/plugins/floating-toolbar/ui/Input.js +0 -52
  59. package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +0 -137
  60. package/dist/es2019/plugins/floating-toolbar/ui/Select.js +0 -62
  61. package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +0 -2
  62. package/dist/es2019/plugins/floating-toolbar/ui/SimpleModal.js +0 -35
  63. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +0 -419
  64. package/dist/es2019/plugins/floating-toolbar/ui/ToolbarLoader.js +0 -6
  65. package/dist/es2019/plugins/floating-toolbar/ui/messages.js +0 -48
  66. package/dist/es2019/plugins/floating-toolbar/ui/styles.js +0 -64
  67. package/dist/es2019/plugins/floating-toolbar/utils.js +0 -16
  68. package/dist/esm/plugins/floating-toolbar/index.js +0 -375
  69. package/dist/esm/plugins/floating-toolbar/pm-plugins/force-focus/index.js +0 -64
  70. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.js +0 -18
  71. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +0 -8
  72. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.js +0 -2
  73. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.js +0 -9
  74. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +0 -17
  75. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/types.js +0 -1
  76. package/dist/esm/plugins/floating-toolbar/ui/CheckboxModal.js +0 -72
  77. package/dist/esm/plugins/floating-toolbar/ui/ConfirmationModal.js +0 -14
  78. package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +0 -199
  79. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +0 -197
  80. package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +0 -25
  81. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +0 -113
  82. package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +0 -168
  83. package/dist/esm/plugins/floating-toolbar/ui/Input.js +0 -70
  84. package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +0 -141
  85. package/dist/esm/plugins/floating-toolbar/ui/Select.js +0 -64
  86. package/dist/esm/plugins/floating-toolbar/ui/Separator.js +0 -2
  87. package/dist/esm/plugins/floating-toolbar/ui/SimpleModal.js +0 -31
  88. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +0 -417
  89. package/dist/esm/plugins/floating-toolbar/ui/ToolbarLoader.js +0 -12
  90. package/dist/esm/plugins/floating-toolbar/ui/messages.js +0 -48
  91. package/dist/esm/plugins/floating-toolbar/ui/styles.js +0 -68
  92. package/dist/esm/plugins/floating-toolbar/utils.js +0 -16
  93. package/dist/types/plugins/floating-toolbar/index.d.ts +0 -13
  94. package/dist/types/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +0 -21
  95. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +0 -3
  96. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +0 -1
  97. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +0 -3
  98. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +0 -3
  99. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.d.ts +0 -3
  100. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +0 -8
  101. package/dist/types/plugins/floating-toolbar/ui/CheckboxModal.d.ts +0 -4
  102. package/dist/types/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +0 -6
  103. package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +0 -41
  104. package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +0 -29
  105. package/dist/types/plugins/floating-toolbar/ui/EditorEmojiAddIcon.d.ts +0 -2
  106. package/dist/types/plugins/floating-toolbar/ui/EmojiPickerButton.d.ts +0 -15
  107. package/dist/types/plugins/floating-toolbar/ui/ExtensionsPlaceholder.d.ts +0 -16
  108. package/dist/types/plugins/floating-toolbar/ui/Input.d.ts +0 -23
  109. package/dist/types/plugins/floating-toolbar/ui/ScrollButtons.d.ts +0 -13
  110. package/dist/types/plugins/floating-toolbar/ui/Select.d.ts +0 -21
  111. package/dist/types/plugins/floating-toolbar/ui/Separator.d.ts +0 -2
  112. package/dist/types/plugins/floating-toolbar/ui/SimpleModal.d.ts +0 -4
  113. package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +0 -44
  114. package/dist/types/plugins/floating-toolbar/ui/ToolbarLoader.d.ts +0 -4
  115. package/dist/types/plugins/floating-toolbar/ui/messages.d.ts +0 -48
  116. package/dist/types/plugins/floating-toolbar/ui/styles.d.ts +0 -20
  117. package/dist/types/plugins/floating-toolbar/utils.d.ts +0 -2
  118. package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +0 -13
  119. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +0 -21
  120. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +0 -3
  121. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +0 -1
  122. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +0 -3
  123. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +0 -3
  124. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.d.ts +0 -3
  125. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +0 -8
  126. package/dist/types-ts4.5/plugins/floating-toolbar/ui/CheckboxModal.d.ts +0 -4
  127. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +0 -6
  128. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Dropdown.d.ts +0 -41
  129. package/dist/types-ts4.5/plugins/floating-toolbar/ui/DropdownMenu.d.ts +0 -29
  130. package/dist/types-ts4.5/plugins/floating-toolbar/ui/EditorEmojiAddIcon.d.ts +0 -2
  131. package/dist/types-ts4.5/plugins/floating-toolbar/ui/EmojiPickerButton.d.ts +0 -15
  132. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ExtensionsPlaceholder.d.ts +0 -16
  133. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Input.d.ts +0 -23
  134. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ScrollButtons.d.ts +0 -13
  135. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Select.d.ts +0 -21
  136. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Separator.d.ts +0 -2
  137. package/dist/types-ts4.5/plugins/floating-toolbar/ui/SimpleModal.d.ts +0 -4
  138. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +0 -44
  139. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ToolbarLoader.d.ts +0 -4
  140. package/dist/types-ts4.5/plugins/floating-toolbar/ui/messages.d.ts +0 -48
  141. package/dist/types-ts4.5/plugins/floating-toolbar/ui/styles.d.ts +0 -20
  142. 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;