@atlaskit/editor-plugin-floating-toolbar 13.0.14 → 13.0.16

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 (34) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/floatingToolbarPlugin/package.json +1 -8
  3. package/floatingToolbarPluginType/package.json +1 -8
  4. package/package.json +3 -3
  5. package/dist/types-ts4.5/entry-points/floatingToolbarPlugin.d.ts +0 -1
  6. package/dist/types-ts4.5/entry-points/floatingToolbarPluginType.d.ts +0 -1
  7. package/dist/types-ts4.5/floatingToolbarPlugin.d.ts +0 -60
  8. package/dist/types-ts4.5/floatingToolbarPluginType.d.ts +0 -63
  9. package/dist/types-ts4.5/index.d.ts +0 -2
  10. package/dist/types-ts4.5/pm-plugins/commands.d.ts +0 -6
  11. package/dist/types-ts4.5/pm-plugins/force-focus/index.d.ts +0 -21
  12. package/dist/types-ts4.5/pm-plugins/toolbar-data/commands.d.ts +0 -3
  13. package/dist/types-ts4.5/pm-plugins/toolbar-data/plugin-factory.d.ts +0 -8
  14. package/dist/types-ts4.5/pm-plugins/toolbar-data/plugin-key.d.ts +0 -3
  15. package/dist/types-ts4.5/pm-plugins/toolbar-data/plugin.d.ts +0 -4
  16. package/dist/types-ts4.5/pm-plugins/toolbar-data/reducer.d.ts +0 -3
  17. package/dist/types-ts4.5/pm-plugins/toolbar-data/types.d.ts +0 -9
  18. package/dist/types-ts4.5/pm-plugins/utils.d.ts +0 -2
  19. package/dist/types-ts4.5/ui/CheckboxModal.d.ts +0 -4
  20. package/dist/types-ts4.5/ui/ConfirmationModal.d.ts +0 -6
  21. package/dist/types-ts4.5/ui/Divider.d.ts +0 -2
  22. package/dist/types-ts4.5/ui/Dropdown.d.ts +0 -57
  23. package/dist/types-ts4.5/ui/DropdownMenu.d.ts +0 -35
  24. package/dist/types-ts4.5/ui/EditorEmojiAddIcon.d.ts +0 -2
  25. package/dist/types-ts4.5/ui/EmojiPickerButton.d.ts +0 -20
  26. package/dist/types-ts4.5/ui/ExpandButton.d.ts +0 -2
  27. package/dist/types-ts4.5/ui/ExtensionsPlaceholder.d.ts +0 -24
  28. package/dist/types-ts4.5/ui/Input.d.ts +0 -13
  29. package/dist/types-ts4.5/ui/ScrollButton.d.ts +0 -12
  30. package/dist/types-ts4.5/ui/ScrollButtons.d.ts +0 -17
  31. package/dist/types-ts4.5/ui/Select.d.ts +0 -20
  32. package/dist/types-ts4.5/ui/SimpleModal.d.ts +0 -4
  33. package/dist/types-ts4.5/ui/Toolbar.d.ts +0 -44
  34. package/dist/types-ts4.5/ui/utils/index.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 13.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.0.15
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 13.0.14
4
16
 
5
17
  ### Patch Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/floatingToolbarPlugin.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/floatingToolbarPlugin.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/floatingToolbarPlugin.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/floatingToolbarPluginType.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/floatingToolbarPluginType.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/floatingToolbarPluginType.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "13.0.14",
3
+ "version": "13.0.16",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/editor-plugin-decorations": "^11.0.0",
32
32
  "@atlaskit/editor-plugin-editor-disabled": "^11.0.0",
33
33
  "@atlaskit/editor-plugin-editor-viewmode": "^13.0.0",
34
- "@atlaskit/editor-plugin-emoji": "^12.0.0",
34
+ "@atlaskit/editor-plugin-emoji": "^12.1.0",
35
35
  "@atlaskit/editor-plugin-extension": "^14.1.0",
