@atlaskit/task-decision 17.9.12 → 17.10.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 +809 -364
- package/afm-cc/tsconfig.json +0 -3
- package/dist/cjs/components/styles.js +158 -12
- package/dist/cjs/components/theme.js +4 -5
- package/dist/es2019/components/styles.js +147 -185
- package/dist/es2019/components/theme.js +5 -6
- package/dist/esm/components/styles.js +158 -12
- package/dist/esm/components/theme.js +5 -6
- package/dist/types/api/TaskDecisionResource.d.ts +1 -1
- package/dist/types/api/TaskDecisionUtils.d.ts +1 -1
- package/dist/types/components/DecisionItem.d.ts +1 -1
- package/dist/types/components/DecisionList.d.ts +1 -1
- package/dist/types/components/Item.d.ts +1 -1
- package/dist/types/components/ResourcedTaskItem.d.ts +1 -1
- package/dist/types/components/TaskItem.d.ts +2 -2
- package/dist/types/components/TaskList.d.ts +1 -1
- package/dist/types/components/theme.d.ts +4 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/type-helpers.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/api/TaskDecisionResource.d.ts +1 -1
- package/dist/types-ts4.5/api/TaskDecisionUtils.d.ts +1 -1
- package/dist/types-ts4.5/components/DecisionItem.d.ts +1 -1
- package/dist/types-ts4.5/components/DecisionList.d.ts +1 -1
- package/dist/types-ts4.5/components/Item.d.ts +1 -1
- package/dist/types-ts4.5/components/ResourcedTaskItem.d.ts +1 -1
- package/dist/types-ts4.5/components/TaskItem.d.ts +2 -2
- package/dist/types-ts4.5/components/TaskList.d.ts +1 -1
- package/dist/types-ts4.5/components/theme.d.ts +4 -4
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/type-helpers.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/docs/01-intro.tsx +8 -14
- package/package.json +7 -14
- package/report.api.md +269 -268
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/task-decision"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -35,18 +36,18 @@ export type AVI = string;
|
|
|
35
36
|
|
|
36
37
|
// @public (undocumented)
|
|
37
38
|
export interface BaseItem<S> extends ObjectKey {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
// (undocumented)
|
|
40
|
+
lastUpdateDate: Date;
|
|
41
|
+
// (undocumented)
|
|
42
|
+
state: S;
|
|
43
|
+
// (undocumented)
|
|
44
|
+
type: DecisionType | TaskType;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
// @public (undocumented)
|
|
47
48
|
export interface ContentRef {
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
// (undocumented)
|
|
50
|
+
(ref: HTMLElement | null): void;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
// @public (undocumented)
|
|
@@ -54,36 +55,36 @@ export type Cursor = string;
|
|
|
54
55
|
|
|
55
56
|
// @public (undocumented)
|
|
56
57
|
export interface Decision extends BaseItem<DecisionState> {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
58
|
+
// (undocumented)
|
|
59
|
+
creationDate?: Date;
|
|
60
|
+
// (undocumented)
|
|
61
|
+
creator?: UserId;
|
|
62
|
+
// (undocumented)
|
|
63
|
+
lastUpdateDate: Date;
|
|
64
|
+
// (undocumented)
|
|
65
|
+
lastUpdater?: UserId;
|
|
66
|
+
// (undocumented)
|
|
67
|
+
participants?: UserId[];
|
|
68
|
+
// (undocumented)
|
|
69
|
+
status: DecisionStatus;
|
|
70
|
+
// (undocumented)
|
|
71
|
+
type: DecisionType;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
// @public (undocumented)
|
|
74
75
|
export const DecisionItem: ({
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
appearance,
|
|
77
|
+
children,
|
|
78
|
+
contentRef,
|
|
79
|
+
placeholder,
|
|
80
|
+
showPlaceholder,
|
|
81
|
+
dataAttributes,
|
|
81
82
|
}: Props) => jsx.JSX.Element;
|
|
82
83
|
|
|
83
84
|
// @public (undocumented)
|
|
84
85
|
export class DecisionList extends PureComponent<Props_2, {}> {
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
// (undocumented)
|
|
87
|
+
render(): jsx.JSX.Element | null;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
// @public (undocumented)
|
|
@@ -103,156 +104,156 @@ export type Item = Decision | Task;
|
|
|
103
104
|
|
|
104
105
|
// @public (undocumented)
|
|
105
106
|
export interface Meta {
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
// (undocumented)
|
|
108
|
+
cursor?: string;
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
// @public (undocumented)
|
|
111
112
|
export interface ObjectKey {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
// (undocumented)
|
|
114
|
+
containerAri?: string;
|
|
115
|
+
// (undocumented)
|
|
116
|
+
localId: string;
|
|
117
|
+
// (undocumented)
|
|
118
|
+
objectAri: string;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
// @public (undocumented)
|
|
121
122
|
export interface OnUpdate<T> {
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
// (undocumented)
|
|
124
|
+
(allDecisions: T[], newDecisions: T[]): void;
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
// @public (undocumented)
|
|
127
128
|
interface Props {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
129
|
+
// (undocumented)
|
|
130
|
+
appearance?: Appearance;
|
|
131
|
+
// (undocumented)
|
|
132
|
+
children?: any;
|
|
133
|
+
// (undocumented)
|
|
134
|
+
contentRef?: ContentRef;
|
|
135
|
+
// (undocumented)
|
|
136
|
+
dataAttributes?: {
|
|
137
|
+
[key: string]: number | string;
|
|
138
|
+
};
|
|
139
|
+
// (undocumented)
|
|
140
|
+
placeholder?: string;
|
|
141
|
+
// (undocumented)
|
|
142
|
+
showPlaceholder?: boolean;
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
// @public (undocumented)
|
|
145
146
|
interface Props_2 {
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
// (undocumented)
|
|
148
|
+
children?: ReactNode;
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
// @public (undocumented)
|
|
151
152
|
interface Props_3 {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
153
|
+
// (undocumented)
|
|
154
|
+
appearance?: Appearance;
|
|
155
|
+
// (undocumented)
|
|
156
|
+
children?: any;
|
|
157
|
+
// (undocumented)
|
|
158
|
+
contentRef?: ContentRef;
|
|
159
|
+
// (undocumented)
|
|
160
|
+
dataAttributes?: {
|
|
161
|
+
[key: string]: number | string;
|
|
162
|
+
};
|
|
163
|
+
// (undocumented)
|
|
164
|
+
disabled?: boolean;
|
|
165
|
+
// (undocumented)
|
|
166
|
+
isDone?: boolean;
|
|
167
|
+
// (undocumented)
|
|
168
|
+
isFocused?: boolean;
|
|
169
|
+
// (undocumented)
|
|
170
|
+
isRenderer?: boolean;
|
|
171
|
+
// (undocumented)
|
|
172
|
+
objectAri?: string;
|
|
173
|
+
// (undocumented)
|
|
174
|
+
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
175
|
+
// (undocumented)
|
|
176
|
+
placeholder?: string;
|
|
177
|
+
// (undocumented)
|
|
178
|
+
showPlaceholder?: boolean;
|
|
179
|
+
// (undocumented)
|
|
180
|
+
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
181
|
+
// (undocumented)
|
|
182
|
+
taskId: string;
|
|
182
183
|
}
|
|
183
184
|
|
|
184
185
|
// @public (undocumented)
|
|
185
186
|
interface Props_4 {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
187
|
+
// (undocumented)
|
|
188
|
+
appearance?: Appearance;
|
|
189
|
+
// (undocumented)
|
|
190
|
+
children?: any;
|
|
191
|
+
// (undocumented)
|
|
192
|
+
contentRef?: ContentRef;
|
|
193
|
+
// (undocumented)
|
|
194
|
+
dataAttributes?: {
|
|
195
|
+
[key: string]: number | string;
|
|
196
|
+
};
|
|
197
|
+
// (undocumented)
|
|
198
|
+
disabled?: boolean;
|
|
199
|
+
// (undocumented)
|
|
200
|
+
isDone?: boolean;
|
|
201
|
+
// (undocumented)
|
|
202
|
+
isFocused?: boolean;
|
|
203
|
+
// (undocumented)
|
|
204
|
+
isRenderer?: boolean;
|
|
205
|
+
// (undocumented)
|
|
206
|
+
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
207
|
+
// (undocumented)
|
|
208
|
+
placeholder?: string;
|
|
209
|
+
// (undocumented)
|
|
210
|
+
showPlaceholder?: boolean;
|
|
211
|
+
// (undocumented)
|
|
212
|
+
taskId: string;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
// @public (undocumented)
|
|
215
216
|
interface Props_5 {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
// (undocumented)
|
|
218
|
+
children?: ReactNode;
|
|
219
|
+
// (undocumented)
|
|
220
|
+
listId?: string;
|
|
220
221
|
}
|
|
221
222
|
|
|
222
223
|
// @public (undocumented)
|
|
223
224
|
export interface PubSubClient {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
225
|
+
// (undocumented)
|
|
226
|
+
join(aris: ARI[]): Promise<PubSubClient>;
|
|
227
|
+
// (undocumented)
|
|
228
|
+
leave(aris: ARI[]): Promise<PubSubClient>;
|
|
229
|
+
// (undocumented)
|
|
230
|
+
off(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
231
|
+
// (undocumented)
|
|
232
|
+
on(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
232
233
|
}
|
|
233
234
|
|
|
234
235
|
// @public (undocumented)
|
|
235
236
|
export interface PubSubOnEvent<T = any> {
|
|
236
|
-
|
|
237
|
-
|
|
237
|
+
// (undocumented)
|
|
238
|
+
(event: string, data: T): void;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
// @public (undocumented)
|
|
241
242
|
export enum PubSubSpecialEventType {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
243
|
+
// (undocumented)
|
|
244
|
+
CONNECTED = 'CONNECTED',
|
|
245
|
+
// (undocumented)
|
|
246
|
+
ERROR = 'ERROR',
|
|
247
|
+
// (undocumented)
|
|
248
|
+
RECONNECT = 'RECONNECT',
|
|
248
249
|
}
|
|
249
250
|
|
|
250
251
|
// @public (undocumented)
|
|
251
252
|
export interface RecentUpdateContext {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
// (undocumented)
|
|
254
|
+
localId?: string;
|
|
255
|
+
// (undocumented)
|
|
256
|
+
objectAri: string;
|
|
256
257
|
}
|
|
257
258
|
|
|
258
259
|
// @public (undocumented)
|
|
@@ -260,69 +261,69 @@ export type RecentUpdatesId = string;
|
|
|
260
261
|
|
|
261
262
|
// @public
|
|
262
263
|
export interface RecentUpdatesListener {
|
|
263
|
-
|
|
264
|
-
|
|
264
|
+
id(id: RecentUpdatesId): void;
|
|
265
|
+
recentUpdates(updateContext: RecentUpdateContext): void;
|
|
265
266
|
}
|
|
266
267
|
|
|
267
268
|
// @public (undocumented)
|
|
268
269
|
export interface RenderDocument {
|
|
269
|
-
|
|
270
|
-
|
|
270
|
+
// (undocumented)
|
|
271
|
+
(document: any, rendererContext?: RendererContext): JSX.Element;
|
|
271
272
|
}
|
|
272
273
|
|
|
273
274
|
// @public
|
|
274
275
|
export interface RendererContext {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
// (undocumented)
|
|
277
|
+
containerAri?: string;
|
|
278
|
+
// (undocumented)
|
|
279
|
+
objectAri: string;
|
|
279
280
|
}
|
|
280
281
|
|
|
281
282
|
// @public (undocumented)
|
|
282
283
|
export class ResourcedTaskItem extends PureComponent<Props_3, State> {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
284
|
+
constructor(props: Props_3);
|
|
285
|
+
// (undocumented)
|
|
286
|
+
componentDidMount(): void;
|
|
287
|
+
// (undocumented)
|
|
288
|
+
componentWillUnmount(): void;
|
|
289
|
+
// (undocumented)
|
|
290
|
+
static defaultProps: Partial<Props_3>;
|
|
291
|
+
// (undocumented)
|
|
292
|
+
render(): JSX.Element;
|
|
293
|
+
// (undocumented)
|
|
294
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props_3): void;
|
|
294
295
|
}
|
|
295
296
|
|
|
296
297
|
// @public (undocumented)
|
|
297
298
|
export interface ServiceDecision {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
299
|
+
// (undocumented)
|
|
300
|
+
creationDate?: string;
|
|
301
|
+
// (undocumented)
|
|
302
|
+
creatorId?: UserId;
|
|
303
|
+
// (undocumented)
|
|
304
|
+
lastUpdateDate: string;
|
|
305
|
+
// (undocumented)
|
|
306
|
+
lastUpdaterId?: UserId;
|
|
307
|
+
// (undocumented)
|
|
308
|
+
localId: string;
|
|
309
|
+
// (undocumented)
|
|
310
|
+
objectAri: string;
|
|
311
|
+
// (undocumented)
|
|
312
|
+
participants?: UserId[];
|
|
313
|
+
// (undocumented)
|
|
314
|
+
state?: DecisionState;
|
|
315
|
+
// (undocumented)
|
|
316
|
+
status: DecisionStatus;
|
|
317
|
+
// (undocumented)
|
|
318
|
+
type: DecisionType;
|
|
318
319
|
}
|
|
319
320
|
|
|
320
321
|
// @public (undocumented)
|
|
321
322
|
export interface ServiceDecisionResponse {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
// (undocumented)
|
|
324
|
+
decisions: ServiceDecision[];
|
|
325
|
+
// (undocumented)
|
|
326
|
+
meta: Meta;
|
|
326
327
|
}
|
|
327
328
|
|
|
328
329
|
// @public (undocumented)
|
|
@@ -330,123 +331,123 @@ export type ServiceItem = ServiceDecision | ServiceTask;
|
|
|
330
331
|
|
|
331
332
|
// @public (undocumented)
|
|
332
333
|
export interface ServiceTask {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
334
|
+
// (undocumented)
|
|
335
|
+
creationDate?: string;
|
|
336
|
+
// (undocumented)
|
|
337
|
+
creatorId?: UserId;
|
|
338
|
+
// (undocumented)
|
|
339
|
+
lastUpdateDate: string;
|
|
340
|
+
// (undocumented)
|
|
341
|
+
lastUpdaterId?: UserId;
|
|
342
|
+
// (undocumented)
|
|
343
|
+
localId: string;
|
|
344
|
+
// (undocumented)
|
|
345
|
+
objectAri: string;
|
|
346
|
+
// (undocumented)
|
|
347
|
+
parentLocalId?: string;
|
|
348
|
+
// (undocumented)
|
|
349
|
+
participants?: UserId[];
|
|
350
|
+
// (undocumented)
|
|
351
|
+
position: number;
|
|
352
|
+
// (undocumented)
|
|
353
|
+
state: TaskState;
|
|
354
|
+
// (undocumented)
|
|
355
|
+
type: TaskType;
|
|
355
356
|
}
|
|
356
357
|
|
|
357
358
|
// @public (undocumented)
|
|
358
359
|
export interface ServiceTaskState {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
360
|
+
// (undocumented)
|
|
361
|
+
lastUpdateDate: string;
|
|
362
|
+
// (undocumented)
|
|
363
|
+
localId: string;
|
|
364
|
+
// (undocumented)
|
|
365
|
+
objectAri: string;
|
|
366
|
+
// (undocumented)
|
|
367
|
+
state: TaskState;
|
|
367
368
|
}
|
|
368
369
|
|
|
369
370
|
// @public (undocumented)
|
|
370
371
|
interface State {
|
|
371
|
-
|
|
372
|
-
|
|
372
|
+
// (undocumented)
|
|
373
|
+
isDone?: boolean;
|
|
373
374
|
}
|
|
374
375
|
|
|
375
376
|
// @public (undocumented)
|
|
376
377
|
export interface Task extends BaseItem<TaskState> {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
378
|
+
// (undocumented)
|
|
379
|
+
creationDate?: Date;
|
|
380
|
+
// (undocumented)
|
|
381
|
+
creator?: UserId;
|
|
382
|
+
// (undocumented)
|
|
383
|
+
lastUpdateDate: Date;
|
|
384
|
+
// (undocumented)
|
|
385
|
+
lastUpdater?: UserId;
|
|
386
|
+
// (undocumented)
|
|
387
|
+
parentLocalId?: string;
|
|
388
|
+
// (undocumented)
|
|
389
|
+
participants?: UserId[];
|
|
390
|
+
// (undocumented)
|
|
391
|
+
position?: number;
|
|
392
|
+
// (undocumented)
|
|
393
|
+
type: TaskType;
|
|
393
394
|
}
|
|
394
395
|
|
|
395
396
|
// @public (undocumented)
|
|
396
397
|
export interface TaskDecisionProvider {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
398
|
+
// (undocumented)
|
|
399
|
+
notifyRecentUpdates(updateContext: RecentUpdateContext): void;
|
|
400
|
+
// (undocumented)
|
|
401
|
+
subscribe(
|
|
402
|
+
objectKey: ObjectKey,
|
|
403
|
+
handler: Handler,
|
|
404
|
+
item?: BaseItem<DecisionState | TaskState>,
|
|
405
|
+
): void;
|
|
406
|
+
// (undocumented)
|
|
407
|
+
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
408
|
+
// (undocumented)
|
|
409
|
+
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
410
|
+
// (undocumented)
|
|
411
|
+
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
411
412
|
}
|
|
412
413
|
|
|
413
414
|
// @public (undocumented)
|
|
414
415
|
export class TaskDecisionResource implements TaskDecisionProvider {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
416
|
+
constructor(serviceConfig: TaskDecisionResourceConfig);
|
|
417
|
+
destroy(): void;
|
|
418
|
+
// (undocumented)
|
|
419
|
+
notifyRecentUpdates(recentUpdateContext: RecentUpdateContext): void;
|
|
420
|
+
// (undocumented)
|
|
421
|
+
subscribe(
|
|
422
|
+
objectKey: ObjectKey,
|
|
423
|
+
handler: Handler,
|
|
424
|
+
item?: BaseItem<DecisionState | TaskState>,
|
|
425
|
+
): void;
|
|
426
|
+
// (undocumented)
|
|
427
|
+
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
428
|
+
// (undocumented)
|
|
429
|
+
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
430
|
+
// (undocumented)
|
|
431
|
+
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
431
432
|
}
|
|
432
433
|
|
|
433
434
|
// @public (undocumented)
|
|
434
435
|
export interface TaskDecisionResourceConfig extends ServiceConfig {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
disableServiceHydration?: boolean;
|
|
437
|
+
// (undocumented)
|
|
438
|
+
pubSubClient?: PubSubClient;
|
|
438
439
|
}
|
|
439
440
|
|
|
440
441
|
// @public (undocumented)
|
|
441
442
|
export const TaskItem: React_2.ForwardRefExoticComponent<
|
|
442
|
-
|
|
443
|
-
|
|
443
|
+
Omit<Props_4 & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> &
|
|
444
|
+
React_2.RefAttributes<any>
|
|
444
445
|
>;
|
|
445
446
|
|
|
446
447
|
// @public (undocumented)
|
|
447
448
|
export class TaskList extends PureComponent<Props_5, {}> {
|
|
448
|
-
|
|
449
|
-
|
|
449
|
+
// (undocumented)
|
|
450
|
+
render(): jsx.JSX.Element | null;
|
|
450
451
|
}
|
|
451
452
|
|
|
452
453
|
// @public (undocumented)
|
|
@@ -469,9 +470,9 @@ export type UserId = string;
|
|
|
469
470
|
|
|
470
471
|
```json
|
|
471
472
|
{
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
"react": "^16.8.0",
|
|
474
|
+
"react-dom": "^16.8.0",
|
|
475
|
+
"url-search-params": "^0.10.0"
|
|
475
476
|
}
|
|
476
477
|
```
|
|
477
478
|
|