@kryptos_connect/mobile-sdk 1.0.4 → 1.0.6-dev.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/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { ImageSourcePropType, ViewStyle, TextStyle } from 'react-native';
2
+ import { ImageSourcePropType } from 'react-native';
3
3
 
4
4
  type KryptosConfig = {
5
5
  appName: string;
@@ -28,18 +28,20 @@ type KryptosUser = {
28
28
  type UserConsent = {
29
29
  public_token: string;
30
30
  };
31
-
32
31
  interface KryptosConnectButtonProps {
33
32
  onSuccess?: (userConsent: UserConsent | null) => void;
34
- onError?: (error?: any) => void;
33
+ onError?: () => void;
35
34
  generateLinkToken: () => Promise<{
36
35
  link_token: string;
37
36
  isAuthorized?: boolean;
38
37
  }>;
39
- children?: React.ReactNode;
40
- style?: ViewStyle;
41
- textStyle?: TextStyle;
38
+ children?: ReactNode;
39
+ style?: object;
40
+ buttonStyle?: object;
41
+ integrationName?: string;
42
+ textStyle?: object;
42
43
  }
44
+
43
45
  declare const KryptosConnectButton: React.FC<KryptosConnectButtonProps>;
44
46
  interface KryptosConnectModalProps {
45
47
  open: boolean;
@@ -50,6 +52,7 @@ interface KryptosConnectModalProps {
50
52
  link_token: string;
51
53
  isAuthorized?: boolean;
52
54
  }>;
55
+ integrationName?: string;
53
56
  }
54
57
  declare const KryptosConnectModal: React.FC<KryptosConnectModalProps>;
55
58
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { ImageSourcePropType, ViewStyle, TextStyle } from 'react-native';
2
+ import { ImageSourcePropType } from 'react-native';
3
3
 
4
4
  type KryptosConfig = {
5
5
  appName: string;
@@ -28,18 +28,20 @@ type KryptosUser = {
28
28
  type UserConsent = {
29
29
  public_token: string;
30
30
  };
31
-
32
31
  interface KryptosConnectButtonProps {
33
32
  onSuccess?: (userConsent: UserConsent | null) => void;
34
- onError?: (error?: any) => void;
33
+ onError?: () => void;
35
34
  generateLinkToken: () => Promise<{
36
35
  link_token: string;
37
36
  isAuthorized?: boolean;
38
37
  }>;
39
- children?: React.ReactNode;
40
- style?: ViewStyle;
41
- textStyle?: TextStyle;
38
+ children?: ReactNode;
39
+ style?: object;
40
+ buttonStyle?: object;
41
+ integrationName?: string;
42
+ textStyle?: object;
42
43
  }
44
+
43
45
  declare const KryptosConnectButton: React.FC<KryptosConnectButtonProps>;
44
46
  interface KryptosConnectModalProps {
45
47
  open: boolean;
@@ -50,6 +52,7 @@ interface KryptosConnectModalProps {
50
52
  link_token: string;
51
53
  isAuthorized?: boolean;
52
54
  }>;
55
+ integrationName?: string;
53
56
  }
54
57
  declare const KryptosConnectModal: React.FC<KryptosConnectModalProps>;
55
58