@atlaskit/editor-core 187.35.7 → 187.37.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 +16 -0
- package/dist/cjs/index.js +10 -17
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +3 -3
- package/dist/cjs/plugins/rule/commands.js +11 -9
- package/dist/cjs/plugins/rule/index.js +17 -9
- package/dist/cjs/plugins/rule/pm-plugins/input-rule.js +10 -9
- package/dist/cjs/plugins/rule/pm-plugins/keymap.js +2 -2
- package/dist/cjs/plugins/tasks-and-decisions/commands.js +13 -6
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/input-rules.js +15 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/index.js +0 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +3 -3
- package/dist/es2019/plugins/rule/commands.js +2 -2
- package/dist/es2019/plugins/rule/index.js +19 -7
- package/dist/es2019/plugins/rule/pm-plugins/input-rule.js +11 -11
- package/dist/es2019/plugins/rule/pm-plugins/keymap.js +2 -2
- package/dist/es2019/plugins/tasks-and-decisions/commands.js +9 -7
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/input-rules.js +11 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +3 -3
- package/dist/esm/plugins/rule/commands.js +11 -9
- package/dist/esm/plugins/rule/index.js +15 -7
- package/dist/esm/plugins/rule/pm-plugins/input-rule.js +11 -11
- package/dist/esm/plugins/rule/pm-plugins/keymap.js +2 -2
- package/dist/esm/plugins/tasks-and-decisions/commands.js +12 -6
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/input-rules.js +14 -7
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/plugins/insert-block/types.d.ts +2 -0
- package/dist/types/plugins/rule/commands.d.ts +3 -4
- package/dist/types/plugins/rule/index.d.ts +9 -3
- package/dist/types/plugins/rule/pm-plugins/input-rule.d.ts +5 -4
- package/dist/types/plugins/rule/pm-plugins/keymap.d.ts +2 -1
- package/dist/types/plugins/tasks-and-decisions/commands.d.ts +4 -4
- package/dist/types/plugins/tasks-and-decisions/types.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +2 -0
- package/dist/types-ts4.5/plugins/rule/commands.d.ts +3 -4
- package/dist/types-ts4.5/plugins/rule/index.d.ts +10 -3
- package/dist/types-ts4.5/plugins/rule/pm-plugins/input-rule.d.ts +5 -4
- package/dist/types-ts4.5/plugins/rule/pm-plugins/keymap.d.ts +2 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/commands.d.ts +4 -4
- package/dist/types-ts4.5/plugins/tasks-and-decisions/types.d.ts +3 -0
- package/package.json +2 -2
- package/report.api.md +8 -11
- package/tmp/api-report-tmp.d.ts +6 -3
|
@@ -3,14 +3,14 @@ import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prose
|
|
|
3
3
|
import type { Command } from '../../types';
|
|
4
4
|
import { INPUT_METHOD } from '../analytics';
|
|
5
5
|
import type { TOOLBAR_MENU_TYPE } from '../insert-block/ui/ToolbarInsertBlock/types';
|
|
6
|
-
import type { AddItemTransactionCreator, TaskDecisionInputMethod, TaskDecisionListType } from './types';
|
|
6
|
+
import type { AddItemAttrs, AddItemTransactionCreator, TaskDecisionInputMethod, TaskDecisionListType } from './types';
|
|
7
7
|
export declare const getListTypes: (listType: TaskDecisionListType, schema: Schema) => {
|
|
8
8
|
list: NodeType;
|
|
9
9
|
item: NodeType;
|
|
10
10
|
};
|
|
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) => Transaction;
|
|
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
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) => Transaction | null;
|
|
13
|
+
export declare const insertTaskDecisionWithAnalytics: (state: EditorState, listType: TaskDecisionListType, inputMethod: TaskDecisionInputMethod, addAndCreateList: AddItemTransactionCreator, addToList?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
14
14
|
export declare const isSupportedSourceNode: (schema: Schema, selection: Selection) => boolean;
|
|
15
15
|
export declare const changeInDepth: (before: ResolvedPos, after: ResolvedPos) => number;
|
|
16
|
-
export declare const createListAtSelection: (tr: Transaction, list: any, item: any, schema: Schema, state: EditorState, listLocalId?: string, itemLocalId?: string) => Transaction | null;
|
|
16
|
+
export declare const createListAtSelection: (tr: Transaction, list: any, item: any, schema: Schema, state: EditorState, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DecisionItemDefinition, TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
1
2
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
@@ -9,6 +10,7 @@ export type ContextData = {
|
|
|
9
10
|
containerId: string;
|
|
10
11
|
userContext: USER_CONTEXT;
|
|
11
12
|
};
|
|
13
|
+
export type AddItemAttrs = Partial<DecisionItemDefinition['attrs']> | Partial<TaskItemDefinition['attrs']>;
|
|
12
14
|
export type AddItemTransactionCreator = (opts: {
|
|
13
15
|
state: EditorState;
|
|
14
16
|
tr: Transaction;
|
|
@@ -16,6 +18,7 @@ export type AddItemTransactionCreator = (opts: {
|
|
|
16
18
|
item: NodeType;
|
|
17
19
|
listLocalId: string;
|
|
18
20
|
itemLocalId: string;
|
|
21
|
+
itemAttrs?: AddItemAttrs;
|
|
19
22
|
}) => Transaction | null;
|
|
20
23
|
export interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptions {
|
|
21
24
|
allowNestedTasks?: boolean;
|
|
@@ -22,7 +22,6 @@ export { stateKey as mediaPluginKey } from './plugins/media/pm-plugins/main';
|
|
|
22
22
|
export { textColorPluginKey } from './plugins/text-color';
|
|
23
23
|
export type { TextColorPluginState } from './plugins/text-color';
|
|
24
24
|
export { changeColor } from './plugins/text-color/commands/change-color';
|
|
25
|
-
export { insertHorizontalRule } from './plugins/rule/commands';
|
|
26
25
|
export type { BlockTypeState } from './plugins/block-type/pm-plugins/main';
|
|
27
26
|
/**
|
|
28
27
|
* @private
|
|
@@ -11,6 +11,7 @@ import type quickInsertPlugin from '../quick-insert';
|
|
|
11
11
|
import type blockTypePlugin from '../block-type';
|
|
12
12
|
import type codeBlockPlugin from '../code-block';
|
|
13
13
|
import type panelPlugin from '../panel';
|
|
14
|
+
import type { RulePlugin } from '../rule';
|
|
14
15
|
export type InsertBlockPluginDependencies = [
|
|
15
16
|
FeatureFlagsPlugin,
|
|
16
17
|
OptionalPlugin<typeof tablesPlugin>,
|
|
@@ -22,6 +23,7 @@ export type InsertBlockPluginDependencies = [
|
|
|
22
23
|
OptionalPlugin<typeof mentionsPlugin>,
|
|
23
24
|
OptionalPlugin<EmojiPlugin>,
|
|
24
25
|
OptionalPlugin<typeof quickInsertPlugin>,
|
|
26
|
+
OptionalPlugin<RulePlugin>,
|
|
25
27
|
OptionalPlugin<typeof codeBlockPlugin>,
|
|
26
28
|
OptionalPlugin<typeof panelPlugin>
|
|
27
29
|
];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const insertHorizontalRule: (inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT, featureFlags: FeatureFlags) => Command;
|
|
1
|
+
import type { FeatureFlags, Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
export declare const insertHorizontalRule: (featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT) => Command;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { insertHorizontalRule } from './commands';
|
|
2
3
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
|
-
|
|
4
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
+
export type RulePlugin = NextEditorPlugin<'rule', {
|
|
4
6
|
pluginConfiguration: undefined;
|
|
5
7
|
dependencies: [
|
|
6
|
-
FeatureFlagsPlugin
|
|
8
|
+
FeatureFlagsPlugin,
|
|
9
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
7
10
|
];
|
|
11
|
+
actions: {
|
|
12
|
+
insertHorizontalRule: ReturnType<typeof insertHorizontalRule>;
|
|
13
|
+
};
|
|
8
14
|
}>;
|
|
15
|
+
declare const rulePlugin: RulePlugin;
|
|
9
16
|
export default rulePlugin;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { FeatureFlags } from '
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
export declare
|
|
4
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
export declare const createHorizontalRule: (state: EditorState, featureFlags: FeatureFlags, start: number, end: number, inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Transaction | null;
|
|
8
|
+
export declare function inputRulePlugin(schema: Schema, featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin | undefined;
|
|
8
9
|
export default inputRulePlugin;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
-
export declare function keymapPlugin(featureFlags: FeatureFlags): SafePlugin;
|
|
4
|
+
export declare function keymapPlugin(featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
4
5
|
export default keymapPlugin;
|
|
@@ -3,14 +3,14 @@ import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prose
|
|
|
3
3
|
import type { Command } from '../../types';
|
|
4
4
|
import { INPUT_METHOD } from '../analytics';
|
|
5
5
|
import type { TOOLBAR_MENU_TYPE } from '../insert-block/ui/ToolbarInsertBlock/types';
|
|
6
|
-
import type { AddItemTransactionCreator, TaskDecisionInputMethod, TaskDecisionListType } from './types';
|
|
6
|
+
import type { AddItemAttrs, AddItemTransactionCreator, TaskDecisionInputMethod, TaskDecisionListType } from './types';
|
|
7
7
|
export declare const getListTypes: (listType: TaskDecisionListType, schema: Schema) => {
|
|
8
8
|
list: NodeType;
|
|
9
9
|
item: NodeType;
|
|
10
10
|
};
|
|
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) => Transaction;
|
|
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
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) => Transaction | null;
|
|
13
|
+
export declare const insertTaskDecisionWithAnalytics: (state: EditorState, listType: TaskDecisionListType, inputMethod: TaskDecisionInputMethod, addAndCreateList: AddItemTransactionCreator, addToList?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
14
14
|
export declare const isSupportedSourceNode: (schema: Schema, selection: Selection) => boolean;
|
|
15
15
|
export declare const changeInDepth: (before: ResolvedPos, after: ResolvedPos) => number;
|
|
16
|
-
export declare const createListAtSelection: (tr: Transaction, list: any, item: any, schema: Schema, state: EditorState, listLocalId?: string, itemLocalId?: string) => Transaction | null;
|
|
16
|
+
export declare const createListAtSelection: (tr: Transaction, list: any, item: any, schema: Schema, state: EditorState, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DecisionItemDefinition, TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
1
2
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
@@ -9,6 +10,7 @@ export type ContextData = {
|
|
|
9
10
|
containerId: string;
|
|
10
11
|
userContext: USER_CONTEXT;
|
|
11
12
|
};
|
|
13
|
+
export type AddItemAttrs = Partial<DecisionItemDefinition['attrs']> | Partial<TaskItemDefinition['attrs']>;
|
|
12
14
|
export type AddItemTransactionCreator = (opts: {
|
|
13
15
|
state: EditorState;
|
|
14
16
|
tr: Transaction;
|
|
@@ -16,6 +18,7 @@ export type AddItemTransactionCreator = (opts: {
|
|
|
16
18
|
item: NodeType;
|
|
17
19
|
listLocalId: string;
|
|
18
20
|
itemLocalId: string;
|
|
21
|
+
itemAttrs?: AddItemAttrs;
|
|
19
22
|
}) => Transaction | null;
|
|
20
23
|
export interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptions {
|
|
21
24
|
allowNestedTasks?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.
|
|
3
|
+
"version": "187.37.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -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.20.0",
|
|
109
109
|
"@atlaskit/smart-user-picker": "^6.3.0",
|
|
110
110
|
"@atlaskit/spinner": "^15.5.0",
|
|
111
111
|
"@atlaskit/status": "^1.3.0",
|
package/report.api.md
CHANGED
|
@@ -45,6 +45,7 @@ import type { ContextUpdateHandler } from '@atlaskit/editor-common/types';
|
|
|
45
45
|
import { createTable } from '@atlaskit/editor-plugin-table/commands';
|
|
46
46
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
47
47
|
import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
48
|
+
import type { DecisionItemDefinition } from '@atlaskit/adf-schema';
|
|
48
49
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
49
50
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
50
51
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
@@ -148,6 +149,7 @@ import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
|
148
149
|
import { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
149
150
|
import type { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
150
151
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
152
|
+
import type { TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
151
153
|
import { TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
152
154
|
import { InputMethodBasic as TextFormattingInputMethodBasic } from '@atlaskit/editor-common/types';
|
|
153
155
|
import { InputMethodToolbar as TextFormattingInputMethodToolbar } from '@atlaskit/editor-common/types';
|
|
@@ -183,6 +185,11 @@ export { ACTION_SUBJECT };
|
|
|
183
185
|
|
|
184
186
|
export { ACTION_SUBJECT_ID };
|
|
185
187
|
|
|
188
|
+
// @public (undocumented)
|
|
189
|
+
type AddItemAttrs =
|
|
190
|
+
| Partial<DecisionItemDefinition['attrs']>
|
|
191
|
+
| Partial<TaskItemDefinition['attrs']>;
|
|
192
|
+
|
|
186
193
|
// @public (undocumented)
|
|
187
194
|
type AddItemTransactionCreator = (opts: {
|
|
188
195
|
state: EditorState;
|
|
@@ -191,6 +198,7 @@ type AddItemTransactionCreator = (opts: {
|
|
|
191
198
|
item: NodeType;
|
|
192
199
|
listLocalId: string;
|
|
193
200
|
itemLocalId: string;
|
|
201
|
+
itemAttrs?: AddItemAttrs;
|
|
194
202
|
}) => Transaction | null;
|
|
195
203
|
|
|
196
204
|
// @public (undocumented)
|
|
@@ -1144,17 +1152,6 @@ export const insertDate: (
|
|
|
1144
1152
|
// @public (undocumented)
|
|
1145
1153
|
export const insertExpand: Command;
|
|
1146
1154
|
|
|
1147
|
-
// @public (undocumented)
|
|
1148
|
-
export const insertHorizontalRule: (
|
|
1149
|
-
inputMethod:
|
|
1150
|
-
| INPUT_METHOD.FORMATTING
|
|
1151
|
-
| INPUT_METHOD.INSERT_MENU
|
|
1152
|
-
| INPUT_METHOD.QUICK_INSERT
|
|
1153
|
-
| INPUT_METHOD.SHORTCUT
|
|
1154
|
-
| INPUT_METHOD.TOOLBAR,
|
|
1155
|
-
featureFlags: EditorFeatureFlags,
|
|
1156
|
-
) => Command;
|
|
1157
|
-
|
|
1158
1155
|
// @public (undocumented)
|
|
1159
1156
|
type InsertItemProps = {
|
|
1160
1157
|
contentItem: TypeAheadItem;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import type { ContextUpdateHandler } from '@atlaskit/editor-common/types';
|
|
|
34
34
|
import { createTable } from '@atlaskit/editor-plugin-table/commands';
|
|
35
35
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
36
36
|
import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
37
|
+
import type { DecisionItemDefinition } from '@atlaskit/adf-schema';
|
|
37
38
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
38
39
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
39
40
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
@@ -137,6 +138,7 @@ import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
|
137
138
|
import { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
138
139
|
import type { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
139
140
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
141
|
+
import type { TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
140
142
|
import { TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
141
143
|
import { InputMethodBasic as TextFormattingInputMethodBasic } from '@atlaskit/editor-common/types';
|
|
142
144
|
import { InputMethodToolbar as TextFormattingInputMethodToolbar } from '@atlaskit/editor-common/types';
|
|
@@ -172,6 +174,9 @@ export { ACTION_SUBJECT }
|
|
|
172
174
|
|
|
173
175
|
export { ACTION_SUBJECT_ID }
|
|
174
176
|
|
|
177
|
+
// @public (undocumented)
|
|
178
|
+
type AddItemAttrs = Partial<DecisionItemDefinition['attrs']> | Partial<TaskItemDefinition['attrs']>;
|
|
179
|
+
|
|
175
180
|
// @public (undocumented)
|
|
176
181
|
type AddItemTransactionCreator = (opts: {
|
|
177
182
|
state: EditorState;
|
|
@@ -180,6 +185,7 @@ type AddItemTransactionCreator = (opts: {
|
|
|
180
185
|
item: NodeType;
|
|
181
186
|
listLocalId: string;
|
|
182
187
|
itemLocalId: string;
|
|
188
|
+
itemAttrs?: AddItemAttrs;
|
|
183
189
|
}) => Transaction | null;
|
|
184
190
|
|
|
185
191
|
// @public (undocumented)
|
|
@@ -1045,9 +1051,6 @@ export const insertDate: (date?: DateType, inputMethod?: InsertBlockInputMethodT
|
|
|
1045
1051
|
// @public (undocumented)
|
|
1046
1052
|
export const insertExpand: Command;
|
|
1047
1053
|
|
|
1048
|
-
// @public (undocumented)
|
|
1049
|
-
export const insertHorizontalRule: (inputMethod: INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR, featureFlags: EditorFeatureFlags) => Command;
|
|
1050
|
-
|
|
1051
1054
|
// @public (undocumented)
|
|
1052
1055
|
type InsertItemProps = {
|
|
1053
1056
|
contentItem: TypeAheadItem;
|