@atlaskit/util-service-support 6.2.5 → 6.2.6
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 +119 -50
- package/afm-cc/tsconfig.json +9 -3
- package/afm-jira/tsconfig.json +27 -0
- package/afm-post-office/tsconfig.json +27 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/serviceResources.js +1 -2
- package/dist/cjs/serviceUtils.js +18 -3
- package/dist/es2019/serviceUtils.js +19 -1
- package/dist/esm/serviceResources.js +1 -2
- package/dist/esm/serviceUtils.js +20 -4
- package/dist/types/serviceResources.d.ts +1 -1
- package/dist/types/serviceUtils.d.ts +1 -1
- package/dist/types-ts4.5/serviceResources.d.ts +1 -1
- package/dist/types-ts4.5/serviceUtils.d.ts +1 -1
- package/docs/0-intro.tsx +12 -11
- package/package.json +61 -57
- package/report.api.md +56 -59
- package/tsconfig.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,106 +1,146 @@
|
|
|
1
1
|
# @atlaskit/util-service-support
|
|
2
2
|
|
|
3
|
+
## 6.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 6.2.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
13
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
14
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
15
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
16
|
|
|
9
17
|
## 6.2.4
|
|
10
18
|
|
|
11
19
|
### Patch Changes
|
|
12
20
|
|
|
13
|
-
- [#68561](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68561)
|
|
21
|
+
- [#68561](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68561)
|
|
22
|
+
[`6a1919bf8400`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a1919bf8400) -
|
|
23
|
+
Migrate packages to use declarative entry points
|
|
14
24
|
|
|
15
25
|
## 6.2.3
|
|
16
26
|
|
|
17
27
|
### Patch Changes
|
|
18
28
|
|
|
19
|
-
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
29
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
30
|
+
[`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete
|
|
31
|
+
version.json
|
|
20
32
|
|
|
21
33
|
## 6.2.2
|
|
22
34
|
|
|
23
35
|
### Patch Changes
|
|
24
36
|
|
|
25
|
-
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
37
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
38
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
39
|
+
legacy types are published for TS 4.5-4.8
|
|
26
40
|
|
|
27
41
|
## 6.2.1
|
|
28
42
|
|
|
29
43
|
### Patch Changes
|
|
30
44
|
|
|
31
|
-
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
45
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
46
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
47
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
32
48
|
|
|
33
49
|
## 6.2.0
|
|
34
50
|
|
|
35
51
|
### Minor Changes
|
|
36
52
|
|
|
37
|
-
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
53
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
54
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
55
|
+
minor dependency bump
|
|
38
56
|
|
|
39
57
|
## 6.1.3
|
|
40
58
|
|
|
41
59
|
### Patch Changes
|
|
42
60
|
|
|
43
|
-
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
61
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
62
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
|
|
63
|
+
Typescript from `4.3.5` to `4.5.5`
|
|
44
64
|
|
|
45
65
|
## 6.1.2
|
|
46
66
|
|
|
47
67
|
### Patch Changes
|
|
48
68
|
|
|
49
|
-
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
69
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
70
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
|
|
71
|
+
Typescript from `4.2.4` to `4.3.5`.
|
|
50
72
|
|
|
51
73
|
## 6.1.1
|
|
52
74
|
|
|
53
75
|
### Patch Changes
|
|
54
76
|
|
|
55
|
-
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
77
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
78
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
|
|
79
|
+
to TypeScript 4.2.4
|
|
56
80
|
|
|
57
81
|
## 6.1.0
|
|
58
82
|
|
|
59
83
|
### Minor Changes
|
|
60
84
|
|
|
61
|
-
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
|
|
85
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
|
|
86
|
+
[`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Remove
|
|
87
|
+
unused polyfills
|
|
62
88
|
|
|
63
89
|
## 6.0.5
|
|
64
90
|
|
|
65
91
|
### Patch Changes
|
|
66
92
|
|
|
67
|
-
- [#8625](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8625)
|
|
93
|
+
- [#8625](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8625)
|
|
94
|
+
[`dfe01a5dad7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfe01a5dad7) - Added
|
|
95
|
+
ability to ignore JSON payload on status.ok responses
|
|
68
96
|
|
|
69
97
|
## 6.0.4
|
|
70
98
|
|
|
71
99
|
### Patch Changes
|
|
72
100
|
|
|
73
|
-
- [#9338](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9338)
|
|
101
|
+
- [#9338](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9338)
|
|
102
|
+
[`0241ccdf088`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0241ccdf088) - Accept
|
|
103
|
+
paths which already have a leading slash.
|
|
74
104
|
|
|
75
105
|
## 6.0.3
|
|
76
106
|
|
|
77
107
|
### Patch Changes
|
|
78
108
|
|
|
79
|
-
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
109
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
110
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
|
|
111
|
+
packages using babel rather than tsc
|
|
80
112
|
|
|
81
113
|
## 6.0.2
|
|
82
114
|
|
|
83
115
|
### Patch Changes
|
|
84
116
|
|
|
85
|
-
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
86
|
-
|
|
87
|
-
|
|
117
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
118
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
119
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
120
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
|
|
121
|
+
versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
122
|
+
`devDependencies` to denote version that the package was built with.
|
|
88
123
|
|
|
89
124
|
## 6.0.1
|
|
90
125
|
|
|
91
126
|
### Patch Changes
|
|
92
127
|
|
|
93
|
-
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
128
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
129
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
130
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
94
131
|
|
|
95
|
-
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
96
|
-
to prevent duplicates of tslib being bundled.
|
|
132
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
133
|
+
upgrade to prevent duplicates of tslib being bundled.
|
|
97
134
|
|
|
98
135
|
## 6.0.0
|
|
99
136
|
|
|
100
137
|
### Major Changes
|
|
101
138
|
|
|
102
|
-
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
103
|
-
|
|
139
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
140
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
|
|
141
|
+
dropping IE11 support, from this version onwards there are no warranties of the package working in
|
|
142
|
+
IE11. For more information see:
|
|
143
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
104
144
|
|
|
105
145
|
## 5.0.1
|
|
106
146
|
|
|
@@ -108,7 +148,8 @@
|
|
|
108
148
|
|
|
109
149
|
- [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
110
150
|
|
|
111
|
-
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
151
|
+
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
152
|
+
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
112
153
|
|
|
113
154
|
- @atlaskit/docs@8.3.2
|
|
114
155
|
|
|
@@ -160,7 +201,8 @@
|
|
|
160
201
|
|
|
161
202
|
- [patch][36f5a93068](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/36f5a93068):
|
|
162
203
|
|
|
163
|
-
Revert API breaking change `headers[key]` => `headers.get(key)`. This change will be reintroduced
|
|
204
|
+
Revert API breaking change `headers[key]` => `headers.get(key)`. This change will be reintroduced
|
|
205
|
+
as a major in a subsequent release.
|
|
164
206
|
|
|
165
207
|
## 4.1.0
|
|
166
208
|
|
|
@@ -172,13 +214,15 @@ _Contains an API breaking change:`headers.map(key)` => `headers[key]`._
|
|
|
172
214
|
|
|
173
215
|
- [minor][c38928b077](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c38928b077):
|
|
174
216
|
|
|
175
|
-
ED-7631: fixed code to build headers to run in Chrome in serviceUtils.requestService-
|
|
217
|
+
ED-7631: fixed code to build headers to run in Chrome in serviceUtils.requestService-
|
|
218
|
+
[minor][ae4f336a3a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ae4f336a3a):
|
|
176
219
|
|
|
177
220
|
**FABDODGEM-13 Editor Damask Release** - [Internal post](http://go.atlassian.com/damask-release)
|
|
178
221
|
|
|
179
222
|
**BREAKING CHANGES**
|
|
180
223
|
|
|
181
|
-
- **Media:** Removed deprecated "context" property from media components in favor of
|
|
224
|
+
- **Media:** Removed deprecated "context" property from media components in favor of
|
|
225
|
+
"mediaClientConfig". This affects all public media UI components.
|
|
182
226
|
- https://product-fabric.atlassian.net/browse/MS-2038
|
|
183
227
|
- **Tasks & Decisions:** Removed containerAri for task-decisions components.
|
|
184
228
|
- https://product-fabric.atlassian.net/browse/ED-7631
|
|
@@ -263,7 +307,8 @@ Bumped dependencies.
|
|
|
263
307
|
|
|
264
308
|
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
|
|
265
309
|
|
|
266
|
-
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
310
|
+
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
311
|
+
non-relative imports as relative imports
|
|
267
312
|
|
|
268
313
|
## 4.0.6
|
|
269
314
|
|
|
@@ -293,12 +338,15 @@ Bumped dependencies.
|
|
|
293
338
|
- Adding back cjs
|
|
294
339
|
- Replacing es5 by cjs and es2015 by esm
|
|
295
340
|
- Creating folders at the root for entry-points
|
|
296
|
-
- Removing the generation of the entry-points at the root
|
|
297
|
-
|
|
341
|
+
- Removing the generation of the entry-points at the root Please see this
|
|
342
|
+
[ticket](https://product-fabric.atlassian.net/browse/BUILDTOOLS-118) or this
|
|
343
|
+
[page](https://hello.atlassian.net/wiki/spaces/FED/pages/452325500/Finishing+Atlaskit+multiple+entry+points)
|
|
344
|
+
for further details
|
|
298
345
|
|
|
299
346
|
## 4.0.3
|
|
300
347
|
|
|
301
|
-
- Updated dependencies
|
|
348
|
+
- Updated dependencies
|
|
349
|
+
[7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
302
350
|
- @atlaskit/docs@8.0.0
|
|
303
351
|
|
|
304
352
|
## 4.0.2
|
|
@@ -321,7 +369,8 @@ Bumped dependencies.
|
|
|
321
369
|
|
|
322
370
|
## 3.1.1
|
|
323
371
|
|
|
324
|
-
- Updated dependencies
|
|
372
|
+
- Updated dependencies
|
|
373
|
+
[76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
|
|
325
374
|
- @atlaskit/docs@7.0.0
|
|
326
375
|
|
|
327
376
|
## 3.1.0
|
|
@@ -343,78 +392,98 @@ Bumped dependencies.
|
|
|
343
392
|
|
|
344
393
|
## 3.0.3
|
|
345
394
|
|
|
346
|
-
- [patch] FS-2941 Stop using Request object and upgrade fetch-mock
|
|
395
|
+
- [patch] FS-2941 Stop using Request object and upgrade fetch-mock
|
|
396
|
+
[dff332a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dff332a)
|
|
347
397
|
|
|
348
398
|
## 3.0.2
|
|
349
399
|
|
|
350
|
-
- [patch] Fix es5 exports of some of the newer modules
|
|
400
|
+
- [patch] Fix es5 exports of some of the newer modules
|
|
401
|
+
[3f0cd7d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f0cd7d)
|
|
351
402
|
|
|
352
403
|
## 3.0.1
|
|
353
404
|
|
|
354
|
-
- [patch] Updated dependencies
|
|
405
|
+
- [patch] Updated dependencies
|
|
406
|
+
[acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1)
|
|
355
407
|
- @atlaskit/docs@5.0.2
|
|
356
408
|
|
|
357
409
|
## 3.0.0
|
|
358
410
|
|
|
359
|
-
- [major] Updated dependencies
|
|
411
|
+
- [major] Updated dependencies
|
|
412
|
+
[563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb)
|
|
360
413
|
- @atlaskit/docs@5.0.0
|
|
361
|
-
- [major] Updated dependencies
|
|
414
|
+
- [major] Updated dependencies
|
|
415
|
+
[7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
|
|
362
416
|
- @atlaskit/docs@5.0.0
|
|
363
417
|
|
|
364
418
|
## 2.0.12
|
|
365
419
|
|
|
366
|
-
- [patch] Move the tests under src and club the tests under unit, integration and visual regression
|
|
420
|
+
- [patch] Move the tests under src and club the tests under unit, integration and visual regression
|
|
421
|
+
[f1a9069](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f1a9069)
|
|
367
422
|
|
|
368
423
|
## 2.0.11
|
|
369
424
|
|
|
370
|
-
- [patch] Update changelogs to remove duplicate
|
|
371
|
-
|
|
425
|
+
- [patch] Update changelogs to remove duplicate
|
|
426
|
+
[cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
|
|
427
|
+
- [none] Updated dependencies
|
|
428
|
+
[cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
|
|
372
429
|
- @atlaskit/docs@4.1.1
|
|
373
430
|
|
|
374
431
|
## 2.0.10
|
|
375
432
|
|
|
376
|
-
- [none] Updated dependencies
|
|
433
|
+
- [none] Updated dependencies
|
|
434
|
+
[9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54)
|
|
377
435
|
- @atlaskit/docs@4.1.0
|
|
378
436
|
|
|
379
437
|
## 2.0.9
|
|
380
438
|
|
|
381
|
-
- [patch] FS-797 Allow setting url for pubsub example and fix url-search-params import style
|
|
439
|
+
- [patch] FS-797 Allow setting url for pubsub example and fix url-search-params import style
|
|
440
|
+
[1c85e67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1c85e67)
|
|
382
441
|
|
|
383
442
|
## 2.0.8
|
|
384
443
|
|
|
385
|
-
- [patch] Updated dependencies
|
|
444
|
+
- [patch] Updated dependencies
|
|
445
|
+
[1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
|
|
386
446
|
- @atlaskit/docs@4.0.0
|
|
387
447
|
|
|
388
448
|
## 2.0.7
|
|
389
449
|
|
|
390
|
-
- [patch] Updated dependencies
|
|
450
|
+
- [patch] Updated dependencies
|
|
451
|
+
[d662caa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d662caa)
|
|
391
452
|
- @atlaskit/docs@3.0.4
|
|
392
453
|
|
|
393
454
|
## 2.0.6
|
|
394
455
|
|
|
395
|
-
- [patch] Fixed tsconfig in build/es5
|
|
456
|
+
- [patch] Fixed tsconfig in build/es5
|
|
457
|
+
[c8e55d0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c8e55d0)
|
|
396
458
|
|
|
397
459
|
## 2.0.5
|
|
398
460
|
|
|
399
|
-
- [patch] FS-1698 migrated util-service-support to mk-2
|
|
461
|
+
- [patch] FS-1698 migrated util-service-support to mk-2
|
|
462
|
+
[e0bcb61](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e0bcb61)
|
|
400
463
|
|
|
401
464
|
## 2.0.4 (2018-02-06)
|
|
402
465
|
|
|
403
|
-
- bug fix; added omitCredentials to SecurityOptions
|
|
466
|
+
- bug fix; added omitCredentials to SecurityOptions
|
|
467
|
+
([88cb203](https://bitbucket.org/atlassian/atlaskit/commits/88cb203))
|
|
404
468
|
|
|
405
469
|
## 2.0.3 (2017-12-26)
|
|
406
470
|
|
|
407
|
-
- bug fix; remove @atlaskit/util-common-test from devDependencies
|
|
408
|
-
|
|
471
|
+
- bug fix; remove @atlaskit/util-common-test from devDependencies
|
|
472
|
+
([e9faeab](https://bitbucket.org/atlassian/atlaskit/commits/e9faeab))
|
|
473
|
+
- bug fix; add url-search-params as a dependency (issues closed: fs-1091)
|
|
474
|
+
([b33cdcf](https://bitbucket.org/atlassian/atlaskit/commits/b33cdcf))
|
|
409
475
|
|
|
410
476
|
## 2.0.2 (2017-09-12)
|
|
411
477
|
|
|
412
|
-
- bug fix; requestService can handle 204 responses with no content
|
|
478
|
+
- bug fix; requestService can handle 204 responses with no content
|
|
479
|
+
([edf13d5](https://bitbucket.org/atlassian/atlaskit/commits/edf13d5))
|
|
413
480
|
|
|
414
481
|
## 2.0.1 (2017-07-24)
|
|
415
482
|
|
|
416
|
-
- fix; make sure types from utils are exports (extracted types to separate file)
|
|
483
|
+
- fix; make sure types from utils are exports (extracted types to separate file)
|
|
484
|
+
([ebde291](https://bitbucket.org/atlassian/atlaskit/commits/ebde291))
|
|
417
485
|
|
|
418
486
|
## 1.0.0 (2017-07-24)
|
|
419
487
|
|
|
420
|
-
- feature; extract common service integration code into a shared library
|
|
488
|
+
- feature; extract common service integration code into a shared library
|
|
489
|
+
([5714832](https://bitbucket.org/atlassian/atlaskit/commits/5714832))
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
"target": "es5",
|
|
6
6
|
"composite": true,
|
|
7
7
|
"outDir": "../dist",
|
|
8
|
-
"rootDir": "../"
|
|
9
|
-
"baseUrl": "../"
|
|
8
|
+
"rootDir": "../"
|
|
10
9
|
},
|
|
11
10
|
"include": [
|
|
12
11
|
"../src/**/*.ts",
|
|
@@ -17,5 +16,12 @@
|
|
|
17
16
|
"../src/**/*.test.*",
|
|
18
17
|
"../src/**/test.*"
|
|
19
18
|
],
|
|
20
|
-
"references": [
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../react-ufo/atlaskit/afm-cc/tsconfig.json"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
21
27
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__util-service-support/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../react-ufo/atlaskit/afm-jira/tsconfig.json"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.post-office.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../post-office/tsDist/@atlaskit__util-service-support/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../react-ufo/atlaskit/afm-post-office/tsconfig.json"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -34,5 +34,5 @@ Object.keys(_serviceResources).forEach(function (key) {
|
|
|
34
34
|
});
|
|
35
35
|
var serviceUtils = _interopRequireWildcard(require("./serviceUtils"));
|
|
36
36
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
37
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
37
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
38
38
|
var utils = exports.utils = serviceUtils;
|
|
@@ -13,7 +13,7 @@ var AbstractResource = exports.AbstractResource = /*#__PURE__*/function () {
|
|
|
13
13
|
(0, _classCallCheck2.default)(this, AbstractResource);
|
|
14
14
|
(0, _defineProperty2.default)(this, "listeners", new Set());
|
|
15
15
|
}
|
|
16
|
-
(0, _createClass2.default)(AbstractResource, [{
|
|
16
|
+
return (0, _createClass2.default)(AbstractResource, [{
|
|
17
17
|
key: "subscribe",
|
|
18
18
|
value: function subscribe(onChange) {
|
|
19
19
|
this.listeners.add(onChange);
|
|
@@ -62,5 +62,4 @@ var AbstractResource = exports.AbstractResource = /*#__PURE__*/function () {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
}]);
|
|
65
|
-
return AbstractResource;
|
|
66
65
|
}();
|
package/dist/cjs/serviceUtils.js
CHANGED
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.requestService = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _experienceTraceIdContext = require("@atlaskit/react-ufo/experience-trace-id-context");
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
+
var _featureFlagsAccessed = require("@atlaskit/react-ufo/feature-flags-accessed");
|
|
9
12
|
var _types = require("./types");
|
|
10
13
|
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; }
|
|
11
14
|
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; }
|
|
@@ -78,7 +81,7 @@ var buildHeaders = function buildHeaders(secOptions, extraHeaders) {
|
|
|
78
81
|
/**
|
|
79
82
|
* @returns Promise containing the json response
|
|
80
83
|
*/
|
|
81
|
-
var
|
|
84
|
+
var _requestService = exports.requestService = function requestService(serviceConfig, options) {
|
|
82
85
|
var url = serviceConfig.url,
|
|
83
86
|
securityProvider = serviceConfig.securityProvider,
|
|
84
87
|
refreshedSecurityProvider = serviceConfig.refreshedSecurityProvider;
|
|
@@ -91,8 +94,20 @@ var requestService = exports.requestService = function requestService(serviceCon
|
|
|
91
94
|
var headers = buildHeaders(secOptions, requestInit && requestInit.headers);
|
|
92
95
|
var credentials = (0, _types.buildCredentials)(secOptions);
|
|
93
96
|
var ignoreResponsePayload = (options === null || options === void 0 ? void 0 : options.ignoreResponsePayload) || false;
|
|
97
|
+
|
|
98
|
+
//Get tracing headers from UFO
|
|
99
|
+
var TRACING_HEADER_FOR_SERVICE_UTIL = 'platform_collab_provider_tracingheaders';
|
|
100
|
+
var tracingHeaderEnabled = (0, _platformFeatureFlags.fg)('platform_collab_provider_tracingheaders');
|
|
101
|
+
(0, _featureFlagsAccessed.addFeatureFlagAccessed)(TRACING_HEADER_FOR_SERVICE_UTIL, tracingHeaderEnabled);
|
|
102
|
+
var tracingHeaders = {};
|
|
103
|
+
if (tracingHeaderEnabled) {
|
|
104
|
+
tracingHeaders = (0, _experienceTraceIdContext.getActiveTraceHttpRequestHeaders)(url);
|
|
105
|
+
}
|
|
94
106
|
var requestOptions = _objectSpread(_objectSpread({}, requestInit), {}, {
|
|
95
|
-
headers
|
|
107
|
+
// populate headers mainly for the collab provider however
|
|
108
|
+
// other components which uses this util can get the header as well.
|
|
109
|
+
// Those tracing headers shall not incur any issues as long as backends handle them properly
|
|
110
|
+
headers: _objectSpread(_objectSpread({}, headers), tracingHeaders),
|
|
96
111
|
credentials: credentials
|
|
97
112
|
});
|
|
98
113
|
return fetch(requestUrl, requestOptions).then(function (response) {
|
|
@@ -109,7 +124,7 @@ var requestService = exports.requestService = function requestService(serviceCon
|
|
|
109
124
|
return newSecOptions;
|
|
110
125
|
}
|
|
111
126
|
};
|
|
112
|
-
return
|
|
127
|
+
return _requestService(retryServiceConfig, options);
|
|
113
128
|
});
|
|
114
129
|
}
|
|
115
130
|
return Promise.reject({
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { getActiveTraceHttpRequestHeaders } from '@atlaskit/react-ufo/experience-trace-id-context';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
|
|
1
4
|
import { buildCredentials } from './types';
|
|
2
5
|
const defaultRequestServiceOptions = {};
|
|
3
6
|
const buildUrl = (baseUrl, path = '', queryParams, secOptions) => {
|
|
@@ -81,9 +84,24 @@ export const requestService = (serviceConfig, options) => {
|
|
|
81
84
|
const headers = buildHeaders(secOptions, requestInit && requestInit.headers);
|
|
82
85
|
const credentials = buildCredentials(secOptions);
|
|
83
86
|
const ignoreResponsePayload = (options === null || options === void 0 ? void 0 : options.ignoreResponsePayload) || false;
|
|
87
|
+
|
|
88
|
+
//Get tracing headers from UFO
|
|
89
|
+
const TRACING_HEADER_FOR_SERVICE_UTIL = 'platform_collab_provider_tracingheaders';
|
|
90
|
+
const tracingHeaderEnabled = fg('platform_collab_provider_tracingheaders');
|
|
91
|
+
addFeatureFlagAccessed(TRACING_HEADER_FOR_SERVICE_UTIL, tracingHeaderEnabled);
|
|
92
|
+
let tracingHeaders = {};
|
|
93
|
+
if (tracingHeaderEnabled) {
|
|
94
|
+
tracingHeaders = getActiveTraceHttpRequestHeaders(url);
|
|
95
|
+
}
|
|
84
96
|
const requestOptions = {
|
|
85
97
|
...requestInit,
|
|
86
|
-
headers
|
|
98
|
+
// populate headers mainly for the collab provider however
|
|
99
|
+
// other components which uses this util can get the header as well.
|
|
100
|
+
// Those tracing headers shall not incur any issues as long as backends handle them properly
|
|
101
|
+
headers: {
|
|
102
|
+
...headers,
|
|
103
|
+
...tracingHeaders
|
|
104
|
+
},
|
|
87
105
|
credentials
|
|
88
106
|
};
|
|
89
107
|
return fetch(requestUrl, requestOptions).then(response => {
|
|
@@ -6,7 +6,7 @@ export var AbstractResource = /*#__PURE__*/function () {
|
|
|
6
6
|
_classCallCheck(this, AbstractResource);
|
|
7
7
|
_defineProperty(this, "listeners", new Set());
|
|
8
8
|
}
|
|
9
|
-
_createClass(AbstractResource, [{
|
|
9
|
+
return _createClass(AbstractResource, [{
|
|
10
10
|
key: "subscribe",
|
|
11
11
|
value: function subscribe(onChange) {
|
|
12
12
|
this.listeners.add(onChange);
|
|
@@ -55,5 +55,4 @@ export var AbstractResource = /*#__PURE__*/function () {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}]);
|
|
58
|
-
return AbstractResource;
|
|
59
58
|
}();
|
package/dist/esm/serviceUtils.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
|
+
import { getActiveTraceHttpRequestHeaders } from '@atlaskit/react-ufo/experience-trace-id-context';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
|
|
4
7
|
import { buildCredentials } from './types';
|
|
5
8
|
var defaultRequestServiceOptions = {};
|
|
6
9
|
var buildUrl = function buildUrl(baseUrl) {
|
|
@@ -71,7 +74,7 @@ var buildHeaders = function buildHeaders(secOptions, extraHeaders) {
|
|
|
71
74
|
/**
|
|
72
75
|
* @returns Promise containing the json response
|
|
73
76
|
*/
|
|
74
|
-
|
|
77
|
+
var _requestService = function requestService(serviceConfig, options) {
|
|
75
78
|
var url = serviceConfig.url,
|
|
76
79
|
securityProvider = serviceConfig.securityProvider,
|
|
77
80
|
refreshedSecurityProvider = serviceConfig.refreshedSecurityProvider;
|
|
@@ -84,8 +87,20 @@ export var requestService = function requestService(serviceConfig, options) {
|
|
|
84
87
|
var headers = buildHeaders(secOptions, requestInit && requestInit.headers);
|
|
85
88
|
var credentials = buildCredentials(secOptions);
|
|
86
89
|
var ignoreResponsePayload = (options === null || options === void 0 ? void 0 : options.ignoreResponsePayload) || false;
|
|
90
|
+
|
|
91
|
+
//Get tracing headers from UFO
|
|
92
|
+
var TRACING_HEADER_FOR_SERVICE_UTIL = 'platform_collab_provider_tracingheaders';
|
|
93
|
+
var tracingHeaderEnabled = fg('platform_collab_provider_tracingheaders');
|
|
94
|
+
addFeatureFlagAccessed(TRACING_HEADER_FOR_SERVICE_UTIL, tracingHeaderEnabled);
|
|
95
|
+
var tracingHeaders = {};
|
|
96
|
+
if (tracingHeaderEnabled) {
|
|
97
|
+
tracingHeaders = getActiveTraceHttpRequestHeaders(url);
|
|
98
|
+
}
|
|
87
99
|
var requestOptions = _objectSpread(_objectSpread({}, requestInit), {}, {
|
|
88
|
-
headers
|
|
100
|
+
// populate headers mainly for the collab provider however
|
|
101
|
+
// other components which uses this util can get the header as well.
|
|
102
|
+
// Those tracing headers shall not incur any issues as long as backends handle them properly
|
|
103
|
+
headers: _objectSpread(_objectSpread({}, headers), tracingHeaders),
|
|
89
104
|
credentials: credentials
|
|
90
105
|
});
|
|
91
106
|
return fetch(requestUrl, requestOptions).then(function (response) {
|
|
@@ -102,7 +117,7 @@ export var requestService = function requestService(serviceConfig, options) {
|
|
|
102
117
|
return newSecOptions;
|
|
103
118
|
}
|
|
104
119
|
};
|
|
105
|
-
return
|
|
120
|
+
return _requestService(retryServiceConfig, options);
|
|
106
121
|
});
|
|
107
122
|
}
|
|
108
123
|
return Promise.reject({
|
|
@@ -110,4 +125,5 @@ export var requestService = function requestService(serviceConfig, options) {
|
|
|
110
125
|
reason: response.statusText
|
|
111
126
|
});
|
|
112
127
|
});
|
|
113
|
-
};
|
|
128
|
+
};
|
|
129
|
+
export { _requestService as requestService };
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { md } from '@atlaskit/docs';
|
|
2
2
|
|
|
3
3
|
export default md`
|
|
4
|
-
|
|
4
|
+
# Util Service Support
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
A library of support classes for integrating React components with REST HTTP services, including
|
|
7
|
+
support for authentication.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
## Installation
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
~~~js
|
|
12
|
+
npm install @atlaskit/mention
|
|
13
|
+
# or
|
|
14
|
+
yarn add @atlaskit/mention
|
|
15
|
+
~~~
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
## Using the component
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
Use the component in your React app as follows:
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
import { AbstractResource } from '@atlaskit/util-service-support';
|
|
21
22
|
`;
|
package/package.json
CHANGED
|
@@ -1,58 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
2
|
+
"name": "@atlaskit/util-service-support",
|
|
3
|
+
"version": "6.2.6",
|
|
4
|
+
"description": "A library of support classes for integrating React components with REST HTTP services",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"atlaskit:src": "src/index.ts",
|
|
24
|
+
"af:exports": {
|
|
25
|
+
".": "./src/index.ts",
|
|
26
|
+
"./serviceResources": "./src/serviceResources.ts",
|
|
27
|
+
"./serviceUtils": "./src/serviceUtils.ts",
|
|
28
|
+
"./types": "./src/types.ts"
|
|
29
|
+
},
|
|
30
|
+
"atlassian": {
|
|
31
|
+
"team": "Build Infra"
|
|
32
|
+
},
|
|
33
|
+
"config": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
38
|
+
"@atlaskit/react-ufo": "^2.14.0",
|
|
39
|
+
"@babel/runtime": "^7.0.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"es6-promise": "^4.0.5",
|
|
43
|
+
"fetch-mock": "^8.0.0",
|
|
44
|
+
"sinon": "^2.2.0",
|
|
45
|
+
"typescript": "~5.4.2"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"fabric",
|
|
49
|
+
"ui",
|
|
50
|
+
"private"
|
|
51
|
+
],
|
|
52
|
+
"techstack": {
|
|
53
|
+
"@atlassian/frontend": {
|
|
54
|
+
"tree-shaking": []
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"platform-feature-flags": {
|
|
58
|
+
"platform_collab_provider_tracingheaders": {
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/util-service-support"
|
|
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
|
|
@@ -16,105 +17,101 @@
|
|
|
16
17
|
|
|
17
18
|
```ts
|
|
18
19
|
// @public (undocumented)
|
|
19
|
-
export abstract class AbstractResource<Q, R, E, I, O>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// (undocumented)
|
|
35
|
-
unsubscribe(onChange: OnProviderChange<R, E, I>): void;
|
|
20
|
+
export abstract class AbstractResource<Q, R, E, I, O> implements Provider<Q, R, E, I, O> {
|
|
21
|
+
// (undocumented)
|
|
22
|
+
abstract filter(query?: Q, options?: O): void;
|
|
23
|
+
// (undocumented)
|
|
24
|
+
protected notifyError(error: E): void;
|
|
25
|
+
// (undocumented)
|
|
26
|
+
protected notifyInfo(info: I): void;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
protected notifyNotReady(): void;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
protected notifyResult(result: R): void;
|
|
31
|
+
// (undocumented)
|
|
32
|
+
subscribe(onChange: OnProviderChange<R, E, I>): void;
|
|
33
|
+
// (undocumented)
|
|
34
|
+
unsubscribe(onChange: OnProviderChange<R, E, I>): void;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
// @public (undocumented)
|
|
39
|
-
export const buildCredentials: (
|
|
40
|
-
secOptions?: SecurityOptions,
|
|
41
|
-
) => 'include' | 'omit';
|
|
38
|
+
export const buildCredentials: (secOptions?: SecurityOptions) => 'include' | 'omit';
|
|
42
39
|
|
|
43
40
|
// @public (undocumented)
|
|
44
41
|
export interface KeyValues {
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
// (undocumented)
|
|
43
|
+
[index: string]: any;
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
// @public (undocumented)
|
|
50
47
|
export interface OnProviderChange<R, E, I> {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
error?(error: E): void;
|
|
49
|
+
info?(info: I): void;
|
|
50
|
+
notReady?(): void;
|
|
51
|
+
result(result: R): void;
|
|
55
52
|
}
|
|
56
53
|
|
|
57
54
|
// @public
|
|
58
55
|
export interface Provider<Q, R, E, I, O> {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
filter(query?: Q, options?: O): void;
|
|
57
|
+
// (undocumented)
|
|
58
|
+
subscribe(onChange: OnProviderChange<R, E, I>): void;
|
|
59
|
+
// (undocumented)
|
|
60
|
+
unsubscribe(onChange: OnProviderChange<R, E, I>): void;
|
|
64
61
|
}
|
|
65
62
|
|
|
66
63
|
// @public
|
|
67
64
|
export interface RefreshSecurityProvider {
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
// (undocumented)
|
|
66
|
+
(): Promise<SecurityOptions>;
|
|
70
67
|
}
|
|
71
68
|
|
|
72
69
|
// @public (undocumented)
|
|
73
70
|
const requestService: <T>(
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
serviceConfig: ServiceConfig,
|
|
72
|
+
options?: RequestServiceOptions,
|
|
76
73
|
) => Promise<T>;
|
|
77
74
|
|
|
78
75
|
// @public (undocumented)
|
|
79
76
|
export interface RequestServiceOptions {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
77
|
+
// (undocumented)
|
|
78
|
+
ignoreResponsePayload?: boolean;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
path?: string;
|
|
81
|
+
// (undocumented)
|
|
82
|
+
queryParams?: KeyValues;
|
|
83
|
+
// (undocumented)
|
|
84
|
+
requestInit?: RequestInit;
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
// @public (undocumented)
|
|
91
88
|
export interface SecurityOptions {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
// (undocumented)
|
|
90
|
+
headers?: KeyValues;
|
|
91
|
+
// (undocumented)
|
|
92
|
+
omitCredentials?: boolean;
|
|
93
|
+
// (undocumented)
|
|
94
|
+
params?: KeyValues;
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
// @public
|
|
101
98
|
export interface SecurityProvider {
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
// (undocumented)
|
|
100
|
+
(): SecurityOptions;
|
|
104
101
|
}
|
|
105
102
|
|
|
106
103
|
// @public (undocumented)
|
|
107
104
|
export interface ServiceConfig {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
105
|
+
// (undocumented)
|
|
106
|
+
refreshedSecurityProvider?: RefreshSecurityProvider;
|
|
107
|
+
// (undocumented)
|
|
108
|
+
securityProvider?: SecurityProvider;
|
|
109
|
+
// (undocumented)
|
|
110
|
+
url: string;
|
|
114
111
|
}
|
|
115
112
|
|
|
116
113
|
declare namespace serviceUtils {
|
|
117
|
-
|
|
114
|
+
export { requestService };
|
|
118
115
|
}
|
|
119
116
|
|
|
120
117
|
// @public (undocumented)
|