@quiltt/core 3.6.14 → 3.7.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,11 @@
|
|
|
1
1
|
# @quiltt/core
|
|
2
2
|
|
|
3
|
+
## 3.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#281](https://github.com/quiltt/quiltt-js/pull/281) [`0c5fd75`](https://github.com/quiltt/quiltt-js/commit/0c5fd757fa1f688f205431c21c98bb54ea6ea72a) Thanks [@sirwolfgang](https://github.com/sirwolfgang)! - Add bindings for a new onOpen callback event for Connector Modals
|
|
8
|
+
|
|
3
9
|
## 3.6.14
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -10,12 +10,14 @@ import { Dispatch, SetStateAction } from 'react';
|
|
|
10
10
|
|
|
11
11
|
interface CallbackManager {
|
|
12
12
|
onEvent(callback: ConnectorSDKOnEventCallback): void;
|
|
13
|
+
onOpen(callback: ConnectorSDKOnOpenCallback): void;
|
|
13
14
|
onLoad(callback: ConnectorSDKOnLoadCallback): void;
|
|
14
15
|
onExit(callback: ConnectorSDKOnEventExitCallback): void;
|
|
15
16
|
onExitSuccess(callback: ConnectorSDKOnExitSuccessCallback): void;
|
|
16
17
|
onExitAbort(callback: ConnectorSDKOnExitAbortCallback): void;
|
|
17
18
|
onExitError(callback: ConnectorSDKOnExitErrorCallback): void;
|
|
18
19
|
offEvent(callback: ConnectorSDKOnEventCallback): void;
|
|
20
|
+
offOpen(callback: ConnectorSDKOnOpenCallback): void;
|
|
19
21
|
offLoad(callback: ConnectorSDKOnLoadCallback): void;
|
|
20
22
|
offExit(callback: ConnectorSDKOnEventExitCallback): void;
|
|
21
23
|
offExitSuccess(callback: ConnectorSDKOnExitSuccessCallback): void;
|
|
@@ -39,6 +41,7 @@ interface ConnectorSDKConnector extends CallbackManager {
|
|
|
39
41
|
*/
|
|
40
42
|
type ConnectorSDKCallbacks = {
|
|
41
43
|
onEvent?: ConnectorSDKOnEventCallback;
|
|
44
|
+
onOpen?: ConnectorSDKOnOpenCallback;
|
|
42
45
|
onLoad?: ConnectorSDKOnLoadCallback;
|
|
43
46
|
onExit?: ConnectorSDKOnEventExitCallback;
|
|
44
47
|
onExitSuccess?: ConnectorSDKOnExitSuccessCallback;
|
|
@@ -46,6 +49,7 @@ type ConnectorSDKCallbacks = {
|
|
|
46
49
|
onExitError?: ConnectorSDKOnExitErrorCallback;
|
|
47
50
|
};
|
|
48
51
|
type ConnectorSDKOnEventCallback = (type: ConnectorSDKEventType, metadata: ConnectorSDKCallbackMetadata) => void;
|
|
52
|
+
type ConnectorSDKOnOpenCallback = (metadata: ConnectorSDKCallbackMetadata) => void;
|
|
49
53
|
type ConnectorSDKOnLoadCallback = (metadata: ConnectorSDKCallbackMetadata) => void;
|
|
50
54
|
type ConnectorSDKOnEventExitCallback = (type: ConnectorSDKEventType, metadata: ConnectorSDKCallbackMetadata) => void;
|
|
51
55
|
type ConnectorSDKOnExitSuccessCallback = (metadata: ConnectorSDKCallbackMetadata) => void;
|
|
@@ -364,4 +368,4 @@ declare class Timeoutable {
|
|
|
364
368
|
private broadcast;
|
|
365
369
|
}
|
|
366
370
|
|
|
367
|
-
export { AuthAPI, AuthLink, AuthStrategies, BatchHttpLink, type Claims, type ConnectorSDK, type ConnectorSDKCallbackMetadata, type ConnectorSDKCallbacks, type ConnectorSDKConnectOptions, type ConnectorSDKConnector, type ConnectorSDKConnectorOptions, ConnectorSDKEventType, type ConnectorSDKOnEventCallback, type ConnectorSDKOnEventExitCallback, type ConnectorSDKOnExitAbortCallback, type ConnectorSDKOnExitErrorCallback, type ConnectorSDKOnExitSuccessCallback, type ConnectorSDKOnLoadCallback, type ConnectorSDKReconnectOptions, type DeepPartial, type DeepReadonly, ErrorLink, type Exact, ForwardableLink, GlobalStorage, HttpLink, type InputMaybe, type JsonWebToken, JsonWebTokenParse, LocalStorage, type MakeMaybe, type MakeOptional, type Maybe, MemoryStorage, type Mutable, type Nullable, Observable, type Observer, type PasscodePayload, type PrivateClaims, QuilttClient, type QuilttClientOptions, type QuilttJWT, type RegisteredClaims, RetryLink, type SessionResponse, Storage, SubscriptionLink, TerminatingLink, Timeoutable, type UnprocessableData, type UnprocessableResponse, type UsernamePayload, VersionLink, cdnBase, debugging, endpointAuth, endpointGraphQL, endpointWebsockets, version };
|
|
371
|
+
export { AuthAPI, AuthLink, AuthStrategies, BatchHttpLink, type Claims, type ConnectorSDK, type ConnectorSDKCallbackMetadata, type ConnectorSDKCallbacks, type ConnectorSDKConnectOptions, type ConnectorSDKConnector, type ConnectorSDKConnectorOptions, ConnectorSDKEventType, type ConnectorSDKOnEventCallback, type ConnectorSDKOnEventExitCallback, type ConnectorSDKOnExitAbortCallback, type ConnectorSDKOnExitErrorCallback, type ConnectorSDKOnExitSuccessCallback, type ConnectorSDKOnLoadCallback, type ConnectorSDKOnOpenCallback, type ConnectorSDKReconnectOptions, type DeepPartial, type DeepReadonly, ErrorLink, type Exact, ForwardableLink, GlobalStorage, HttpLink, type InputMaybe, type JsonWebToken, JsonWebTokenParse, LocalStorage, type MakeMaybe, type MakeOptional, type Maybe, MemoryStorage, type Mutable, type Nullable, Observable, type Observer, type PasscodePayload, type PrivateClaims, QuilttClient, type QuilttClientOptions, type QuilttJWT, type RegisteredClaims, RetryLink, type SessionResponse, Storage, SubscriptionLink, TerminatingLink, Timeoutable, type UnprocessableData, type UnprocessableResponse, type UsernamePayload, VersionLink, cdnBase, debugging, endpointAuth, endpointGraphQL, endpointWebsockets, version };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-
|
|
3
|
+
import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-BMe19x44.js';
|
|
4
|
+
export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-BMe19x44.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';
|
package/package.json
CHANGED
package/src/api/browser.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface CallbackManager {
|
|
2
2
|
onEvent(callback: ConnectorSDKOnEventCallback): void
|
|
3
|
+
onOpen(callback: ConnectorSDKOnOpenCallback): void
|
|
3
4
|
onLoad(callback: ConnectorSDKOnLoadCallback): void
|
|
4
5
|
onExit(callback: ConnectorSDKOnEventExitCallback): void
|
|
5
6
|
onExitSuccess(callback: ConnectorSDKOnExitSuccessCallback): void
|
|
@@ -8,6 +9,7 @@ interface CallbackManager {
|
|
|
8
9
|
|
|
9
10
|
// Because it's well within React behavior to try to register a billion functions
|
|
10
11
|
offEvent(callback: ConnectorSDKOnEventCallback): void
|
|
12
|
+
offOpen(callback: ConnectorSDKOnOpenCallback): void
|
|
11
13
|
offLoad(callback: ConnectorSDKOnLoadCallback): void
|
|
12
14
|
offExit(callback: ConnectorSDKOnEventExitCallback): void
|
|
13
15
|
offExitSuccess(callback: ConnectorSDKOnExitSuccessCallback): void
|
|
@@ -35,6 +37,7 @@ export interface ConnectorSDKConnector extends CallbackManager {
|
|
|
35
37
|
*/
|
|
36
38
|
export type ConnectorSDKCallbacks = {
|
|
37
39
|
onEvent?: ConnectorSDKOnEventCallback
|
|
40
|
+
onOpen?: ConnectorSDKOnOpenCallback
|
|
38
41
|
onLoad?: ConnectorSDKOnLoadCallback
|
|
39
42
|
onExit?: ConnectorSDKOnEventExitCallback
|
|
40
43
|
onExitSuccess?: ConnectorSDKOnExitSuccessCallback
|
|
@@ -47,6 +50,7 @@ export type ConnectorSDKOnEventCallback = (
|
|
|
47
50
|
metadata: ConnectorSDKCallbackMetadata
|
|
48
51
|
) => void
|
|
49
52
|
|
|
53
|
+
export type ConnectorSDKOnOpenCallback = (metadata: ConnectorSDKCallbackMetadata) => void
|
|
50
54
|
export type ConnectorSDKOnLoadCallback = (metadata: ConnectorSDKCallbackMetadata) => void
|
|
51
55
|
|
|
52
56
|
export type ConnectorSDKOnEventExitCallback = (
|