@atlaskit/editor-plugin-tasks-and-decisions 31.0.0 → 31.0.1
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/ui/Task/RequestToEditPopup.js +6 -4
- package/dist/cjs/ui/Task/task-item-with-providers.js +2 -2
- package/dist/es2019/ui/Task/RequestToEditPopup.js +3 -1
- package/dist/es2019/ui/Task/task-item-with-providers.js +1 -1
- package/dist/esm/ui/Task/RequestToEditPopup.js +3 -1
- package/dist/esm/ui/Task/task-item-with-providers.js +1 -1
- package/dist/types/ui/Task/index.d.ts +1 -1
- package/dist/types/ui/Task/task-item-with-providers.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -23,7 +23,9 @@ var _useSharedPluginStateSelector = require("@atlaskit/editor-common/useSharedPl
|
|
|
23
23
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
24
24
|
var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
25
25
|
var _checkMark = _interopRequireDefault(require("@atlaskit/icon/core/check-mark"));
|
|
26
|
-
var
|
|
26
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
27
|
+
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
28
|
+
var _stack = require("@atlaskit/primitives/compiled/stack");
|
|
27
29
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
28
30
|
// import Popup from '@atlaskit/popup';
|
|
29
31
|
// oxlint-disable-next-line import/no-duplicates
|
|
@@ -60,7 +62,7 @@ var RequestToEditButton = function RequestToEditButton(_ref) {
|
|
|
60
62
|
var onClick = _ref.onClick;
|
|
61
63
|
var _useIntl2 = (0, _reactIntl.useIntl)(),
|
|
62
64
|
formatMessage = _useIntl2.formatMessage;
|
|
63
|
-
return /*#__PURE__*/React.createElement(
|
|
65
|
+
return /*#__PURE__*/React.createElement(_box.Box, null, /*#__PURE__*/React.createElement(_pressable.Pressable, {
|
|
64
66
|
onClick: onClick,
|
|
65
67
|
xcss: pressableStyles.pressableMotion,
|
|
66
68
|
testId: "request-to-edit-popup-request-btn"
|
|
@@ -163,7 +165,7 @@ var RequestToEditPopup = exports.RequestToEditPopup = function RequestToEditPopu
|
|
|
163
165
|
className: (0, _runtime.ax)(["_2rkofajl _ca0qv77o _n3tdv77o _19bvv77o _u5f3v77o _16qs130s _bfhk1bhr"])
|
|
164
166
|
}, /*#__PURE__*/React.createElement("div", {
|
|
165
167
|
className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _p12f1qwj _ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb"])
|
|
166
|
-
}, /*#__PURE__*/React.createElement(
|
|
168
|
+
}, /*#__PURE__*/React.createElement(_stack.Stack, {
|
|
167
169
|
space: "space.150"
|
|
168
170
|
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
169
171
|
size: "xsmall"
|
|
@@ -173,7 +175,7 @@ var RequestToEditPopup = exports.RequestToEditPopup = function RequestToEditPopu
|
|
|
173
175
|
onClick: onHandleEdit
|
|
174
176
|
}), /*#__PURE__*/React.createElement("div", {
|
|
175
177
|
className: (0, _runtime.ax)(["_19pku2gc _otyru2gc _18u0u2gc _2hwxu2gc _1e0c1o8l _1bsbyh40 _4t3iyh40 _bfhk16e3", "_2rko1rr0"])
|
|
176
|
-
}), /*#__PURE__*/React.createElement(
|
|
178
|
+
}), /*#__PURE__*/React.createElement(_box.Box, null, /*#__PURE__*/React.createElement(_pressable.Pressable
|
|
177
179
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
178
180
|
, {
|
|
179
181
|
onClick: function onClick() {
|
|
@@ -18,7 +18,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
18
18
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
19
19
|
var _react = _interopRequireWildcard(require("react"));
|
|
20
20
|
var _FabricElementsAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext");
|
|
21
|
-
var
|
|
21
|
+
var _resourcedTaskItem = _interopRequireDefault(require("@atlaskit/task-decision/resourced-task-item"));
|
|
22
22
|
var _excluded = ["contextIdentifierProvider"];
|
|
23
23
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
24
24
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -128,7 +128,7 @@ var TaskItemWithProviders = exports.default = /*#__PURE__*/function (_Component)
|
|
|
128
128
|
data: {
|
|
129
129
|
userContext: userContext
|
|
130
130
|
}
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
131
|
+
}, /*#__PURE__*/_react.default.createElement(_resourcedTaskItem.default
|
|
132
132
|
// Ignored via go/ees005
|
|
133
133
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
134
134
|
, (0, _extends2.default)({}, otherProps, {
|
|
@@ -17,7 +17,9 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/useSharedP
|
|
|
17
17
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
18
18
|
import Heading from '@atlaskit/heading/heading';
|
|
19
19
|
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
20
|
-
import { Box
|
|
20
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
21
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
22
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
21
23
|
const PopupWithListeners = withOuterListeners(Popup);
|
|
22
24
|
const TRYING_REQUEST_TIMEOUT = 3000;
|
|
23
25
|
const popupContentWrapper = null;
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
4
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
|
|
5
|
-
import
|
|
5
|
+
import ResourcedTaskItem from '@atlaskit/task-decision/resourced-task-item';
|
|
6
6
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
7
7
|
export default class TaskItemWithProviders extends Component {
|
|
8
8
|
constructor(...args) {
|
|
@@ -18,7 +18,9 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/useSharedP
|
|
|
18
18
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
19
19
|
import Heading from '@atlaskit/heading/heading';
|
|
20
20
|
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
21
|
-
import { Box
|
|
21
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
22
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
23
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
22
24
|
var PopupWithListeners = withOuterListeners(Popup);
|
|
23
25
|
var TRYING_REQUEST_TIMEOUT = 3000;
|
|
24
26
|
var popupContentWrapper = null;
|
|
@@ -13,7 +13,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
import React, { Component } from 'react';
|
|
15
15
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
|
|
16
|
-
import
|
|
16
|
+
import ResourcedTaskItem from '@atlaskit/task-decision/resourced-task-item';
|
|
17
17
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
18
18
|
var TaskItemWithProviders = /*#__PURE__*/function (_Component) {
|
|
19
19
|
function TaskItemWithProviders() {
|
|
@@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
5
5
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
6
|
-
import type { ContentRef } from '@atlaskit/task-decision';
|
|
6
|
+
import type { ContentRef } from '@atlaskit/task-decision/types';
|
|
7
7
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
8
8
|
import type { TaskAndDecisionsSharedState } from '../../types';
|
|
9
9
|
export interface TaskProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory/context-identifier-provider';
|
|
4
|
-
import type { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
4
|
+
import type { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision/types';
|
|
5
5
|
export interface Props {
|
|
6
6
|
children?: ReactElement<any>;
|
|
7
7
|
contentRef?: ContentRef;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "31.0.
|
|
3
|
+
"version": "31.0.1",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/primitives": "^22.6.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
49
49
|
"@atlaskit/task-decision": "^21.12.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^241.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^20.6.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@compiled/react": "^1.0.2",
|