@atlaskit/util-service-support 6.2.5 → 6.2.7
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 +125 -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,152 @@
|
|
|
1
1
|
# @atlaskit/util-service-support
|
|
2
2
|
|
|
3
|
+
## 6.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.2.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 6.2.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
19
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
20
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
21
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
22
|
|
|
9
23
|
## 6.2.4
|
|
10
24
|
|
|
11
25
|
### Patch Changes
|
|
12
26
|
|
|
13
|
-
- [#68561](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68561)
|
|
27
|
+
- [#68561](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68561)
|
|
28
|
+
[`6a1919bf8400`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a1919bf8400) -
|
|
29
|
+
Migrate packages to use declarative entry points
|
|
14
30
|
|
|
15
31
|
## 6.2.3
|
|
16
32
|
|
|
17
33
|
### Patch Changes
|
|
18
34
|
|
|
19
|
-
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
35
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
36
|
+
[`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete
|
|
37
|
+
version.json
|
|
20
38
|
|
|
21
39
|
## 6.2.2
|
|
22
40
|
|
|
23
41
|
### Patch Changes
|
|
24
42
|
|
|
25
|
-
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
43
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
44
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
45
|
+
legacy types are published for TS 4.5-4.8
|
|
26
46
|
|
|
27
47
|
## 6.2.1
|
|
28
48
|
|
|
29
49
|
### Patch Changes
|
|
30
50
|
|
|
31
|
-
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
51
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
52
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
53
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
32
54
|
|
|
33
55
|
## 6.2.0
|
|
34
56
|
|
|
35
57
|
### Minor Changes
|
|
36
58
|
|
|
37
|
-
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
59
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
60
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
61
|
+
minor dependency bump
|
|
38
62
|
|
|
39
63
|
## 6.1.3
|
|
40
64
|
|
|
41
65
|
### Patch Changes
|
|
42
66
|
|
|
43
|
-
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
67
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
68
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
|
|
69
|
+
Typescript from `4.3.5` to `4.5.5`
|
|
44
70
|
|
|
45
71
|
## 6.1.2
|
|
46
72
|
|
|
47
73
|
### Patch Changes
|
|
48
74
|
|
|
49
|
-
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
75
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
76
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
|
|
77
|
+
Typescript from `4.2.4` to `4.3.5`.
|
|
50
78
|
|
|
51
79
|
## 6.1.1
|
|
52
80
|
|
|
53
81
|
### Patch Changes
|
|
54
82
|
|
|
55
|
-
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
83
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
84
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
|
|
85
|
+
to TypeScript 4.2.4
|
|
56
86
|
|
|
57
87
|
## 6.1.0
|
|
58
88
|
|
|
59
89
|
### Minor Changes
|
|
60
90
|
|
|
61
|
-
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
|
|
91
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
|
|
92
|
+
[`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Remove
|
|
93
|
+
unused polyfills
|
|
62
94
|
|
|
63
95
|
## 6.0.5
|
|
64
96
|
|
|
65
97
|
### Patch Changes
|
|
66
98
|
|
|
67
|
-
- [#8625](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8625)
|
|
99
|
+
- [#8625](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8625)
|
|
100
|
+
[`dfe01a5dad7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfe01a5dad7) - Added
|
|
101
|
+
ability to ignore JSON payload on status.ok responses
|
|
68
102
|
|
|
69
103
|
## 6.0.4
|
|
70
104
|
|
|
71
105
|
### Patch Changes
|
|
72
106
|
|
|
73
|
-
- [#9338](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9338)
|
|
107
|
+
- [#9338](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9338)
|
|
108
|
+
[`0241ccdf088`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0241ccdf088) - Accept
|
|
109
|
+
paths which already have a leading slash.
|
|
74
110
|
|
|
75
111
|
## 6.0.3
|
|
76
112
|
|
|
77
113
|
### Patch Changes
|
|
78
114
|
|
|
79
|
-
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
115
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
116
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
|
|
117
|
+
packages using babel rather than tsc
|
|
80
118
|
|
|
81
119
|
## 6.0.2
|
|
82
120
|
|
|
83
121
|
### Patch Changes
|
|
84
122
|
|
|
85
|
-
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
86
|
-
|
|
87
|
-
|
|
123
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
124
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
125
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
126
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
|
|
127
|
+
versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
128
|
+
`devDependencies` to denote version that the package was built with.
|
|
88
129
|
|
|
89
130
|
## 6.0.1
|
|
90
131
|
|
|
91
132
|
### Patch Changes
|
|
92
133
|
|
|
93
|
-
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
134
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
135
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
136
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
94
137
|
|
|
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.
|
|
138
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
139
|
+
upgrade to prevent duplicates of tslib being bundled.
|
|
97
140
|
|
|
98
141
|
## 6.0.0
|
|
99
142
|
|
|
100
143
|
### Major Changes
|
|
101
144
|
|
|
102
|
-
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
103
|
-
|
|
145
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
146
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
|
|
147
|
+
dropping IE11 support, from this version onwards there are no warranties of the package working in
|
|
148
|
+
IE11. For more information see:
|
|
149
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
104
150
|
|
|
105
151
|
## 5.0.1
|
|
106
152
|
|
|
@@ -108,7 +154,8 @@
|
|
|
108
154
|
|
|
109
155
|
- [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
110
156
|
|
|
111
|
-
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
157
|
+
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
158
|
+
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
112
159
|
|
|
113
160
|
- @atlaskit/docs@8.3.2
|
|
114
161
|
|
|
@@ -160,7 +207,8 @@
|
|
|
160
207
|
|
|
161
208
|
- [patch][36f5a93068](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/36f5a93068):
|
|
162
209
|
|
|
163
|
-
Revert API breaking change `headers[key]` => `headers.get(key)`. This change will be reintroduced
|
|
210
|
+
Revert API breaking change `headers[key]` => `headers.get(key)`. This change will be reintroduced
|
|
211
|
+
as a major in a subsequent release.
|
|
164
212
|
|
|
165
213
|
## 4.1.0
|
|
166
214
|
|
|
@@ -172,13 +220,15 @@ _Contains an API breaking change:`headers.map(key)` => `headers[key]`._
|
|
|
172
220
|
|
|
173
221
|
- [minor][c38928b077](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c38928b077):
|
|
174
222
|
|
|
175
|
-
ED-7631: fixed code to build headers to run in Chrome in serviceUtils.requestService-
|
|
223
|
+
ED-7631: fixed code to build headers to run in Chrome in serviceUtils.requestService-
|
|
224
|
+
[minor][ae4f336a3a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ae4f336a3a):
|
|
176
225
|
|
|
177
226
|
**FABDODGEM-13 Editor Damask Release** - [Internal post](http://go.atlassian.com/damask-release)
|
|
178
227
|
|
|
179
228
|
**BREAKING CHANGES**
|
|
180
229
|
|
|
181
|
-
- **Media:** Removed deprecated "context" property from media components in favor of
|
|
230
|
+
- **Media:** Removed deprecated "context" property from media components in favor of
|
|
231
|
+
"mediaClientConfig". This affects all public media UI components.
|
|
182
232
|
- https://product-fabric.atlassian.net/browse/MS-2038
|
|
183
233
|
- **Tasks & Decisions:** Removed containerAri for task-decisions components.
|
|
184
234
|
- https://product-fabric.atlassian.net/browse/ED-7631
|
|
@@ -263,7 +313,8 @@ Bumped dependencies.
|
|
|
263
313
|
|
|
264
314
|
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
|
|
265
315
|
|
|
266
|
-
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
316
|
+
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
317
|
+
non-relative imports as relative imports
|
|
267
318
|
|
|
268
319
|
## 4.0.6
|
|
269
320
|
|
|
@@ -293,12 +344,15 @@ Bumped dependencies.
|
|
|
293
344
|
- Adding back cjs
|
|
294
345
|
- Replacing es5 by cjs and es2015 by esm
|
|
295
346
|
- Creating folders at the root for entry-points
|
|
296
|
-
- Removing the generation of the entry-points at the root
|
|
297
|
-
|
|
347
|
+
- Removing the generation of the entry-points at the root Please see this
|
|
348
|
+
[ticket](https://product-fabric.atlassian.net/browse/BUILDTOOLS-118) or this
|
|
349
|
+
[page](https://hello.atlassian.net/wiki/spaces/FED/pages/452325500/Finishing+Atlaskit+multiple+entry+points)
|
|
350
|
+
for further details
|
|
298
351
|
|
|
299
352
|
## 4.0.3
|
|
300
353
|
|
|
301
|
-
- Updated dependencies
|
|
354
|
+
- Updated dependencies
|
|
355
|
+
[7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
302
356
|
- @atlaskit/docs@8.0.0
|
|
303
357
|
|
|
304
358
|
## 4.0.2
|
|
@@ -321,7 +375,8 @@ Bumped dependencies.
|
|
|
321
375
|
|
|
322
376
|
## 3.1.1
|
|
323
377
|
|
|
324
|
-
- Updated dependencies
|
|
378
|
+
- Updated dependencies
|
|
379
|
+
[76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
|
|
325
380
|
- @atlaskit/docs@7.0.0
|
|
326
381
|
|
|
327
382
|
## 3.1.0
|
|
@@ -343,78 +398,98 @@ Bumped dependencies.
|
|
|
343
398
|
|
|
344
399
|
## 3.0.3
|
|
345
400
|
|
|
346
|
-
- [patch] FS-2941 Stop using Request object and upgrade fetch-mock
|
|
401
|
+
- [patch] FS-2941 Stop using Request object and upgrade fetch-mock
|
|
402
|
+
[dff332a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dff332a)
|
|
347
403
|
|
|
348
404
|
## 3.0.2
|
|
349
405
|
|
|
350
|
-
- [patch] Fix es5 exports of some of the newer modules
|
|
406
|
+
- [patch] Fix es5 exports of some of the newer modules
|
|
407
|
+
[3f0cd7d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f0cd7d)
|
|
351
408
|
|
|
352
409
|
## 3.0.1
|
|
353
410
|
|
|
354
|
-
- [patch] Updated dependencies
|
|
411
|
+
- [patch] Updated dependencies
|
|
412
|
+
[acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1)
|
|
355
413
|
- @atlaskit/docs@5.0.2
|
|
356
414
|
|
|
357
415
|
## 3.0.0
|
|
358
416
|
|
|
359
|
-
- [major] Updated dependencies
|
|
417
|
+
- [major] Updated dependencies
|
|
418
|
+
[563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb)
|
|
360
419
|
- @atlaskit/docs@5.0.0
|
|
361
|
-
- [major] Updated dependencies
|
|
420
|
+
- [major] Updated dependencies
|
|
421
|
+
[7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
|
|
362
422
|
- @atlaskit/docs@5.0.0
|
|
363
423
|
|
|
364
424
|
## 2.0.12
|
|
365
425
|
|
|
366
|
-
- [patch] Move the tests under src and club the tests under unit, integration and visual regression
|
|
426
|
+
- [patch] Move the tests under src and club the tests under unit, integration and visual regression
|
|
427
|
+
[f1a9069](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f1a9069)
|
|
367
428
|
|
|
368
429
|
## 2.0.11
|
|
369
430
|
|
|
370
|
-
- [patch] Update changelogs to remove duplicate
|
|
371
|
-
|
|
431
|
+
- [patch] Update changelogs to remove duplicate
|
|
432
|
+
[cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
|
|
433
|
+
- [none] Updated dependencies
|
|
434
|
+
[cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
|
|
372
435
|
- @atlaskit/docs@4.1.1
|
|
373
436
|
|
|
374
437
|
## 2.0.10
|
|
375
438
|
|
|
376
|
-
- [none] Updated dependencies
|
|
439
|
+
- [none] Updated dependencies
|
|
440
|
+
[9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54)
|
|
377
441
|
- @atlaskit/docs@4.1.0
|
|
378
442
|
|
|
379
443
|
## 2.0.9
|
|
380
444
|
|
|
381
|
-
- [patch] FS-797 Allow setting url for pubsub example and fix url-search-params import style
|
|
445
|
+
- [patch] FS-797 Allow setting url for pubsub example and fix url-search-params import style
|
|
446
|
+
[1c85e67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1c85e67)
|
|
382
447
|
|
|
383
448
|
## 2.0.8
|
|
384
449
|
|
|
385
|
-
- [patch] Updated dependencies
|
|
450
|
+
- [patch] Updated dependencies
|
|
451
|
+
[1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
|
|
386
452
|
- @atlaskit/docs@4.0.0
|
|
387
453
|
|
|
388
454
|
## 2.0.7
|
|
389
455
|
|
|
390
|
-
- [patch] Updated dependencies
|
|
456
|
+
- [patch] Updated dependencies
|
|
457
|
+
[d662caa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d662caa)
|
|
391
458
|
- @atlaskit/docs@3.0.4
|
|
392
459
|
|
|
393
460
|
## 2.0.6
|
|
394
461
|
|
|
395
|
-
- [patch] Fixed tsconfig in build/es5
|
|
462
|
+
- [patch] Fixed tsconfig in build/es5
|
|
463
|
+
[c8e55d0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c8e55d0)
|
|
396
464
|
|
|
397
465
|
## 2.0.5
|
|
398
466
|
|
|
399
|
-
- [patch] FS-1698 migrated util-service-support to mk-2
|
|
467
|
+
- [patch] FS-1698 migrated util-service-support to mk-2
|
|
468
|
+
[e0bcb61](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e0bcb61)
|
|
400
469
|
|
|
401
470
|
## 2.0.4 (2018-02-06)
|
|
402
471
|
|
|
403
|
-
- bug fix; added omitCredentials to SecurityOptions
|
|
472
|
+
- bug fix; added omitCredentials to SecurityOptions
|
|
473
|
+
([88cb203](https://bitbucket.org/atlassian/atlaskit/commits/88cb203))
|
|
404
474
|
|
|
405
475
|
## 2.0.3 (2017-12-26)
|
|
406
476
|
|
|
407
|
-
- bug fix; remove @atlaskit/util-common-test from devDependencies
|
|
408
|
-
|
|
477
|
+
- bug fix; remove @atlaskit/util-common-test from devDependencies
|
|
478
|
+
([e9faeab](https://bitbucket.org/atlassian/atlaskit/commits/e9faeab))
|
|
479
|
+
- bug fix; add url-search-params as a dependency (issues closed: fs-1091)
|
|
480
|
+
([b33cdcf](https://bitbucket.org/atlassian/atlaskit/commits/b33cdcf))
|
|
409
481
|
|
|
410
482
|
## 2.0.2 (2017-09-12)
|
|
411
483
|
|
|
412
|
-
- bug fix; requestService can handle 204 responses with no content
|
|
484
|
+
- bug fix; requestService can handle 204 responses with no content
|
|
485
|
+
([edf13d5](https://bitbucket.org/atlassian/atlaskit/commits/edf13d5))
|
|
413
486
|
|
|
414
487
|
## 2.0.1 (2017-07-24)
|
|
415
488
|
|
|
416
|
-
- fix; make sure types from utils are exports (extracted types to separate file)
|
|
489
|
+
- fix; make sure types from utils are exports (extracted types to separate file)
|
|
490
|
+
([ebde291](https://bitbucket.org/atlassian/atlaskit/commits/ebde291))
|
|
417
491
|
|
|
418
492
|
## 1.0.0 (2017-07-24)
|
|
419
493
|
|
|
420
|
-
- feature; extract common service integration code into a shared library
|
|
494
|
+
- feature; extract common service integration code into a shared library
|
|
495
|
+
([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.7",
|
|
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.1.0",
|
|
38
|
+
"@atlaskit/react-ufo": "^3.0.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)
|