@quiltt/core 3.6.14 → 3.7.1
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,17 @@
|
|
|
1
1
|
# @quiltt/core
|
|
2
2
|
|
|
3
|
+
## 3.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`524a0d7`](https://github.com/quiltt/quiltt-js/commit/524a0d7f83c92648522c7712b82619fcd72e56c8) Thanks [@sirwolfgang](https://github.com/sirwolfgang)! - Add missing opened Enum type
|
|
8
|
+
|
|
9
|
+
## 3.7.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
|
|
3
15
|
## 3.6.14
|
|
4
16
|
|
|
5
17
|
### 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,12 +49,14 @@ 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;
|
|
52
56
|
type ConnectorSDKOnExitAbortCallback = (metadata: ConnectorSDKCallbackMetadata) => void;
|
|
53
57
|
type ConnectorSDKOnExitErrorCallback = (metadata: ConnectorSDKCallbackMetadata) => void;
|
|
54
58
|
declare enum ConnectorSDKEventType {
|
|
59
|
+
Open = "opened",
|
|
55
60
|
Load = "loaded",
|
|
56
61
|
ExitSuccess = "exited.successful",
|
|
57
62
|
ExitAbort = "exited.aborted",
|
|
@@ -364,4 +369,4 @@ declare class Timeoutable {
|
|
|
364
369
|
private broadcast;
|
|
365
370
|
}
|
|
366
371
|
|
|
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 };
|
|
372
|
+
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-BmcJJuK4.js';
|
|
4
|
+
export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-BmcJJuK4.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';
|
|
@@ -10,6 +10,7 @@ import { RetryLink as RetryLink$1 } from '@apollo/client/link/retry/index.js';
|
|
|
10
10
|
|
|
11
11
|
var ConnectorSDKEventType;
|
|
12
12
|
(function(ConnectorSDKEventType) {
|
|
13
|
+
ConnectorSDKEventType["Open"] = "opened";
|
|
13
14
|
ConnectorSDKEventType["Load"] = "loaded";
|
|
14
15
|
ConnectorSDKEventType["ExitSuccess"] = "exited.successful";
|
|
15
16
|
ConnectorSDKEventType["ExitAbort"] = "exited.aborted";
|
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 = (
|
|
@@ -59,6 +63,7 @@ export type ConnectorSDKOnExitAbortCallback = (metadata: ConnectorSDKCallbackMet
|
|
|
59
63
|
export type ConnectorSDKOnExitErrorCallback = (metadata: ConnectorSDKCallbackMetadata) => void
|
|
60
64
|
|
|
61
65
|
export enum ConnectorSDKEventType {
|
|
66
|
+
Open = 'opened',
|
|
62
67
|
Load = 'loaded',
|
|
63
68
|
ExitSuccess = 'exited.successful',
|
|
64
69
|
ExitAbort = 'exited.aborted',
|