@quiltt/core 3.7.3 → 3.8.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,5 +1,21 @@
1
1
  # @quiltt/core
2
2
 
3
+ ## 3.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#298](https://github.com/quiltt/quiltt-js/pull/298) [`134b294`](https://github.com/quiltt/quiltt-js/commit/134b294019c3bdbccc1f4b5cf9af38d43ea5b3ac) Thanks [@zubairaziz](https://github.com/zubairaziz)! -
8
+ - Update dependencies
9
+ - Update expo-react-native implementation
10
+ - Reorganize test files
11
+ - Fix security vulnerabilities
12
+
13
+ ## 3.7.4
14
+
15
+ ### Patch Changes
16
+
17
+ - [#296](https://github.com/quiltt/quiltt-js/pull/296) [`bff9d1f`](https://github.com/quiltt/quiltt-js/commit/bff9d1fb4f89c9c762de85ca0d8ee9a35dd10f7e) Thanks [@rubendinho](https://github.com/rubendinho)! - Fix typings
18
+
3
19
  ## 3.7.3
4
20
 
5
21
  ### Patch Changes
@@ -203,7 +203,7 @@ import { print } from 'graphql';
203
203
  */ const GlobalStorage = new Storage();
204
204
 
205
205
  var name = "@quiltt/core";
206
- var version$1 = "3.7.3";
206
+ var version$1 = "3.8.0";
207
207
 
208
208
  const QUILTT_API_INSECURE = (()=>{
209
209
  try {
package/dist/index.d.ts CHANGED
@@ -101,13 +101,11 @@ type ConnectorSDKCallbackMetadata = {
101
101
  };
102
102
  /**
103
103
  Options for the standard Connect flow
104
- @param institution The Institution search term or ID to preload
104
+ @param institution The Institution ID or search term to connect
105
105
  */
106
106
  type ConnectorSDKConnectOptions = ConnectorSDKCallbacks & {
107
- /** The Institution search term or ID to preload */
107
+ /** The Institution ID or search term to connect */
108
108
  institution?: string;
109
- /** The ID of the Connection to reconnect */
110
- connectionId?: string;
111
109
  };
112
110
  /**
113
111
  * Options for the Reconnect flow
@@ -118,7 +116,12 @@ type ConnectorSDKReconnectOptions = ConnectorSDKCallbacks & {
118
116
  connectionId: string;
119
117
  };
120
118
  /** Options to initialize Connector */
121
- type ConnectorSDKConnectorOptions = ConnectorSDKConnectOptions | ConnectorSDKConnectOptions;
119
+ type ConnectorSDKConnectorOptions = ConnectorSDKCallbacks & {
120
+ /** The Institution ID or search term to connect */
121
+ institution?: string;
122
+ /** The ID of the Connection to reconnect */
123
+ connectionId?: string;
124
+ };
122
125
 
123
126
  /**
124
127
  * unauthorizedCallback only triggers in the event the token is present, and
package/dist/index.js CHANGED
@@ -1,21 +1,23 @@
1
1
  import { ApolloLink, ApolloClient } from '@apollo/client/index.js';
2
2
  export { InMemoryCache, gql, useMutation, useQuery, useSubscription } from '@apollo/client/index.js';
3
- import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-D8TnyRwk.js';
4
- export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-D8TnyRwk.js';
3
+ import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-J29nv7_E.js';
4
+ export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-J29nv7_E.js';
5
5
  import { BatchHttpLink as BatchHttpLink$1 } from '@apollo/client/link/batch-http/index.js';
6
6
  import crossfetch from 'cross-fetch';
7
7
  import { onError } from '@apollo/client/link/error/index.js';
8
8
  import { HttpLink as HttpLink$1 } from '@apollo/client/link/http/index.js';
9
9
  import { RetryLink as RetryLink$1 } from '@apollo/client/link/retry/index.js';
10
10
 
11
- var ConnectorSDKEventType;
12
- (function(ConnectorSDKEventType) {
11
+ /**
12
+ * Enum representing the different types of events emitted by the Connector.
13
+ */ var ConnectorSDKEventType = /*#__PURE__*/ function(ConnectorSDKEventType) {
13
14
  /** The Connector modal has been opened */ ConnectorSDKEventType["Open"] = "opened";
14
15
  /** The Connector has loaded successfully */ ConnectorSDKEventType["Load"] = "loaded";
15
16
  /** The end-user successfully completed the flow */ ConnectorSDKEventType["ExitSuccess"] = "exited.successful";
16
17
  /** The end-user exited the Connector before completing the flow */ ConnectorSDKEventType["ExitAbort"] = "exited.aborted";
17
18
  /** The end-user experienced an error during the flow */ ConnectorSDKEventType["ExitError"] = "exited.errored";
18
- })(ConnectorSDKEventType || (ConnectorSDKEventType = {}));
19
+ return ConnectorSDKEventType;
20
+ }({});
19
21
 
20
22
  /**
21
23
  * unauthorizedCallback only triggers in the event the token is present, and
@@ -160,11 +162,11 @@ const RETRIES = 10 // 150, 300, 450, 600, 750, 900, 1050, 1200, 1350, 1500 = 8.2
160
162
  }
161
163
  };
162
164
 
163
- var AuthStrategies;
164
- (function(AuthStrategies) {
165
+ var AuthStrategies = /*#__PURE__*/ function(AuthStrategies) {
165
166
  AuthStrategies["Email"] = "email";
166
167
  AuthStrategies["Phone"] = "phone";
167
- })(AuthStrategies || (AuthStrategies = {}));
168
+ return AuthStrategies;
169
+ }({});
168
170
  // https://www.quiltt.dev/api-reference/auth
