@atlaskit/editor-plugin-tasks-and-decisions 0.2.2 → 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 CHANGED
@@ -1,5 +1,17 @@
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
+
9
+ ## 0.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
3
15
  ## 0.2.2
4
16
 
5
17
  ### Patch Changes
@@ -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 (0, _react.jsx)("div", {
116
+ return /*#__PURE__*/React.createElement("div", {
119
117
  css: taskDecisionToolbarGroupStyles
120
- }, (0, _react.jsx)(_ToolbarDecision.default, {
118
+ }, /*#__PURE__*/React.createElement(_ToolbarDecision.default, {
121
119
  editorView: editorView,
122
120
  isDisabled: disabled,
123
121
  isReducedSpacing: true,
124
122
  editorAPI: api
125
- }), (0, _react.jsx)(_ToolbarTask.default, {
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 (0, _react.jsx)(_quickInsert.IconAction, null);
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 (0, _react.jsx)(_quickInsert.IconDecision, null);
154
+ return /*#__PURE__*/React.createElement(_quickInsert.IconDecision, null);
157
155
  },
158
156
  action: function action(insert, state) {
159
157
  var _api$analytics6;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
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 jsx("div", {
110
+ return /*#__PURE__*/React.createElement("div", {
112
111
  css: taskDecisionToolbarGroupStyles
113
- }, jsx(ToolbarDecision, {
112
+ }, /*#__PURE__*/React.createElement(ToolbarDecision, {
114
113
  editorView: editorView,
115
114
  isDisabled: disabled,
116
115
  isReducedSpacing: true,
117
116
  editorAPI: api
118
- }), jsx(ToolbarTask, {
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: () => jsx(IconAction, null),
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: () => jsx(IconDecision, null),
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));
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
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 jsx("div", {
106
+ return /*#__PURE__*/React.createElement("div", {
108
107
  css: taskDecisionToolbarGroupStyles
109
- }, jsx(ToolbarDecision, {
108
+ }, /*#__PURE__*/React.createElement(ToolbarDecision, {
110
109
  editorView: editorView,
111
110
  isDisabled: disabled,
112
111
  isReducedSpacing: true,
113
112
  editorAPI: api
114
- }), jsx(ToolbarTask, {
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 jsx(IconAction, null);
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 jsx(IconDecision, null);
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.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.0.0",
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.21.0",
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",
@@ -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
- ```