@atlaskit/task-decision 17.6.2 → 17.6.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 +12 -0
- package/dist/cjs/components/DecisionItem.js +1 -2
- package/dist/cjs/components/Item.js +7 -4
- package/dist/cjs/components/TaskItem.js +1 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/DecisionItem.js +1 -2
- package/dist/es2019/components/Item.js +7 -3
- package/dist/es2019/components/TaskItem.js +1 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/DecisionItem.js +1 -2
- package/dist/esm/components/Item.js +7 -3
- package/dist/esm/components/TaskItem.js +1 -2
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.5/analytics/index.d.ts +2 -0
- package/dist/types-ts4.5/api/TaskDecisionResource.d.ts +67 -0
- package/dist/types-ts4.5/api/TaskDecisionUtils.d.ts +4 -0
- package/dist/types-ts4.5/components/DecisionItem.d.ts +15 -0
- package/dist/types-ts4.5/components/DecisionList.d.ts +9 -0
- package/dist/types-ts4.5/components/Item.d.ts +25 -0
- package/dist/types-ts4.5/components/ResourcedTaskItem.d.ts +35 -0
- package/dist/types-ts4.5/components/TaskItem.d.ts +21 -0
- package/dist/types-ts4.5/components/TaskList.d.ts +9 -0
- package/dist/types-ts4.5/components/listStyle.d.ts +2 -0
- package/dist/types-ts4.5/constants.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +9 -0
- package/dist/types-ts4.5/type-helpers.d.ts +6 -0
- package/dist/types-ts4.5/types.d.ts +160 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/task-decision
|
|
2
2
|
|
|
3
|
+
## 17.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
8
|
+
|
|
9
|
+
## 17.6.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`9369cc38a68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9369cc38a68) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
14
|
+
|
|
3
15
|
## 17.6.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -10,7 +10,6 @@ var _decision = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/deci
|
|
|
10
10
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _components = require("@atlaskit/theme/components");
|
|
13
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
14
13
|
/** @jsx jsx */
|
|
15
14
|
|
|
16
15
|
var iconStyles = function iconStyles(showPlaceholder) {
|
|
@@ -19,7 +18,7 @@ var iconStyles = function iconStyles(showPlaceholder) {
|
|
|
19
18
|
flex: '0 0 16px',
|
|
20
19
|
height: '16px',
|
|
21
20
|
width: '16px',
|
|
22
|
-
margin: "4px
|
|
21
|
+
margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-150, 12px)", " 0 0"),
|
|
23
22
|
color: showPlaceholder ? "var(--ds-icon-subtle, ".concat(_colors.N100, ")") : (0, _components.themed)({
|
|
24
23
|
light: "var(--ds-icon-success, ".concat(_colors.G400, ")"),
|
|
25
24
|
dark: "var(--ds-icon-success, ".concat(_colors.G200, ")")
|
|
@@ -18,7 +18,7 @@ var _components = require("@atlaskit/theme/components");
|
|
|
18
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
19
|
var _constants = require("@atlaskit/theme/constants");
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
21
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
21
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
22
22
|
var contentStyle = (0, _react2.css)({
|
|
23
23
|
margin: 0,
|
|
24
24
|
wordWrap: 'break-word',
|
|
@@ -35,9 +35,9 @@ var decisionStyles = function decisionStyles(theme) {
|
|
|
35
35
|
return (0, _react2.css)({
|
|
36
36
|
display: 'flex',
|
|
37
37
|
flexDirection: 'row',
|
|
38
|
-
margin: "
|
|
39
|
-
padding: "
|
|
40
|
-
paddingLeft: "
|
|
38
|
+
margin: "var(--ds-space-100, 8px)".concat(" 0 0 0"),
|
|
39
|
+
padding: "var(--ds-space-100, 8px)",
|
|
40
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
41
41
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
42
42
|
backgroundColor: (0, _components.themed)({
|
|
43
43
|
light: "var(--ds-background-neutral, ".concat(_colors.N20A, ")"),
|
|
@@ -81,6 +81,9 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
81
81
|
if (!showPlaceholder || !placeholder || children) {
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
84
|
+
|
|
85
|
+
// TODO: Migrate away from gridSize
|
|
86
|
+
// Recommendation: Replace gridSize with 8
|
|
84
87
|
var offset = (0, _constants.gridSize)() * (itemType === 'TASK' ? 3 : 3.5);
|
|
85
88
|
return (0, _react2.jsx)("span", {
|
|
86
89
|
"data-component": "placeholder",
|
|
@@ -12,7 +12,6 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
13
13
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
14
14
|
var _analytics = require("../analytics");
|
|
15
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
16
15
|
var _components = require("@atlaskit/theme/components");
|
|
17
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
17
|
var _templateObject, _templateObject2;
|
|
@@ -25,7 +24,7 @@ var getCheckBoxId = function getCheckBoxId(localId) {
|
|
|
25
24
|
};
|
|
26
25
|
var checkboxStyles = function checkboxStyles(isRenderer) {
|
|
27
26
|
return function (theme) {
|
|
28
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n position: relative;\n align-self: start;\n margin:
|
|
27
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n position: relative;\n align-self: start;\n margin: ", " ", " 0 0;\n\n & > input[type='checkbox'] {\n width: 16px;\n height: 16px;\n z-index: 1;\n cursor: pointer;\n position: absolute;\n outline: none;\n margin: 0;\n opacity: 0;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n\n + div {\n box-sizing: border-box;\n display: inline;\n width: 100%;\n cursor: pointer;\n\n &::after {\n background: ", ";\n background-size: 16px;\n border-radius: 3px;\n border-style: solid;\n border-width: 1px;\n border-color: ", ";\n box-sizing: border-box;\n content: '';\n height: 16px;\n left: 50%;\n position: absolute;\n transition: border-color 0.2s ease-in-out;\n top: 8px;\n width: 16px;\n transform: translate(-50%, -50%);\n }\n }\n ", "\n\n &:not([disabled]):hover + div::after {\n background: ", ";\n transition: border 0.2s ease-in-out;\n }\n &[disabled] + div {\n opacity: 0.5;\n cursor: default;\n }\n &:checked {\n + div::after {\n background: url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDEyIDEyIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMDA1MkNDIj48L3JlY3Q+DQogIDxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik05LjM3NCA0LjkxNEw1LjQ1NiA4LjgzMmEuNzY5Ljc2OSAwIDAgMS0xLjA4OCAwTDIuNjI2IDcuMDkxYS43NjkuNzY5IDAgMSAxIDEuMDg4LTEuMDg5TDQuOTEyIDcuMmwzLjM3NC0zLjM3NGEuNzY5Ljc2OSAwIDEgMSAxLjA4OCAxLjA4OCI+PC9wYXRoPg0KPC9zdmc+)\n no-repeat 0 0;\n background-size: 16px;\n border: 0;\n border-color: transparent;\n }\n &:not([disabled]):hover + div::after {\n background: url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDEyIDEyIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMDc0N0E2Ij48L3JlY3Q+DQogIDxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik05LjM3NCA0LjkxNEw1LjQ1NiA4LjgzMmEuNzY5Ljc2OSAwIDAgMS0xLjA4OCAwTDIuNjI2IDcuMDkxYS43NjkuNzY5IDAgMSAxIDEuMDg4LTEuMDg5TDQuOTEyIDcuMmwzLjM3NC0zLjM3NGEuNzY5Ljc2OSAwIDEgMSAxLjA4OCAxLjA4OCI+PC9wYXRoPg0KPC9zdmc+)\n no-repeat 0 0;\n background-size: 16px;\n }\n }\n }\n "])), "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)", (0, _components.themed)({
|
|
29
28
|
light: "var(--ds-background-input, ".concat(_colors.N0, ")"),
|
|
30
29
|
dark: "var(--ds-background-input, ".concat(_colors.DN100, ")")
|
|
31
30
|
})({
|
package/dist/cjs/version.json
CHANGED
|
@@ -5,13 +5,12 @@ import DecisionIcon from '@atlaskit/icon/glyph/editor/decision';
|
|
|
5
5
|
import Item from './Item';
|
|
6
6
|
import { G200, G400, N100 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
8
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
8
|
const iconStyles = showPlaceholder => theme => {
|
|
10
9
|
return css({
|
|
11
10
|
flex: '0 0 16px',
|
|
12
11
|
height: '16px',
|
|
13
12
|
width: '16px',
|
|
14
|
-
margin:
|
|
13
|
+
margin: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-150, 12px)"} 0 0`,
|
|
15
14
|
color: showPlaceholder ? `var(--ds-icon-subtle, ${N100})` : themed({
|
|
16
15
|
light: `var(--ds-icon-success, ${G400})`,
|
|
17
16
|
dark: `var(--ds-icon-success, ${G200})`
|
|
@@ -6,6 +6,7 @@ import { PureComponent } from 'react';
|
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { themed } from '@atlaskit/theme/components';
|
|
8
8
|
import { DN50, N200, N20A } from '@atlaskit/theme/colors';
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
9
10
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
10
11
|
const contentStyle = css({
|
|
11
12
|
margin: 0,
|
|
@@ -22,9 +23,9 @@ const taskStyles = css({
|
|
|
22
23
|
const decisionStyles = theme => css({
|
|
23
24
|
display: 'flex',
|
|
24
25
|
flexDirection: 'row',
|
|
25
|
-
margin: `${
|
|
26
|
-
padding:
|
|
27
|
-
paddingLeft: `${
|
|
26
|
+
margin: `${"var(--ds-space-100, 8px)"} 0 0 0`,
|
|
27
|
+
padding: "var(--ds-space-100, 8px)",
|
|
28
|
+
paddingLeft: `${"var(--ds-space-150, 12px)"}`,
|
|
28
29
|
borderRadius: `${borderRadius()}px`,
|
|
29
30
|
backgroundColor: themed({
|
|
30
31
|
light: `var(--ds-background-neutral, ${N20A})`,
|
|
@@ -58,6 +59,9 @@ export default class Item extends PureComponent {
|
|
|
58
59
|
if (!showPlaceholder || !placeholder || children) {
|
|
59
60
|
return null;
|
|
60
61
|
}
|
|
62
|
+
|
|
63
|
+
// TODO: Migrate away from gridSize
|
|
64
|
+
// Recommendation: Replace gridSize with 8
|
|
61
65
|
const offset = gridSize() * (itemType === 'TASK' ? 3 : 3.5);
|
|
62
66
|
return jsx("span", {
|
|
63
67
|
"data-component": "placeholder",
|
|
@@ -4,7 +4,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
4
4
|
import Item from './Item';
|
|
5
5
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
6
|
import { createAndFireEventInElementsChannel } from '../analytics';
|
|
7
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
7
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
9
8
|
import { B300, B75, DN100, DN200, N0, N30, N90 } from '@atlaskit/theme/colors';
|
|
10
9
|
let taskCount = 0;
|
|
@@ -15,7 +14,7 @@ const checkboxStyles = isRenderer => theme => css`
|
|
|
15
14
|
height: 16px;
|
|
16
15
|
position: relative;
|
|
17
16
|
align-self: start;
|
|
18
|
-
margin: 4px ${
|
|
17
|
+
margin: ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"} 0 0;
|
|
19
18
|
|
|
20
19
|
& > input[type='checkbox'] {
|
|
21
20
|
width: 16px;
|
package/dist/es2019/version.json
CHANGED
|
@@ -5,14 +5,13 @@ import DecisionIcon from '@atlaskit/icon/glyph/editor/decision';
|
|
|
5
5
|
import Item from './Item';
|
|
6
6
|
import { G200, G400, N100 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
8
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
8
|
var iconStyles = function iconStyles(showPlaceholder) {
|
|
10
9
|
return function (theme) {
|
|
11
10
|
return css({
|
|
12
11
|
flex: '0 0 16px',
|
|
13
12
|
height: '16px',
|
|
14
13
|
width: '16px',
|
|
15
|
-
margin: "4px
|
|
14
|
+
margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-150, 12px)", " 0 0"),
|
|
16
15
|
color: showPlaceholder ? "var(--ds-icon-subtle, ".concat(N100, ")") : themed({
|
|
17
16
|
light: "var(--ds-icon-success, ".concat(G400, ")"),
|
|
18
17
|
dark: "var(--ds-icon-success, ".concat(G200, ")")
|
|
@@ -13,6 +13,7 @@ import { PureComponent } from 'react';
|
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { themed } from '@atlaskit/theme/components';
|
|
15
15
|
import { DN50, N200, N20A } from '@atlaskit/theme/colors';
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
16
17
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
17
18
|
var contentStyle = css({
|
|
18
19
|
margin: 0,
|
|
@@ -30,9 +31,9 @@ var decisionStyles = function decisionStyles(theme) {
|
|
|
30
31
|
return css({
|
|
31
32
|
display: 'flex',
|
|
32
33
|
flexDirection: 'row',
|
|
33
|
-
margin: "".concat(
|
|
34
|
-
padding: "
|
|
35
|
-
paddingLeft: "
|
|
34
|
+
margin: "var(--ds-space-100, 8px)".concat(" 0 0 0"),
|
|
35
|
+
padding: "var(--ds-space-100, 8px)",
|
|
36
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
36
37
|
borderRadius: "".concat(borderRadius(), "px"),
|
|
37
38
|
backgroundColor: themed({
|
|
38
39
|
light: "var(--ds-background-neutral, ".concat(N20A, ")"),
|
|
@@ -76,6 +77,9 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
76
77
|
if (!showPlaceholder || !placeholder || children) {
|
|
77
78
|
return null;
|
|
78
79
|
}
|
|
80
|
+
|
|
81
|
+
// TODO: Migrate away from gridSize
|
|
82
|
+
// Recommendation: Replace gridSize with 8
|
|
79
83
|
var offset = gridSize() * (itemType === 'TASK' ? 3 : 3.5);
|
|
80
84
|
return jsx("span", {
|
|
81
85
|
"data-component": "placeholder",
|
|
@@ -6,7 +6,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
6
6
|
import Item from './Item';
|
|
7
7
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
8
8
|
import { createAndFireEventInElementsChannel } from '../analytics';
|
|
9
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
10
9
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
11
10
|
import { B300, B75, DN100, DN200, N0, N30, N90 } from '@atlaskit/theme/colors';
|
|
12
11
|
var taskCount = 0;
|
|
@@ -15,7 +14,7 @@ var getCheckBoxId = function getCheckBoxId(localId) {
|
|
|
15
14
|
};
|
|
16
15
|
var checkboxStyles = function checkboxStyles(isRenderer) {
|
|
17
16
|
return function (theme) {
|
|
18
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n position: relative;\n align-self: start;\n margin:
|
|
17
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n position: relative;\n align-self: start;\n margin: ", " ", " 0 0;\n\n & > input[type='checkbox'] {\n width: 16px;\n height: 16px;\n z-index: 1;\n cursor: pointer;\n position: absolute;\n outline: none;\n margin: 0;\n opacity: 0;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n\n + div {\n box-sizing: border-box;\n display: inline;\n width: 100%;\n cursor: pointer;\n\n &::after {\n background: ", ";\n background-size: 16px;\n border-radius: 3px;\n border-style: solid;\n border-width: 1px;\n border-color: ", ";\n box-sizing: border-box;\n content: '';\n height: 16px;\n left: 50%;\n position: absolute;\n transition: border-color 0.2s ease-in-out;\n top: 8px;\n width: 16px;\n transform: translate(-50%, -50%);\n }\n }\n ", "\n\n &:not([disabled]):hover + div::after {\n background: ", ";\n transition: border 0.2s ease-in-out;\n }\n &[disabled] + div {\n opacity: 0.5;\n cursor: default;\n }\n &:checked {\n + div::after {\n background: url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDEyIDEyIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMDA1MkNDIj48L3JlY3Q+DQogIDxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik05LjM3NCA0LjkxNEw1LjQ1NiA4LjgzMmEuNzY5Ljc2OSAwIDAgMS0xLjA4OCAwTDIuNjI2IDcuMDkxYS43NjkuNzY5IDAgMSAxIDEuMDg4LTEuMDg5TDQuOTEyIDcuMmwzLjM3NC0zLjM3NGEuNzY5Ljc2OSAwIDEgMSAxLjA4OCAxLjA4OCI+PC9wYXRoPg0KPC9zdmc+)\n no-repeat 0 0;\n background-size: 16px;\n border: 0;\n border-color: transparent;\n }\n &:not([disabled]):hover + div::after {\n background: url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDEyIDEyIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMDc0N0E2Ij48L3JlY3Q+DQogIDxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik05LjM3NCA0LjkxNEw1LjQ1NiA4LjgzMmEuNzY5Ljc2OSAwIDAgMS0xLjA4OCAwTDIuNjI2IDcuMDkxYS43NjkuNzY5IDAgMSAxIDEuMDg4LTEuMDg5TDQuOTEyIDcuMmwzLjM3NC0zLjM3NGEuNzY5Ljc2OSAwIDEgMSAxLjA4OCAxLjA4OCI+PC9wYXRoPg0KPC9zdmc+)\n no-repeat 0 0;\n background-size: 16px;\n }\n }\n }\n "])), "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)", themed({
|
|
19
18
|
light: "var(--ds-background-input, ".concat(N0, ")"),
|
|
20
19
|
dark: "var(--ds-background-input, ".concat(DN100, ")")
|
|
21
20
|
})({
|
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const fabricElementsChannel = "fabric-elements";
|
|
2
|
+
export declare const createAndFireEventInElementsChannel: (payload: import("@atlaskit/analytics-next").AnalyticsEventPayload) => (createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { BaseItem, ServiceTaskState, DecisionState, Handler, ObjectKey, PubSubClient, RecentUpdateContext, RecentUpdatesId, RecentUpdatesListener, ServiceTask, TaskDecisionProvider, TaskDecisionResourceConfig, TaskState, ServiceItem } from '../types';
|
|
2
|
+
export declare const ACTION_CREATED_FPS_EVENT = "avi:task-decision-service:created:action";
|
|
3
|
+
export declare const ACTION_EDITED_FPS_EVENT = "avi:task-decision-service:edited:action";
|
|
4
|
+
export declare const ACTION_DELETED_FPS_EVENT = "avi:task-decision-service:deleted:action";
|
|
5
|
+
export declare const ACTION_ARCHIVED_FPS_EVENT = "avi:task-decision-service:archived:action";
|
|
6
|
+
export declare const ACTION_STATE_CHANGED_FPS_EVENT = "avi:task-decision-service:stateChanged:action";
|
|
7
|
+
export declare const DECISION_CREATED_FPS_EVENT = "avi:task-decision-service:created:decision";
|
|
8
|
+
export declare const DECISION_EDITED_FPS_EVENT = "avi:task-decision-service:edited:decision";
|
|
9
|
+
export declare const DECISION_DELETED_FPS_EVENT = "avi:task-decision-service:deleted:decision";
|
|
10
|
+
export declare const DECISION_ARCHIVED_FPS_EVENT = "avi:task-decision-service:archived:decision";
|
|
11
|
+
export declare const DECISION_STATE_CHANGED_FPS_EVENT = "avi:task-decision-service:stateChanged:decision";
|
|
12
|
+
export declare const ACTION_DECISION_FPS_EVENTS = "avi:task-decision-service:*:*";
|
|
13
|
+
export declare class RecentUpdates {
|
|
14
|
+
private idsByContainer;
|
|
15
|
+
private listenersById;
|
|
16
|
+
private pubSubClient?;
|
|
17
|
+
constructor(pubSubClient?: PubSubClient);
|
|
18
|
+
subscribe(objectAri: string, recentUpdatesListener: RecentUpdatesListener): void;
|
|
19
|
+
unsubscribe(unsubscribeId: RecentUpdatesId): void;
|
|
20
|
+
notify(recentUpdateContext: RecentUpdateContext): void;
|
|
21
|
+
onPubSubEvent: (_event: string, payload: ServiceItem) => void;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
private subscribeToPubSubEvents;
|
|
24
|
+
private unsubscribeFromPubSubEvents;
|
|
25
|
+
}
|
|
26
|
+
export declare class ItemStateManager {
|
|
27
|
+
private debouncedTaskStateQuery;
|
|
28
|
+
private debouncedTaskToggle;
|
|
29
|
+
private serviceConfig;
|
|
30
|
+
private subscribers;
|
|
31
|
+
private trackedObjectKeys;
|
|
32
|
+
private cachedItems;
|
|
33
|
+
private batchedKeys;
|
|
34
|
+
constructor(serviceConfig: TaskDecisionResourceConfig);
|
|
35
|
+
destroy(): void;
|
|
36
|
+
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
37
|
+
refreshAllTasks(): void;
|
|
38
|
+
subscribe(objectKey: ObjectKey, handler: Handler, item?: BaseItem<TaskState | DecisionState>): void;
|
|
39
|
+
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
40
|
+
getTaskState(keys: ObjectKey[]): Promise<ServiceTaskState[]>;
|
|
41
|
+
notifyUpdated(objectKey: ObjectKey, state: TaskState | DecisionState): void;
|
|
42
|
+
onTaskUpdatedEvent: (_event: string, payload: ServiceTask) => void;
|
|
43
|
+
onReconnect: () => void;
|
|
44
|
+
private updateCache;
|
|
45
|
+
private getCached;
|
|
46
|
+
private subscribeToPubSubEvents;
|
|
47
|
+
private unsubscribeFromPubSubEvents;
|
|
48
|
+
private queueAllItems;
|
|
49
|
+
private queueItem;
|
|
50
|
+
private dequeueItem;
|
|
51
|
+
private scheduleGetTaskState;
|
|
52
|
+
}
|
|
53
|
+
export default class TaskDecisionResource implements TaskDecisionProvider {
|
|
54
|
+
private recentUpdates;
|
|
55
|
+
private itemStateManager;
|
|
56
|
+
constructor(serviceConfig: TaskDecisionResourceConfig);
|
|
57
|
+
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
58
|
+
notifyRecentUpdates(recentUpdateContext: RecentUpdateContext): void;
|
|
59
|
+
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
60
|
+
subscribe(objectKey: ObjectKey, handler: Handler, item?: BaseItem<TaskState | DecisionState>): void;
|
|
61
|
+
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
62
|
+
/**
|
|
63
|
+
* Usually only needed for testing to ensure no outstanding requests
|
|
64
|
+
* are sent to a server (typically mocked).
|
|
65
|
+
*/
|
|
66
|
+
destroy(): void;
|
|
67
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ServiceTask, Task, ServiceTaskState, BaseItem, TaskState } from '../types';
|
|
2
|
+
export declare const convertServiceTaskToTask: (serviceTask: ServiceTask) => Task;
|
|
3
|
+
export declare const convertServiceTaskStateToBaseItem: (serviceTaskInfo: ServiceTaskState) => BaseItem<TaskState>;
|
|
4
|
+
export declare const findIndex: (array: any[], predicate: (item: any) => boolean) => number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { Appearance, ContentRef } from '../types';
|
|
4
|
+
export interface Props {
|
|
5
|
+
children?: any;
|
|
6
|
+
contentRef?: ContentRef;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
showPlaceholder?: boolean;
|
|
9
|
+
appearance?: Appearance;
|
|
10
|
+
dataAttributes?: {
|
|
11
|
+
[key: string]: string | number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
declare const DecisionItem: ({ appearance, children, contentRef, placeholder, showPlaceholder, dataAttributes, }: Props) => jsx.JSX.Element;
|
|
15
|
+
export default DecisionItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { PureComponent, ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
export interface Props {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default class DecisionList extends PureComponent<Props, {}> {
|
|
8
|
+
render(): jsx.JSX.Element | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { PureComponent } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { Appearance, ContentRef, TaskType, DecisionType } from '../types';
|
|
5
|
+
import type { Theme } from '@atlaskit/theme/types';
|
|
6
|
+
export interface Props {
|
|
7
|
+
icon: JSX.Element;
|
|
8
|
+
itemType: TaskType | DecisionType;
|
|
9
|
+
children?: any;
|
|
10
|
+
appearance?: Appearance;
|
|
11
|
+
contentRef?: ContentRef;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
showPlaceholder?: boolean;
|
|
14
|
+
dataAttributes?: {
|
|
15
|
+
[key: string]: string | number;
|
|
16
|
+
};
|
|
17
|
+
checkBoxId?: string;
|
|
18
|
+
theme: Theme;
|
|
19
|
+
}
|
|
20
|
+
export default class Item extends PureComponent<Props, {}> {
|
|
21
|
+
static defaultProps: Partial<Props>;
|
|
22
|
+
private renderPlaceholder;
|
|
23
|
+
renderMessageAppearance(): jsx.JSX.Element | null;
|
|
24
|
+
render(): jsx.JSX.Element | null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
|
+
import { Appearance, ContentRef, TaskDecisionProvider } from '../types';
|
|
3
|
+
export interface Props {
|
|
4
|
+
taskId: string;
|
|
5
|
+
isDone?: boolean;
|
|
6
|
+
isRenderer?: boolean;
|
|
7
|
+
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
8
|
+
contentRef?: ContentRef;
|
|
9
|
+
children?: any;
|
|
10
|
+
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
11
|
+
objectAri?: string;
|
|
12
|
+
showPlaceholder?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
appearance?: Appearance;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
dataAttributes?: {
|
|
17
|
+
[key: string]: string | number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface State {
|
|
21
|
+
isDone?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export default class ResourcedTaskItem extends PureComponent<Props, State> {
|
|
24
|
+
static defaultProps: Partial<Props>;
|
|
25
|
+
private mounted;
|
|
26
|
+
constructor(props: Props);
|
|
27
|
+
componentDidMount(): void;
|
|
28
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
29
|
+
componentWillUnmount(): void;
|
|
30
|
+
private subscribe;
|
|
31
|
+
private unsubscribe;
|
|
32
|
+
private onUpdate;
|
|
33
|
+
private handleOnChange;
|
|
34
|
+
render(): JSX.Element;
|
|
35
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Appearance, ContentRef } from '../types';
|
|
4
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
|
+
export interface Props {
|
|
6
|
+
taskId: string;
|
|
7
|
+
isDone?: boolean;
|
|
8
|
+
isRenderer?: boolean;
|
|
9
|
+
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
10
|
+
contentRef?: ContentRef;
|
|
11
|
+
children?: any;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
showPlaceholder?: boolean;
|
|
14
|
+
appearance?: Appearance;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
dataAttributes?: {
|
|
17
|
+
[key: string]: string | number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PureComponent, ReactNode } from 'react';
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
export interface Props {
|
|
4
|
+
listId?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default class TaskList extends PureComponent<Props, {}> {
|
|
8
|
+
render(): jsx.JSX.Element | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defaultLimit = 100;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import DecisionItem from './components/DecisionItem';
|
|
2
|
+
import DecisionList from './components/DecisionList';
|
|
3
|
+
import ResourcedTaskItem from './components/ResourcedTaskItem';
|
|
4
|
+
import TaskDecisionResource from './api/TaskDecisionResource';
|
|
5
|
+
import TaskItem from './components/TaskItem';
|
|
6
|
+
import TaskList from './components/TaskList';
|
|
7
|
+
export { PubSubSpecialEventType } from './types';
|
|
8
|
+
export type { Appearance, ARI, AVI, BaseItem, ContentRef, Cursor, Decision, DecisionState, DecisionStatus, DecisionType, Handler, Item, Meta, ObjectKey, OnUpdate, PubSubClient, PubSubOnEvent, RecentUpdateContext, RecentUpdatesId, RecentUpdatesListener, RenderDocument, RendererContext, ServiceDecision, ServiceDecisionResponse, ServiceItem, ServiceTask, ServiceTaskState, Task, TaskDecisionProvider, TaskDecisionResourceConfig, TaskState, TaskType, UserId, } from './types';
|
|
9
|
+
export { DecisionItem, DecisionList, ResourcedTaskItem, TaskDecisionResource, TaskItem, TaskList, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseItem, Decision, Item, ObjectKey, ServiceDecision, ServiceTask, Task, TaskState } from './types';
|
|
2
|
+
export declare const isDecision: (item: Item) => item is Decision;
|
|
3
|
+
export declare const isTask: (item: Item) => item is Task;
|
|
4
|
+
export declare const toObjectKey: (item: Item | ServiceDecision | ServiceTask | BaseItem<any>) => ObjectKey;
|
|
5
|
+
export declare const objectKeyToString: (objectKey: ObjectKey) => string;
|
|
6
|
+
export declare const toggleTaskState: (state: TaskState) => TaskState;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
3
|
+
export type DecisionState = 'DECIDED';
|
|
4
|
+
export type DecisionStatus = 'CREATED';
|
|
5
|
+
export type TaskState = 'TODO' | 'DONE';
|
|
6
|
+
export type Cursor = string;
|
|
7
|
+
export type DecisionType = 'DECISION';
|
|
8
|
+
export type TaskType = 'TASK';
|
|
9
|
+
export interface ContentRef {
|
|
10
|
+
(ref: HTMLElement | null): void;
|
|
11
|
+
}
|
|
12
|
+
export interface ObjectKey {
|
|
13
|
+
localId: string;
|
|
14
|
+
containerAri?: string;
|
|
15
|
+
objectAri: string;
|
|
16
|
+
}
|
|
17
|
+
export interface BaseItem<S> extends ObjectKey {
|
|
18
|
+
state: S;
|
|
19
|
+
lastUpdateDate: Date;
|
|
20
|
+
type: DecisionType | TaskType;
|
|
21
|
+
}
|
|
22
|
+
export interface ServiceDecision {
|
|
23
|
+
creationDate?: string;
|
|
24
|
+
creatorId?: UserId;
|
|
25
|
+
lastUpdaterId?: UserId;
|
|
26
|
+
lastUpdateDate: string;
|
|
27
|
+
localId: string;
|
|
28
|
+
objectAri: string;
|
|
29
|
+
participants?: UserId[];
|
|
30
|
+
state?: DecisionState;
|
|
31
|
+
status: DecisionStatus;
|
|
32
|
+
type: DecisionType;
|
|
33
|
+
}
|
|
34
|
+
export interface Meta {
|
|
35
|
+
cursor?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ServiceDecisionResponse {
|
|
38
|
+
decisions: ServiceDecision[];
|
|
39
|
+
meta: Meta;
|
|
40
|
+
}
|
|
41
|
+
export type ServiceItem = ServiceDecision | ServiceTask;
|
|
42
|
+
export interface ServiceTaskState {
|
|
43
|
+
lastUpdateDate: string;
|
|
44
|
+
localId: string;
|
|
45
|
+
objectAri: string;
|
|
46
|
+
state: TaskState;
|
|
47
|
+
}
|
|
48
|
+
export interface Decision extends BaseItem<DecisionState> {
|
|
49
|
+
creationDate?: Date;
|
|
50
|
+
creator?: UserId;
|
|
51
|
+
lastUpdater?: UserId;
|
|
52
|
+
lastUpdateDate: Date;
|
|
53
|
+
participants?: UserId[];
|
|
54
|
+
status: DecisionStatus;
|
|
55
|
+
type: DecisionType;
|
|
56
|
+
}
|
|
57
|
+
export type Item = Decision | Task;
|
|
58
|
+
export type UserId = string;
|
|
59
|
+
export interface ServiceTask {
|
|
60
|
+
creationDate?: string;
|
|
61
|
+
creatorId?: UserId;
|
|
62
|
+
lastUpdaterId?: UserId;
|
|
63
|
+
lastUpdateDate: string;
|
|
64
|
+
localId: string;
|
|
65
|
+
objectAri: string;
|
|
66
|
+
parentLocalId?: string;
|
|
67
|
+
participants?: UserId[];
|
|
68
|
+
position: number;
|
|
69
|
+
state: TaskState;
|
|
70
|
+
type: TaskType;
|
|
71
|
+
}
|
|
72
|
+
export interface Task extends BaseItem<TaskState> {
|
|
73
|
+
creationDate?: Date;
|
|
74
|
+
creator?: UserId;
|
|
75
|
+
lastUpdater?: UserId;
|
|
76
|
+
lastUpdateDate: Date;
|
|
77
|
+
parentLocalId?: string;
|
|
78
|
+
participants?: UserId[];
|
|
79
|
+
position?: number;
|
|
80
|
+
type: TaskType;
|
|
81
|
+
}
|
|
82
|
+
export type Handler = (state: TaskState | DecisionState) => void;
|
|
83
|
+
export type RecentUpdatesId = string;
|
|
84
|
+
export interface RecentUpdateContext {
|
|
85
|
+
objectAri: string;
|
|
86
|
+
localId?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* A subscriber interface that can be called back if there are new decisions/tasks/items
|
|
90
|
+
* available as the result of an external change.
|
|
91
|
+
*/
|
|
92
|
+
export interface RecentUpdatesListener {
|
|
93
|
+
/**
|
|
94
|
+
* An id that can be used to unsubscribe
|
|
95
|
+
*/
|
|
96
|
+
id(id: RecentUpdatesId): void;
|
|
97
|
+
/**
|
|
98
|
+
* Indicates there are recent updates, and the listener should refresh
|
|
99
|
+
* the latest items from the TaskDecisionProvider.
|
|
100
|
+
*
|
|
101
|
+
* There will be a number of retries until expectedLocalId, if passed.
|
|
102
|
+
*
|
|
103
|
+
* @param updateContext Recent update context
|
|
104
|
+
*/
|
|
105
|
+
recentUpdates(updateContext: RecentUpdateContext): void;
|
|
106
|
+
}
|
|
107
|
+
export interface TaskDecisionResourceConfig extends ServiceConfig {
|
|
108
|
+
pubSubClient?: PubSubClient;
|
|
109
|
+
/**
|
|
110
|
+
* Indicates if initial state for an action or decision is should be cached,
|
|
111
|
+
* from the content, i.e. was originally hydrated from the service initially,
|
|
112
|
+
* and so should be considered up to date.
|
|
113
|
+
*
|
|
114
|
+
* Will stop the initiation of the hydration from the service the first
|
|
115
|
+
* time an action or decision is seen.
|
|
116
|
+
*
|
|
117
|
+
* If false the state will always be hydrated from the service on first view.
|
|
118
|
+
*/
|
|
119
|
+
disableServiceHydration?: boolean;
|
|
120
|
+
}
|
|
121
|
+
export interface TaskDecisionProvider {
|
|
122
|
+
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
123
|
+
notifyRecentUpdates(updateContext: RecentUpdateContext): void;
|
|
124
|
+
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
125
|
+
subscribe(objectKey: ObjectKey, handler: Handler, item?: BaseItem<TaskState | DecisionState>): void;
|
|
126
|
+
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Same as RendererContext in editor-core (don't want an direct dep though)
|
|
130
|
+
*/
|
|
131
|
+
export interface RendererContext {
|
|
132
|
+
objectAri: string;
|
|
133
|
+
containerAri?: string;
|
|
134
|
+
}
|
|
135
|
+
export interface RenderDocument {
|
|
136
|
+
(document: any, rendererContext?: RendererContext): JSX.Element;
|
|
137
|
+
}
|
|
138
|
+
export interface OnUpdate<T> {
|
|
139
|
+
(allDecisions: T[], newDecisions: T[]): void;
|
|
140
|
+
}
|
|
141
|
+
export type Appearance = 'inline';
|
|
142
|
+
/**
|
|
143
|
+
* Same as PubSub client types (don't want a direct dep though)
|
|
144
|
+
*/
|
|
145
|
+
export type ARI = string;
|
|
146
|
+
export type AVI = string;
|
|
147
|
+
export interface PubSubOnEvent<T = any> {
|
|
148
|
+
(event: string, data: T): void;
|
|
149
|
+
}
|
|
150
|
+
export interface PubSubClient {
|
|
151
|
+
on(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
152
|
+
off(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
153
|
+
join(aris: ARI[]): Promise<PubSubClient>;
|
|
154
|
+
leave(aris: ARI[]): Promise<PubSubClient>;
|
|
155
|
+
}
|
|
156
|
+
export declare enum PubSubSpecialEventType {
|
|
157
|
+
ERROR = "ERROR",
|
|
158
|
+
CONNECTED = "CONNECTED",
|
|
159
|
+
RECONNECT = "RECONNECT"
|
|
160
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/task-decision",
|
|
3
|
-
"version": "17.6.
|
|
3
|
+
"version": "17.6.4",
|
|
4
4
|
"description": "Tasks and decisions react components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
54
54
|
"@atlaskit/avatar": "^21.3.0",
|
|
55
55
|
"@atlaskit/docs": "*",
|
|
56
|
-
"@atlaskit/editor-common": "^74.
|
|
56
|
+
"@atlaskit/editor-common": "^74.1.0",
|
|
57
57
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
58
|
-
"@atlaskit/renderer": "^108.
|
|
58
|
+
"@atlaskit/renderer": "^108.1.0",
|
|
59
59
|
"@atlaskit/util-data-test": "^17.8.0",
|
|
60
60
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
61
61
|
"@emotion/jest": "^11.8.0",
|