@atlaskit/task-decision 17.5.1 → 17.5.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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +7 -7
- package/report.api.md +267 -149
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/task-decision",
|
|
3
|
-
"version": "17.5.
|
|
3
|
+
"version": "17.5.2",
|
|
4
4
|
"description": "Tasks and decisions react components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"@atlaskit/analytics-namespaced-context": "^6.5.0",
|
|
37
38
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
38
|
-
"@atlaskit/icon": "^21.
|
|
39
|
+
"@atlaskit/icon": "^21.11.0",
|
|
39
40
|
"@atlaskit/theme": "^12.2.0",
|
|
40
41
|
"@atlaskit/tokens": "^0.10.0",
|
|
41
42
|
"@atlaskit/util-service-support": "^6.1.0",
|
|
@@ -46,16 +47,15 @@
|
|
|
46
47
|
"peerDependencies": {
|
|
47
48
|
"react": "^16.8.0",
|
|
48
49
|
"react-dom": "^16.8.0",
|
|
49
|
-
"styled-components": "^3.2.6",
|
|
50
50
|
"url-search-params": "^0.10.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@atlaskit/analytics-listeners": "^8.3.0",
|
|
54
|
-
"@atlaskit/avatar": "^21.
|
|
54
|
+
"@atlaskit/avatar": "^21.1.0",
|
|
55
55
|
"@atlaskit/docs": "*",
|
|
56
|
-
"@atlaskit/editor-common": "^
|
|
56
|
+
"@atlaskit/editor-common": "^70.2.0",
|
|
57
57
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
58
|
-
"@atlaskit/renderer": "^
|
|
58
|
+
"@atlaskit/renderer": "^103.0.0",
|
|
59
59
|
"@atlaskit/util-data-test": "^17.5.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",
|
package/report.api.md
CHANGED
|
@@ -2,333 +2,451 @@
|
|
|
2
2
|
|
|
3
3
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
4
|
|
|
5
|
+
<!--
|
|
6
|
+
Generated API Report version: 2.0
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
10
|
+
|
|
5
11
|
```ts
|
|
6
12
|
/// <reference types="react" />
|
|
7
13
|
|
|
14
|
+
import { jsx } from '@emotion/react';
|
|
8
15
|
import { PureComponent } from 'react';
|
|
9
16
|
import { default as React_2 } from 'react';
|
|
10
17
|
import { ReactNode } from 'react';
|
|
11
18
|
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
12
19
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
13
20
|
|
|
14
|
-
|
|
21
|
+
// @public (undocumented)
|
|
22
|
+
export type Appearance = 'inline';
|
|
15
23
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
export declare type ARI = string;
|
|
24
|
+
// @public
|
|
25
|
+
export type ARI = string;
|
|
20
26
|
|
|
21
|
-
|
|
27
|
+
// @public (undocumented)
|
|
28
|
+
export type AVI = string;
|
|
22
29
|
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
// @public (undocumented)
|
|
31
|
+
export interface BaseItem<S> extends ObjectKey {
|
|
32
|
+
// (undocumented)
|
|
25
33
|
lastUpdateDate: Date;
|
|
34
|
+
// (undocumented)
|
|
35
|
+
state: S;
|
|
36
|
+
// (undocumented)
|
|
26
37
|
type: DecisionType | TaskType;
|
|
27
38
|
}
|
|
28
39
|
|
|
29
|
-
|
|
40
|
+
// @public (undocumented)
|
|
41
|
+
export interface ContentRef {
|
|
42
|
+
// (undocumented)
|
|
30
43
|
(ref: HTMLElement | null): void;
|
|
31
44
|
}
|
|
32
45
|
|
|
33
|
-
|
|
46
|
+
// @public (undocumented)
|
|
47
|
+
export type Cursor = string;
|
|
34
48
|
|
|
35
|
-
|
|
49
|
+
// @public (undocumented)
|
|
50
|
+
export interface Decision extends BaseItem<DecisionState> {
|
|
51
|
+
// (undocumented)
|
|
36
52
|
creationDate?: Date;
|
|
53
|
+
// (undocumented)
|
|
37
54
|
creator?: UserId;
|
|
38
|
-
|
|
55
|
+
// (undocumented)
|
|
39
56
|
lastUpdateDate: Date;
|
|
57
|
+
// (undocumented)
|
|
58
|
+
lastUpdater?: UserId;
|
|
59
|
+
// (undocumented)
|
|
40
60
|
participants?: UserId[];
|
|
61
|
+
// (undocumented)
|
|
41
62
|
status: DecisionStatus;
|
|
63
|
+
// (undocumented)
|
|
42
64
|
type: DecisionType;
|
|
43
65
|
}
|
|
44
66
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
67
|
+
// @public (undocumented)
|
|
68
|
+
export const DecisionItem: ({
|
|
69
|
+
appearance,
|
|
70
|
+
children,
|
|
71
|
+
contentRef,
|
|
72
|
+
placeholder,
|
|
73
|
+
showPlaceholder,
|
|
74
|
+
dataAttributes,
|
|
75
|
+
}: Props) => jsx.JSX.Element;
|
|
76
|
+
|
|
77
|
+
// @public (undocumented)
|
|
78
|
+
export class DecisionList extends PureComponent<Props_2, {}> {
|
|
79
|
+
// (undocumented)
|
|
80
|
+
render(): jsx.JSX.Element | null;
|
|
52
81
|
}
|
|
53
82
|
|
|
54
|
-
|
|
83
|
+
// @public (undocumented)
|
|
84
|
+
export type DecisionState = 'DECIDED';
|
|
55
85
|
|
|
56
|
-
|
|
86
|
+
// @public (undocumented)
|
|
87
|
+
export type DecisionStatus = 'CREATED';
|
|
57
88
|
|
|
58
|
-
|
|
89
|
+
// @public (undocumented)
|
|
90
|
+
export type DecisionType = 'DECISION';
|
|
59
91
|
|
|
60
|
-
|
|
92
|
+
// @public (undocumented)
|
|
93
|
+
export type Handler = (state: TaskState | DecisionState) => void;
|
|
61
94
|
|
|
62
|
-
|
|
95
|
+
// @public (undocumented)
|
|
96
|
+
export type Item = Decision | Task;
|
|
63
97
|
|
|
64
|
-
|
|
98
|
+
// @public (undocumented)
|
|
99
|
+
export interface Meta {
|
|
100
|
+
// (undocumented)
|
|
65
101
|
cursor?: string;
|
|
66
102
|
}
|
|
67
103
|
|
|
68
|
-
|
|
69
|
-
|
|
104
|
+
// @public (undocumented)
|
|
105
|
+
export interface ObjectKey {
|
|
106
|
+
// (undocumented)
|
|
70
107
|
containerAri?: string;
|
|
108
|
+
// (undocumented)
|
|
109
|
+
localId: string;
|
|
110
|
+
// (undocumented)
|
|
71
111
|
objectAri: string;
|
|
72
112
|
}
|
|
73
113
|
|
|
74
|
-
|
|
114
|
+
// @public (undocumented)
|
|
115
|
+
export interface OnUpdate<T> {
|
|
116
|
+
// (undocumented)
|
|
75
117
|
(allDecisions: T[], newDecisions: T[]): void;
|
|
76
118
|
}
|
|
77
119
|
|
|
78
|
-
|
|
120
|
+
// @public (undocumented)
|
|
121
|
+
interface Props {
|
|
122
|
+
// (undocumented)
|
|
123
|
+
appearance?: Appearance;
|
|
124
|
+
// (undocumented)
|
|
79
125
|
children?: any;
|
|
126
|
+
// (undocumented)
|
|
80
127
|
contentRef?: ContentRef;
|
|
81
|
-
|
|
82
|
-
showPlaceholder?: boolean;
|
|
83
|
-
appearance?: Appearance;
|
|
128
|
+
// (undocumented)
|
|
84
129
|
dataAttributes?: {
|
|
85
130
|
[key: string]: string | number;
|
|
86
131
|
};
|
|
132
|
+
// (undocumented)
|
|
133
|
+
placeholder?: string;
|
|
134
|
+
// (undocumented)
|
|
135
|
+
showPlaceholder?: boolean;
|
|
87
136
|
}
|
|
88
137
|
|
|
89
|
-
|
|
138
|
+
// @public (undocumented)
|
|
139
|
+
interface Props_2 {
|
|
140
|
+
// (undocumented)
|
|
90
141
|
children?: ReactNode;
|
|
91
142
|
}
|
|
92
143
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
isRenderer?: boolean;
|
|
97
|
-
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
98
|
-
contentRef?: ContentRef;
|
|
99
|
-
children?: any;
|
|
100
|
-
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
101
|
-
objectAri?: string;
|
|
102
|
-
showPlaceholder?: boolean;
|
|
103
|
-
placeholder?: string;
|
|
144
|
+
// @public (undocumented)
|
|
145
|
+
interface Props_3 {
|
|
146
|
+
// (undocumented)
|
|
104
147
|
appearance?: Appearance;
|
|
105
|
-
|
|
148
|
+
// (undocumented)
|
|
149
|
+
children?: any;
|
|
150
|
+
// (undocumented)
|
|
151
|
+
contentRef?: ContentRef;
|
|
152
|
+
// (undocumented)
|
|
106
153
|
dataAttributes?: {
|
|
107
154
|
[key: string]: string | number;
|
|
108
155
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
taskId: string;
|
|
156
|
+
// (undocumented)
|
|
157
|
+
disabled?: boolean;
|
|
158
|
+
// (undocumented)
|
|
113
159
|
isDone?: boolean;
|
|
160
|
+
// (undocumented)
|
|
114
161
|
isRenderer?: boolean;
|
|
162
|
+
// (undocumented)
|
|
163
|
+
objectAri?: string;
|
|
164
|
+
// (undocumented)
|
|
115
165
|
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
116
|
-
|
|
117
|
-
children?: any;
|
|
166
|
+
// (undocumented)
|
|
118
167
|
placeholder?: string;
|
|
168
|
+
// (undocumented)
|
|
119
169
|
showPlaceholder?: boolean;
|
|
170
|
+
// (undocumented)
|
|
171
|
+
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
172
|
+
// (undocumented)
|
|
173
|
+
taskId: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// @public (undocumented)
|
|
177
|
+
interface Props_4 {
|
|
178
|
+
// (undocumented)
|
|
120
179
|
appearance?: Appearance;
|
|
121
|
-
|
|
180
|
+
// (undocumented)
|
|
181
|
+
children?: any;
|
|
182
|
+
// (undocumented)
|
|
183
|
+
contentRef?: ContentRef;
|
|
184
|
+
// (undocumented)
|
|
122
185
|
dataAttributes?: {
|
|
123
186
|
[key: string]: string | number;
|
|
124
187
|
};
|
|
188
|
+
// (undocumented)
|
|
189
|
+
disabled?: boolean;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
isDone?: boolean;
|
|
192
|
+
// (undocumented)
|
|
193
|
+
isRenderer?: boolean;
|
|
194
|
+
// (undocumented)
|
|
195
|
+
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
196
|
+
// (undocumented)
|
|
197
|
+
placeholder?: string;
|
|
198
|
+
// (undocumented)
|
|
199
|
+
showPlaceholder?: boolean;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
taskId: string;
|
|
125
202
|
}
|
|
126
203
|
|
|
127
|
-
|
|
128
|
-
|
|
204
|
+
// @public (undocumented)
|
|
205
|
+
interface Props_5 {
|
|
206
|
+
// (undocumented)
|
|
129
207
|
children?: ReactNode;
|
|
208
|
+
// (undocumented)
|
|
209
|
+
listId?: string;
|
|
130
210
|
}
|
|
131
211
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
212
|
+
// @public (undocumented)
|
|
213
|
+
export interface PubSubClient {
|
|
214
|
+
// (undocumented)
|
|
135
215
|
join(aris: ARI[]): Promise<PubSubClient>;
|
|
216
|
+
// (undocumented)
|
|
136
217
|
leave(aris: ARI[]): Promise<PubSubClient>;
|
|
218
|
+
// (undocumented)
|
|
219
|
+
off(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
220
|
+
// (undocumented)
|
|
221
|
+
on(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
137
222
|
}
|
|
138
223
|
|
|
139
|
-
|
|
224
|
+
// @public (undocumented)
|
|
225
|
+
export interface PubSubOnEvent<T = any> {
|
|
226
|
+
// (undocumented)
|
|
140
227
|
(event: string, data: T): void;
|
|
141
228
|
}
|
|
142
229
|
|
|
143
|
-
|
|
144
|
-
|
|
230
|
+
// @public (undocumented)
|
|
231
|
+
export enum PubSubSpecialEventType {
|
|
232
|
+
// (undocumented)
|
|
145
233
|
CONNECTED = 'CONNECTED',
|
|
234
|
+
// (undocumented)
|
|
235
|
+
ERROR = 'ERROR',
|
|
236
|
+
// (undocumented)
|
|
146
237
|
RECONNECT = 'RECONNECT',
|
|
147
238
|
}
|
|
148
239
|
|
|
149
|
-
|
|
150
|
-
|
|
240
|
+
// @public (undocumented)
|
|
241
|
+
export interface RecentUpdateContext {
|
|
242
|
+
// (undocumented)
|
|
151
243
|
localId?: string;
|
|
244
|
+
// (undocumented)
|
|
245
|
+
objectAri: string;
|
|
152
246
|
}
|
|
153
247
|
|
|
154
|
-
|
|
248
|
+
// @public (undocumented)
|
|
249
|
+
export type RecentUpdatesId = string;
|
|
155
250
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
* available as the result of an external change.
|
|
159
|
-
*/
|
|
160
|
-
export declare interface RecentUpdatesListener {
|
|
161
|
-
/**
|
|
162
|
-
* An id that can be used to unsubscribe
|
|
163
|
-
*/
|
|
251
|
+
// @public
|
|
252
|
+
export interface RecentUpdatesListener {
|
|
164
253
|
id(id: RecentUpdatesId): void;
|
|
165
|
-
/**
|
|
166
|
-
* Indicates there are recent updates, and the listener should refresh
|
|
167
|
-
* the latest items from the TaskDecisionProvider.
|
|
168
|
-
*
|
|
169
|
-
* There will be a number of retries until expectedLocalId, if passed.
|
|
170
|
-
*
|
|
171
|
-
* @param updateContext Recent update context
|
|
172
|
-
*/
|
|
173
254
|
recentUpdates(updateContext: RecentUpdateContext): void;
|
|
174
255
|
}
|
|
175
256
|
|
|
176
|
-
|
|
257
|
+
// @public (undocumented)
|
|
258
|
+
export interface RenderDocument {
|
|
259
|
+
// (undocumented)
|
|
177
260
|
(document: any, rendererContext?: RendererContext): JSX.Element;
|
|
178
261
|
}
|
|
179
262
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
export declare interface RendererContext {
|
|
184
|
-
objectAri: string;
|
|
263
|
+
// @public
|
|
264
|
+
export interface RendererContext {
|
|
265
|
+
// (undocumented)
|
|
185
266
|
containerAri?: string;
|
|
267
|
+
// (undocumented)
|
|
268
|
+
objectAri: string;
|
|
186
269
|
}
|
|
187
270
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
private mounted;
|
|
271
|
+
// @public (undocumented)
|
|
272
|
+
export class ResourcedTaskItem extends PureComponent<Props_3, State> {
|
|
191
273
|
constructor(props: Props_3);
|
|
274
|
+
// (undocumented)
|
|
192
275
|
componentDidMount(): void;
|
|
193
|
-
|
|
276
|
+
// (undocumented)
|
|
194
277
|
componentWillUnmount(): void;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
private handleOnChange;
|
|
278
|
+
// (undocumented)
|
|
279
|
+
static defaultProps: Partial<Props_3>;
|
|
280
|
+
// (undocumented)
|
|
199
281
|
render(): JSX.Element;
|
|
282
|
+
// (undocumented)
|
|
283
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props_3): void;
|
|
200
284
|
}
|
|
201
285
|
|
|
202
|
-
|
|
286
|
+
// @public (undocumented)
|
|
287
|
+
export interface ServiceDecision {
|
|
288
|
+
// (undocumented)
|
|
203
289
|
creationDate?: string;
|
|
290
|
+
// (undocumented)
|
|
204
291
|
creatorId?: UserId;
|
|
205
|
-
|
|
292
|
+
// (undocumented)
|
|
206
293
|
lastUpdateDate: string;
|
|
294
|
+
// (undocumented)
|
|
295
|
+
lastUpdaterId?: UserId;
|
|
296
|
+
// (undocumented)
|
|
207
297
|
localId: string;
|
|
298
|
+
// (undocumented)
|
|
208
299
|
objectAri: string;
|
|
300
|
+
// (undocumented)
|
|
209
301
|
participants?: UserId[];
|
|
302
|
+
// (undocumented)
|
|
210
303
|
state?: DecisionState;
|
|
304
|
+
// (undocumented)
|
|
211
305
|
status: DecisionStatus;
|
|
306
|
+
// (undocumented)
|
|
212
307
|
type: DecisionType;
|
|
213
308
|
}
|
|
214
309
|
|
|
215
|
-
|
|
310
|
+
// @public (undocumented)
|
|
311
|
+
export interface ServiceDecisionResponse {
|
|
312
|
+
// (undocumented)
|
|
216
313
|
decisions: ServiceDecision[];
|
|
314
|
+
// (undocumented)
|
|
217
315
|
meta: Meta;
|
|
218
316
|
}
|
|
219
317
|
|
|
220
|
-
|
|
318
|
+
// @public (undocumented)
|
|
319
|
+
export type ServiceItem = ServiceDecision | ServiceTask;
|
|
221
320
|
|
|
222
|
-
|
|
321
|
+
// @public (undocumented)
|
|
322
|
+
export interface ServiceTask {
|
|
323
|
+
// (undocumented)
|
|
223
324
|
creationDate?: string;
|
|
325
|
+
// (undocumented)
|
|
224
326
|
creatorId?: UserId;
|
|
225
|
-
|
|
327
|
+
// (undocumented)
|
|
226
328
|
lastUpdateDate: string;
|
|
329
|
+
// (undocumented)
|
|
330
|
+
lastUpdaterId?: UserId;
|
|
331
|
+
// (undocumented)
|
|
227
332
|
localId: string;
|
|
333
|
+
// (undocumented)
|
|
228
334
|
objectAri: string;
|
|
335
|
+
// (undocumented)
|
|
229
336
|
parentLocalId?: string;
|
|
337
|
+
// (undocumented)
|
|
230
338
|
participants?: UserId[];
|
|
339
|
+
// (undocumented)
|
|
231
340
|
position: number;
|
|
341
|
+
// (undocumented)
|
|
232
342
|
state: TaskState;
|
|
343
|
+
// (undocumented)
|
|
233
344
|
type: TaskType;
|
|
234
345
|
}
|
|
235
346
|
|
|
236
|
-
|
|
347
|
+
// @public (undocumented)
|
|
348
|
+
export interface ServiceTaskState {
|
|
349
|
+
// (undocumented)
|
|
237
350
|
lastUpdateDate: string;
|
|
351
|
+
// (undocumented)
|
|
238
352
|
localId: string;
|
|
353
|
+
// (undocumented)
|
|
239
354
|
objectAri: string;
|
|
355
|
+
// (undocumented)
|
|
240
356
|
state: TaskState;
|
|
241
357
|
}
|
|
242
358
|
|
|
243
|
-
|
|
359
|
+
// @public (undocumented)
|
|
360
|
+
interface State {
|
|
361
|
+
// (undocumented)
|
|
244
362
|
isDone?: boolean;
|
|
245
363
|
}
|
|
246
364
|
|
|
247
|
-
|
|
365
|
+
// @public (undocumented)
|
|
366
|
+
export interface Task extends BaseItem<TaskState> {
|
|
367
|
+
// (undocumented)
|
|
248
368
|
creationDate?: Date;
|
|
369
|
+
// (undocumented)
|
|
249
370
|
creator?: UserId;
|
|
250
|
-
|
|
371
|
+
// (undocumented)
|
|
251
372
|
lastUpdateDate: Date;
|
|
373
|
+
// (undocumented)
|
|
374
|
+
lastUpdater?: UserId;
|
|
375
|
+
// (undocumented)
|
|
252
376
|
parentLocalId?: string;
|
|
377
|
+
// (undocumented)
|
|
253
378
|
participants?: UserId[];
|
|
379
|
+
// (undocumented)
|
|
254
380
|
position?: number;
|
|
381
|
+
// (undocumented)
|
|
255
382
|
type: TaskType;
|
|
256
383
|
}
|
|
257
384
|
|
|
258
|
-
|
|
259
|
-
|
|
385
|
+
// @public (undocumented)
|
|
386
|
+
export interface TaskDecisionProvider {
|
|
387
|
+
// (undocumented)
|
|
260
388
|
notifyRecentUpdates(updateContext: RecentUpdateContext): void;
|
|
261
|
-
|
|
389
|
+
// (undocumented)
|
|
262
390
|
subscribe(
|
|
263
391
|
objectKey: ObjectKey,
|
|
264
392
|
handler: Handler,
|
|
265
393
|
item?: BaseItem<TaskState | DecisionState>,
|
|
266
394
|
): void;
|
|
395
|
+
// (undocumented)
|
|
396
|
+
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
397
|
+
// (undocumented)
|
|
267
398
|
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
399
|
+
// (undocumented)
|
|
400
|
+
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
268
401
|
}
|
|
269
402
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
private itemStateManager;
|
|
403
|
+
// @public (undocumented)
|
|
404
|
+
export class TaskDecisionResource implements TaskDecisionProvider {
|
|
273
405
|
constructor(serviceConfig: TaskDecisionResourceConfig);
|
|
274
|
-
|
|
406
|
+
destroy(): void;
|
|
407
|
+
// (undocumented)
|
|
275
408
|
notifyRecentUpdates(recentUpdateContext: RecentUpdateContext): void;
|
|
276
|
-
|
|
409
|
+
// (undocumented)
|
|
277
410
|
subscribe(
|
|
278
411
|
objectKey: ObjectKey,
|
|
279
412
|
handler: Handler,
|
|
280
413
|
item?: BaseItem<TaskState | DecisionState>,
|
|
281
414
|
): void;
|
|
415
|
+
// (undocumented)
|
|
416
|
+
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
417
|
+
// (undocumented)
|
|
282
418
|
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
* are sent to a server (typically mocked).
|
|
286
|
-
*/
|
|
287
|
-
destroy(): void;
|
|
419
|
+
// (undocumented)
|
|
420
|
+
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
288
421
|
}
|
|
289
422
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Indicates if initial state for an action or decision is should be cached,
|
|
294
|
-
* from the content, i.e. was originally hydrated from the service initially,
|
|
295
|
-
* and so should be considered up to date.
|
|
296
|
-
*
|
|
297
|
-
* Will stop the initiation of the hydration from the service the first
|
|
298
|
-
* time an action or decision is seen.
|
|
299
|
-
*
|
|
300
|
-
* If false the state will always be hydrated from the service on first view.
|
|
301
|
-
*/
|
|
423
|
+
// @public (undocumented)
|
|
424
|
+
export interface TaskDecisionResourceConfig extends ServiceConfig {
|
|
302
425
|
disableServiceHydration?: boolean;
|
|
426
|
+
// (undocumented)
|
|
427
|
+
pubSubClient?: PubSubClient;
|
|
303
428
|
}
|
|
304
429
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
never
|
|
309
|
-
> &
|
|
310
|
-
Partial<
|
|
311
|
-
Pick<
|
|
312
|
-
Omit<
|
|
313
|
-
Props_4 & WithAnalyticsEventsProps,
|
|
314
|
-
keyof WithAnalyticsEventsProps
|
|
315
|
-
>,
|
|
316
|
-
keyof Props_4
|
|
317
|
-
>
|
|
318
|
-
> &
|
|
319
|
-
Partial<Pick<Partial<Props_4>, never>> &
|
|
430
|
+
// @public (undocumented)
|
|
431
|
+
export const TaskItem: React_2.ForwardRefExoticComponent<
|
|
432
|
+
Omit<Props_4 & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> &
|
|
320
433
|
React_2.RefAttributes<any>
|
|
321
434
|
>;
|
|
322
435
|
|
|
323
|
-
|
|
324
|
-
|
|
436
|
+
// @public (undocumented)
|
|
437
|
+
export class TaskList extends PureComponent<Props_5, {}> {
|
|
438
|
+
// (undocumented)
|
|
439
|
+
render(): jsx.JSX.Element | null;
|
|
325
440
|
}
|
|
326
441
|
|
|
327
|
-
|
|
442
|
+
// @public (undocumented)
|
|
443
|
+
export type TaskState = 'TODO' | 'DONE';
|
|
328
444
|
|
|
329
|
-
|
|
445
|
+
// @public (undocumented)
|
|
446
|
+
export type TaskType = 'TASK';
|
|
330
447
|
|
|
331
|
-
|
|
448
|
+
// @public (undocumented)
|
|
449
|
+
export type UserId = string;
|
|
332
450
|
|
|
333
|
-
|
|
451
|
+
// (No @packageDocumentation comment for this package)
|
|
334
452
|
```
|