36
36
  "@atlaskit/editor-plugin-interaction": "^20.0.0",
37
37
  "@atlaskit/editor-plugin-user-intent": "^9.1.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/primitives": "^19.0.0",
45
45
  "@atlaskit/select": "^21.12.0",
46
- "@atlaskit/tmp-editor-statsig": "^101.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^103.0.0",
47
47
  "@atlaskit/tokens": "^13.4.0",
48
48
  "@atlaskit/tooltip": "^22.6.0",
49
49
  "@babel/runtime": "^7.0.0",
@@ -1 +0,0 @@
1
- export { floatingToolbarPlugin } from '../floatingToolbarPlugin';
@@ -1 +0,0 @@
1
- export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, FloatingToolbarPluginState, FloatingToolbarPluginDependencies, } from '../floatingToolbarPluginType';
@@ -1,60 +0,0 @@
1
- import React from 'react';
2
- import type { IntlShape } from 'react-intl';
3
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
- import type { ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarHandler, UiComponentFactoryParams } from '@atlaskit/editor-common/types';
6
- import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
7
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
8
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
- import type { ConfigWithNodeInfo, FloatingToolbarPlugin, FloatingToolbarPluginState } from './floatingToolbarPluginType';
10
- export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
11
- export declare const floatingToolbarPlugin: FloatingToolbarPlugin;
12
- /**
13
- * React component that renders the floating toolbar UI for the editor.
14
- *
15
- * This component manages the display of floating toolbars based on the current editor state,
16
- * selection, and configuration. It handles visibility conditions, positioning, toolbar items
17
- * consolidation, and confirmation dialogs.
18
- *
19
- * @param props - Component properties
20
- * @param props.pluginInjectionApi - Plugin injection API for accessing other plugin states
21
- * @param props.editorView - ProseMirror EditorView instance
22
- * @param props.popupsMountPoint - DOM element where popups should be mounted
23
- * @param props.popupsBoundariesElement - Element that defines popup boundaries
24
- * @param props.popupsScrollableElement - Scrollable container element for popups
25
- * @param props.providerFactory - Factory for creating various providers
26
- * @param props.dispatchAnalyticsEvent - Function to dispatch analytics events
27
- * @returns JSX element representing the floating toolbar or null if not visible
28
- */
29
- export declare function ContentComponent({ pluginInjectionApi, editorView, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, providerFactory, dispatchAnalyticsEvent, }: Pick<UiComponentFactoryParams, 'editorView' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'providerFactory' | 'dispatchAnalyticsEvent' | 'popupsScrollableElement'> & {
30
- pluginInjectionApi: ExtractInjectionAPI<FloatingToolbarPlugin> | undefined;
31
- } & {
32
- editorView: EditorView;
33
- }): React.JSX.Element | null;
34
- /**
35
- *
36
- * ProseMirror Plugin
37
- *
38
- */
39
- export declare const pluginKey: PluginKey<FloatingToolbarPluginState>;
40
- /**
41
- * Creates a floating toolbar plugin for the ProseMirror editor.
42
- *
43
- * This factory function creates a SafePlugin that manages floating toolbars in the editor.
44
- * It processes an array of floating toolbar handlers and determines which toolbar configuration
45
- * should be active based on the current editor state and selection.
46
- *
47
- * @param options - Configuration object for the floating toolbar plugin
48
- * @param options.floatingToolbarHandlers - Array of handlers that return toolbar configurations
49
- * @param options.getIntl - Function that returns the IntlShape instance for internationalization
50
- * @param options.providerFactory - Factory for creating various providers used by the editor
51
- * @returns A SafePlugin instance that manages floating toolbar state and behavior
52
- */
53
- export declare function floatingToolbarPluginFactory(options: {
54
- api: ExtractInjectionAPI<FloatingToolbarPlugin> | undefined;
55
- floatingToolbarHandlers: Array<FloatingToolbarHandler>;
56
- getIntl: () => IntlShape;
57
- providerFactory: ProviderFactory;
58
- }): SafePlugin<{
59
- getConfigWithNodeInfo: (editorState: EditorState) => ConfigWithNodeInfo | null | undefined;
60
- }>;
@@ -1,63 +0,0 @@
1
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { FloatingToolbarConfig, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
5
- import type { CopyButtonPlugin } from '@atlaskit/editor-plugin-copy-button';
6
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
- import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
8
- import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
9
- import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
10
- import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
11
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
12
- import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
13
- import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
14
- import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
15
- import type { Node, NodeType } from '@atlaskit/editor-prosemirror/model';
16
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
17
- export type ConfigWithNodeInfo = {
18
- config: FloatingToolbarConfig | undefined;
19
- node: Node;
20
- pos: number;
21
- };
22
- export type FloatingToolbarPluginState = {
23
- getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
24
- suppressedToolbar?: boolean;
25
- };
26
- export type FloatingToolbarPluginData = {
27
- confirmDialogForItem?: number;
28
- confirmDialogForItemOption?: number;
29
- };
30
- export type ForceFocusSelector = (selector: string | null) => (tr: Transaction) => Transaction;
31
- /**
32
- * Floating toolbar plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
33
- * from `@atlaskit/editor-core`.
34
- */
35
- export type FloatingToolbarPluginDependencies = [
36
- DecorationsPlugin,
37
- OptionalPlugin<ContextPanelPlugin>,
38
- OptionalPlugin<ExtensionPlugin>,
39
- CopyButtonPlugin,
40
- EditorDisabledPlugin,
41
- OptionalPlugin<EditorViewModePlugin>,
42
- OptionalPlugin<FeatureFlagsPlugin>,
43
- OptionalPlugin<EmojiPlugin>,
44
- OptionalPlugin<UserIntentPlugin>,
45
- OptionalPlugin<InteractionPlugin>,
46
- OptionalPlugin<AnalyticsPlugin>,
47
- OptionalPlugin<ToolbarPlugin>
48
- ];
49
- export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
50
- actions: {
51
- forceFocusSelector: ForceFocusSelector;
52
- };
53
- commands: {
54
- copyNode: (nodeType: NodeType | NodeType[], inputMethod?: INPUT_METHOD) => ({ tr }: {
55
- tr: Transaction;
56
- }) => Transaction;
57
- };
58
- dependencies: FloatingToolbarPluginDependencies;
59
- sharedState: {
60
- configWithNodeInfo: ConfigWithNodeInfo | undefined;
61
- floatingToolbarData: FloatingToolbarPluginData | undefined;
62
- } | undefined;
63
- }>;
@@ -1,2 +0,0 @@
1
- export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, FloatingToolbarPluginState, FloatingToolbarPluginDependencies, } from './floatingToolbarPluginType';
2
- export { floatingToolbarPlugin } from './floatingToolbarPlugin';
@@ -1,6 +0,0 @@
1
- import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { NodeType } from '@atlaskit/editor-prosemirror/model';
3
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
4
- export declare const copyNode: (nodeType: NodeType | Array<NodeType>, editorAnalyticsApi?: EditorAnalyticsAPI | undefined, inputMethod?: INPUT_METHOD) => ({ tr }: {
5
- tr: Transaction;
6
- }) => Transaction;
@@ -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;
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, optionIndex?: number) => Command;
3
- export declare const hideConfirmDialog: () => Command;
@@ -1,8 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Command } from '@atlaskit/editor-common/types';
3
- import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
4
- import type { FloatingToolbarPluginData } from '../../floatingToolbarPluginType';
5
- import type { FloatingToolbarPluginAction } from './types';
6
- export declare const createPluginState: (dispatch: Dispatch, initialState: FloatingToolbarPluginData | ((state: EditorState) => FloatingToolbarPluginData)) => SafeStateField<FloatingToolbarPluginData>;
7
- export declare const createCommand: <A = FloatingToolbarPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
8
- export declare const getPluginState: (state: EditorState) => FloatingToolbarPluginData;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { FloatingToolbarPluginData } from '../../floatingToolbarPluginType';
3
- export declare const pluginKey: PluginKey<FloatingToolbarPluginData>;
@@ -1,4 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import type { FloatingToolbarPluginData } from '../../floatingToolbarPluginType';
4
- export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<FloatingToolbarPluginData>;
@@ -1,3 +0,0 @@
1
- import type { FloatingToolbarPluginData } from '../../floatingToolbarPluginType';
2
- import type { FloatingToolbarPluginAction } from './types';
3
- export declare const reducer: (pluginState: FloatingToolbarPluginData, action: FloatingToolbarPluginAction) => FloatingToolbarPluginData;
@@ -1,9 +0,0 @@
1
- export type FloatingToolbarPluginAction = {
2
- data: {
3
- buttonIndex: number;
4
- optionIndex?: number;
5
- };
6
- type: 'SHOW_CONFIRM_DIALOG';
7
- } | {
8
- type: 'HIDE_CONFIRM_DIALOG';
9
- };
@@ -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,4 +0,0 @@
1
- import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl';
3
- import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
- export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
- export declare const ConfirmationModal: React.FC<WithIntlProps<ConfirmationDialogProps & WrappedComponentProps>> & {
5
- WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps>;
6
- };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Divider: () => React.JSX.Element;
@@ -1,57 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- * @jsxFrag
5
- */
6
- import type { ReactElement } from 'react';
7
- import React, { Component } from 'react';
8
- import { jsx } from '@emotion/react';
9
- import type { CommandDispatch, DropdownOptions, ExtensionDropdownOptions, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
10
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
11
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
12
- export interface Props {
13
- alignDropdownWithToolbar?: boolean;
14
- alignX?: 'left' | 'right' | 'center';
15
- areAnyNewToolbarFlagsEnabled: boolean;
16
- boundariesElement?: HTMLElement;
17
- buttonTestId?: string;
18
- disabled?: boolean;
19
- dispatchCommand: (command: Function) => void;
20
- dropdownListId?: string;
21
- dropdownWidth?: number;
22
- editorView?: EditorView;
23
- footer?: React.ReactNode;
24
- hideExpandIcon?: boolean;
25
- icon?: ReactElement<any>;
26
- iconBefore?: ReactElement<any>;
27
- mountPoint?: HTMLElement;
28
- onClick?: () => void;
29
- onMount?: () => void;
30
- onToggle?: (state: EditorState, dispatch: CommandDispatch | undefined) => boolean;
31
- options: DropdownOptions<Function> | FloatingToolbarOverflowDropdownOptions<Function> | ExtensionDropdownOptions;
32
- /** If true, the component will have pulse onboarding effect around it. */
33
- pulse?: boolean;
34
- scrollableElement?: HTMLElement;
35
- setDisableParentScroll?: (disable: boolean) => void;
36
- shouldFitContainer?: boolean;
37
- showSelected?: boolean;
38
- title: string;
39
- tooltip?: string;
40
- }
41
- export interface State {
42
- isOpen: boolean;
43
- isOpenedByKeyboard: boolean;
44
- }
45
- export default class Dropdown extends Component<Props, State> {
46
- state: State;
47
- triggerRef: React.RefObject<HTMLDivElement>;
48
- render(): jsx.JSX.Element;
49
- private makeArrayOptionsFromCallback;
50
- private renderArrayOptions;
51
- private toggleOpen;
52
- private toggleOpenByKeyboard;
53
- private hide;
54
- private hideOnEsc;
55
- private onOpenChanged;
56
- componentDidUpdate(prevProps: Props, prevState: State): void;
57
- }
@@ -1,35 +0,0 @@
1
- import type { ComponentType, FC } from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { ExtensionAPI, ExtensionProvider } from '@atlaskit/editor-common/extensions';
4
- import type { DropdownOptionT, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { ButtonItemProps } from '@atlaskit/menu';
7
- export declare const menuItemDimensions: {
8
- width: number;
9
- height: number;
10
- };
11
- export declare const itemSpacing = 4;
12
- export interface Props {
13
- areAnyNewToolbarFlagsEnabled?: boolean;
14
- dispatchCommand: Function;
15
- editorView?: EditorView;
16
- hide: Function;
17
- items: Array<DropdownOptionT<Function>> | FloatingToolbarOverflowDropdownOptions<Function>;
18
- showSelected?: boolean;
19
- }
20
- export type ExtensionProps = {
21
- extensionApi?: ExtensionAPI;
22
- extensionProvider?: Promise<ExtensionProvider>;
23
- };
24
- export interface DropdownButtonItemProps extends ButtonItemProps {
25
- onBlur?: (event: React.MouseEvent | React.KeyboardEvent) => void;
26
- onFocus?: (event: React.MouseEvent | React.KeyboardEvent) => void;
27
- onMouseEnter?: (event: React.MouseEvent | React.KeyboardEvent) => void;
28
- onMouseLeave?: (event: React.MouseEvent | React.KeyboardEvent) => void;
29
- onMouseOut?: (event: React.MouseEvent | React.KeyboardEvent) => void;
30
- onMouseOver?: (event: React.MouseEvent | React.KeyboardEvent) => void;
31
- }
32
- declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
33
- WrappedComponent: ComponentType<Props & WrappedComponentProps>;
34
- };
35
- export default _default_1;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function EditorEmojiAddIcon(): React.JSX.Element;
@@ -1,20 +0,0 @@
1
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { EmojiId } from '@atlaskit/emoji';
5
- import type { FloatingToolbarPlugin } from '../floatingToolbarPluginType';
6
- type EmojiPickerButtonReturnType = (props: {
7
- className?: string;
8
- editorView?: EditorView;
9
- idx?: number;
10
- isSelected?: boolean;
11
- mountPoint?: HTMLElement;
12
- onChange?: (emoji: EmojiId) => void;
13
- pluginInjectionApi?: ExtractInjectionAPI<FloatingToolbarPlugin>;
14
- popupsBoundariesElement?: HTMLElement;
15
- providerFactory?: ProviderFactory;
16
- setDisableParentScroll?: (disable: boolean) => void;
17
- title?: string;
18
- }) => JSX.Element;
19
- export declare const EmojiPickerButton: EmojiPickerButtonReturnType;
20
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function ExpandButton(): React.JSX.Element;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import type { ExtensionAPI, ExtensionProvider } from '@atlaskit/editor-common/extensions';
3
- import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
4
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- interface Props {
7
- alignDropdownWithToolbar?: boolean;
8
- applyChangeToContextPanel: ApplyChangeHandler | undefined;
9
- areAnyNewToolbarFlagsEnabled: boolean;
10
- dispatchCommand?: (command: Function) => void;
11
- editorView: EditorView;
12
- extensionApi: ExtensionAPI | undefined;
13
- extensionProvider: Promise<ExtensionProvider>;
14
- node: PMNode;
15
- popupsBoundariesElement?: HTMLElement;
16
- popupsMountPoint?: HTMLElement;
17
- popupsScrollableElement?: HTMLElement;
18
- scrollable?: boolean;
19
- separator?: 'start' | 'end' | 'both';
20
- setDisableParentScroll?: (disable: boolean) => void;
21
- setDisableScroll?: (disable: boolean) => void;
22
- }
23
- export declare const ExtensionsPlaceholder: (props: Props) => React.JSX.Element | null;
24
- export {};
@@ -1,13 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- export interface Props {
3
- boundariesElement?: HTMLElement;
4
- defaultValue?: string;
5
- mountPoint?: HTMLElement;
6
- onBlur?: (text: string) => void;
7
- onSubmit?: (text: string) => void;
8
- placeholder?: string;
9
- }
10
- export interface State {
11
- text: string;
12
- }
13
- export declare const Input: (props: Props) => jsx.JSX.Element;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { IntlShape } from 'react-intl';
3
- import type { Node } from '@atlaskit/editor-prosemirror/model';
4
- type ScrollButtonProps = {
5
- disabled: boolean;
6
- intl: IntlShape;
7
- node: Node;
8
- scrollContainerRef: React.RefObject<HTMLDivElement>;
9
- side: 'left' | 'right';
10
- };
11
- export declare const ScrollButton: ({ intl, scrollContainerRef, node, disabled, side, }: ScrollButtonProps) => false | React.JSX.Element;
12
- export {};
@@ -1,17 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
- import type { IntlShape } from 'react-intl';
8
- import type { Node } from '@atlaskit/editor-prosemirror/model';
9
- interface ScrollButtonsProps {
10
- areAnyNewToolbarFlagsEnabled: boolean;
11
- disabled: boolean;
12
- intl: IntlShape;
13
- node: Node;
14
- scrollContainerRef: React.RefObject<HTMLDivElement>;
15
- }
16
- export declare const ScrollButtons: ({ intl, scrollContainerRef, node, disabled, areAnyNewToolbarFlagsEnabled, }: ScrollButtonsProps) => jsx.JSX.Element | null;
17
- export {};
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import type { SelectOption } from '@atlaskit/editor-common/types';
3
- import type { ValueType } from '@atlaskit/select';
4
- export interface Props {
5
- ariaLabel?: string;
6
- boundariesElement?: HTMLElement;
7
- classNamePrefix?: string;
8
- defaultValue?: SelectOption | null;
9
- dispatchCommand: (command: Function) => void;
10
- filterOption?: ((option: SelectOption, rawInput: string) => boolean) | null;
11
- hideExpandIcon?: boolean;
12
- mountPoint?: HTMLElement;
13
- onChange?: (change: ValueType<SelectOption>) => void;
14
- options: SelectOption[];
15
- placeholder?: string;
16
- scrollableElement?: HTMLElement;
17
- setDisableParentScroll?: (disable: boolean) => void;
18
- width?: number;
19
- }
20
- export default function Search(props: Props): React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl';
3
- import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
4
- export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => React.JSX.Element;
@@ -1,44 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
9
- import type { Item } from '@atlaskit/editor-common/floating-toolbar';
10
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
11
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
12
- import type { Node } from '@atlaskit/editor-prosemirror/model';
13
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
14
- import type { FloatingToolbarPlugin } from '../floatingToolbarPluginType';
15
- export interface Props {
16
- api: ExtractInjectionAPI<FloatingToolbarPlugin> | undefined;
17
- className?: string;
18
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
19
- dispatchCommand: (command?: Function) => void;
20
- editorView?: EditorView;
21
- extensionsProvider?: Promise<ExtensionProvider>;
22
- focusEditor?: () => void;
23
- groupLabel?: string;
24
- items: Array<Item>;
25
- mediaAssistiveMessage?: string;
26
- node: Node;
27
- popupsBoundariesElement?: HTMLElement;
28
- popupsMountPoint?: HTMLElement;
29
- popupsScrollableElement?: HTMLElement;
30
- providerFactory?: ProviderFactory;
31
- scrollable?: boolean;
32
- shouldFitContainer?: boolean;
33
- target?: HTMLElement;
34
- }
35
- type GroupedItems = (Item | Item[])[];
36
- export declare function groupItems(items: Item[], areAnyNewToolbarFlagsEnabled: boolean): GroupedItems;
37
- export interface State {
38
- mounted: boolean;
39
- scrollDisabled: boolean;
40
- }
41
- declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
42
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
43
- };
44
- export default _default_1;
@@ -1,2 +0,0 @@
1
- import type { Command, FloatingToolbarOverflowDropdown } from '@atlaskit/editor-common/types';
2
- export declare const consolidateOverflowDropdownItems: (overflowDropdowns: FloatingToolbarOverflowDropdown<Command>[]) => FloatingToolbarOverflowDropdown<Command>;