@atlaskit/editor-core 187.15.1 → 187.16.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.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/plugins/media/toolbar/alt-text.js +5 -2
- package/dist/cjs/plugins/media/toolbar/index.js +7 -5
- package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +3 -4
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -2
- package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +13 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/index.js +0 -1
- package/dist/es2019/plugins/media/toolbar/alt-text.js +6 -4
- package/dist/es2019/plugins/media/toolbar/index.js +7 -5
- package/dist/es2019/plugins/media/toolbar/linking-toolbar-appearance.js +1 -1
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
- package/dist/es2019/plugins/panel/pm-plugins/keymaps.js +13 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/plugins/media/toolbar/alt-text.js +6 -4
- package/dist/esm/plugins/media/toolbar/index.js +7 -5
- package/dist/esm/plugins/media/toolbar/linking-toolbar-appearance.js +1 -1
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
- package/dist/esm/plugins/panel/pm-plugins/keymaps.js +13 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/plugins/annotation/toolbar.d.ts +1 -1
- package/dist/types/plugins/code-block/toolbar.d.ts +1 -2
- package/dist/types/plugins/copy-button/toolbar.d.ts +1 -1
- package/dist/types/plugins/expand/toolbar.d.ts +1 -1
- package/dist/types/plugins/extension/toolbar.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/index.d.ts +3 -6
- package/dist/types/plugins/floating-toolbar/ui/CheckboxModal.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/ui/SimpleModal.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +1 -1
- package/dist/types/plugins/layout/index.d.ts +1 -1
- package/dist/types/plugins/layout/toolbar.d.ts +1 -1
- package/dist/types/plugins/media/toolbar/alt-text.d.ts +3 -1
- package/dist/types/plugins/media/toolbar/index.d.ts +1 -1
- package/dist/types/plugins/media/toolbar/linking.d.ts +1 -1
- package/dist/types/plugins/panel/toolbar.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +0 -5
- package/dist/types-ts4.5/plugins/annotation/toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/code-block/toolbar.d.ts +1 -2
- package/dist/types-ts4.5/plugins/copy-button/toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/extension/toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +3 -6
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/CheckboxModal.d.ts +2 -2
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +2 -2
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/Dropdown.d.ts +1 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/DropdownMenu.d.ts +1 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/SimpleModal.d.ts +2 -2
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/layout/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/toolbar/alt-text.d.ts +3 -1
- package/dist/types-ts4.5/plugins/media/toolbar/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/toolbar/linking.d.ts +1 -1
- package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +1 -1
- package/package.json +2 -2
- package/report.api.md +0 -46
- package/tmp/api-report-tmp.d.ts +0 -44
- package/dist/cjs/plugins/floating-toolbar/types.js +0 -5
- package/dist/cjs/plugins/floating-toolbar/ui/types.js +0 -5
- package/dist/es2019/plugins/floating-toolbar/types.js +0 -1
- package/dist/es2019/plugins/floating-toolbar/ui/types.js +0 -1
- package/dist/esm/plugins/floating-toolbar/types.js +0 -1
- package/dist/esm/plugins/floating-toolbar/ui/types.js +0 -1
- package/dist/types/plugins/floating-toolbar/types.d.ts +0 -1
- package/dist/types/plugins/floating-toolbar/ui/types.d.ts +0 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/types.d.ts +0 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/types.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { ConfirmationDialogProps } from '
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { ConfirmationDialogProps } from '
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const ConfirmationModal: React.FC<import("react-intl-next").WithIntlProps<ConfirmationDialogProps & WrappedComponentProps<"intl">>> & {
|
|
5
5
|
WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps<"intl">>;
|
|
6
6
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
|
-
import type { DropdownOptions } from '
|
|
5
|
+
import type { DropdownOptions } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
export interface Props {
|
|
8
8
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ButtonItemProps } from '@atlaskit/menu';
|
|
3
|
-
import type { DropdownOptionT } from '
|
|
3
|
+
import type { DropdownOptionT } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
export declare const menuItemDimensions: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { ConfirmationDialogProps } from '
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
|
5
5
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
import type { FloatingToolbarItem } from '
|
|
8
|
+
import type { FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
10
10
|
import type { FeatureFlags, PluginInjectionAPIWithDependencies, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
11
11
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
3
|
-
import { LayoutPluginOptions } from './types';
|
|
3
|
+
import type { LayoutPluginOptions } from './types';
|
|
4
4
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
export { pluginKey };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { FloatingToolbarConfig } from '
|
|
3
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
export declare const layoutToolbarTitle = "Layout floating controls";
|
|
6
6
|
export declare const buildToolbar: (state: EditorState, intl: IntlShape, pos: number, _allowBreakout: boolean, addSidebarLayouts: boolean, allowSingleColumnLayout: boolean, hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarConfig | undefined;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
|
-
import type { FloatingToolbarButton, FloatingToolbarCustom, FloatingToolbarConfig } from '
|
|
2
|
+
import type { FloatingToolbarButton, FloatingToolbarCustom, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Command } from '../../../types';
|
|
4
4
|
import type { MediaToolbarBaseConfig } from '../types';
|
|
5
5
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import type { ForceFocusSelector } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
6
7
|
export declare const altTextButton: (intl: IntlShape, state: EditorState) => FloatingToolbarButton<Command>;
|
|
7
8
|
export declare const altTextEditComponent: (options?: AltTextToolbarOptions) => FloatingToolbarCustom<Command>;
|
|
8
9
|
export interface AltTextToolbarOptions {
|
|
9
10
|
altTextValidator?: (value: string) => string[];
|
|
11
|
+
forceFocusSelector?: ForceFocusSelector;
|
|
10
12
|
}
|
|
11
13
|
export declare const getAltTextToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, options?: AltTextToolbarOptions) => FloatingToolbarConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { IntlShape } from 'react-intl-next';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { FloatingToolbarConfig } from '
|
|
4
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { MediaFloatingToolbarOptions } from '../types';
|
|
6
6
|
import type mediaPlugin from '../index';
|
|
7
7
|
export declare const floatingToolbar: (state: EditorState, intl: IntlShape, options: MediaFloatingToolbarOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined) => FloatingToolbarConfig | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { IntlShape } from 'react-intl-next';
|
|
4
|
-
import type { FloatingToolbarConfig } from '
|
|
4
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { MediaLinkingState } from '../pm-plugins/linking';
|
|
6
6
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
7
|
import type { MediaToolbarBaseConfig } from '../types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FloatingToolbarConfig, FloatingToolbarItem } from '
|
|
1
|
+
import type { FloatingToolbarConfig, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { EmojiInfo, PanelPluginOptions } from './types';
|
|
3
3
|
import type { IntlShape } from 'react-intl-next';
|
|
4
4
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
@@ -71,11 +71,6 @@ export { selectionPluginKey } from './plugins/mobile-selection';
|
|
|
71
71
|
export type { SelectionData, SelectionDataState, } from './plugins/mobile-selection';
|
|
72
72
|
export { insertExpand } from './plugins/expand/commands';
|
|
73
73
|
export { default as WithPluginState } from './ui/WithPluginState';
|
|
74
|
-
export { pluginKey as floatingToolbarPluginKey } from './plugins/floating-toolbar';
|
|
75
|
-
export type { FloatingToolbarPluginState } from './plugins/floating-toolbar';
|
|
76
|
-
export type { FloatingToolbarConfig, FloatingToolbarItem, FloatingToolbarButton, FloatingToolbarDropdown, FloatingToolbarListPicker, FloatingToolbarSelect, FloatingToolbarColorPicker, FloatingToolbarDatePicker, FloatingToolbarInput, FloatingToolbarEmojiPicker, } from './plugins/floating-toolbar/types';
|
|
77
|
-
export type { DropdownOptionT } from './plugins/floating-toolbar/ui/types';
|
|
78
|
-
export type { SelectOption } from './plugins/floating-toolbar/ui/Select';
|
|
79
74
|
export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ui/ColorPalette/Palettes/statusColorPalette';
|
|
80
75
|
export type { PaletteColor } from './ui/ColorPalette/Palettes/type';
|
|
81
76
|
export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { FloatingToolbarConfig } from '
|
|
3
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const annotationMessages: {
|
|
5
5
|
createComment: {
|
|
6
6
|
id: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { FloatingToolbarHandler } from '
|
|
1
|
+
import type { FloatingToolbarHandler, SelectOption } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
3
|
-
import type { SelectOption } from '../floating-toolbar/ui/Select';
|
|
4
3
|
export declare const messages: {
|
|
5
4
|
selectLanguage: {
|
|
6
5
|
id: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { Command } from '../../../src/types';
|
|
5
|
-
import type { FloatingToolbarButton, FloatingToolbarItem, MarkOptions, NodeOptions } from '
|
|
5
|
+
import type { FloatingToolbarButton, FloatingToolbarItem, MarkOptions, NodeOptions } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
7
7
|
export declare function getCopyButtonConfig(options: MarkOptions | NodeOptions, hoverDecoration: HoverDecorationHandler | undefined): FloatingToolbarButton<Command>;
|
|
8
8
|
export declare const showCopyButton: (state?: EditorState) => import("prosemirror-state").Plugin<any> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FloatingToolbarHandler } from '
|
|
1
|
+
import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
3
3
|
export declare const getToolbarConfig: (hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarHandler;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FloatingToolbarHandler } from '
|
|
1
|
+
import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
3
3
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
4
4
|
export declare const messages: {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { Selection
|
|
1
|
+
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { FloatingToolbarConfig } from '
|
|
4
|
-
import type { FloatingToolbarPlugin, ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
5
|
-
export type FloatingToolbarPluginState = {
|
|
6
|
-
getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
|
|
7
|
-
};
|
|
3
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { FloatingToolbarPlugin, ConfigWithNodeInfo, FloatingToolbarPluginState } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
8
5
|
export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
|
|
9
6
|
declare const floatingToolbarPlugin: FloatingToolbarPlugin;
|
|
10
7
|
export default floatingToolbarPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { ConfirmationDialogProps } from '
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const CheckboxModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { ConfirmationDialogProps } from '
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const ConfirmationModal: React.FC<import("react-intl-next").WithIntlProps<ConfirmationDialogProps & WrappedComponentProps<"intl">>> & {
|
|
5
5
|
WrappedComponent: React.ComponentType<ConfirmationDialogProps & WrappedComponentProps<"intl">>;
|
|
6
6
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
|
-
import type { DropdownOptions } from '
|
|
5
|
+
import type { DropdownOptions } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
export interface Props {
|
|
8
8
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ButtonItemProps } from '@atlaskit/menu';
|
|
3
|
-
import type { DropdownOptionT } from '
|
|
3
|
+
import type { DropdownOptionT } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
export declare const menuItemDimensions: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { ConfirmationDialogProps } from '
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { ConfirmationDialogProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const SimpleModal: (props: ConfirmationDialogProps & WrappedComponentProps) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
|
5
5
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
import type { FloatingToolbarItem } from '
|
|
8
|
+
import type { FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
10
10
|
import type { FeatureFlags, PluginInjectionAPIWithDependencies, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
11
11
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
3
|
-
import { LayoutPluginOptions } from './types';
|
|
3
|
+
import type { LayoutPluginOptions } from './types';
|
|
4
4
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
export { pluginKey };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { FloatingToolbarConfig } from '
|
|
3
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
export declare const layoutToolbarTitle = "Layout floating controls";
|
|
6
6
|
export declare const buildToolbar: (state: EditorState, intl: IntlShape, pos: number, _allowBreakout: boolean, addSidebarLayouts: boolean, allowSingleColumnLayout: boolean, hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarConfig | undefined;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
|
-
import type { FloatingToolbarButton, FloatingToolbarCustom, FloatingToolbarConfig } from '
|
|
2
|
+
import type { FloatingToolbarButton, FloatingToolbarCustom, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Command } from '../../../types';
|
|
4
4
|
import type { MediaToolbarBaseConfig } from '../types';
|
|
5
5
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import type { ForceFocusSelector } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
6
7
|
export declare const altTextButton: (intl: IntlShape, state: EditorState) => FloatingToolbarButton<Command>;
|
|
7
8
|
export declare const altTextEditComponent: (options?: AltTextToolbarOptions) => FloatingToolbarCustom<Command>;
|
|
8
9
|
export interface AltTextToolbarOptions {
|
|
9
10
|
altTextValidator?: (value: string) => string[];
|
|
11
|
+
forceFocusSelector?: ForceFocusSelector;
|
|
10
12
|
}
|
|
11
13
|
export declare const getAltTextToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, options?: AltTextToolbarOptions) => FloatingToolbarConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { IntlShape } from 'react-intl-next';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { FloatingToolbarConfig } from '
|
|
4
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { MediaFloatingToolbarOptions } from '../types';
|
|
6
6
|
import type mediaPlugin from '../index';
|
|
7
7
|
export declare const floatingToolbar: (state: EditorState, intl: IntlShape, options: MediaFloatingToolbarOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined) => FloatingToolbarConfig | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { IntlShape } from 'react-intl-next';
|
|
4
|
-
import type { FloatingToolbarConfig } from '
|
|
4
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { MediaLinkingState } from '../pm-plugins/linking';
|
|
6
6
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
7
|
import type { MediaToolbarBaseConfig } from '../types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FloatingToolbarConfig, FloatingToolbarItem } from '
|
|
1
|
+
import type { FloatingToolbarConfig, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { EmojiInfo, PanelPluginOptions } from './types';
|
|
3
3
|
import type { IntlShape } from 'react-intl-next';
|
|
4
4
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.
|
|
3
|
+
"version": "187.16.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
50
50
|
"@atlaskit/avatar": "^21.3.0",
|
|
51
51
|
"@atlaskit/avatar-group": "^9.3.0",
|
|
52
|
-
"@atlaskit/button": "^16.
|
|
52
|
+
"@atlaskit/button": "^16.9.0",
|
|
53
53
|
"@atlaskit/calendar": "^13.1.0",
|
|
54
54
|
"@atlaskit/checkbox": "^12.6.0",
|
|
55
55
|
"@atlaskit/code": "^14.6.0",
|
package/report.api.md
CHANGED
|
@@ -50,7 +50,6 @@ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
|
50
50
|
import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
|
|
51
51
|
import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
52
52
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
53
|
-
import { DropdownOptionT } from '@atlaskit/editor-common/types';
|
|
54
53
|
import type { EditorActionsOptions } from '@atlaskit/editor-common/types';
|
|
55
54
|
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
56
55
|
import { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
@@ -77,17 +76,7 @@ import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
|
|
|
77
76
|
import { FC } from 'react';
|
|
78
77
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
79
78
|
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
80
|
-
import { FloatingToolbarButton } from '@atlaskit/editor-common/types';
|
|
81
|
-
import { FloatingToolbarColorPicker } from '@atlaskit/editor-common/types';
|
|
82
|
-
import { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
83
|
-
import { FloatingToolbarDatePicker } from '@atlaskit/editor-common/types';
|
|
84
|
-
import { FloatingToolbarDropdown } from '@atlaskit/editor-common/types';
|
|
85
|
-
import { FloatingToolbarEmojiPicker } from '@atlaskit/editor-common/types';
|
|
86
|
-
import { FloatingToolbarInput } from '@atlaskit/editor-common/types';
|
|
87
|
-
import { FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
88
|
-
import { FloatingToolbarListPicker } from '@atlaskit/editor-common/types';
|
|
89
79
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
90
|
-
import { FloatingToolbarSelect } from '@atlaskit/editor-common/types';
|
|
91
80
|
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
92
81
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
93
82
|
import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
|
|
@@ -154,7 +143,6 @@ import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
|
154
143
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
155
144
|
import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
|
|
156
145
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
157
|
-
import type { SelectOption } from '@atlaskit/editor-common/types';
|
|
158
146
|
import { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
159
147
|
import type { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
160
148
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
@@ -557,8 +545,6 @@ type DefaultPresetPluginOptions = {
|
|
|
557
545
|
// @public
|
|
558
546
|
export const deleteDate: () => Command;
|
|
559
547
|
|
|
560
|
-
export { DropdownOptionT };
|
|
561
|
-
|
|
562
548
|
// @public (undocumented)
|
|
563
549
|
export class Editor extends React_2.Component<EditorProps> {
|
|
564
550
|
constructor(props: EditorProps);
|
|
@@ -1044,36 +1030,6 @@ type FindReplaceOptions = {
|
|
|
1044
1030
|
allowMatchCase?: boolean;
|
|
1045
1031
|
};
|
|
1046
1032
|
|
|
1047
|
-
export { FloatingToolbarButton };
|
|
1048
|
-
|
|
1049
|
-
export { FloatingToolbarColorPicker };
|
|
1050
|
-
|
|
1051
|
-
export { FloatingToolbarConfig };
|
|
1052
|
-
|
|
1053
|
-
export { FloatingToolbarDatePicker };
|
|
1054
|
-
|
|
1055
|
-
export { FloatingToolbarDropdown };
|
|
1056
|
-
|
|
1057
|
-
export { FloatingToolbarEmojiPicker };
|
|
1058
|
-
|
|
1059
|
-
export { FloatingToolbarInput };
|
|
1060
|
-
|
|
1061
|
-
export { FloatingToolbarItem };
|
|
1062
|
-
|
|
1063
|
-
export { FloatingToolbarListPicker };
|
|
1064
|
-
|
|
1065
|
-
// @public
|
|
1066
|
-
export const floatingToolbarPluginKey: PluginKey<FloatingToolbarPluginState>;
|
|
1067
|
-
|
|
1068
|
-
// @public (undocumented)
|
|
1069
|
-
export type FloatingToolbarPluginState = {
|
|
1070
|
-
getConfigWithNodeInfo: (
|
|
1071
|
-
state: EditorState,
|
|
1072
|
-
) => ConfigWithNodeInfo | null | undefined;
|
|
1073
|
-
};
|
|
1074
|
-
|
|
1075
|
-
export { FloatingToolbarSelect };
|
|
1076
|
-
|
|
1077
1033
|
export { GapCursorSelection };
|
|
1078
1034
|
|
|
1079
1035
|
export { GapCursorSide };
|
|
@@ -1978,8 +1934,6 @@ export const selectionPluginKey: PluginKey<any>;
|
|
|
1978
1934
|
// @public (undocumented)
|
|
1979
1935
|
interface SelectionPluginOptions extends LongPressSelectionPluginOptions {}
|
|
1980
1936
|
|
|
1981
|
-
export { SelectOption };
|
|
1982
|
-
|
|
1983
1937
|
// @public (undocumented)
|
|
1984
1938
|
export function setBlockType(name: string): Command_2;
|
|
1985
1939
|
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
|
39
39
|
import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
|
|
40
40
|
import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
41
41
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
42
|
-
import { DropdownOptionT } from '@atlaskit/editor-common/types';
|
|
43
42
|
import type { EditorActionsOptions } from '@atlaskit/editor-common/types';
|
|
44
43
|
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
45
44
|
import { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
@@ -66,17 +65,7 @@ import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
|
|
|
66
65
|
import { FC } from 'react';
|
|
67
66
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
68
67
|
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
69
|
-
import { FloatingToolbarButton } from '@atlaskit/editor-common/types';
|
|
70
|
-
import { FloatingToolbarColorPicker } from '@atlaskit/editor-common/types';
|
|
71
|
-
import { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
72
|
-
import { FloatingToolbarDatePicker } from '@atlaskit/editor-common/types';
|
|
73
|
-
import { FloatingToolbarDropdown } from '@atlaskit/editor-common/types';
|
|
74
|
-
import { FloatingToolbarEmojiPicker } from '@atlaskit/editor-common/types';
|
|
75
|
-
import { FloatingToolbarInput } from '@atlaskit/editor-common/types';
|
|
76
|
-
import { FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
77
|
-
import { FloatingToolbarListPicker } from '@atlaskit/editor-common/types';
|
|
78
68
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
79
|
-
import { FloatingToolbarSelect } from '@atlaskit/editor-common/types';
|
|
80
69
|
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
81
70
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
82
71
|
import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
|
|
@@ -143,7 +132,6 @@ import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
|
143
132
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
144
133
|
import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
|
|
145
134
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
146
|
-
import type { SelectOption } from '@atlaskit/editor-common/types';
|
|
147
135
|
import { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
148
136
|
import type { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
149
137
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
@@ -512,8 +500,6 @@ type DefaultPresetPluginOptions = {
|
|
|
512
500
|
// @public
|
|
513
501
|
export const deleteDate: () => Command;
|
|
514
502
|
|
|
515
|
-
export { DropdownOptionT }
|
|
516
|
-
|
|
517
503
|
// @public (undocumented)
|
|
518
504
|
export class Editor extends React_2.Component<EditorProps> {
|
|
519
505
|
constructor(props: EditorProps);
|
|
@@ -964,34 +950,6 @@ type FindReplaceOptions = {
|
|
|
964
950
|
allowMatchCase?: boolean;
|
|
965
951
|
};
|
|
966
952
|
|
|
967
|
-
export { FloatingToolbarButton }
|
|
968
|
-
|
|
969
|
-
export { FloatingToolbarColorPicker }
|
|
970
|
-
|
|
971
|
-
export { FloatingToolbarConfig }
|
|
972
|
-
|
|
973
|
-
export { FloatingToolbarDatePicker }
|
|
974
|
-
|
|
975
|
-
export { FloatingToolbarDropdown }
|
|
976
|
-
|
|
977
|
-
export { FloatingToolbarEmojiPicker }
|
|
978
|
-
|
|
979
|
-
export { FloatingToolbarInput }
|
|
980
|
-
|
|
981
|
-
export { FloatingToolbarItem }
|
|
982
|
-
|
|
983
|
-
export { FloatingToolbarListPicker }
|
|
984
|
-
|
|
985
|
-
// @public
|
|
986
|
-
export const floatingToolbarPluginKey: PluginKey<FloatingToolbarPluginState>;
|
|
987
|
-
|
|
988
|
-
// @public (undocumented)
|
|
989
|
-
export type FloatingToolbarPluginState = {
|
|
990
|
-
getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
|
|
991
|
-
};
|
|
992
|
-
|
|
993
|
-
export { FloatingToolbarSelect }
|
|
994
|
-
|
|
995
953
|
export { GapCursorSelection }
|
|
996
954
|
|
|
997
955
|
export { GapCursorSide }
|
|
@@ -1761,8 +1719,6 @@ export const selectionPluginKey: PluginKey<any>;
|
|
|
1761
1719
|
interface SelectionPluginOptions extends LongPressSelectionPluginOptions {
|
|
1762
1720
|
}
|
|
1763
1721
|
|
|
1764
|
-
export { SelectOption }
|
|
1765
|
-
|
|
1766
1722
|
// @public (undocumented)
|
|
1767
1723
|
export function setBlockType(name: string): Command_2;
|
|
1768
1724
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Icon, RenderOptionsProps, AlignType, ConfirmDialogOptions, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, Command, MarkOptions, NodeOptions, } from '@atlaskit/editor-common/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ConfirmDialogOptions, ConfirmationDialogProps, } from '@atlaskit/editor-common/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Icon, RenderOptionsProps, AlignType, ConfirmDialogOptions, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, Command, MarkOptions, NodeOptions, } from '@atlaskit/editor-common/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ConfirmDialogOptions, ConfirmationDialogProps, } from '@atlaskit/editor-common/types';
|