@atlaskit/editor-core 189.3.25 → 189.3.27
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 +15 -0
- package/dist/cjs/plugins/extension/actions.js +15 -1
- package/dist/cjs/plugins/extension/index.js +7 -2
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +37 -38
- package/dist/cjs/plugins/paste/pm-plugins/main.js +25 -8
- package/dist/cjs/plugins/tasks-and-decisions/index.js +16 -7
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +3 -3
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +3 -3
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -5
- package/dist/cjs/ui/ConfigPanel/LoadingState.js +3 -2
- package/dist/cjs/ui/ContentStyles/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/extension/actions.js +16 -0
- package/dist/es2019/plugins/extension/index.js +7 -2
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +6 -6
- package/dist/es2019/plugins/paste/pm-plugins/main.js +25 -8
- package/dist/es2019/plugins/tasks-and-decisions/index.js +115 -107
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/input-rules.js +1 -2
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +1 -1
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -5
- package/dist/es2019/ui/ConfigPanel/LoadingState.js +3 -2
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/extension/actions.js +14 -0
- package/dist/esm/plugins/extension/index.js +7 -2
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +37 -38
- package/dist/esm/plugins/paste/pm-plugins/main.js +25 -8
- package/dist/esm/plugins/tasks-and-decisions/index.js +14 -8
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/input-rules.js +1 -2
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +1 -1
- package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -5
- package/dist/esm/ui/ConfigPanel/LoadingState.js +3 -2
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/extension/actions.d.ts +6 -0
- package/dist/types/plugins/insert-block/types.d.ts +3 -1
- package/dist/types/plugins/tasks-and-decisions/commands.d.ts +1 -2
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +3 -3
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/keymaps.d.ts +3 -3
- package/dist/types/plugins/tasks-and-decisions/types.d.ts +7 -0
- package/dist/types/plugins/tasks-and-decisions/ui/Decision/index.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/ui/Task/index.d.ts +4 -3
- package/dist/types/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.d.ts +3 -2
- package/dist/types/presets/default.d.ts +4 -0
- package/dist/types-ts4.5/plugins/extension/actions.d.ts +6 -0
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +3 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/commands.d.ts +1 -2
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +3 -3
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/keymaps.d.ts +3 -3
- package/dist/types-ts4.5/plugins/tasks-and-decisions/types.d.ts +7 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Decision/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Task/index.d.ts +4 -3
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.d.ts +3 -2
- package/dist/types-ts4.5/presets/default.d.ts +4 -0
- package/package.json +7 -7
- /package/dist/cjs/{plugins/tasks-and-decisions/styles.js → ui/ContentStyles/tasks-and-decisions.js} +0 -0
- /package/dist/es2019/{plugins/tasks-and-decisions/styles.js → ui/ContentStyles/tasks-and-decisions.js} +0 -0
- /package/dist/esm/{plugins/tasks-and-decisions/styles.js → ui/ContentStyles/tasks-and-decisions.js} +0 -0
- /package/dist/types/{plugins/tasks-and-decisions/styles.d.ts → ui/ContentStyles/tasks-and-decisions.d.ts} +0 -0
- /package/dist/types-ts4.5/{plugins/tasks-and-decisions/styles.d.ts → ui/ContentStyles/tasks-and-decisions.d.ts} +0 -0
|
@@ -10,7 +10,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
10
10
|
import React, { PureComponent } from 'react';
|
|
11
11
|
import { injectIntl } from 'react-intl-next';
|
|
12
12
|
import DecisionIcon from '@atlaskit/icon/glyph/editor/decision';
|
|
13
|
-
import
|
|
13
|
+
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
14
14
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
15
15
|
import { insertTaskDecisionCommand } from '../../commands';
|
|
16
16
|
export var ToolbarDecision = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -10,7 +10,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
10
10
|
import React, { PureComponent } from 'react';
|
|
11
11
|
import { injectIntl } from 'react-intl-next';
|
|
12
12
|
import TaskIcon from '@atlaskit/icon/glyph/editor/task';
|
|
13
|
-
import
|
|
13
|
+
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
14
14
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
15
15
|
import { insertTaskDecisionCommand } from '../../commands';
|
|
16
16
|
export var ToolbarTask = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getIndentCommand as indentTaskList, getUnindentCommand as outdentTaskList } from '../../tasks-and-decisions/pm-plugins/keymaps';
|
|
2
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
export var onItemActivated = function onItemActivated(pluginInjectionApi, indentationStateNode) {
|
|
4
3
|
return function (_ref) {
|
|
@@ -22,8 +21,8 @@ export var onItemActivated = function onItemActivated(pluginInjectionApi, indent
|
|
|
22
21
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.commands.indentList(INPUT_METHOD.TOOLBAR));
|
|
23
22
|
}
|
|
24
23
|
if (node === 'taskList') {
|
|
25
|
-
var _pluginInjectionApi$
|
|
26
|
-
|
|
24
|
+
var _pluginInjectionApi$t;
|
|
25
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t = pluginInjectionApi.taskDecision) === null || _pluginInjectionApi$t === void 0 || _pluginInjectionApi$t.actions.indentTaskList(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
27
26
|
}
|
|
28
27
|
break;
|
|
29
28
|
}
|
|
@@ -38,8 +37,8 @@ export var onItemActivated = function onItemActivated(pluginInjectionApi, indent
|
|
|
38
37
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.commands.outdentList(INPUT_METHOD.TOOLBAR));
|
|
39
38
|
}
|
|
40
39
|
if (_node === 'taskList') {
|
|
41
|
-
var _pluginInjectionApi$
|
|
42
|
-
|
|
40
|
+
var _pluginInjectionApi$t2;
|
|
41
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t2 = pluginInjectionApi.taskDecision) === null || _pluginInjectionApi$t2 === void 0 || _pluginInjectionApi$t2.actions.outdentTaskList(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
43
42
|
}
|
|
44
43
|
break;
|
|
45
44
|
}
|
|
@@ -3,10 +3,11 @@ var _templateObject;
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import Spinner from '@atlaskit/spinner';
|
|
6
|
-
var spinnerWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n margin-top:
|
|
6
|
+
var spinnerWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n margin-top: ", ";\n"])), "var(--ds-space-800, 64px)");
|
|
7
7
|
var LoadingState = function LoadingState() {
|
|
8
8
|
return jsx("div", {
|
|
9
|
-
css: spinnerWrapper
|
|
9
|
+
css: spinnerWrapper,
|
|
10
|
+
"data-testid": "ConfigPanelLoading"
|
|
10
11
|
}, jsx(Spinner, {
|
|
11
12
|
size: "small"
|
|
12
13
|
}));
|
|
@@ -19,7 +19,7 @@ import { extensionStyles } from './extension';
|
|
|
19
19
|
import { expandStyles } from './expand';
|
|
20
20
|
import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
|
|
21
21
|
import { findReplaceStyles } from '../../plugins/find-replace/styles';
|
|
22
|
-
import { taskDecisionStyles } from '
|
|
22
|
+
import { taskDecisionStyles } from './tasks-and-decisions';
|
|
23
23
|
import { statusStyles } from './status';
|
|
24
24
|
import { dateStyles } from './date';
|
|
25
25
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "189.3.
|
|
2
|
+
export var version = "189.3.27";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
1
2
|
import type { Schema, Node as PmNode, Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import type { UpdateExtension } from '@atlaskit/editor-common/extensions';
|
|
3
4
|
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -10,3 +11,8 @@ export declare const buildExtensionNode: <S extends Schema<any, any>>(type: 'inl
|
|
|
10
11
|
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type: 'inlineExtension' | 'extension' | 'bodiedExtension', newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
|
|
11
12
|
export declare const editSelectedExtension: (editorActions: EditorActions) => boolean;
|
|
12
13
|
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
14
|
+
type Props = {
|
|
15
|
+
editorViewRef: Record<'current', EditorView | null>;
|
|
16
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare const createEditSelectedExtensionAction: ({ editorViewRef, editorAnalyticsAPI }: Props) => () => boolean;
|
|
@@ -19,6 +19,7 @@ import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
|
19
19
|
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
20
20
|
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
21
21
|
import type { ExpandPlugin } from '@atlaskit/editor-plugin-expand';
|
|
22
|
+
import type { TaskAndDecisionsPlugin } from '../tasks-and-decisions/types';
|
|
22
23
|
export type InsertBlockPluginDependencies = [
|
|
23
24
|
FeatureFlagsPlugin,
|
|
24
25
|
TypeAheadPlugin,
|
|
@@ -39,5 +40,6 @@ export type InsertBlockPluginDependencies = [
|
|
|
39
40
|
OptionalPlugin<LayoutPlugin>,
|
|
40
41
|
OptionalPlugin<ExpandPlugin>,
|
|
41
42
|
OptionalPlugin<PlaceholderTextPlugin>,
|
|
42
|
-
OptionalPlugin<ExtensionPlugin
|
|
43
|
+
OptionalPlugin<ExtensionPlugin>,
|
|
44
|
+
OptionalPlugin<TaskAndDecisionsPlugin>
|
|
43
45
|
];
|
|
@@ -1,9 +1,8 @@
|
|
|
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
|
-
import type { Command } from '../../types';
|
|
4
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import type { TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { TOOLBAR_MENU_TYPE, Command } from '@atlaskit/editor-common/types';
|
|
7
6
|
import type { AddItemAttrs, AddItemTransactionCreator, TaskDecisionInputMethod, TaskDecisionListType } from './types';
|
|
8
7
|
export declare const getListTypes: (listType: TaskDecisionListType, schema: Schema) => {
|
|
9
8
|
list: NodeType;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Node, NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import { TaskItemData } from './types';
|
|
4
|
+
import type { TaskItemData } from './types';
|
|
5
5
|
export declare const isInsideTaskOrDecisionItem: (state: EditorState) => boolean;
|
|
6
6
|
export declare const isActionOrDecisionList: (node: Node) => boolean;
|
|
7
7
|
export declare const isActionOrDecisionItem: (node: Node) => boolean;
|
|
8
8
|
export declare const isInsideTask: (state: EditorState) => boolean;
|
|
9
9
|
export declare const isInsideDecision: (state: EditorState) => boolean;
|
|
10
|
-
export declare const isTable: (node?: Node | null) =>
|
|
10
|
+
export declare const isTable: (node?: Node | null) => boolean;
|
|
11
11
|
/**
|
|
12
12
|
* Creates a NodeRange around the given taskItem and the following
|
|
13
13
|
* ("nested") taskList, if one exists.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI, Command } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { TaskAndDecisionsPlugin } from '../types';
|
|
7
7
|
type IndentationInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
8
|
-
export declare const getUnindentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) =>
|
|
9
|
-
export declare const getIndentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) =>
|
|
8
|
+
export declare const getUnindentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => Command;
|
|
9
|
+
export declare const getIndentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => Command;
|
|
10
10
|
export declare function keymapPlugin(schema: Schema, api: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined, allowNestedTasks?: boolean, consumeTabs?: boolean): SafePlugin | undefined;
|
|
11
11
|
export default keymapPlugin;
|
|
@@ -5,6 +5,8 @@ import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analyti
|
|
|
5
5
|
import type { NextEditorPlugin, OptionalPlugin, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
7
7
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
|
+
import type { insertTaskDecisionCommand } from './commands';
|
|
9
|
+
import type { getIndentCommand, getUnindentCommand } from './pm-plugins/keymaps';
|
|
8
10
|
export type TaskDecisionListType = 'taskList' | 'decisionList';
|
|
9
11
|
export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
10
12
|
export type ContextData = {
|
|
@@ -39,4 +41,9 @@ export type TaskAndDecisionsPlugin = NextEditorPlugin<'taskDecision', {
|
|
|
39
41
|
OptionalPlugin<TypeAheadPlugin>,
|
|
40
42
|
OptionalPlugin<AnalyticsPlugin>
|
|
41
43
|
];
|
|
44
|
+
actions: {
|
|
45
|
+
insertTaskDecision: ReturnType<typeof insertTaskDecisionCommand>;
|
|
46
|
+
indentTaskList: ReturnType<typeof getIndentCommand>;
|
|
47
|
+
outdentTaskList: ReturnType<typeof getUnindentCommand>;
|
|
48
|
+
};
|
|
42
49
|
}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React, { PureComponent } from 'react';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import { ContentRef } from '@atlaskit/task-decision';
|
|
5
|
+
import type { ContentRef } from '@atlaskit/task-decision';
|
|
5
6
|
export interface TaskProps {
|
|
6
7
|
taskId: string;
|
|
7
8
|
isDone: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import { Component } from 'react';
|
|
2
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
4
|
+
import type { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
4
5
|
export interface Props {
|
|
5
6
|
taskId: string;
|
|
6
7
|
isDone: boolean;
|
|
@@ -112,6 +112,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
112
112
|
};
|
|
113
113
|
}, undefined>>];
|
|
114
114
|
actions: {
|
|
115
|
+
editSelectedExtension: () => boolean;
|
|
115
116
|
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
116
117
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
117
118
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
@@ -253,6 +254,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
253
254
|
};
|
|
254
255
|
}, undefined>>];
|
|
255
256
|
actions: {
|
|
257
|
+
editSelectedExtension: () => boolean;
|
|
256
258
|
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
257
259
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
258
260
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
@@ -601,6 +603,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
601
603
|
};
|
|
602
604
|
}, undefined>>];
|
|
603
605
|
actions: {
|
|
606
|
+
editSelectedExtension: () => boolean;
|
|
604
607
|
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
605
608
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
606
609
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
@@ -742,6 +745,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
742
745
|
};
|
|
743
746
|
}, undefined>>];
|
|
744
747
|
actions: {
|
|
748
|
+
editSelectedExtension: () => boolean;
|
|
745
749
|
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
746
750
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
747
751
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
1
2
|
import type { Schema, Node as PmNode, Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import type { UpdateExtension } from '@atlaskit/editor-common/extensions';
|
|
3
4
|
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -10,3 +11,8 @@ export declare const buildExtensionNode: <S extends Schema<any, any>>(type: 'inl
|
|
|
10
11
|
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type: 'inlineExtension' | 'extension' | 'bodiedExtension', newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
|
|
11
12
|
export declare const editSelectedExtension: (editorActions: EditorActions) => boolean;
|
|
12
13
|
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
14
|
+
type Props = {
|
|
15
|
+
editorViewRef: Record<'current', EditorView | null>;
|
|
16
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare const createEditSelectedExtensionAction: ({ editorViewRef, editorAnalyticsAPI }: Props) => () => boolean;
|
|
@@ -19,6 +19,7 @@ import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
|
19
19
|
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
20
20
|
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
21
21
|
import type { ExpandPlugin } from '@atlaskit/editor-plugin-expand';
|
|
22
|
+
import type { TaskAndDecisionsPlugin } from '../tasks-and-decisions/types';
|
|
22
23
|
export type InsertBlockPluginDependencies = [
|
|
23
24
|
FeatureFlagsPlugin,
|
|
24
25
|
TypeAheadPlugin,
|
|
@@ -39,5 +40,6 @@ export type InsertBlockPluginDependencies = [
|
|
|
39
40
|
OptionalPlugin<LayoutPlugin>,
|
|
40
41
|
OptionalPlugin<ExpandPlugin>,
|
|
41
42
|
OptionalPlugin<PlaceholderTextPlugin>,
|
|
42
|
-
OptionalPlugin<ExtensionPlugin
|
|
43
|
+
OptionalPlugin<ExtensionPlugin>,
|
|
44
|
+
OptionalPlugin<TaskAndDecisionsPlugin>
|
|
43
45
|
];
|
|
@@ -1,9 +1,8 @@
|
|
|
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
|
-
import type { Command } from '../../types';
|
|
4
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import type { TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { TOOLBAR_MENU_TYPE, Command } from '@atlaskit/editor-common/types';
|
|
7
6
|
import type { AddItemAttrs, AddItemTransactionCreator, TaskDecisionInputMethod, TaskDecisionListType } from './types';
|
|
8
7
|
export declare const getListTypes: (listType: TaskDecisionListType, schema: Schema) => {
|
|
9
8
|
list: NodeType;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Node, NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import { TaskItemData } from './types';
|
|
4
|
+
import type { TaskItemData } from './types';
|
|
5
5
|
export declare const isInsideTaskOrDecisionItem: (state: EditorState) => boolean;
|
|
6
6
|
export declare const isActionOrDecisionList: (node: Node) => boolean;
|
|
7
7
|
export declare const isActionOrDecisionItem: (node: Node) => boolean;
|
|
8
8
|
export declare const isInsideTask: (state: EditorState) => boolean;
|
|
9
9
|
export declare const isInsideDecision: (state: EditorState) => boolean;
|
|
10
|
-
export declare const isTable: (node?: Node | null) =>
|
|
10
|
+
export declare const isTable: (node?: Node | null) => boolean;
|
|
11
11
|
/**
|
|
12
12
|
* Creates a NodeRange around the given taskItem and the following
|
|
13
13
|
* ("nested") taskList, if one exists.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI, Command } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { TaskAndDecisionsPlugin } from '../types';
|
|
7
7
|
type IndentationInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
8
|
-
export declare const getUnindentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) =>
|
|
9
|
-
export declare const getIndentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) =>
|
|
8
|
+
export declare const getUnindentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => Command;
|
|
9
|
+
export declare const getIndentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => Command;
|
|
10
10
|
export declare function keymapPlugin(schema: Schema, api: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined, allowNestedTasks?: boolean, consumeTabs?: boolean): SafePlugin | undefined;
|
|
11
11
|
export default keymapPlugin;
|
|
@@ -5,6 +5,8 @@ import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analyti
|
|
|
5
5
|
import type { NextEditorPlugin, OptionalPlugin, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
7
7
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
|
+
import type { insertTaskDecisionCommand } from './commands';
|
|
9
|
+
import type { getIndentCommand, getUnindentCommand } from './pm-plugins/keymaps';
|
|
8
10
|
export type TaskDecisionListType = 'taskList' | 'decisionList';
|
|
9
11
|
export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
10
12
|
export type ContextData = {
|
|
@@ -39,4 +41,9 @@ export type TaskAndDecisionsPlugin = NextEditorPlugin<'taskDecision', {
|
|
|
39
41
|
OptionalPlugin<TypeAheadPlugin>,
|
|
40
42
|
OptionalPlugin<AnalyticsPlugin>
|
|
41
43
|
];
|
|
44
|
+
actions: {
|
|
45
|
+
insertTaskDecision: ReturnType<typeof insertTaskDecisionCommand>;
|
|
46
|
+
indentTaskList: ReturnType<typeof getIndentCommand>;
|
|
47
|
+
outdentTaskList: ReturnType<typeof getUnindentCommand>;
|
|
48
|
+
};
|
|
42
49
|
}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React, { PureComponent } from 'react';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import { ContentRef } from '@atlaskit/task-decision';
|
|
5
|
+
import type { ContentRef } from '@atlaskit/task-decision';
|
|
5
6
|
export interface TaskProps {
|
|
6
7
|
taskId: string;
|
|
7
8
|
isDone: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import { Component } from 'react';
|
|
2
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
4
|
+
import type { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
4
5
|
export interface Props {
|
|
5
6
|
taskId: string;
|
|
6
7
|
isDone: boolean;
|
|
@@ -148,6 +148,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
148
148
|
}, undefined>>
|
|
149
149
|
];
|
|
150
150
|
actions: {
|
|
151
|
+
editSelectedExtension: () => boolean;
|
|
151
152
|
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
152
153
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
153
154
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
@@ -328,6 +329,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
328
329
|
}, undefined>>
|
|
329
330
|
];
|
|
330
331
|
actions: {
|
|
332
|
+
editSelectedExtension: () => boolean;
|
|
331
333
|
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
332
334
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
333
335
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
@@ -761,6 +763,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
761
763
|
}, undefined>>
|
|
762
764
|
];
|
|
763
765
|
actions: {
|
|
766
|
+
editSelectedExtension: () => boolean;
|
|
764
767
|
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
765
768
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
766
769
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
@@ -941,6 +944,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
941
944
|
}, undefined>>
|
|
942
945
|
];
|
|
943
946
|
actions: {
|
|
947
|
+
editSelectedExtension: () => boolean;
|
|
944
948
|
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
945
949
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
946
950
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "189.3.
|
|
3
|
+
"version": "189.3.27",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@atlaskit/editor-plugin-editor-disabled": "^0.2.0",
|
|
74
74
|
"@atlaskit/editor-plugin-emoji": "^0.4.0",
|
|
75
75
|
"@atlaskit/editor-plugin-expand": "^0.1.0",
|
|
76
|
-
"@atlaskit/editor-plugin-extension": "^0.
|
|
76
|
+
"@atlaskit/editor-plugin-extension": "^0.4.0",
|
|
77
77
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
78
78
|
"@atlaskit/editor-plugin-floating-toolbar": "^0.7.0",
|
|
79
79
|
"@atlaskit/editor-plugin-focus": "^0.2.0",
|
|
@@ -124,15 +124,15 @@
|
|
|
124
124
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
125
125
|
"@atlaskit/prosemirror-collab": "^0.2.0",
|
|
126
126
|
"@atlaskit/prosemirror-input-rules": "^2.4.0",
|
|
127
|
-
"@atlaskit/radio": "^
|
|
127
|
+
"@atlaskit/radio": "^6.0.0",
|
|
128
128
|
"@atlaskit/section-message": "^6.4.0",
|
|
129
|
-
"@atlaskit/select": "^
|
|
129
|
+
"@atlaskit/select": "^17.0.0",
|
|
130
130
|
"@atlaskit/smart-card": "^26.42.0",
|
|
131
131
|
"@atlaskit/smart-user-picker": "^6.3.0",
|
|
132
|
-
"@atlaskit/spinner": "^
|
|
133
|
-
"@atlaskit/tabs": "^
|
|
132
|
+
"@atlaskit/spinner": "^16.0.0",
|
|
133
|
+
"@atlaskit/tabs": "^14.0.0",
|
|
134
134
|
"@atlaskit/task-decision": "^17.9.0",
|
|
135
|
-
"@atlaskit/textarea": "^
|
|
135
|
+
"@atlaskit/textarea": "^5.0.0",
|
|
136
136
|
"@atlaskit/textfield": "^5.6.0",
|
|
137
137
|
"@atlaskit/theme": "^12.6.0",
|
|
138
138
|
"@atlaskit/toggle": "^13.0.0",
|
/package/dist/cjs/{plugins/tasks-and-decisions/styles.js → ui/ContentStyles/tasks-and-decisions.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/esm/{plugins/tasks-and-decisions/styles.js → ui/ContentStyles/tasks-and-decisions.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|