169
171
  class AuthAPI {
170
172
  constructor(clientId){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/core",
3
- "version": "3.7.3",
3
+ "version": "3.8.0",
4
4
  "description": "Javascript API client and utilities for Quiltt",
5
5
  "keywords": [
6
6
  "quiltt",
@@ -24,8 +24,6 @@
24
24
  "types": "./dist/index.d.ts"
25
25
  }
26
26
  },
27
- "main": "./dist/index.js",
28
- "module": "./dist/index.js",
29
27
  "types": "./dist/index.d.ts",
30
28
  "files": [
31
29
  "dist/**",
@@ -34,20 +32,20 @@
34
32
  ],
35
33
  "dependencies": {
36
34
  "@apollo/client": "^3.9.11",
37
- "@rails/actioncable": "^7.2.0",
35
+ "@rails/actioncable": "^7.2.200",
36
+ "braces": "^3.0.3",
38
37
  "cross-fetch": "^4.0.0",
39
38
  "graphql": "^16.9.0",
40
- "graphql-ruby-client": "^1.14.0",
41
- "braces": "^3.0.3"
39
+ "graphql-ruby-client": "^1.14.5"
42
40
  },
43
41
  "devDependencies": {
44
- "@biomejs/biome": "1.8.3",
45
- "@types/node": "22.4.1",
42
+ "@biomejs/biome": "1.9.4",
43
+ "@types/node": "22.9.0",
46
44
  "@types/rails__actioncable": "6.1.11",
47
- "@types/react": "18.3.3",
45
+ "@types/react": "18.3.12",
48
46
  "bunchee": "5.3.2",
49
47
  "rimraf": "6.0.1",
50
- "typescript": "5.5.4"
48
+ "typescript": "5.6.3"
51
49
  },
52
50
  "publishConfig": {
53
51
  "access": "public"
@@ -56,7 +54,7 @@
56
54
  "build": "bunchee",
57
55
  "clean": "rimraf .turbo dist",
58
56
  "dev": "bunchee --watch",
59
- "lint": "TIMING=1 biome check src/ --fix",
57
+ "lint": "TIMING=1 biome check src/ tests/ --fix",
60
58
  "typecheck": "tsc --project tsconfig.json --noEmit"
61
59
  }
62
60
  }
@@ -115,13 +115,11 @@ export type ConnectorSDKCallbackMetadata = {
115
115
 
116
116
  /**
117
117
  Options for the standard Connect flow
118
- @param institution The Institution search term or ID to preload
118
+ @param institution The Institution ID or search term to connect
119
119
  */
120
120
  export type ConnectorSDKConnectOptions = ConnectorSDKCallbacks & {
121
- /** The Institution search term or ID to preload */
121
+ /** The Institution ID or search term to connect */
122
122
  institution?: string
123
- /** The ID of the Connection to reconnect */
124
- connectionId?: string
125
123
  }
126
124
 
127
125
  /**
@@ -134,4 +132,11 @@ export type ConnectorSDKReconnectOptions = ConnectorSDKCallbacks & {
134
132
  }
135
133
 
136
134
  /** Options to initialize Connector */
137
- export type ConnectorSDKConnectorOptions = ConnectorSDKConnectOptions | ConnectorSDKConnectOptions
135
+ // @todo: refactor into a union type - it's either or.
136
+ export type ConnectorSDKConnectorOptions = ConnectorSDKCallbacks & {
137
+ /** The Institution ID or search term to connect */
138
+ institution?: string
139
+
140
+ /** The ID of the Connection to reconnect */
141
+ connectionId?: string
142
+ }