@atlaskit/editor-plugin-panel 10.0.0 → 10.0.1
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 +6 -0
- package/dist/types/panelPluginType.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/pm-plugins/utils/utils.d.ts +2 -2
- package/dist/types-ts4.5/panelPluginType.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/utils/utils.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ import { type EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
|
7
7
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
8
8
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
9
9
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
|
-
export declare const pluginKey: PluginKey
|
|
10
|
+
export declare const pluginKey: PluginKey;
|
|
11
11
|
export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
|
|
12
12
|
}
|
|
13
13
|
export interface PanelPluginConfig {
|
|
@@ -10,4 +10,4 @@ export type PanelOptions = {
|
|
|
10
10
|
emojiId?: string;
|
|
11
11
|
emojiText?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, pluginOptions: PanelPluginOptions, api: ExtractInjectionAPI<PanelPlugin> | undefined, nodeViewPortalProviderAPI: PortalProviderAPI) => SafePlugin
|
|
13
|
+
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, pluginOptions: PanelPluginOptions, api: ExtractInjectionAPI<PanelPlugin> | undefined, nodeViewPortalProviderAPI: PortalProviderAPI) => SafePlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PanelAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { DOMOutputSpec } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
export declare const findPanel: (state: EditorState, selection?: Selection | null) => ReturnType<ReturnType<typeof findSelectedNodeOfType>> | ReturnType<ReturnType<typeof findParentNodeOfType>>;
|
|
6
6
|
export declare const panelAttrsToDom: (attrs: PanelAttributes, allowCustomPanel: boolean) => DOMOutputSpec;
|
|
7
|
-
export declare const handleCut: (newState: EditorState, oldState: EditorState) =>
|
|
7
|
+
export declare const handleCut: (newState: EditorState, oldState: EditorState) => Transaction | undefined;
|
|
8
8
|
export declare const panelContentCheck: (newState: EditorState, oldState: EditorState) => boolean;
|
|
@@ -7,7 +7,7 @@ import { type EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
|
7
7
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
8
8
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
9
9
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
|
-
export declare const pluginKey: PluginKey
|
|
10
|
+
export declare const pluginKey: PluginKey;
|
|
11
11
|
export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
|
|
12
12
|
}
|
|
13
13
|
export interface PanelPluginConfig {
|
|
@@ -10,4 +10,4 @@ export type PanelOptions = {
|
|
|
10
10
|
emojiId?: string;
|
|
11
11
|
emojiText?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, pluginOptions: PanelPluginOptions, api: ExtractInjectionAPI<PanelPlugin> | undefined, nodeViewPortalProviderAPI: PortalProviderAPI) => SafePlugin
|
|
13
|
+
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, pluginOptions: PanelPluginOptions, api: ExtractInjectionAPI<PanelPlugin> | undefined, nodeViewPortalProviderAPI: PortalProviderAPI) => SafePlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PanelAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { DOMOutputSpec } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
export declare const findPanel: (state: EditorState, selection?: Selection | null) => ReturnType<ReturnType<typeof findSelectedNodeOfType>> | ReturnType<ReturnType<typeof findParentNodeOfType>>;
|
|
6
6
|
export declare const panelAttrsToDom: (attrs: PanelAttributes, allowCustomPanel: boolean) => DOMOutputSpec;
|
|
7
|
-
export declare const handleCut: (newState: EditorState, oldState: EditorState) =>
|
|
7
|
+
export declare const handleCut: (newState: EditorState, oldState: EditorState) => Transaction | undefined;
|
|
8
8
|
export declare const panelContentCheck: (newState: EditorState, oldState: EditorState) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/icon": "^32.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/theme": "^22.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^11.1.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"uuid": "^3.1.0"
|