@quiltt/react-native 3.9.7 → 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 +12 -0
- package/dist/index.js +12 -11
- package/package.json +3 -3
- package/src/components/QuilttConnector.tsx +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @quiltt/react-native
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#333](https://github.com/quiltt/quiltt-js/pull/333) [`5afca4a`](https://github.com/quiltt/quiltt-js/commit/5afca4a45f357afbb7f6af02088f86230f351e18) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Migrate to 'Navigate' message for URL handling
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`5afca4a`](https://github.com/quiltt/quiltt-js/commit/5afca4a45f357afbb7f6af02088f86230f351e18)]:
|
|
12
|
+
- @quiltt/core@4.0.0
|
|
13
|
+
- @quiltt/react@4.0.0
|
|
14
|
+
|
|
3
15
|
## 3.9.7
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { URL } from 'react-native-url-polyfill';
|
|
|
9
9
|
import { WebView } from 'react-native-webview';
|
|
10
10
|
import { generateStackTrace, makeBacktrace, getCauses } from '@honeybadger-io/core/build/src/util';
|
|
11
11
|
|
|
12
|
-
var version = "
|
|
12
|
+
var version = "4.0.0";
|
|
13
13
|
|
|
14
14
|
const ErrorReporterConfig = {
|
|
15
15
|
honeybadger_api_key: 'undefined'
|
|
@@ -456,27 +456,28 @@ const QuilttConnector = ({ testId, connectorId, connectionId, institution, oauth
|
|
|
456
456
|
case 'Authenticate':
|
|
457
457
|
console.log('Event: Authenticate');
|
|
458
458
|
break;
|
|
459
|
-
case '
|
|
459
|
+
case 'Navigate':
|
|
460
460
|
{
|
|
461
|
-
console.log('Event:
|
|
462
|
-
const
|
|
463
|
-
if (
|
|
464
|
-
if (isEncoded(
|
|
461
|
+
console.log('Event: Navigate');
|
|
462
|
+
const navigateUrl = url.searchParams.get('url');
|
|
463
|
+
if (navigateUrl) {
|
|
464
|
+
if (isEncoded(navigateUrl)) {
|
|
465
465
|
try {
|
|
466
|
-
const decodedUrl = decodeURIComponent(
|
|
466
|
+
const decodedUrl = decodeURIComponent(navigateUrl);
|
|
467
467
|
handleOAuthUrl(decodedUrl);
|
|
468
468
|
} catch (error) {
|
|
469
|
-
console.error('
|
|
470
|
-
handleOAuthUrl(
|
|
469
|
+
console.error('Navigate URL decoding failed, using original');
|
|
470
|
+
handleOAuthUrl(navigateUrl);
|
|
471
471
|
}
|
|
472
472
|
} else {
|
|
473
|
-
handleOAuthUrl(
|
|
473
|
+
handleOAuthUrl(navigateUrl);
|
|
474
474
|
}
|
|
475
475
|
} else {
|
|
476
|
-
console.error('
|
|
476
|
+
console.error('Navigate URL missing from request');
|
|
477
477
|
}
|
|
478
478
|
break;
|
|
479
479
|
}
|
|
480
|
+
// NOTE: The `OauthRequested` is deprecated and should not be used
|
|
480
481
|
default:
|
|
481
482
|
console.log(`Unhandled event: ${eventType}`);
|
|
482
483
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quiltt/react-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "React Native Components for Quiltt Connector",
|
|
5
5
|
"homepage": "https://github.com/quiltt/quiltt-js/tree/main/packages/react-native#readme",
|
|
6
6
|
"repository": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@honeybadger-io/core": "6.6.0",
|
|
32
32
|
"lodash.debounce": "4.0.8",
|
|
33
|
-
"@quiltt/
|
|
34
|
-
"@quiltt/
|
|
33
|
+
"@quiltt/react": "4.0.0",
|
|
34
|
+
"@quiltt/core": "4.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@biomejs/biome": "1.9.4",
|
|
@@ -247,27 +247,28 @@ const QuilttConnector = ({
|
|
|
247
247
|
console.log('Event: Authenticate')
|
|
248
248
|
// TODO: handle Authenticate
|
|
249
249
|
break
|
|
250
|
-
case '
|
|
251
|
-
console.log('Event:
|
|
252
|
-
const
|
|
250
|
+
case 'Navigate': {
|
|
251
|
+
console.log('Event: Navigate')
|
|
252
|
+
const navigateUrl = url.searchParams.get('url')
|
|
253
253
|
|
|
254
|
-
if (
|
|
255
|
-
if (isEncoded(
|
|
254
|
+
if (navigateUrl) {
|
|
255
|
+
if (isEncoded(navigateUrl)) {
|
|
256
256
|
try {
|
|
257
|
-
const decodedUrl = decodeURIComponent(
|
|
257
|
+
const decodedUrl = decodeURIComponent(navigateUrl)
|
|
258
258
|
handleOAuthUrl(decodedUrl)
|
|
259
259
|
} catch (error) {
|
|
260
|
-
console.error('
|
|
261
|
-
handleOAuthUrl(
|
|
260
|
+
console.error('Navigate URL decoding failed, using original')
|
|
261
|
+
handleOAuthUrl(navigateUrl)
|
|
262
262
|
}
|
|
263
263
|
} else {
|
|
264
|
-
handleOAuthUrl(
|
|
264
|
+
handleOAuthUrl(navigateUrl)
|
|
265
265
|
}
|
|
266
266
|
} else {
|
|
267
|
-
console.error('
|
|
267
|
+
console.error('Navigate URL missing from request')
|
|
268
268
|
}
|
|
269
269
|
break
|
|
270
270
|
}
|
|
271
|
+
// NOTE: The `OauthRequested` is deprecated and should not be used
|
|
271
272
|
default:
|
|
272
273
|
console.log(`Unhandled event: ${eventType}`)
|
|
273
274
|
break
|