@atlaskit/editor-plugin-insert-block 1.3.7 → 1.3.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.
- package/CHANGELOG.md +6 -0
- package/dist/types/ui/ElementBrowser/types.d.ts +3 -3
- package/dist/types/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +3 -3
- package/dist/types/ui/ToolbarInsertBlock/block-insert-menu.d.ts +3 -3
- package/dist/types/ui/ToolbarInsertBlock/types.d.ts +3 -3
- package/dist/types-ts4.5/ui/ElementBrowser/types.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/block-insert-menu.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/types.d.ts +3 -3
- package/package.json +23 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
3
3
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import type {
|
|
5
|
+
import type { InsertBlockPlugin } from '../../index';
|
|
6
6
|
import type { BlockMenuItem } from '../ToolbarInsertBlock/create-items';
|
|
7
7
|
type SimpleEventHandler<T> = (event?: T) => void;
|
|
8
8
|
export interface InsertMenuProps {
|
|
@@ -11,7 +11,7 @@ export interface InsertMenuProps {
|
|
|
11
11
|
showElementBrowserLink: boolean;
|
|
12
12
|
toggleVisiblity: SimpleEventHandler<MouseEvent | KeyboardEvent>;
|
|
13
13
|
onInsert: OnInsert;
|
|
14
|
-
pluginInjectionApi:
|
|
14
|
+
pluginInjectionApi: ExtractInjectionAPI<InsertBlockPlugin> | undefined;
|
|
15
15
|
}
|
|
16
16
|
export type SvgGetterParams = {
|
|
17
17
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type {
|
|
4
|
+
import type { InsertBlockPlugin } from '../../index';
|
|
5
5
|
import type { OnInsert } from '../ElementBrowser/types';
|
|
6
6
|
import type { BlockMenuItem } from './create-items';
|
|
7
7
|
type SimpleEventHandler<T> = (event?: T) => void;
|
|
@@ -22,7 +22,7 @@ export interface BlockInsertElementBrowserProps {
|
|
|
22
22
|
onKeyDown?: React.KeyboardEventHandler;
|
|
23
23
|
onInsert: OnInsert;
|
|
24
24
|
togglePlusMenuVisibility: SimpleEventHandler<MouseEvent | KeyboardEvent>;
|
|
25
|
-
pluginInjectionApi:
|
|
25
|
+
pluginInjectionApi: ExtractInjectionAPI<InsertBlockPlugin> | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare const BlockInsertElementBrowser: (props: BlockInsertElementBrowserProps) => JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import type {
|
|
5
|
+
import type { InsertBlockPlugin } from '../../index';
|
|
6
6
|
import type { OnInsert } from '../ElementBrowser/types';
|
|
7
7
|
import type { BlockMenuItem } from './create-items';
|
|
8
8
|
export interface BlockInsertMenuProps {
|
|
@@ -28,6 +28,6 @@ export interface BlockInsertMenuProps {
|
|
|
28
28
|
onOpenChange(attrs: any): void;
|
|
29
29
|
togglePlusMenuVisibility(): void;
|
|
30
30
|
onKeyDown?: React.KeyboardEventHandler;
|
|
31
|
-
pluginInjectionApi:
|
|
31
|
+
pluginInjectionApi: ExtractInjectionAPI<InsertBlockPlugin> | undefined;
|
|
32
32
|
}
|
|
33
33
|
export declare const BlockInsertMenu: (props: BlockInsertMenuProps) => JSX.Element | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { Command, EditorActionsOptions as EditorActions,
|
|
3
|
+
import type { Command, EditorActionsOptions as EditorActions, ExtractInjectionAPI, ImageUploadPluginReferenceEvent } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import type { BlockType } from '@atlaskit/editor-plugin-block-type';
|
|
6
6
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
9
|
-
import type {
|
|
9
|
+
import type { InsertBlockPlugin } from '../../index';
|
|
10
10
|
import type { BlockMenuItem } from './create-items';
|
|
11
11
|
export interface Props {
|
|
12
12
|
buttons: number;
|
|
@@ -47,7 +47,7 @@ export interface Props {
|
|
|
47
47
|
onInsertBlockType?: (name: string) => Command;
|
|
48
48
|
onInsertMacroFromMacroBrowser?: (macroProvider: MacroProvider, node?: PMNode, isEditing?: boolean) => (view: EditorView) => void;
|
|
49
49
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
50
|
-
pluginInjectionApi?:
|
|
50
|
+
pluginInjectionApi?: ExtractInjectionAPI<InsertBlockPlugin>;
|
|
51
51
|
mentionsDisabled?: boolean;
|
|
52
52
|
}
|
|
53
53
|
export interface State {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
3
3
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import type {
|
|
5
|
+
import type { InsertBlockPlugin } from '../../index';
|
|
6
6
|
import type { BlockMenuItem } from '../ToolbarInsertBlock/create-items';
|
|
7
7
|
type SimpleEventHandler<T> = (event?: T) => void;
|
|
8
8
|
export interface InsertMenuProps {
|
|
@@ -11,7 +11,7 @@ export interface InsertMenuProps {
|
|
|
11
11
|
showElementBrowserLink: boolean;
|
|
12
12
|
toggleVisiblity: SimpleEventHandler<MouseEvent | KeyboardEvent>;
|
|
13
13
|
onInsert: OnInsert;
|
|
14
|
-
pluginInjectionApi:
|
|
14
|
+
pluginInjectionApi: ExtractInjectionAPI<InsertBlockPlugin> | undefined;
|
|
15
15
|
}
|
|
16
16
|
export type SvgGetterParams = {
|
|
17
17
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type {
|
|
4
|
+
import type { InsertBlockPlugin } from '../../index';
|
|
5
5
|
import type { OnInsert } from '../ElementBrowser/types';
|
|
6
6
|
import type { BlockMenuItem } from './create-items';
|
|
7
7
|
type SimpleEventHandler<T> = (event?: T) => void;
|
|
@@ -22,7 +22,7 @@ export interface BlockInsertElementBrowserProps {
|
|
|
22
22
|
onKeyDown?: React.KeyboardEventHandler;
|
|
23
23
|
onInsert: OnInsert;
|
|
24
24
|
togglePlusMenuVisibility: SimpleEventHandler<MouseEvent | KeyboardEvent>;
|
|
25
|
-
pluginInjectionApi:
|
|
25
|
+
pluginInjectionApi: ExtractInjectionAPI<InsertBlockPlugin> | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare const BlockInsertElementBrowser: (props: BlockInsertElementBrowserProps) => JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import type {
|
|
5
|
+
import type { InsertBlockPlugin } from '../../index';
|
|
6
6
|
import type { OnInsert } from '../ElementBrowser/types';
|
|
7
7
|
import type { BlockMenuItem } from './create-items';
|
|
8
8
|
export interface BlockInsertMenuProps {
|
|
@@ -28,6 +28,6 @@ export interface BlockInsertMenuProps {
|
|
|
28
28
|
onOpenChange(attrs: any): void;
|
|
29
29
|
togglePlusMenuVisibility(): void;
|
|
30
30
|
onKeyDown?: React.KeyboardEventHandler;
|
|
31
|
-
pluginInjectionApi:
|
|
31
|
+
pluginInjectionApi: ExtractInjectionAPI<InsertBlockPlugin> | undefined;
|
|
32
32
|
}
|
|
33
33
|
export declare const BlockInsertMenu: (props: BlockInsertMenuProps) => JSX.Element | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { Command, EditorActionsOptions as EditorActions,
|
|
3
|
+
import type { Command, EditorActionsOptions as EditorActions, ExtractInjectionAPI, ImageUploadPluginReferenceEvent } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import type { BlockType } from '@atlaskit/editor-plugin-block-type';
|
|
6
6
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
9
|
-
import type {
|
|
9
|
+
import type { InsertBlockPlugin } from '../../index';
|
|
10
10
|
import type { BlockMenuItem } from './create-items';
|
|
11
11
|
export interface Props {
|
|
12
12
|
buttons: number;
|
|
@@ -47,7 +47,7 @@ export interface Props {
|
|
|
47
47
|
onInsertBlockType?: (name: string) => Command;
|
|
48
48
|
onInsertMacroFromMacroBrowser?: (macroProvider: MacroProvider, node?: PMNode, isEditing?: boolean) => (view: EditorView) => void;
|
|
49
49
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
50
|
-
pluginInjectionApi?:
|
|
50
|
+
pluginInjectionApi?: ExtractInjectionAPI<InsertBlockPlugin>;
|
|
51
51
|
mentionsDisabled?: boolean;
|
|
52
52
|
}
|
|
53
53
|
export interface State {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,34 +33,34 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
38
|
-
"@atlaskit/editor-plugin-block-type": "^3.
|
|
39
|
-
"@atlaskit/editor-plugin-code-block": "^1.
|
|
40
|
-
"@atlaskit/editor-plugin-date": "^1.
|
|
41
|
-
"@atlaskit/editor-plugin-emoji": "^1.
|
|
42
|
-
"@atlaskit/editor-plugin-expand": "^1.
|
|
43
|
-
"@atlaskit/editor-plugin-extension": "^1.
|
|
44
|
-
"@atlaskit/editor-plugin-hyperlink": "^2.
|
|
36
|
+
"@atlaskit/editor-common": "^83.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^1.3.0",
|
|
38
|
+
"@atlaskit/editor-plugin-block-type": "^3.7.0",
|
|
39
|
+
"@atlaskit/editor-plugin-code-block": "^1.4.0",
|
|
40
|
+
"@atlaskit/editor-plugin-date": "^1.3.0",
|
|
41
|
+
"@atlaskit/editor-plugin-emoji": "^1.4.0",
|
|
42
|
+
"@atlaskit/editor-plugin-expand": "^1.8.0",
|
|
43
|
+
"@atlaskit/editor-plugin-extension": "^1.8.0",
|
|
44
|
+
"@atlaskit/editor-plugin-hyperlink": "^2.2.0",
|
|
45
45
|
"@atlaskit/editor-plugin-image-upload": "^1.1.0",
|
|
46
|
-
"@atlaskit/editor-plugin-layout": "^1.
|
|
47
|
-
"@atlaskit/editor-plugin-media": "^1.
|
|
48
|
-
"@atlaskit/editor-plugin-mentions": "^1.
|
|
49
|
-
"@atlaskit/editor-plugin-panel": "^1.
|
|
50
|
-
"@atlaskit/editor-plugin-placeholder-text": "^1.
|
|
46
|
+
"@atlaskit/editor-plugin-layout": "^1.3.0",
|
|
47
|
+
"@atlaskit/editor-plugin-media": "^1.21.0",
|
|
48
|
+
"@atlaskit/editor-plugin-mentions": "^1.7.0",
|
|
49
|
+
"@atlaskit/editor-plugin-panel": "^1.3.0",
|
|
50
|
+
"@atlaskit/editor-plugin-placeholder-text": "^1.3.0",
|
|
51
51
|
"@atlaskit/editor-plugin-quick-insert": "^1.1.0",
|
|
52
|
-
"@atlaskit/editor-plugin-rule": "^1.
|
|
53
|
-
"@atlaskit/editor-plugin-status": "^1.
|
|
54
|
-
"@atlaskit/editor-plugin-table": "^7.
|
|
55
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^1.
|
|
56
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
|
52
|
+
"@atlaskit/editor-plugin-rule": "^1.4.0",
|
|
53
|
+
"@atlaskit/editor-plugin-status": "^1.3.0",
|
|
54
|
+
"@atlaskit/editor-plugin-table": "^7.18.0",
|
|
55
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^1.4.0",
|
|
56
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.3.0",
|
|
57
57
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
58
58
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
59
59
|
"@atlaskit/emoji": "^67.6.0",
|
|
60
60
|
"@atlaskit/icon": "^22.4.0",
|
|
61
|
-
"@atlaskit/primitives": "^8.
|
|
62
|
-
"@atlaskit/theme": "^12.
|
|
63
|
-
"@atlaskit/tokens": "^1.
|
|
61
|
+
"@atlaskit/primitives": "^8.2.0",
|
|
62
|
+
"@atlaskit/theme": "^12.11.0",
|
|
63
|
+
"@atlaskit/tokens": "^1.53.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
|
65
65
|
"@emotion/react": "^11.7.1",
|
|
66
66
|
"bind-event-listener": "^3.0.0",
|