@atlaskit/editor-plugin-tasks-and-decisions 2.11.10 → 2.11.12
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 +17 -0
- package/dist/cjs/plugin.js +5 -2
- package/dist/es2019/plugin.js +4 -2
- package/dist/esm/plugin.js +5 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 2.11.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#159176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159176)
|
|
8
|
+
[`8f1d77592a9dc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8f1d77592a9dc) -
|
|
9
|
+
Bump adf-schema to 44.2.0
|
|
10
|
+
- [#158708](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/158708)
|
|
11
|
+
[`6a5dd592373c2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a5dd592373c2) -
|
|
12
|
+
[ux] ED-25552 Assume has edit permission for tasks is true unless configured
|
|
13
|
+
|
|
14
|
+
## 2.11.11
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 2.11.10
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -122,7 +122,8 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
122
122
|
allowNestedTasks = _ref2$config2.allowNestedTasks,
|
|
123
123
|
consumeTabs = _ref2$config2.consumeTabs,
|
|
124
124
|
useLongPressSelection = _ref2$config2.useLongPressSelection,
|
|
125
|
-
|
|
125
|
+
_ref2$config2$hasEdit = _ref2$config2.hasEditPermission,
|
|
126
|
+
hasEditPermission = _ref2$config2$hasEdit === void 0 ? true : _ref2$config2$hasEdit,
|
|
126
127
|
hasRequestedEditPermission = _ref2$config2.hasRequestedEditPermission,
|
|
127
128
|
requestToEditContent = _ref2$config2.requestToEditContent,
|
|
128
129
|
taskDecisionProvider = _ref2$config2.taskDecisionProvider,
|
|
@@ -169,7 +170,9 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
169
170
|
isInsideTask: (0, _helpers.isInsideTask)(editorState),
|
|
170
171
|
indentDisabled: itemIndex === 0 || indentLevel >= _indentation.MAX_INDENTATION_LEVEL,
|
|
171
172
|
outdentDisabled: indentLevel <= 1,
|
|
172
|
-
hasEditPermission
|
|
173
|
+
// hasEditPermission is assumed to be true if pluginState.hasEditPermission is undefined
|
|
174
|
+
// this allows the default plugin state to initialise as true if the extra configuration is not provided
|
|
175
|
+
hasEditPermission: (pluginState === null || pluginState === void 0 ? void 0 : pluginState.hasEditPermission) !== undefined ? pluginState === null || pluginState === void 0 ? void 0 : pluginState.hasEditPermission : true,
|
|
173
176
|
requestToEditContent: pluginState === null || pluginState === void 0 ? void 0 : pluginState.requestToEditContent,
|
|
174
177
|
hasRequestedEditPermission: pluginState === null || pluginState === void 0 ? void 0 : pluginState.hasRequestedEditPermission,
|
|
175
178
|
taskDecisionProvider: pluginState === null || pluginState === void 0 ? void 0 : pluginState.taskDecisionProvider
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -109,7 +109,7 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
109
109
|
allowNestedTasks,
|
|
110
110
|
consumeTabs,
|
|
111
111
|
useLongPressSelection,
|
|
112
|
-
hasEditPermission,
|
|
112
|
+
hasEditPermission = true,
|
|
113
113
|
hasRequestedEditPermission,
|
|
114
114
|
requestToEditContent,
|
|
115
115
|
taskDecisionProvider
|
|
@@ -158,7 +158,9 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
158
158
|
isInsideTask: isInsideTask(editorState),
|
|
159
159
|
indentDisabled: itemIndex === 0 || indentLevel >= MAX_INDENTATION_LEVEL,
|
|
160
160
|
outdentDisabled: indentLevel <= 1,
|
|
161
|
-
hasEditPermission
|
|
161
|
+
// hasEditPermission is assumed to be true if pluginState.hasEditPermission is undefined
|
|
162
|
+
// this allows the default plugin state to initialise as true if the extra configuration is not provided
|
|
163
|
+
hasEditPermission: (pluginState === null || pluginState === void 0 ? void 0 : pluginState.hasEditPermission) !== undefined ? pluginState === null || pluginState === void 0 ? void 0 : pluginState.hasEditPermission : true,
|
|
162
164
|
requestToEditContent: pluginState === null || pluginState === void 0 ? void 0 : pluginState.requestToEditContent,
|
|
163
165
|
hasRequestedEditPermission: pluginState === null || pluginState === void 0 ? void 0 : pluginState.hasRequestedEditPermission,
|
|
164
166
|
taskDecisionProvider: pluginState === null || pluginState === void 0 ? void 0 : pluginState.taskDecisionProvider
|
package/dist/esm/plugin.js
CHANGED
|
@@ -114,7 +114,8 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
114
114
|
allowNestedTasks = _ref2$config2.allowNestedTasks,
|
|
115
115
|
consumeTabs = _ref2$config2.consumeTabs,
|
|
116
116
|
useLongPressSelection = _ref2$config2.useLongPressSelection,
|
|
117
|
-
|
|
117
|
+
_ref2$config2$hasEdit = _ref2$config2.hasEditPermission,
|
|
118
|
+
hasEditPermission = _ref2$config2$hasEdit === void 0 ? true : _ref2$config2$hasEdit,
|
|
118
119
|
hasRequestedEditPermission = _ref2$config2.hasRequestedEditPermission,
|
|
119
120
|
requestToEditContent = _ref2$config2.requestToEditContent,
|
|
120
121
|
taskDecisionProvider = _ref2$config2.taskDecisionProvider,
|
|
@@ -161,7 +162,9 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
161
162
|
isInsideTask: isInsideTask(editorState),
|
|
162
163
|
indentDisabled: itemIndex === 0 || indentLevel >= MAX_INDENTATION_LEVEL,
|
|
163
164
|
outdentDisabled: indentLevel <= 1,
|
|
164
|
-
hasEditPermission
|
|
165
|
+
// hasEditPermission is assumed to be true if pluginState.hasEditPermission is undefined
|
|
166
|
+
// this allows the default plugin state to initialise as true if the extra configuration is not provided
|
|
167
|
+
hasEditPermission: (pluginState === null || pluginState === void 0 ? void 0 : pluginState.hasEditPermission) !== undefined ? pluginState === null || pluginState === void 0 ? void 0 : pluginState.hasEditPermission : true,
|
|
165
168
|
requestToEditContent: pluginState === null || pluginState === void 0 ? void 0 : pluginState.requestToEditContent,
|
|
166
169
|
hasRequestedEditPermission: pluginState === null || pluginState === void 0 ? void 0 : pluginState.hasRequestedEditPermission,
|
|
167
170
|
taskDecisionProvider: pluginState === null || pluginState === void 0 ? void 0 : pluginState.taskDecisionProvider
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.12",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^
|
|
34
|
+
"@atlaskit/adf-schema": "^44.2.0",
|
|
35
35
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
37
|
-
"@atlaskit/editor-common": "^94.
|
|
37
|
+
"@atlaskit/editor-common": "^94.9.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
39
39
|
"@atlaskit/editor-plugin-context-identifier": "^1.3.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-viewmode": "2.1.10",
|
|
41
41
|
"@atlaskit/editor-plugin-type-ahead": "^1.10.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
43
43
|
"@atlaskit/heading": "2.4.7",
|
|
44
|
-
"@atlaskit/icon": "22.24.
|
|
44
|
+
"@atlaskit/icon": "22.24.1",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
46
|
"@atlaskit/popup": "1.29.1",
|
|
47
47
|
"@atlaskit/primitives": "13.0.0",
|