@atlaskit/task-decision 17.6.0 → 17.6.2
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/constants/package.json +2 -2
- package/dist/cjs/components/Item.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Item.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Item.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/types.d.ts +14 -14
- package/package.json +11 -3
- package/type-helpers/package.json +2 -2
- package/types/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/task-decision
|
|
2
2
|
|
|
3
|
+
## 17.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
|
|
9
|
+
## 17.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`98c74fa6f26`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98c74fa6f26) - [ux] fix placeholder fallback
|
|
14
|
+
|
|
3
15
|
## 17.6.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/constants/package.json
CHANGED
|
@@ -55,7 +55,7 @@ var placeHolderStyles = function placeHolderStyles(offset) {
|
|
|
55
55
|
return (0, _react2.css)({
|
|
56
56
|
margin: "0 0 0 ".concat(offset, "px"),
|
|
57
57
|
position: 'absolute',
|
|
58
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.
|
|
58
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
59
59
|
pointerEvents: 'none',
|
|
60
60
|
textOverflow: 'ellipsis',
|
|
61
61
|
overflow: 'hidden',
|
package/dist/cjs/version.json
CHANGED
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
import { PureComponent } from 'react';
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { themed } from '@atlaskit/theme/components';
|
|
8
|
-
import { DN50,
|
|
8
|
+
import { DN50, N200, N20A } from '@atlaskit/theme/colors';
|
|
9
9
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
10
10
|
const contentStyle = css({
|
|
11
11
|
margin: 0,
|
|
@@ -40,7 +40,7 @@ const decisionStyles = theme => css({
|
|
|
40
40
|
const placeHolderStyles = offset => css({
|
|
41
41
|
margin: `0 0 0 ${offset}px`,
|
|
42
42
|
position: 'absolute',
|
|
43
|
-
color: `var(--ds-text-subtlest, ${
|
|
43
|
+
color: `var(--ds-text-subtlest, ${N200})`,
|
|
44
44
|
pointerEvents: 'none',
|
|
45
45
|
textOverflow: 'ellipsis',
|
|
46
46
|
overflow: 'hidden',
|
package/dist/es2019/version.json
CHANGED
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
12
12
|
import { PureComponent } from 'react';
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { themed } from '@atlaskit/theme/components';
|
|
15
|
-
import { DN50,
|
|
15
|
+
import { DN50, N200, N20A } from '@atlaskit/theme/colors';
|
|
16
16
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
17
17
|
var contentStyle = css({
|
|
18
18
|
margin: 0,
|
|
@@ -50,7 +50,7 @@ var placeHolderStyles = function placeHolderStyles(offset) {
|
|
|
50
50
|
return css({
|
|
51
51
|
margin: "0 0 0 ".concat(offset, "px"),
|
|
52
52
|
position: 'absolute',
|
|
53
|
-
color: "var(--ds-text-subtlest, ".concat(
|
|
53
|
+
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
54
54
|
pointerEvents: 'none',
|
|
55
55
|
textOverflow: 'ellipsis',
|
|
56
56
|
overflow: 'hidden',
|
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
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
9
|
export interface ContentRef {
|
|
10
10
|
(ref: HTMLElement | null): void;
|
|
11
11
|
}
|
|
@@ -38,7 +38,7 @@ export interface ServiceDecisionResponse {
|
|
|
38
38
|
decisions: ServiceDecision[];
|
|
39
39
|
meta: Meta;
|
|
40
40
|
}
|
|
41
|
-
export
|
|
41
|
+
export type ServiceItem = ServiceDecision | ServiceTask;
|
|
42
42
|
export interface ServiceTaskState {
|
|
43
43
|
lastUpdateDate: string;
|
|
44
44
|
localId: string;
|
|
@@ -54,8 +54,8 @@ export interface Decision extends BaseItem<DecisionState> {
|
|
|
54
54
|
status: DecisionStatus;
|
|
55
55
|
type: DecisionType;
|
|
56
56
|
}
|
|
57
|
-
export
|
|
58
|
-
export
|
|
57
|
+
export type Item = Decision | Task;
|
|
58
|
+
export type UserId = string;
|
|
59
59
|
export interface ServiceTask {
|
|
60
60
|
creationDate?: string;
|
|
61
61
|
creatorId?: UserId;
|
|
@@ -79,8 +79,8 @@ export interface Task extends BaseItem<TaskState> {
|
|
|
79
79
|
position?: number;
|
|
80
80
|
type: TaskType;
|
|
81
81
|
}
|
|
82
|
-
export
|
|
83
|
-
export
|
|
82
|
+
export type Handler = (state: TaskState | DecisionState) => void;
|
|
83
|
+
export type RecentUpdatesId = string;
|
|
84
84
|
export interface RecentUpdateContext {
|
|
85
85
|
objectAri: string;
|
|
86
86
|
localId?: string;
|
|
@@ -138,12 +138,12 @@ export interface RenderDocument {
|
|
|
138
138
|
export interface OnUpdate<T> {
|
|
139
139
|
(allDecisions: T[], newDecisions: T[]): void;
|
|
140
140
|
}
|
|
141
|
-
export
|
|
141
|
+
export type Appearance = 'inline';
|
|
142
142
|
/**
|
|
143
143
|
* Same as PubSub client types (don't want a direct dep though)
|
|
144
144
|
*/
|
|
145
|
-
export
|
|
146
|
-
export
|
|
145
|
+
export type ARI = string;
|
|
146
|
+
export type AVI = string;
|
|
147
147
|
export interface PubSubOnEvent<T = any> {
|
|
148
148
|
(event: string, data: T): void;
|
|
149
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/task-decision",
|
|
3
|
-
"version": "17.6.
|
|
3
|
+
"version": "17.6.2",
|
|
4
4
|
"description": "Tasks and decisions react components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.ts",
|
|
17
25
|
"atlassian": {
|
|
@@ -30,7 +38,7 @@
|
|
|
30
38
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
31
39
|
"@atlaskit/icon": "^21.12.0",
|
|
32
40
|
"@atlaskit/theme": "^12.5.0",
|
|
33
|
-
"@atlaskit/tokens": "^1.
|
|
41
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
34
42
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
35
43
|
"@babel/runtime": "^7.0.0",
|
|
36
44
|
"@emotion/react": "^11.7.1",
|
|
@@ -58,7 +66,7 @@
|
|
|
58
66
|
"fetch-mock": "^8.0.0",
|
|
59
67
|
"react": "^16.8.0",
|
|
60
68
|
"sinon": "^2.2.0",
|
|
61
|
-
"typescript": "4.
|
|
69
|
+
"typescript": "~4.9.5",
|
|
62
70
|
"url-search-params": "^0.10.0"
|
|
63
71
|
},
|
|
64
72
|
"techstack": {
|