@atlaskit/editor-plugin-tasks-and-decisions 0.2.3 → 0.2.4
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/plugin.js +5 -7
- package/dist/es2019/plugin.js +6 -7
- package/dist/esm/plugin.js +6 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 0.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763) [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) - update ADF schema
|
|
8
|
+
|
|
3
9
|
## 0.2.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -22,8 +22,6 @@ var _ToolbarDecision = _interopRequireDefault(require("./ui/ToolbarDecision"));
|
|
|
22
22
|
var _ToolbarTask = _interopRequireDefault(require("./ui/ToolbarTask"));
|
|
23
23
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
/** @jsx jsx */
|
|
26
|
-
|
|
27
25
|
var taskDecisionToolbarGroupStyles = (0, _react.css)({
|
|
28
26
|
display: 'flex'
|
|
29
27
|
});
|
|
@@ -115,14 +113,14 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
115
113
|
secondaryToolbarComponent: function secondaryToolbarComponent(_ref6) {
|
|
116
114
|
var editorView = _ref6.editorView,
|
|
117
115
|
disabled = _ref6.disabled;
|
|
118
|
-
return
|
|
116
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
119
117
|
css: taskDecisionToolbarGroupStyles
|
|
120
|
-
},
|
|
118
|
+
}, /*#__PURE__*/React.createElement(_ToolbarDecision.default, {
|
|
121
119
|
editorView: editorView,
|
|
122
120
|
isDisabled: disabled,
|
|
123
121
|
isReducedSpacing: true,
|
|
124
122
|
editorAPI: api
|
|
125
|
-
}),
|
|
123
|
+
}), /*#__PURE__*/React.createElement(_ToolbarTask.default, {
|
|
126
124
|
editorView: editorView,
|
|
127
125
|
isDisabled: disabled,
|
|
128
126
|
isReducedSpacing: true,
|
|
@@ -140,7 +138,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
140
138
|
keywords: ['checkbox', 'task', 'todo'],
|
|
141
139
|
keyshortcut: '[]',
|
|
142
140
|
icon: function icon() {
|
|
143
|
-
return
|
|
141
|
+
return /*#__PURE__*/React.createElement(_quickInsert.IconAction, null);
|
|
144
142
|
},
|
|
145
143
|
action: function action(insert, state) {
|
|
146
144
|
var _api$analytics5;
|
|
@@ -153,7 +151,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
153
151
|
priority: 900,
|
|
154
152
|
keyshortcut: '<>',
|
|
155
153
|
icon: function icon() {
|
|
156
|
-
return
|
|
154
|
+
return /*#__PURE__*/React.createElement(_quickInsert.IconDecision, null);
|
|
157
155
|
},
|
|
158
156
|
action: function action(insert, state) {
|
|
159
157
|
var _api$analytics6;
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
import { css } from '@emotion/react';
|
|
3
2
|
import { decisionItem, decisionList, taskItem, taskList } from '@atlaskit/adf-schema';
|
|
4
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
|
|
@@ -108,14 +107,14 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
108
107
|
editorView,
|
|
109
108
|
disabled
|
|
110
109
|
}) {
|
|
111
|
-
return
|
|
110
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
112
111
|
css: taskDecisionToolbarGroupStyles
|
|
113
|
-
},
|
|
112
|
+
}, /*#__PURE__*/React.createElement(ToolbarDecision, {
|
|
114
113
|
editorView: editorView,
|
|
115
114
|
isDisabled: disabled,
|
|
116
115
|
isReducedSpacing: true,
|
|
117
116
|
editorAPI: api
|
|
118
|
-
}),
|
|
117
|
+
}), /*#__PURE__*/React.createElement(ToolbarTask, {
|
|
119
118
|
editorView: editorView,
|
|
120
119
|
isDisabled: disabled,
|
|
121
120
|
isReducedSpacing: true,
|
|
@@ -132,7 +131,7 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
132
131
|
priority: 100,
|
|
133
132
|
keywords: ['checkbox', 'task', 'todo'],
|
|
134
133
|
keyshortcut: '[]',
|
|
135
|
-
icon: () =>
|
|
134
|
+
icon: () => /*#__PURE__*/React.createElement(IconAction, null),
|
|
136
135
|
action(insert, state) {
|
|
137
136
|
var _api$analytics5;
|
|
138
137
|
return insertTaskDecisionAction(api === null || api === void 0 ? void 0 : (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 ? void 0 : _api$analytics5.actions)(state, 'taskList', INPUT_METHOD.QUICK_INSERT, addItem(insert, 'taskList', state.schema));
|
|
@@ -143,7 +142,7 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
143
142
|
description: formatMessage(insertBlockMessages.decisionDescription),
|
|
144
143
|
priority: 900,
|
|
145
144
|
keyshortcut: '<>',
|
|
146
|
-
icon: () =>
|
|
145
|
+
icon: () => /*#__PURE__*/React.createElement(IconDecision, null),
|
|
147
146
|
action(insert, state) {
|
|
148
147
|
var _api$analytics6;
|
|
149
148
|
return insertTaskDecisionAction(api === null || api === void 0 ? void 0 : (_api$analytics6 = api.analytics) === null || _api$analytics6 === void 0 ? void 0 : _api$analytics6.actions)(state, 'decisionList', INPUT_METHOD.QUICK_INSERT, addItem(insert, 'decisionList', state.schema));
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
import { css } from '@emotion/react';
|
|
3
2
|
import { decisionItem, decisionList, taskItem, taskList } from '@atlaskit/adf-schema';
|
|
4
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
|
|
@@ -104,14 +103,14 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
104
103
|
secondaryToolbarComponent: function secondaryToolbarComponent(_ref6) {
|
|
105
104
|
var editorView = _ref6.editorView,
|
|
106
105
|
disabled = _ref6.disabled;
|
|
107
|
-
return
|
|
106
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
108
107
|
css: taskDecisionToolbarGroupStyles
|
|
109
|
-
},
|
|
108
|
+
}, /*#__PURE__*/React.createElement(ToolbarDecision, {
|
|
110
109
|
editorView: editorView,
|
|
111
110
|
isDisabled: disabled,
|
|
112
111
|
isReducedSpacing: true,
|
|
113
112
|
editorAPI: api
|
|
114
|
-
}),
|
|
113
|
+
}), /*#__PURE__*/React.createElement(ToolbarTask, {
|
|
115
114
|
editorView: editorView,
|
|
116
115
|
isDisabled: disabled,
|
|
117
116
|
isReducedSpacing: true,
|
|
@@ -129,7 +128,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
129
128
|
keywords: ['checkbox', 'task', 'todo'],
|
|
130
129
|
keyshortcut: '[]',
|
|
131
130
|
icon: function icon() {
|
|
132
|
-
return
|
|
131
|
+
return /*#__PURE__*/React.createElement(IconAction, null);
|
|
133
132
|
},
|
|
134
133
|
action: function action(insert, state) {
|
|
135
134
|
var _api$analytics5;
|
|
@@ -142,7 +141,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
142
141
|
priority: 900,
|
|
143
142
|
keyshortcut: '<>',
|
|
144
143
|
icon: function icon() {
|
|
145
|
-
return
|
|
144
|
+
return /*#__PURE__*/React.createElement(IconDecision, null);
|
|
146
145
|
},
|
|
147
146
|
action: function action(insert, state) {
|
|
148
147
|
var _api$analytics6;
|
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.4",
|
|
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
|
+
"@atlaskit/adf-schema": "^35.0.0",
|
|
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.24.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",
|