@atlaskit/editor-plugin-tasks-and-decisions 0.2.4 → 0.2.6
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 +12 -0
- package/dist/cjs/plugin.js +7 -5
- package/dist/es2019/plugin.js +7 -6
- package/dist/esm/plugin.js +7 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 0.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.2.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
14
|
+
|
|
3
15
|
## 0.2.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -22,6 +22,8 @@ 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
|
+
|
|
25
27
|
var taskDecisionToolbarGroupStyles = (0, _react.css)({
|
|
26
28
|
display: 'flex'
|
|
27
29
|
});
|
|
@@ -113,14 +115,14 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
113
115
|
secondaryToolbarComponent: function secondaryToolbarComponent(_ref6) {
|
|
114
116
|
var editorView = _ref6.editorView,
|
|
115
117
|
disabled = _ref6.disabled;
|
|
116
|
-
return
|
|
118
|
+
return (0, _react.jsx)("div", {
|
|
117
119
|
css: taskDecisionToolbarGroupStyles
|
|
118
|
-
},
|
|
120
|
+
}, (0, _react.jsx)(_ToolbarDecision.default, {
|
|
119
121
|
editorView: editorView,
|
|
120
122
|
isDisabled: disabled,
|
|
121
123
|
isReducedSpacing: true,
|
|
122
124
|
editorAPI: api
|
|
123
|
-
}),
|
|
125
|
+
}), (0, _react.jsx)(_ToolbarTask.default, {
|
|
124
126
|
editorView: editorView,
|
|
125
127
|
isDisabled: disabled,
|
|
126
128
|
isReducedSpacing: true,
|
|
@@ -138,7 +140,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
138
140
|
keywords: ['checkbox', 'task', 'todo'],
|
|
139
141
|
keyshortcut: '[]',
|
|
140
142
|
icon: function icon() {
|
|
141
|
-
return
|
|
143
|
+
return (0, _react.jsx)(_quickInsert.IconAction, null);
|
|
142
144
|
},
|
|
143
145
|
action: function action(insert, state) {
|
|
144
146
|
var _api$analytics5;
|
|
@@ -151,7 +153,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
151
153
|
priority: 900,
|
|
152
154
|
keyshortcut: '<>',
|
|
153
155
|
icon: function icon() {
|
|
154
|
-
return
|
|
156
|
+
return (0, _react.jsx)(_quickInsert.IconDecision, null);
|
|
155
157
|
},
|
|
156
158
|
action: function action(insert, state) {
|
|
157
159
|
var _api$analytics6;
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
2
3
|
import { decisionItem, decisionList, taskItem, taskList } from '@atlaskit/adf-schema';
|
|
3
4
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
5
|
import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
|
|
@@ -107,14 +108,14 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
107
108
|
editorView,
|
|
108
109
|
disabled
|
|
109
110
|
}) {
|
|
110
|
-
return
|
|
111
|
+
return jsx("div", {
|
|
111
112
|
css: taskDecisionToolbarGroupStyles
|
|
112
|
-
},
|
|
113
|
+
}, jsx(ToolbarDecision, {
|
|
113
114
|
editorView: editorView,
|
|
114
115
|
isDisabled: disabled,
|
|
115
116
|
isReducedSpacing: true,
|
|
116
117
|
editorAPI: api
|
|
117
|
-
}),
|
|
118
|
+
}), jsx(ToolbarTask, {
|
|
118
119
|
editorView: editorView,
|
|
119
120
|
isDisabled: disabled,
|
|
120
121
|
isReducedSpacing: true,
|
|
@@ -131,7 +132,7 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
131
132
|
priority: 100,
|
|
132
133
|
keywords: ['checkbox', 'task', 'todo'],
|
|
133
134
|
keyshortcut: '[]',
|
|
134
|
-
icon: () =>
|
|
135
|
+
icon: () => jsx(IconAction, null),
|
|
135
136
|
action(insert, state) {
|
|
136
137
|
var _api$analytics5;
|
|
137
138
|
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));
|
|
@@ -142,7 +143,7 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
142
143
|
description: formatMessage(insertBlockMessages.decisionDescription),
|
|
143
144
|
priority: 900,
|
|
144
145
|
keyshortcut: '<>',
|
|
145
|
-
icon: () =>
|
|
146
|
+
icon: () => jsx(IconDecision, null),
|
|
146
147
|
action(insert, state) {
|
|
147
148
|
var _api$analytics6;
|
|
148
149
|
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
2
3
|
import { decisionItem, decisionList, taskItem, taskList } from '@atlaskit/adf-schema';
|
|
3
4
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
5
|
import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
|
|
@@ -103,14 +104,14 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
103
104
|
secondaryToolbarComponent: function secondaryToolbarComponent(_ref6) {
|
|
104
105
|
var editorView = _ref6.editorView,
|
|
105
106
|
disabled = _ref6.disabled;
|
|
106
|
-
return
|
|
107
|
+
return jsx("div", {
|
|
107
108
|
css: taskDecisionToolbarGroupStyles
|
|
108
|
-
},
|
|
109
|
+
}, jsx(ToolbarDecision, {
|
|
109
110
|
editorView: editorView,
|
|
110
111
|
isDisabled: disabled,
|
|
111
112
|
isReducedSpacing: true,
|
|
112
113
|
editorAPI: api
|
|
113
|
-
}),
|
|
114
|
+
}), jsx(ToolbarTask, {
|
|
114
115
|
editorView: editorView,
|
|
115
116
|
isDisabled: disabled,
|
|
116
117
|
isReducedSpacing: true,
|
|
@@ -128,7 +129,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
128
129
|
keywords: ['checkbox', 'task', 'todo'],
|
|
129
130
|
keyshortcut: '[]',
|
|
130
131
|
icon: function icon() {
|
|
131
|
-
return
|
|
132
|
+
return jsx(IconAction, null);
|
|
132
133
|
},
|
|
133
134
|
action: function action(insert, state) {
|
|
134
135
|
var _api$analytics5;
|
|
@@ -141,7 +142,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
141
142
|
priority: 900,
|
|
142
143
|
keyshortcut: '<>',
|
|
143
144
|
icon: function icon() {
|
|
144
|
-
return
|
|
145
|
+
return jsx(IconDecision, null);
|
|
145
146
|
},
|
|
146
147
|
action: function action(insert, state) {
|
|
147
148
|
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.6",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
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.25.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^0.3.0",
|
|
39
|
-
"@atlaskit/editor-plugin-type-ahead": "^0.
|
|
39
|
+
"@atlaskit/editor-plugin-type-ahead": "^0.8.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
41
41
|
"@atlaskit/icon": "^22.0.0",
|
|
42
42
|
"@atlaskit/prosemirror-input-rules": "^2.4.0",
|