@atlaskit/editor-plugin-tasks-and-decisions 0.2.1 → 0.2.3
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 +32 -0
- package/package.json +3 -3
- package/tmp/api-report-tmp.d.ts +0 -87
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790) [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) - ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
8
|
+
|
|
9
|
+
## 0.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646) [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make feature flags plugin optional in all plugins including:
|
|
14
|
+
|
|
15
|
+
- analytics
|
|
16
|
+
- base
|
|
17
|
+
- card
|
|
18
|
+
- code-block
|
|
19
|
+
- expand
|
|
20
|
+
- extension
|
|
21
|
+
- floating-toolbar
|
|
22
|
+
- hyperlink
|
|
23
|
+
- insert-block
|
|
24
|
+
- layout
|
|
25
|
+
- layout
|
|
26
|
+
- list
|
|
27
|
+
- media
|
|
28
|
+
- paste
|
|
29
|
+
- rule
|
|
30
|
+
- table
|
|
31
|
+
- tasks-and-decisions
|
|
32
|
+
|
|
33
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not mandatory to be added to the preset.
|
|
34
|
+
|
|
3
35
|
## 0.2.1
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^34.0.
|
|
34
|
+
"@atlaskit/adf-schema": "^34.0.1",
|
|
35
35
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
37
|
-
"@atlaskit/editor-common": "^76.
|
|
37
|
+
"@atlaskit/editor-common": "^76.23.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^0.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-type-ahead": "^0.7.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/editor-plugin-tasks-and-decisions"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
9
|
-
import type { DecisionItemDefinition } from '@atlaskit/adf-schema';
|
|
10
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
11
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
12
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
13
|
-
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
14
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
15
|
-
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
16
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
17
|
-
import type { TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
18
|
-
import type { TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
19
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
20
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
21
|
-
|
|
22
|
-
// @public (undocumented)
|
|
23
|
-
type AddItemAttrs = Partial<DecisionItemDefinition['attrs']> | Partial<TaskItemDefinition['attrs']>;
|
|
24
|
-
|
|
25
|
-
// @public (undocumented)
|
|
26
|
-
type AddItemTransactionCreator = (opts: {
|
|
27
|
-
state: EditorState;
|
|
28
|
-
tr: Transaction;
|
|
29
|
-
list: NodeType;
|
|
30
|
-
item: NodeType;
|
|
31
|
-
listLocalId: string;
|
|
32
|
-
itemLocalId: string;
|
|
33
|
-
itemAttrs?: AddItemAttrs;
|
|
34
|
-
}) => Transaction | null;
|
|
35
|
-
|
|
36
|
-
// @public (undocumented)
|
|
37
|
-
const getIndentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => Command;
|
|
38
|
-
|
|
39
|
-
// @public (undocumented)
|
|
40
|
-
const getUnindentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => Command;
|
|
41
|
-
|
|
42
|
-
// @public (undocumented)
|
|
43
|
-
type IndentationInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
44
|
-
|
|
45
|
-
// @public (undocumented)
|
|
46
|
-
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;
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
type TaskAndDecisionsSharedState = {
|
|
50
|
-
focusedTaskItemLocalId: null | string;
|
|
51
|
-
indentDisabled: boolean;
|
|
52
|
-
outdentDisabled: boolean;
|
|
53
|
-
isInsideTask: boolean;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
// @public (undocumented)
|
|
57
|
-
type TaskDecisionListType = 'decisionList' | 'taskList';
|
|
58
|
-
|
|
59
|
-
// @public (undocumented)
|
|
60
|
-
interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptions {
|
|
61
|
-
// (undocumented)
|
|
62
|
-
allowNestedTasks?: boolean;
|
|
63
|
-
// (undocumented)
|
|
64
|
-
consumeTabs?: boolean;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// @public (undocumented)
|
|
68
|
-
export type TasksAndDecisionsPlugin = NextEditorPlugin<'taskDecision', {
|
|
69
|
-
pluginConfiguration: TaskDecisionPluginOptions | undefined;
|
|
70
|
-
sharedState: TaskAndDecisionsSharedState | undefined;
|
|
71
|
-
dependencies: [
|
|
72
|
-
OptionalPlugin<TypeAheadPlugin>,
|
|
73
|
-
OptionalPlugin<AnalyticsPlugin>
|
|
74
|
-
];
|
|
75
|
-
actions: {
|
|
76
|
-
insertTaskDecision: ReturnType<typeof insertTaskDecisionCommand>;
|
|
77
|
-
indentTaskList: ReturnType<typeof getIndentCommand>;
|
|
78
|
-
outdentTaskList: ReturnType<typeof getUnindentCommand>;
|
|
79
|
-
};
|
|
80
|
-
}>;
|
|
81
|
-
|
|
82
|
-
// @public (undocumented)
|
|
83
|
-
export const tasksAndDecisionsPlugin: TasksAndDecisionsPlugin;
|
|
84
|
-
|
|
85
|
-
// (No @packageDocumentation comment for this package)
|
|
86
|
-
|
|
87
|
-
```
|