@atlaskit/task-decision 17.9.2 → 17.9.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 +58 -46
- package/dist/cjs/analytics/index.js +2 -4
- package/dist/cjs/api/TaskDecisionResource.js +15 -29
- package/dist/cjs/api/TaskDecisionUtils.js +4 -7
- package/dist/cjs/components/DecisionItem.js +1 -2
- package/dist/cjs/components/DecisionList.js +2 -3
- package/dist/cjs/components/Item.js +1 -2
- package/dist/cjs/components/ResourcedTaskItem.js +1 -2
- package/dist/cjs/components/TaskItem.js +4 -5
- package/dist/cjs/components/TaskList.js +2 -3
- package/dist/cjs/components/styles.js +8 -15
- package/dist/cjs/components/theme.js +1 -2
- package/dist/cjs/constants.js +1 -2
- package/dist/cjs/type-helpers.js +6 -11
- package/dist/cjs/types.js +2 -3
- package/dist/esm/components/TaskItem.js +3 -3
- package/package.json +4 -3
- package/tmp/api-report-tmp.d.ts +0 -434
package/CHANGELOG.md
CHANGED
|
@@ -1,77 +1,89 @@
|
|
|
1
1
|
# @atlaskit/task-decision
|
|
2
2
|
|
|
3
|
+
## 17.9.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#57181](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57181) [`38733803e64f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/38733803e64f) - Upgrade Emotion v10 (@emotion/core) to Emotion v11 (@emotion/react). No behaviour change expected.
|
|
8
|
+
|
|
9
|
+
## 17.9.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 17.9.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`8a519feae72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8a519feae72) - Update checkbox border contrast under feature flag
|
|
19
|
+
- [#40530](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40530) [`8a519feae72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8a519feae72) - Update checkbox border contrast under feature flag
|
|
8
20
|
|
|
9
21
|
## 17.9.1
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`c820226ec08`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c820226ec08) - Update feature flag name for checkbox and radio border update
|
|
25
|
+
- [#40282](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40282) [`c820226ec08`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c820226ec08) - Update feature flag name for checkbox and radio border update
|
|
14
26
|
|
|
15
27
|
## 17.9.0
|
|
16
28
|
|
|
17
29
|
### Minor Changes
|
|
18
30
|
|
|
19
|
-
- [`96f4e9fe6de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96f4e9fe6de) - [ux] ECA11Y-1 Added keyboard support to focus checkbox, check or uncheck, inside action item
|
|
31
|
+
- [#38929](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38929) [`96f4e9fe6de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96f4e9fe6de) - [ux] ECA11Y-1 Added keyboard support to focus checkbox, check or uncheck, inside action item
|
|
20
32
|
|
|
21
33
|
## 17.8.1
|
|
22
34
|
|
|
23
35
|
### Patch Changes
|
|
24
36
|
|
|
25
|
-
- [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
37
|
+
- [#39787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39787) [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
26
38
|
|
|
27
39
|
## 17.8.0
|
|
28
40
|
|
|
29
41
|
### Minor Changes
|
|
30
42
|
|
|
31
|
-
- [`705d8ec0641`](https://bitbucket.org/atlassian/atlassian-frontend/commits/705d8ec0641) - [ux] Added a new shortcut (⌘ + Opt + ⏎) for Check/Uncheck Action item
|
|
43
|
+
- [#39012](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39012) [`705d8ec0641`](https://bitbucket.org/atlassian/atlassian-frontend/commits/705d8ec0641) - [ux] Added a new shortcut (⌘ + Opt + ⏎) for Check/Uncheck Action item
|
|
32
44
|
|
|
33
45
|
## 17.7.1
|
|
34
46
|
|
|
35
47
|
### Patch Changes
|
|
36
48
|
|
|
37
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
49
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
38
50
|
- Updated dependencies
|
|
39
51
|
|
|
40
52
|
## 17.7.0
|
|
41
53
|
|
|
42
54
|
### Minor Changes
|
|
43
55
|
|
|
44
|
-
- [`8c026385eb8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c026385eb8) - [ux] ED-17434: Update TaskItem to match @atlaskit/checkbox and update to support design tokens and match spacing from bullet and numbered lists.
|
|
56
|
+
- [#35509](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35509) [`8c026385eb8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c026385eb8) - [ux] ED-17434: Update TaskItem to match @atlaskit/checkbox and update to support design tokens and match spacing from bullet and numbered lists.
|
|
45
57
|
|
|
46
58
|
## 17.6.4
|
|
47
59
|
|
|
48
60
|
### Patch Changes
|
|
49
61
|
|
|
50
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
62
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
51
63
|
|
|
52
64
|
## 17.6.3
|
|
53
65
|
|
|
54
66
|
### Patch Changes
|
|
55
67
|
|
|
56
|
-
- [`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.
|
|
68
|
+
- [#33771](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33771) [`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.
|
|
57
69
|
|
|
58
70
|
## 17.6.2
|
|
59
71
|
|
|
60
72
|
### Patch Changes
|
|
61
73
|
|
|
62
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
74
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
63
75
|
|
|
64
76
|
## 17.6.1
|
|
65
77
|
|
|
66
78
|
### Patch Changes
|
|
67
79
|
|
|
68
|
-
- [`98c74fa6f26`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98c74fa6f26) - [ux] fix placeholder fallback
|
|
80
|
+
- [#32882](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32882) [`98c74fa6f26`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98c74fa6f26) - [ux] fix placeholder fallback
|
|
69
81
|
|
|
70
82
|
## 17.6.0
|
|
71
83
|
|
|
72
84
|
### Minor Changes
|
|
73
85
|
|
|
74
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
86
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
75
87
|
|
|
76
88
|
### Patch Changes
|
|
77
89
|
|
|
@@ -81,7 +93,7 @@
|
|
|
81
93
|
|
|
82
94
|
### Patch Changes
|
|
83
95
|
|
|
84
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
96
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
85
97
|
|
|
86
98
|
## 17.5.10
|
|
87
99
|
|
|
@@ -99,19 +111,19 @@
|
|
|
99
111
|
|
|
100
112
|
### Patch Changes
|
|
101
113
|
|
|
102
|
-
- [`67dc5df7db3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/67dc5df7db3) - [ux] Fix behaviour where safari could get stuck inside a decision item when trying to use the up-arrow key.
|
|
114
|
+
- [#28932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28932) [`67dc5df7db3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/67dc5df7db3) - [ux] Fix behaviour where safari could get stuck inside a decision item when trying to use the up-arrow key.
|
|
103
115
|
|
|
104
116
|
## 17.5.7
|
|
105
117
|
|
|
106
118
|
### Patch Changes
|
|
107
119
|
|
|
108
|
-
- [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
120
|
+
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324) [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
109
121
|
|
|
110
122
|
## 17.5.6
|
|
111
123
|
|
|
112
124
|
### Patch Changes
|
|
113
125
|
|
|
114
|
-
- [`224a2482244`](https://bitbucket.org/atlassian/atlassian-frontend/commits/224a2482244) - [ED-16166] Changes the renderer prop document type from any to DocNode
|
|
126
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090) [`224a2482244`](https://bitbucket.org/atlassian/atlassian-frontend/commits/224a2482244) - [ED-16166] Changes the renderer prop document type from any to DocNode
|
|
115
127
|
|
|
116
128
|
BREAKING for `@atlaskit/renderer`: Previously the `document` prop for the renderer component had the type of `any`. This has now been changed to `DocNode` which comes from `@atlaskit/adf-schema`.
|
|
117
129
|
|
|
@@ -151,19 +163,19 @@
|
|
|
151
163
|
|
|
152
164
|
### Patch Changes
|
|
153
165
|
|
|
154
|
-
- [`0915ecdd1db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0915ecdd1db) - Removed styled components from dev and peer dependencies
|
|
166
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`0915ecdd1db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0915ecdd1db) - Removed styled components from dev and peer dependencies
|
|
155
167
|
|
|
156
168
|
## 17.5.1
|
|
157
169
|
|
|
158
170
|
### Patch Changes
|
|
159
171
|
|
|
160
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
172
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
161
173
|
|
|
162
174
|
## 17.5.0
|
|
163
175
|
|
|
164
176
|
### Minor Changes
|
|
165
177
|
|
|
166
|
-
- [`2112384b533`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2112384b533) - Replaced styled components with emotion.
|
|
178
|
+
- [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`2112384b533`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2112384b533) - Replaced styled components with emotion.
|
|
167
179
|
|
|
168
180
|
### Patch Changes
|
|
169
181
|
|
|
@@ -173,13 +185,13 @@
|
|
|
173
185
|
|
|
174
186
|
### Patch Changes
|
|
175
187
|
|
|
176
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
188
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
177
189
|
|
|
178
190
|
## 17.4.4
|
|
179
191
|
|
|
180
192
|
### Patch Changes
|
|
181
193
|
|
|
182
|
-
- [`bffe28af76b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bffe28af76b) - ED-14764: Modified CSS display attribute for checkboxes in action items slightly to address the problem seen in firefox where the cursor does not move to the previous item using the up arrow key. No appearance changes to the component as a result of this modification.
|
|
194
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`bffe28af76b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bffe28af76b) - ED-14764: Modified CSS display attribute for checkboxes in action items slightly to address the problem seen in firefox where the cursor does not move to the previous item using the up arrow key. No appearance changes to the component as a result of this modification.
|
|
183
195
|
|
|
184
196
|
## 17.4.3
|
|
185
197
|
|
|
@@ -191,7 +203,7 @@
|
|
|
191
203
|
|
|
192
204
|
### Patch Changes
|
|
193
205
|
|
|
194
|
-
- [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
206
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
195
207
|
|
|
196
208
|
## 17.4.1
|
|
197
209
|
|
|
@@ -203,7 +215,7 @@
|
|
|
203
215
|
|
|
204
216
|
### Minor Changes
|
|
205
217
|
|
|
206
|
-
- [`785548f317d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/785548f317d) - [ux] Instrumented `@atlaskit/task-decision` with the new theming package, `@atlaskit/tokens`.
|
|
218
|
+
- [#20033](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20033) [`785548f317d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/785548f317d) - [ux] Instrumented `@atlaskit/task-decision` with the new theming package, `@atlaskit/tokens`.
|
|
207
219
|
|
|
208
220
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
209
221
|
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
@@ -217,19 +229,19 @@
|
|
|
217
229
|
|
|
218
230
|
### Patch Changes
|
|
219
231
|
|
|
220
|
-
- [`053b9d1b25e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/053b9d1b25e) - AK-729: an empty label was removed from action item component
|
|
232
|
+
- [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`053b9d1b25e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/053b9d1b25e) - AK-729: an empty label was removed from action item component
|
|
221
233
|
|
|
222
234
|
## 17.3.1
|
|
223
235
|
|
|
224
236
|
### Patch Changes
|
|
225
237
|
|
|
226
|
-
- [`57f3b255fb2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/57f3b255fb2) - [ux] AK-608: Action items are keyboard accessible
|
|
238
|
+
- [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526) [`57f3b255fb2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/57f3b255fb2) - [ux] AK-608: Action items are keyboard accessible
|
|
227
239
|
|
|
228
240
|
## 17.3.0
|
|
229
241
|
|
|
230
242
|
### Minor Changes
|
|
231
243
|
|
|
232
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - AK-735 Update decision icon color
|
|
244
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - AK-735 Update decision icon color
|
|
233
245
|
|
|
234
246
|
### Patch Changes
|
|
235
247
|
|
|
@@ -239,7 +251,7 @@
|
|
|
239
251
|
|
|
240
252
|
### Patch Changes
|
|
241
253
|
|
|
242
|
-
- [`35611ad44a5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/35611ad44a5) - AK-601 Changed checkbox colors to meet minimum contrast requirements
|
|
254
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`35611ad44a5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/35611ad44a5) - AK-601 Changed checkbox colors to meet minimum contrast requirements
|
|
243
255
|
- [`544dc89eb9e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/544dc89eb9e) - import more contrast color for text in decisions list
|
|
244
256
|
|
|
245
257
|
## 17.2.3
|
|
@@ -252,20 +264,20 @@
|
|
|
252
264
|
|
|
253
265
|
### Patch Changes
|
|
254
266
|
|
|
255
|
-
- [`b90c0237824`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b90c0237824) - Update package.jsons to remove unused dependencies.
|
|
267
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864) [`b90c0237824`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b90c0237824) - Update package.jsons to remove unused dependencies.
|
|
256
268
|
- Updated dependencies
|
|
257
269
|
|
|
258
270
|
## 17.2.1
|
|
259
271
|
|
|
260
272
|
### Patch Changes
|
|
261
273
|
|
|
262
|
-
- [`414b6216adf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/414b6216adf) - Upgrade date-fns to ^2.17
|
|
274
|
+
- [#9328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9328) [`414b6216adf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/414b6216adf) - Upgrade date-fns to ^2.17
|
|
263
275
|
|
|
264
276
|
## 17.2.0
|
|
265
277
|
|
|
266
278
|
### Minor Changes
|
|
267
279
|
|
|
268
|
-
- [`ab7db4ccc25`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab7db4ccc25) - Wrap checkbox text with label
|
|
280
|
+
- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`ab7db4ccc25`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab7db4ccc25) - Wrap checkbox text with label
|
|
269
281
|
|
|
270
282
|
### Patch Changes
|
|
271
283
|
|
|
@@ -275,7 +287,7 @@
|
|
|
275
287
|
|
|
276
288
|
### Minor Changes
|
|
277
289
|
|
|
278
|
-
- [`5be9ece5fd5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5be9ece5fd5) - Removed RxJS from peer dependencies
|
|
290
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113) [`5be9ece5fd5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5be9ece5fd5) - Removed RxJS from peer dependencies
|
|
279
291
|
|
|
280
292
|
### Patch Changes
|
|
281
293
|
|
|
@@ -285,7 +297,7 @@
|
|
|
285
297
|
|
|
286
298
|
### Patch Changes
|
|
287
299
|
|
|
288
|
-
- [`471e2431a7c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/471e2431a7c) - Downgrade back to date-fns 1.30.1
|
|
300
|
+
- [#9299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9299) [`471e2431a7c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/471e2431a7c) - Downgrade back to date-fns 1.30.1
|
|
289
301
|
We discovered big bundle size increases associated with the date-fns upgrade.
|
|
290
302
|
We're reverting the upgarde to investigate
|
|
291
303
|
|
|
@@ -293,7 +305,7 @@
|
|
|
293
305
|
|
|
294
306
|
### Patch Changes
|
|
295
307
|
|
|
296
|
-
- [`70f0701c2e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70f0701c2e6) - Upgrade date-fns to 2.17
|
|
308
|
+
- [#8291](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8291) [`70f0701c2e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70f0701c2e6) - Upgrade date-fns to 2.17
|
|
297
309
|
|
|
298
310
|
## 17.0.10
|
|
299
311
|
|
|
@@ -305,13 +317,13 @@
|
|
|
305
317
|
|
|
306
318
|
### Patch Changes
|
|
307
319
|
|
|
308
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
320
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
309
321
|
|
|
310
322
|
## 17.0.8
|
|
311
323
|
|
|
312
324
|
### Patch Changes
|
|
313
325
|
|
|
314
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
326
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
315
327
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
316
328
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
317
329
|
|
|
@@ -325,20 +337,20 @@
|
|
|
325
337
|
|
|
326
338
|
### Patch Changes
|
|
327
339
|
|
|
328
|
-
- [`66a23c5c94`](https://bitbucket.org/atlassian/atlassian-frontend/commits/66a23c5c94) - ED-9350: prevent action item/decision overflow
|
|
340
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`66a23c5c94`](https://bitbucket.org/atlassian/atlassian-frontend/commits/66a23c5c94) - ED-9350: prevent action item/decision overflow
|
|
329
341
|
- Updated dependencies
|
|
330
342
|
|
|
331
343
|
## 17.0.5
|
|
332
344
|
|
|
333
345
|
### Patch Changes
|
|
334
346
|
|
|
335
|
-
- [`bee2157c1b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bee2157c1b) - Remove usage of @atlaskit/util-common-test package
|
|
347
|
+
- [#4932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4932) [`bee2157c1b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bee2157c1b) - Remove usage of @atlaskit/util-common-test package
|
|
336
348
|
|
|
337
349
|
## 17.0.4
|
|
338
350
|
|
|
339
351
|
### Patch Changes
|
|
340
352
|
|
|
341
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
353
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
342
354
|
|
|
343
355
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
344
356
|
to prevent duplicates of tslib being bundled.
|
|
@@ -347,26 +359,26 @@
|
|
|
347
359
|
|
|
348
360
|
### Patch Changes
|
|
349
361
|
|
|
350
|
-
- [`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump required because of conflicts on wadmal release
|
|
362
|
+
- [#4393](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4393) [`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump required because of conflicts on wadmal release
|
|
351
363
|
|
|
352
364
|
## 17.0.2
|
|
353
365
|
|
|
354
366
|
### Patch Changes
|
|
355
367
|
|
|
356
|
-
- [`e7957c86bf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7957c86bf) - ED-7467: Added a new attribute data-node-type in DecisionList to fix copy/pasting between `@atlaskit/renderer` and `@atlaskit/editor-core`.
|
|
368
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`e7957c86bf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7957c86bf) - ED-7467: Added a new attribute data-node-type in DecisionList to fix copy/pasting between `@atlaskit/renderer` and `@atlaskit/editor-core`.
|
|
357
369
|
- Updated dependencies
|
|
358
370
|
|
|
359
371
|
## 17.0.1
|
|
360
372
|
|
|
361
373
|
### Patch Changes
|
|
362
374
|
|
|
363
|
-
- [`c72502e22a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c72502e22a) - ED-9594: Remove cursor pointer from decision items in renderer
|
|
375
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`c72502e22a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c72502e22a) - ED-9594: Remove cursor pointer from decision items in renderer
|
|
364
376
|
|
|
365
377
|
## 17.0.0
|
|
366
378
|
|
|
367
379
|
### Major Changes
|
|
368
380
|
|
|
369
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
381
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
370
382
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
371
383
|
|
|
372
384
|
### Patch Changes
|
|
@@ -377,20 +389,20 @@
|
|
|
377
389
|
|
|
378
390
|
### Patch Changes
|
|
379
391
|
|
|
380
|
-
- [`d320dccd58`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d320dccd58) - ED-9488 Remove `export *` from @atlaskit/task-decision
|
|
392
|
+
- [#2763](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2763) [`d320dccd58`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d320dccd58) - ED-9488 Remove `export *` from @atlaskit/task-decision
|
|
381
393
|
|
|
382
394
|
## 16.1.1
|
|
383
395
|
|
|
384
396
|
### Patch Changes
|
|
385
397
|
|
|
386
|
-
- [`6ce2418b54`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ce2418b54) - ED-9349 Remove hover state from decision item
|
|
398
|
+
- [#2443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2443) [`6ce2418b54`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ce2418b54) - ED-9349 Remove hover state from decision item
|
|
387
399
|
- [`a86fbdb2b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a86fbdb2b8) - CEMS-1138 Fix TaskItem 'isDone' state gets overriden when user changes the checkbox value
|
|
388
400
|
|
|
389
401
|
## 16.1.0
|
|
390
402
|
|
|
391
403
|
### Minor Changes
|
|
392
404
|
|
|
393
|
-
- [`ef36de69ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ef36de69ad) - ED-8358 Change decision to use a grey background
|
|
405
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`ef36de69ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ef36de69ad) - ED-8358 Change decision to use a grey background
|
|
394
406
|
|
|
395
407
|
### Patch Changes
|
|
396
408
|
|
|
@@ -402,7 +414,7 @@
|
|
|
402
414
|
|
|
403
415
|
### Patch Changes
|
|
404
416
|
|
|
405
|
-
- [`9b1a0d0033`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9b1a0d0033) - ED-8358 Revert making decisions background grey- [`d895d21c49`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d895d21c49) - ED-9176: add annotations to task and decisions- Updated dependencies
|
|
417
|
+
- [`9b1a0d0033`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9b1a0d0033) - ED-8358 Revert making decisions background grey- [#1868](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/1868) [`d895d21c49`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d895d21c49) - ED-9176: add annotations to task and decisions- Updated dependencies
|
|
406
418
|
|
|
407
419
|
## 16.0.11
|
|
408
420
|
|
|
@@ -5,7 +5,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.fabricElementsChannel = exports.createAndFireEventInElementsChannel = void 0;
|
|
7
7
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
8
|
-
var fabricElementsChannel = 'fabric-elements';
|
|
9
|
-
exports.
|
|
10
|
-
var createAndFireEventInElementsChannel = (0, _analyticsNext.createAndFireEvent)(fabricElementsChannel);
|
|
11
|
-
exports.createAndFireEventInElementsChannel = createAndFireEventInElementsChannel;
|
|
8
|
+
var fabricElementsChannel = exports.fabricElementsChannel = 'fabric-elements';
|
|
9
|
+
var createAndFireEventInElementsChannel = exports.createAndFireEventInElementsChannel = (0, _analyticsNext.createAndFireEvent)(fabricElementsChannel);
|
|
@@ -15,29 +15,18 @@ var _types = require("../types");
|
|
|
15
15
|
var _typeHelpers = require("../type-helpers");
|
|
16
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
-
var ACTION_CREATED_FPS_EVENT = 'avi:task-decision-service:created:action';
|
|
19
|
-
exports.
|
|
20
|
-
var
|
|
21
|
-
exports.
|
|
22
|
-
var
|
|
23
|
-
exports.
|
|
24
|
-
var
|
|
25
|
-
exports.
|
|
26
|
-
var
|
|
27
|
-
exports.
|
|
28
|
-
var
|
|
29
|
-
exports.
|
|
30
|
-
var DECISION_EDITED_FPS_EVENT = 'avi:task-decision-service:edited:decision';
|
|
31
|
-
exports.DECISION_EDITED_FPS_EVENT = DECISION_EDITED_FPS_EVENT;
|
|
32
|
-
var DECISION_DELETED_FPS_EVENT = 'avi:task-decision-service:deleted:decision';
|
|
33
|
-
exports.DECISION_DELETED_FPS_EVENT = DECISION_DELETED_FPS_EVENT;
|
|
34
|
-
var DECISION_ARCHIVED_FPS_EVENT = 'avi:task-decision-service:archived:decision';
|
|
35
|
-
exports.DECISION_ARCHIVED_FPS_EVENT = DECISION_ARCHIVED_FPS_EVENT;
|
|
36
|
-
var DECISION_STATE_CHANGED_FPS_EVENT = 'avi:task-decision-service:stateChanged:decision';
|
|
37
|
-
exports.DECISION_STATE_CHANGED_FPS_EVENT = DECISION_STATE_CHANGED_FPS_EVENT;
|
|
38
|
-
var ACTION_DECISION_FPS_EVENTS = 'avi:task-decision-service:*:*';
|
|
39
|
-
exports.ACTION_DECISION_FPS_EVENTS = ACTION_DECISION_FPS_EVENTS;
|
|
40
|
-
var RecentUpdates = /*#__PURE__*/function () {
|
|
18
|
+
var ACTION_CREATED_FPS_EVENT = exports.ACTION_CREATED_FPS_EVENT = 'avi:task-decision-service:created:action';
|
|
19
|
+
var ACTION_EDITED_FPS_EVENT = exports.ACTION_EDITED_FPS_EVENT = 'avi:task-decision-service:edited:action';
|
|
20
|
+
var ACTION_DELETED_FPS_EVENT = exports.ACTION_DELETED_FPS_EVENT = 'avi:task-decision-service:deleted:action';
|
|
21
|
+
var ACTION_ARCHIVED_FPS_EVENT = exports.ACTION_ARCHIVED_FPS_EVENT = 'avi:task-decision-service:archived:action';
|
|
22
|
+
var ACTION_STATE_CHANGED_FPS_EVENT = exports.ACTION_STATE_CHANGED_FPS_EVENT = 'avi:task-decision-service:stateChanged:action';
|
|
23
|
+
var DECISION_CREATED_FPS_EVENT = exports.DECISION_CREATED_FPS_EVENT = 'avi:task-decision-service:created:decision';
|
|
24
|
+
var DECISION_EDITED_FPS_EVENT = exports.DECISION_EDITED_FPS_EVENT = 'avi:task-decision-service:edited:decision';
|
|
25
|
+
var DECISION_DELETED_FPS_EVENT = exports.DECISION_DELETED_FPS_EVENT = 'avi:task-decision-service:deleted:decision';
|
|
26
|
+
var DECISION_ARCHIVED_FPS_EVENT = exports.DECISION_ARCHIVED_FPS_EVENT = 'avi:task-decision-service:archived:decision';
|
|
27
|
+
var DECISION_STATE_CHANGED_FPS_EVENT = exports.DECISION_STATE_CHANGED_FPS_EVENT = 'avi:task-decision-service:stateChanged:decision';
|
|
28
|
+
var ACTION_DECISION_FPS_EVENTS = exports.ACTION_DECISION_FPS_EVENTS = 'avi:task-decision-service:*:*';
|
|
29
|
+
var RecentUpdates = exports.RecentUpdates = /*#__PURE__*/function () {
|
|
41
30
|
function RecentUpdates(pubSubClient) {
|
|
42
31
|
var _this = this;
|
|
43
32
|
(0, _classCallCheck2.default)(this, RecentUpdates);
|
|
@@ -122,8 +111,7 @@ var RecentUpdates = /*#__PURE__*/function () {
|
|
|
122
111
|
}]);
|
|
123
112
|
return RecentUpdates;
|
|
124
113
|
}();
|
|
125
|
-
exports.
|
|
126
|
-
var ItemStateManager = /*#__PURE__*/function () {
|
|
114
|
+
var ItemStateManager = exports.ItemStateManager = /*#__PURE__*/function () {
|
|
127
115
|
function ItemStateManager(serviceConfig) {
|
|
128
116
|
var _this3 = this;
|
|
129
117
|
(0, _classCallCheck2.default)(this, ItemStateManager);
|
|
@@ -371,8 +359,7 @@ var ItemStateManager = /*#__PURE__*/function () {
|
|
|
371
359
|
}]);
|
|
372
360
|
return ItemStateManager;
|
|
373
361
|
}();
|
|
374
|
-
exports.
|
|
375
|
-
var TaskDecisionResource = /*#__PURE__*/function () {
|
|
362
|
+
var TaskDecisionResource = exports.default = /*#__PURE__*/function () {
|
|
376
363
|
function TaskDecisionResource(serviceConfig) {
|
|
377
364
|
(0, _classCallCheck2.default)(this, TaskDecisionResource);
|
|
378
365
|
this.recentUpdates = new RecentUpdates(serviceConfig.pubSubClient);
|
|
@@ -417,5 +404,4 @@ var TaskDecisionResource = /*#__PURE__*/function () {
|
|
|
417
404
|
}
|
|
418
405
|
}]);
|
|
419
406
|
return TaskDecisionResource;
|
|
420
|
-
}();
|
|
421
|
-
exports.default = TaskDecisionResource;
|
|
407
|
+
}();
|
|
@@ -11,7 +11,7 @@ var _excluded = ["creationDate", "lastUpdateDate", "creatorId", "lastUpdaterId"]
|
|
|
11
11
|
_excluded2 = ["lastUpdateDate"];
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
-
var convertServiceTaskToTask = function convertServiceTaskToTask(serviceTask) {
|
|
14
|
+
var convertServiceTaskToTask = exports.convertServiceTaskToTask = function convertServiceTaskToTask(serviceTask) {
|
|
15
15
|
var creationDate = serviceTask.creationDate,
|
|
16
16
|
lastUpdateDate = serviceTask.lastUpdateDate,
|
|
17
17
|
creatorId = serviceTask.creatorId,
|
|
@@ -24,8 +24,7 @@ var convertServiceTaskToTask = function convertServiceTaskToTask(serviceTask) {
|
|
|
24
24
|
lastUpdater: lastUpdaterId
|
|
25
25
|
}, other);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
var convertServiceTaskStateToBaseItem = function convertServiceTaskStateToBaseItem(serviceTaskInfo) {
|
|
27
|
+
var convertServiceTaskStateToBaseItem = exports.convertServiceTaskStateToBaseItem = function convertServiceTaskStateToBaseItem(serviceTaskInfo) {
|
|
29
28
|
var lastUpdateDate = serviceTaskInfo.lastUpdateDate,
|
|
30
29
|
other = (0, _objectWithoutProperties2.default)(serviceTaskInfo, _excluded2);
|
|
31
30
|
return _objectSpread({
|
|
@@ -33,8 +32,7 @@ var convertServiceTaskStateToBaseItem = function convertServiceTaskStateToBaseIt
|
|
|
33
32
|
lastUpdateDate: new Date(lastUpdateDate)
|
|
34
33
|
}, other);
|
|
35
34
|
};
|
|
36
|
-
exports.
|
|
37
|
-
var findIndex = function findIndex(array, predicate) {
|
|
35
|
+
var findIndex = exports.findIndex = function findIndex(array, predicate) {
|
|
38
36
|
var index = -1;
|
|
39
37
|
array.some(function (item, i) {
|
|
40
38
|
if (predicate(item)) {
|
|
@@ -44,5 +42,4 @@ var findIndex = function findIndex(array, predicate) {
|
|
|
44
42
|
return false;
|
|
45
43
|
});
|
|
46
44
|
return index;
|
|
47
|
-
};
|
|
48
|
-
exports.findIndex = findIndex;
|
|
45
|
+
};
|
|
@@ -18,7 +18,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
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); }; }
|
|
20
20
|
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
|
-
var DecisionList = /*#__PURE__*/function (_PureComponent) {
|
|
21
|
+
var DecisionList = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
22
22
|
(0, _inherits2.default)(DecisionList, _PureComponent);
|
|
23
23
|
var _super = _createSuper(DecisionList);
|
|
24
24
|
function DecisionList() {
|
|
@@ -55,5 +55,4 @@ var DecisionList = /*#__PURE__*/function (_PureComponent) {
|
|
|
55
55
|
}
|
|
56
56
|
}]);
|
|
57
57
|
return DecisionList;
|
|
58
|
-
}(_react.PureComponent);
|
|
59
|
-
exports.default = DecisionList;
|
|
58
|
+
}(_react.PureComponent);
|
|
@@ -18,7 +18,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
18
18
|
var _styles = require("./styles");
|
|
19
19
|
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); }; }
|
|
20
20
|
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
|
|
21
|
-
var Item = /*#__PURE__*/function (_PureComponent) {
|
|
21
|
+
var Item = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
22
22
|
(0, _inherits2.default)(Item, _PureComponent);
|
|
23
23
|
var _super = _createSuper(Item);
|
|
24
24
|
function Item() {
|
|
@@ -86,7 +86,6 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
86
86
|
}]);
|
|
87
87
|
return Item;
|
|
88
88
|
}(_react.PureComponent);
|
|
89
|
-
exports.default = Item;
|
|
90
89
|
(0, _defineProperty2.default)(Item, "defaultProps", {
|
|
91
90
|
appearance: 'inline'
|
|
92
91
|
});
|
|
@@ -22,7 +22,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
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); }; }
|
|
24
24
|
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; } }
|
|
25
|
-
var ResourcedTaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
25
|
+
var ResourcedTaskItem = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
26
26
|
(0, _inherits2.default)(ResourcedTaskItem, _PureComponent);
|
|
27
27
|
var _super = _createSuper(ResourcedTaskItem);
|
|
28
28
|
function ResourcedTaskItem(props) {
|
|
@@ -179,7 +179,6 @@ var ResourcedTaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
179
179
|
}]);
|
|
180
180
|
return ResourcedTaskItem;
|
|
181
181
|
}(_react.PureComponent);
|
|
182
|
-
exports.default = ResourcedTaskItem;
|
|
183
182
|
(0, _defineProperty2.default)(ResourcedTaskItem, "defaultProps", {
|
|
184
183
|
appearance: 'inline'
|
|
185
184
|
});
|
|
@@ -87,11 +87,11 @@ var TaskItem = function TaskItem(props) {
|
|
|
87
87
|
_react.default.useEffect(function () {
|
|
88
88
|
if (isFocused && inputRef.current) {
|
|
89
89
|
var _inputRef$current, _inputRef$current2;
|
|
90
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0
|
|
91
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0
|
|
90
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
91
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.blur();
|
|
92
92
|
setTimeout(function () {
|
|
93
93
|
var _inputRef$current3;
|
|
94
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0
|
|
94
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.focus();
|
|
95
95
|
}, 100);
|
|
96
96
|
}
|
|
97
97
|
}, [isFocused]);
|
|
@@ -110,5 +110,4 @@ var TaskItem = function TaskItem(props) {
|
|
|
110
110
|
|
|
111
111
|
// This is to ensure that the "type" is exported, as it gets lost and not exported along with TaskItem after
|
|
112
112
|
// going through the high order component.
|
|
113
|
-
var _default = (0, _analyticsNext.withAnalyticsEvents)()(TaskItem);
|
|
114
|
-
exports.default = _default;
|
|
113
|
+
var _default = exports.default = (0, _analyticsNext.withAnalyticsEvents)()(TaskItem);
|
|
@@ -19,7 +19,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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
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 */
|
|
22
|
-
var TaskList = /*#__PURE__*/function (_PureComponent) {
|
|
22
|
+
var TaskList = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
23
23
|
(0, _inherits2.default)(TaskList, _PureComponent);
|
|
24
24
|
var _super = _createSuper(TaskList);
|
|
25
25
|
function TaskList() {
|
|
@@ -63,5 +63,4 @@ var TaskList = /*#__PURE__*/function (_PureComponent) {
|
|
|
63
63
|
}
|
|
64
64
|
}]);
|
|
65
65
|
return TaskList;
|
|
66
|
-
}(_react.PureComponent);
|
|
67
|
-
exports.default = TaskList;
|
|
66
|
+
}(_react.PureComponent);
|
|
@@ -16,15 +16,11 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
16
16
|
Increasing specificity with double ampersand to ensure these rules take
|
|
17
17
|
priority over the global styles applied to 'ol' elements.
|
|
18
18
|
*/
|
|
19
|
-
var listStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n && {\n list-style-type: none;\n padding-left: 0;\n }\n"])));
|
|
20
|
-
exports.
|
|
21
|
-
var
|
|
22
|
-
exports.
|
|
23
|
-
var
|
|
24
|
-
exports.contentStyles = contentStyles;
|
|
25
|
-
var taskStyles = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n position: relative;\n"])));
|
|
26
|
-
exports.taskStyles = taskStyles;
|
|
27
|
-
var decisionStyles = function decisionStyles(theme) {
|
|
19
|
+
var listStyles = exports.listStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n && {\n list-style-type: none;\n padding-left: 0;\n }\n"])));
|
|
20
|
+
var taskListStyles = exports.taskListStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n div + div {\n margin-top: ", ";\n }\n"])), "var(--ds-space-050, 4px)");
|
|
21
|
+
var contentStyles = exports.contentStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0;\n word-wrap: break-word;\n min-width: 0;\n flex: 1 1 auto;\n"])));
|
|
22
|
+
var taskStyles = exports.taskStyles = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n position: relative;\n"])));
|
|
23
|
+
var decisionStyles = exports.decisionStyles = function decisionStyles(theme) {
|
|
28
24
|
return (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n margin: ", " 0 0 0;\n padding: ", ";\n padding-left: ", ";\n border-radius: ", ";\n background-color: ", ";\n position: relative;\n\n .decision-item {\n cursor: initial;\n }\n "])), "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-150, 12px)", "var(--ds-border-radius-100, 3px)", (0, _components.themed)({
|
|
29
25
|
light: "var(--ds-background-neutral, ".concat(_colors.N20A, ")"),
|
|
30
26
|
dark: "var(--ds-background-neutral, ".concat(_colors.DN50, ")")
|
|
@@ -32,8 +28,7 @@ var decisionStyles = function decisionStyles(theme) {
|
|
|
32
28
|
theme: theme
|
|
33
29
|
}));
|
|
34
30
|
};
|
|
35
|
-
exports.
|
|
36
|
-
var placeholderStyles = function placeholderStyles(offset) {
|
|
31
|
+
var placeholderStyles = exports.placeholderStyles = function placeholderStyles(offset) {
|
|
37
32
|
return (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0 0 0 ", "px;\n position: absolute;\n color: ", ";\n pointer-events: none;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n max-width: calc(100% - 50px);\n "])), offset, "var(--ds-text-subtlest, ".concat(_colors.N200, ")"));
|
|
38
33
|
};
|
|
39
34
|
|
|
@@ -42,8 +37,7 @@ var placeholderStyles = function placeholderStyles(offset) {
|
|
|
42
37
|
* To be used until mobile editor does not require legacy themed() API anymore,
|
|
43
38
|
* which will allow migration to use @atlaskit/checkbox instead
|
|
44
39
|
*/
|
|
45
|
-
exports.
|
|
46
|
-
var checkboxStyles = function checkboxStyles(isRenderer) {
|
|
40
|
+
var checkboxStyles = exports.checkboxStyles = function checkboxStyles(isRenderer) {
|
|
47
41
|
return function (theme) {
|
|
48
42
|
return (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 24px;\n width: 24px;\n height: 24px;\n position: relative;\n align-self: start;\n\n & > input[type='checkbox'] {\n width: 16px;\n height: 16px;\n z-index: 1;\n cursor: pointer;\n outline: none;\n margin: 0;\n opacity: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n &[disabled] {\n cursor: default;\n }\n\n + span {\n width: 24px;\n height: 24px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n + span > svg {\n box-sizing: border-box;\n display: inline;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n max-width: unset;\n max-height: unset;\n position: absolute;\n overflow: hidden;\n color: ", ";\n transition: color 0.2s ease-in-out, fill 0.2s ease-in-out;\n path:first-of-type {\n visibility: hidden;\n }\n rect:first-of-type {\n stroke: ", ";\n stroke-width: ", ";\n transition: stroke 0.2s ease-in-out;\n }\n }\n\n &&:focus + span > svg,\n &&:checked:focus + span > svg {\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:hover + span > svg {\n color: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:checked:hover + span > svg {\n color: ", ";\n fill: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:checked {\n + span > svg {\n path:first-of-type {\n visibility: visible;\n }\n color: ", ";\n fill: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n }\n\n &:active + span > svg {\n color: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:checked:active + span > svg {\n color: ", ";\n fill: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:disabled + span > svg,\n &:disabled:hover + span > svg,\n &:disabled:focus + span > svg,\n &:disabled:active + span > svg {\n color: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:disabled:checked + span > svg {\n fill: ", ";\n }\n\n &:focus + span > svg rect:first-of-type {\n stroke: ", ";\n }\n &:checked:focus + span {\n & > svg {\n rect:first-of-type {\n stroke: ", ";\n }\n }\n }\n\n ", "\n }\n "])), (0, _components.themed)({
|
|
49
43
|
light: _theme.default.light.boxColor.rest,
|
|
@@ -162,5 +156,4 @@ var checkboxStyles = function checkboxStyles(isRenderer) {
|
|
|
162
156
|
theme: theme
|
|
163
157
|
})));
|
|
164
158
|
};
|
|
165
|
-
};
|
|
166
|
-
exports.checkboxStyles = checkboxStyles;
|
|
159
|
+
};
|
package/dist/cjs/constants.js
CHANGED
package/dist/cjs/type-helpers.js
CHANGED
|
@@ -4,15 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.toggleTaskState = exports.toObjectKey = exports.objectKeyToString = exports.isTask = exports.isDecision = void 0;
|
|
7
|
-
var isDecision = function isDecision(item) {
|
|
7
|
+
var isDecision = exports.isDecision = function isDecision(item) {
|
|
8
8
|
return !!(item && item.type === 'DECISION');
|
|
9
9
|
};
|
|
10
|
-
exports.
|
|
11
|
-
var isTask = function isTask(item) {
|
|
10
|
+
var isTask = exports.isTask = function isTask(item) {
|
|
12
11
|
return !!(item && item.type === 'TASK');
|
|
13
12
|
};
|
|
14
|
-
exports.
|
|
15
|
-
var toObjectKey = function toObjectKey(item) {
|
|
13
|
+
var toObjectKey = exports.toObjectKey = function toObjectKey(item) {
|
|
16
14
|
var localId = item.localId,
|
|
17
15
|
objectAri = item.objectAri;
|
|
18
16
|
return {
|
|
@@ -20,14 +18,11 @@ var toObjectKey = function toObjectKey(item) {
|
|
|
20
18
|
objectAri: objectAri
|
|
21
19
|
};
|
|
22
20
|
};
|
|
23
|
-
exports.
|
|
24
|
-
var objectKeyToString = function objectKeyToString(objectKey) {
|
|
21
|
+
var objectKeyToString = exports.objectKeyToString = function objectKeyToString(objectKey) {
|
|
25
22
|
var objectAri = objectKey.objectAri,
|
|
26
23
|
localId = objectKey.localId;
|
|
27
24
|
return "".concat(objectAri, ":").concat(localId);
|
|
28
25
|
};
|
|
29
|
-
exports.
|
|
30
|
-
var toggleTaskState = function toggleTaskState(state) {
|
|
26
|
+
var toggleTaskState = exports.toggleTaskState = function toggleTaskState(state) {
|
|
31
27
|
return state === 'DONE' ? 'TODO' : 'DONE';
|
|
32
|
-
};
|
|
33
|
-
exports.toggleTaskState = toggleTaskState;
|
|
28
|
+
};
|
package/dist/cjs/types.js
CHANGED
|
@@ -14,10 +14,9 @@ exports.PubSubSpecialEventType = void 0;
|
|
|
14
14
|
/**
|
|
15
15
|
* Same as PubSub client types (don't want a direct dep though)
|
|
16
16
|
*/
|
|
17
|
-
var PubSubSpecialEventType = /*#__PURE__*/function (PubSubSpecialEventType) {
|
|
17
|
+
var PubSubSpecialEventType = exports.PubSubSpecialEventType = /*#__PURE__*/function (PubSubSpecialEventType) {
|
|
18
18
|
PubSubSpecialEventType["ERROR"] = "ERROR";
|
|
19
19
|
PubSubSpecialEventType["CONNECTED"] = "CONNECTED";
|
|
20
20
|
PubSubSpecialEventType["RECONNECT"] = "RECONNECT";
|
|
21
21
|
return PubSubSpecialEventType;
|
|
22
|
-
}({});
|
|
23
|
-
exports.PubSubSpecialEventType = PubSubSpecialEventType;
|
|
22
|
+
}({});
|
|
@@ -76,11 +76,11 @@ var TaskItem = function TaskItem(props) {
|
|
|
76
76
|
React.useEffect(function () {
|
|
77
77
|
if (isFocused && inputRef.current) {
|
|
78
78
|
var _inputRef$current, _inputRef$current2;
|
|
79
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0
|
|
80
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0
|
|
79
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
80
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.blur();
|
|
81
81
|
setTimeout(function () {
|
|
82
82
|
var _inputRef$current3;
|
|
83
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0
|
|
83
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.focus();
|
|
84
84
|
}, 100);
|
|
85
85
|
}
|
|
86
86
|
}, [isFocused]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/task-decision",
|
|
3
|
-
"version": "17.9.
|
|
3
|
+
"version": "17.9.4",
|
|
4
4
|
"description": "Tasks and decisions react components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
39
|
-
"@atlaskit/icon": "^
|
|
39
|
+
"@atlaskit/icon": "^22.0.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.2.2",
|
|
41
41
|
"@atlaskit/theme": "^12.6.0",
|
|
42
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/tokens": "^1.29.0",
|
|
43
43
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
55
55
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
56
|
+
"@atlaskit/ssr": "*",
|
|
56
57
|
"@atlaskit/util-data-test": "^17.8.0",
|
|
57
58
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
58
59
|
"@emotion/jest": "^11.8.0",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,434 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/task-decision"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { jsx } from '@emotion/react';
|
|
10
|
-
import { PureComponent } from 'react';
|
|
11
|
-
import { default as React_2 } from 'react';
|
|
12
|
-
import { ReactNode } from 'react';
|
|
13
|
-
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
14
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
15
|
-
|
|
16
|
-
// @public (undocumented)
|
|
17
|
-
export type Appearance = 'inline';
|
|
18
|
-
|
|
19
|
-
// @public
|
|
20
|
-
export type ARI = string;
|
|
21
|
-
|
|
22
|
-
// @public (undocumented)
|
|
23
|
-
export type AVI = string;
|
|
24
|
-
|
|
25
|
-
// @public (undocumented)
|
|
26
|
-
export interface BaseItem<S> extends ObjectKey {
|
|
27
|
-
// (undocumented)
|
|
28
|
-
lastUpdateDate: Date;
|
|
29
|
-
// (undocumented)
|
|
30
|
-
state: S;
|
|
31
|
-
// (undocumented)
|
|
32
|
-
type: DecisionType | TaskType;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// @public (undocumented)
|
|
36
|
-
export interface ContentRef {
|
|
37
|
-
// (undocumented)
|
|
38
|
-
(ref: HTMLElement | null): void;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// @public (undocumented)
|
|
42
|
-
export type Cursor = string;
|
|
43
|
-
|
|
44
|
-
// @public (undocumented)
|
|
45
|
-
export interface Decision extends BaseItem<DecisionState> {
|
|
46
|
-
// (undocumented)
|
|
47
|
-
creationDate?: Date;
|
|
48
|
-
// (undocumented)
|
|
49
|
-
creator?: UserId;
|
|
50
|
-
// (undocumented)
|
|
51
|
-
lastUpdateDate: Date;
|
|
52
|
-
// (undocumented)
|
|
53
|
-
lastUpdater?: UserId;
|
|
54
|
-
// (undocumented)
|
|
55
|
-
participants?: UserId[];
|
|
56
|
-
// (undocumented)
|
|
57
|
-
status: DecisionStatus;
|
|
58
|
-
// (undocumented)
|
|
59
|
-
type: DecisionType;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// @public (undocumented)
|
|
63
|
-
export const DecisionItem: ({ appearance, children, contentRef, placeholder, showPlaceholder, dataAttributes, }: Props) => jsx.JSX.Element;
|
|
64
|
-
|
|
65
|
-
// @public (undocumented)
|
|
66
|
-
export class DecisionList extends PureComponent<Props_2, {}> {
|
|
67
|
-
// (undocumented)
|
|
68
|
-
render(): jsx.JSX.Element | null;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// @public (undocumented)
|
|
72
|
-
export type DecisionState = 'DECIDED';
|
|
73
|
-
|
|
74
|
-
// @public (undocumented)
|
|
75
|
-
export type DecisionStatus = 'CREATED';
|
|
76
|
-
|
|
77
|
-
// @public (undocumented)
|
|
78
|
-
export type DecisionType = 'DECISION';
|
|
79
|
-
|
|
80
|
-
// @public (undocumented)
|
|
81
|
-
export type Handler = (state: DecisionState | TaskState) => void;
|
|
82
|
-
|
|
83
|
-
// @public (undocumented)
|
|
84
|
-
export type Item = Decision | Task;
|
|
85
|
-
|
|
86
|
-
// @public (undocumented)
|
|
87
|
-
export interface Meta {
|
|
88
|
-
// (undocumented)
|
|
89
|
-
cursor?: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// @public (undocumented)
|
|
93
|
-
export interface ObjectKey {
|
|
94
|
-
// (undocumented)
|
|
95
|
-
containerAri?: string;
|
|
96
|
-
// (undocumented)
|
|
97
|
-
localId: string;
|
|
98
|
-
// (undocumented)
|
|
99
|
-
objectAri: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// @public (undocumented)
|
|
103
|
-
export interface OnUpdate<T> {
|
|
104
|
-
// (undocumented)
|
|
105
|
-
(allDecisions: T[], newDecisions: T[]): void;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// @public (undocumented)
|
|
109
|
-
interface Props {
|
|
110
|
-
// (undocumented)
|
|
111
|
-
appearance?: Appearance;
|
|
112
|
-
// (undocumented)
|
|
113
|
-
children?: any;
|
|
114
|
-
// (undocumented)
|
|
115
|
-
contentRef?: ContentRef;
|
|
116
|
-
// (undocumented)
|
|
117
|
-
dataAttributes?: {
|
|
118
|
-
[key: string]: number | string;
|
|
119
|
-
};
|
|
120
|
-
// (undocumented)
|
|
121
|
-
placeholder?: string;
|
|
122
|
-
// (undocumented)
|
|
123
|
-
showPlaceholder?: boolean;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// @public (undocumented)
|
|
127
|
-
interface Props_2 {
|
|
128
|
-
// (undocumented)
|
|
129
|
-
children?: ReactNode;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// @public (undocumented)
|
|
133
|
-
interface Props_3 {
|
|
134
|
-
// (undocumented)
|
|
135
|
-
appearance?: Appearance;
|
|
136
|
-
// (undocumented)
|
|
137
|
-
children?: any;
|
|
138
|
-
// (undocumented)
|
|
139
|
-
contentRef?: ContentRef;
|
|
140
|
-
// (undocumented)
|
|
141
|
-
dataAttributes?: {
|
|
142
|
-
[key: string]: number | string;
|
|
143
|
-
};
|
|
144
|
-
// (undocumented)
|
|
145
|
-
disabled?: boolean;
|
|
146
|
-
// (undocumented)
|
|
147
|
-
isDone?: boolean;
|
|
148
|
-
// (undocumented)
|
|
149
|
-
isFocused?: boolean;
|
|
150
|
-
// (undocumented)
|
|
151
|
-
isRenderer?: boolean;
|
|
152
|
-
// (undocumented)
|
|
153
|
-
objectAri?: string;
|
|
154
|
-
// (undocumented)
|
|
155
|
-
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
156
|
-
// (undocumented)
|
|
157
|
-
placeholder?: string;
|
|
158
|
-
// (undocumented)
|
|
159
|
-
showPlaceholder?: boolean;
|
|
160
|
-
// (undocumented)
|
|
161
|
-
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
162
|
-
// (undocumented)
|
|
163
|
-
taskId: string;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// @public (undocumented)
|
|
167
|
-
interface Props_4 {
|
|
168
|
-
// (undocumented)
|
|
169
|
-
appearance?: Appearance;
|
|
170
|
-
// (undocumented)
|
|
171
|
-
children?: any;
|
|
172
|
-
// (undocumented)
|
|
173
|
-
contentRef?: ContentRef;
|
|
174
|
-
// (undocumented)
|
|
175
|
-
dataAttributes?: {
|
|
176
|
-
[key: string]: number | string;
|
|
177
|
-
};
|
|
178
|
-
// (undocumented)
|
|
179
|
-
disabled?: boolean;
|
|
180
|
-
// (undocumented)
|
|
181
|
-
isDone?: boolean;
|
|
182
|
-
// (undocumented)
|
|
183
|
-
isFocused?: boolean;
|
|
184
|
-
// (undocumented)
|
|
185
|
-
isRenderer?: boolean;
|
|
186
|
-
// (undocumented)
|
|
187
|
-
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
188
|
-
// (undocumented)
|
|
189
|
-
placeholder?: string;
|
|
190
|
-
// (undocumented)
|
|
191
|
-
showPlaceholder?: boolean;
|
|
192
|
-
// (undocumented)
|
|
193
|
-
taskId: string;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// @public (undocumented)
|
|
197
|
-
interface Props_5 {
|
|
198
|
-
// (undocumented)
|
|
199
|
-
children?: ReactNode;
|
|
200
|
-
// (undocumented)
|
|
201
|
-
listId?: string;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// @public (undocumented)
|
|
205
|
-
export interface PubSubClient {
|
|
206
|
-
// (undocumented)
|
|
207
|
-
join(aris: ARI[]): Promise<PubSubClient>;
|
|
208
|
-
// (undocumented)
|
|
209
|
-
leave(aris: ARI[]): Promise<PubSubClient>;
|
|
210
|
-
// (undocumented)
|
|
211
|
-
off(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
212
|
-
// (undocumented)
|
|
213
|
-
on(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// @public (undocumented)
|
|
217
|
-
export interface PubSubOnEvent<T = any> {
|
|
218
|
-
// (undocumented)
|
|
219
|
-
(event: string, data: T): void;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// @public (undocumented)
|
|
223
|
-
export enum PubSubSpecialEventType {
|
|
224
|
-
// (undocumented)
|
|
225
|
-
CONNECTED = "CONNECTED",
|
|
226
|
-
// (undocumented)
|
|
227
|
-
ERROR = "ERROR",
|
|
228
|
-
// (undocumented)
|
|
229
|
-
RECONNECT = "RECONNECT"
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
// @public (undocumented)
|
|
233
|
-
export interface RecentUpdateContext {
|
|
234
|
-
// (undocumented)
|
|
235
|
-
localId?: string;
|
|
236
|
-
// (undocumented)
|
|
237
|
-
objectAri: string;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// @public (undocumented)
|
|
241
|
-
export type RecentUpdatesId = string;
|
|
242
|
-
|
|
243
|
-
// @public
|
|
244
|
-
export interface RecentUpdatesListener {
|
|
245
|
-
id(id: RecentUpdatesId): void;
|
|
246
|
-
recentUpdates(updateContext: RecentUpdateContext): void;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// @public (undocumented)
|
|
250
|
-
export interface RenderDocument {
|
|
251
|
-
// (undocumented)
|
|
252
|
-
(document: any, rendererContext?: RendererContext): JSX.Element;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// @public
|
|
256
|
-
export interface RendererContext {
|
|
257
|
-
// (undocumented)
|
|
258
|
-
containerAri?: string;
|
|
259
|
-
// (undocumented)
|
|
260
|
-
objectAri: string;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// @public (undocumented)
|
|
264
|
-
export class ResourcedTaskItem extends PureComponent<Props_3, State> {
|
|
265
|
-
constructor(props: Props_3);
|
|
266
|
-
// (undocumented)
|
|
267
|
-
componentDidMount(): void;
|
|
268
|
-
// (undocumented)
|
|
269
|
-
componentWillUnmount(): void;
|
|
270
|
-
// (undocumented)
|
|
271
|
-
static defaultProps: Partial<Props_3>;
|
|
272
|
-
// (undocumented)
|
|
273
|
-
render(): JSX.Element;
|
|
274
|
-
// (undocumented)
|
|
275
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props_3): void;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// @public (undocumented)
|
|
279
|
-
export interface ServiceDecision {
|
|
280
|
-
// (undocumented)
|
|
281
|
-
creationDate?: string;
|
|
282
|
-
// (undocumented)
|
|
283
|
-
creatorId?: UserId;
|
|
284
|
-
// (undocumented)
|
|
285
|
-
lastUpdateDate: string;
|
|
286
|
-
// (undocumented)
|
|
287
|
-
lastUpdaterId?: UserId;
|
|
288
|
-
// (undocumented)
|
|
289
|
-
localId: string;
|
|
290
|
-
// (undocumented)
|
|
291
|
-
objectAri: string;
|
|
292
|
-
// (undocumented)
|
|
293
|
-
participants?: UserId[];
|
|
294
|
-
// (undocumented)
|
|
295
|
-
state?: DecisionState;
|
|
296
|
-
// (undocumented)
|
|
297
|
-
status: DecisionStatus;
|
|
298
|
-
// (undocumented)
|
|
299
|
-
type: DecisionType;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
// @public (undocumented)
|
|
303
|
-
export interface ServiceDecisionResponse {
|
|
304
|
-
// (undocumented)
|
|
305
|
-
decisions: ServiceDecision[];
|
|
306
|
-
// (undocumented)
|
|
307
|
-
meta: Meta;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
// @public (undocumented)
|
|
311
|
-
export type ServiceItem = ServiceDecision | ServiceTask;
|
|
312
|
-
|
|
313
|
-
// @public (undocumented)
|
|
314
|
-
export interface ServiceTask {
|
|
315
|
-
// (undocumented)
|
|
316
|
-
creationDate?: string;
|
|
317
|
-
// (undocumented)
|
|
318
|
-
creatorId?: UserId;
|
|
319
|
-
// (undocumented)
|
|
320
|
-
lastUpdateDate: string;
|
|
321
|
-
// (undocumented)
|
|
322
|
-
lastUpdaterId?: UserId;
|
|
323
|
-
// (undocumented)
|
|
324
|
-
localId: string;
|
|
325
|
-
// (undocumented)
|
|
326
|
-
objectAri: string;
|
|
327
|
-
// (undocumented)
|
|
328
|
-
parentLocalId?: string;
|
|
329
|
-
// (undocumented)
|
|
330
|
-
participants?: UserId[];
|
|
331
|
-
// (undocumented)
|
|
332
|
-
position: number;
|
|
333
|
-
// (undocumented)
|
|
334
|
-
state: TaskState;
|
|
335
|
-
// (undocumented)
|
|
336
|
-
type: TaskType;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
// @public (undocumented)
|
|
340
|
-
export interface ServiceTaskState {
|
|
341
|
-
// (undocumented)
|
|
342
|
-
lastUpdateDate: string;
|
|
343
|
-
// (undocumented)
|
|
344
|
-
localId: string;
|
|
345
|
-
// (undocumented)
|
|
346
|
-
objectAri: string;
|
|
347
|
-
// (undocumented)
|
|
348
|
-
state: TaskState;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// @public (undocumented)
|
|
352
|
-
interface State {
|
|
353
|
-
// (undocumented)
|
|
354
|
-
isDone?: boolean;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
// @public (undocumented)
|
|
358
|
-
export interface Task extends BaseItem<TaskState> {
|
|
359
|
-
// (undocumented)
|
|
360
|
-
creationDate?: Date;
|
|
361
|
-
// (undocumented)
|
|
362
|
-
creator?: UserId;
|
|
363
|
-
// (undocumented)
|
|
364
|
-
lastUpdateDate: Date;
|
|
365
|
-
// (undocumented)
|
|
366
|
-
lastUpdater?: UserId;
|
|
367
|
-
// (undocumented)
|
|
368
|
-
parentLocalId?: string;
|
|
369
|
-
// (undocumented)
|
|
370
|
-
participants?: UserId[];
|
|
371
|
-
// (undocumented)
|
|
372
|
-
position?: number;
|
|
373
|
-
// (undocumented)
|
|
374
|
-
type: TaskType;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
// @public (undocumented)
|
|
378
|
-
export interface TaskDecisionProvider {
|
|
379
|
-
// (undocumented)
|
|
380
|
-
notifyRecentUpdates(updateContext: RecentUpdateContext): void;
|
|
381
|
-
// (undocumented)
|
|
382
|
-
subscribe(objectKey: ObjectKey, handler: Handler, item?: BaseItem<DecisionState | TaskState>): void;
|
|
383
|
-
// (undocumented)
|
|
384
|
-
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
385
|
-
// (undocumented)
|
|
386
|
-
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
387
|
-
// (undocumented)
|
|
388
|
-
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
// @public (undocumented)
|
|
392
|
-
export class TaskDecisionResource implements TaskDecisionProvider {
|
|
393
|
-
constructor(serviceConfig: TaskDecisionResourceConfig);
|
|
394
|
-
destroy(): void;
|
|
395
|
-
// (undocumented)
|
|
396
|
-
notifyRecentUpdates(recentUpdateContext: RecentUpdateContext): void;
|
|
397
|
-
// (undocumented)
|
|
398
|
-
subscribe(objectKey: ObjectKey, handler: Handler, item?: BaseItem<DecisionState | TaskState>): void;
|
|
399
|
-
// (undocumented)
|
|
400
|
-
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
401
|
-
// (undocumented)
|
|
402
|
-
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
403
|
-
// (undocumented)
|
|
404
|
-
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
// @public (undocumented)
|
|
408
|
-
export interface TaskDecisionResourceConfig extends ServiceConfig {
|
|
409
|
-
disableServiceHydration?: boolean;
|
|
410
|
-
// (undocumented)
|
|
411
|
-
pubSubClient?: PubSubClient;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
// @public (undocumented)
|
|
415
|
-
export const TaskItem: React_2.ForwardRefExoticComponent<Omit<Props_4 & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any>>;
|
|
416
|
-
|
|
417
|
-
// @public (undocumented)
|
|
418
|
-
export class TaskList extends PureComponent<Props_5, {}> {
|
|
419
|
-
// (undocumented)
|
|
420
|
-
render(): jsx.JSX.Element | null;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
// @public (undocumented)
|
|
424
|
-
export type TaskState = 'DONE' | 'TODO';
|
|
425
|
-
|
|
426
|
-
// @public (undocumented)
|
|
427
|
-
export type TaskType = 'TASK';
|
|
428
|
-
|
|
429
|
-
// @public (undocumented)
|
|
430
|
-
export type UserId = string;
|
|
431
|
-
|
|
432
|
-
// (No @packageDocumentation comment for this package)
|
|
433
|
-
|
|
434
|
-
```
|