@atlaskit/editor-core 187.32.6 → 187.33.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 +37 -0
- package/dist/cjs/plugins/help-dialog/index.js +10 -15
- package/dist/cjs/plugins/help-dialog/ui/index.js +74 -104
- package/dist/cjs/plugins/media/ui/MediaPicker/ClipboardWrapper.js +11 -2
- package/dist/cjs/plugins/media/ui/MediaPicker/index.js +3 -1
- package/dist/cjs/plugins/quick-insert/index.js +20 -26
- package/dist/cjs/plugins/quick-insert/search.js +26 -18
- package/dist/cjs/plugins/quick-insert/ui/ModalElementBrowser/index.js +5 -9
- package/dist/cjs/ui/ContextPanel/index.js +23 -4
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +9 -11
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/help-dialog/index.js +10 -13
- package/dist/es2019/plugins/help-dialog/ui/index.js +65 -70
- package/dist/es2019/plugins/media/ui/MediaPicker/ClipboardWrapper.js +20 -9
- package/dist/es2019/plugins/media/ui/MediaPicker/index.js +3 -1
- package/dist/es2019/plugins/quick-insert/index.js +19 -24
- package/dist/es2019/plugins/quick-insert/search.js +11 -11
- package/dist/es2019/plugins/quick-insert/ui/ModalElementBrowser/index.js +4 -8
- package/dist/es2019/ui/ContextPanel/index.js +23 -6
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +9 -11
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/help-dialog/index.js +10 -15
- package/dist/esm/plugins/help-dialog/ui/index.js +72 -104
- package/dist/esm/plugins/media/ui/MediaPicker/ClipboardWrapper.js +11 -2
- package/dist/esm/plugins/media/ui/MediaPicker/index.js +3 -1
- package/dist/esm/plugins/quick-insert/index.js +20 -26
- package/dist/esm/plugins/quick-insert/search.js +23 -16
- package/dist/esm/plugins/quick-insert/ui/ModalElementBrowser/index.js +4 -8
- package/dist/esm/ui/ContextPanel/index.js +24 -6
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +9 -11
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/labs/next/presets/default.d.ts +2 -2
- package/dist/types/plugins/help-dialog/index.d.ts +5 -0
- package/dist/types/plugins/help-dialog/ui/HelpDialogLoader.d.ts +1 -1
- package/dist/types/plugins/help-dialog/ui/index.d.ts +7 -7
- package/dist/types/plugins/media/ui/MediaPicker/ClipboardWrapper.d.ts +4 -3
- package/dist/types/plugins/quick-insert/index.d.ts +2 -3
- package/dist/types/plugins/quick-insert/search.d.ts +5 -3
- package/dist/types/ui/ContextPanel/index.d.ts +1 -1
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +2 -2
- package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +5 -0
- package/dist/types-ts4.5/plugins/help-dialog/ui/HelpDialogLoader.d.ts +1 -1
- package/dist/types-ts4.5/plugins/help-dialog/ui/index.d.ts +7 -7
- package/dist/types-ts4.5/plugins/media/ui/MediaPicker/ClipboardWrapper.d.ts +4 -3
- package/dist/types-ts4.5/plugins/quick-insert/index.d.ts +2 -3
- package/dist/types-ts4.5/plugins/quick-insert/search.d.ts +5 -3
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +1 -1
- package/package.json +7 -7
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MediaPluginState } from '../../pm-plugins/types';
|
|
3
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
2
|
+
import type { MediaPluginState } from '../../pm-plugins/types';
|
|
3
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
4
|
type Props = {
|
|
5
5
|
mediaState: MediaPluginState;
|
|
6
6
|
featureFlags?: MediaFeatureFlags;
|
|
7
|
+
container?: HTMLElement;
|
|
7
8
|
};
|
|
8
|
-
export declare const ClipboardWrapper: ({ mediaState, featureFlags }: Props) => JSX.Element;
|
|
9
|
+
export declare const ClipboardWrapper: ({ mediaState, featureFlags, container, }: Props) => JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
2
|
import type { NextEditorPlugin, Command } from '../../types';
|
|
3
|
-
import type {
|
|
4
|
-
import type { QuickInsertPluginOptions, QuickInsertSharedState, EditorCommand } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { QuickInsertPluginOptions, QuickInsertSharedState, EditorCommand, QuickInsertSearchOptions } from '@atlaskit/editor-common/types';
|
|
5
4
|
export type { QuickInsertPluginOptions };
|
|
6
5
|
declare const quickInsertPlugin: NextEditorPlugin<'quickInsert', {
|
|
7
6
|
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
8
7
|
sharedState: QuickInsertSharedState | null;
|
|
9
8
|
actions: {
|
|
10
9
|
insertItem: (item: QuickInsertItem) => Command;
|
|
10
|
+
getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
|
|
11
11
|
};
|
|
12
12
|
commands: {
|
|
13
|
-
search: QuickInsertSearch;
|
|
14
13
|
openElementBrowserModal: EditorCommand;
|
|
15
14
|
};
|
|
16
15
|
}>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import type { QuickInsertSearchOptions } from '@atlaskit/editor-common/types';
|
|
3
|
+
type GetQuickInsertSuggestions = (searchOptions: QuickInsertSearchOptions, lazyDefaultItems?: () => QuickInsertItem[], providedItems?: QuickInsertItem[]) => QuickInsertItem[];
|
|
4
|
+
export declare const getQuickInsertSuggestions: GetQuickInsertSuggestions;
|
|
5
|
+
export {};
|
|
@@ -12,7 +12,7 @@ type EditorWidth = WidthPluginState & {
|
|
|
12
12
|
contentBreakoutModes: BreakoutMarkAttrs['mode'][];
|
|
13
13
|
containerWidth?: number;
|
|
14
14
|
};
|
|
15
|
-
export declare const shouldPanelBePositionedOverEditor: (editorWidth: EditorWidth, panelWidth: number) => boolean;
|
|
15
|
+
export declare const shouldPanelBePositionedOverEditor: (editorWidth: EditorWidth, panelWidth: number, editorView?: EditorView) => boolean;
|
|
16
16
|
export declare const panel: import("@emotion/react").SerializedStyles;
|
|
17
17
|
export declare const content: import("@emotion/react").SerializedStyles;
|
|
18
18
|
type SwappableContentAreaProps = {
|
|
@@ -134,9 +134,9 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
134
134
|
sharedState: import("@atlaskit/editor-common/types").QuickInsertSharedState | null;
|
|
135
135
|
actions: {
|
|
136
136
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("../../..").Command;
|
|
137
|
+
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
137
138
|
};
|
|
138
139
|
commands: {
|
|
139
|
-
search: import("../../../plugins/quick-insert/search").QuickInsertSearch;
|
|
140
140
|
openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
|
|
141
141
|
};
|
|
142
142
|
}, QuickInsertPluginOptions | undefined>,
|
|
@@ -307,9 +307,9 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
307
307
|
sharedState: import("@atlaskit/editor-common/types").QuickInsertSharedState | null;
|
|
308
308
|
actions: {
|
|
309
309
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("../../..").Command;
|
|
310
|
+
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
310
311
|
};
|
|
311
312
|
commands: {
|
|
312
|
-
search: import("../../../plugins/quick-insert/search").QuickInsertSearch;
|
|
313
313
|
openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
|
|
314
314
|
};
|
|
315
315
|
}, QuickInsertPluginOptions | undefined>,
|
|
@@ -3,11 +3,16 @@ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/t
|
|
|
3
3
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type quickInsertPlugin from '../quick-insert';
|
|
5
5
|
export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any>;
|
|
6
|
+
interface HelpDialogSharedState {
|
|
7
|
+
isVisible: boolean;
|
|
8
|
+
imageEnabled: boolean;
|
|
9
|
+
}
|
|
6
10
|
declare const helpDialog: NextEditorPlugin<'helpDialog', {
|
|
7
11
|
dependencies: [
|
|
8
12
|
OptionalPlugin<typeof analyticsPlugin>,
|
|
9
13
|
OptionalPlugin<typeof quickInsertPlugin>
|
|
10
14
|
];
|
|
11
15
|
pluginConfiguration: boolean;
|
|
16
|
+
sharedState: HelpDialogSharedState | null;
|
|
12
17
|
}>;
|
|
13
18
|
export default helpDialog;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
-
import type {
|
|
3
|
+
import type { HelpDialogProps } from './index';
|
|
4
4
|
export declare const HelpDialogLoader: import("react").ComponentType<HelpDialogProps> & Loadable.LoadableComponent;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import React from 'react';
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
import { jsx } from '@emotion/react';
|
|
4
3
|
import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
5
4
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
6
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
6
|
import type { Keymap } from '@atlaskit/editor-common/keymaps';
|
|
7
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
|
+
import type helpDialogPlugin from '..';
|
|
8
9
|
export interface Format {
|
|
9
10
|
name: string;
|
|
10
11
|
type: string;
|
|
@@ -15,13 +16,12 @@ export interface Format {
|
|
|
15
16
|
export declare const formatting: (intl: IntlShape) => Format[];
|
|
16
17
|
export declare const getSupportedFormatting: (schema: Schema, intl: IntlShape, imageEnabled?: boolean, quickInsertEnabled?: boolean) => Format[];
|
|
17
18
|
export declare const getComponentFromKeymap: (keymap: Keymap) => jsx.JSX.Element;
|
|
18
|
-
export interface
|
|
19
|
+
export interface HelpDialogProps {
|
|
20
|
+
pluginInjectionApi: ExtractInjectionAPI<typeof helpDialogPlugin> | undefined;
|
|
19
21
|
editorView: EditorView;
|
|
20
|
-
isVisible: boolean;
|
|
21
|
-
imageEnabled?: boolean;
|
|
22
22
|
quickInsertEnabled?: boolean;
|
|
23
23
|
}
|
|
24
|
-
declare const _default:
|
|
25
|
-
WrappedComponent:
|
|
24
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<HelpDialogProps & WrappedComponentProps<"intl">>> & {
|
|
25
|
+
WrappedComponent: import("react").ComponentType<HelpDialogProps & WrappedComponentProps<"intl">>;
|
|
26
26
|
};
|
|
27
27
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MediaPluginState } from '../../pm-plugins/types';
|
|
3
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
2
|
+
import type { MediaPluginState } from '../../pm-plugins/types';
|
|
3
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
4
|
type Props = {
|
|
5
5
|
mediaState: MediaPluginState;
|
|
6
6
|
featureFlags?: MediaFeatureFlags;
|
|
7
|
+
container?: HTMLElement;
|
|
7
8
|
};
|
|
8
|
-
export declare const ClipboardWrapper: ({ mediaState, featureFlags }: Props) => JSX.Element;
|
|
9
|
+
export declare const ClipboardWrapper: ({ mediaState, featureFlags, container, }: Props) => JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
2
|
import type { NextEditorPlugin, Command } from '../../types';
|
|
3
|
-
import type {
|
|
4
|
-
import type { QuickInsertPluginOptions, QuickInsertSharedState, EditorCommand } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { QuickInsertPluginOptions, QuickInsertSharedState, EditorCommand, QuickInsertSearchOptions } from '@atlaskit/editor-common/types';
|
|
5
4
|
export type { QuickInsertPluginOptions };
|
|
6
5
|
declare const quickInsertPlugin: NextEditorPlugin<'quickInsert', {
|
|
7
6
|
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
8
7
|
sharedState: QuickInsertSharedState | null;
|
|
9
8
|
actions: {
|
|
10
9
|
insertItem: (item: QuickInsertItem) => Command;
|
|
10
|
+
getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
|
|
11
11
|
};
|
|
12
12
|
commands: {
|
|
13
|
-
search: QuickInsertSearch;
|
|
14
13
|
openElementBrowserModal: EditorCommand;
|
|
15
14
|
};
|
|
16
15
|
}>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import type { QuickInsertSearchOptions } from '@atlaskit/editor-common/types';
|
|
3
|
+
type GetQuickInsertSuggestions = (searchOptions: QuickInsertSearchOptions, lazyDefaultItems?: () => QuickInsertItem[], providedItems?: QuickInsertItem[]) => QuickInsertItem[];
|
|
4
|
+
export declare const getQuickInsertSuggestions: GetQuickInsertSuggestions;
|
|
5
|
+
export {};
|
|
@@ -12,7 +12,7 @@ type EditorWidth = WidthPluginState & {
|
|
|
12
12
|
contentBreakoutModes: BreakoutMarkAttrs['mode'][];
|
|
13
13
|
containerWidth?: number;
|
|
14
14
|
};
|
|
15
|
-
export declare const shouldPanelBePositionedOverEditor: (editorWidth: EditorWidth, panelWidth: number) => boolean;
|
|
15
|
+
export declare const shouldPanelBePositionedOverEditor: (editorWidth: EditorWidth, panelWidth: number, editorView?: EditorView) => boolean;
|
|
16
16
|
export declare const panel: import("@emotion/react").SerializedStyles;
|
|
17
17
|
export declare const content: import("@emotion/react").SerializedStyles;
|
|
18
18
|
type SwappableContentAreaProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.
|
|
3
|
+
"version": "187.33.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/code": "^14.6.0",
|
|
56
56
|
"@atlaskit/date": "^0.10.0",
|
|
57
57
|
"@atlaskit/datetime-picker": "^12.8.0",
|
|
58
|
-
"@atlaskit/editor-common": "^74.
|
|
58
|
+
"@atlaskit/editor-common": "^74.55.0",
|
|
59
59
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
60
60
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
61
61
|
"@atlaskit/editor-palette": "1.5.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@atlaskit/editor-plugin-hyperlink": "^0.3.0",
|
|
76
76
|
"@atlaskit/editor-plugin-image-upload": "^0.1.0",
|
|
77
77
|
"@atlaskit/editor-plugin-list": "^1.1.0",
|
|
78
|
-
"@atlaskit/editor-plugin-table": "^2.
|
|
78
|
+
"@atlaskit/editor-plugin-table": "^2.11.0",
|
|
79
79
|
"@atlaskit/editor-plugin-text-formatting": "^0.3.0",
|
|
80
80
|
"@atlaskit/editor-plugin-type-ahead": "^0.1.0",
|
|
81
81
|
"@atlaskit/editor-plugin-unsupported-content": "^0.1.0",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"@atlaskit/logo": "^13.14.0",
|
|
92
92
|
"@atlaskit/media-card": "^76.1.0",
|
|
93
93
|
"@atlaskit/media-client": "^23.1.0",
|
|
94
|
-
"@atlaskit/media-common": "^8.
|
|
94
|
+
"@atlaskit/media-common": "^8.1.0",
|
|
95
95
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
96
|
-
"@atlaskit/media-picker": "^66.
|
|
96
|
+
"@atlaskit/media-picker": "^66.2.0",
|
|
97
97
|
"@atlaskit/media-ui": "^24.0.0",
|
|
98
98
|
"@atlaskit/media-viewer": "^48.0.0",
|
|
99
99
|
"@atlaskit/mention": "^22.1.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@atlaskit/radio": "^5.6.0",
|
|
106
106
|
"@atlaskit/section-message": "^6.4.0",
|
|
107
107
|
"@atlaskit/select": "^16.5.0",
|
|
108
|
-
"@atlaskit/smart-card": "^26.
|
|
108
|
+
"@atlaskit/smart-card": "^26.18.0",
|
|
109
109
|
"@atlaskit/smart-user-picker": "^6.3.0",
|
|
110
110
|
"@atlaskit/spinner": "^15.5.0",
|
|
111
111
|
"@atlaskit/status": "^1.3.0",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"@atlaskit/collab-provider": "9.11.1",
|
|
150
150
|
"@atlaskit/dropdown-menu": "^11.11.0",
|
|
151
151
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
152
|
-
"@atlaskit/editor-plugin-table": "^2.
|
|
152
|
+
"@atlaskit/editor-plugin-table": "^2.11.0",
|
|
153
153
|
"@atlaskit/flag": "^15.2.0",
|
|
154
154
|
"@atlaskit/icon-object": "^6.3.0",
|
|
155
155
|
"@atlaskit/inline-dialog": "^13.6.0",
|