@atlaskit/outbound-auth-flow-client 3.4.5 → 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,118 +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
+
25
+ ## 3.4.6
26
+
27
+ ### Patch Changes
28
+
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`
32
+
3
33
  ## 3.4.5
4
34
 
5
35
  ### Patch Changes
6
36
 
7
- - [#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
8
40
 
9
41
  ## 3.4.4
10
42
 
11
43
  ### Patch Changes
12
44
 
13
- - [#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.
14
48
 
15
49
  ## 3.4.3
16
50
 
17
51
  ### Patch Changes
18
52
 
19
- - [#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
20
56
 
21
57
  ## 3.4.2
22
58
 
23
59
  ### Patch Changes
24
60
 
25
- - [#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
26
64
 
27
65
  ## 3.4.1
28
66
 
29
67
  ### Patch Changes
30
68
 
31
- - [#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`
32
72
 
33
73
  ## 3.4.0
34
74
 
35
75
  ### Minor Changes
36
76
 
37
- - [#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
38
80
 
39
81
  ## 3.3.3
40
82
 
41
83
  ### Patch Changes
42
84
 
43
- - [#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`
44
88
 
45
89
  ## 3.3.2
46
90
 
47
91
  ### Patch Changes
48
92
 
49
- - [#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`.
50
96
 
51
97
  ## 3.3.1
52
98
 
53
99
  ### Patch Changes
54
100
 
55
- - [#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
56
104
 
57
105
  ## 3.3.0
58
106
 
59
107
  ### Minor Changes
60
108
 
61
- - [#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
62
112
 
63
113
  ## 3.2.1
64
114
 
65
115
  ### Patch Changes
66
116
 
67
- - [#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
68
120
 
69
121
  ## 3.2.0
70
122
 
71
123
  ### Minor Changes
72
124
 
73
- - [#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
74
128
 
75
129
  ## 3.1.2
76
130
 
77
131
  ### Patch Changes
78
132
 
79
- - [#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.
80
- This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
81
- 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.
82
139
 
83
140
  ## 3.1.1
84
141
 
85
142
  ### Patch Changes
86
143
 
87
- - [#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
88
147
 
89
- Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
90
- 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.
91
150
 
92
151
  ## 3.1.0
93
152
 
94
153
  ### Minor Changes
95
154
 
96
- - [#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
97
158
 
98
159
  ## 3.0.0
99
160
 
100
161
  ### Major Changes
101
162
 
102
- - [#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.
103
- 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
104
168
 
105
169
  ## 2.0.11
106
170
 
107
171
  ### Patch Changes
108
172
 
109
- - [#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
110
176
 
111
177
  ## 2.0.10
112
178
 
113
179
  ### Patch Changes
114
180
 
115
- - [#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
116
184
 
117
185
  ## 2.0.9
118
186
 
@@ -120,8 +188,8 @@
120
188
 
121
189
  - [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
122
190
 
123
- Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
124
-
191
+ Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
192
+ [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
125
193
  - @atlaskit/docs@8.3.2
126
194
 
127
195
  ## 2.0.8
@@ -138,7 +206,8 @@
138
206
 
139
207
  - [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
140
208
 
141
- 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
142
211
 
143
212
  ## 2.0.6
144
213
 
@@ -171,40 +240,40 @@
171
240
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
172
241
 
173
242
  In this PR, we are:
174
-
175
243
  - Re-introducing dist build folders
176
244
  - Adding back cjs
177
245
  - Replacing es5 by cjs and es2015 by esm
178
246
  - Creating folders at the root for entry-points
179
- - Removing the generation of the entry-points at the root
180
- 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
181
251
 
182
252
  ## 2.0.2
183
253
 
184
- - 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):
185
256
  - @atlaskit/docs@8.0.0
186
257
 
187
258
  ## 2.0.1
188
259
 
189
260
  - [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
190
-
191
261
  - Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
192
262
 
193
263
  ## 2.0.0
194
264
 
195
265
  - [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
196
-
197
266
  - Dropped ES5 distributables from the typescript packages
198
267
 
199
268
  ## 1.0.4
200
269
 
201
- - 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):
202
272
  - @atlaskit/docs@7.0.0
203
273
 
204
274
  ## 1.0.3
205
275
 
206
276
  - [patch][63acecf699](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/63acecf699):
207
-
208
277
  - Fix output module target for @atlaskit/outbound-auth-flow-client
209
278
 
210
279
  ## 1.0.2
@@ -218,4 +287,5 @@
218
287
 
219
288
  ## 1.0.0
220
289
 
221
- - [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); }; }
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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
+ 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); }; }
8
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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
+ 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 <4.9": {
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.5",
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",
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": "~4.9.5"
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 <4.9": {
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;