@atlaskit/outbound-auth-flow-client 3.4.6 → 4.0.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 CHANGED
@@ -1,124 +1,186 @@
1
1
  # @atlaskit/outbound-auth-flow-client
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
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
+ ```
24
+
3
25
  ## 3.4.6
4
26
 
5
27
  ### Patch Changes
6
28
 
7
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
29
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
30
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
31
+ Upgrade Typescript from `4.9.5` to `5.4.2`
8
32
 
9
33
  ## 3.4.5
10
34
 
11
35
  ### Patch Changes
12
36
 
13
- - [#66006](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66006) [`958d8680bd69`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/958d8680bd69) - Migrate @atlaskit/outbound-auth-flow-client to use declarative entry points
37
+ - [#66006](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66006)
38
+ [`958d8680bd69`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/958d8680bd69) -
39
+ Migrate @atlaskit/outbound-auth-flow-client to use declarative entry points
14
40
 
15
41
  ## 3.4.4
16
42
 
17
43
  ### Patch Changes
18
44
 
19
- - [#39492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39492) [`3b1e84fa050`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3b1e84fa050) - Enrol components on push-model consumpion in Jira Frontend.
45
+ - [#39492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39492)
46
+ [`3b1e84fa050`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3b1e84fa050) - Enrol
47
+ components on push-model consumpion in Jira Frontend.
20
48
 
21
49
  ## 3.4.3
22
50
 
23
51
  ### Patch Changes
24
52
 
25
- - [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
53
+ - [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
54
+ [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete
55
+ version.json
26
56
 
27
57
  ## 3.4.2
28
58
 
29
59
  ### Patch Changes
30
60
 
31
- - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
61
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
62
+ [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
63
+ legacy types are published for TS 4.5-4.8
32
64
 
33
65
  ## 3.4.1
34
66
 
35
67
  ### Patch Changes
36
68
 
37
- - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
69
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
70
+ [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
71
+ Typescript from `4.5.5` to `4.9.5`
38
72
 
39
73
  ## 3.4.0
40
74
 
41
75
  ### Minor Changes
42
76
 
43
- - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
77
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
78
+ [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
79
+ minor dependency bump
44
80
 
45
81
  ## 3.3.3
46
82
 
47
83
  ### Patch Changes
48
84
 
49
- - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
85
+ - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
86
+ [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
87
+ Typescript from `4.3.5` to `4.5.5`
50
88
 
51
89
  ## 3.3.2
52
90
 
53
91
  ### Patch Changes
54
92
 
55
- - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
93
+ - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
94
+ [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
95
+ Typescript from `4.2.4` to `4.3.5`.
56
96
 
57
97
  ## 3.3.1
58
98
 
59
99
  ### Patch Changes
60
100
 
61
- - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
101
+ - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
102
+ [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
103
+ to TypeScript 4.2.4
62
104
 
63
105
  ## 3.3.0
64
106
 
65
107
  ### Minor Changes
66
108
 
67
- - [#16441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16441) [`65cad419e85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65cad419e85) - Add 'AuthClientOAuth2.AuthError' error type
109
+ - [#16441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16441)
110
+ [`65cad419e85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65cad419e85) - Add
111
+ 'AuthClientOAuth2.AuthError' error type
68
112
 
69
113
  ## 3.2.1
70
114
 
71
115
  ### Patch Changes
72
116
 
73
- - [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
117
+ - [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
118
+ [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
119
+ packages using babel rather than tsc
74
120
 
75
121
  ## 3.2.0
76
122
 
77
123
  ### Minor Changes
78
124
 
79
- - [#6150](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6150) [`ea1bb06612`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea1bb06612) - Added abilitiy to pass window features when calling auth
125
+ - [#6150](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6150)
126
+ [`ea1bb06612`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea1bb06612) - Added
127
+ abilitiy to pass window features when calling auth
80
128
 
81
129
  ## 3.1.2
82
130
 
83
131
  ### Patch Changes
84
132
 
85
- - [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
86
- This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
87
- Also add `typescript` to `devDependencies` to denote version that the package was built with.
133
+ - [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
134
+ [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
135
+ types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
136
+ compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
137
+ versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
138
+ `devDependencies` to denote version that the package was built with.
88
139
 
89
140
  ## 3.1.1
90
141
 
91
142
  ### Patch Changes
92
143
 
93
- - [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
144
+ - [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
145
+ [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
146
+ to TypeScript 3.9.6 and tslib to 2.0.0
94
147
 
95
- Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
96
- to prevent duplicates of tslib being bundled.
148
+ Since tslib is a dependency for all our packages we recommend that products also follow this tslib
149
+ upgrade to prevent duplicates of tslib being bundled.
97
150
 
98
151
  ## 3.1.0
99
152
 
100
153
  ### Minor Changes
101
154
 
102
- - [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`4c8eb0ba4a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c8eb0ba4a) - Add custom AuthError and AuthErrorType
155
+ - [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428)
156
+ [`4c8eb0ba4a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c8eb0ba4a) - Add custom
157
+ AuthError and AuthErrorType
103
158
 
104
159
  ## 3.0.0
105
160
 
106
161
  ### Major Changes
107
162
 
108
- - [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
109
- For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
163
+ - [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
164
+ [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
165
+ dropping IE11 support, from this version onwards there are no warranties of the package working in
166
+ IE11. For more information see:
167
+ https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
110
168
 
111
169
  ## 2.0.11
112
170
 
113
171
  ### Patch Changes
114
172
 
115
- - [#2731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2731) [`a5815adf37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5815adf37) - Fixed es2019 distributable missing a version.json file
173
+ - [#2731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2731)
174
+ [`a5815adf37`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5815adf37) - Fixed
175
+ es2019 distributable missing a version.json file
116
176
 
117
177
  ## 2.0.10
118
178
 
119
179
  ### Patch Changes
120
180
 
121
- - [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099) [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
181
+ - [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099)
182
+ [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add
183
+ missing tslib dependency
122
184
 
123
185
  ## 2.0.9
124
186
 
@@ -126,8 +188,8 @@
126
188
 
127
189
  - [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
128
190
 
129
- Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
130
-
191
+ Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
192
+ [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
131
193
  - @atlaskit/docs@8.3.2
132
194
 
133
195
  ## 2.0.8
@@ -144,7 +206,8 @@
144
206
 
145
207
  - [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
146
208
 
147
- Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
209
+ Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
210
+ non-relative imports as relative imports
148
211
 
149
212
  ## 2.0.6
150
213
 
@@ -177,40 +240,40 @@
177
240
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
178
241
 
179
242
  In this PR, we are:
180
-
181
243
  - Re-introducing dist build folders
182
244
  - Adding back cjs
183
245
  - Replacing es5 by cjs and es2015 by esm
184
246
  - Creating folders at the root for entry-points
185
- - Removing the generation of the entry-points at the root
186
- Please see this [ticket](https://product-fabric.atlassian.net/browse/BUILDTOOLS-118) or this [page](https://hello.atlassian.net/wiki/spaces/FED/pages/452325500/Finishing+Atlaskit+multiple+entry+points) for further details
247
+ - Removing the generation of the entry-points at the root Please see this
248
+ [ticket](https://product-fabric.atlassian.net/browse/BUILDTOOLS-118) or this
249
+ [page](https://hello.atlassian.net/wiki/spaces/FED/pages/452325500/Finishing+Atlaskit+multiple+entry+points)
250
+ for further details
187
251
 
188
252
  ## 2.0.2
189
253
 
190
- - Updated dependencies [7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
254
+ - Updated dependencies
255
+ [7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
191
256
  - @atlaskit/docs@8.0.0
192
257
 
193
258
  ## 2.0.1
194
259
 
195
260
  - [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
196
-
197
261
  - Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
198
262
 
199
263
  ## 2.0.0
200
264
 
201
265
  - [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
202
-
203
266
  - Dropped ES5 distributables from the typescript packages
204
267
 
205
268
  ## 1.0.4
206
269
 
207
- - Updated dependencies [76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
270
+ - Updated dependencies
271
+ [76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
208
272
  - @atlaskit/docs@7.0.0
209
273
 
210
274
  ## 1.0.3
211
275
 
212
276
  - [patch][63acecf699](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/63acecf699):
213
-
214
277
  - Fix output module target for @atlaskit/outbound-auth-flow-client
215
278
 
216
279
  ## 1.0.2
@@ -224,4 +287,5 @@
224
287
 
225
288
  ## 1.0.0
226
289
 
227
- - [major] Add @atlaskit/outbound-auth-flow-client [2ebc128](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2ebc128)
290
+ - [major] Add @atlaskit/outbound-auth-flow-client
291
+ [2ebc128](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2ebc128)
@@ -1,21 +1,25 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.confluence.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "composite": true,
7
- "outDir": "../dist",
8
- "rootDir": "../",
9
- "baseUrl": "../"
10
- },
11
- "include": [
12
- "../src/**/*.ts",
13
- "../src/**/*.tsx"
14
- ],
15
- "exclude": [
16
- "../src/**/__tests__/*",
17
- "../src/**/*.test.*",
18
- "../src/**/test.*"
19
- ],
20
- "references": []
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/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 _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
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 = _super.call(this, message);
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/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 _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
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 = _super.call(this, message);
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));
@@ -1,4 +1,4 @@
1
- import { AuthErrorType } from './types';
1
+ import { type AuthErrorType } from './types';
2
2
  export declare class AuthError extends Error {
3
3
  readonly message: string;
4
4
  readonly type?: AuthErrorType | undefined;
package/docs/0-intro.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import { md, code } from '@atlaskit/docs';
2
2
 
3
- export default md`
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;
@@ -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
- "name": "@atlaskit/outbound-auth-flow-client",
3
- "version": "3.4.6",
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
- "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
- "atlassian": {
25
- "team": "Ecosystem Capabilities",
26
- "releaseModel": "continuous",
27
- "productPushConsumption": [
28
- "jira"
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.0.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 [API Extractor](https://api-extractor.com/).
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
- constructor(message: string, type?: AuthErrorType | undefined);
24
- // (undocumented)
25
- readonly message: string;
26
- // (undocumented)
27
- readonly type?: AuthErrorType | undefined;
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
- | 'access_denied'
33
- | 'auth_window_closed'
34
- | 'authclientoauth2.autherror'
35
- | 'invalid_request'
36
- | 'invalid_scope'
37
- | 'server_error'
38
- | 'temporarily_unavailable'
39
- | 'unauthorized_client'
40
- | 'unsupported_response_type';
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
  }
@@ -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
  }
@@ -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,6 +0,0 @@
1
- import { AuthErrorType } from './types';
2
- export declare class AuthError extends Error {
3
- readonly message: string;
4
- readonly type?: AuthErrorType | undefined;
5
- constructor(message: string, type?: AuthErrorType | undefined);
6
- }
@@ -1,2 +0,0 @@
1
- export declare function auth(startUrl: string, windowFeatures?: string): Promise<void>;
2
- export { AuthError } from './error';
@@ -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;