@atlaskit/editor-core 188.13.5 → 188.13.6
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/cjs/i18n/cs.js +0 -6
- package/dist/cjs/i18n/da.js +0 -6
- package/dist/cjs/i18n/de.js +0 -6
- package/dist/cjs/i18n/en.js +0 -6
- package/dist/cjs/i18n/en_GB.js +0 -6
- package/dist/cjs/i18n/en_ZZ.js +0 -6
- package/dist/cjs/i18n/es.js +0 -6
- package/dist/cjs/i18n/fi.js +0 -6
- package/dist/cjs/i18n/fr.js +0 -6
- package/dist/cjs/i18n/hu.js +0 -6
- package/dist/cjs/i18n/it.js +0 -6
- package/dist/cjs/i18n/ja.js +0 -6
- package/dist/cjs/i18n/ko.js +0 -6
- package/dist/cjs/i18n/nb.js +0 -6
- package/dist/cjs/i18n/nl.js +0 -6
- package/dist/cjs/i18n/pl.js +0 -6
- package/dist/cjs/i18n/pt_BR.js +0 -6
- package/dist/cjs/i18n/ru.js +0 -6
- package/dist/cjs/i18n/sv.js +0 -6
- package/dist/cjs/i18n/th.js +0 -6
- package/dist/cjs/i18n/tr.js +0 -6
- package/dist/cjs/i18n/uk.js +0 -6
- package/dist/cjs/i18n/vi.js +0 -6
- package/dist/cjs/i18n/zh.js +0 -6
- package/dist/cjs/i18n/zh_TW.js +0 -6
- package/dist/cjs/plugins/expand/commands.js +84 -72
- package/dist/cjs/plugins/expand/index.js +10 -5
- package/dist/cjs/plugins/expand/nodeviews/index.js +8 -5
- package/dist/cjs/plugins/expand/pm-plugins/keymap.js +2 -1
- package/dist/cjs/plugins/expand/toolbar.js +6 -2
- package/dist/cjs/plugins/feedback-dialog/index.js +7 -4
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +37 -32
- package/dist/cjs/plugins/tasks-and-decisions/commands.js +95 -89
- package/dist/cjs/plugins/tasks-and-decisions/index.js +10 -5
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/input-rules.js +41 -38
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/keymaps.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +9 -6
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +9 -6
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/i18n/cs.js +0 -6
- package/dist/es2019/i18n/da.js +0 -6
- package/dist/es2019/i18n/de.js +0 -6
- package/dist/es2019/i18n/en.js +0 -6
- package/dist/es2019/i18n/en_GB.js +0 -6
- package/dist/es2019/i18n/en_ZZ.js +0 -6
- package/dist/es2019/i18n/es.js +0 -6
- package/dist/es2019/i18n/fi.js +0 -6
- package/dist/es2019/i18n/fr.js +0 -6
- package/dist/es2019/i18n/hu.js +0 -6
- package/dist/es2019/i18n/it.js +0 -6
- package/dist/es2019/i18n/ja.js +0 -6
- package/dist/es2019/i18n/ko.js +0 -6
- package/dist/es2019/i18n/nb.js +0 -6
- package/dist/es2019/i18n/nl.js +0 -6
- package/dist/es2019/i18n/pl.js +0 -6
- package/dist/es2019/i18n/pt_BR.js +0 -6
- package/dist/es2019/i18n/ru.js +0 -6
- package/dist/es2019/i18n/sv.js +0 -6
- package/dist/es2019/i18n/th.js +0 -6
- package/dist/es2019/i18n/tr.js +0 -6
- package/dist/es2019/i18n/uk.js +0 -6
- package/dist/es2019/i18n/vi.js +0 -6
- package/dist/es2019/i18n/zh.js +0 -6
- package/dist/es2019/i18n/zh_TW.js +0 -6
- package/dist/es2019/plugins/expand/commands.js +17 -9
- package/dist/es2019/plugins/expand/index.js +11 -6
- package/dist/es2019/plugins/expand/nodeviews/index.js +8 -5
- package/dist/es2019/plugins/expand/pm-plugins/keymap.js +2 -1
- package/dist/es2019/plugins/expand/toolbar.js +7 -2
- package/dist/es2019/plugins/feedback-dialog/index.js +7 -4
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +14 -10
- package/dist/es2019/plugins/tasks-and-decisions/commands.js +7 -7
- package/dist/es2019/plugins/tasks-and-decisions/index.js +12 -5
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/input-rules.js +8 -8
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/keymaps.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +4 -2
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +4 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/i18n/cs.js +0 -6
- package/dist/esm/i18n/da.js +0 -6
- package/dist/esm/i18n/de.js +0 -6
- package/dist/esm/i18n/en.js +0 -6
- package/dist/esm/i18n/en_GB.js +0 -6
- package/dist/esm/i18n/en_ZZ.js +0 -6
- package/dist/esm/i18n/es.js +0 -6
- package/dist/esm/i18n/fi.js +0 -6
- package/dist/esm/i18n/fr.js +0 -6
- package/dist/esm/i18n/hu.js +0 -6
- package/dist/esm/i18n/it.js +0 -6
- package/dist/esm/i18n/ja.js +0 -6
- package/dist/esm/i18n/ko.js +0 -6
- package/dist/esm/i18n/nb.js +0 -6
- package/dist/esm/i18n/nl.js +0 -6
- package/dist/esm/i18n/pl.js +0 -6
- package/dist/esm/i18n/pt_BR.js +0 -6
- package/dist/esm/i18n/ru.js +0 -6
- package/dist/esm/i18n/sv.js +0 -6
- package/dist/esm/i18n/th.js +0 -6
- package/dist/esm/i18n/tr.js +0 -6
- package/dist/esm/i18n/uk.js +0 -6
- package/dist/esm/i18n/vi.js +0 -6
- package/dist/esm/i18n/zh.js +0 -6
- package/dist/esm/i18n/zh_TW.js +0 -6
- package/dist/esm/plugins/expand/commands.js +84 -72
- package/dist/esm/plugins/expand/index.js +11 -6
- package/dist/esm/plugins/expand/nodeviews/index.js +8 -5
- package/dist/esm/plugins/expand/pm-plugins/keymap.js +2 -1
- package/dist/esm/plugins/expand/toolbar.js +6 -2
- package/dist/esm/plugins/feedback-dialog/index.js +7 -4
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +37 -32
- package/dist/esm/plugins/tasks-and-decisions/commands.js +95 -89
- package/dist/esm/plugins/tasks-and-decisions/index.js +10 -5
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/input-rules.js +40 -36
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/keymaps.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +9 -6
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +9 -6
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/i18n/cs.d.ts +0 -6
- package/dist/types/i18n/da.d.ts +0 -6
- package/dist/types/i18n/de.d.ts +0 -6
- package/dist/types/i18n/en.d.ts +0 -6
- package/dist/types/i18n/en_GB.d.ts +0 -6
- package/dist/types/i18n/en_ZZ.d.ts +0 -6
- package/dist/types/i18n/es.d.ts +0 -6
- package/dist/types/i18n/fi.d.ts +0 -6
- package/dist/types/i18n/fr.d.ts +0 -6
- package/dist/types/i18n/hu.d.ts +0 -6
- package/dist/types/i18n/it.d.ts +0 -6
- package/dist/types/i18n/ja.d.ts +0 -6
- package/dist/types/i18n/ko.d.ts +0 -6
- package/dist/types/i18n/nb.d.ts +0 -6
- package/dist/types/i18n/nl.d.ts +0 -6
- package/dist/types/i18n/pl.d.ts +0 -6
- package/dist/types/i18n/pt_BR.d.ts +0 -6
- package/dist/types/i18n/ru.d.ts +0 -6
- package/dist/types/i18n/sv.d.ts +0 -6
- package/dist/types/i18n/th.d.ts +0 -6
- package/dist/types/i18n/tr.d.ts +0 -6
- package/dist/types/i18n/uk.d.ts +0 -6
- package/dist/types/i18n/vi.d.ts +0 -6
- package/dist/types/i18n/zh.d.ts +0 -6
- package/dist/types/i18n/zh_TW.d.ts +0 -6
- package/dist/types/plugins/code-block/index.d.ts +2 -2
- package/dist/types/plugins/expand/commands.d.ts +6 -5
- package/dist/types/plugins/expand/index.d.ts +12 -5
- package/dist/types/plugins/expand/toolbar.d.ts +3 -3
- package/dist/types/plugins/feedback-dialog/index.d.ts +5 -2
- package/dist/types/plugins/insert-block/types.d.ts +13 -11
- package/dist/types/plugins/tasks-and-decisions/commands.d.ts +5 -4
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/input-rules.d.ts +2 -1
- package/dist/types/plugins/tasks-and-decisions/ui/ToolbarDecision/index.d.ts +3 -0
- package/dist/types/plugins/tasks-and-decisions/ui/ToolbarTask/index.d.ts +3 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -6
- package/dist/types-ts4.5/i18n/da.d.ts +0 -6
- package/dist/types-ts4.5/i18n/de.d.ts +0 -6
- package/dist/types-ts4.5/i18n/en.d.ts +0 -6
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -6
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -6
- package/dist/types-ts4.5/i18n/es.d.ts +0 -6
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -6
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -6
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -6
- package/dist/types-ts4.5/i18n/it.d.ts +0 -6
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -6
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -6
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -6
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -6
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -6
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -6
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -6
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -6
- package/dist/types-ts4.5/i18n/th.d.ts +0 -6
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -6
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -6
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -6
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -6
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -6
- package/dist/types-ts4.5/plugins/code-block/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/expand/commands.d.ts +6 -5
- package/dist/types-ts4.5/plugins/expand/index.d.ts +12 -5
- package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +3 -3
- package/dist/types-ts4.5/plugins/feedback-dialog/index.d.ts +7 -2
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +13 -11
- package/dist/types-ts4.5/plugins/tasks-and-decisions/commands.d.ts +5 -4
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/input-rules.d.ts +2 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarDecision/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarTask/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -4,7 +4,7 @@ import type { CodeBlockOptions } from './types';
|
|
|
4
4
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
import type { compositionPlugin } from '@atlaskit/editor-plugin-composition';
|
|
7
|
-
|
|
7
|
+
export type CodeBlockPlugin = NextEditorPlugin<'codeBlock', {
|
|
8
8
|
pluginConfiguration: CodeBlockOptions;
|
|
9
9
|
dependencies: [
|
|
10
10
|
typeof decorationsPlugin,
|
|
@@ -15,5 +15,5 @@ declare const codeBlockPlugin: NextEditorPlugin<'codeBlock', {
|
|
|
15
15
|
insertCodeBlock: (inputMethod: INPUT_METHOD) => Command;
|
|
16
16
|
};
|
|
17
17
|
}>;
|
|
18
|
+
declare const codeBlockPlugin: CodeBlockPlugin;
|
|
18
19
|
export default codeBlockPlugin;
|
|
19
|
-
export type CodeBlockPlugin = typeof codeBlockPlugin;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { Node as PMNode, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { Command } from '
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
5
|
export declare const setExpandRef: (ref?: HTMLDivElement | null) => Command;
|
|
5
|
-
export declare const deleteExpandAtPos: (expandNodePos: number, expandNode: PMNode) => Command;
|
|
6
|
-
export declare const deleteExpand: () => Command;
|
|
6
|
+
export declare const deleteExpandAtPos: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (expandNodePos: number, expandNode: PMNode) => Command;
|
|
7
|
+
export declare const deleteExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
7
8
|
export declare const updateExpandTitle: (title: string, pos: number, nodeType: NodeType) => Command;
|
|
8
|
-
export declare const toggleExpandExpanded: (pos: number, nodeType: NodeType) => Command;
|
|
9
|
+
export declare const toggleExpandExpanded: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (pos: number, nodeType: NodeType) => Command;
|
|
9
10
|
export declare const createExpandNode: (state: EditorState) => PMNode | null;
|
|
10
|
-
export declare const insertExpand: Command;
|
|
11
|
+
export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
11
12
|
export declare const focusTitle: (pos: number) => Command;
|
|
12
13
|
export declare const setSelectionInsideExpand: (expandPos: number) => Command;
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import type { NextEditorPlugin, EditorProps } from '../../types';
|
|
2
|
-
import
|
|
2
|
+
import { insertExpand } from './commands';
|
|
3
|
+
import type { LongPressSelectionPluginOptions, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
5
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
-
import type {
|
|
6
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
5
7
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
6
8
|
interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
|
|
7
9
|
allowInsertion?: boolean;
|
|
8
10
|
appearance?: EditorProps['appearance'];
|
|
9
11
|
}
|
|
10
|
-
|
|
12
|
+
export type ExpandPlugin = NextEditorPlugin<'expand', {
|
|
11
13
|
pluginConfiguration: ExpandPluginOptions | undefined;
|
|
12
14
|
dependencies: [
|
|
13
15
|
FeatureFlagsPlugin,
|
|
14
|
-
|
|
15
|
-
SelectionPlugin
|
|
16
|
+
DecorationsPlugin,
|
|
17
|
+
SelectionPlugin,
|
|
18
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
16
19
|
];
|
|
20
|
+
actions: {
|
|
21
|
+
insertExpand: ReturnType<typeof insertExpand>;
|
|
22
|
+
};
|
|
17
23
|
}>;
|
|
24
|
+
declare const expandPlugin: ExpandPlugin;
|
|
18
25
|
interface ExpandEditorProps {
|
|
19
26
|
allowExpand?: EditorProps['allowExpand'];
|
|
20
27
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const getToolbarConfig: (
|
|
1
|
+
import type { FloatingToolbarHandler, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExpandPlugin } from '.';
|
|
3
|
+
export declare const getToolbarConfig: (api: ExtractInjectionAPI<ExpandPlugin> | undefined) => FloatingToolbarHandler;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { FeedbackInfo } from '../../types';
|
|
2
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
4
|
export declare const openFeedbackDialog: (feedbackInfo?: FeedbackInfo) => Promise<unknown>;
|
|
4
|
-
|
|
5
|
+
export type FeedbackDialogPlugin = NextEditorPlugin<'feedbackDialog', {
|
|
5
6
|
pluginConfiguration: FeedbackInfo;
|
|
7
|
+
dependencies: [
|
|
8
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
9
|
+
];
|
|
6
10
|
}>;
|
|
11
|
+
declare const feedbackDialog: FeedbackDialogPlugin;
|
|
7
12
|
export default feedbackDialog;
|
|
@@ -2,36 +2,38 @@ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
|
2
2
|
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
3
3
|
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
4
4
|
import type { DatePlugin } from '@atlaskit/editor-plugin-date';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
5
|
+
import type { TablePlugin } from '@atlaskit/editor-plugin-table';
|
|
6
|
+
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
7
7
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
8
|
-
import type {
|
|
8
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
9
|
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
10
10
|
import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type';
|
|
11
|
-
import type
|
|
12
|
-
import type
|
|
11
|
+
import type { CodeBlockPlugin } from '../code-block';
|
|
12
|
+
import type { PanelPlugin } from '../panel';
|
|
13
13
|
import type { LayoutPlugin } from '../layout';
|
|
14
14
|
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
15
15
|
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
16
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
17
17
|
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
18
18
|
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
19
|
+
import type { ExpandPlugin } from '../expand';
|
|
19
20
|
export type InsertBlockPluginDependencies = [
|
|
20
21
|
FeatureFlagsPlugin,
|
|
21
22
|
TypeAheadPlugin,
|
|
22
|
-
OptionalPlugin<
|
|
23
|
-
OptionalPlugin<
|
|
23
|
+
OptionalPlugin<TablePlugin>,
|
|
24
|
+
OptionalPlugin<HyperlinkPlugin>,
|
|
24
25
|
OptionalPlugin<DatePlugin>,
|
|
25
26
|
OptionalPlugin<BlockTypePlugin>,
|
|
26
|
-
OptionalPlugin<
|
|
27
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
27
28
|
OptionalPlugin<ImageUploadPlugin>,
|
|
28
29
|
OptionalPlugin<EmojiPlugin>,
|
|
29
30
|
OptionalPlugin<QuickInsertPlugin>,
|
|
30
31
|
OptionalPlugin<RulePlugin>,
|
|
31
|
-
OptionalPlugin<
|
|
32
|
-
OptionalPlugin<
|
|
32
|
+
OptionalPlugin<CodeBlockPlugin>,
|
|
33
|
+
OptionalPlugin<PanelPlugin>,
|
|
33
34
|
OptionalPlugin<MediaPlugin>,
|
|
34
35
|
OptionalPlugin<MentionsPlugin>,
|
|
35
36
|
OptionalPlugin<StatusPlugin>,
|
|
36
|
-
OptionalPlugin<LayoutPlugin
|
|
37
|
+
OptionalPlugin<LayoutPlugin>,
|
|
38
|
+
OptionalPlugin<ExpandPlugin>
|
|
37
39
|
];
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type { NodeType, ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { Command } from '../../types';
|
|
4
|
-
import {
|
|
4
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
6
|
import type { TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { AddItemAttrs, AddItemTransactionCreator, TaskDecisionInputMethod, TaskDecisionListType } from './types';
|
|
7
8
|
export declare const getListTypes: (listType: TaskDecisionListType, schema: Schema) => {
|
|
8
9
|
list: NodeType;
|
|
9
10
|
item: NodeType;
|
|
10
11
|
};
|
|
11
|
-
export declare const insertTaskDecisionAction: (state: EditorState, listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction;
|
|
12
|
-
export declare const insertTaskDecisionCommand: (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Command;
|
|
13
|
-
export declare const insertTaskDecisionWithAnalytics: (state: EditorState, listType: TaskDecisionListType, inputMethod: TaskDecisionInputMethod, addAndCreateList: AddItemTransactionCreator, addToList?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
12
|
+
export declare const insertTaskDecisionAction: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (state: EditorState, listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction;
|
|
13
|
+
export declare const insertTaskDecisionCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Command;
|
|
14
|
+
export declare const insertTaskDecisionWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (state: EditorState, listType: TaskDecisionListType, inputMethod: TaskDecisionInputMethod, addAndCreateList: AddItemTransactionCreator, addToList?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
14
15
|
export declare const isSupportedSourceNode: (schema: Schema, selection: Selection) => boolean;
|
|
15
16
|
export declare const changeInDepth: (before: ResolvedPos, after: ResolvedPos) => number;
|
|
16
17
|
export declare const createListAtSelection: (tr: Transaction, list: any, item: any, schema: Schema, state: EditorState, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
2
2
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
|
|
4
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
export declare const inputRulePlugin: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (schema: Schema, featureFlags: FeatureFlags) => SafePlugin;
|
|
5
6
|
export default inputRulePlugin;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { TaskAndDecisionsPlugin } from '../../types';
|
|
4
6
|
export interface Props {
|
|
5
7
|
editorView?: EditorView;
|
|
6
8
|
isDisabled?: boolean;
|
|
7
9
|
isReducedSpacing?: boolean;
|
|
10
|
+
editorAPI: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined;
|
|
8
11
|
}
|
|
9
12
|
export interface State {
|
|
10
13
|
disabled: boolean;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { TaskAndDecisionsPlugin } from '../../types';
|
|
4
6
|
export interface Props {
|
|
5
7
|
editorView?: EditorView;
|
|
6
8
|
isDisabled?: boolean;
|
|
7
9
|
isReducedSpacing?: boolean;
|
|
10
|
+
editorAPI: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined;
|
|
8
11
|
}
|
|
9
12
|
export interface State {
|
|
10
13
|
disabled: boolean;
|