@quiltt/react-native 3.9.1 → 3.9.3

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,5 +1,29 @@
1
1
  # @quiltt/react-native
2
2
 
3
+ ## 3.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#319](https://github.com/quiltt/quiltt-js/pull/319) [`b97a814`](https://github.com/quiltt/quiltt-js/commit/b97a814b87b8bfec9f8b4bb155e1140724e441eb) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Improve typings for query client and react components
8
+
9
+ - Updated dependencies [[`b97a814`](https://github.com/quiltt/quiltt-js/commit/b97a814b87b8bfec9f8b4bb155e1140724e441eb)]:
10
+ - @quiltt/react@3.9.3
11
+ - @quiltt/core@3.9.3
12
+
13
+ ## 3.9.2
14
+
15
+ ### Patch Changes
16
+
17
+ - [#316](https://github.com/quiltt/quiltt-js/pull/316) [`de5d43e`](https://github.com/quiltt/quiltt-js/commit/de5d43e664a8bbb04595816718f5c645a9c3df27) Thanks [@rubendinho](https://github.com/rubendinho)! - Updated `main` param to `package.json` to improve analyzing the package.
18
+
19
+ - [#313](https://github.com/quiltt/quiltt-js/pull/313) [`3b789c9`](https://github.com/quiltt/quiltt-js/commit/3b789c9413ab2f9bdda965248ed7a8ccaf270172) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Update typings for QuilttButton onLoad handler
20
+
21
+ - [#312](https://github.com/quiltt/quiltt-js/pull/312) [`11ba6a3`](https://github.com/quiltt/quiltt-js/commit/11ba6a3af1975349a63640bb99ed0e34ffee3f1c) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Update session handling in QuilttAuthProvider
22
+
23
+ - Updated dependencies [[`de5d43e`](https://github.com/quiltt/quiltt-js/commit/de5d43e664a8bbb04595816718f5c645a9c3df27), [`3b789c9`](https://github.com/quiltt/quiltt-js/commit/3b789c9413ab2f9bdda965248ed7a8ccaf270172), [`11ba6a3`](https://github.com/quiltt/quiltt-js/commit/11ba6a3af1975349a63640bb99ed0e34ffee3f1c)]:
24
+ - @quiltt/react@3.9.2
25
+ - @quiltt/core@3.9.2
26
+
3
27
  ## 3.9.1
4
28
 
5
29
  ### Patch Changes
package/README.md CHANGED
@@ -9,20 +9,31 @@
9
9
 
10
10
  `@quiltt/react-native` expects `react`, `react-native`,`react-native-webview`, `base-64` and `react-native-url-polyfill` as peer dependencies.
11
11
 
12
+ With `npm`:
13
+
12
14
  ```shell
13
15
  $ npm install base-64 react-native-webview react-native-url-polyfill
14
16
  $ npm install @quiltt/react-native
15
- # or
17
+ ```
18
+
19
+ With `yarn`:
20
+
21
+ ```shell
16
22
  $ yarn add base-64 react-native-webview react-native-url-polyfill
17
23
  $ yarn add @quiltt/react-native
18
- # or
19
- # Please note that you will need to add `node-linker=hoisted` in `.npmrc` if you are using pnpm in expo app.`
24
+ ```
25
+
26
+ With `pnpm`:
27
+
28
+ ```shell
29
+ # Make sure to add `node-linker=hoisted` to your `.npmrc` when using pnpm in an Expo app.
20
30
  $ pnpm add base-64 react-native-webview react-native-url-polyfill
21
31
  $ pnpm add @quiltt/react-native
22
32
  ```
23
33
 
24
34
  ## Documentation
25
- For SDK documentation and more code examples, see the [React Native guide](https://www.quiltt.dev/connector/sdk/react-native).
35
+
36
+ For full SDK documentation and more code examples, see the Connector [React Native guide](https://www.quiltt.dev/connector/sdk/react-native).
26
37
 
27
38
  ### QuilttConnector
28
39
 
@@ -35,23 +46,28 @@ Launch the [Quiltt Connector](https://www.quiltt.dev/connector) in a webview.
35
46
  ```tsx
36
47
  import { QuilttProvider } from '@quiltt/react'
37
48
  import { QuilttConnector } from '@quiltt/react-native'
49
+ import type { ConnectorSDKCallbackMetadata } from '@quiltt/react'
38
50
 
39
51
  export const App = () => {
40
52
  // See: https://www.quiltt.dev/authentication/issuing-session-tokens
41
53
  const sessionToken = '<TOKEN_OBTAINED_FROM_THE_SERVER>'
42
- const oAuthRedirectUrl = 'quilttexample://open.reactnative.app'
43
54
 
44
- const handleExitSuccess = (metadata) => {
45
- console.log('Successfully created connection!', metadata)
55
+ // Use a universal link or deep link to redirect back to your app
56
+ const oauthRedirectUrl = 'https://myapp.com/my_universal_link'
57
+
58
+ const handleExitSuccess = (metadata: ConnectorSDKCallbackMetadata) => {
59
+ console.log('Successfully created connection!', {
60
+ connectionId: metadata.connectionId,
61
+ })
46
62
  }
47
63
 
48
64
  return (
49
65
  <QuilttProvider token={sessionToken}>
50
66
  <QuilttConnector
51
67
  connectorId="<CONNECTOR_ID>"
52
- oAuthRedirectUrl={oAuthRedirectUrl}
68
+ oauthRedirectUrl={oauthRedirectUrl}
53
69
 
54
- // See the JavaScript API docs for the full list of available callbacks
70
+ // See the JavaScript API docs for the full list of available callbacks...
55
71
  onExitSuccess={handleExitSuccess}
56
72
  />
57
73
  </QuilttProvider>
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 = "3.9.1";
12
+ var version = "3.9.3";
13
13
 
14
14
  const ErrorReporterConfig = {
15
15
  honeybadger_api_key: 'undefined'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quiltt/react-native",
3
- "version": "3.9.1",
4
- "description": "React Native components for Quiltt Connector",
3
+ "version": "3.9.3",
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": {
7
7
  "type": "git",
@@ -9,6 +9,9 @@
9
9
  "directory": "packages/react-native"
10
10
  },
11
11
  "license": "MIT",
12
+ "bugs": {
13
+ "url": "https://github.com/quiltt/quiltt-js/issues"
14
+ },
12
15
  "type": "module",
13
16
  "exports": {
14
17
  ".": {
@@ -23,26 +26,27 @@
23
26
  "src/**",
24
27
  "CHANGELOG.md"
25
28
  ],
29
+ "main": "dist/index.js",
26
30
  "dependencies": {
27
31
  "@honeybadger-io/core": "6.6.0",
28
32
  "lodash.debounce": "4.0.8",
29
- "@quiltt/core": "3.9.1",
30
- "@quiltt/react": "3.9.1"
33
+ "@quiltt/core": "3.9.3",
34
+ "@quiltt/react": "3.9.3"
31
35
  },
32
36
  "devDependencies": {
33
37
  "@biomejs/biome": "1.9.4",
34
38
  "@types/base-64": "1.0.2",
35
39
  "@types/lodash.debounce": "4.0.9",
36
- "@types/node": "22.10.2",
40
+ "@types/node": "22.10.5",
37
41
  "@types/react": "18.3.12",
38
42
  "base-64": "1.0.0",
39
- "bunchee": "5.6.1",
43
+ "bunchee": "6.2.0",
40
44
  "react": "18.3.1",
41
45
  "react-native": "0.76.5",
42
46
  "react-native-url-polyfill": "2.0.0",
43
47
  "react-native-webview": "13.12.5",
44
48
  "rimraf": "6.0.1",
45
- "typescript": "5.6.3"
49
+ "typescript": "5.7.3"
46
50
  },
47
51
  "peerDependencies": {
48
52
  "base-64": "^1.0.0",
@@ -51,6 +55,10 @@
51
55
  "react-native-url-polyfill": "^2.0.0",
52
56
  "react-native-webview": ">=13.0.0"
53
57
  },
58
+ "tags": [
59
+ "quiltt",
60
+ "react-native"
61
+ ],
54
62
  "publishConfig": {
55
63
  "access": "public"
56
64
  },