@atlaskit/outbound-auth-flow-client 3.4.6 → 4.1.0
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 +107 -36
- package/afm-cc/tsconfig.json +24 -20
- package/afm-products/tsconfig.json +25 -0
- package/auth/package.json +7 -0
- package/compass.yml +38 -0
- package/dist/cjs/auth.js +60 -0
- package/dist/cjs/error.js +4 -5
- package/dist/cjs/index.js +8 -55
- package/dist/es2019/auth.js +54 -0
- package/dist/es2019/index.js +1 -54
- package/dist/esm/auth.js +53 -0
- package/dist/esm/error.js +4 -5
- package/dist/esm/index.js +1 -53
- package/dist/{types-ts4.5/index.d.ts → types/auth.d.ts} +0 -1
- package/dist/types/error.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/docs/0-intro.tsx +2 -1
- package/error/package.json +1 -8
- package/package.json +28 -50
- package/report.api.md +16 -15
- package/tsconfig.json +7 -4
- package/types/package.json +1 -8
- package/build/tsconfig.json +0 -17
- package/dist/types-ts4.5/error.d.ts +0 -6
- package/dist/types-ts4.5/types.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,124 +1,193 @@
|
|
|
1
1
|
# @atlaskit/outbound-auth-flow-client
|
|
2
2
|
|
|
3
|
+
## 4.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c98e0cf5cc4f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c98e0cf5cc4f6) -
|
|
8
|
+
Autofix: add explicit package exports (barrel removal)
|
|
9
|
+
|
|
10
|
+
## 4.0.0
|
|
11
|
+
|
|
12
|
+
### Major Changes
|
|
13
|
+
|
|
14
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
15
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
16
|
+
|
|
17
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
18
|
+
|
|
19
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
20
|
+
|
|
21
|
+
```diff
|
|
22
|
+
- "typesVersions": {
|
|
23
|
+
- ">=4.5 <4.9": {
|
|
24
|
+
- "*": [
|
|
25
|
+
- "dist/types-ts4.5/*",
|
|
26
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
27
|
+
- ]
|
|
28
|
+
- }
|
|
29
|
+
- },
|
|
30
|
+
```
|
|
31
|
+
|
|
3
32
|
## 3.4.6
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
6
35
|
|
|
7
|
-
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
36
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
37
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
38
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
39
|
|
|
9
40
|
## 3.4.5
|
|
10
41
|
|
|
11
42
|
### Patch Changes
|
|
12
43
|
|
|
13
|
-
- [#66006](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66006)
|
|
44
|
+
- [#66006](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66006)
|
|
45
|
+
[`958d8680bd69`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/958d8680bd69) -
|
|
46
|
+
Migrate @atlaskit/outbound-auth-flow-client to use declarative entry points
|
|
14
47
|
|
|
15
48
|
## 3.4.4
|
|
16
49
|
|
|
17
50
|
### Patch Changes
|
|
18
51
|
|
|
19
|
-
- [#39492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39492)
|
|
52
|
+
- [#39492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39492)
|
|
53
|
+
[`3b1e84fa050`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3b1e84fa050) - Enrol
|
|
54
|
+
components on push-model consumpion in Jira Frontend.
|
|
20
55
|
|
|
21
56
|
## 3.4.3
|
|
22
57
|
|
|
23
58
|
### Patch Changes
|
|
24
59
|
|
|
25
|
-
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
60
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
61
|
+
[`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete
|
|
62
|
+
version.json
|
|
26
63
|
|
|
27
64
|
## 3.4.2
|
|
28
65
|
|
|
29
66
|
### Patch Changes
|
|
30
67
|
|
|
31
|
-
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
68
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
69
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
70
|
+
legacy types are published for TS 4.5-4.8
|
|
32
71
|
|
|
33
72
|
## 3.4.1
|
|
34
73
|
|
|
35
74
|
### Patch Changes
|
|
36
75
|
|
|
37
|
-
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
76
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
77
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
78
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
38
79
|
|
|
39
80
|
## 3.4.0
|
|
40
81
|
|
|
41
82
|
### Minor Changes
|
|
42
83
|
|
|
43
|
-
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
84
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
85
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
86
|
+
minor dependency bump
|
|
44
87
|
|
|
45
88
|
## 3.3.3
|
|
46
89
|
|
|
47
90
|
### Patch Changes
|
|
48
91
|
|
|
49
|
-
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
92
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
93
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
|
|
94
|
+
Typescript from `4.3.5` to `4.5.5`
|
|
50
95
|
|
|
51
96
|
## 3.3.2
|
|
52
97
|
|
|
53
98
|
### Patch Changes
|
|
54
99
|
|
|
55
|
-
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
100
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
101
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
|
|
102
|
+
Typescript from `4.2.4` to `4.3.5`.
|
|
56
103
|
|
|
57
104
|
## 3.3.1
|
|
58
105
|
|
|
59
106
|
### Patch Changes
|
|
60
107
|
|
|
61
|
-
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
108
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
109
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
|
|
110
|
+
to TypeScript 4.2.4
|
|
62
111
|
|
|
63
112
|
## 3.3.0
|
|
64
113
|
|
|
65
114
|
### Minor Changes
|
|
66
115
|
|
|
67
|
-
- [#16441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16441)
|
|
116
|
+
- [#16441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16441)
|
|
117
|
+
[`65cad419e85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65cad419e85) - Add
|
|
118
|
+
'AuthClientOAuth2.AuthError' error type
|
|
68
119
|
|
|
69
120
|
## 3.2.1
|
|
70
121
|
|
|
71
122
|
### Patch Changes
|
|
72
123
|
|
|
73
|
-
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
124
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
125
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
|
|
126
|
+
packages using babel rather than tsc
|
|
74
127
|
|
|
75
128
|
## 3.2.0
|
|
76
129
|
|
|
77
130
|
### Minor Changes
|
|
78
131
|
|
|
79
|
-
- [#6150](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6150)
|
|
132
|
+
- [#6150](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6150)
|
|
133
|
+
[`ea1bb06612`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea1bb06612) - Added
|
|
134
|
+
abilitiy to pass window features when calling auth
|
|
80
135
|
|
|
81
136
|
## 3.1.2
|
|
82
137
|
|
|
83
138
|
### Patch Changes
|
|
84
139
|
|
|
85
|
-
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
86
|
-
|
|
87
|
-
|
|
140
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
141
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
142
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
143
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
|
|
144
|
+
versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
145
|
+
`devDependencies` to denote version that the package was built with.
|
|
88
146
|
|
|
89
147
|
## 3.1.1
|
|
90
148
|
|
|
91
149
|
### Patch Changes
|
|
92
150
|
|
|
93
|
-
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
151
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
152
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
153
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
94
154
|
|
|
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.
|
|
155
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
156
|
+
upgrade to prevent duplicates of tslib being bundled.
|
|
97
157
|
|
|
98
158
|
## 3.1.0
|
|
99
159
|
|
|
100
160
|
### Minor Changes
|
|
101
161
|
|
|
102
|
-
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428)
|
|
162
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428)
|
|
163
|
+
[`4c8eb0ba4a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c8eb0ba4a) - Add custom
|
|
164
|
+
AuthError and AuthErrorType
|
|
103
165
|
|
|
104
166
|
## 3.0.0
|
|
105
167
|
|
|
106
168
|
### Major Changes
|
|
107
169
|
|
|
108
|
-
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
109
|
-
|
|
170
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
171
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
|
|
172
|
+
dropping IE11 support, from this version onwards there are no warranties of the package working in
|
|
173
|
+
IE11. For more information see:
|
|
174
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
110
175
|
|
|
111
176
|
## 2.0.11
|
|
112
177
|
|
|
113
178
|
### Patch Changes
|
|
114
179
|
|
|
115
|
-
- [#2731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2731)
|
|
180
|
+
- [#2731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2731)
|
|
181
|
+
[`a5815adf37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5815adf37) - Fixed
|
|
182
|
+
es2019 distributable missing a version.json file
|
|
116
183
|
|
|
117
184
|
## 2.0.10
|
|
118
185
|
|
|
119
186
|
### Patch Changes
|
|
120
187
|
|
|
121
|
-
- [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099)
|
|
188
|
+
- [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099)
|
|
189
|
+
[`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add
|
|
190
|
+
missing tslib dependency
|
|
122
191
|
|
|
123
192
|
## 2.0.9
|
|
124
193
|
|
|
@@ -126,8 +195,8 @@
|
|
|
126
195
|
|
|
127
196
|
- [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
128
197
|
|
|
129
|
-
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
130
|
-
|
|
198
|
+
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
199
|
+
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
131
200
|
- @atlaskit/docs@8.3.2
|
|
132
201
|
|
|
133
202
|
## 2.0.8
|
|
@@ -144,7 +213,8 @@
|
|
|
144
213
|
|
|
145
214
|
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
|
|
146
215
|
|
|
147
|
-
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
216
|
+
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
217
|
+
non-relative imports as relative imports
|
|
148
218
|
|
|
149
219
|
## 2.0.6
|
|
150
220
|
|
|
@@ -177,40 +247,40 @@
|
|
|
177
247
|
- [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
|
|
178
248
|
|
|
179
249
|
In this PR, we are:
|
|
180
|
-
|
|
181
250
|
- Re-introducing dist build folders
|
|
182
251
|
- Adding back cjs
|
|
183
252
|
- Replacing es5 by cjs and es2015 by esm
|
|
184
253
|
- Creating folders at the root for entry-points
|
|
185
|
-
- Removing the generation of the entry-points at the root
|
|
186
|
-
|
|
254
|
+
- Removing the generation of the entry-points at the root Please see this
|
|
255
|
+
[ticket](https://product-fabric.atlassian.net/browse/BUILDTOOLS-118) or this
|
|
256
|
+
[page](https://hello.atlassian.net/wiki/spaces/FED/pages/452325500/Finishing+Atlaskit+multiple+entry+points)
|
|
257
|
+
for further details
|
|
187
258
|
|
|
188
259
|
## 2.0.2
|
|
189
260
|
|
|
190
|
-
- Updated dependencies
|
|
261
|
+
- Updated dependencies
|
|
262
|
+
[7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
191
263
|
- @atlaskit/docs@8.0.0
|
|
192
264
|
|
|
193
265
|
## 2.0.1
|
|
194
266
|
|
|
195
267
|
- [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
|
|
196
|
-
|
|
197
268
|
- Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
|
|
198
269
|
|
|
199
270
|
## 2.0.0
|
|
200
271
|
|
|
201
272
|
- [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
|
|
202
|
-
|
|
203
273
|
- Dropped ES5 distributables from the typescript packages
|
|
204
274
|
|
|
205
275
|
## 1.0.4
|
|
206
276
|
|
|
207
|
-
- Updated dependencies
|
|
277
|
+
- Updated dependencies
|
|
278
|
+
[76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
|
|
208
279
|
- @atlaskit/docs@7.0.0
|
|
209
280
|
|
|
210
281
|
## 1.0.3
|
|
211
282
|
|
|
212
283
|
- [patch][63acecf699](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/63acecf699):
|
|
213
|
-
|
|
214
284
|
- Fix output module target for @atlaskit/outbound-auth-flow-client
|
|
215
285
|
|
|
216
286
|
## 1.0.2
|
|
@@ -224,4 +294,5 @@
|
|
|
224
294
|
|
|
225
295
|
## 1.0.0
|
|
226
296
|
|
|
227
|
-
- [major] Add @atlaskit/outbound-auth-flow-client
|
|
297
|
+
- [major] Add @atlaskit/outbound-auth-flow-client
|
|
298
|
+
[2ebc128](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2ebc128)
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../../../../../confluence/tsDist/@atlaskit__outbound-auth-flow-client",
|
|
5
|
+
"rootDir": "../",
|
|
6
|
+
"composite": true,
|
|
7
|
+
"noCheck": true
|
|
8
|
+
},
|
|
9
|
+
"include": [
|
|
10
|
+
"../src/**/*.ts",
|
|
11
|
+
"../src/**/*.tsx"
|
|
12
|
+
],
|
|
13
|
+
"exclude": [
|
|
14
|
+
"../src/**/__tests__/*",
|
|
15
|
+
"../src/**/*.test.*",
|
|
16
|
+
"../src/**/test.*",
|
|
17
|
+
"../src/**/examples.*",
|
|
18
|
+
"../src/**/examples/*",
|
|
19
|
+
"../src/**/examples/**/*",
|
|
20
|
+
"../src/**/*.stories.*",
|
|
21
|
+
"../src/**/stories/*",
|
|
22
|
+
"../src/**/stories/**/*"
|
|
23
|
+
],
|
|
24
|
+
"references": []
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../../../../../tsDist/@atlaskit__outbound-auth-flow-client/app",
|
|
5
|
+
"rootDir": "../",
|
|
6
|
+
"composite": true,
|
|
7
|
+
"noCheck": true
|
|
8
|
+
},
|
|
9
|
+
"include": [
|
|
10
|
+
"../src/**/*.ts",
|
|
11
|
+
"../src/**/*.tsx"
|
|
12
|
+
],
|
|
13
|
+
"exclude": [
|
|
14
|
+
"../src/**/__tests__/*",
|
|
15
|
+
"../src/**/*.test.*",
|
|
16
|
+
"../src/**/test.*",
|
|
17
|
+
"../src/**/examples.*",
|
|
18
|
+
"../src/**/examples/*",
|
|
19
|
+
"../src/**/examples/**/*",
|
|
20
|
+
"../src/**/*.stories.*",
|
|
21
|
+
"../src/**/stories/*",
|
|
22
|
+
"../src/**/stories/**/*"
|
|
23
|
+
],
|
|
24
|
+
"references": []
|
|
25
|
+
}
|
package/compass.yml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
configVersion: 1
|
|
2
|
+
id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/4cfc0a69-dee3-46aa-b062-5c90ca40cfb5
|
|
3
|
+
name: '@atlaskit/outbound-auth-flow-client'
|
|
4
|
+
ownerId: ari:cloud:identity::team/248e452a-058e-426f-8cc3-fdd7022ae84f # Eng - Ecosystem - Enterprise (Robert Massaioli)
|
|
5
|
+
labels:
|
|
6
|
+
- platform-code
|
|
7
|
+
- platform-afm
|
|
8
|
+
typeId: OTHER
|
|
9
|
+
fields:
|
|
10
|
+
tier: 4
|
|
11
|
+
lifecycle: Active
|
|
12
|
+
isMonorepoProject: true
|
|
13
|
+
links:
|
|
14
|
+
- name: Root Repository
|
|
15
|
+
type: REPOSITORY
|
|
16
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
17
|
+
- name: Slack Channel
|
|
18
|
+
type: CHAT_CHANNEL
|
|
19
|
+
url: https://atlassian.enterprise.slack.com/archives/CP01WF9AM # #help-eco-capabilities
|
|
20
|
+
- name: Outbound Auth Flow Client
|
|
21
|
+
type: REPOSITORY
|
|
22
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/teamwork-ecosystem/outbound-auth-flow-client
|
|
23
|
+
customFields:
|
|
24
|
+
- name: Department
|
|
25
|
+
type: text
|
|
26
|
+
value: Eng - Ecosystem - OneCloud Build
|
|
27
|
+
- name: Technical Owner
|
|
28
|
+
type: user
|
|
29
|
+
value: ari:cloud:identity::user/557057:9eb9edaf-b755-4dd1-ab28-5c3f68948790 # Robert Massaioli
|
|
30
|
+
- name: Required Reviewers Opt In
|
|
31
|
+
type: boolean
|
|
32
|
+
value: true
|
|
33
|
+
- name: Reviewer Selection Mechanism
|
|
34
|
+
type: text
|
|
35
|
+
value: random(2)
|
|
36
|
+
- name: Required Reviewer Approvals
|
|
37
|
+
type: number
|
|
38
|
+
value: 1
|
package/dist/cjs/auth.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.auth = auth;
|
|
8
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
+
var _error = require("./error");
|
|
10
|
+
var _types = require("./types");
|
|
11
|
+
function auth(startUrl, windowFeatures) {
|
|
12
|
+
return new Promise(function (resolve, reject) {
|
|
13
|
+
var authWindow = null;
|
|
14
|
+
var authWindowInterval;
|
|
15
|
+
var handleAuthWindowMessage = function handleAuthWindowMessage(event) {
|
|
16
|
+
if (event.source !== authWindow) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
var data = event.data;
|
|
20
|
+
if ((0, _typeof2.default)(data) !== 'object') {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
switch (data.type) {
|
|
24
|
+
case 'outbound-auth:success':
|
|
25
|
+
finish();
|
|
26
|
+
resolve();
|
|
27
|
+
break;
|
|
28
|
+
case 'outbound-auth:failure':
|
|
29
|
+
finish();
|
|
30
|
+
var errorType = data.errorType.toLowerCase();
|
|
31
|
+
if ((0, _types.isOfTypeAuthError)(errorType)) {
|
|
32
|
+
reject(new _error.AuthError(data.message, errorType));
|
|
33
|
+
} else {
|
|
34
|
+
reject(new _error.AuthError(data.message));
|
|
35
|
+
}
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var handleAuthWindowInterval = function handleAuthWindowInterval() {
|
|
40
|
+
if (authWindow && authWindow.closed) {
|
|
41
|
+
finish();
|
|
42
|
+
reject(new _error.AuthError('The auth window was closed', 'auth_window_closed'));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var start = function start() {
|
|
46
|
+
window.addEventListener('message', handleAuthWindowMessage);
|
|
47
|
+
authWindow = window.open(startUrl, startUrl, windowFeatures);
|
|
48
|
+
authWindowInterval = window.setInterval(handleAuthWindowInterval, 500);
|
|
49
|
+
};
|
|
50
|
+
var finish = function finish() {
|
|
51
|
+
clearInterval(authWindowInterval);
|
|
52
|
+
window.removeEventListener('message', handleAuthWindowMessage);
|
|
53
|
+
if (authWindow) {
|
|
54
|
+
authWindow.close();
|
|
55
|
+
authWindow = null;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
start();
|
|
59
|
+
});
|
|
60
|
+
}
|
package/dist/cjs/error.js
CHANGED
|
@@ -7,19 +7,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.AuthError = void 0;
|
|
8
8
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
|
|
14
|
-
function
|
|
14
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
15
15
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
16
|
var AuthError = exports.AuthError = /*#__PURE__*/function (_Error) {
|
|
17
|
-
(0, _inherits2.default)(AuthError, _Error);
|
|
18
|
-
var _super = _createSuper(AuthError);
|
|
19
17
|
function AuthError(message, type) {
|
|
20
18
|
var _this;
|
|
21
19
|
(0, _classCallCheck2.default)(this, AuthError);
|
|
22
|
-
_this =
|
|
20
|
+
_this = _callSuper(this, AuthError, [message]);
|
|
23
21
|
_this.message = message;
|
|
24
22
|
_this.type = type;
|
|
25
23
|
_this.name = 'AuthError';
|
|
@@ -27,5 +25,6 @@ var AuthError = exports.AuthError = /*#__PURE__*/function (_Error) {
|
|
|
27
25
|
_this.message = message;
|
|
28
26
|
return _this;
|
|
29
27
|
}
|
|
28
|
+
(0, _inherits2.default)(AuthError, _Error);
|
|
30
29
|
return (0, _createClass2.default)(AuthError);
|
|
31
30
|
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -10,57 +9,11 @@ Object.defineProperty(exports, "AuthError", {
|
|
|
10
9
|
return _error.AuthError;
|
|
11
10
|
}
|
|
12
11
|
});
|
|
13
|
-
exports
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var handleAuthWindowMessage = function handleAuthWindowMessage(event) {
|
|
22
|
-
if (event.source !== authWindow) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
var data = event.data;
|
|
26
|
-
if ((0, _typeof2.default)(data) !== 'object') {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
switch (data.type) {
|
|
30
|
-
case 'outbound-auth:success':
|
|
31
|
-
finish();
|
|
32
|
-
resolve();
|
|
33
|
-
break;
|
|
34
|
-
case 'outbound-auth:failure':
|
|
35
|
-
finish();
|
|
36
|
-
var errorType = data.errorType.toLowerCase();
|
|
37
|
-
if ((0, _types.isOfTypeAuthError)(errorType)) {
|
|
38
|
-
reject(new _error.AuthError(data.message, errorType));
|
|
39
|
-
} else {
|
|
40
|
-
reject(new _error.AuthError(data.message));
|
|
41
|
-
}
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
var handleAuthWindowInterval = function handleAuthWindowInterval() {
|
|
46
|
-
if (authWindow && authWindow.closed) {
|
|
47
|
-
finish();
|
|
48
|
-
reject(new _error.AuthError('The auth window was closed', 'auth_window_closed'));
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
var start = function start() {
|
|
52
|
-
window.addEventListener('message', handleAuthWindowMessage);
|
|
53
|
-
authWindow = window.open(startUrl, startUrl, windowFeatures);
|
|
54
|
-
authWindowInterval = window.setInterval(handleAuthWindowInterval, 500);
|
|
55
|
-
};
|
|
56
|
-
var finish = function finish() {
|
|
57
|
-
clearInterval(authWindowInterval);
|
|
58
|
-
window.removeEventListener('message', handleAuthWindowMessage);
|
|
59
|
-
if (authWindow) {
|
|
60
|
-
authWindow.close();
|
|
61
|
-
authWindow = null;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
start();
|
|
65
|
-
});
|
|
66
|
-
}
|
|
12
|
+
Object.defineProperty(exports, "auth", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _auth.auth;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _auth = require("./auth");
|
|
19
|
+
var _error = require("./error");
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { AuthError } from './error';
|
|
2
|
+
import { isOfTypeAuthError } from './types';
|
|
3
|
+
export function auth(startUrl, windowFeatures) {
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
let authWindow = null;
|
|
6
|
+
let authWindowInterval;
|
|
7
|
+
const handleAuthWindowMessage = event => {
|
|
8
|
+
if (event.source !== authWindow) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const {
|
|
12
|
+
data
|
|
13
|
+
} = event;
|
|
14
|
+
if (typeof data !== 'object') {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
switch (data.type) {
|
|
18
|
+
case 'outbound-auth:success':
|
|
19
|
+
finish();
|
|
20
|
+
resolve();
|
|
21
|
+
break;
|
|
22
|
+
case 'outbound-auth:failure':
|
|
23
|
+
finish();
|
|
24
|
+
const errorType = data.errorType.toLowerCase();
|
|
25
|
+
if (isOfTypeAuthError(errorType)) {
|
|
26
|
+
reject(new AuthError(data.message, errorType));
|
|
27
|
+
} else {
|
|
28
|
+
reject(new AuthError(data.message));
|
|
29
|
+
}
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const handleAuthWindowInterval = () => {
|
|
34
|
+
if (authWindow && authWindow.closed) {
|
|
35
|
+
finish();
|
|
36
|
+
reject(new AuthError('The auth window was closed', 'auth_window_closed'));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const start = () => {
|
|
40
|
+
window.addEventListener('message', handleAuthWindowMessage);
|
|
41
|
+
authWindow = window.open(startUrl, startUrl, windowFeatures);
|
|
42
|
+
authWindowInterval = window.setInterval(handleAuthWindowInterval, 500);
|
|
43
|
+
};
|
|
44
|
+
const finish = () => {
|
|
45
|
+
clearInterval(authWindowInterval);
|
|
46
|
+
window.removeEventListener('message', handleAuthWindowMessage);
|
|
47
|
+
if (authWindow) {
|
|
48
|
+
authWindow.close();
|
|
49
|
+
authWindow = null;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
start();
|
|
53
|
+
});
|
|
54
|
+
}
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,55 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { isOfTypeAuthError } from './types';
|
|
3
|
-
export function auth(startUrl, windowFeatures) {
|
|
4
|
-
return new Promise((resolve, reject) => {
|
|
5
|
-
let authWindow = null;
|
|
6
|
-
let authWindowInterval;
|
|
7
|
-
const handleAuthWindowMessage = event => {
|
|
8
|
-
if (event.source !== authWindow) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
const {
|
|
12
|
-
data
|
|
13
|
-
} = event;
|
|
14
|
-
if (typeof data !== 'object') {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
switch (data.type) {
|
|
18
|
-
case 'outbound-auth:success':
|
|
19
|
-
finish();
|
|
20
|
-
resolve();
|
|
21
|
-
break;
|
|
22
|
-
case 'outbound-auth:failure':
|
|
23
|
-
finish();
|
|
24
|
-
const errorType = data.errorType.toLowerCase();
|
|
25
|
-
if (isOfTypeAuthError(errorType)) {
|
|
26
|
-
reject(new AuthError(data.message, errorType));
|
|
27
|
-
} else {
|
|
28
|
-
reject(new AuthError(data.message));
|
|
29
|
-
}
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const handleAuthWindowInterval = () => {
|
|
34
|
-
if (authWindow && authWindow.closed) {
|
|
35
|
-
finish();
|
|
36
|
-
reject(new AuthError('The auth window was closed', 'auth_window_closed'));
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const start = () => {
|
|
40
|
-
window.addEventListener('message', handleAuthWindowMessage);
|
|
41
|
-
authWindow = window.open(startUrl, startUrl, windowFeatures);
|
|
42
|
-
authWindowInterval = window.setInterval(handleAuthWindowInterval, 500);
|
|
43
|
-
};
|
|
44
|
-
const finish = () => {
|
|
45
|
-
clearInterval(authWindowInterval);
|
|
46
|
-
window.removeEventListener('message', handleAuthWindowMessage);
|
|
47
|
-
if (authWindow) {
|
|
48
|
-
authWindow.close();
|
|
49
|
-
authWindow = null;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
start();
|
|
53
|
-
});
|
|
54
|
-
}
|
|
1
|
+
export { auth } from './auth';
|
|
55
2
|
export { AuthError } from './error';
|
package/dist/esm/auth.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
+
import { AuthError } from './error';
|
|
3
|
+
import { isOfTypeAuthError } from './types';
|
|
4
|
+
export function auth(startUrl, windowFeatures) {
|
|
5
|
+
return new Promise(function (resolve, reject) {
|
|
6
|
+
var authWindow = null;
|
|
7
|
+
var authWindowInterval;
|
|
8
|
+
var handleAuthWindowMessage = function handleAuthWindowMessage(event) {
|
|
9
|
+
if (event.source !== authWindow) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
var data = event.data;
|
|
13
|
+
if (_typeof(data) !== 'object') {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
switch (data.type) {
|
|
17
|
+
case 'outbound-auth:success':
|
|
18
|
+
finish();
|
|
19
|
+
resolve();
|
|
20
|
+
break;
|
|
21
|
+
case 'outbound-auth:failure':
|
|
22
|
+
finish();
|
|
23
|
+
var errorType = data.errorType.toLowerCase();
|
|
24
|
+
if (isOfTypeAuthError(errorType)) {
|
|
25
|
+
reject(new AuthError(data.message, errorType));
|
|
26
|
+
} else {
|
|
27
|
+
reject(new AuthError(data.message));
|
|
28
|
+
}
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var handleAuthWindowInterval = function handleAuthWindowInterval() {
|
|
33
|
+
if (authWindow && authWindow.closed) {
|
|
34
|
+
finish();
|
|
35
|
+
reject(new AuthError('The auth window was closed', 'auth_window_closed'));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var start = function start() {
|
|
39
|
+
window.addEventListener('message', handleAuthWindowMessage);
|
|
40
|
+
authWindow = window.open(startUrl, startUrl, windowFeatures);
|
|
41
|
+
authWindowInterval = window.setInterval(handleAuthWindowInterval, 500);
|
|
42
|
+
};
|
|
43
|
+
var finish = function finish() {
|
|
44
|
+
clearInterval(authWindowInterval);
|
|
45
|
+
window.removeEventListener('message', handleAuthWindowMessage);
|
|
46
|
+
if (authWindow) {
|
|
47
|
+
authWindow.close();
|
|
48
|
+
authWindow = null;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
start();
|
|
52
|
+
});
|
|
53
|
+
}
|
package/dist/esm/error.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
6
|
import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
|
|
7
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
export var AuthError = /*#__PURE__*/function (_Error) {
|
|
10
|
-
_inherits(AuthError, _Error);
|
|
11
|
-
var _super = _createSuper(AuthError);
|
|
12
10
|
function AuthError(message, type) {
|
|
13
11
|
var _this;
|
|
14
12
|
_classCallCheck(this, AuthError);
|
|
15
|
-
_this =
|
|
13
|
+
_this = _callSuper(this, AuthError, [message]);
|
|
16
14
|
_this.message = message;
|
|
17
15
|
_this.type = type;
|
|
18
16
|
_this.name = 'AuthError';
|
|
@@ -20,5 +18,6 @@ export var AuthError = /*#__PURE__*/function (_Error) {
|
|
|
20
18
|
_this.message = message;
|
|
21
19
|
return _this;
|
|
22
20
|
}
|
|
21
|
+
_inherits(AuthError, _Error);
|
|
23
22
|
return _createClass(AuthError);
|
|
24
23
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
package/dist/esm/index.js
CHANGED
|
@@ -1,54 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { AuthError } from './error';
|
|
3
|
-
import { isOfTypeAuthError } from './types';
|
|
4
|
-
export function auth(startUrl, windowFeatures) {
|
|
5
|
-
return new Promise(function (resolve, reject) {
|
|
6
|
-
var authWindow = null;
|
|
7
|
-
var authWindowInterval;
|
|
8
|
-
var handleAuthWindowMessage = function handleAuthWindowMessage(event) {
|
|
9
|
-
if (event.source !== authWindow) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
var data = event.data;
|
|
13
|
-
if (_typeof(data) !== 'object') {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
switch (data.type) {
|
|
17
|
-
case 'outbound-auth:success':
|
|
18
|
-
finish();
|
|
19
|
-
resolve();
|
|
20
|
-
break;
|
|
21
|
-
case 'outbound-auth:failure':
|
|
22
|
-
finish();
|
|
23
|
-
var errorType = data.errorType.toLowerCase();
|
|
24
|
-
if (isOfTypeAuthError(errorType)) {
|
|
25
|
-
reject(new AuthError(data.message, errorType));
|
|
26
|
-
} else {
|
|
27
|
-
reject(new AuthError(data.message));
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
var handleAuthWindowInterval = function handleAuthWindowInterval() {
|
|
33
|
-
if (authWindow && authWindow.closed) {
|
|
34
|
-
finish();
|
|
35
|
-
reject(new AuthError('The auth window was closed', 'auth_window_closed'));
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var start = function start() {
|
|
39
|
-
window.addEventListener('message', handleAuthWindowMessage);
|
|
40
|
-
authWindow = window.open(startUrl, startUrl, windowFeatures);
|
|
41
|
-
authWindowInterval = window.setInterval(handleAuthWindowInterval, 500);
|
|
42
|
-
};
|
|
43
|
-
var finish = function finish() {
|
|
44
|
-
clearInterval(authWindowInterval);
|
|
45
|
-
window.removeEventListener('message', handleAuthWindowMessage);
|
|
46
|
-
if (authWindow) {
|
|
47
|
-
authWindow.close();
|
|
48
|
-
authWindow = null;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
start();
|
|
52
|
-
});
|
|
53
|
-
}
|
|
1
|
+
export { auth } from './auth';
|
|
54
2
|
export { AuthError } from './error';
|
package/dist/types/error.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { auth } from './auth';
|
|
2
2
|
export { AuthError } from './error';
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { md, code } from '@atlaskit/docs';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const _default_1: any = md`
|
|
4
4
|
# @atlaskit/outbound-auth-flow-client
|
|
5
5
|
|
|
6
6
|
Autenticate with \`outbound-auth-flow\` service in a popup.
|
|
@@ -24,3 +24,4 @@ auth(
|
|
|
24
24
|
);
|
|
25
25
|
`}
|
|
26
26
|
`;
|
|
27
|
+
export default _default_1;
|
package/error/package.json
CHANGED
|
@@ -3,12 +3,5 @@
|
|
|
3
3
|
"main": "../dist/cjs/error.js",
|
|
4
4
|
"module": "../dist/esm/error.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/error.js",
|
|
6
|
-
"types": "../dist/types/error.d.ts"
|
|
7
|
-
"typesVersions": {
|
|
8
|
-
">=4.5 <5.4": {
|
|
9
|
-
"*": [
|
|
10
|
-
"../dist/types-ts4.5/error.d.ts"
|
|
11
|
-
]
|
|
12
|
-
}
|
|
13
|
-
}
|
|
6
|
+
"types": "../dist/types/error.d.ts"
|
|
14
7
|
}
|
package/package.json
CHANGED
|
@@ -1,51 +1,29 @@
|
|
|
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
|
-
"config": {
|
|
32
|
-
"access": "public"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@babel/runtime": "^7.0.0"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
39
|
-
"typescript": "~5.4.2"
|
|
40
|
-
},
|
|
41
|
-
"keywords": [
|
|
42
|
-
"fabric",
|
|
43
|
-
"ui"
|
|
44
|
-
],
|
|
45
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
46
|
-
"af:exports": {
|
|
47
|
-
".": "./src/index.ts",
|
|
48
|
-
"./error": "./src/error.ts",
|
|
49
|
-
"./types": "./src/types.ts"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
2
|
+
"name": "@atlaskit/outbound-auth-flow-client",
|
|
3
|
+
"version": "4.1.0",
|
|
4
|
+
"description": "Front-end library for starting outbound auth flows",
|
|
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
|
+
"atlaskit:src": "src/index.ts",
|
|
16
|
+
"atlassian": {
|
|
17
|
+
"team": "Ecosystem Capabilities"
|
|
18
|
+
},
|
|
19
|
+
"config": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@babel/runtime": "^7.0.0"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"fabric",
|
|
27
|
+
"ui"
|
|
28
|
+
]
|
|
29
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/outbound-auth-flow-client"
|
|
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
|
|
@@ -20,24 +21,24 @@ export function auth(startUrl: string, windowFeatures?: string): Promise<void>;
|
|
|
20
21
|
|
|
21
22
|
// @public (undocumented)
|
|
22
23
|
export class AuthError extends Error {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
constructor(message: string, type?: AuthErrorType | undefined);
|
|
25
|
+
// (undocumented)
|
|
26
|
+
readonly message: string;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
readonly type?: AuthErrorType | undefined;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
// @public (undocumented)
|
|
31
32
|
type AuthErrorType =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
| 'access_denied'
|
|
34
|
+
| 'auth_window_closed'
|
|
35
|
+
| 'authclientoauth2.autherror'
|
|
36
|
+
| 'invalid_request'
|
|
37
|
+
| 'invalid_scope'
|
|
38
|
+
| 'server_error'
|
|
39
|
+
| 'temporarily_unavailable'
|
|
40
|
+
| 'unauthorized_client'
|
|
41
|
+
| 'unsupported_response_type';
|
|
41
42
|
|
|
42
43
|
// (No @packageDocumentation comment for this package)
|
|
43
44
|
```
|
package/tsconfig.json
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": "./"
|
|
4
|
-
},
|
|
5
2
|
"extends": "../../../tsconfig.json",
|
|
6
3
|
"include": [
|
|
7
4
|
"./src/**/*.ts",
|
|
@@ -9,6 +6,12 @@
|
|
|
9
6
|
"./docs/*.ts",
|
|
10
7
|
"./docs/*.tsx",
|
|
11
8
|
"./examples/*.ts",
|
|
12
|
-
"./examples/*.tsx"
|
|
9
|
+
"./examples/*.tsx",
|
|
10
|
+
"**/stories.ts",
|
|
11
|
+
"**/stories.tsx",
|
|
12
|
+
"**/stories/*.ts",
|
|
13
|
+
"**/stories/*.tsx",
|
|
14
|
+
"**/stories/**/*.ts",
|
|
15
|
+
"**/stories/**/*.tsx"
|
|
13
16
|
]
|
|
14
17
|
}
|
package/types/package.json
CHANGED
|
@@ -3,12 +3,5 @@
|
|
|
3
3
|
"main": "../dist/cjs/types.js",
|
|
4
4
|
"module": "../dist/esm/types.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/types.js",
|
|
6
|
-
"types": "../dist/types/types.d.ts"
|
|
7
|
-
"typesVersions": {
|
|
8
|
-
">=4.5 <5.4": {
|
|
9
|
-
"*": [
|
|
10
|
-
"../dist/types-ts4.5/types.d.ts"
|
|
11
|
-
]
|
|
12
|
-
}
|
|
13
|
-
}
|
|
6
|
+
"types": "../dist/types/types.d.ts"
|
|
14
7
|
}
|
package/build/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"paths": {}
|
|
7
|
-
},
|
|
8
|
-
"include": [
|
|
9
|
-
"../src/**/*.ts",
|
|
10
|
-
"../src/**/*.tsx"
|
|
11
|
-
],
|
|
12
|
-
"exclude": [
|
|
13
|
-
"../src/**/__tests__/*",
|
|
14
|
-
"../src/**/*.test.*",
|
|
15
|
-
"../src/**/test.*"
|
|
16
|
-
]
|
|
17
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export type AuthErrorType = 'auth_window_closed' | 'invalid_request' | 'unauthorized_client' | 'access_denied' | 'unsupported_response_type' | 'invalid_scope' | 'server_error' | 'temporarily_unavailable' | 'authclientoauth2.autherror';
|
|
2
|
-
export declare const isOfTypeAuthError: (inputString: string) => inputString is AuthErrorType;
|